vendor: 9,662 bytes, lines 1-354
1var U7 = Object.defineProperty; 2var NC = e => { 3 throw TypeError(e) 4} 5; 6var z7 = (e, t, n) => t in e ? U7(e, t, { 7 enumerable: !0, 8 configurable: !0, 9 writable: !0, 10 value: n 11}) : e[t] = n; 12var V = (e, t, n) => z7(e, typeof t != "symbol" ? t + "" : t, n) 13 , b0 = (e, t, n) => t.has(e) || NC("Cannot " + n); 14var I = (e, t, n) => (b0(e, t, "read from private field"), 15n ? n.call(e) : t.get(e)) 16 , we = (e, t, n) => t.has(e) ? NC("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n) 17 , ce = (e, t, n, r) => (b0(e, t, "write to private field"), 18r ? r.call(e, n) : t.set(e, n), 19n) 20 , $e = (e, t, n) => (b0(e, t, "access private method"), 21n); 22var tp = (e, t, n, r) => ({ 23 set _(i) { 24 ce(e, t, i, n) 25 }, 26 get _() { 27 return I(e, t, r) 28 } 29}); 30function W7(e, t) { 31 for (var n = 0; n < t.length; n++) { 32 const r = t[n]; 33 if (typeof r != "string" && !Array.isArray(r)) { 34 for (const i in r) 35 if (i !== "default" && !(i in e)) { 36 const o = Object.getOwnPropertyDescriptor(r, i); 37 o && Object.defineProperty(e, i, o.get ? o : { 38 enumerable: !0, 39 get: () => r[i] 40 }) 41 } 42 } 43 } 44 return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { 45 value: "Module" 46 })) 47} 48(function() { 49 const t = document.createElement("link").relList; 50 if (t && t.supports && t.supports("modulepreload")) 51 return; 52 for (const i of document.querySelectorAll('link[rel="modulepreload"]')) 53 r(i); 54 new MutationObserver(i => { 55 for (const o of i) 56 if (o.type === "childList") 57 for (const a of o.addedNodes) 58 a.tagName === "LINK" && a.rel === "modulepreload" && r(a) 59 } 60 ).observe(document, { 61 childList: !0, 62 subtree: !0 63 }); 64 function n(i) { 65 const o = {}; 66 return i.integrity && (o.integrity = i.integrity), 67 i.referrerPolicy && (o.referrerPolicy = i.referrerPolicy), 68 i.crossOrigin === "use-credentials" ? o.credentials = "include" : i.crossOrigin === "anonymous" ? o.credentials = "omit" : o.credentials = "same-origin", 69 o 70 } 71 function r(i) { 72 if (i.ep) 73 return; 74 i.ep = !0; 75 const o = n(i); 76 fetch(i.href, o) 77 } 78} 79)(); 80var np = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; 81function lt(e) { 82 return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e 83} 84var l$ = { 85 exports: {} 86} 87 , Ey = {} 88 , c$ = { 89 exports: {} 90} 91 , Ue = {}; 92/** 93 * @license React 94 * react.production.min.js 95 * 96 * Copyright (c) Facebook, Inc. and its affiliates. 97 * 98 * This source code is licensed under the MIT license found in the 99 * LICENSE file in the root directory of this source tree. 100 */ 101var bh = Symbol.for("react.element") 102 , H7 = Symbol.for("react.portal") 103 , q7 = Symbol.for("react.fragment") 104 , K7 = Symbol.for("react.strict_mode") 105 , G7 = Symbol.for("react.profiler") 106 , Y7 = Symbol.for("react.provider") 107 , X7 = Symbol.for("react.context") 108 , Q7 = Symbol.for("react.forward_ref") 109 , Z7 = Symbol.for("react.suspense") 110 , J7 = Symbol.for("react.memo") 111 , eq = Symbol.for("react.lazy") 112 , MC = Symbol.iterator; 113function tq(e) { 114 return e === null || typeof e != "object" ? null : (e = MC && e[MC] || e["@@iterator"], 115 typeof e == "function" ? e : null) 116} 117var u$ = { 118 isMounted: function() { 119 return !1 120 }, 121 enqueueForceUpdate: function() {}, 122 enqueueReplaceState: function() {}, 123 enqueueSetState: function() {} 124} 125 , d$ = Object.assign 126 , f$ = {}; 127function tu(e, t, n) { 128 this.props = e, 129 this.context = t, 130 this.refs = f$, 131 this.updater = n || u$ 132} 133tu.prototype.isReactComponent = {}; 134tu.prototype.setState = function(e, t) { 135 if (typeof e != "object" && typeof e != "function" && e != null) 136 throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); 137 this.updater.enqueueSetState(this, e, t, "setState") 138} 139; 140tu.prototype.forceUpdate = function(e) { 141 this.updater.enqueueForceUpdate(this, e, "forceUpdate") 142} 143; 144function h$() {} 145h$.prototype = tu.prototype; 146function kS(e, t, n) { 147 this.props = e, 148 this.context = t, 149 this.refs = f$, 150 this.updater = n || u$ 151} 152var RS = kS.prototype = new h$; 153RS.constructor = kS; 154d$(RS, tu.prototype); 155RS.isPureReactComponent = !0; 156var kC = Array.isArray 157 , p$ = Object.prototype.hasOwnProperty 158 , DS = { 159 current: null 160} 161 , m$ = { 162 key: !0, 163 ref: !0, 164 __self: !0, 165 __source: !0 166}; 167function g$(e, t, n) { 168 var r, i = {}, o = null, a = null; 169 if (t != null) 170 for (r in t.ref !== void 0 && (a = t.ref), 171 t.key !== void 0 && (o = "" + t.key), 172 t) 173 p$.call(t, r) && !m$.hasOwnProperty(r) && (i[r] = t[r]); 174 var s = arguments.length - 2; 175 if (s === 1) 176 i.children = n; 177 else if (1 < s) { 178 for (var l = Array(s), c = 0; c < s; c++) 179 l[c] = arguments[c + 2]; 180 i.children = l 181 } 182 if (e && e.defaultProps) 183 for (r in s = e.defaultProps, 184 s) 185 i[r] === void 0 && (i[r] = s[r]); 186 return { 187 $$typeof: bh, 188 type: e, 189 key: o, 190 ref: a, 191 props: i, 192 _owner: DS.current 193 } 194} 195function nq(e, t) { 196 return { 197 $$typeof: bh, 198 type: e.type, 199 key: t, 200 ref: e.ref, 201 props: e.props, 202 _owner: e._owner 203 } 204} 205function IS(e) { 206 return typeof e == "object" && e !== null && e.$$typeof === bh 207} 208function rq(e) { 209 var t = { 210 "=": "=0", 211 ":": "=2" 212 }; 213 return "$" + e.replace(/[=:]/g, function(n) { 214 return t[n] 215 }) 216} 217var RC = /\/+/g; 218function w0(e, t) { 219 return typeof e == "object" && e !== null && e.key != null ? rq("" + e.key) : t.toString(36) 220} 221function Yp(e, t, n, r, i) { 222 var o = typeof e; 223 (o === "undefined" || o === "boolean") && (e = null); 224 var a = !1; 225 if (e === null) 226 a = !0; 227 else 228 switch (o) { 229 case "string": 230 case "number": 231 a = !0; 232 break; 233 case "object": 234 switch (e.$$typeof) { 235 case bh: 236 case H7: 237 a = !0 238 } 239 } 240 if (a) 241 return a = e, 242 i = i(a), 243 e = r === "" ? "." + w0(a, 0) : r, 244 kC(i) ? (n = "", 245 e != null && (n = e.replace(RC, "$&/") + "/"), 246 Yp(i, t, n, "", function(c) { 247 return c 248 })) : i != null && (IS(i) && (i = nq(i, n + (!i.key || a && a.key === i.key ? "" : ("" + i.key).replace(RC, "$&/") + "/") + e)), 249 t.push(i)), 250 1; 251 if (a = 0, 252 r = r === "" ? "." : r + ":", 253 kC(e)) 254 for (var s = 0; s < e.length; s++) { 255 o = e[s]; 256 var l = r + w0(o, s); 257 a += Yp(o, t, n, l, i) 258 } 259 else if (l = tq(e), 260 typeof l == "function") 261 for (e = l.call(e), 262 s = 0; !(o = e.next()).done; ) 263 o = o.value, 264 l = r + w0(o, s++), 265 a += Yp(o, t, n, l, i); 266 else if (o === "object") 267 throw t = String(e), 268 Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead."); 269 return a 270} 271function rp(e, t, n) { 272 if (e == null) 273 return e; 274 var r = [] 275 , i = 0; 276 return Yp(e, r, "", "", function(o) { 277 return t.call(n, o, i++) 278 }), 279 r 280} 281function iq(e) { 282 if (e._status === -1) { 283 var t = e._result; 284 t = t(), 285 t.then(function(n) { 286 (e._status === 0 || e._status === -1) && (e._status = 1, 287 e._result = n) 288 }, function(n) { 289 (e._status === 0 || e._status === -1) && (e._status = 2, 290 e._result = n) 291 }), 292 e._status === -1 && (e._status = 0, 293 e._result = t) 294 } 295 if (e._status === 1) 296 return e._result.default; 297 throw e._result 298} 299var Vn = { 300 current: null 301} 302 , Xp = { 303 transition: null 304} 305 , oq = { 306 ReactCurrentDispatcher: Vn, 307 ReactCurrentBatchConfig: Xp, 308 ReactCurrentOwner: DS 309}; 310function y$() { 311 throw Error("act(...) is not supported in production builds of React.") 312} 313Ue.Children = { 314 map: rp, 315 forEach: function(e, t, n) { 316 rp(e, function() { 317 t.apply(this, arguments) 318 }, n) 319 }, 320 count: function(e) { 321 var t = 0; 322 return rp(e, function() { 323 t++ 324 }), 325 t 326 }, 327 toArray: function(e) { 328 return rp(e, function(t) { 329 return t 330 }) || [] 331 }, 332 only: function(e) { 333 if (!IS(e)) 334 throw Error("React.Children.only expected to receive a single React element child."); 335 return e 336 } 337}; 338Ue.Component = tu; 339Ue.Fragment = q7; 340Ue.Profiler = G7; 341Ue.PureComponent = kS; 342Ue.StrictMode = K7; 343Ue.Suspense = Z7; 344Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = oq; 345Ue.act = y$; 346Ue.cloneElement = function(e, t, n) { 347 if (e == null) 348 throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + "."); 349 var r = d$({}, e.props) 350 , i = e.key 351 , o = e.ref 352 , a = e._owner; 353 if (t != null) { 354 if (t.ref !== void 0 && (o = t.ref,
vendor: 4,157 bytes, lines 355-559
355 a = DS.current), 356 t.key !== void 0 && (i = "" + t.key), 357 e.type && e.type.defaultProps) 358 var s = e.type.defaultProps; 359 for (l in t) 360 p$.call(t, l) && !m$.hasOwnProperty(l) && (r[l] = t[l] === void 0 && s !== void 0 ? s[l] : t[l]) 361 } 362 var l = arguments.length - 2; 363 if (l === 1) 364 r.children = n; 365 else if (1 < l) { 366 s = Array(l); 367 for (var c = 0; c < l; c++) 368 s[c] = arguments[c + 2]; 369 r.children = s 370 } 371 return { 372 $$typeof: bh, 373 type: e.type, 374 key: i, 375 ref: o, 376 props: r, 377 _owner: a 378 } 379} 380; 381Ue.createContext = function(e) { 382 return e = { 383 $$typeof: X7, 384 _currentValue: e, 385 _currentValue2: e, 386 _threadCount: 0, 387 Provider: null, 388 Consumer: null, 389 _defaultValue: null, 390 _globalName: null 391 }, 392 e.Provider = { 393 $$typeof: Y7, 394 _context: e 395 }, 396 e.Consumer = e 397} 398; 399Ue.createElement = g$; 400Ue.createFactory = function(e) { 401 var t = g$.bind(null, e); 402 return t.type = e, 403 t 404} 405; 406Ue.createRef = function() { 407 return { 408 current: null 409 } 410} 411; 412Ue.forwardRef = function(e) { 413 return { 414 $$typeof: Q7, 415 render: e 416 } 417} 418; 419Ue.isValidElement = IS; 420Ue.lazy = function(e) { 421 return { 422 $$typeof: eq, 423 _payload: { 424 _status: -1, 425 _result: e 426 }, 427 _init: iq 428 } 429} 430; 431Ue.memo = function(e, t) { 432 return { 433 $$typeof: J7, 434 type: e, 435 compare: t === void 0 ? null : t 436 } 437} 438; 439Ue.startTransition = function(e) { 440 var t = Xp.transition; 441 Xp.transition = {}; 442 try { 443 e() 444 } finally { 445 Xp.transition = t 446 } 447} 448; 449Ue.unstable_act = y$; 450Ue.useCallback = function(e, t) { 451 return Vn.current.useCallback(e, t) 452} 453; 454Ue.useContext = function(e) { 455 return Vn.current.useContext(e) 456} 457; 458Ue.useDebugValue = function() {} 459; 460Ue.useDeferredValue = function(e) { 461 return Vn.current.useDeferredValue(e) 462} 463; 464Ue.useEffect = function(e, t) { 465 return Vn.current.useEffect(e, t) 466} 467; 468Ue.useId = function() { 469 return Vn.current.useId() 470} 471; 472Ue.useImperativeHandle = function(e, t, n) { 473 return Vn.current.useImperativeHandle(e, t, n) 474} 475; 476Ue.useInsertionEffect = function(e, t) { 477 return Vn.current.useInsertionEffect(e, t) 478} 479; 480Ue.useLayoutEffect = function(e, t) { 481 return Vn.current.useLayoutEffect(e, t) 482} 483; 484Ue.useMemo = function(e, t) { 485 return Vn.current.useMemo(e, t) 486} 487; 488Ue.useReducer = function(e, t, n) { 489 return Vn.current.useReducer(e, t, n) 490} 491; 492Ue.useRef = function(e) { 493 return Vn.current.useRef(e) 494} 495; 496Ue.useState = function(e) { 497 return Vn.current.useState(e) 498} 499; 500Ue.useSyncExternalStore = function(e, t, n) { 501 return Vn.current.useSyncExternalStore(e, t, n) 502} 503; 504Ue.useTransition = function() { 505 return Vn.current.useTransition() 506} 507; 508Ue.version = "18.3.1"; 509c$.exports = Ue; 510var b = c$.exports; 511const k = lt(b) 512 , v$ = W7({ 513 __proto__: null, 514 default: k 515}, [b]); 516/** 517 * @license React 518 * react-jsx-runtime.production.min.js 519 * 520 * Copyright (c) Facebook, Inc. and its affiliates. 521 * 522 * This source code is licensed under the MIT license found in the 523 * LICENSE file in the root directory of this source tree. 524 */ 525var aq = b 526 , sq = Symbol.for("react.element") 527 , lq = Symbol.for("react.fragment") 528 , cq = Object.prototype.hasOwnProperty 529 , uq = aq.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner 530 , dq = { 531 key: !0, 532 ref: !0, 533 __self: !0, 534 __source: !0 535}; 536function x$(e, t, n) { 537 var r, i = {}, o = null, a = null; 538 n !== void 0 && (o = "" + n), 539 t.key !== void 0 && (o = "" + t.key), 540 t.ref !== void 0 && (a = t.ref); 541 for (r in t) 542 cq.call(t, r) && !dq.hasOwnProperty(r) && (i[r] = t[r]); 543 if (e && e.defaultProps) 544 for (r in t = e.defaultProps, 545 t) 546 i[r] === void 0 && (i[r] = t[r]); 547 return { 548 $$typeof: sq, 549 type: e, 550 key: o, 551 ref: a, 552 props: i, 553 _owner: uq.current 554 } 555} 556Ey.Fragment = lq; 557Ey.jsx = x$; 558Ey.jsxs = x$; 559l$.exports = Ey;
vendor: 6,585 bytes, lines 560-822
560var h = l$.exports 561 , b$ = { 562 exports: {} 563} 564 , xr = {} 565 , w$ = { 566 exports: {} 567} 568 , S$ = {}; 569/** 570 * @license React 571 * scheduler.production.min.js 572 * 573 * Copyright (c) Facebook, Inc. and its affiliates. 574 * 575 * This source code is licensed under the MIT license found in the 576 * LICENSE file in the root directory of this source tree. 577 */ 578(function(e) { 579 function t(N, D) { 580 var W = N.length; 581 N.push(D); 582 e: for (; 0 < W; ) { 583 var K = W - 1 >>> 1 584 , G = N[K]; 585 if (0 < i(G, D)) 586 N[K] = D, 587 N[W] = G, 588 W = K; 589 else 590 break e 591 } 592 } 593 function n(N) { 594 return N.length === 0 ? null : N[0] 595 } 596 function r(N) { 597 if (N.length === 0) 598 return null; 599 var D = N[0] 600 , W = N.pop(); 601 if (W !== D) { 602 N[0] = W; 603 e: for (var K = 0, G = N.length, ae = G >>> 1; K < ae; ) { 604 var ve = 2 * (K + 1) - 1 605 , je = N[ve] 606 , Oe = ve + 1 607 , ie = N[Oe]; 608 if (0 > i(je, W)) 609 Oe < G && 0 > i(ie, je) ? (N[K] = ie, 610 N[Oe] = W, 611 K = Oe) : (N[K] = je, 612 N[ve] = W, 613 K = ve); 614 else if (Oe < G && 0 > i(ie, W)) 615 N[K] = ie, 616 N[Oe] = W, 617 K = Oe; 618 else 619 break e 620 } 621 } 622 return D 623 } 624 function i(N, D) { 625 var W = N.sortIndex - D.sortIndex; 626 return W !== 0 ? W : N.id - D.id 627 } 628 if (typeof performance == "object" && typeof performance.now == "function") { 629 var o = performance; 630 e.unstable_now = function() { 631 return o.now() 632 } 633 } else { 634 var a = Date 635 , s = a.now(); 636 e.unstable_now = function() { 637 return a.now() - s 638 } 639 } 640 var l = [] 641 , c = [] 642 , u = 1 643 , d = null 644 , f = 3 645 , p = !1 646 , g = !1 647 , m = !1 648 , x = typeof setTimeout == "function" ? setTimeout : null 649 , v = typeof clearTimeout == "function" ? clearTimeout : null 650 , y = typeof setImmediate < "u" ? setImmediate : null; 651 typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling); 652 function w(N) { 653 for (var D = n(c); D !== null; ) { 654 if (D.callback === null) 655 r(c); 656 else if (D.startTime <= N) 657 r(c), 658 D.sortIndex = D.expirationTime, 659 t(l, D); 660 else 661 break; 662 D = n(c) 663 } 664 } 665 function P(N) { 666 if (m = !1, 667 w(N), 668 !g) 669 if (n(l) !== null) 670 g = !0, 671 B(S); 672 else { 673 var D = n(c); 674 D !== null && U(P, D.startTime - N) 675 } 676 } 677 function S(N, D) { 678 g = !1, 679 m && (m = !1, 680 v(C), 681 C = -1), 682 p = !0; 683 var W = f; 684 try { 685 for (w(D), 686 d = n(l); d !== null && (!(d.expirationTime > D) || N && !E()); ) { 687 var K = d.callback; 688 if (typeof K == "function") { 689 d.callback = null, 690 f = d.priorityLevel; 691 var G = K(d.expirationTime <= D); 692 D = e.unstable_now(), 693 typeof G == "function" ? d.callback = G : d === n(l) && r(l), 694 w(D) 695 } else 696 r(l); 697 d = n(l) 698 } 699 if (d !== null) 700 var ae = !0; 701 else { 702 var ve = n(c); 703 ve !== null && U(P, ve.startTime - D), 704 ae = !1 705 } 706 return ae 707 } finally { 708 d = null, 709 f = W, 710 p = !1 711 } 712 } 713 var _ = !1 714 , T = null 715 , C = -1 716 , O = 5 717 , A = -1; 718 function E() { 719 return !(e.unstable_now() - A < O) 720 } 721 function j() { 722 if (T !== null) { 723 var N = e.unstable_now(); 724 A = N; 725 var D = !0; 726 try { 727 D = T(!0, N) 728 } finally { 729 D ? $() : (_ = !1, 730 T = null) 731 } 732 } else 733 _ = !1 734 } 735 var $; 736 if (typeof y == "function") 737 $ = function() { 738 y(j) 739 } 740 ; 741 else if (typeof MessageChannel < "u") { 742 var R = new MessageChannel 743 , L = R.port2; 744 R.port1.onmessage = j, 745 $ = function() { 746 L.postMessage(null) 747 } 748 } else 749 $ = function() { 750 x(j, 0) 751 } 752 ; 753 function B(N) { 754 T = N, 755 _ || (_ = !0, 756 $()) 757 } 758 function U(N, D) { 759 C = x(function() { 760 N(e.unstable_now()) 761 }, D) 762 } 763 e.unstable_IdlePriority = 5, 764 e.unstable_ImmediatePriority = 1, 765 e.unstable_LowPriority = 4, 766 e.unstable_NormalPriority = 3, 767 e.unstable_Profiling = null, 768 e.unstable_UserBlockingPriority = 2, 769 e.unstable_cancelCallback = function(N) { 770 N.callback = null 771 } 772 , 773 e.unstable_continueExecution = function() { 774 g || p || (g = !0, 775 B(S)) 776 } 777 , 778 e.unstable_forceFrameRate = function(N) { 779 0 > N || 125 < N ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : O = 0 < N ? Math.floor(1e3 / N) : 5 780 } 781 , 782 e.unstable_getCurrentPriorityLevel = function() { 783 return f 784 } 785 , 786 e.unstable_getFirstCallbackNode = function() { 787 return n(l) 788 } 789 , 790 e.unstable_next = function(N) { 791 switch (f) { 792 case 1: 793 case 2: 794 case 3: 795 var D = 3; 796 break; 797 default: 798 D = f 799 } 800 var W = f; 801 f = D; 802 try { 803 return N() 804 } finally { 805 f = W 806 } 807 } 808 , 809 e.unstable_pauseExecution = function() {} 810 , 811 e.unstable_requestPaint = function() {} 812 , 813 e.unstable_runWithPriority = function(N, D) { 814 switch (N) { 815 case 1: 816 case 2: 817 case 3: 818 case 4: 819 case 5: 820 break; 821 default: 822 N = 3
vendor: 11,752 bytes, lines 823-1164
823 } 824 var W = f; 825 f = N; 826 try { 827 return D() 828 } finally { 829 f = W 830 } 831 } 832 , 833 e.unstable_scheduleCallback = function(N, D, W) { 834 var K = e.unstable_now(); 835 switch (typeof W == "object" && W !== null ? (W = W.delay, 836 W = typeof W == "number" && 0 < W ? K + W : K) : W = K, 837 N) { 838 case 1: 839 var G = -1; 840 break; 841 case 2: 842 G = 250; 843 break; 844 case 5: 845 G = 1073741823; 846 break; 847 case 4: 848 G = 1e4; 849 break; 850 default: 851 G = 5e3 852 } 853 return G = W + G, 854 N = { 855 id: u++, 856 callback: D, 857 priorityLevel: N, 858 startTime: W, 859 expirationTime: G, 860 sortIndex: -1 861 }, 862 W > K ? (N.sortIndex = W, 863 t(c, N), 864 n(l) === null && N === n(c) && (m ? (v(C), 865 C = -1) : m = !0, 866 U(P, W - K))) : (N.sortIndex = G, 867 t(l, N), 868 g || p || (g = !0, 869 B(S))), 870 N 871 } 872 , 873 e.unstable_shouldYield = E, 874 e.unstable_wrapCallback = function(N) { 875 var D = f; 876 return function() { 877 var W = f; 878 f = D; 879 try { 880 return N.apply(this, arguments) 881 } finally { 882 f = W 883 } 884 } 885 } 886} 887)(S$); 888w$.exports = S$; 889var fq = w$.exports; 890/** 891 * @license React 892 * react-dom.production.min.js 893 * 894 * Copyright (c) Facebook, Inc. and its affiliates. 895 * 896 * This source code is licensed under the MIT license found in the 897 * LICENSE file in the root directory of this source tree. 898 */ 899var hq = b 900 , yr = fq; 901function J(e) { 902 for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) 903 t += "&args[]=" + encodeURIComponent(arguments[n]); 904 return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." 905} 906var P$ = new Set 907 , Vd = {}; 908function Xs(e, t) { 909 yc(e, t), 910 yc(e + "Capture", t) 911} 912function yc(e, t) { 913 for (Vd[e] = t, 914 e = 0; e < t.length; e++) 915 P$.add(t[e]) 916} 917var bo = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u") 918 , ob = Object.prototype.hasOwnProperty 919 , pq = /^[: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]*$/ 920 , DC = {} 921 , IC = {}; 922function mq(e) { 923 return ob.call(IC, e) ? !0 : ob.call(DC, e) ? !1 : pq.test(e) ? IC[e] = !0 : (DC[e] = !0, 924 !1) 925} 926function gq(e, t, n, r) { 927 if (n !== null && n.type === 0) 928 return !1; 929 switch (typeof t) { 930 case "function": 931 case "symbol": 932 return !0; 933 case "boolean": 934 return r ? !1 : n !== null ? !n.acceptsBooleans : (e = e.toLowerCase().slice(0, 5), 935 e !== "data-" && e !== "aria-"); 936 default: 937 return !1 938 } 939} 940function yq(e, t, n, r) { 941 if (t === null || typeof t > "u" || gq(e, t, n, r)) 942 return !0; 943 if (r) 944 return !1; 945 if (n !== null) 946 switch (n.type) { 947 case 3: 948 return !t; 949 case 4: 950 return t === !1; 951 case 5: 952 return isNaN(t); 953 case 6: 954 return isNaN(t) || 1 > t 955 } 956 return !1 957} 958function Un(e, t, n, r, i, o, a) { 959 this.acceptsBooleans = t === 2 || t === 3 || t === 4, 960 this.attributeName = r, 961 this.attributeNamespace = i, 962 this.mustUseProperty = n, 963 this.propertyName = e, 964 this.type = t, 965 this.sanitizeURL = o, 966 this.removeEmptyString = a 967} 968var bn = {}; 969"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) { 970 bn[e] = new Un(e,0,!1,e,null,!1,!1) 971}); 972[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) { 973 var t = e[0]; 974 bn[t] = new Un(t,1,!1,e[1],null,!1,!1) 975}); 976["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) { 977 bn[e] = new Un(e,2,!1,e.toLowerCase(),null,!1,!1) 978}); 979["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) { 980 bn[e] = new Un(e,2,!1,e,null,!1,!1) 981}); 982"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(e) { 983 bn[e] = new Un(e,3,!1,e.toLowerCase(),null,!1,!1) 984}); 985["checked", "multiple", "muted", "selected"].forEach(function(e) { 986 bn[e] = new Un(e,3,!0,e,null,!1,!1) 987}); 988["capture", "download"].forEach(function(e) { 989 bn[e] = new Un(e,4,!1,e,null,!1,!1) 990}); 991["cols", "rows", "size", "span"].forEach(function(e) { 992 bn[e] = new Un(e,6,!1,e,null,!1,!1) 993}); 994["rowSpan", "start"].forEach(function(e) { 995 bn[e] = new Un(e,5,!1,e.toLowerCase(),null,!1,!1) 996}); 997var $S = /[\-:]([a-z])/g; 998function LS(e) { 999 return e[1].toUpperCase() 1000} 1001"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(e) { 1002 var t = e.replace($S, LS); 1003 bn[t] = new Un(t,1,!1,e,null,!1,!1) 1004}); 1005"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) { 1006 var t = e.replace($S, LS); 1007 bn[t] = new Un(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1) 1008}); 1009["xml:base", "xml:lang", "xml:space"].forEach(function(e) { 1010 var t = e.replace($S, LS); 1011 bn[t] = new Un(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1) 1012}); 1013["tabIndex", "crossOrigin"].forEach(function(e) { 1014 bn[e] = new Un(e,1,!1,e.toLowerCase(),null,!1,!1) 1015}); 1016bn.xlinkHref = new Un("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1); 1017["src", "href", "action", "formAction"].forEach(function(e) { 1018 bn[e] = new Un(e,1,!1,e.toLowerCase(),null,!0,!0) 1019}); 1020function FS(e, t, n, r) { 1021 var i = bn.hasOwnProperty(t) ? bn[t] : null; 1022 (i !== null ? i.type !== 0 : r || !(2 < t.length) || t[0] !== "o" && t[0] !== "O" || t[1] !== "n" && t[1] !== "N") && (yq(t, n, i, r) && (n = null), 1023 r || i === null ? mq(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : i.mustUseProperty ? e[i.propertyName] = n === null ? i.type === 3 ? !1 : "" : n : (t = i.attributeName, 1024 r = i.attributeNamespace, 1025 n === null ? e.removeAttribute(t) : (i = i.type, 1026 n = i === 3 || i === 4 && n === !0 ? "" : "" + n, 1027 r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))) 1028} 1029var No = hq.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED 1030 , ip = Symbol.for("react.element") 1031 , xl = Symbol.for("react.portal") 1032 , bl = Symbol.for("react.fragment") 1033 , BS = Symbol.for("react.strict_mode") 1034 , ab = Symbol.for("react.profiler") 1035 , _$ = Symbol.for("react.provider") 1036 , T$ = Symbol.for("react.context") 1037 , VS = Symbol.for("react.forward_ref") 1038 , sb = Symbol.for("react.suspense") 1039 , lb = Symbol.for("react.suspense_list") 1040 , US = Symbol.for("react.memo") 1041 , qo = Symbol.for("react.lazy") 1042 , C$ = Symbol.for("react.offscreen") 1043 , $C = Symbol.iterator; 1044function Au(e) { 1045 return e === null || typeof e != "object" ? null : (e = $C && e[$C] || e["@@iterator"], 1046 typeof e == "function" ? e : null) 1047} 1048var jt = Object.assign, S0; 1049function ed(e) { 1050 if (S0 === void 0) 1051 try { 1052 throw Error() 1053 } catch (n) { 1054 var t = n.stack.trim().match(/\n( *(at )?)/); 1055 S0 = t && t[1] || "" 1056 } 1057 return ` 1058` + S0 + e 1059} 1060var P0 = !1; 1061function _0(e, t) { 1062 if (!e || P0) 1063 return ""; 1064 P0 = !0; 1065 var n = Error.prepareStackTrace; 1066 Error.prepareStackTrace = void 0; 1067 try { 1068 if (t) 1069 if (t = function() { 1070 throw Error() 1071 } 1072 , 1073 Object.defineProperty(t.prototype, "props", { 1074 set: function() { 1075 throw Error() 1076 } 1077 }), 1078 typeof Reflect == "object" && Reflect.construct) { 1079 try { 1080 Reflect.construct(t, []) 1081 } catch (c) { 1082 var r = c 1083 } 1084 Reflect.construct(e, [], t) 1085 } else { 1086 try { 1087 t.call() 1088 } catch (c) { 1089 r = c 1090 } 1091 e.call(t.prototype) 1092 } 1093 else { 1094 try { 1095 throw Error() 1096 } catch (c) { 1097 r = c 1098 } 1099 e() 1100 } 1101 } catch (c) { 1102 if (c && r && typeof c.stack == "string") { 1103 for (var i = c.stack.split(` 1104`), o = r.stack.split(` 1105`), a = i.length - 1, s = o.length - 1; 1 <= a && 0 <= s && i[a] !== o[s]; ) 1106 s--; 1107 for (; 1 <= a && 0 <= s; a--, 1108 s--) 1109 if (i[a] !== o[s]) { 1110 if (a !== 1 || s !== 1) 1111 do 1112 if (a--, 1113 s--, 1114 0 > s || i[a] !== o[s]) { 1115 var l = ` 1116` + i[a].replace(" at new ", " at "); 1117 return e.displayName && l.includes("<anonymous>") && (l = l.replace("<anonymous>", e.displayName)), 1118 l 1119 } 1120 while (1 <= a && 0 <= s); 1121 break 1122 } 1123 } 1124 } finally { 1125 P0 = !1, 1126 Error.prepareStackTrace = n 1127 } 1128 return (e = e ? e.displayName || e.name : "") ? ed(e) : "" 1129} 1130function vq(e) { 1131 switch (e.tag) { 1132 case 5: 1133 return ed(e.type); 1134 case 16: 1135 return ed("Lazy"); 1136 case 13: 1137 return ed("Suspense"); 1138 case 19: 1139 return ed("SuspenseList"); 1140 case 0: 1141 case 2: 1142 case 15: 1143 return e = _0(e.type, !1), 1144 e; 1145 case 11: 1146 return e = _0(e.type.render, !1), 1147 e; 1148 case 1: 1149 return e = _0(e.type, !0), 1150 e; 1151 default: 1152 return "" 1153 } 1154} 1155function cb(e) { 1156 if (e == null) 1157 return null; 1158 if (typeof e == "function") 1159 return e.displayName || e.name || null; 1160 if (typeof e == "string") 1161 return e; 1162 switch (e) { 1163 case bl: 1164 return "Fragment";
vendor: 10,008 bytes, lines 1165-1539
1165 case xl: 1166 return "Portal"; 1167 case ab: 1168 return "Profiler"; 1169 case BS: 1170 return "StrictMode"; 1171 case sb: 1172 return "Suspense"; 1173 case lb: 1174 return "SuspenseList" 1175 } 1176 if (typeof e == "object") 1177 switch (e.$$typeof) { 1178 case T$: 1179 return (e.displayName || "Context") + ".Consumer"; 1180 case _$: 1181 return (e._context.displayName || "Context") + ".Provider"; 1182 case VS: 1183 var t = e.render; 1184 return e = e.displayName, 1185 e || (e = t.displayName || t.name || "", 1186 e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), 1187 e; 1188 case US: 1189 return t = e.displayName || null, 1190 t !== null ? t : cb(e.type) || "Memo"; 1191 case qo: 1192 t = e._payload, 1193 e = e._init; 1194 try { 1195 return cb(e(t)) 1196 } catch {} 1197 } 1198 return null 1199} 1200function xq(e) { 1201 var t = e.type; 1202 switch (e.tag) { 1203 case 24: 1204 return "Cache"; 1205 case 9: 1206 return (t.displayName || "Context") + ".Consumer"; 1207 case 10: 1208 return (t._context.displayName || "Context") + ".Provider"; 1209 case 18: 1210 return "DehydratedFragment"; 1211 case 11: 1212 return e = t.render, 1213 e = e.displayName || e.name || "", 1214 t.displayName || (e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"); 1215 case 7: 1216 return "Fragment"; 1217 case 5: 1218 return t; 1219 case 4: 1220 return "Portal"; 1221 case 3: 1222 return "Root"; 1223 case 6: 1224 return "Text"; 1225 case 16: 1226 return cb(t); 1227 case 8: 1228 return t === BS ? "StrictMode" : "Mode"; 1229 case 22: 1230 return "Offscreen"; 1231 case 12: 1232 return "Profiler"; 1233 case 21: 1234 return "Scope"; 1235 case 13: 1236 return "Suspense"; 1237 case 19: 1238 return "SuspenseList"; 1239 case 25: 1240 return "TracingMarker"; 1241 case 1: 1242 case 0: 1243 case 17: 1244 case 2: 1245 case 14: 1246 case 15: 1247 if (typeof t == "function") 1248 return t.displayName || t.name || null; 1249 if (typeof t == "string") 1250 return t 1251 } 1252 return null 1253} 1254function Sa(e) { 1255 switch (typeof e) { 1256 case "boolean": 1257 case "number": 1258 case "string": 1259 case "undefined": 1260 return e; 1261 case "object": 1262 return e; 1263 default: 1264 return "" 1265 } 1266} 1267function O$(e) { 1268 var t = e.type; 1269 return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio") 1270} 1271function bq(e) { 1272 var t = O$(e) ? "checked" : "value" 1273 , n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t) 1274 , r = "" + e[t]; 1275 if (!e.hasOwnProperty(t) && typeof n < "u" && typeof n.get == "function" && typeof n.set == "function") { 1276 var i = n.get 1277 , o = n.set; 1278 return Object.defineProperty(e, t, { 1279 configurable: !0, 1280 get: function() { 1281 return i.call(this) 1282 }, 1283 set: function(a) { 1284 r = "" + a, 1285 o.call(this, a) 1286 } 1287 }), 1288 Object.defineProperty(e, t, { 1289 enumerable: n.enumerable 1290 }), 1291 { 1292 getValue: function() { 1293 return r 1294 }, 1295 setValue: function(a) { 1296 r = "" + a 1297 }, 1298 stopTracking: function() { 1299 e._valueTracker = null, 1300 delete e[t] 1301 } 1302 } 1303 } 1304} 1305function op(e) { 1306 e._valueTracker || (e._valueTracker = bq(e)) 1307} 1308function A$(e) { 1309 if (!e) 1310 return !1; 1311 var t = e._valueTracker; 1312 if (!t) 1313 return !0; 1314 var n = t.getValue() 1315 , r = ""; 1316 return e && (r = O$(e) ? e.checked ? "true" : "false" : e.value), 1317 e = r, 1318 e !== n ? (t.setValue(e), 1319 !0) : !1 1320} 1321function Sm(e) { 1322 if (e = e || (typeof document < "u" ? document : void 0), 1323 typeof e > "u") 1324 return null; 1325 try { 1326 return e.activeElement || e.body 1327 } catch { 1328 return e.body 1329 } 1330} 1331function ub(e, t) { 1332 var n = t.checked; 1333 return jt({}, t, { 1334 defaultChecked: void 0, 1335 defaultValue: void 0, 1336 value: void 0, 1337 checked: n ?? e._wrapperState.initialChecked 1338 }) 1339} 1340function LC(e, t) { 1341 var n = t.defaultValue == null ? "" : t.defaultValue 1342 , r = t.checked != null ? t.checked : t.defaultChecked; 1343 n = Sa(t.value != null ? t.value : n), 1344 e._wrapperState = { 1345 initialChecked: r, 1346 initialValue: n, 1347 controlled: t.type === "checkbox" || t.type === "radio" ? t.checked != null : t.value != null 1348 } 1349} 1350function E$(e, t) { 1351 t = t.checked, 1352 t != null && FS(e, "checked", t, !1) 1353} 1354function db(e, t) { 1355 E$(e, t); 1356 var n = Sa(t.value) 1357 , r = t.type; 1358 if (n != null) 1359 r === "number" ? (n === 0 && e.value === "" || e.value != n) && (e.value = "" + n) : e.value !== "" + n && (e.value = "" + n); 1360 else if (r === "submit" || r === "reset") { 1361 e.removeAttribute("value"); 1362 return 1363 } 1364 t.hasOwnProperty("value") ? fb(e, t.type, n) : t.hasOwnProperty("defaultValue") && fb(e, t.type, Sa(t.defaultValue)), 1365 t.checked == null && t.defaultChecked != null && (e.defaultChecked = !!t.defaultChecked) 1366} 1367function FC(e, t, n) { 1368 if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) { 1369 var r = t.type; 1370 if (!(r !== "submit" && r !== "reset" || t.value !== void 0 && t.value !== null)) 1371 return; 1372 t = "" + e._wrapperState.initialValue, 1373 n || t === e.value || (e.value = t), 1374 e.defaultValue = t 1375 } 1376 n = e.name, 1377 n !== "" && (e.name = ""), 1378 e.defaultChecked = !!e._wrapperState.initialChecked, 1379 n !== "" && (e.name = n) 1380} 1381function fb(e, t, n) { 1382 (t !== "number" || Sm(e.ownerDocument) !== e) && (n == null ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + n && (e.defaultValue = "" + n)) 1383} 1384var td = Array.isArray; 1385function Bl(e, t, n, r) { 1386 if (e = e.options, 1387 t) { 1388 t = {}; 1389 for (var i = 0; i < n.length; i++) 1390 t["$" + n[i]] = !0; 1391 for (n = 0; n < e.length; n++) 1392 i = t.hasOwnProperty("$" + e[n].value), 1393 e[n].selected !== i && (e[n].selected = i), 1394 i && r && (e[n].defaultSelected = !0) 1395 } else { 1396 for (n = "" + Sa(n), 1397 t = null, 1398 i = 0; i < e.length; i++) { 1399 if (e[i].value === n) { 1400 e[i].selected = !0, 1401 r && (e[i].defaultSelected = !0); 1402 return 1403 } 1404 t !== null || e[i].disabled || (t = e[i]) 1405 } 1406 t !== null && (t.selected = !0) 1407 } 1408} 1409function hb(e, t) { 1410 if (t.dangerouslySetInnerHTML != null) 1411 throw Error(J(91)); 1412 return jt({}, t, { 1413 value: void 0, 1414 defaultValue: void 0, 1415 children: "" + e._wrapperState.initialValue 1416 }) 1417} 1418function BC(e, t) { 1419 var n = t.value; 1420 if (n == null) { 1421 if (n = t.children, 1422 t = t.defaultValue, 1423 n != null) { 1424 if (t != null) 1425 throw Error(J(92)); 1426 if (td(n)) { 1427 if (1 < n.length) 1428 throw Error(J(93)); 1429 n = n[0] 1430 } 1431 t = n 1432 } 1433 t == null && (t = ""), 1434 n = t 1435 } 1436 e._wrapperState = { 1437 initialValue: Sa(n) 1438 } 1439} 1440function j$(e, t) { 1441 var n = Sa(t.value) 1442 , r = Sa(t.defaultValue); 1443 n != null && (n = "" + n, 1444 n !== e.value && (e.value = n), 1445 t.defaultValue == null && e.defaultValue !== n && (e.defaultValue = n)), 1446 r != null && (e.defaultValue = "" + r) 1447} 1448function VC(e) { 1449 var t = e.textContent; 1450 t === e._wrapperState.initialValue && t !== "" && t !== null && (e.value = t) 1451} 1452function N$(e) { 1453 switch (e) { 1454 case "svg": 1455 return "http://www.w3.org/2000/svg"; 1456 case "math": 1457 return "http://www.w3.org/1998/Math/MathML"; 1458 default: 1459 return "http://www.w3.org/1999/xhtml" 1460 } 1461} 1462function pb(e, t) { 1463 return e == null || e === "http://www.w3.org/1999/xhtml" ? N$(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http://www.w3.org/1999/xhtml" : e 1464} 1465var ap, M$ = function(e) { 1466 return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(t, n, r, i) { 1467 MSApp.execUnsafeLocalFunction(function() { 1468 return e(t, n, r, i) 1469 }) 1470 } 1471 : e 1472}(function(e, t) { 1473 if (e.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML"in e) 1474 e.innerHTML = t; 1475 else { 1476 for (ap = ap || document.createElement("div"), 1477 ap.innerHTML = "<svg>" + t.valueOf().toString() + "</svg>", 1478 t = ap.firstChild; e.firstChild; ) 1479 e.removeChild(e.firstChild); 1480 for (; t.firstChild; ) 1481 e.appendChild(t.firstChild) 1482 } 1483}); 1484function Ud(e, t) { 1485 if (t) { 1486 var n = e.firstChild; 1487 if (n && n === e.lastChild && n.nodeType === 3) { 1488 n.nodeValue = t; 1489 return 1490 } 1491 } 1492 e.textContent = t 1493} 1494var bd = { 1495 animationIterationCount: !0, 1496 aspectRatio: !0, 1497 borderImageOutset: !0, 1498 borderImageSlice: !0, 1499 borderImageWidth: !0, 1500 boxFlex: !0, 1501 boxFlexGroup: !0, 1502 boxOrdinalGroup: !0, 1503 columnCount: !0, 1504 columns: !0, 1505 flex: !0, 1506 flexGrow: !0, 1507 flexPositive: !0, 1508 flexShrink: !0, 1509 flexNegative: !0, 1510 flexOrder: !0, 1511 gridArea: !0, 1512 gridRow: !0, 1513 gridRowEnd: !0, 1514 gridRowSpan: !0, 1515 gridRowStart: !0, 1516 gridColumn: !0, 1517 gridColumnEnd: !0, 1518 gridColumnSpan: !0, 1519 gridColumnStart: !0, 1520 fontWeight: !0, 1521 lineClamp: !0, 1522 lineHeight: !0, 1523 opacity: !0, 1524 order: !0, 1525 orphans: !0, 1526 tabSize: !0, 1527 widows: !0, 1528 zIndex: !0, 1529 zoom: !0, 1530 fillOpacity: !0, 1531 floodOpacity: !0, 1532 stopOpacity: !0, 1533 strokeDasharray: !0, 1534 strokeDashoffset: !0, 1535 strokeMiterlimit: !0, 1536 strokeOpacity: !0, 1537 strokeWidth: !0 1538} 1539 , wq = ["Webkit", "ms", "Moz", "O"];
vendor: 4,308 bytes, lines 1540-1728
1540Object.keys(bd).forEach(function(e) { 1541 wq.forEach(function(t) { 1542 t = t + e.charAt(0).toUpperCase() + e.substring(1), 1543 bd[t] = bd[e] 1544 }) 1545}); 1546function k$(e, t, n) { 1547 return t == null || typeof t == "boolean" || t === "" ? "" : n || typeof t != "number" || t === 0 || bd.hasOwnProperty(e) && bd[e] ? ("" + t).trim() : t + "px" 1548} 1549function R$(e, t) { 1550 e = e.style; 1551 for (var n in t) 1552 if (t.hasOwnProperty(n)) { 1553 var r = n.indexOf("--") === 0 1554 , i = k$(n, t[n], r); 1555 n === "float" && (n = "cssFloat"), 1556 r ? e.setProperty(n, i) : e[n] = i 1557 } 1558} 1559var Sq = jt({ 1560 menuitem: !0 1561}, { 1562 area: !0, 1563 base: !0, 1564 br: !0, 1565 col: !0, 1566 embed: !0, 1567 hr: !0, 1568 img: !0, 1569 input: !0, 1570 keygen: !0, 1571 link: !0, 1572 meta: !0, 1573 param: !0, 1574 source: !0, 1575 track: !0, 1576 wbr: !0 1577}); 1578function mb(e, t) { 1579 if (t) { 1580 if (Sq[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) 1581 throw Error(J(137, e)); 1582 if (t.dangerouslySetInnerHTML != null) { 1583 if (t.children != null) 1584 throw Error(J(60)); 1585 if (typeof t.dangerouslySetInnerHTML != "object" || !("__html"in t.dangerouslySetInnerHTML)) 1586 throw Error(J(61)) 1587 } 1588 if (t.style != null && typeof t.style != "object") 1589 throw Error(J(62)) 1590 } 1591} 1592function gb(e, t) { 1593 if (e.indexOf("-") === -1) 1594 return typeof t.is == "string"; 1595 switch (e) { 1596 case "annotation-xml": 1597 case "color-profile": 1598 case "font-face": 1599 case "font-face-src": 1600 case "font-face-uri": 1601 case "font-face-format": 1602 case "font-face-name": 1603 case "missing-glyph": 1604 return !1; 1605 default: 1606 return !0 1607 } 1608} 1609var yb = null; 1610function zS(e) { 1611 return e = e.target || e.srcElement || window, 1612 e.correspondingUseElement && (e = e.correspondingUseElement), 1613 e.nodeType === 3 ? e.parentNode : e 1614} 1615var vb = null 1616 , Vl = null 1617 , Ul = null; 1618function UC(e) { 1619 if (e = Ph(e)) { 1620 if (typeof vb != "function") 1621 throw Error(J(280)); 1622 var t = e.stateNode; 1623 t && (t = Ry(t), 1624 vb(e.stateNode, e.type, t)) 1625 } 1626} 1627function D$(e) { 1628 Vl ? Ul ? Ul.push(e) : Ul = [e] : Vl = e 1629} 1630function I$() { 1631 if (Vl) { 1632 var e = Vl 1633 , t = Ul; 1634 if (Ul = Vl = null, 1635 UC(e), 1636 t) 1637 for (e = 0; e < t.length; e++) 1638 UC(t[e]) 1639 } 1640} 1641function $$(e, t) { 1642 return e(t) 1643} 1644function L$() {} 1645var T0 = !1; 1646function F$(e, t, n) { 1647 if (T0) 1648 return e(t, n); 1649 T0 = !0; 1650 try { 1651 return $$(e, t, n) 1652 } finally { 1653 T0 = !1, 1654 (Vl !== null || Ul !== null) && (L$(), 1655 I$()) 1656 } 1657} 1658function zd(e, t) { 1659 var n = e.stateNode; 1660 if (n === null) 1661 return null; 1662 var r = Ry(n); 1663 if (r === null) 1664 return null; 1665 n = r[t]; 1666 e: switch (t) { 1667 case "onClick": 1668 case "onClickCapture": 1669 case "onDoubleClick": 1670 case "onDoubleClickCapture": 1671 case "onMouseDown": 1672 case "onMouseDownCapture": 1673 case "onMouseMove": 1674 case "onMouseMoveCapture": 1675 case "onMouseUp": 1676 case "onMouseUpCapture": 1677 case "onMouseEnter": 1678 (r = !r.disabled) || (e = e.type, 1679 r = !(e === "button" || e === "input" || e === "select" || e === "textarea")), 1680 e = !r; 1681 break e; 1682 default: 1683 e = !1 1684 } 1685 if (e) 1686 return null; 1687 if (n && typeof n != "function") 1688 throw Error(J(231, t, typeof n)); 1689 return n 1690} 1691var xb = !1; 1692if (bo) 1693 try { 1694 var Eu = {}; 1695 Object.defineProperty(Eu, "passive", { 1696 get: function() { 1697 xb = !0 1698 } 1699 }), 1700 window.addEventListener("test", Eu, Eu), 1701 window.removeEventListener("test", Eu, Eu) 1702 } catch { 1703 xb = !1 1704 } 1705function Pq(e, t, n, r, i, o, a, s, l) { 1706 var c = Array.prototype.slice.call(arguments, 3); 1707 try { 1708 t.apply(n, c) 1709 } catch (u) { 1710 this.onError(u) 1711 } 1712} 1713var wd = !1 1714 , Pm = null 1715 , _m = !1 1716 , bb = null 1717 , _q = { 1718 onError: function(e) { 1719 wd = !0, 1720 Pm = e 1721 } 1722}; 1723function Tq(e, t, n, r, i, o, a, s, l) { 1724 wd = !1, 1725 Pm = null, 1726 Pq.apply(_q, arguments) 1727} 1728function Cq(e, t, n, r, i, o, a, s, l) {
vendor: 10,895 bytes, lines 1729-2188
1729 if (Tq.apply(this, arguments), 1730 wd) { 1731 if (wd) { 1732 var c = Pm; 1733 wd = !1, 1734 Pm = null 1735 } else 1736 throw Error(J(198)); 1737 _m || (_m = !0, 1738 bb = c) 1739 } 1740} 1741function Qs(e) { 1742 var t = e 1743 , n = e; 1744 if (e.alternate) 1745 for (; t.return; ) 1746 t = t.return; 1747 else { 1748 e = t; 1749 do 1750 t = e, 1751 t.flags & 4098 && (n = t.return), 1752 e = t.return; 1753 while (e) 1754 } 1755 return t.tag === 3 ? n : null 1756} 1757function B$(e) { 1758 if (e.tag === 13) { 1759 var t = e.memoizedState; 1760 if (t === null && (e = e.alternate, 1761 e !== null && (t = e.memoizedState)), 1762 t !== null) 1763 return t.dehydrated 1764 } 1765 return null 1766} 1767function zC(e) { 1768 if (Qs(e) !== e) 1769 throw Error(J(188)) 1770} 1771function Oq(e) { 1772 var t = e.alternate; 1773 if (!t) { 1774 if (t = Qs(e), 1775 t === null) 1776 throw Error(J(188)); 1777 return t !== e ? null : e 1778 } 1779 for (var n = e, r = t; ; ) { 1780 var i = n.return; 1781 if (i === null) 1782 break; 1783 var o = i.alternate; 1784 if (o === null) { 1785 if (r = i.return, 1786 r !== null) { 1787 n = r; 1788 continue 1789 } 1790 break 1791 } 1792 if (i.child === o.child) { 1793 for (o = i.child; o; ) { 1794 if (o === n) 1795 return zC(i), 1796 e; 1797 if (o === r) 1798 return zC(i), 1799 t; 1800 o = o.sibling 1801 } 1802 throw Error(J(188)) 1803 } 1804 if (n.return !== r.return) 1805 n = i, 1806 r = o; 1807 else { 1808 for (var a = !1, s = i.child; s; ) { 1809 if (s === n) { 1810 a = !0, 1811 n = i, 1812 r = o; 1813 break 1814 } 1815 if (s === r) { 1816 a = !0, 1817 r = i, 1818 n = o; 1819 break 1820 } 1821 s = s.sibling 1822 } 1823 if (!a) { 1824 for (s = o.child; s; ) { 1825 if (s === n) { 1826 a = !0, 1827 n = o, 1828 r = i; 1829 break 1830 } 1831 if (s === r) { 1832 a = !0, 1833 r = o, 1834 n = i; 1835 break 1836 } 1837 s = s.sibling 1838 } 1839 if (!a) 1840 throw Error(J(189)) 1841 } 1842 } 1843 if (n.alternate !== r) 1844 throw Error(J(190)) 1845 } 1846 if (n.tag !== 3) 1847 throw Error(J(188)); 1848 return n.stateNode.current === n ? e : t 1849} 1850function V$(e) { 1851 return e = Oq(e), 1852 e !== null ? U$(e) : null 1853} 1854function U$(e) { 1855 if (e.tag === 5 || e.tag === 6) 1856 return e; 1857 for (e = e.child; e !== null; ) { 1858 var t = U$(e); 1859 if (t !== null) 1860 return t; 1861 e = e.sibling 1862 } 1863 return null 1864} 1865var z$ = yr.unstable_scheduleCallback 1866 , WC = yr.unstable_cancelCallback 1867 , Aq = yr.unstable_shouldYield 1868 , Eq = yr.unstable_requestPaint 1869 , Vt = yr.unstable_now 1870 , jq = yr.unstable_getCurrentPriorityLevel 1871 , WS = yr.unstable_ImmediatePriority 1872 , W$ = yr.unstable_UserBlockingPriority 1873 , Tm = yr.unstable_NormalPriority 1874 , Nq = yr.unstable_LowPriority 1875 , H$ = yr.unstable_IdlePriority 1876 , jy = null 1877 , ki = null; 1878function Mq(e) { 1879 if (ki && typeof ki.onCommitFiberRoot == "function") 1880 try { 1881 ki.onCommitFiberRoot(jy, e, void 0, (e.current.flags & 128) === 128) 1882 } catch {} 1883} 1884var si = Math.clz32 ? Math.clz32 : Dq 1885 , kq = Math.log 1886 , Rq = Math.LN2; 1887function Dq(e) { 1888 return e >>>= 0, 1889 e === 0 ? 32 : 31 - (kq(e) / Rq | 0) | 0 1890} 1891var sp = 64 1892 , lp = 4194304; 1893function nd(e) { 1894 switch (e & -e) { 1895 case 1: 1896 return 1; 1897 case 2: 1898 return 2; 1899 case 4: 1900 return 4; 1901 case 8: 1902 return 8; 1903 case 16: 1904 return 16; 1905 case 32: 1906 return 32; 1907 case 64: 1908 case 128: 1909 case 256: 1910 case 512: 1911 case 1024: 1912 case 2048: 1913 case 4096: 1914 case 8192: 1915 case 16384: 1916 case 32768: 1917 case 65536: 1918 case 131072: 1919 case 262144: 1920 case 524288: 1921 case 1048576: 1922 case 2097152: 1923 return e & 4194240; 1924 case 4194304: 1925 case 8388608: 1926 case 16777216: 1927 case 33554432: 1928 case 67108864: 1929 return e & 130023424; 1930 case 134217728: 1931 return 134217728; 1932 case 268435456: 1933 return 268435456; 1934 case 536870912: 1935 return 536870912; 1936 case 1073741824: 1937 return 1073741824; 1938 default: 1939 return e 1940 } 1941} 1942function Cm(e, t) { 1943 var n = e.pendingLanes; 1944 if (n === 0) 1945 return 0; 1946 var r = 0 1947 , i = e.suspendedLanes 1948 , o = e.pingedLanes 1949 , a = n & 268435455; 1950 if (a !== 0) { 1951 var s = a & ~i; 1952 s !== 0 ? r = nd(s) : (o &= a, 1953 o !== 0 && (r = nd(o))) 1954 } else 1955 a = n & ~i, 1956 a !== 0 ? r = nd(a) : o !== 0 && (r = nd(o)); 1957 if (r === 0) 1958 return 0; 1959 if (t !== 0 && t !== r && !(t & i) && (i = r & -r, 1960 o = t & -t, 1961 i >= o || i === 16 && (o & 4194240) !== 0)) 1962 return t; 1963 if (r & 4 && (r |= n & 16), 1964 t = e.entangledLanes, 1965 t !== 0) 1966 for (e = e.entanglements, 1967 t &= r; 0 < t; ) 1968 n = 31 - si(t), 1969 i = 1 << n, 1970 r |= e[n], 1971 t &= ~i; 1972 return r 1973} 1974function Iq(e, t) { 1975 switch (e) { 1976 case 1: 1977 case 2: 1978 case 4: 1979 return t + 250; 1980 case 8: 1981 case 16: 1982 case 32: 1983 case 64: 1984 case 128: 1985 case 256: 1986 case 512: 1987 case 1024: 1988 case 2048: 1989 case 4096: 1990 case 8192: 1991 case 16384: 1992 case 32768: 1993 case 65536: 1994 case 131072: 1995 case 262144: 1996 case 524288: 1997 case 1048576: 1998 case 2097152: 1999 return t + 5e3; 2000 case 4194304: 2001 case 8388608: 2002 case 16777216: 2003 case 33554432: 2004 case 67108864: 2005 return -1; 2006 case 134217728: 2007 case 268435456: 2008 case 536870912: 2009 case 1073741824: 2010 return -1; 2011 default: 2012 return -1 2013 } 2014} 2015function $q(e, t) { 2016 for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, o = e.pendingLanes; 0 < o; ) { 2017 var a = 31 - si(o) 2018 , s = 1 << a 2019 , l = i[a]; 2020 l === -1 ? (!(s & n) || s & r) && (i[a] = Iq(s, t)) : l <= t && (e.expiredLanes |= s), 2021 o &= ~s 2022 } 2023} 2024function wb(e) { 2025 return e = e.pendingLanes & -1073741825, 2026 e !== 0 ? e : e & 1073741824 ? 1073741824 : 0 2027} 2028function q$() { 2029 var e = sp; 2030 return sp <<= 1, 2031 !(sp & 4194240) && (sp = 64), 2032 e 2033} 2034function C0(e) { 2035 for (var t = [], n = 0; 31 > n; n++) 2036 t.push(e); 2037 return t 2038} 2039function wh(e, t, n) { 2040 e.pendingLanes |= t, 2041 t !== 536870912 && (e.suspendedLanes = 0, 2042 e.pingedLanes = 0), 2043 e = e.eventTimes, 2044 t = 31 - si(t), 2045 e[t] = n 2046} 2047function Lq(e, t) { 2048 var n = e.pendingLanes & ~t; 2049 e.pendingLanes = t, 2050 e.suspendedLanes = 0, 2051 e.pingedLanes = 0, 2052 e.expiredLanes &= t, 2053 e.mutableReadLanes &= t, 2054 e.entangledLanes &= t, 2055 t = e.entanglements; 2056 var r = e.eventTimes; 2057 for (e = e.expirationTimes; 0 < n; ) { 2058 var i = 31 - si(n) 2059 , o = 1 << i; 2060 t[i] = 0, 2061 r[i] = -1, 2062 e[i] = -1, 2063 n &= ~o 2064 } 2065} 2066function HS(e, t) { 2067 var n = e.entangledLanes |= t; 2068 for (e = e.entanglements; n; ) { 2069 var r = 31 - si(n) 2070 , i = 1 << r; 2071 i & t | e[r] & t && (e[r] |= t), 2072 n &= ~i 2073 } 2074} 2075var rt = 0; 2076function K$(e) { 2077 return e &= -e, 2078 1 < e ? 4 < e ? e & 268435455 ? 16 : 536870912 : 4 : 1 2079} 2080var G$, qS, Y$, X$, Q$, Sb = !1, cp = [], da = null, fa = null, ha = null, Wd = new Map, Hd = new Map, Yo = [], Fq = "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(" "); 2081function HC(e, t) { 2082 switch (e) { 2083 case "focusin": 2084 case "focusout": 2085 da = null; 2086 break; 2087 case "dragenter": 2088 case "dragleave": 2089 fa = null; 2090 break; 2091 case "mouseover": 2092 case "mouseout": 2093 ha = null; 2094 break; 2095 case "pointerover": 2096 case "pointerout": 2097 Wd.delete(t.pointerId); 2098 break; 2099 case "gotpointercapture": 2100 case "lostpointercapture": 2101 Hd.delete(t.pointerId) 2102 } 2103} 2104function ju(e, t, n, r, i, o) { 2105 return e === null || e.nativeEvent !== o ? (e = { 2106 blockedOn: t, 2107 domEventName: n, 2108 eventSystemFlags: r, 2109 nativeEvent: o, 2110 targetContainers: [i] 2111 }, 2112 t !== null && (t = Ph(t), 2113 t !== null && qS(t)), 2114 e) : (e.eventSystemFlags |= r, 2115 t = e.targetContainers, 2116 i !== null && t.indexOf(i) === -1 && t.push(i), 2117 e) 2118} 2119function Bq(e, t, n, r, i) { 2120 switch (t) { 2121 case "focusin": 2122 return da = ju(da, e, t, n, r, i), 2123 !0; 2124 case "dragenter": 2125 return fa = ju(fa, e, t, n, r, i), 2126 !0; 2127 case "mouseover": 2128 return ha = ju(ha, e, t, n, r, i), 2129 !0; 2130 case "pointerover": 2131 var o = i.pointerId; 2132 return Wd.set(o, ju(Wd.get(o) || null, e, t, n, r, i)), 2133 !0; 2134 case "gotpointercapture": 2135 return o = i.pointerId, 2136 Hd.set(o, ju(Hd.get(o) || null, e, t, n, r, i)), 2137 !0 2138 } 2139 return !1 2140} 2141function Z$(e) { 2142 var t = ls(e.target); 2143 if (t !== null) { 2144 var n = Qs(t); 2145 if (n !== null) { 2146 if (t = n.tag, 2147 t === 13) { 2148 if (t = B$(n), 2149 t !== null) { 2150 e.blockedOn = t, 2151 Q$(e.priority, function() { 2152 Y$(n) 2153 }); 2154 return 2155 } 2156 } else if (t === 3 && n.stateNode.current.memoizedState.isDehydrated) { 2157 e.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null; 2158 return 2159 } 2160 } 2161 } 2162 e.blockedOn = null 2163} 2164function Qp(e) { 2165 if (e.blockedOn !== null) 2166 return !1; 2167 for (var t = e.targetContainers; 0 < t.length; ) { 2168 var n = Pb(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); 2169 if (n === null) { 2170 n = e.nativeEvent; 2171 var r = new n.constructor(n.type,n); 2172 yb = r, 2173 n.target.dispatchEvent(r), 2174 yb = null 2175 } else 2176 return t = Ph(n), 2177 t !== null && qS(t), 2178 e.blockedOn = n, 2179 !1; 2180 t.shift() 2181 } 2182 return !0 2183} 2184function qC(e, t, n) { 2185 Qp(e) && n.delete(t) 2186} 2187function Vq() { 2188 Sb = !1,
vendor: 18,395 bytes, lines 2189-2919
2189 da !== null && Qp(da) && (da = null), 2190 fa !== null && Qp(fa) && (fa = null), 2191 ha !== null && Qp(ha) && (ha = null), 2192 Wd.forEach(qC), 2193 Hd.forEach(qC) 2194} 2195function Nu(e, t) { 2196 e.blockedOn === t && (e.blockedOn = null, 2197 Sb || (Sb = !0, 2198 yr.unstable_scheduleCallback(yr.unstable_NormalPriority, Vq))) 2199} 2200function qd(e) { 2201 function t(i) { 2202 return Nu(i, e) 2203 } 2204 if (0 < cp.length) { 2205 Nu(cp[0], e); 2206 for (var n = 1; n < cp.length; n++) { 2207 var r = cp[n]; 2208 r.blockedOn === e && (r.blockedOn = null) 2209 } 2210 } 2211 for (da !== null && Nu(da, e), 2212 fa !== null && Nu(fa, e), 2213 ha !== null && Nu(ha, e), 2214 Wd.forEach(t), 2215 Hd.forEach(t), 2216 n = 0; n < Yo.length; n++) 2217 r = Yo[n], 2218 r.blockedOn === e && (r.blockedOn = null); 2219 for (; 0 < Yo.length && (n = Yo[0], 2220 n.blockedOn === null); ) 2221 Z$(n), 2222 n.blockedOn === null && Yo.shift() 2223} 2224var zl = No.ReactCurrentBatchConfig 2225 , Om = !0; 2226function Uq(e, t, n, r) { 2227 var i = rt 2228 , o = zl.transition; 2229 zl.transition = null; 2230 try { 2231 rt = 1, 2232 KS(e, t, n, r) 2233 } finally { 2234 rt = i, 2235 zl.transition = o 2236 } 2237} 2238function zq(e, t, n, r) { 2239 var i = rt 2240 , o = zl.transition; 2241 zl.transition = null; 2242 try { 2243 rt = 4, 2244 KS(e, t, n, r) 2245 } finally { 2246 rt = i, 2247 zl.transition = o 2248 } 2249} 2250function KS(e, t, n, r) { 2251 if (Om) { 2252 var i = Pb(e, t, n, r); 2253 if (i === null) 2254 I0(e, t, r, Am, n), 2255 HC(e, r); 2256 else if (Bq(i, e, t, n, r)) 2257 r.stopPropagation(); 2258 else if (HC(e, r), 2259 t & 4 && -1 < Fq.indexOf(e)) { 2260 for (; i !== null; ) { 2261 var o = Ph(i); 2262 if (o !== null && G$(o), 2263 o = Pb(e, t, n, r), 2264 o === null && I0(e, t, r, Am, n), 2265 o === i) 2266 break; 2267 i = o 2268 } 2269 i !== null && r.stopPropagation() 2270 } else 2271 I0(e, t, r, null, n) 2272 } 2273} 2274var Am = null; 2275function Pb(e, t, n, r) { 2276 if (Am = null, 2277 e = zS(r), 2278 e = ls(e), 2279 e !== null) 2280 if (t = Qs(e), 2281 t === null) 2282 e = null; 2283 else if (n = t.tag, 2284 n === 13) { 2285 if (e = B$(t), 2286 e !== null) 2287 return e; 2288 e = null 2289 } else if (n === 3) { 2290 if (t.stateNode.current.memoizedState.isDehydrated) 2291 return t.tag === 3 ? t.stateNode.containerInfo : null; 2292 e = null 2293 } else 2294 t !== e && (e = null); 2295 return Am = e, 2296 null 2297} 2298function J$(e) { 2299 switch (e) { 2300 case "cancel": 2301 case "click": 2302 case "close": 2303 case "contextmenu": 2304 case "copy": 2305 case "cut": 2306 case "auxclick": 2307 case "dblclick": 2308 case "dragend": 2309 case "dragstart": 2310 case "drop": 2311 case "focusin": 2312 case "focusout": 2313 case "input": 2314 case "invalid": 2315 case "keydown": 2316 case "keypress": 2317 case "keyup": 2318 case "mousedown": 2319 case "mouseup": 2320 case "paste": 2321 case "pause": 2322 case "play": 2323 case "pointercancel": 2324 case "pointerdown": 2325 case "pointerup": 2326 case "ratechange": 2327 case "reset": 2328 case "resize": 2329 case "seeked": 2330 case "submit": 2331 case "touchcancel": 2332 case "touchend": 2333 case "touchstart": 2334 case "volumechange": 2335 case "change": 2336 case "selectionchange": 2337 case "textInput": 2338 case "compositionstart": 2339 case "compositionend": 2340 case "compositionupdate": 2341 case "beforeblur": 2342 case "afterblur": 2343 case "beforeinput": 2344 case "blur": 2345 case "fullscreenchange": 2346 case "focus": 2347 case "hashchange": 2348 case "popstate": 2349 case "select": 2350 case "selectstart": 2351 return 1; 2352 case "drag": 2353 case "dragenter": 2354 case "dragexit": 2355 case "dragleave": 2356 case "dragover": 2357 case "mousemove": 2358 case "mouseout": 2359 case "mouseover": 2360 case "pointermove": 2361 case "pointerout": 2362 case "pointerover": 2363 case "scroll": 2364 case "toggle": 2365 case "touchmove": 2366 case "wheel": 2367 case "mouseenter": 2368 case "mouseleave": 2369 case "pointerenter": 2370 case "pointerleave": 2371 return 4; 2372 case "message": 2373 switch (jq()) { 2374 case WS: 2375 return 1; 2376 case W$: 2377 return 4; 2378 case Tm: 2379 case Nq: 2380 return 16; 2381 case H$: 2382 return 536870912; 2383 default: 2384 return 16 2385 } 2386 default: 2387 return 16 2388 } 2389} 2390var la = null 2391 , GS = null 2392 , Zp = null; 2393function eL() { 2394 if (Zp) 2395 return Zp; 2396 var e, t = GS, n = t.length, r, i = "value"in la ? la.value : la.textContent, o = i.length; 2397 for (e = 0; e < n && t[e] === i[e]; e++) 2398 ; 2399 var a = n - e; 2400 for (r = 1; r <= a && t[n - r] === i[o - r]; r++) 2401 ; 2402 return Zp = i.slice(e, 1 < r ? 1 - r : void 0) 2403} 2404function Jp(e) { 2405 var t = e.keyCode; 2406 return "charCode"in e ? (e = e.charCode, 2407 e === 0 && t === 13 && (e = 13)) : e = t, 2408 e === 10 && (e = 13), 2409 32 <= e || e === 13 ? e : 0 2410} 2411function up() { 2412 return !0 2413} 2414function KC() { 2415 return !1 2416} 2417function br(e) { 2418 function t(n, r, i, o, a) { 2419 this._reactName = n, 2420 this._targetInst = i, 2421 this.type = r, 2422 this.nativeEvent = o, 2423 this.target = a, 2424 this.currentTarget = null; 2425 for (var s in e) 2426 e.hasOwnProperty(s) && (n = e[s], 2427 this[s] = n ? n(o) : o[s]); 2428 return this.isDefaultPrevented = (o.defaultPrevented != null ? o.defaultPrevented : o.returnValue === !1) ? up : KC, 2429 this.isPropagationStopped = KC, 2430 this 2431 } 2432 return jt(t.prototype, { 2433 preventDefault: function() { 2434 this.defaultPrevented = !0; 2435 var n = this.nativeEvent; 2436 n && (n.preventDefault ? n.preventDefault() : typeof n.returnValue != "unknown" && (n.returnValue = !1), 2437 this.isDefaultPrevented = up) 2438 }, 2439 stopPropagation: function() { 2440 var n = this.nativeEvent; 2441 n && (n.stopPropagation ? n.stopPropagation() : typeof n.cancelBubble != "unknown" && (n.cancelBubble = !0), 2442 this.isPropagationStopped = up) 2443 }, 2444 persist: function() {}, 2445 isPersistent: up 2446 }), 2447 t 2448} 2449var nu = { 2450 eventPhase: 0, 2451 bubbles: 0, 2452 cancelable: 0, 2453 timeStamp: function(e) { 2454 return e.timeStamp || Date.now() 2455 }, 2456 defaultPrevented: 0, 2457 isTrusted: 0 2458}, YS = br(nu), Sh = jt({}, nu, { 2459 view: 0, 2460 detail: 0 2461}), Wq = br(Sh), O0, A0, Mu, Ny = jt({}, Sh, { 2462 screenX: 0, 2463 screenY: 0, 2464 clientX: 0, 2465 clientY: 0, 2466 pageX: 0, 2467 pageY: 0, 2468 ctrlKey: 0, 2469 shiftKey: 0, 2470 altKey: 0, 2471 metaKey: 0, 2472 getModifierState: XS, 2473 button: 0, 2474 buttons: 0, 2475 relatedTarget: function(e) { 2476 return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget 2477 }, 2478 movementX: function(e) { 2479 return "movementX"in e ? e.movementX : (e !== Mu && (Mu && e.type === "mousemove" ? (O0 = e.screenX - Mu.screenX, 2480 A0 = e.screenY - Mu.screenY) : A0 = O0 = 0, 2481 Mu = e), 2482 O0) 2483 }, 2484 movementY: function(e) { 2485 return "movementY"in e ? e.movementY : A0 2486 } 2487}), GC = br(Ny), Hq = jt({}, Ny, { 2488 dataTransfer: 0 2489}), qq = br(Hq), Kq = jt({}, Sh, { 2490 relatedTarget: 0 2491}), E0 = br(Kq), Gq = jt({}, nu, { 2492 animationName: 0, 2493 elapsedTime: 0, 2494 pseudoElement: 0 2495}), Yq = br(Gq), Xq = jt({}, nu, { 2496 clipboardData: function(e) { 2497 return "clipboardData"in e ? e.clipboardData : window.clipboardData 2498 } 2499}), Qq = br(Xq), Zq = jt({}, nu, { 2500 data: 0 2501}), YC = br(Zq), Jq = { 2502 Esc: "Escape", 2503 Spacebar: " ", 2504 Left: "ArrowLeft", 2505 Up: "ArrowUp", 2506 Right: "ArrowRight", 2507 Down: "ArrowDown", 2508 Del: "Delete", 2509 Win: "OS", 2510 Menu: "ContextMenu", 2511 Apps: "ContextMenu", 2512 Scroll: "ScrollLock", 2513 MozPrintableKey: "Unidentified" 2514}, eK = { 2515 8: "Backspace", 2516 9: "Tab", 2517 12: "Clear", 2518 13: "Enter", 2519 16: "Shift", 2520 17: "Control", 2521 18: "Alt", 2522 19: "Pause", 2523 20: "CapsLock", 2524 27: "Escape", 2525 32: " ", 2526 33: "PageUp", 2527 34: "PageDown", 2528 35: "End", 2529 36: "Home", 2530 37: "ArrowLeft", 2531 38: "ArrowUp", 2532 39: "ArrowRight", 2533 40: "ArrowDown", 2534 45: "Insert", 2535 46: "Delete", 2536 112: "F1", 2537 113: "F2", 2538 114: "F3", 2539 115: "F4", 2540 116: "F5", 2541 117: "F6", 2542 118: "F7", 2543 119: "F8", 2544 120: "F9", 2545 121: "F10", 2546 122: "F11", 2547 123: "F12", 2548 144: "NumLock", 2549 145: "ScrollLock", 2550 224: "Meta" 2551}, tK = { 2552 Alt: "altKey", 2553 Control: "ctrlKey", 2554 Meta: "metaKey", 2555 Shift: "shiftKey" 2556}; 2557function nK(e) { 2558 var t = this.nativeEvent; 2559 return t.getModifierState ? t.getModifierState(e) : (e = tK[e]) ? !!t[e] : !1 2560} 2561function XS() { 2562 return nK 2563} 2564var rK = jt({}, Sh, { 2565 key: function(e) { 2566 if (e.key) { 2567 var t = Jq[e.key] || e.key; 2568 if (t !== "Unidentified") 2569 return t 2570 } 2571 return e.type === "keypress" ? (e = Jp(e), 2572 e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? eK[e.keyCode] || "Unidentified" : "" 2573 }, 2574 code: 0, 2575 location: 0, 2576 ctrlKey: 0, 2577 shiftKey: 0, 2578 altKey: 0, 2579 metaKey: 0, 2580 repeat: 0, 2581 locale: 0, 2582 getModifierState: XS, 2583 charCode: function(e) { 2584 return e.type === "keypress" ? Jp(e) : 0 2585 }, 2586 keyCode: function(e) { 2587 return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0 2588 }, 2589 which: function(e) { 2590 return e.type === "keypress" ? Jp(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0 2591 } 2592}) 2593 , iK = br(rK) 2594 , oK = jt({}, Ny, { 2595 pointerId: 0, 2596 width: 0, 2597 height: 0, 2598 pressure: 0, 2599 tangentialPressure: 0, 2600 tiltX: 0, 2601 tiltY: 0, 2602 twist: 0, 2603 pointerType: 0, 2604 isPrimary: 0 2605}) 2606 , XC = br(oK) 2607 , aK = jt({}, Sh, { 2608 touches: 0, 2609 targetTouches: 0, 2610 changedTouches: 0, 2611 altKey: 0, 2612 metaKey: 0, 2613 ctrlKey: 0, 2614 shiftKey: 0, 2615 getModifierState: XS 2616}) 2617 , sK = br(aK) 2618 , lK = jt({}, nu, { 2619 propertyName: 0, 2620 elapsedTime: 0, 2621 pseudoElement: 0 2622}) 2623 , cK = br(lK) 2624 , uK = jt({}, Ny, { 2625 deltaX: function(e) { 2626 return "deltaX"in e ? e.deltaX : "wheelDeltaX"in e ? -e.wheelDeltaX : 0 2627 }, 2628 deltaY: function(e) { 2629 return "deltaY"in e ? e.deltaY : "wheelDeltaY"in e ? -e.wheelDeltaY : "wheelDelta"in e ? -e.wheelDelta : 0 2630 }, 2631 deltaZ: 0, 2632 deltaMode: 0 2633}) 2634 , dK = br(uK) 2635 , fK = [9, 13, 27, 32] 2636 , QS = bo && "CompositionEvent"in window 2637 , Sd = null; 2638bo && "documentMode"in document && (Sd = document.documentMode); 2639var hK = bo && "TextEvent"in window && !Sd 2640 , tL = bo && (!QS || Sd && 8 < Sd && 11 >= Sd) 2641 , QC = " " 2642 , ZC = !1; 2643function nL(e, t) { 2644 switch (e) { 2645 case "keyup": 2646 return fK.indexOf(t.keyCode) !== -1; 2647 case "keydown": 2648 return t.keyCode !== 229; 2649 case "keypress": 2650 case "mousedown": 2651 case "focusout": 2652 return !0; 2653 default: 2654 return !1 2655 } 2656} 2657function rL(e) { 2658 return e = e.detail, 2659 typeof e == "object" && "data"in e ? e.data : null 2660} 2661var wl = !1; 2662function pK(e, t) { 2663 switch (e) { 2664 case "compositionend": 2665 return rL(t); 2666 case "keypress": 2667 return t.which !== 32 ? null : (ZC = !0, 2668 QC); 2669 case "textInput": 2670 return e = t.data, 2671 e === QC && ZC ? null : e; 2672 default: 2673 return null 2674 } 2675} 2676function mK(e, t) { 2677 if (wl) 2678 return e === "compositionend" || !QS && nL(e, t) ? (e = eL(), 2679 Zp = GS = la = null, 2680 wl = !1, 2681 e) : null; 2682 switch (e) { 2683 case "paste": 2684 return null; 2685 case "keypress": 2686 if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) { 2687 if (t.char && 1 < t.char.length) 2688 return t.char; 2689 if (t.which) 2690 return String.fromCharCode(t.which) 2691 } 2692 return null; 2693 case "compositionend": 2694 return tL && t.locale !== "ko" ? null : t.data; 2695 default: 2696 return null 2697 } 2698} 2699var gK = { 2700 color: !0, 2701 date: !0, 2702 datetime: !0, 2703 "datetime-local": !0, 2704 email: !0, 2705 month: !0, 2706 number: !0, 2707 password: !0, 2708 range: !0, 2709 search: !0, 2710 tel: !0, 2711 text: !0, 2712 time: !0, 2713 url: !0, 2714 week: !0 2715}; 2716function JC(e) { 2717 var t = e && e.nodeName && e.nodeName.toLowerCase(); 2718 return t === "input" ? !!gK[e.type] : t === "textarea" 2719} 2720function iL(e, t, n, r) { 2721 D$(r), 2722 t = Em(t, "onChange"), 2723 0 < t.length && (n = new YS("onChange","change",null,n,r), 2724 e.push({ 2725 event: n, 2726 listeners: t 2727 })) 2728} 2729var Pd = null 2730 , Kd = null; 2731function yK(e) { 2732 mL(e, 0) 2733} 2734function My(e) { 2735 var t = _l(e); 2736 if (A$(t)) 2737 return e 2738} 2739function vK(e, t) { 2740 if (e === "change") 2741 return t 2742} 2743var oL = !1; 2744if (bo) { 2745 var j0; 2746 if (bo) { 2747 var N0 = "oninput"in document; 2748 if (!N0) { 2749 var eO = document.createElement("div"); 2750 eO.setAttribute("oninput", "return;"), 2751 N0 = typeof eO.oninput == "function" 2752 } 2753 j0 = N0 2754 } else 2755 j0 = !1; 2756 oL = j0 && (!document.documentMode || 9 < document.documentMode) 2757} 2758function tO() { 2759 Pd && (Pd.detachEvent("onpropertychange", aL), 2760 Kd = Pd = null) 2761} 2762function aL(e) { 2763 if (e.propertyName === "value" && My(Kd)) { 2764 var t = []; 2765 iL(t, Kd, e, zS(e)), 2766 F$(yK, t) 2767 } 2768} 2769function xK(e, t, n) { 2770 e === "focusin" ? (tO(), 2771 Pd = t, 2772 Kd = n, 2773 Pd.attachEvent("onpropertychange", aL)) : e === "focusout" && tO() 2774} 2775function bK(e) { 2776 if (e === "selectionchange" || e === "keyup" || e === "keydown") 2777 return My(Kd) 2778} 2779function wK(e, t) { 2780 if (e === "click") 2781 return My(t) 2782} 2783function SK(e, t) { 2784 if (e === "input" || e === "change") 2785 return My(t) 2786} 2787function PK(e, t) { 2788 return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t 2789} 2790var hi = typeof Object.is == "function" ? Object.is : PK; 2791function Gd(e, t) { 2792 if (hi(e, t)) 2793 return !0; 2794 if (typeof e != "object" || e === null || typeof t != "object" || t === null) 2795 return !1; 2796 var n = Object.keys(e) 2797 , r = Object.keys(t); 2798 if (n.length !== r.length) 2799 return !1; 2800 for (r = 0; r < n.length; r++) { 2801 var i = n[r]; 2802 if (!ob.call(t, i) || !hi(e[i], t[i])) 2803 return !1 2804 } 2805 return !0 2806} 2807function nO(e) { 2808 for (; e && e.firstChild; ) 2809 e = e.firstChild; 2810 return e 2811} 2812function rO(e, t) { 2813 var n = nO(e); 2814 e = 0; 2815 for (var r; n; ) { 2816 if (n.nodeType === 3) { 2817 if (r = e + n.textContent.length, 2818 e <= t && r >= t) 2819 return { 2820 node: n, 2821 offset: t - e 2822 }; 2823 e = r 2824 } 2825 e: { 2826 for (; n; ) { 2827 if (n.nextSibling) { 2828 n = n.nextSibling; 2829 break e 2830 } 2831 n = n.parentNode 2832 } 2833 n = void 0 2834 } 2835 n = nO(n) 2836 } 2837} 2838function sL(e, t) { 2839 return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? sL(e, t.parentNode) : "contains"in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1 2840} 2841function lL() { 2842 for (var e = window, t = Sm(); t instanceof e.HTMLIFrameElement; ) { 2843 try { 2844 var n = typeof t.contentWindow.location.href == "string" 2845 } catch { 2846 n = !1 2847 } 2848 if (n) 2849 e = t.contentWindow; 2850 else 2851 break; 2852 t = Sm(e.document) 2853 } 2854 return t 2855} 2856function ZS(e) { 2857 var t = e && e.nodeName && e.nodeName.toLowerCase(); 2858 return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true") 2859} 2860function _K(e) { 2861 var t = lL() 2862 , n = e.focusedElem 2863 , r = e.selectionRange; 2864 if (t !== n && n && n.ownerDocument && sL(n.ownerDocument.documentElement, n)) { 2865 if (r !== null && ZS(n)) { 2866 if (t = r.start, 2867 e = r.end, 2868 e === void 0 && (e = t), 2869 "selectionStart"in n) 2870 n.selectionStart = t, 2871 n.selectionEnd = Math.min(e, n.value.length); 2872 else if (e = (t = n.ownerDocument || document) && t.defaultView || window, 2873 e.getSelection) { 2874 e = e.getSelection(); 2875 var i = n.textContent.length 2876 , o = Math.min(r.start, i); 2877 r = r.end === void 0 ? o : Math.min(r.end, i), 2878 !e.extend && o > r && (i = r, 2879 r = o, 2880 o = i), 2881 i = rO(n, o); 2882 var a = rO(n, r); 2883 i && a && (e.rangeCount !== 1 || e.anchorNode !== i.node || e.anchorOffset !== i.offset || e.focusNode !== a.node || e.focusOffset !== a.offset) && (t = t.createRange(), 2884 t.setStart(i.node, i.offset), 2885 e.removeAllRanges(), 2886 o > r ? (e.addRange(t), 2887 e.extend(a.node, a.offset)) : (t.setEnd(a.node, a.offset), 2888 e.addRange(t))) 2889 } 2890 } 2891 for (t = [], 2892 e = n; e = e.parentNode; ) 2893 e.nodeType === 1 && t.push({ 2894 element: e, 2895 left: e.scrollLeft, 2896 top: e.scrollTop 2897 }); 2898 for (typeof n.focus == "function" && n.focus(), 2899 n = 0; n < t.length; n++) 2900 e = t[n], 2901 e.element.scrollLeft = e.left, 2902 e.element.scrollTop = e.top 2903 } 2904} 2905var TK = bo && "documentMode"in document && 11 >= document.documentMode 2906 , Sl = null 2907 , _b = null 2908 , _d = null 2909 , Tb = !1; 2910function iO(e, t, n) { 2911 var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument; 2912 Tb || Sl == null || Sl !== Sm(r) || (r = Sl, 2913 "selectionStart"in r && ZS(r) ? r = { 2914 start: r.selectionStart, 2915 end: r.selectionEnd 2916 } : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), 2917 r = { 2918 anchorNode: r.anchorNode, 2919 anchorOffset: r.anchorOffset,
vendor: 4,190 bytes, lines 2920-3021
2920 focusNode: r.focusNode, 2921 focusOffset: r.focusOffset 2922 }), 2923 _d && Gd(_d, r) || (_d = r, 2924 r = Em(_b, "onSelect"), 2925 0 < r.length && (t = new YS("onSelect","select",null,t,n), 2926 e.push({ 2927 event: t, 2928 listeners: r 2929 }), 2930 t.target = Sl))) 2931} 2932function dp(e, t) { 2933 var n = {}; 2934 return n[e.toLowerCase()] = t.toLowerCase(), 2935 n["Webkit" + e] = "webkit" + t, 2936 n["Moz" + e] = "moz" + t, 2937 n 2938} 2939var Pl = { 2940 animationend: dp("Animation", "AnimationEnd"), 2941 animationiteration: dp("Animation", "AnimationIteration"), 2942 animationstart: dp("Animation", "AnimationStart"), 2943 transitionend: dp("Transition", "TransitionEnd") 2944} 2945 , M0 = {} 2946 , cL = {}; 2947bo && (cL = document.createElement("div").style, 2948"AnimationEvent"in window || (delete Pl.animationend.animation, 2949delete Pl.animationiteration.animation, 2950delete Pl.animationstart.animation), 2951"TransitionEvent"in window || delete Pl.transitionend.transition); 2952function ky(e) { 2953 if (M0[e]) 2954 return M0[e]; 2955 if (!Pl[e]) 2956 return e; 2957 var t = Pl[e], n; 2958 for (n in t) 2959 if (t.hasOwnProperty(n) && n in cL) 2960 return M0[e] = t[n]; 2961 return e 2962} 2963var uL = ky("animationend") 2964 , dL = ky("animationiteration") 2965 , fL = ky("animationstart") 2966 , hL = ky("transitionend") 2967 , pL = new Map 2968 , oO = "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(" "); 2969function Da(e, t) { 2970 pL.set(e, t), 2971 Xs(t, [e]) 2972} 2973for (var k0 = 0; k0 < oO.length; k0++) { 2974 var R0 = oO[k0] 2975 , CK = R0.toLowerCase() 2976 , OK = R0[0].toUpperCase() + R0.slice(1); 2977 Da(CK, "on" + OK) 2978} 2979Da(uL, "onAnimationEnd"); 2980Da(dL, "onAnimationIteration"); 2981Da(fL, "onAnimationStart"); 2982Da("dblclick", "onDoubleClick"); 2983Da("focusin", "onFocus"); 2984Da("focusout", "onBlur"); 2985Da(hL, "onTransitionEnd"); 2986yc("onMouseEnter", ["mouseout", "mouseover"]); 2987yc("onMouseLeave", ["mouseout", "mouseover"]); 2988yc("onPointerEnter", ["pointerout", "pointerover"]); 2989yc("onPointerLeave", ["pointerout", "pointerover"]); 2990Xs("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); 2991Xs("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); 2992Xs("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); 2993Xs("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); 2994Xs("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); 2995Xs("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); 2996var rd = "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(" ") 2997 , AK = new Set("cancel close invalid load scroll toggle".split(" ").concat(rd)); 2998function aO(e, t, n) { 2999 var r = e.type || "unknown-event"; 3000 e.currentTarget = n, 3001 Cq(r, t, void 0, e), 3002 e.currentTarget = null 3003} 3004function mL(e, t) { 3005 t = (t & 4) !== 0; 3006 for (var n = 0; n < e.length; n++) { 3007 var r = e[n] 3008 , i = r.event; 3009 r = r.listeners; 3010 e: { 3011 var o = void 0; 3012 if (t) 3013 for (var a = r.length - 1; 0 <= a; a--) { 3014 var s = r[a] 3015 , l = s.instance 3016 , c = s.currentTarget; 3017 if (s = s.listener, 3018 l !== o && i.isPropagationStopped()) 3019 break e; 3020 aO(i, s, c), 3021 o = l
vendor: 6,787 bytes, lines 3022-3239
3022 } 3023 else 3024 for (a = 0; a < r.length; a++) { 3025 if (s = r[a], 3026 l = s.instance, 3027 c = s.currentTarget, 3028 s = s.listener, 3029 l !== o && i.isPropagationStopped()) 3030 break e; 3031 aO(i, s, c), 3032 o = l 3033 } 3034 } 3035 } 3036 if (_m) 3037 throw e = bb, 3038 _m = !1, 3039 bb = null, 3040 e 3041} 3042function ht(e, t) { 3043 var n = t[jb]; 3044 n === void 0 && (n = t[jb] = new Set); 3045 var r = e + "__bubble"; 3046 n.has(r) || (gL(t, e, 2, !1), 3047 n.add(r)) 3048} 3049function D0(e, t, n) { 3050 var r = 0; 3051 t && (r |= 4), 3052 gL(n, e, r, t) 3053} 3054var fp = "_reactListening" + Math.random().toString(36).slice(2); 3055function Yd(e) { 3056 if (!e[fp]) { 3057 e[fp] = !0, 3058 P$.forEach(function(n) { 3059 n !== "selectionchange" && (AK.has(n) || D0(n, !1, e), 3060 D0(n, !0, e)) 3061 }); 3062 var t = e.nodeType === 9 ? e : e.ownerDocument; 3063 t === null || t[fp] || (t[fp] = !0, 3064 D0("selectionchange", !1, t)) 3065 } 3066} 3067function gL(e, t, n, r) { 3068 switch (J$(t)) { 3069 case 1: 3070 var i = Uq; 3071 break; 3072 case 4: 3073 i = zq; 3074 break; 3075 default: 3076 i = KS 3077 } 3078 n = i.bind(null, t, n, e), 3079 i = void 0, 3080 !xb || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), 3081 r ? i !== void 0 ? e.addEventListener(t, n, { 3082 capture: !0, 3083 passive: i 3084 }) : e.addEventListener(t, n, !0) : i !== void 0 ? e.addEventListener(t, n, { 3085 passive: i 3086 }) : e.addEventListener(t, n, !1) 3087} 3088function I0(e, t, n, r, i) { 3089 var o = r; 3090 if (!(t & 1) && !(t & 2) && r !== null) 3091 e: for (; ; ) { 3092 if (r === null) 3093 return; 3094 var a = r.tag; 3095 if (a === 3 || a === 4) { 3096 var s = r.stateNode.containerInfo; 3097 if (s === i || s.nodeType === 8 && s.parentNode === i) 3098 break; 3099 if (a === 4) 3100 for (a = r.return; a !== null; ) { 3101 var l = a.tag; 3102 if ((l === 3 || l === 4) && (l = a.stateNode.containerInfo, 3103 l === i || l.nodeType === 8 && l.parentNode === i)) 3104 return; 3105 a = a.return 3106 } 3107 for (; s !== null; ) { 3108 if (a = ls(s), 3109 a === null) 3110 return; 3111 if (l = a.tag, 3112 l === 5 || l === 6) { 3113 r = o = a; 3114 continue e 3115 } 3116 s = s.parentNode 3117 } 3118 } 3119 r = r.return 3120 } 3121 F$(function() { 3122 var c = o 3123 , u = zS(n) 3124 , d = []; 3125 e: { 3126 var f = pL.get(e); 3127 if (f !== void 0) { 3128 var p = YS 3129 , g = e; 3130 switch (e) { 3131 case "keypress": 3132 if (Jp(n) === 0) 3133 break e; 3134 case "keydown": 3135 case "keyup": 3136 p = iK; 3137 break; 3138 case "focusin": 3139 g = "focus", 3140 p = E0; 3141 break; 3142 case "focusout": 3143 g = "blur", 3144 p = E0; 3145 break; 3146 case "beforeblur": 3147 case "afterblur": 3148 p = E0; 3149 break; 3150 case "click": 3151 if (n.button === 2) 3152 break e; 3153 case "auxclick": 3154 case "dblclick": 3155 case "mousedown": 3156 case "mousemove": 3157 case "mouseup": 3158 case "mouseout": 3159 case "mouseover": 3160 case "contextmenu": 3161 p = GC; 3162 break; 3163 case "drag": 3164 case "dragend": 3165 case "dragenter": 3166 case "dragexit": 3167 case "dragleave": 3168 case "dragover": 3169 case "dragstart": 3170 case "drop": 3171 p = qq; 3172 break; 3173 case "touchcancel": 3174 case "touchend": 3175 case "touchmove": 3176 case "touchstart": 3177 p = sK; 3178 break; 3179 case uL: 3180 case dL: 3181 case fL: 3182 p = Yq; 3183 break; 3184 case hL: 3185 p = cK; 3186 break; 3187 case "scroll": 3188 p = Wq; 3189 break; 3190 case "wheel": 3191 p = dK; 3192 break; 3193 case "copy": 3194 case "cut": 3195 case "paste": 3196 p = Qq; 3197 break; 3198 case "gotpointercapture": 3199 case "lostpointercapture": 3200 case "pointercancel": 3201 case "pointerdown": 3202 case "pointermove": 3203 case "pointerout": 3204 case "pointerover": 3205 case "pointerup": 3206 p = XC 3207 } 3208 var m = (t & 4) !== 0 3209 , x = !m && e === "scroll" 3210 , v = m ? f !== null ? f + "Capture" : null : f; 3211 m = []; 3212 for (var y = c, w; y !== null; ) { 3213 w = y; 3214 var P = w.stateNode; 3215 if (w.tag === 5 && P !== null && (w = P, 3216 v !== null && (P = zd(y, v), 3217 P != null && m.push(Xd(y, P, w)))), 3218 x) 3219 break; 3220 y = y.return 3221 } 3222 0 < m.length && (f = new p(f,g,null,n,u), 3223 d.push({ 3224 event: f, 3225 listeners: m 3226 })) 3227 } 3228 } 3229 if (!(t & 7)) { 3230 e: { 3231 if (f = e === "mouseover" || e === "pointerover", 3232 p = e === "mouseout" || e === "pointerout", 3233 f && n !== yb && (g = n.relatedTarget || n.fromElement) && (ls(g) || g[wo])) 3234 break e; 3235 if ((p || f) && (f = u.window === u ? u : (f = u.ownerDocument) ? f.defaultView || f.parentWindow : window, 3236 p ? (g = n.relatedTarget || n.toElement, 3237 p = c, 3238 g = g ? ls(g) : null, 3239 g !== null && (x = Qs(g),
vendor: 13,468 bytes, lines 3240-3737
3240 g !== x || g.tag !== 5 && g.tag !== 6) && (g = null)) : (p = null, 3241 g = c), 3242 p !== g)) { 3243 if (m = GC, 3244 P = "onMouseLeave", 3245 v = "onMouseEnter", 3246 y = "mouse", 3247 (e === "pointerout" || e === "pointerover") && (m = XC, 3248 P = "onPointerLeave", 3249 v = "onPointerEnter", 3250 y = "pointer"), 3251 x = p == null ? f : _l(p), 3252 w = g == null ? f : _l(g), 3253 f = new m(P,y + "leave",p,n,u), 3254 f.target = x, 3255 f.relatedTarget = w, 3256 P = null, 3257 ls(u) === c && (m = new m(v,y + "enter",g,n,u), 3258 m.target = w, 3259 m.relatedTarget = x, 3260 P = m), 3261 x = P, 3262 p && g) 3263 t: { 3264 for (m = p, 3265 v = g, 3266 y = 0, 3267 w = m; w; w = sl(w)) 3268 y++; 3269 for (w = 0, 3270 P = v; P; P = sl(P)) 3271 w++; 3272 for (; 0 < y - w; ) 3273 m = sl(m), 3274 y--; 3275 for (; 0 < w - y; ) 3276 v = sl(v), 3277 w--; 3278 for (; y--; ) { 3279 if (m === v || v !== null && m === v.alternate) 3280 break t; 3281 m = sl(m), 3282 v = sl(v) 3283 } 3284 m = null 3285 } 3286 else 3287 m = null; 3288 p !== null && sO(d, f, p, m, !1), 3289 g !== null && x !== null && sO(d, x, g, m, !0) 3290 } 3291 } 3292 e: { 3293 if (f = c ? _l(c) : window, 3294 p = f.nodeName && f.nodeName.toLowerCase(), 3295 p === "select" || p === "input" && f.type === "file") 3296 var S = vK; 3297 else if (JC(f)) 3298 if (oL) 3299 S = SK; 3300 else { 3301 S = bK; 3302 var _ = xK 3303 } 3304 else 3305 (p = f.nodeName) && p.toLowerCase() === "input" && (f.type === "checkbox" || f.type === "radio") && (S = wK); 3306 if (S && (S = S(e, c))) { 3307 iL(d, S, n, u); 3308 break e 3309 } 3310 _ && _(e, f, c), 3311 e === "focusout" && (_ = f._wrapperState) && _.controlled && f.type === "number" && fb(f, "number", f.value) 3312 } 3313 switch (_ = c ? _l(c) : window, 3314 e) { 3315 case "focusin": 3316 (JC(_) || _.contentEditable === "true") && (Sl = _, 3317 _b = c, 3318 _d = null); 3319 break; 3320 case "focusout": 3321 _d = _b = Sl = null; 3322 break; 3323 case "mousedown": 3324 Tb = !0; 3325 break; 3326 case "contextmenu": 3327 case "mouseup": 3328 case "dragend": 3329 Tb = !1, 3330 iO(d, n, u); 3331 break; 3332 case "selectionchange": 3333 if (TK) 3334 break; 3335 case "keydown": 3336 case "keyup": 3337 iO(d, n, u) 3338 } 3339 var T; 3340 if (QS) 3341 e: { 3342 switch (e) { 3343 case "compositionstart": 3344 var C = "onCompositionStart"; 3345 break e; 3346 case "compositionend": 3347 C = "onCompositionEnd"; 3348 break e; 3349 case "compositionupdate": 3350 C = "onCompositionUpdate"; 3351 break e 3352 } 3353 C = void 0 3354 } 3355 else 3356 wl ? nL(e, n) && (C = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (C = "onCompositionStart"); 3357 C && (tL && n.locale !== "ko" && (wl || C !== "onCompositionStart" ? C === "onCompositionEnd" && wl && (T = eL()) : (la = u, 3358 GS = "value"in la ? la.value : la.textContent, 3359 wl = !0)), 3360 _ = Em(c, C), 3361 0 < _.length && (C = new YC(C,e,null,n,u), 3362 d.push({ 3363 event: C, 3364 listeners: _ 3365 }), 3366 T ? C.data = T : (T = rL(n), 3367 T !== null && (C.data = T)))), 3368 (T = hK ? pK(e, n) : mK(e, n)) && (c = Em(c, "onBeforeInput"), 3369 0 < c.length && (u = new YC("onBeforeInput","beforeinput",null,n,u), 3370 d.push({ 3371 event: u, 3372 listeners: c 3373 }), 3374 u.data = T)) 3375 } 3376 mL(d, t) 3377 }) 3378} 3379function Xd(e, t, n) { 3380 return { 3381 instance: e, 3382 listener: t, 3383 currentTarget: n 3384 } 3385} 3386function Em(e, t) { 3387 for (var n = t + "Capture", r = []; e !== null; ) { 3388 var i = e 3389 , o = i.stateNode; 3390 i.tag === 5 && o !== null && (i = o, 3391 o = zd(e, n), 3392 o != null && r.unshift(Xd(e, o, i)), 3393 o = zd(e, t), 3394 o != null && r.push(Xd(e, o, i))), 3395 e = e.return 3396 } 3397 return r 3398} 3399function sl(e) { 3400 if (e === null) 3401 return null; 3402 do 3403 e = e.return; 3404 while (e && e.tag !== 5); 3405 return e || null 3406} 3407function sO(e, t, n, r, i) { 3408 for (var o = t._reactName, a = []; n !== null && n !== r; ) { 3409 var s = n 3410 , l = s.alternate 3411 , c = s.stateNode; 3412 if (l !== null && l === r) 3413 break; 3414 s.tag === 5 && c !== null && (s = c, 3415 i ? (l = zd(n, o), 3416 l != null && a.unshift(Xd(n, l, s))) : i || (l = zd(n, o), 3417 l != null && a.push(Xd(n, l, s)))), 3418 n = n.return 3419 } 3420 a.length !== 0 && e.push({ 3421 event: t, 3422 listeners: a 3423 }) 3424} 3425var EK = /\r\n?/g 3426 , jK = /\u0000|\uFFFD/g; 3427function lO(e) { 3428 return (typeof e == "string" ? e : "" + e).replace(EK, ` 3429`).replace(jK, "") 3430} 3431function hp(e, t, n) { 3432 if (t = lO(t), 3433 lO(e) !== t && n) 3434 throw Error(J(425)) 3435} 3436function jm() {} 3437var Cb = null 3438 , Ob = null; 3439function Ab(e, t) { 3440 return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null 3441} 3442var Eb = typeof setTimeout == "function" ? setTimeout : void 0 3443 , NK = typeof clearTimeout == "function" ? clearTimeout : void 0 3444 , cO = typeof Promise == "function" ? Promise : void 0 3445 , MK = typeof queueMicrotask == "function" ? queueMicrotask : typeof cO < "u" ? function(e) { 3446 return cO.resolve(null).then(e).catch(kK) 3447} 3448: Eb; 3449function kK(e) { 3450 setTimeout(function() { 3451 throw e 3452 }) 3453} 3454function $0(e, t) { 3455 var n = t 3456 , r = 0; 3457 do { 3458 var i = n.nextSibling; 3459 if (e.removeChild(n), 3460 i && i.nodeType === 8) 3461 if (n = i.data, 3462 n === "/$") { 3463 if (r === 0) { 3464 e.removeChild(i), 3465 qd(t); 3466 return 3467 } 3468 r-- 3469 } else 3470 n !== "$" && n !== "$?" && n !== "$!" || r++; 3471 n = i 3472 } while (n); 3473 qd(t) 3474} 3475function pa(e) { 3476 for (; e != null; e = e.nextSibling) { 3477 var t = e.nodeType; 3478 if (t === 1 || t === 3) 3479 break; 3480 if (t === 8) { 3481 if (t = e.data, 3482 t === "$" || t === "$!" || t === "$?") 3483 break; 3484 if (t === "/$") 3485 return null 3486 } 3487 } 3488 return e 3489} 3490function uO(e) { 3491 e = e.previousSibling; 3492 for (var t = 0; e; ) { 3493 if (e.nodeType === 8) { 3494 var n = e.data; 3495 if (n === "$" || n === "$!" || n === "$?") { 3496 if (t === 0) 3497 return e; 3498 t-- 3499 } else 3500 n === "/$" && t++ 3501 } 3502 e = e.previousSibling 3503 } 3504 return null 3505} 3506var ru = Math.random().toString(36).slice(2) 3507 , Ei = "__reactFiber$" + ru 3508 , Qd = "__reactProps$" + ru 3509 , wo = "__reactContainer$" + ru 3510 , jb = "__reactEvents$" + ru 3511 , RK = "__reactListeners$" + ru 3512 , DK = "__reactHandles$" + ru; 3513function ls(e) { 3514 var t = e[Ei]; 3515 if (t) 3516 return t; 3517 for (var n = e.parentNode; n; ) { 3518 if (t = n[wo] || n[Ei]) { 3519 if (n = t.alternate, 3520 t.child !== null || n !== null && n.child !== null) 3521 for (e = uO(e); e !== null; ) { 3522 if (n = e[Ei]) 3523 return n; 3524 e = uO(e) 3525 } 3526 return t 3527 } 3528 e = n, 3529 n = e.parentNode 3530 } 3531 return null 3532} 3533function Ph(e) { 3534 return e = e[Ei] || e[wo], 3535 !e || e.tag !== 5 && e.tag !== 6 && e.tag !== 13 && e.tag !== 3 ? null : e 3536} 3537function _l(e) { 3538 if (e.tag === 5 || e.tag === 6) 3539 return e.stateNode; 3540 throw Error(J(33)) 3541} 3542function Ry(e) { 3543 return e[Qd] || null 3544} 3545var Nb = [] 3546 , Tl = -1; 3547function Ia(e) { 3548 return { 3549 current: e 3550 } 3551} 3552function yt(e) { 3553 0 > Tl || (e.current = Nb[Tl], 3554 Nb[Tl] = null, 3555 Tl--) 3556} 3557function dt(e, t) { 3558 Tl++, 3559 Nb[Tl] = e.current, 3560 e.current = t 3561} 3562var Pa = {} 3563 , En = Ia(Pa) 3564 , Jn = Ia(!1) 3565 , Ms = Pa; 3566function vc(e, t) { 3567 var n = e.type.contextTypes; 3568 if (!n) 3569 return Pa; 3570 var r = e.stateNode; 3571 if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) 3572 return r.__reactInternalMemoizedMaskedChildContext; 3573 var i = {}, o; 3574 for (o in n) 3575 i[o] = t[o]; 3576 return r && (e = e.stateNode, 3577 e.__reactInternalMemoizedUnmaskedChildContext = t, 3578 e.__reactInternalMemoizedMaskedChildContext = i), 3579 i 3580} 3581function er(e) { 3582 return e = e.childContextTypes, 3583 e != null 3584} 3585function Nm() { 3586 yt(Jn), 3587 yt(En) 3588} 3589function dO(e, t, n) { 3590 if (En.current !== Pa) 3591 throw Error(J(168)); 3592 dt(En, t), 3593 dt(Jn, n) 3594} 3595function yL(e, t, n) { 3596 var r = e.stateNode; 3597 if (t = t.childContextTypes, 3598 typeof r.getChildContext != "function") 3599 return n; 3600 r = r.getChildContext(); 3601 for (var i in r) 3602 if (!(i in t)) 3603 throw Error(J(108, xq(e) || "Unknown", i)); 3604 return jt({}, n, r) 3605} 3606function Mm(e) { 3607 return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Pa, 3608 Ms = En.current, 3609 dt(En, e), 3610 dt(Jn, Jn.current), 3611 !0 3612} 3613function fO(e, t, n) { 3614 var r = e.stateNode; 3615 if (!r) 3616 throw Error(J(169)); 3617 n ? (e = yL(e, t, Ms), 3618 r.__reactInternalMemoizedMergedChildContext = e, 3619 yt(Jn), 3620 yt(En), 3621 dt(En, e)) : yt(Jn), 3622 dt(Jn, n) 3623} 3624var oo = null 3625 , Dy = !1 3626 , L0 = !1; 3627function vL(e) { 3628 oo === null ? oo = [e] : oo.push(e) 3629} 3630function IK(e) { 3631 Dy = !0, 3632 vL(e) 3633} 3634function $a() { 3635 if (!L0 && oo !== null) { 3636 L0 = !0; 3637 var e = 0 3638 , t = rt; 3639 try { 3640 var n = oo; 3641 for (rt = 1; e < n.length; e++) { 3642 var r = n[e]; 3643 do 3644 r = r(!0); 3645 while (r !== null) 3646 } 3647 oo = null, 3648 Dy = !1 3649 } catch (i) { 3650 throw oo !== null && (oo = oo.slice(e + 1)), 3651 z$(WS, $a), 3652 i 3653 } finally { 3654 rt = t, 3655 L0 = !1 3656 } 3657 } 3658 return null 3659} 3660var Cl = [] 3661 , Ol = 0 3662 , km = null 3663 , Rm = 0 3664 , Nr = [] 3665 , Mr = 0 3666 , ks = null 3667 , so = 1 3668 , lo = ""; 3669function Ja(e, t) { 3670 Cl[Ol++] = Rm, 3671 Cl[Ol++] = km, 3672 km = e, 3673 Rm = t 3674} 3675function xL(e, t, n) { 3676 Nr[Mr++] = so, 3677 Nr[Mr++] = lo, 3678 Nr[Mr++] = ks, 3679 ks = e; 3680 var r = so; 3681 e = lo; 3682 var i = 32 - si(r) - 1; 3683 r &= ~(1 << i), 3684 n += 1; 3685 var o = 32 - si(t) + i; 3686 if (30 < o) { 3687 var a = i - i % 5; 3688 o = (r & (1 << a) - 1).toString(32), 3689 r >>= a, 3690 i -= a, 3691 so = 1 << 32 - si(t) + i | n << i | r, 3692 lo = o + e 3693 } else 3694 so = 1 << o | n << i | r, 3695 lo = e 3696} 3697function JS(e) { 3698 e.return !== null && (Ja(e, 1), 3699 xL(e, 1, 0)) 3700} 3701function eP(e) { 3702 for (; e === km; ) 3703 km = Cl[--Ol], 3704 Cl[Ol] = null, 3705 Rm = Cl[--Ol], 3706 Cl[Ol] = null; 3707 for (; e === ks; ) 3708 ks = Nr[--Mr], 3709 Nr[Mr] = null, 3710 lo = Nr[--Mr], 3711 Nr[Mr] = null, 3712 so = Nr[--Mr], 3713 Nr[Mr] = null 3714} 3715var fr = null 3716 , dr = null 3717 , xt = !1 3718 , ei = null; 3719function bL(e, t) { 3720 var n = kr(5, null, null, 0); 3721 n.elementType = "DELETED", 3722 n.stateNode = t, 3723 n.return = e, 3724 t = e.deletions, 3725 t === null ? (e.deletions = [n], 3726 e.flags |= 16) : t.push(n) 3727} 3728function hO(e, t) { 3729 switch (e.tag) { 3730 case 5: 3731 var n = e.type; 3732 return t = t.nodeType !== 1 || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t, 3733 t !== null ? (e.stateNode = t, 3734 fr = e, 3735 dr = pa(t.firstChild), 3736 !0) : !1; 3737 case 6:
vendor: 23,393 bytes, lines 3738-4558
3738 return t = e.pendingProps === "" || t.nodeType !== 3 ? null : t, 3739 t !== null ? (e.stateNode = t, 3740 fr = e, 3741 dr = null, 3742 !0) : !1; 3743 case 13: 3744 return t = t.nodeType !== 8 ? null : t, 3745 t !== null ? (n = ks !== null ? { 3746 id: so, 3747 overflow: lo 3748 } : null, 3749 e.memoizedState = { 3750 dehydrated: t, 3751 treeContext: n, 3752 retryLane: 1073741824 3753 }, 3754 n = kr(18, null, null, 0), 3755 n.stateNode = t, 3756 n.return = e, 3757 e.child = n, 3758 fr = e, 3759 dr = null, 3760 !0) : !1; 3761 default: 3762 return !1 3763 } 3764} 3765function Mb(e) { 3766 return (e.mode & 1) !== 0 && (e.flags & 128) === 0 3767} 3768function kb(e) { 3769 if (xt) { 3770 var t = dr; 3771 if (t) { 3772 var n = t; 3773 if (!hO(e, t)) { 3774 if (Mb(e)) 3775 throw Error(J(418)); 3776 t = pa(n.nextSibling); 3777 var r = fr; 3778 t && hO(e, t) ? bL(r, n) : (e.flags = e.flags & -4097 | 2, 3779 xt = !1, 3780 fr = e) 3781 } 3782 } else { 3783 if (Mb(e)) 3784 throw Error(J(418)); 3785 e.flags = e.flags & -4097 | 2, 3786 xt = !1, 3787 fr = e 3788 } 3789 } 3790} 3791function pO(e) { 3792 for (e = e.return; e !== null && e.tag !== 5 && e.tag !== 3 && e.tag !== 13; ) 3793 e = e.return; 3794 fr = e 3795} 3796function pp(e) { 3797 if (e !== fr) 3798 return !1; 3799 if (!xt) 3800 return pO(e), 3801 xt = !0, 3802 !1; 3803 var t; 3804 if ((t = e.tag !== 3) && !(t = e.tag !== 5) && (t = e.type, 3805 t = t !== "head" && t !== "body" && !Ab(e.type, e.memoizedProps)), 3806 t && (t = dr)) { 3807 if (Mb(e)) 3808 throw wL(), 3809 Error(J(418)); 3810 for (; t; ) 3811 bL(e, t), 3812 t = pa(t.nextSibling) 3813 } 3814 if (pO(e), 3815 e.tag === 13) { 3816 if (e = e.memoizedState, 3817 e = e !== null ? e.dehydrated : null, 3818 !e) 3819 throw Error(J(317)); 3820 e: { 3821 for (e = e.nextSibling, 3822 t = 0; e; ) { 3823 if (e.nodeType === 8) { 3824 var n = e.data; 3825 if (n === "/$") { 3826 if (t === 0) { 3827 dr = pa(e.nextSibling); 3828 break e 3829 } 3830 t-- 3831 } else 3832 n !== "$" && n !== "$!" && n !== "$?" || t++ 3833 } 3834 e = e.nextSibling 3835 } 3836 dr = null 3837 } 3838 } else 3839 dr = fr ? pa(e.stateNode.nextSibling) : null; 3840 return !0 3841} 3842function wL() { 3843 for (var e = dr; e; ) 3844 e = pa(e.nextSibling) 3845} 3846function xc() { 3847 dr = fr = null, 3848 xt = !1 3849} 3850function tP(e) { 3851 ei === null ? ei = [e] : ei.push(e) 3852} 3853var $K = No.ReactCurrentBatchConfig; 3854function ku(e, t, n) { 3855 if (e = n.ref, 3856 e !== null && typeof e != "function" && typeof e != "object") { 3857 if (n._owner) { 3858 if (n = n._owner, 3859 n) { 3860 if (n.tag !== 1) 3861 throw Error(J(309)); 3862 var r = n.stateNode 3863 } 3864 if (!r) 3865 throw Error(J(147, e)); 3866 var i = r 3867 , o = "" + e; 3868 return t !== null && t.ref !== null && typeof t.ref == "function" && t.ref._stringRef === o ? t.ref : (t = function(a) { 3869 var s = i.refs; 3870 a === null ? delete s[o] : s[o] = a 3871 } 3872 , 3873 t._stringRef = o, 3874 t) 3875 } 3876 if (typeof e != "string") 3877 throw Error(J(284)); 3878 if (!n._owner) 3879 throw Error(J(290, e)) 3880 } 3881 return e 3882} 3883function mp(e, t) { 3884 throw e = Object.prototype.toString.call(t), 3885 Error(J(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)) 3886} 3887function mO(e) { 3888 var t = e._init; 3889 return t(e._payload) 3890} 3891function SL(e) { 3892 function t(v, y) { 3893 if (e) { 3894 var w = v.deletions; 3895 w === null ? (v.deletions = [y], 3896 v.flags |= 16) : w.push(y) 3897 } 3898 } 3899 function n(v, y) { 3900 if (!e) 3901 return null; 3902 for (; y !== null; ) 3903 t(v, y), 3904 y = y.sibling; 3905 return null 3906 } 3907 function r(v, y) { 3908 for (v = new Map; y !== null; ) 3909 y.key !== null ? v.set(y.key, y) : v.set(y.index, y), 3910 y = y.sibling; 3911 return v 3912 } 3913 function i(v, y) { 3914 return v = va(v, y), 3915 v.index = 0, 3916 v.sibling = null, 3917 v 3918 } 3919 function o(v, y, w) { 3920 return v.index = w, 3921 e ? (w = v.alternate, 3922 w !== null ? (w = w.index, 3923 w < y ? (v.flags |= 2, 3924 y) : w) : (v.flags |= 2, 3925 y)) : (v.flags |= 1048576, 3926 y) 3927 } 3928 function a(v) { 3929 return e && v.alternate === null && (v.flags |= 2), 3930 v 3931 } 3932 function s(v, y, w, P) { 3933 return y === null || y.tag !== 6 ? (y = H0(w, v.mode, P), 3934 y.return = v, 3935 y) : (y = i(y, w), 3936 y.return = v, 3937 y) 3938 } 3939 function l(v, y, w, P) { 3940 var S = w.type; 3941 return S === bl ? u(v, y, w.props.children, P, w.key) : y !== null && (y.elementType === S || typeof S == "object" && S !== null && S.$$typeof === qo && mO(S) === y.type) ? (P = i(y, w.props), 3942 P.ref = ku(v, y, w), 3943 P.return = v, 3944 P) : (P = am(w.type, w.key, w.props, null, v.mode, P), 3945 P.ref = ku(v, y, w), 3946 P.return = v, 3947 P) 3948 } 3949 function c(v, y, w, P) { 3950 return y === null || y.tag !== 4 || y.stateNode.containerInfo !== w.containerInfo || y.stateNode.implementation !== w.implementation ? (y = q0(w, v.mode, P), 3951 y.return = v, 3952 y) : (y = i(y, w.children || []), 3953 y.return = v, 3954 y) 3955 } 3956 function u(v, y, w, P, S) { 3957 return y === null || y.tag !== 7 ? (y = Ts(w, v.mode, P, S), 3958 y.return = v, 3959 y) : (y = i(y, w), 3960 y.return = v, 3961 y) 3962 } 3963 function d(v, y, w) { 3964 if (typeof y == "string" && y !== "" || typeof y == "number") 3965 return y = H0("" + y, v.mode, w), 3966 y.return = v, 3967 y; 3968 if (typeof y == "object" && y !== null) { 3969 switch (y.$$typeof) { 3970 case ip: 3971 return w = am(y.type, y.key, y.props, null, v.mode, w), 3972 w.ref = ku(v, null, y), 3973 w.return = v, 3974 w; 3975 case xl: 3976 return y = q0(y, v.mode, w), 3977 y.return = v, 3978 y; 3979 case qo: 3980 var P = y._init; 3981 return d(v, P(y._payload), w) 3982 } 3983 if (td(y) || Au(y)) 3984 return y = Ts(y, v.mode, w, null), 3985 y.return = v, 3986 y; 3987 mp(v, y) 3988 } 3989 return null 3990 } 3991 function f(v, y, w, P) { 3992 var S = y !== null ? y.key : null; 3993 if (typeof w == "string" && w !== "" || typeof w == "number") 3994 return S !== null ? null : s(v, y, "" + w, P); 3995 if (typeof w == "object" && w !== null) { 3996 switch (w.$$typeof) { 3997 case ip: 3998 return w.key === S ? l(v, y, w, P) : null; 3999 case xl: 4000 return w.key === S ? c(v, y, w, P) : null; 4001 case qo: 4002 return S = w._init, 4003 f(v, y, S(w._payload), P) 4004 } 4005 if (td(w) || Au(w)) 4006 return S !== null ? null : u(v, y, w, P, null); 4007 mp(v, w) 4008 } 4009 return null 4010 } 4011 function p(v, y, w, P, S) { 4012 if (typeof P == "string" && P !== "" || typeof P == "number") 4013 return v = v.get(w) || null, 4014 s(y, v, "" + P, S); 4015 if (typeof P == "object" && P !== null) { 4016 switch (P.$$typeof) { 4017 case ip: 4018 return v = v.get(P.key === null ? w : P.key) || null, 4019 l(y, v, P, S); 4020 case xl: 4021 return v = v.get(P.key === null ? w : P.key) || null, 4022 c(y, v, P, S); 4023 case qo: 4024 var _ = P._init; 4025 return p(v, y, w, _(P._payload), S) 4026 } 4027 if (td(P) || Au(P)) 4028 return v = v.get(w) || null, 4029 u(y, v, P, S, null); 4030 mp(y, P) 4031 } 4032 return null 4033 } 4034 function g(v, y, w, P) { 4035 for (var S = null, _ = null, T = y, C = y = 0, O = null; T !== null && C < w.length; C++) { 4036 T.index > C ? (O = T, 4037 T = null) : O = T.sibling; 4038 var A = f(v, T, w[C], P); 4039 if (A === null) { 4040 T === null && (T = O); 4041 break 4042 } 4043 e && T && A.alternate === null && t(v, T), 4044 y = o(A, y, C), 4045 _ === null ? S = A : _.sibling = A, 4046 _ = A, 4047 T = O 4048 } 4049 if (C === w.length) 4050 return n(v, T), 4051 xt && Ja(v, C), 4052 S; 4053 if (T === null) { 4054 for (; C < w.length; C++) 4055 T = d(v, w[C], P), 4056 T !== null && (y = o(T, y, C), 4057 _ === null ? S = T : _.sibling = T, 4058 _ = T); 4059 return xt && Ja(v, C), 4060 S 4061 } 4062 for (T = r(v, T); C < w.length; C++) 4063 O = p(T, v, C, w[C], P), 4064 O !== null && (e && O.alternate !== null && T.delete(O.key === null ? C : O.key), 4065 y = o(O, y, C), 4066 _ === null ? S = O : _.sibling = O, 4067 _ = O); 4068 return e && T.forEach(function(E) { 4069 return t(v, E) 4070 }), 4071 xt && Ja(v, C), 4072 S 4073 } 4074 function m(v, y, w, P) { 4075 var S = Au(w); 4076 if (typeof S != "function") 4077 throw Error(J(150)); 4078 if (w = S.call(w), 4079 w == null) 4080 throw Error(J(151)); 4081 for (var _ = S = null, T = y, C = y = 0, O = null, A = w.next(); T !== null && !A.done; C++, 4082 A = w.next()) { 4083 T.index > C ? (O = T, 4084 T = null) : O = T.sibling; 4085 var E = f(v, T, A.value, P); 4086 if (E === null) { 4087 T === null && (T = O); 4088 break 4089 } 4090 e && T && E.alternate === null && t(v, T), 4091 y = o(E, y, C), 4092 _ === null ? S = E : _.sibling = E, 4093 _ = E, 4094 T = O 4095 } 4096 if (A.done) 4097 return n(v, T), 4098 xt && Ja(v, C), 4099 S; 4100 if (T === null) { 4101 for (; !A.done; C++, 4102 A = w.next()) 4103 A = d(v, A.value, P), 4104 A !== null && (y = o(A, y, C), 4105 _ === null ? S = A : _.sibling = A, 4106 _ = A); 4107 return xt && Ja(v, C), 4108 S 4109 } 4110 for (T = r(v, T); !A.done; C++, 4111 A = w.next()) 4112 A = p(T, v, C, A.value, P), 4113 A !== null && (e && A.alternate !== null && T.delete(A.key === null ? C : A.key), 4114 y = o(A, y, C), 4115 _ === null ? S = A : _.sibling = A, 4116 _ = A); 4117 return e && T.forEach(function(j) { 4118 return t(v, j) 4119 }), 4120 xt && Ja(v, C), 4121 S 4122 } 4123 function x(v, y, w, P) { 4124 if (typeof w == "object" && w !== null && w.type === bl && w.key === null && (w = w.props.children), 4125 typeof w == "object" && w !== null) { 4126 switch (w.$$typeof) { 4127 case ip: 4128 e: { 4129 for (var S = w.key, _ = y; _ !== null; ) { 4130 if (_.key === S) { 4131 if (S = w.type, 4132 S === bl) { 4133 if (_.tag === 7) { 4134 n(v, _.sibling), 4135 y = i(_, w.props.children), 4136 y.return = v, 4137 v = y; 4138 break e 4139 } 4140 } else if (_.elementType === S || typeof S == "object" && S !== null && S.$$typeof === qo && mO(S) === _.type) { 4141 n(v, _.sibling), 4142 y = i(_, w.props), 4143 y.ref = ku(v, _, w), 4144 y.return = v, 4145 v = y; 4146 break e 4147 } 4148 n(v, _); 4149 break 4150 } else 4151 t(v, _); 4152 _ = _.sibling 4153 } 4154 w.type === bl ? (y = Ts(w.props.children, v.mode, P, w.key), 4155 y.return = v, 4156 v = y) : (P = am(w.type, w.key, w.props, null, v.mode, P), 4157 P.ref = ku(v, y, w), 4158 P.return = v, 4159 v = P) 4160 } 4161 return a(v); 4162 case xl: 4163 e: { 4164 for (_ = w.key; y !== null; ) { 4165 if (y.key === _) 4166 if (y.tag === 4 && y.stateNode.containerInfo === w.containerInfo && y.stateNode.implementation === w.implementation) { 4167 n(v, y.sibling), 4168 y = i(y, w.children || []), 4169 y.return = v, 4170 v = y; 4171 break e 4172 } else { 4173 n(v, y); 4174 break 4175 } 4176 else 4177 t(v, y); 4178 y = y.sibling 4179 } 4180 y = q0(w, v.mode, P), 4181 y.return = v, 4182 v = y 4183 } 4184 return a(v); 4185 case qo: 4186 return _ = w._init, 4187 x(v, y, _(w._payload), P) 4188 } 4189 if (td(w)) 4190 return g(v, y, w, P); 4191 if (Au(w)) 4192 return m(v, y, w, P); 4193 mp(v, w) 4194 } 4195 return typeof w == "string" && w !== "" || typeof w == "number" ? (w = "" + w, 4196 y !== null && y.tag === 6 ? (n(v, y.sibling), 4197 y = i(y, w), 4198 y.return = v, 4199 v = y) : (n(v, y), 4200 y = H0(w, v.mode, P), 4201 y.return = v, 4202 v = y), 4203 a(v)) : n(v, y) 4204 } 4205 return x 4206} 4207var bc = SL(!0) 4208 , PL = SL(!1) 4209 , Dm = Ia(null) 4210 , Im = null 4211 , Al = null 4212 , nP = null; 4213function rP() { 4214 nP = Al = Im = null 4215} 4216function iP(e) { 4217 var t = Dm.current; 4218 yt(Dm), 4219 e._currentValue = t 4220} 4221function Rb(e, t, n) { 4222 for (; e !== null; ) { 4223 var r = e.alternate; 4224 if ((e.childLanes & t) !== t ? (e.childLanes |= t, 4225 r !== null && (r.childLanes |= t)) : r !== null && (r.childLanes & t) !== t && (r.childLanes |= t), 4226 e === n) 4227 break; 4228 e = e.return 4229 } 4230} 4231function Wl(e, t) { 4232 Im = e, 4233 nP = Al = null, 4234 e = e.dependencies, 4235 e !== null && e.firstContext !== null && (e.lanes & t && (Qn = !0), 4236 e.firstContext = null) 4237} 4238function Br(e) { 4239 var t = e._currentValue; 4240 if (nP !== e) 4241 if (e = { 4242 context: e, 4243 memoizedValue: t, 4244 next: null 4245 }, 4246 Al === null) { 4247 if (Im === null) 4248 throw Error(J(308)); 4249 Al = e, 4250 Im.dependencies = { 4251 lanes: 0, 4252 firstContext: e 4253 } 4254 } else 4255 Al = Al.next = e; 4256 return t 4257} 4258var cs = null; 4259function oP(e) { 4260 cs === null ? cs = [e] : cs.push(e) 4261} 4262function _L(e, t, n, r) { 4263 var i = t.interleaved; 4264 return i === null ? (n.next = n, 4265 oP(t)) : (n.next = i.next, 4266 i.next = n), 4267 t.interleaved = n, 4268 So(e, r) 4269} 4270function So(e, t) { 4271 e.lanes |= t; 4272 var n = e.alternate; 4273 for (n !== null && (n.lanes |= t), 4274 n = e, 4275 e = e.return; e !== null; ) 4276 e.childLanes |= t, 4277 n = e.alternate, 4278 n !== null && (n.childLanes |= t), 4279 n = e, 4280 e = e.return; 4281 return n.tag === 3 ? n.stateNode : null 4282} 4283var Ko = !1; 4284function aP(e) { 4285 e.updateQueue = { 4286 baseState: e.memoizedState, 4287 firstBaseUpdate: null, 4288 lastBaseUpdate: null, 4289 shared: { 4290 pending: null, 4291 interleaved: null, 4292 lanes: 0 4293 }, 4294 effects: null 4295 } 4296} 4297function TL(e, t) { 4298 e = e.updateQueue, 4299 t.updateQueue === e && (t.updateQueue = { 4300 baseState: e.baseState, 4301 firstBaseUpdate: e.firstBaseUpdate, 4302 lastBaseUpdate: e.lastBaseUpdate, 4303 shared: e.shared, 4304 effects: e.effects 4305 }) 4306} 4307function ho(e, t) { 4308 return { 4309 eventTime: e, 4310 lane: t, 4311 tag: 0, 4312 payload: null, 4313 callback: null, 4314 next: null 4315 } 4316} 4317function ma(e, t, n) { 4318 var r = e.updateQueue; 4319 if (r === null) 4320 return null; 4321 if (r = r.shared, 4322 Ke & 2) { 4323 var i = r.pending; 4324 return i === null ? t.next = t : (t.next = i.next, 4325 i.next = t), 4326 r.pending = t, 4327 So(e, n) 4328 } 4329 return i = r.interleaved, 4330 i === null ? (t.next = t, 4331 oP(r)) : (t.next = i.next, 4332 i.next = t), 4333 r.interleaved = t, 4334 So(e, n) 4335} 4336function em(e, t, n) { 4337 if (t = t.updateQueue, 4338 t !== null && (t = t.shared, 4339 (n & 4194240) !== 0)) { 4340 var r = t.lanes; 4341 r &= e.pendingLanes, 4342 n |= r, 4343 t.lanes = n, 4344 HS(e, n) 4345 } 4346} 4347function gO(e, t) { 4348 var n = e.updateQueue 4349 , r = e.alternate; 4350 if (r !== null && (r = r.updateQueue, 4351 n === r)) { 4352 var i = null 4353 , o = null; 4354 if (n = n.firstBaseUpdate, 4355 n !== null) { 4356 do { 4357 var a = { 4358 eventTime: n.eventTime, 4359 lane: n.lane, 4360 tag: n.tag, 4361 payload: n.payload, 4362 callback: n.callback, 4363 next: null 4364 }; 4365 o === null ? i = o = a : o = o.next = a, 4366 n = n.next 4367 } while (n !== null); 4368 o === null ? i = o = t : o = o.next = t 4369 } else 4370 i = o = t; 4371 n = { 4372 baseState: r.baseState, 4373 firstBaseUpdate: i, 4374 lastBaseUpdate: o, 4375 shared: r.shared, 4376 effects: r.effects 4377 }, 4378 e.updateQueue = n; 4379 return 4380 } 4381 e = n.lastBaseUpdate, 4382 e === null ? n.firstBaseUpdate = t : e.next = t, 4383 n.lastBaseUpdate = t 4384} 4385function $m(e, t, n, r) { 4386 var i = e.updateQueue; 4387 Ko = !1; 4388 var o = i.firstBaseUpdate 4389 , a = i.lastBaseUpdate 4390 , s = i.shared.pending; 4391 if (s !== null) { 4392 i.shared.pending = null; 4393 var l = s 4394 , c = l.next; 4395 l.next = null, 4396 a === null ? o = c : a.next = c, 4397 a = l; 4398 var u = e.alternate; 4399 u !== null && (u = u.updateQueue, 4400 s = u.lastBaseUpdate, 4401 s !== a && (s === null ? u.firstBaseUpdate = c : s.next = c, 4402 u.lastBaseUpdate = l)) 4403 } 4404 if (o !== null) { 4405 var d = i.baseState; 4406 a = 0, 4407 u = c = l = null, 4408 s = o; 4409 do { 4410 var f = s.lane 4411 , p = s.eventTime; 4412 if ((r & f) === f) { 4413 u !== null && (u = u.next = { 4414 eventTime: p, 4415 lane: 0, 4416 tag: s.tag, 4417 payload: s.payload, 4418 callback: s.callback, 4419 next: null 4420 }); 4421 e: { 4422 var g = e 4423 , m = s; 4424 switch (f = t, 4425 p = n, 4426 m.tag) { 4427 case 1: 4428 if (g = m.payload, 4429 typeof g == "function") { 4430 d = g.call(p, d, f); 4431 break e 4432 } 4433 d = g; 4434 break e; 4435 case 3: 4436 g.flags = g.flags & -65537 | 128; 4437 case 0: 4438 if (g = m.payload, 4439 f = typeof g == "function" ? g.call(p, d, f) : g, 4440 f == null) 4441 break e; 4442 d = jt({}, d, f); 4443 break e; 4444 case 2: 4445 Ko = !0 4446 } 4447 } 4448 s.callback !== null && s.lane !== 0 && (e.flags |= 64, 4449 f = i.effects, 4450 f === null ? i.effects = [s] : f.push(s)) 4451 } else 4452 p = { 4453 eventTime: p, 4454 lane: f, 4455 tag: s.tag, 4456 payload: s.payload, 4457 callback: s.callback, 4458 next: null 4459 }, 4460 u === null ? (c = u = p, 4461 l = d) : u = u.next = p, 4462 a |= f; 4463 if (s = s.next, 4464 s === null) { 4465 if (s = i.shared.pending, 4466 s === null) 4467 break; 4468 f = s, 4469 s = f.next, 4470 f.next = null, 4471 i.lastBaseUpdate = f, 4472 i.shared.pending = null 4473 } 4474 } while (!0); 4475 if (u === null && (l = d), 4476 i.baseState = l, 4477 i.firstBaseUpdate = c, 4478 i.lastBaseUpdate = u, 4479 t = i.shared.interleaved, 4480 t !== null) { 4481 i = t; 4482 do 4483 a |= i.lane, 4484 i = i.next; 4485 while (i !== t) 4486 } else 4487 o === null && (i.shared.lanes = 0); 4488 Ds |= a, 4489 e.lanes = a, 4490 e.memoizedState = d 4491 } 4492} 4493function yO(e, t, n) { 4494 if (e = t.effects, 4495 t.effects = null, 4496 e !== null) 4497 for (t = 0; t < e.length; t++) { 4498 var r = e[t] 4499 , i = r.callback; 4500 if (i !== null) { 4501 if (r.callback = null, 4502 r = n, 4503 typeof i != "function") 4504 throw Error(J(191, i)); 4505 i.call(r) 4506 } 4507 } 4508} 4509var _h = {} 4510 , Ri = Ia(_h) 4511 , Zd = Ia(_h) 4512 , Jd = Ia(_h); 4513function us(e) { 4514 if (e === _h) 4515 throw Error(J(174)); 4516 return e 4517} 4518function sP(e, t) { 4519 switch (dt(Jd, t), 4520 dt(Zd, e), 4521 dt(Ri, _h), 4522 e = t.nodeType, 4523 e) { 4524 case 9: 4525 case 11: 4526 t = (t = t.documentElement) ? t.namespaceURI : pb(null, ""); 4527 break; 4528 default: 4529 e = e === 8 ? t.parentNode : t, 4530 t = e.namespaceURI || null, 4531 e = e.tagName, 4532 t = pb(t, e) 4533 } 4534 yt(Ri), 4535 dt(Ri, t) 4536} 4537function wc() { 4538 yt(Ri), 4539 yt(Zd), 4540 yt(Jd) 4541} 4542function CL(e) { 4543 us(Jd.current); 4544 var t = us(Ri.current) 4545 , n = pb(t, e.type); 4546 t !== n && (dt(Zd, e), 4547 dt(Ri, n)) 4548} 4549function lP(e) { 4550 Zd.current === e && (yt(Ri), 4551 yt(Zd)) 4552} 4553var _t = Ia(0); 4554function Lm(e) { 4555 for (var t = e; t !== null; ) { 4556 if (t.tag === 13) { 4557 var n = t.memoizedState; 4558 if (n !== null && (n = n.dehydrated,
vendor: 15,021 bytes, lines 4559-5201
4559 n === null || n.data === "$?" || n.data === "$!")) 4560 return t 4561 } else if (t.tag === 19 && t.memoizedProps.revealOrder !== void 0) { 4562 if (t.flags & 128) 4563 return t 4564 } else if (t.child !== null) { 4565 t.child.return = t, 4566 t = t.child; 4567 continue 4568 } 4569 if (t === e) 4570 break; 4571 for (; t.sibling === null; ) { 4572 if (t.return === null || t.return === e) 4573 return null; 4574 t = t.return 4575 } 4576 t.sibling.return = t.return, 4577 t = t.sibling 4578 } 4579 return null 4580} 4581var F0 = []; 4582function cP() { 4583 for (var e = 0; e < F0.length; e++) 4584 F0[e]._workInProgressVersionPrimary = null; 4585 F0.length = 0 4586} 4587var tm = No.ReactCurrentDispatcher 4588 , B0 = No.ReactCurrentBatchConfig 4589 , Rs = 0 4590 , Et = null 4591 , Zt = null 4592 , sn = null 4593 , Fm = !1 4594 , Td = !1 4595 , ef = 0 4596 , LK = 0; 4597function wn() { 4598 throw Error(J(321)) 4599} 4600function uP(e, t) { 4601 if (t === null) 4602 return !1; 4603 for (var n = 0; n < t.length && n < e.length; n++) 4604 if (!hi(e[n], t[n])) 4605 return !1; 4606 return !0 4607} 4608function dP(e, t, n, r, i, o) { 4609 if (Rs = o, 4610 Et = t, 4611 t.memoizedState = null, 4612 t.updateQueue = null, 4613 t.lanes = 0, 4614 tm.current = e === null || e.memoizedState === null ? UK : zK, 4615 e = n(r, i), 4616 Td) { 4617 o = 0; 4618 do { 4619 if (Td = !1, 4620 ef = 0, 4621 25 <= o) 4622 throw Error(J(301)); 4623 o += 1, 4624 sn = Zt = null, 4625 t.updateQueue = null, 4626 tm.current = WK, 4627 e = n(r, i) 4628 } while (Td) 4629 } 4630 if (tm.current = Bm, 4631 t = Zt !== null && Zt.next !== null, 4632 Rs = 0, 4633 sn = Zt = Et = null, 4634 Fm = !1, 4635 t) 4636 throw Error(J(300)); 4637 return e 4638} 4639function fP() { 4640 var e = ef !== 0; 4641 return ef = 0, 4642 e 4643} 4644function Si() { 4645 var e = { 4646 memoizedState: null, 4647 baseState: null, 4648 baseQueue: null, 4649 queue: null, 4650 next: null 4651 }; 4652 return sn === null ? Et.memoizedState = sn = e : sn = sn.next = e, 4653 sn 4654} 4655function Vr() { 4656 if (Zt === null) { 4657 var e = Et.alternate; 4658 e = e !== null ? e.memoizedState : null 4659 } else 4660 e = Zt.next; 4661 var t = sn === null ? Et.memoizedState : sn.next; 4662 if (t !== null) 4663 sn = t, 4664 Zt = e; 4665 else { 4666 if (e === null) 4667 throw Error(J(310)); 4668 Zt = e, 4669 e = { 4670 memoizedState: Zt.memoizedState, 4671 baseState: Zt.baseState, 4672 baseQueue: Zt.baseQueue, 4673 queue: Zt.queue, 4674 next: null 4675 }, 4676 sn === null ? Et.memoizedState = sn = e : sn = sn.next = e 4677 } 4678 return sn 4679} 4680function tf(e, t) { 4681 return typeof t == "function" ? t(e) : t 4682} 4683function V0(e) { 4684 var t = Vr() 4685 , n = t.queue; 4686 if (n === null) 4687 throw Error(J(311)); 4688 n.lastRenderedReducer = e; 4689 var r = Zt 4690 , i = r.baseQueue 4691 , o = n.pending; 4692 if (o !== null) { 4693 if (i !== null) { 4694 var a = i.next; 4695 i.next = o.next, 4696 o.next = a 4697 } 4698 r.baseQueue = i = o, 4699 n.pending = null 4700 } 4701 if (i !== null) { 4702 o = i.next, 4703 r = r.baseState; 4704 var s = a = null 4705 , l = null 4706 , c = o; 4707 do { 4708 var u = c.lane; 4709 if ((Rs & u) === u) 4710 l !== null && (l = l.next = { 4711 lane: 0, 4712 action: c.action, 4713 hasEagerState: c.hasEagerState, 4714 eagerState: c.eagerState, 4715 next: null 4716 }), 4717 r = c.hasEagerState ? c.eagerState : e(r, c.action); 4718 else { 4719 var d = { 4720 lane: u, 4721 action: c.action, 4722 hasEagerState: c.hasEagerState, 4723 eagerState: c.eagerState, 4724 next: null 4725 }; 4726 l === null ? (s = l = d, 4727 a = r) : l = l.next = d, 4728 Et.lanes |= u, 4729 Ds |= u 4730 } 4731 c = c.next 4732 } while (c !== null && c !== o); 4733 l === null ? a = r : l.next = s, 4734 hi(r, t.memoizedState) || (Qn = !0), 4735 t.memoizedState = r, 4736 t.baseState = a, 4737 t.baseQueue = l, 4738 n.lastRenderedState = r 4739 } 4740 if (e = n.interleaved, 4741 e !== null) { 4742 i = e; 4743 do 4744 o = i.lane, 4745 Et.lanes |= o, 4746 Ds |= o, 4747 i = i.next; 4748 while (i !== e) 4749 } else 4750 i === null && (n.lanes = 0); 4751 return [t.memoizedState, n.dispatch] 4752} 4753function U0(e) { 4754 var t = Vr() 4755 , n = t.queue; 4756 if (n === null) 4757 throw Error(J(311)); 4758 n.lastRenderedReducer = e; 4759 var r = n.dispatch 4760 , i = n.pending 4761 , o = t.memoizedState; 4762 if (i !== null) { 4763 n.pending = null; 4764 var a = i = i.next; 4765 do 4766 o = e(o, a.action), 4767 a = a.next; 4768 while (a !== i); 4769 hi(o, t.memoizedState) || (Qn = !0), 4770 t.memoizedState = o, 4771 t.baseQueue === null && (t.baseState = o), 4772 n.lastRenderedState = o 4773 } 4774 return [o, r] 4775} 4776function OL() {} 4777function AL(e, t) { 4778 var n = Et 4779 , r = Vr() 4780 , i = t() 4781 , o = !hi(r.memoizedState, i); 4782 if (o && (r.memoizedState = i, 4783 Qn = !0), 4784 r = r.queue, 4785 hP(NL.bind(null, n, r, e), [e]), 4786 r.getSnapshot !== t || o || sn !== null && sn.memoizedState.tag & 1) { 4787 if (n.flags |= 2048, 4788 nf(9, jL.bind(null, n, r, i, t), void 0, null), 4789 un === null) 4790 throw Error(J(349)); 4791 Rs & 30 || EL(n, t, i) 4792 } 4793 return i 4794} 4795function EL(e, t, n) { 4796 e.flags |= 16384, 4797 e = { 4798 getSnapshot: t, 4799 value: n 4800 }, 4801 t = Et.updateQueue, 4802 t === null ? (t = { 4803 lastEffect: null, 4804 stores: null 4805 }, 4806 Et.updateQueue = t, 4807 t.stores = [e]) : (n = t.stores, 4808 n === null ? t.stores = [e] : n.push(e)) 4809} 4810function jL(e, t, n, r) { 4811 t.value = n, 4812 t.getSnapshot = r, 4813 ML(t) && kL(e) 4814} 4815function NL(e, t, n) { 4816 return n(function() { 4817 ML(t) && kL(e) 4818 }) 4819} 4820function ML(e) { 4821 var t = e.getSnapshot; 4822 e = e.value; 4823 try { 4824 var n = t(); 4825 return !hi(e, n) 4826 } catch { 4827 return !0 4828 } 4829} 4830function kL(e) { 4831 var t = So(e, 1); 4832 t !== null && li(t, e, 1, -1) 4833} 4834function vO(e) { 4835 var t = Si(); 4836 return typeof e == "function" && (e = e()), 4837 t.memoizedState = t.baseState = e, 4838 e = { 4839 pending: null, 4840 interleaved: null, 4841 lanes: 0, 4842 dispatch: null, 4843 lastRenderedReducer: tf, 4844 lastRenderedState: e 4845 }, 4846 t.queue = e, 4847 e = e.dispatch = VK.bind(null, Et, e), 4848 [t.memoizedState, e] 4849} 4850function nf(e, t, n, r) { 4851 return e = { 4852 tag: e, 4853 create: t, 4854 destroy: n, 4855 deps: r, 4856 next: null 4857 }, 4858 t = Et.updateQueue, 4859 t === null ? (t = { 4860 lastEffect: null, 4861 stores: null 4862 }, 4863 Et.updateQueue = t, 4864 t.lastEffect = e.next = e) : (n = t.lastEffect, 4865 n === null ? t.lastEffect = e.next = e : (r = n.next, 4866 n.next = e, 4867 e.next = r, 4868 t.lastEffect = e)), 4869 e 4870} 4871function RL() { 4872 return Vr().memoizedState 4873} 4874function nm(e, t, n, r) { 4875 var i = Si(); 4876 Et.flags |= e, 4877 i.memoizedState = nf(1 | t, n, void 0, r === void 0 ? null : r) 4878} 4879function Iy(e, t, n, r) { 4880 var i = Vr(); 4881 r = r === void 0 ? null : r; 4882 var o = void 0; 4883 if (Zt !== null) { 4884 var a = Zt.memoizedState; 4885 if (o = a.destroy, 4886 r !== null && uP(r, a.deps)) { 4887 i.memoizedState = nf(t, n, o, r); 4888 return 4889 } 4890 } 4891 Et.flags |= e, 4892 i.memoizedState = nf(1 | t, n, o, r) 4893} 4894function xO(e, t) { 4895 return nm(8390656, 8, e, t) 4896} 4897function hP(e, t) { 4898 return Iy(2048, 8, e, t) 4899} 4900function DL(e, t) { 4901 return Iy(4, 2, e, t) 4902} 4903function IL(e, t) { 4904 return Iy(4, 4, e, t) 4905} 4906function $L(e, t) { 4907 if (typeof t == "function") 4908 return e = e(), 4909 t(e), 4910 function() { 4911 t(null) 4912 } 4913 ; 4914 if (t != null) 4915 return e = e(), 4916 t.current = e, 4917 function() { 4918 t.current = null 4919 } 4920} 4921function LL(e, t, n) { 4922 return n = n != null ? n.concat([e]) : null, 4923 Iy(4, 4, $L.bind(null, t, e), n) 4924} 4925function pP() {} 4926function FL(e, t) { 4927 var n = Vr(); 4928 t = t === void 0 ? null : t; 4929 var r = n.memoizedState; 4930 return r !== null && t !== null && uP(t, r[1]) ? r[0] : (n.memoizedState = [e, t], 4931 e) 4932} 4933function BL(e, t) { 4934 var n = Vr(); 4935 t = t === void 0 ? null : t; 4936 var r = n.memoizedState; 4937 return r !== null && t !== null && uP(t, r[1]) ? r[0] : (e = e(), 4938 n.memoizedState = [e, t], 4939 e) 4940} 4941function VL(e, t, n) { 4942 return Rs & 21 ? (hi(n, t) || (n = q$(), 4943 Et.lanes |= n, 4944 Ds |= n, 4945 e.baseState = !0), 4946 t) : (e.baseState && (e.baseState = !1, 4947 Qn = !0), 4948 e.memoizedState = n) 4949} 4950function FK(e, t) { 4951 var n = rt; 4952 rt = n !== 0 && 4 > n ? n : 4, 4953 e(!0); 4954 var r = B0.transition; 4955 B0.transition = {}; 4956 try { 4957 e(!1), 4958 t() 4959 } finally { 4960 rt = n, 4961 B0.transition = r 4962 } 4963} 4964function UL() { 4965 return Vr().memoizedState 4966} 4967function BK(e, t, n) { 4968 var r = ya(e); 4969 if (n = { 4970 lane: r, 4971 action: n, 4972 hasEagerState: !1, 4973 eagerState: null, 4974 next: null 4975 }, 4976 zL(e)) 4977 WL(t, n); 4978 else if (n = _L(e, t, n, r), 4979 n !== null) { 4980 var i = Fn(); 4981 li(n, e, r, i), 4982 HL(n, t, r) 4983 } 4984} 4985function VK(e, t, n) { 4986 var r = ya(e) 4987 , i = { 4988 lane: r, 4989 action: n, 4990 hasEagerState: !1, 4991 eagerState: null, 4992 next: null 4993 }; 4994 if (zL(e)) 4995 WL(t, i); 4996 else { 4997 var o = e.alternate; 4998 if (e.lanes === 0 && (o === null || o.lanes === 0) && (o = t.lastRenderedReducer, 4999 o !== null)) 5000 try { 5001 var a = t.lastRenderedState 5002 , s = o(a, n); 5003 if (i.hasEagerState = !0, 5004 i.eagerState = s, 5005 hi(s, a)) { 5006 var l = t.interleaved; 5007 l === null ? (i.next = i, 5008 oP(t)) : (i.next = l.next, 5009 l.next = i), 5010 t.interleaved = i; 5011 return 5012 } 5013 } catch {} finally {} 5014 n = _L(e, t, i, r), 5015 n !== null && (i = Fn(), 5016 li(n, e, r, i), 5017 HL(n, t, r)) 5018 } 5019} 5020function zL(e) { 5021 var t = e.alternate; 5022 return e === Et || t !== null && t === Et 5023} 5024function WL(e, t) { 5025 Td = Fm = !0; 5026 var n = e.pending; 5027 n === null ? t.next = t : (t.next = n.next, 5028 n.next = t), 5029 e.pending = t 5030} 5031function HL(e, t, n) { 5032 if (n & 4194240) { 5033 var r = t.lanes; 5034 r &= e.pendingLanes, 5035 n |= r, 5036 t.lanes = n, 5037 HS(e, n) 5038 } 5039} 5040var Bm = { 5041 readContext: Br, 5042 useCallback: wn, 5043 useContext: wn, 5044 useEffect: wn, 5045 useImperativeHandle: wn, 5046 useInsertionEffect: wn, 5047 useLayoutEffect: wn, 5048 useMemo: wn, 5049 useReducer: wn, 5050 useRef: wn, 5051 useState: wn, 5052 useDebugValue: wn, 5053 useDeferredValue: wn, 5054 useTransition: wn, 5055 useMutableSource: wn, 5056 useSyncExternalStore: wn, 5057 useId: wn, 5058 unstable_isNewReconciler: !1 5059} 5060 , UK = { 5061 readContext: Br, 5062 useCallback: function(e, t) { 5063 return Si().memoizedState = [e, t === void 0 ? null : t], 5064 e 5065 }, 5066 useContext: Br, 5067 useEffect: xO, 5068 useImperativeHandle: function(e, t, n) { 5069 return n = n != null ? n.concat([e]) : null, 5070 nm(4194308, 4, $L.bind(null, t, e), n) 5071 }, 5072 useLayoutEffect: function(e, t) { 5073 return nm(4194308, 4, e, t) 5074 }, 5075 useInsertionEffect: function(e, t) { 5076 return nm(4, 2, e, t) 5077 }, 5078 useMemo: function(e, t) { 5079 var n = Si(); 5080 return t = t === void 0 ? null : t, 5081 e = e(), 5082 n.memoizedState = [e, t], 5083 e 5084 }, 5085 useReducer: function(e, t, n) { 5086 var r = Si(); 5087 return t = n !== void 0 ? n(t) : t, 5088 r.memoizedState = r.baseState = t, 5089 e = { 5090 pending: null, 5091 interleaved: null, 5092 lanes: 0, 5093 dispatch: null, 5094 lastRenderedReducer: e, 5095 lastRenderedState: t 5096 }, 5097 r.queue = e, 5098 e = e.dispatch = BK.bind(null, Et, e), 5099 [r.memoizedState, e] 5100 }, 5101 useRef: function(e) { 5102 var t = Si(); 5103 return e = { 5104 current: e 5105 }, 5106 t.memoizedState = e 5107 }, 5108 useState: vO, 5109 useDebugValue: pP, 5110 useDeferredValue: function(e) { 5111 return Si().memoizedState = e 5112 }, 5113 useTransition: function() { 5114 var e = vO(!1) 5115 , t = e[0]; 5116 return e = FK.bind(null, e[1]), 5117 Si().memoizedState = e, 5118 [t, e] 5119 }, 5120 useMutableSource: function() {}, 5121 useSyncExternalStore: function(e, t, n) { 5122 var r = Et 5123 , i = Si(); 5124 if (xt) { 5125 if (n === void 0) 5126 throw Error(J(407)); 5127 n = n() 5128 } else { 5129 if (n = t(), 5130 un === null) 5131 throw Error(J(349)); 5132 Rs & 30 || EL(r, t, n) 5133 } 5134 i.memoizedState = n; 5135 var o = { 5136 value: n, 5137 getSnapshot: t 5138 }; 5139 return i.queue = o, 5140 xO(NL.bind(null, r, o, e), [e]), 5141 r.flags |= 2048, 5142 nf(9, jL.bind(null, r, o, n, t), void 0, null), 5143 n 5144 }, 5145 useId: function() { 5146 var e = Si() 5147 , t = un.identifierPrefix; 5148 if (xt) { 5149 var n = lo 5150 , r = so; 5151 n = (r & ~(1 << 32 - si(r) - 1)).toString(32) + n, 5152 t = ":" + t + "R" + n, 5153 n = ef++, 5154 0 < n && (t += "H" + n.toString(32)), 5155 t += ":" 5156 } else 5157 n = LK++, 5158 t = ":" + t + "r" + n.toString(32) + ":"; 5159 return e.memoizedState = t 5160 }, 5161 unstable_isNewReconciler: !1 5162} 5163 , zK = { 5164 readContext: Br, 5165 useCallback: FL, 5166 useContext: Br, 5167 useEffect: hP, 5168 useImperativeHandle: LL, 5169 useInsertionEffect: DL, 5170 useLayoutEffect: IL, 5171 useMemo: BL, 5172 useReducer: V0, 5173 useRef: RL, 5174 useState: function() { 5175 return V0(tf) 5176 }, 5177 useDebugValue: pP, 5178 useDeferredValue: function(e) { 5179 var t = Vr(); 5180 return VL(t, Zt.memoizedState, e) 5181 }, 5182 useTransition: function() { 5183 var e = V0(tf)[0] 5184 , t = Vr().memoizedState; 5185 return [e, t] 5186 }, 5187 useMutableSource: OL, 5188 useSyncExternalStore: AL, 5189 useId: UL, 5190 unstable_isNewReconciler: !1 5191} 5192 , WK = { 5193 readContext: Br, 5194 useCallback: FL, 5195 useContext: Br, 5196 useEffect: hP, 5197 useImperativeHandle: LL, 5198 useInsertionEffect: DL, 5199 useLayoutEffect: IL, 5200 useMemo: BL, 5201 useReducer: U0,
vendor: 6,851 bytes, lines 5202-5456
5202 useRef: RL, 5203 useState: function() { 5204 return U0(tf) 5205 }, 5206 useDebugValue: pP, 5207 useDeferredValue: function(e) { 5208 var t = Vr(); 5209 return Zt === null ? t.memoizedState = e : VL(t, Zt.memoizedState, e) 5210 }, 5211 useTransition: function() { 5212 var e = U0(tf)[0] 5213 , t = Vr().memoizedState; 5214 return [e, t] 5215 }, 5216 useMutableSource: OL, 5217 useSyncExternalStore: AL, 5218 useId: UL, 5219 unstable_isNewReconciler: !1 5220}; 5221function Xr(e, t) { 5222 if (e && e.defaultProps) { 5223 t = jt({}, t), 5224 e = e.defaultProps; 5225 for (var n in e) 5226 t[n] === void 0 && (t[n] = e[n]); 5227 return t 5228 } 5229 return t 5230} 5231function Db(e, t, n, r) { 5232 t = e.memoizedState, 5233 n = n(r, t), 5234 n = n == null ? t : jt({}, t, n), 5235 e.memoizedState = n, 5236 e.lanes === 0 && (e.updateQueue.baseState = n) 5237} 5238var $y = { 5239 isMounted: function(e) { 5240 return (e = e._reactInternals) ? Qs(e) === e : !1 5241 }, 5242 enqueueSetState: function(e, t, n) { 5243 e = e._reactInternals; 5244 var r = Fn() 5245 , i = ya(e) 5246 , o = ho(r, i); 5247 o.payload = t, 5248 n != null && (o.callback = n), 5249 t = ma(e, o, i), 5250 t !== null && (li(t, e, i, r), 5251 em(t, e, i)) 5252 }, 5253 enqueueReplaceState: function(e, t, n) { 5254 e = e._reactInternals; 5255 var r = Fn() 5256 , i = ya(e) 5257 , o = ho(r, i); 5258 o.tag = 1, 5259 o.payload = t, 5260 n != null && (o.callback = n), 5261 t = ma(e, o, i), 5262 t !== null && (li(t, e, i, r), 5263 em(t, e, i)) 5264 }, 5265 enqueueForceUpdate: function(e, t) { 5266 e = e._reactInternals; 5267 var n = Fn() 5268 , r = ya(e) 5269 , i = ho(n, r); 5270 i.tag = 2, 5271 t != null && (i.callback = t), 5272 t = ma(e, i, r), 5273 t !== null && (li(t, e, r, n), 5274 em(t, e, r)) 5275 } 5276}; 5277function bO(e, t, n, r, i, o, a) { 5278 return e = e.stateNode, 5279 typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, o, a) : t.prototype && t.prototype.isPureReactComponent ? !Gd(n, r) || !Gd(i, o) : !0 5280} 5281function qL(e, t, n) { 5282 var r = !1 5283 , i = Pa 5284 , o = t.contextType; 5285 return typeof o == "object" && o !== null ? o = Br(o) : (i = er(t) ? Ms : En.current, 5286 r = t.contextTypes, 5287 o = (r = r != null) ? vc(e, i) : Pa), 5288 t = new t(n,o), 5289 e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, 5290 t.updater = $y, 5291 e.stateNode = t, 5292 t._reactInternals = e, 5293 r && (e = e.stateNode, 5294 e.__reactInternalMemoizedUnmaskedChildContext = i, 5295 e.__reactInternalMemoizedMaskedChildContext = o), 5296 t 5297} 5298function wO(e, t, n, r) { 5299 e = t.state, 5300 typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), 5301 typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), 5302 t.state !== e && $y.enqueueReplaceState(t, t.state, null) 5303} 5304function Ib(e, t, n, r) { 5305 var i = e.stateNode; 5306 i.props = n, 5307 i.state = e.memoizedState, 5308 i.refs = {}, 5309 aP(e); 5310 var o = t.contextType; 5311 typeof o == "object" && o !== null ? i.context = Br(o) : (o = er(t) ? Ms : En.current, 5312 i.context = vc(e, o)), 5313 i.state = e.memoizedState, 5314 o = t.getDerivedStateFromProps, 5315 typeof o == "function" && (Db(e, t, o, n), 5316 i.state = e.memoizedState), 5317 typeof t.getDerivedStateFromProps == "function" || typeof i.getSnapshotBeforeUpdate == "function" || typeof i.UNSAFE_componentWillMount != "function" && typeof i.componentWillMount != "function" || (t = i.state, 5318 typeof i.componentWillMount == "function" && i.componentWillMount(), 5319 typeof i.UNSAFE_componentWillMount == "function" && i.UNSAFE_componentWillMount(), 5320 t !== i.state && $y.enqueueReplaceState(i, i.state, null), 5321 $m(e, n, i, r), 5322 i.state = e.memoizedState), 5323 typeof i.componentDidMount == "function" && (e.flags |= 4194308) 5324} 5325function Sc(e, t) { 5326 try { 5327 var n = "" 5328 , r = t; 5329 do 5330 n += vq(r), 5331 r = r.return; 5332 while (r); 5333 var i = n 5334 } catch (o) { 5335 i = ` 5336Error generating stack: ` + o.message + ` 5337` + o.stack 5338 } 5339 return { 5340 value: e, 5341 source: t, 5342 stack: i, 5343 digest: null 5344 } 5345} 5346function z0(e, t, n) { 5347 return { 5348 value: e, 5349 source: null, 5350 stack: n ?? null, 5351 digest: t ?? null 5352 } 5353} 5354function $b(e, t) { 5355 try { 5356 console.error(t.value) 5357 } catch (n) { 5358 setTimeout(function() { 5359 throw n 5360 }) 5361 } 5362} 5363var HK = typeof WeakMap == "function" ? WeakMap : Map; 5364function KL(e, t, n) { 5365 n = ho(-1, n), 5366 n.tag = 3, 5367 n.payload = { 5368 element: null 5369 }; 5370 var r = t.value; 5371 return n.callback = function() { 5372 Um || (Um = !0, 5373 Kb = r), 5374 $b(e, t) 5375 } 5376 , 5377 n 5378} 5379function GL(e, t, n) { 5380 n = ho(-1, n), 5381 n.tag = 3; 5382 var r = e.type.getDerivedStateFromError; 5383 if (typeof r == "function") { 5384 var i = t.value; 5385 n.payload = function() { 5386 return r(i) 5387 } 5388 , 5389 n.callback = function() { 5390 $b(e, t) 5391 } 5392 } 5393 var o = e.stateNode; 5394 return o !== null && typeof o.componentDidCatch == "function" && (n.callback = function() { 5395 $b(e, t), 5396 typeof r != "function" && (ga === null ? ga = new Set([this]) : ga.add(this)); 5397 var a = t.stack; 5398 this.componentDidCatch(t.value, { 5399 componentStack: a !== null ? a : "" 5400 }) 5401 } 5402 ), 5403 n 5404} 5405function SO(e, t, n) { 5406 var r = e.pingCache; 5407 if (r === null) { 5408 r = e.pingCache = new HK; 5409 var i = new Set; 5410 r.set(t, i) 5411 } else 5412 i = r.get(t), 5413 i === void 0 && (i = new Set, 5414 r.set(t, i)); 5415 i.has(n) || (i.add(n), 5416 e = oG.bind(null, e, t, n), 5417 t.then(e, e)) 5418} 5419function PO(e) { 5420 do { 5421 var t; 5422 if ((t = e.tag === 13) && (t = e.memoizedState, 5423 t = t !== null ? t.dehydrated !== null : !0), 5424 t) 5425 return e; 5426 e = e.return 5427 } while (e !== null); 5428 return null 5429} 5430function _O(e, t, n, r, i) { 5431 return e.mode & 1 ? (e.flags |= 65536, 5432 e.lanes = i, 5433 e) : (e === t ? e.flags |= 65536 : (e.flags |= 128, 5434 n.flags |= 131072, 5435 n.flags &= -52805, 5436 n.tag === 1 && (n.alternate === null ? n.tag = 17 : (t = ho(-1, 1), 5437 t.tag = 2, 5438 ma(n, t, 1))), 5439 n.lanes |= 1), 5440 e) 5441} 5442var qK = No.ReactCurrentOwner 5443 , Qn = !1; 5444function Dn(e, t, n, r) { 5445 t.child = e === null ? PL(t, null, n, r) : bc(t, e.child, n, r) 5446} 5447function TO(e, t, n, r, i) { 5448 n = n.render; 5449 var o = t.ref; 5450 return Wl(t, i), 5451 r = dP(e, t, n, r, o, i), 5452 n = fP(), 5453 e !== null && !Qn ? (t.updateQueue = e.updateQueue, 5454 t.flags &= -2053, 5455 e.lanes &= ~i, 5456 Po(e, t, i)) : (xt && n && JS(t),
vendor: 14,785 bytes, lines 5457-5945
5457 t.flags |= 1, 5458 Dn(e, t, r, i), 5459 t.child) 5460} 5461function CO(e, t, n, r, i) { 5462 if (e === null) { 5463 var o = n.type; 5464 return typeof o == "function" && !SP(o) && o.defaultProps === void 0 && n.compare === null && n.defaultProps === void 0 ? (t.tag = 15, 5465 t.type = o, 5466 YL(e, t, o, r, i)) : (e = am(n.type, null, r, t, t.mode, i), 5467 e.ref = t.ref, 5468 e.return = t, 5469 t.child = e) 5470 } 5471 if (o = e.child, 5472 !(e.lanes & i)) { 5473 var a = o.memoizedProps; 5474 if (n = n.compare, 5475 n = n !== null ? n : Gd, 5476 n(a, r) && e.ref === t.ref) 5477 return Po(e, t, i) 5478 } 5479 return t.flags |= 1, 5480 e = va(o, r), 5481 e.ref = t.ref, 5482 e.return = t, 5483 t.child = e 5484} 5485function YL(e, t, n, r, i) { 5486 if (e !== null) { 5487 var o = e.memoizedProps; 5488 if (Gd(o, r) && e.ref === t.ref) 5489 if (Qn = !1, 5490 t.pendingProps = r = o, 5491 (e.lanes & i) !== 0) 5492 e.flags & 131072 && (Qn = !0); 5493 else 5494 return t.lanes = e.lanes, 5495 Po(e, t, i) 5496 } 5497 return Lb(e, t, n, r, i) 5498} 5499function XL(e, t, n) { 5500 var r = t.pendingProps 5501 , i = r.children 5502 , o = e !== null ? e.memoizedState : null; 5503 if (r.mode === "hidden") 5504 if (!(t.mode & 1)) 5505 t.memoizedState = { 5506 baseLanes: 0, 5507 cachePool: null, 5508 transitions: null 5509 }, 5510 dt(jl, ar), 5511 ar |= n; 5512 else { 5513 if (!(n & 1073741824)) 5514 return e = o !== null ? o.baseLanes | n : n, 5515 t.lanes = t.childLanes = 1073741824, 5516 t.memoizedState = { 5517 baseLanes: e, 5518 cachePool: null, 5519 transitions: null 5520 }, 5521 t.updateQueue = null, 5522 dt(jl, ar), 5523 ar |= e, 5524 null; 5525 t.memoizedState = { 5526 baseLanes: 0, 5527 cachePool: null, 5528 transitions: null 5529 }, 5530 r = o !== null ? o.baseLanes : n, 5531 dt(jl, ar), 5532 ar |= r 5533 } 5534 else 5535 o !== null ? (r = o.baseLanes | n, 5536 t.memoizedState = null) : r = n, 5537 dt(jl, ar), 5538 ar |= r; 5539 return Dn(e, t, i, n), 5540 t.child 5541} 5542function QL(e, t) { 5543 var n = t.ref; 5544 (e === null && n !== null || e !== null && e.ref !== n) && (t.flags |= 512, 5545 t.flags |= 2097152) 5546} 5547function Lb(e, t, n, r, i) { 5548 var o = er(n) ? Ms : En.current; 5549 return o = vc(t, o), 5550 Wl(t, i), 5551 n = dP(e, t, n, r, o, i), 5552 r = fP(), 5553 e !== null && !Qn ? (t.updateQueue = e.updateQueue, 5554 t.flags &= -2053, 5555 e.lanes &= ~i, 5556 Po(e, t, i)) : (xt && r && JS(t), 5557 t.flags |= 1, 5558 Dn(e, t, n, i), 5559 t.child) 5560} 5561function OO(e, t, n, r, i) { 5562 if (er(n)) { 5563 var o = !0; 5564 Mm(t) 5565 } else 5566 o = !1; 5567 if (Wl(t, i), 5568 t.stateNode === null) 5569 rm(e, t), 5570 qL(t, n, r), 5571 Ib(t, n, r, i), 5572 r = !0; 5573 else if (e === null) { 5574 var a = t.stateNode 5575 , s = t.memoizedProps; 5576 a.props = s; 5577 var l = a.context 5578 , c = n.contextType; 5579 typeof c == "object" && c !== null ? c = Br(c) : (c = er(n) ? Ms : En.current, 5580 c = vc(t, c)); 5581 var u = n.getDerivedStateFromProps 5582 , d = typeof u == "function" || typeof a.getSnapshotBeforeUpdate == "function"; 5583 d || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s !== r || l !== c) && wO(t, a, r, c), 5584 Ko = !1; 5585 var f = t.memoizedState; 5586 a.state = f, 5587 $m(t, r, a, i), 5588 l = t.memoizedState, 5589 s !== r || f !== l || Jn.current || Ko ? (typeof u == "function" && (Db(t, n, u, r), 5590 l = t.memoizedState), 5591 (s = Ko || bO(t, n, s, r, f, l, c)) ? (d || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), 5592 typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), 5593 typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), 5594 t.memoizedProps = r, 5595 t.memoizedState = l), 5596 a.props = r, 5597 a.state = l, 5598 a.context = c, 5599 r = s) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), 5600 r = !1) 5601 } else { 5602 a = t.stateNode, 5603 TL(e, t), 5604 s = t.memoizedProps, 5605 c = t.type === t.elementType ? s : Xr(t.type, s), 5606 a.props = c, 5607 d = t.pendingProps, 5608 f = a.context, 5609 l = n.contextType, 5610 typeof l == "object" && l !== null ? l = Br(l) : (l = er(n) ? Ms : En.current, 5611 l = vc(t, l)); 5612 var p = n.getDerivedStateFromProps; 5613 (u = typeof p == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s !== d || f !== l) && wO(t, a, r, l), 5614 Ko = !1, 5615 f = t.memoizedState, 5616 a.state = f, 5617 $m(t, r, a, i); 5618 var g = t.memoizedState; 5619 s !== d || f !== g || Jn.current || Ko ? (typeof p == "function" && (Db(t, n, p, r), 5620 g = t.memoizedState), 5621 (c = Ko || bO(t, n, c, r, f, g, l) || !1) ? (u || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, g, l), 5622 typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, g, l)), 5623 typeof a.componentDidUpdate == "function" && (t.flags |= 4), 5624 typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || s === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), 5625 typeof a.getSnapshotBeforeUpdate != "function" || s === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), 5626 t.memoizedProps = r, 5627 t.memoizedState = g), 5628 a.props = r, 5629 a.state = g, 5630 a.context = l, 5631 r = c) : (typeof a.componentDidUpdate != "function" || s === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), 5632 typeof a.getSnapshotBeforeUpdate != "function" || s === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), 5633 r = !1) 5634 } 5635 return Fb(e, t, n, r, o, i) 5636} 5637function Fb(e, t, n, r, i, o) { 5638 QL(e, t); 5639 var a = (t.flags & 128) !== 0; 5640 if (!r && !a) 5641 return i && fO(t, n, !1), 5642 Po(e, t, o); 5643 r = t.stateNode, 5644 qK.current = t; 5645 var s = a && typeof n.getDerivedStateFromError != "function" ? null : r.render(); 5646 return t.flags |= 1, 5647 e !== null && a ? (t.child = bc(t, e.child, null, o), 5648 t.child = bc(t, null, s, o)) : Dn(e, t, s, o), 5649 t.memoizedState = r.state, 5650 i && fO(t, n, !0), 5651 t.child 5652} 5653function ZL(e) { 5654 var t = e.stateNode; 5655 t.pendingContext ? dO(e, t.pendingContext, t.pendingContext !== t.context) : t.context && dO(e, t.context, !1), 5656 sP(e, t.containerInfo) 5657} 5658function AO(e, t, n, r, i) { 5659 return xc(), 5660 tP(i), 5661 t.flags |= 256, 5662 Dn(e, t, n, r), 5663 t.child 5664} 5665var Bb = { 5666 dehydrated: null, 5667 treeContext: null, 5668 retryLane: 0 5669}; 5670function Vb(e) { 5671 return { 5672 baseLanes: e, 5673 cachePool: null, 5674 transitions: null 5675 } 5676} 5677function JL(e, t, n) { 5678 var r = t.pendingProps, i = _t.current, o = !1, a = (t.flags & 128) !== 0, s; 5679 if ((s = a) || (s = e !== null && e.memoizedState === null ? !1 : (i & 2) !== 0), 5680 s ? (o = !0, 5681 t.flags &= -129) : (e === null || e.memoizedState !== null) && (i |= 1), 5682 dt(_t, i & 1), 5683 e === null) 5684 return kb(t), 5685 e = t.memoizedState, 5686 e !== null && (e = e.dehydrated, 5687 e !== null) ? (t.mode & 1 ? e.data === "$!" ? t.lanes = 8 : t.lanes = 1073741824 : t.lanes = 1, 5688 null) : (a = r.children, 5689 e = r.fallback, 5690 o ? (r = t.mode, 5691 o = t.child, 5692 a = { 5693 mode: "hidden", 5694 children: a 5695 }, 5696 !(r & 1) && o !== null ? (o.childLanes = 0, 5697 o.pendingProps = a) : o = By(a, r, 0, null), 5698 e = Ts(e, r, n, null), 5699 o.return = t, 5700 e.return = t, 5701 o.sibling = e, 5702 t.child = o, 5703 t.child.memoizedState = Vb(n), 5704 t.memoizedState = Bb, 5705 e) : mP(t, a)); 5706 if (i = e.memoizedState, 5707 i !== null && (s = i.dehydrated, 5708 s !== null)) 5709 return KK(e, t, a, r, s, i, n); 5710 if (o) { 5711 o = r.fallback, 5712 a = t.mode, 5713 i = e.child, 5714 s = i.sibling; 5715 var l = { 5716 mode: "hidden", 5717 children: r.children 5718 }; 5719 return !(a & 1) && t.child !== i ? (r = t.child, 5720 r.childLanes = 0, 5721 r.pendingProps = l, 5722 t.deletions = null) : (r = va(i, l), 5723 r.subtreeFlags = i.subtreeFlags & 14680064), 5724 s !== null ? o = va(s, o) : (o = Ts(o, a, n, null), 5725 o.flags |= 2), 5726 o.return = t, 5727 r.return = t, 5728 r.sibling = o, 5729 t.child = r, 5730 r = o, 5731 o = t.child, 5732 a = e.child.memoizedState, 5733 a = a === null ? Vb(n) : { 5734 baseLanes: a.baseLanes | n, 5735 cachePool: null, 5736 transitions: a.transitions 5737 }, 5738 o.memoizedState = a, 5739 o.childLanes = e.childLanes & ~n, 5740 t.memoizedState = Bb, 5741 r 5742 } 5743 return o = e.child, 5744 e = o.sibling, 5745 r = va(o, { 5746 mode: "visible", 5747 children: r.children 5748 }), 5749 !(t.mode & 1) && (r.lanes = n), 5750 r.return = t, 5751 r.sibling = null, 5752 e !== null && (n = t.deletions, 5753 n === null ? (t.deletions = [e], 5754 t.flags |= 16) : n.push(e)), 5755 t.child = r, 5756 t.memoizedState = null, 5757 r 5758} 5759function mP(e, t) { 5760 return t = By({ 5761 mode: "visible", 5762 children: t 5763 }, e.mode, 0, null), 5764 t.return = e, 5765 e.child = t 5766} 5767function gp(e, t, n, r) { 5768 return r !== null && tP(r), 5769 bc(t, e.child, null, n), 5770 e = mP(t, t.pendingProps.children), 5771 e.flags |= 2, 5772 t.memoizedState = null, 5773 e 5774} 5775function KK(e, t, n, r, i, o, a) { 5776 if (n) 5777 return t.flags & 256 ? (t.flags &= -257, 5778 r = z0(Error(J(422))), 5779 gp(e, t, a, r)) : t.memoizedState !== null ? (t.child = e.child, 5780 t.flags |= 128, 5781 null) : (o = r.fallback, 5782 i = t.mode, 5783 r = By({ 5784 mode: "visible", 5785 children: r.children 5786 }, i, 0, null), 5787 o = Ts(o, i, a, null), 5788 o.flags |= 2, 5789 r.return = t, 5790 o.return = t, 5791 r.sibling = o, 5792 t.child = r, 5793 t.mode & 1 && bc(t, e.child, null, a), 5794 t.child.memoizedState = Vb(a), 5795 t.memoizedState = Bb, 5796 o); 5797 if (!(t.mode & 1)) 5798 return gp(e, t, a, null); 5799 if (i.data === "$!") { 5800 if (r = i.nextSibling && i.nextSibling.dataset, 5801 r) 5802 var s = r.dgst; 5803 return r = s, 5804 o = Error(J(419)), 5805 r = z0(o, r, void 0), 5806 gp(e, t, a, r) 5807 } 5808 if (s = (a & e.childLanes) !== 0, 5809 Qn || s) { 5810 if (r = un, 5811 r !== null) { 5812 switch (a & -a) { 5813 case 4: 5814 i = 2; 5815 break; 5816 case 16: 5817 i = 8; 5818 break; 5819 case 64: 5820 case 128: 5821 case 256: 5822 case 512: 5823 case 1024: 5824 case 2048: 5825 case 4096: 5826 case 8192: 5827 case 16384: 5828 case 32768: 5829 case 65536: 5830 case 131072: 5831 case 262144: 5832 case 524288: 5833 case 1048576: 5834 case 2097152: 5835 case 4194304: 5836 case 8388608: 5837 case 16777216: 5838 case 33554432: 5839 case 67108864: 5840 i = 32; 5841 break; 5842 case 536870912: 5843 i = 268435456; 5844 break; 5845 default: 5846 i = 0 5847 } 5848 i = i & (r.suspendedLanes | a) ? 0 : i, 5849 i !== 0 && i !== o.retryLane && (o.retryLane = i, 5850 So(e, i), 5851 li(r, e, i, -1)) 5852 } 5853 return wP(), 5854 r = z0(Error(J(421))), 5855 gp(e, t, a, r) 5856 } 5857 return i.data === "$?" ? (t.flags |= 128, 5858 t.child = e.child, 5859 t = aG.bind(null, e), 5860 i._reactRetry = t, 5861 null) : (e = o.treeContext, 5862 dr = pa(i.nextSibling), 5863 fr = t, 5864 xt = !0, 5865 ei = null, 5866 e !== null && (Nr[Mr++] = so, 5867 Nr[Mr++] = lo, 5868 Nr[Mr++] = ks, 5869 so = e.id, 5870 lo = e.overflow, 5871 ks = t), 5872 t = mP(t, r.children), 5873 t.flags |= 4096, 5874 t) 5875} 5876function EO(e, t, n) { 5877 e.lanes |= t; 5878 var r = e.alternate; 5879 r !== null && (r.lanes |= t), 5880 Rb(e.return, t, n) 5881} 5882function W0(e, t, n, r, i) { 5883 var o = e.memoizedState; 5884 o === null ? e.memoizedState = { 5885 isBackwards: t, 5886 rendering: null, 5887 renderingStartTime: 0, 5888 last: r, 5889 tail: n, 5890 tailMode: i 5891 } : (o.isBackwards = t, 5892 o.rendering = null, 5893 o.renderingStartTime = 0, 5894 o.last = r, 5895 o.tail = n, 5896 o.tailMode = i) 5897} 5898function eF(e, t, n) { 5899 var r = t.pendingProps 5900 , i = r.revealOrder 5901 , o = r.tail; 5902 if (Dn(e, t, r.children, n), 5903 r = _t.current, 5904 r & 2) 5905 r = r & 1 | 2, 5906 t.flags |= 128; 5907 else { 5908 if (e !== null && e.flags & 128) 5909 e: for (e = t.child; e !== null; ) { 5910 if (e.tag === 13) 5911 e.memoizedState !== null && EO(e, n, t); 5912 else if (e.tag === 19) 5913 EO(e, n, t); 5914 else if (e.child !== null) { 5915 e.child.return = e, 5916 e = e.child; 5917 continue 5918 } 5919 if (e === t) 5920 break e; 5921 for (; e.sibling === null; ) { 5922 if (e.return === null || e.return === t) 5923 break e; 5924 e = e.return 5925 } 5926 e.sibling.return = e.return, 5927 e = e.sibling 5928 } 5929 r &= 1 5930 } 5931 if (dt(_t, r), 5932 !(t.mode & 1)) 5933 t.memoizedState = null; 5934 else 5935 switch (i) { 5936 case "forwards": 5937 for (n = t.child, 5938 i = null; n !== null; ) 5939 e = n.alternate, 5940 e !== null && Lm(e) === null && (i = n), 5941 n = n.sibling; 5942 n = i, 5943 n === null ? (i = t.child, 5944 t.child = null) : (i = n.sibling, 5945 n.sibling = null),
vendor: 7,717 bytes, lines 5946-6213
5946 W0(t, !1, i, n, o); 5947 break; 5948 case "backwards": 5949 for (n = null, 5950 i = t.child, 5951 t.child = null; i !== null; ) { 5952 if (e = i.alternate, 5953 e !== null && Lm(e) === null) { 5954 t.child = i; 5955 break 5956 } 5957 e = i.sibling, 5958 i.sibling = n, 5959 n = i, 5960 i = e 5961 } 5962 W0(t, !0, n, null, o); 5963 break; 5964 case "together": 5965 W0(t, !1, null, null, void 0); 5966 break; 5967 default: 5968 t.memoizedState = null 5969 } 5970 return t.child 5971} 5972function rm(e, t) { 5973 !(t.mode & 1) && e !== null && (e.alternate = null, 5974 t.alternate = null, 5975 t.flags |= 2) 5976} 5977function Po(e, t, n) { 5978 if (e !== null && (t.dependencies = e.dependencies), 5979 Ds |= t.lanes, 5980 !(n & t.childLanes)) 5981 return null; 5982 if (e !== null && t.child !== e.child) 5983 throw Error(J(153)); 5984 if (t.child !== null) { 5985 for (e = t.child, 5986 n = va(e, e.pendingProps), 5987 t.child = n, 5988 n.return = t; e.sibling !== null; ) 5989 e = e.sibling, 5990 n = n.sibling = va(e, e.pendingProps), 5991 n.return = t; 5992 n.sibling = null 5993 } 5994 return t.child 5995} 5996function GK(e, t, n) { 5997 switch (t.tag) { 5998 case 3: 5999 ZL(t), 6000 xc(); 6001 break; 6002 case 5: 6003 CL(t); 6004 break; 6005 case 1: 6006 er(t.type) && Mm(t); 6007 break; 6008 case 4: 6009 sP(t, t.stateNode.containerInfo); 6010 break; 6011 case 10: 6012 var r = t.type._context 6013 , i = t.memoizedProps.value; 6014 dt(Dm, r._currentValue), 6015 r._currentValue = i; 6016 break; 6017 case 13: 6018 if (r = t.memoizedState, 6019 r !== null) 6020 return r.dehydrated !== null ? (dt(_t, _t.current & 1), 6021 t.flags |= 128, 6022 null) : n & t.child.childLanes ? JL(e, t, n) : (dt(_t, _t.current & 1), 6023 e = Po(e, t, n), 6024 e !== null ? e.sibling : null); 6025 dt(_t, _t.current & 1); 6026 break; 6027 case 19: 6028 if (r = (n & t.childLanes) !== 0, 6029 e.flags & 128) { 6030 if (r) 6031 return eF(e, t, n); 6032 t.flags |= 128 6033 } 6034 if (i = t.memoizedState, 6035 i !== null && (i.rendering = null, 6036 i.tail = null, 6037 i.lastEffect = null), 6038 dt(_t, _t.current), 6039 r) 6040 break; 6041 return null; 6042 case 22: 6043 case 23: 6044 return t.lanes = 0, 6045 XL(e, t, n) 6046 } 6047 return Po(e, t, n) 6048} 6049var tF, Ub, nF, rF; 6050tF = function(e, t) { 6051 for (var n = t.child; n !== null; ) { 6052 if (n.tag === 5 || n.tag === 6) 6053 e.appendChild(n.stateNode); 6054 else if (n.tag !== 4 && n.child !== null) { 6055 n.child.return = n, 6056 n = n.child; 6057 continue 6058 } 6059 if (n === t) 6060 break; 6061 for (; n.sibling === null; ) { 6062 if (n.return === null || n.return === t) 6063 return; 6064 n = n.return 6065 } 6066 n.sibling.return = n.return, 6067 n = n.sibling 6068 } 6069} 6070; 6071Ub = function() {} 6072; 6073nF = function(e, t, n, r) { 6074 var i = e.memoizedProps; 6075 if (i !== r) { 6076 e = t.stateNode, 6077 us(Ri.current); 6078 var o = null; 6079 switch (n) { 6080 case "input": 6081 i = ub(e, i), 6082 r = ub(e, r), 6083 o = []; 6084 break; 6085 case "select": 6086 i = jt({}, i, { 6087 value: void 0 6088 }), 6089 r = jt({}, r, { 6090 value: void 0 6091 }), 6092 o = []; 6093 break; 6094 case "textarea": 6095 i = hb(e, i), 6096 r = hb(e, r), 6097 o = []; 6098 break; 6099 default: 6100 typeof i.onClick != "function" && typeof r.onClick == "function" && (e.onclick = jm) 6101 } 6102 mb(n, r); 6103 var a; 6104 n = null; 6105 for (c in i) 6106 if (!r.hasOwnProperty(c) && i.hasOwnProperty(c) && i[c] != null) 6107 if (c === "style") { 6108 var s = i[c]; 6109 for (a in s) 6110 s.hasOwnProperty(a) && (n || (n = {}), 6111 n[a] = "") 6112 } else 6113 c !== "dangerouslySetInnerHTML" && c !== "children" && c !== "suppressContentEditableWarning" && c !== "suppressHydrationWarning" && c !== "autoFocus" && (Vd.hasOwnProperty(c) ? o || (o = []) : (o = o || []).push(c, null)); 6114 for (c in r) { 6115 var l = r[c]; 6116 if (s = i != null ? i[c] : void 0, 6117 r.hasOwnProperty(c) && l !== s && (l != null || s != null)) 6118 if (c === "style") 6119 if (s) { 6120 for (a in s) 6121 !s.hasOwnProperty(a) || l && l.hasOwnProperty(a) || (n || (n = {}), 6122 n[a] = ""); 6123 for (a in l) 6124 l.hasOwnProperty(a) && s[a] !== l[a] && (n || (n = {}), 6125 n[a] = l[a]) 6126 } else 6127 n || (o || (o = []), 6128 o.push(c, n)), 6129 n = l; 6130 else 6131 c === "dangerouslySetInnerHTML" ? (l = l ? l.__html : void 0, 6132 s = s ? s.__html : void 0, 6133 l != null && s !== l && (o = o || []).push(c, l)) : c === "children" ? typeof l != "string" && typeof l != "number" || (o = o || []).push(c, "" + l) : c !== "suppressContentEditableWarning" && c !== "suppressHydrationWarning" && (Vd.hasOwnProperty(c) ? (l != null && c === "onScroll" && ht("scroll", e), 6134 o || s === l || (o = [])) : (o = o || []).push(c, l)) 6135 } 6136 n && (o = o || []).push("style", n); 6137 var c = o; 6138 (t.updateQueue = c) && (t.flags |= 4) 6139 } 6140} 6141; 6142rF = function(e, t, n, r) { 6143 n !== r && (t.flags |= 4) 6144} 6145; 6146function Ru(e, t) { 6147 if (!xt) 6148 switch (e.tailMode) { 6149 case "hidden": 6150 t = e.tail; 6151 for (var n = null; t !== null; ) 6152 t.alternate !== null && (n = t), 6153 t = t.sibling; 6154 n === null ? e.tail = null : n.sibling = null; 6155 break; 6156 case "collapsed": 6157 n = e.tail; 6158 for (var r = null; n !== null; ) 6159 n.alternate !== null && (r = n), 6160 n = n.sibling; 6161 r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null 6162 } 6163} 6164function Sn(e) { 6165 var t = e.alternate !== null && e.alternate.child === e.child 6166 , n = 0 6167 , r = 0; 6168 if (t) 6169 for (var i = e.child; i !== null; ) 6170 n |= i.lanes | i.childLanes, 6171 r |= i.subtreeFlags & 14680064, 6172 r |= i.flags & 14680064, 6173 i.return = e, 6174 i = i.sibling; 6175 else 6176 for (i = e.child; i !== null; ) 6177 n |= i.lanes | i.childLanes, 6178 r |= i.subtreeFlags, 6179 r |= i.flags, 6180 i.return = e, 6181 i = i.sibling; 6182 return e.subtreeFlags |= r, 6183 e.childLanes = n, 6184 t 6185} 6186function YK(e, t, n) { 6187 var r = t.pendingProps; 6188 switch (eP(t), 6189 t.tag) { 6190 case 2: 6191 case 16: 6192 case 15: 6193 case 0: 6194 case 11: 6195 case 7: 6196 case 8: 6197 case 12: 6198 case 9: 6199 case 14: 6200 return Sn(t), 6201 null; 6202 case 1: 6203 return er(t.type) && Nm(), 6204 Sn(t), 6205 null; 6206 case 3: 6207 return r = t.stateNode, 6208 wc(), 6209 yt(Jn), 6210 yt(En), 6211 cP(), 6212 r.pendingContext && (r.context = r.pendingContext, 6213 r.pendingContext = null),
vendor: 50,049 bytes, lines 6214-7841
6214 (e === null || e.child === null) && (pp(t) ? t.flags |= 4 : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, 6215 ei !== null && (Xb(ei), 6216 ei = null))), 6217 Ub(e, t), 6218 Sn(t), 6219 null; 6220 case 5: 6221 lP(t); 6222 var i = us(Jd.current); 6223 if (n = t.type, 6224 e !== null && t.stateNode != null) 6225 nF(e, t, n, r, i), 6226 e.ref !== t.ref && (t.flags |= 512, 6227 t.flags |= 2097152); 6228 else { 6229 if (!r) { 6230 if (t.stateNode === null) 6231 throw Error(J(166)); 6232 return Sn(t), 6233 null 6234 } 6235 if (e = us(Ri.current), 6236 pp(t)) { 6237 r = t.stateNode, 6238 n = t.type; 6239 var o = t.memoizedProps; 6240 switch (r[Ei] = t, 6241 r[Qd] = o, 6242 e = (t.mode & 1) !== 0, 6243 n) { 6244 case "dialog": 6245 ht("cancel", r), 6246 ht("close", r); 6247 break; 6248 case "iframe": 6249 case "object": 6250 case "embed": 6251 ht("load", r); 6252 break; 6253 case "video": 6254 case "audio": 6255 for (i = 0; i < rd.length; i++) 6256 ht(rd[i], r); 6257 break; 6258 case "source": 6259 ht("error", r); 6260 break; 6261 case "img": 6262 case "image": 6263 case "link": 6264 ht("error", r), 6265 ht("load", r); 6266 break; 6267 case "details": 6268 ht("toggle", r); 6269 break; 6270 case "input": 6271 LC(r, o), 6272 ht("invalid", r); 6273 break; 6274 case "select": 6275 r._wrapperState = { 6276 wasMultiple: !!o.multiple 6277 }, 6278 ht("invalid", r); 6279 break; 6280 case "textarea": 6281 BC(r, o), 6282 ht("invalid", r) 6283 } 6284 mb(n, o), 6285 i = null; 6286 for (var a in o) 6287 if (o.hasOwnProperty(a)) { 6288 var s = o[a]; 6289 a === "children" ? typeof s == "string" ? r.textContent !== s && (o.suppressHydrationWarning !== !0 && hp(r.textContent, s, e), 6290 i = ["children", s]) : typeof s == "number" && r.textContent !== "" + s && (o.suppressHydrationWarning !== !0 && hp(r.textContent, s, e), 6291 i = ["children", "" + s]) : Vd.hasOwnProperty(a) && s != null && a === "onScroll" && ht("scroll", r) 6292 } 6293 switch (n) { 6294 case "input": 6295 op(r), 6296 FC(r, o, !0); 6297 break; 6298 case "textarea": 6299 op(r), 6300 VC(r); 6301 break; 6302 case "select": 6303 case "option": 6304 break; 6305 default: 6306 typeof o.onClick == "function" && (r.onclick = jm) 6307 } 6308 r = i, 6309 t.updateQueue = r, 6310 r !== null && (t.flags |= 4) 6311 } else { 6312 a = i.nodeType === 9 ? i : i.ownerDocument, 6313 e === "http://www.w3.org/1999/xhtml" && (e = N$(n)), 6314 e === "http://www.w3.org/1999/xhtml" ? n === "script" ? (e = a.createElement("div"), 6315 e.innerHTML = "<script><\/script>", 6316 e = e.removeChild(e.firstChild)) : typeof r.is == "string" ? e = a.createElement(n, { 6317 is: r.is 6318 }) : (e = a.createElement(n), 6319 n === "select" && (a = e, 6320 r.multiple ? a.multiple = !0 : r.size && (a.size = r.size))) : e = a.createElementNS(e, n), 6321 e[Ei] = t, 6322 e[Qd] = r, 6323 tF(e, t, !1, !1), 6324 t.stateNode = e; 6325 e: { 6326 switch (a = gb(n, r), 6327 n) { 6328 case "dialog": 6329 ht("cancel", e), 6330 ht("close", e), 6331 i = r; 6332 break; 6333 case "iframe": 6334 case "object": 6335 case "embed": 6336 ht("load", e), 6337 i = r; 6338 break; 6339 case "video": 6340 case "audio": 6341 for (i = 0; i < rd.length; i++) 6342 ht(rd[i], e); 6343 i = r; 6344 break; 6345 case "source": 6346 ht("error", e), 6347 i = r; 6348 break; 6349 case "img": 6350 case "image": 6351 case "link": 6352 ht("error", e), 6353 ht("load", e), 6354 i = r; 6355 break; 6356 case "details": 6357 ht("toggle", e), 6358 i = r; 6359 break; 6360 case "input": 6361 LC(e, r), 6362 i = ub(e, r), 6363 ht("invalid", e); 6364 break; 6365 case "option": 6366 i = r; 6367 break; 6368 case "select": 6369 e._wrapperState = { 6370 wasMultiple: !!r.multiple 6371 }, 6372 i = jt({}, r, { 6373 value: void 0 6374 }), 6375 ht("invalid", e); 6376 break; 6377 case "textarea": 6378 BC(e, r), 6379 i = hb(e, r), 6380 ht("invalid", e); 6381 break; 6382 default: 6383 i = r 6384 } 6385 mb(n, i), 6386 s = i; 6387 for (o in s) 6388 if (s.hasOwnProperty(o)) { 6389 var l = s[o]; 6390 o === "style" ? R$(e, l) : o === "dangerouslySetInnerHTML" ? (l = l ? l.__html : void 0, 6391 l != null && M$(e, l)) : o === "children" ? typeof l == "string" ? (n !== "textarea" || l !== "") && Ud(e, l) : typeof l == "number" && Ud(e, "" + l) : o !== "suppressContentEditableWarning" && o !== "suppressHydrationWarning" && o !== "autoFocus" && (Vd.hasOwnProperty(o) ? l != null && o === "onScroll" && ht("scroll", e) : l != null && FS(e, o, l, a)) 6392 } 6393 switch (n) { 6394 case "input": 6395 op(e), 6396 FC(e, r, !1); 6397 break; 6398 case "textarea": 6399 op(e), 6400 VC(e); 6401 break; 6402 case "option": 6403 r.value != null && e.setAttribute("value", "" + Sa(r.value)); 6404 break; 6405 case "select": 6406 e.multiple = !!r.multiple, 6407 o = r.value, 6408 o != null ? Bl(e, !!r.multiple, o, !1) : r.defaultValue != null && Bl(e, !!r.multiple, r.defaultValue, !0); 6409 break; 6410 default: 6411 typeof i.onClick == "function" && (e.onclick = jm) 6412 } 6413 switch (n) { 6414 case "button": 6415 case "input": 6416 case "select": 6417 case "textarea": 6418 r = !!r.autoFocus; 6419 break e; 6420 case "img": 6421 r = !0; 6422 break e; 6423 default: 6424 r = !1 6425 } 6426 } 6427 r && (t.flags |= 4) 6428 } 6429 t.ref !== null && (t.flags |= 512, 6430 t.flags |= 2097152) 6431 } 6432 return Sn(t), 6433 null; 6434 case 6: 6435 if (e && t.stateNode != null) 6436 rF(e, t, e.memoizedProps, r); 6437 else { 6438 if (typeof r != "string" && t.stateNode === null) 6439 throw Error(J(166)); 6440 if (n = us(Jd.current), 6441 us(Ri.current), 6442 pp(t)) { 6443 if (r = t.stateNode, 6444 n = t.memoizedProps, 6445 r[Ei] = t, 6446 (o = r.nodeValue !== n) && (e = fr, 6447 e !== null)) 6448 switch (e.tag) { 6449 case 3: 6450 hp(r.nodeValue, n, (e.mode & 1) !== 0); 6451 break; 6452 case 5: 6453 e.memoizedProps.suppressHydrationWarning !== !0 && hp(r.nodeValue, n, (e.mode & 1) !== 0) 6454 } 6455 o && (t.flags |= 4) 6456 } else 6457 r = (n.nodeType === 9 ? n : n.ownerDocument).createTextNode(r), 6458 r[Ei] = t, 6459 t.stateNode = r 6460 } 6461 return Sn(t), 6462 null; 6463 case 13: 6464 if (yt(_t), 6465 r = t.memoizedState, 6466 e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) { 6467 if (xt && dr !== null && t.mode & 1 && !(t.flags & 128)) 6468 wL(), 6469 xc(), 6470 t.flags |= 98560, 6471 o = !1; 6472 else if (o = pp(t), 6473 r !== null && r.dehydrated !== null) { 6474 if (e === null) { 6475 if (!o) 6476 throw Error(J(318)); 6477 if (o = t.memoizedState, 6478 o = o !== null ? o.dehydrated : null, 6479 !o) 6480 throw Error(J(317)); 6481 o[Ei] = t 6482 } else 6483 xc(), 6484 !(t.flags & 128) && (t.memoizedState = null), 6485 t.flags |= 4; 6486 Sn(t), 6487 o = !1 6488 } else 6489 ei !== null && (Xb(ei), 6490 ei = null), 6491 o = !0; 6492 if (!o) 6493 return t.flags & 65536 ? t : null 6494 } 6495 return t.flags & 128 ? (t.lanes = n, 6496 t) : (r = r !== null, 6497 r !== (e !== null && e.memoizedState !== null) && r && (t.child.flags |= 8192, 6498 t.mode & 1 && (e === null || _t.current & 1 ? en === 0 && (en = 3) : wP())), 6499 t.updateQueue !== null && (t.flags |= 4), 6500 Sn(t), 6501 null); 6502 case 4: 6503 return wc(), 6504 Ub(e, t), 6505 e === null && Yd(t.stateNode.containerInfo), 6506 Sn(t), 6507 null; 6508 case 10: 6509 return iP(t.type._context), 6510 Sn(t), 6511 null; 6512 case 17: 6513 return er(t.type) && Nm(), 6514 Sn(t), 6515 null; 6516 case 19: 6517 if (yt(_t), 6518 o = t.memoizedState, 6519 o === null) 6520 return Sn(t), 6521 null; 6522 if (r = (t.flags & 128) !== 0, 6523 a = o.rendering, 6524 a === null) 6525 if (r) 6526 Ru(o, !1); 6527 else { 6528 if (en !== 0 || e !== null && e.flags & 128) 6529 for (e = t.child; e !== null; ) { 6530 if (a = Lm(e), 6531 a !== null) { 6532 for (t.flags |= 128, 6533 Ru(o, !1), 6534 r = a.updateQueue, 6535 r !== null && (t.updateQueue = r, 6536 t.flags |= 4), 6537 t.subtreeFlags = 0, 6538 r = n, 6539 n = t.child; n !== null; ) 6540 o = n, 6541 e = r, 6542 o.flags &= 14680066, 6543 a = o.alternate, 6544 a === null ? (o.childLanes = 0, 6545 o.lanes = e, 6546 o.child = null, 6547 o.subtreeFlags = 0, 6548 o.memoizedProps = null, 6549 o.memoizedState = null, 6550 o.updateQueue = null, 6551 o.dependencies = null, 6552 o.stateNode = null) : (o.childLanes = a.childLanes, 6553 o.lanes = a.lanes, 6554 o.child = a.child, 6555 o.subtreeFlags = 0, 6556 o.deletions = null, 6557 o.memoizedProps = a.memoizedProps, 6558 o.memoizedState = a.memoizedState, 6559 o.updateQueue = a.updateQueue, 6560 o.type = a.type, 6561 e = a.dependencies, 6562 o.dependencies = e === null ? null : { 6563 lanes: e.lanes, 6564 firstContext: e.firstContext 6565 }), 6566 n = n.sibling; 6567 return dt(_t, _t.current & 1 | 2), 6568 t.child 6569 } 6570 e = e.sibling 6571 } 6572 o.tail !== null && Vt() > Pc && (t.flags |= 128, 6573 r = !0, 6574 Ru(o, !1), 6575 t.lanes = 4194304) 6576 } 6577 else { 6578 if (!r) 6579 if (e = Lm(a), 6580 e !== null) { 6581 if (t.flags |= 128, 6582 r = !0, 6583 n = e.updateQueue, 6584 n !== null && (t.updateQueue = n, 6585 t.flags |= 4), 6586 Ru(o, !0), 6587 o.tail === null && o.tailMode === "hidden" && !a.alternate && !xt) 6588 return Sn(t), 6589 null 6590 } else 6591 2 * Vt() - o.renderingStartTime > Pc && n !== 1073741824 && (t.flags |= 128, 6592 r = !0, 6593 Ru(o, !1), 6594 t.lanes = 4194304); 6595 o.isBackwards ? (a.sibling = t.child, 6596 t.child = a) : (n = o.last, 6597 n !== null ? n.sibling = a : t.child = a, 6598 o.last = a) 6599 } 6600 return o.tail !== null ? (t = o.tail, 6601 o.rendering = t, 6602 o.tail = t.sibling, 6603 o.renderingStartTime = Vt(), 6604 t.sibling = null, 6605 n = _t.current, 6606 dt(_t, r ? n & 1 | 2 : n & 1), 6607 t) : (Sn(t), 6608 null); 6609 case 22: 6610 case 23: 6611 return bP(), 6612 r = t.memoizedState !== null, 6613 e !== null && e.memoizedState !== null !== r && (t.flags |= 8192), 6614 r && t.mode & 1 ? ar & 1073741824 && (Sn(t), 6615 t.subtreeFlags & 6 && (t.flags |= 8192)) : Sn(t), 6616 null; 6617 case 24: 6618 return null; 6619 case 25: 6620 return null 6621 } 6622 throw Error(J(156, t.tag)) 6623} 6624function XK(e, t) { 6625 switch (eP(t), 6626 t.tag) { 6627 case 1: 6628 return er(t.type) && Nm(), 6629 e = t.flags, 6630 e & 65536 ? (t.flags = e & -65537 | 128, 6631 t) : null; 6632 case 3: 6633 return wc(), 6634 yt(Jn), 6635 yt(En), 6636 cP(), 6637 e = t.flags, 6638 e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, 6639 t) : null; 6640 case 5: 6641 return lP(t), 6642 null; 6643 case 13: 6644 if (yt(_t), 6645 e = t.memoizedState, 6646 e !== null && e.dehydrated !== null) { 6647 if (t.alternate === null) 6648 throw Error(J(340)); 6649 xc() 6650 } 6651 return e = t.flags, 6652 e & 65536 ? (t.flags = e & -65537 | 128, 6653 t) : null; 6654 case 19: 6655 return yt(_t), 6656 null; 6657 case 4: 6658 return wc(), 6659 null; 6660 case 10: 6661 return iP(t.type._context), 6662 null; 6663 case 22: 6664 case 23: 6665 return bP(), 6666 null; 6667 case 24: 6668 return null; 6669 default: 6670 return null 6671 } 6672} 6673var yp = !1 6674 , Cn = !1 6675 , QK = typeof WeakSet == "function" ? WeakSet : Set 6676 , pe = null; 6677function El(e, t) { 6678 var n = e.ref; 6679 if (n !== null) 6680 if (typeof n == "function") 6681 try { 6682 n(null) 6683 } catch (r) { 6684 kt(e, t, r) 6685 } 6686 else 6687 n.current = null 6688} 6689function zb(e, t, n) { 6690 try { 6691 n() 6692 } catch (r) { 6693 kt(e, t, r) 6694 } 6695} 6696var jO = !1; 6697function ZK(e, t) { 6698 if (Cb = Om, 6699 e = lL(), 6700 ZS(e)) { 6701 if ("selectionStart"in e) 6702 var n = { 6703 start: e.selectionStart, 6704 end: e.selectionEnd 6705 }; 6706 else 6707 e: { 6708 n = (n = e.ownerDocument) && n.defaultView || window; 6709 var r = n.getSelection && n.getSelection(); 6710 if (r && r.rangeCount !== 0) { 6711 n = r.anchorNode; 6712 var i = r.anchorOffset 6713 , o = r.focusNode; 6714 r = r.focusOffset; 6715 try { 6716 n.nodeType, 6717 o.nodeType 6718 } catch { 6719 n = null; 6720 break e 6721 } 6722 var a = 0 6723 , s = -1 6724 , l = -1 6725 , c = 0 6726 , u = 0 6727 , d = e 6728 , f = null; 6729 t: for (; ; ) { 6730 for (var p; d !== n || i !== 0 && d.nodeType !== 3 || (s = a + i), 6731 d !== o || r !== 0 && d.nodeType !== 3 || (l = a + r), 6732 d.nodeType === 3 && (a += d.nodeValue.length), 6733 (p = d.firstChild) !== null; ) 6734 f = d, 6735 d = p; 6736 for (; ; ) { 6737 if (d === e) 6738 break t; 6739 if (f === n && ++c === i && (s = a), 6740 f === o && ++u === r && (l = a), 6741 (p = d.nextSibling) !== null) 6742 break; 6743 d = f, 6744 f = d.parentNode 6745 } 6746 d = p 6747 } 6748 n = s === -1 || l === -1 ? null : { 6749 start: s, 6750 end: l 6751 } 6752 } else 6753 n = null 6754 } 6755 n = n || { 6756 start: 0, 6757 end: 0 6758 } 6759 } else 6760 n = null; 6761 for (Ob = { 6762 focusedElem: e, 6763 selectionRange: n 6764 }, 6765 Om = !1, 6766 pe = t; pe !== null; ) 6767 if (t = pe, 6768 e = t.child, 6769 (t.subtreeFlags & 1028) !== 0 && e !== null) 6770 e.return = t, 6771 pe = e; 6772 else 6773 for (; pe !== null; ) { 6774 t = pe; 6775 try { 6776 var g = t.alternate; 6777 if (t.flags & 1024) 6778 switch (t.tag) { 6779 case 0: 6780 case 11: 6781 case 15: 6782 break; 6783 case 1: 6784 if (g !== null) { 6785 var m = g.memoizedProps 6786 , x = g.memoizedState 6787 , v = t.stateNode 6788 , y = v.getSnapshotBeforeUpdate(t.elementType === t.type ? m : Xr(t.type, m), x); 6789 v.__reactInternalSnapshotBeforeUpdate = y 6790 } 6791 break; 6792 case 3: 6793 var w = t.stateNode.containerInfo; 6794 w.nodeType === 1 ? w.textContent = "" : w.nodeType === 9 && w.documentElement && w.removeChild(w.documentElement); 6795 break; 6796 case 5: 6797 case 6: 6798 case 4: 6799 case 17: 6800 break; 6801 default: 6802 throw Error(J(163)) 6803 } 6804 } catch (P) { 6805 kt(t, t.return, P) 6806 } 6807 if (e = t.sibling, 6808 e !== null) { 6809 e.return = t.return, 6810 pe = e; 6811 break 6812 } 6813 pe = t.return 6814 } 6815 return g = jO, 6816 jO = !1, 6817 g 6818} 6819function Cd(e, t, n) { 6820 var r = t.updateQueue; 6821 if (r = r !== null ? r.lastEffect : null, 6822 r !== null) { 6823 var i = r = r.next; 6824 do { 6825 if ((i.tag & e) === e) { 6826 var o = i.destroy; 6827 i.destroy = void 0, 6828 o !== void 0 && zb(t, n, o) 6829 } 6830 i = i.next 6831 } while (i !== r) 6832 } 6833} 6834function Ly(e, t) { 6835 if (t = t.updateQueue, 6836 t = t !== null ? t.lastEffect : null, 6837 t !== null) { 6838 var n = t = t.next; 6839 do { 6840 if ((n.tag & e) === e) { 6841 var r = n.create; 6842 n.destroy = r() 6843 } 6844 n = n.next 6845 } while (n !== t) 6846 } 6847} 6848function Wb(e) { 6849 var t = e.ref; 6850 if (t !== null) { 6851 var n = e.stateNode; 6852 switch (e.tag) { 6853 case 5: 6854 e = n; 6855 break; 6856 default: 6857 e = n 6858 } 6859 typeof t == "function" ? t(e) : t.current = e 6860 } 6861} 6862function iF(e) { 6863 var t = e.alternate; 6864 t !== null && (e.alternate = null, 6865 iF(t)), 6866 e.child = null, 6867 e.deletions = null, 6868 e.sibling = null, 6869 e.tag === 5 && (t = e.stateNode, 6870 t !== null && (delete t[Ei], 6871 delete t[Qd], 6872 delete t[jb], 6873 delete t[RK], 6874 delete t[DK])), 6875 e.stateNode = null, 6876 e.return = null, 6877 e.dependencies = null, 6878 e.memoizedProps = null, 6879 e.memoizedState = null, 6880 e.pendingProps = null, 6881 e.stateNode = null, 6882 e.updateQueue = null 6883} 6884function oF(e) { 6885 return e.tag === 5 || e.tag === 3 || e.tag === 4 6886} 6887function NO(e) { 6888 e: for (; ; ) { 6889 for (; e.sibling === null; ) { 6890 if (e.return === null || oF(e.return)) 6891 return null; 6892 e = e.return 6893 } 6894 for (e.sibling.return = e.return, 6895 e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18; ) { 6896 if (e.flags & 2 || e.child === null || e.tag === 4) 6897 continue e; 6898 e.child.return = e, 6899 e = e.child 6900 } 6901 if (!(e.flags & 2)) 6902 return e.stateNode 6903 } 6904} 6905function Hb(e, t, n) { 6906 var r = e.tag; 6907 if (r === 5 || r === 6) 6908 e = e.stateNode, 6909 t ? n.nodeType === 8 ? n.parentNode.insertBefore(e, t) : n.insertBefore(e, t) : (n.nodeType === 8 ? (t = n.parentNode, 6910 t.insertBefore(e, n)) : (t = n, 6911 t.appendChild(e)), 6912 n = n._reactRootContainer, 6913 n != null || t.onclick !== null || (t.onclick = jm)); 6914 else if (r !== 4 && (e = e.child, 6915 e !== null)) 6916 for (Hb(e, t, n), 6917 e = e.sibling; e !== null; ) 6918 Hb(e, t, n), 6919 e = e.sibling 6920} 6921function qb(e, t, n) { 6922 var r = e.tag; 6923 if (r === 5 || r === 6) 6924 e = e.stateNode, 6925 t ? n.insertBefore(e, t) : n.appendChild(e); 6926 else if (r !== 4 && (e = e.child, 6927 e !== null)) 6928 for (qb(e, t, n), 6929 e = e.sibling; e !== null; ) 6930 qb(e, t, n), 6931 e = e.sibling 6932} 6933var pn = null 6934 , Zr = !1; 6935function Fo(e, t, n) { 6936 for (n = n.child; n !== null; ) 6937 aF(e, t, n), 6938 n = n.sibling 6939} 6940function aF(e, t, n) { 6941 if (ki && typeof ki.onCommitFiberUnmount == "function") 6942 try { 6943 ki.onCommitFiberUnmount(jy, n) 6944 } catch {} 6945 switch (n.tag) { 6946 case 5: 6947 Cn || El(n, t); 6948 case 6: 6949 var r = pn 6950 , i = Zr; 6951 pn = null, 6952 Fo(e, t, n), 6953 pn = r, 6954 Zr = i, 6955 pn !== null && (Zr ? (e = pn, 6956 n = n.stateNode, 6957 e.nodeType === 8 ? e.parentNode.removeChild(n) : e.removeChild(n)) : pn.removeChild(n.stateNode)); 6958 break; 6959 case 18: 6960 pn !== null && (Zr ? (e = pn, 6961 n = n.stateNode, 6962 e.nodeType === 8 ? $0(e.parentNode, n) : e.nodeType === 1 && $0(e, n), 6963 qd(e)) : $0(pn, n.stateNode)); 6964 break; 6965 case 4: 6966 r = pn, 6967 i = Zr, 6968 pn = n.stateNode.containerInfo, 6969 Zr = !0, 6970 Fo(e, t, n), 6971 pn = r, 6972 Zr = i; 6973 break; 6974 case 0: 6975 case 11: 6976 case 14: 6977 case 15: 6978 if (!Cn && (r = n.updateQueue, 6979 r !== null && (r = r.lastEffect, 6980 r !== null))) { 6981 i = r = r.next; 6982 do { 6983 var o = i 6984 , a = o.destroy; 6985 o = o.tag, 6986 a !== void 0 && (o & 2 || o & 4) && zb(n, t, a), 6987 i = i.next 6988 } while (i !== r) 6989 } 6990 Fo(e, t, n); 6991 break; 6992 case 1: 6993 if (!Cn && (El(n, t), 6994 r = n.stateNode, 6995 typeof r.componentWillUnmount == "function")) 6996 try { 6997 r.props = n.memoizedProps, 6998 r.state = n.memoizedState, 6999 r.componentWillUnmount() 7000 } catch (s) { 7001 kt(n, t, s) 7002 } 7003 Fo(e, t, n); 7004 break; 7005 case 21: 7006 Fo(e, t, n); 7007 break; 7008 case 22: 7009 n.mode & 1 ? (Cn = (r = Cn) || n.memoizedState !== null, 7010 Fo(e, t, n), 7011 Cn = r) : Fo(e, t, n); 7012 break; 7013 default: 7014 Fo(e, t, n) 7015 } 7016} 7017function MO(e) { 7018 var t = e.updateQueue; 7019 if (t !== null) { 7020 e.updateQueue = null; 7021 var n = e.stateNode; 7022 n === null && (n = e.stateNode = new QK), 7023 t.forEach(function(r) { 7024 var i = sG.bind(null, e, r); 7025 n.has(r) || (n.add(r), 7026 r.then(i, i)) 7027 }) 7028 } 7029} 7030function qr(e, t) { 7031 var n = t.deletions; 7032 if (n !== null) 7033 for (var r = 0; r < n.length; r++) { 7034 var i = n[r]; 7035 try { 7036 var o = e 7037 , a = t 7038 , s = a; 7039 e: for (; s !== null; ) { 7040 switch (s.tag) { 7041 case 5: 7042 pn = s.stateNode, 7043 Zr = !1; 7044 break e; 7045 case 3: 7046 pn = s.stateNode.containerInfo, 7047 Zr = !0; 7048 break e; 7049 case 4: 7050 pn = s.stateNode.containerInfo, 7051 Zr = !0; 7052 break e 7053 } 7054 s = s.return 7055 } 7056 if (pn === null) 7057 throw Error(J(160)); 7058 aF(o, a, i), 7059 pn = null, 7060 Zr = !1; 7061 var l = i.alternate; 7062 l !== null && (l.return = null), 7063 i.return = null 7064 } catch (c) { 7065 kt(i, t, c) 7066 } 7067 } 7068 if (t.subtreeFlags & 12854) 7069 for (t = t.child; t !== null; ) 7070 sF(t, e), 7071 t = t.sibling 7072} 7073function sF(e, t) { 7074 var n = e.alternate 7075 , r = e.flags; 7076 switch (e.tag) { 7077 case 0: 7078 case 11: 7079 case 14: 7080 case 15: 7081 if (qr(t, e), 7082 wi(e), 7083 r & 4) { 7084 try { 7085 Cd(3, e, e.return), 7086 Ly(3, e) 7087 } catch (m) { 7088 kt(e, e.return, m) 7089 } 7090 try { 7091 Cd(5, e, e.return) 7092 } catch (m) { 7093 kt(e, e.return, m) 7094 } 7095 } 7096 break; 7097 case 1: 7098 qr(t, e), 7099 wi(e), 7100 r & 512 && n !== null && El(n, n.return); 7101 break; 7102 case 5: 7103 if (qr(t, e), 7104 wi(e), 7105 r & 512 && n !== null && El(n, n.return), 7106 e.flags & 32) { 7107 var i = e.stateNode; 7108 try { 7109 Ud(i, "") 7110 } catch (m) { 7111 kt(e, e.return, m) 7112 } 7113 } 7114 if (r & 4 && (i = e.stateNode, 7115 i != null)) { 7116 var o = e.memoizedProps 7117 , a = n !== null ? n.memoizedProps : o 7118 , s = e.type 7119 , l = e.updateQueue; 7120 if (e.updateQueue = null, 7121 l !== null) 7122 try { 7123 s === "input" && o.type === "radio" && o.name != null && E$(i, o), 7124 gb(s, a); 7125 var c = gb(s, o); 7126 for (a = 0; a < l.length; a += 2) { 7127 var u = l[a] 7128 , d = l[a + 1]; 7129 u === "style" ? R$(i, d) : u === "dangerouslySetInnerHTML" ? M$(i, d) : u === "children" ? Ud(i, d) : FS(i, u, d, c) 7130 } 7131 switch (s) { 7132 case "input": 7133 db(i, o); 7134 break; 7135 case "textarea": 7136 j$(i, o); 7137 break; 7138 case "select": 7139 var f = i._wrapperState.wasMultiple; 7140 i._wrapperState.wasMultiple = !!o.multiple; 7141 var p = o.value; 7142 p != null ? Bl(i, !!o.multiple, p, !1) : f !== !!o.multiple && (o.defaultValue != null ? Bl(i, !!o.multiple, o.defaultValue, !0) : Bl(i, !!o.multiple, o.multiple ? [] : "", !1)) 7143 } 7144 i[Qd] = o 7145 } catch (m) { 7146 kt(e, e.return, m) 7147 } 7148 } 7149 break; 7150 case 6: 7151 if (qr(t, e), 7152 wi(e), 7153 r & 4) { 7154 if (e.stateNode === null) 7155 throw Error(J(162)); 7156 i = e.stateNode, 7157 o = e.memoizedProps; 7158 try { 7159 i.nodeValue = o 7160 } catch (m) { 7161 kt(e, e.return, m) 7162 } 7163 } 7164 break; 7165 case 3: 7166 if (qr(t, e), 7167 wi(e), 7168 r & 4 && n !== null && n.memoizedState.isDehydrated) 7169 try { 7170 qd(t.containerInfo) 7171 } catch (m) { 7172 kt(e, e.return, m) 7173 } 7174 break; 7175 case 4: 7176 qr(t, e), 7177 wi(e); 7178 break; 7179 case 13: 7180 qr(t, e), 7181 wi(e), 7182 i = e.child, 7183 i.flags & 8192 && (o = i.memoizedState !== null, 7184 i.stateNode.isHidden = o, 7185 !o || i.alternate !== null && i.alternate.memoizedState !== null || (vP = Vt())), 7186 r & 4 && MO(e); 7187 break; 7188 case 22: 7189 if (u = n !== null && n.memoizedState !== null, 7190 e.mode & 1 ? (Cn = (c = Cn) || u, 7191 qr(t, e), 7192 Cn = c) : qr(t, e), 7193 wi(e), 7194 r & 8192) { 7195 if (c = e.memoizedState !== null, 7196 (e.stateNode.isHidden = c) && !u && e.mode & 1) 7197 for (pe = e, 7198 u = e.child; u !== null; ) { 7199 for (d = pe = u; pe !== null; ) { 7200 switch (f = pe, 7201 p = f.child, 7202 f.tag) { 7203 case 0: 7204 case 11: 7205 case 14: 7206 case 15: 7207 Cd(4, f, f.return); 7208 break; 7209 case 1: 7210 El(f, f.return); 7211 var g = f.stateNode; 7212 if (typeof g.componentWillUnmount == "function") { 7213 r = f, 7214 n = f.return; 7215 try { 7216 t = r, 7217 g.props = t.memoizedProps, 7218 g.state = t.memoizedState, 7219 g.componentWillUnmount() 7220 } catch (m) { 7221 kt(r, n, m) 7222 } 7223 } 7224 break; 7225 case 5: 7226 El(f, f.return); 7227 break; 7228 case 22: 7229 if (f.memoizedState !== null) { 7230 RO(d); 7231 continue 7232 } 7233 } 7234 p !== null ? (p.return = f, 7235 pe = p) : RO(d) 7236 } 7237 u = u.sibling 7238 } 7239 e: for (u = null, 7240 d = e; ; ) { 7241 if (d.tag === 5) { 7242 if (u === null) { 7243 u = d; 7244 try { 7245 i = d.stateNode, 7246 c ? (o = i.style, 7247 typeof o.setProperty == "function" ? o.setProperty("display", "none", "important") : o.display = "none") : (s = d.stateNode, 7248 l = d.memoizedProps.style, 7249 a = l != null && l.hasOwnProperty("display") ? l.display : null, 7250 s.style.display = k$("display", a)) 7251 } catch (m) { 7252 kt(e, e.return, m) 7253 } 7254 } 7255 } else if (d.tag === 6) { 7256 if (u === null) 7257 try { 7258 d.stateNode.nodeValue = c ? "" : d.memoizedProps 7259 } catch (m) { 7260 kt(e, e.return, m) 7261 } 7262 } else if ((d.tag !== 22 && d.tag !== 23 || d.memoizedState === null || d === e) && d.child !== null) { 7263 d.child.return = d, 7264 d = d.child; 7265 continue 7266 } 7267 if (d === e) 7268 break e; 7269 for (; d.sibling === null; ) { 7270 if (d.return === null || d.return === e) 7271 break e; 7272 u === d && (u = null), 7273 d = d.return 7274 } 7275 u === d && (u = null), 7276 d.sibling.return = d.return, 7277 d = d.sibling 7278 } 7279 } 7280 break; 7281 case 19: 7282 qr(t, e), 7283 wi(e), 7284 r & 4 && MO(e); 7285 break; 7286 case 21: 7287 break; 7288 default: 7289 qr(t, e), 7290 wi(e) 7291 } 7292} 7293function wi(e) { 7294 var t = e.flags; 7295 if (t & 2) { 7296 try { 7297 e: { 7298 for (var n = e.return; n !== null; ) { 7299 if (oF(n)) { 7300 var r = n; 7301 break e 7302 } 7303 n = n.return 7304 } 7305 throw Error(J(160)) 7306 } 7307 switch (r.tag) { 7308 case 5: 7309 var i = r.stateNode; 7310 r.flags & 32 && (Ud(i, ""), 7311 r.flags &= -33); 7312 var o = NO(e); 7313 qb(e, o, i); 7314 break; 7315 case 3: 7316 case 4: 7317 var a = r.stateNode.containerInfo 7318 , s = NO(e); 7319 Hb(e, s, a); 7320 break; 7321 default: 7322 throw Error(J(161)) 7323 } 7324 } catch (l) { 7325 kt(e, e.return, l) 7326 } 7327 e.flags &= -3 7328 } 7329 t & 4096 && (e.flags &= -4097) 7330} 7331function JK(e, t, n) { 7332 pe = e, 7333 lF(e) 7334} 7335function lF(e, t, n) { 7336 for (var r = (e.mode & 1) !== 0; pe !== null; ) { 7337 var i = pe 7338 , o = i.child; 7339 if (i.tag === 22 && r) { 7340 var a = i.memoizedState !== null || yp; 7341 if (!a) { 7342 var s = i.alternate 7343 , l = s !== null && s.memoizedState !== null || Cn; 7344 s = yp; 7345 var c = Cn; 7346 if (yp = a, 7347 (Cn = l) && !c) 7348 for (pe = i; pe !== null; ) 7349 a = pe, 7350 l = a.child, 7351 a.tag === 22 && a.memoizedState !== null ? DO(i) : l !== null ? (l.return = a, 7352 pe = l) : DO(i); 7353 for (; o !== null; ) 7354 pe = o, 7355 lF(o), 7356 o = o.sibling; 7357 pe = i, 7358 yp = s, 7359 Cn = c 7360 } 7361 kO(e) 7362 } else 7363 i.subtreeFlags & 8772 && o !== null ? (o.return = i, 7364 pe = o) : kO(e) 7365 } 7366} 7367function kO(e) { 7368 for (; pe !== null; ) { 7369 var t = pe; 7370 if (t.flags & 8772) { 7371 var n = t.alternate; 7372 try { 7373 if (t.flags & 8772) 7374 switch (t.tag) { 7375 case 0: 7376 case 11: 7377 case 15: 7378 Cn || Ly(5, t); 7379 break; 7380 case 1: 7381 var r = t.stateNode; 7382 if (t.flags & 4 && !Cn) 7383 if (n === null) 7384 r.componentDidMount(); 7385 else { 7386 var i = t.elementType === t.type ? n.memoizedProps : Xr(t.type, n.memoizedProps); 7387 r.componentDidUpdate(i, n.memoizedState, r.__reactInternalSnapshotBeforeUpdate) 7388 } 7389 var o = t.updateQueue; 7390 o !== null && yO(t, o, r); 7391 break; 7392 case 3: 7393 var a = t.updateQueue; 7394 if (a !== null) { 7395 if (n = null, 7396 t.child !== null) 7397 switch (t.child.tag) { 7398 case 5: 7399 n = t.child.stateNode; 7400 break; 7401 case 1: 7402 n = t.child.stateNode 7403 } 7404 yO(t, a, n) 7405 } 7406 break; 7407 case 5: 7408 var s = t.stateNode; 7409 if (n === null && t.flags & 4) { 7410 n = s; 7411 var l = t.memoizedProps; 7412 switch (t.type) { 7413 case "button": 7414 case "input": 7415 case "select": 7416 case "textarea": 7417 l.autoFocus && n.focus(); 7418 break; 7419 case "img": 7420 l.src && (n.src = l.src) 7421 } 7422 } 7423 break; 7424 case 6: 7425 break; 7426 case 4: 7427 break; 7428 case 12: 7429 break; 7430 case 13: 7431 if (t.memoizedState === null) { 7432 var c = t.alternate; 7433 if (c !== null) { 7434 var u = c.memoizedState; 7435 if (u !== null) { 7436 var d = u.dehydrated; 7437 d !== null && qd(d) 7438 } 7439 } 7440 } 7441 break; 7442 case 19: 7443 case 17: 7444 case 21: 7445 case 22: 7446 case 23: 7447 case 25: 7448 break; 7449 default: 7450 throw Error(J(163)) 7451 } 7452 Cn || t.flags & 512 && Wb(t) 7453 } catch (f) { 7454 kt(t, t.return, f) 7455 } 7456 } 7457 if (t === e) { 7458 pe = null; 7459 break 7460 } 7461 if (n = t.sibling, 7462 n !== null) { 7463 n.return = t.return, 7464 pe = n; 7465 break 7466 } 7467 pe = t.return 7468 } 7469} 7470function RO(e) { 7471 for (; pe !== null; ) { 7472 var t = pe; 7473 if (t === e) { 7474 pe = null; 7475 break 7476 } 7477 var n = t.sibling; 7478 if (n !== null) { 7479 n.return = t.return, 7480 pe = n; 7481 break 7482 } 7483 pe = t.return 7484 } 7485} 7486function DO(e) { 7487 for (; pe !== null; ) { 7488 var t = pe; 7489 try { 7490 switch (t.tag) { 7491 case 0: 7492 case 11: 7493 case 15: 7494 var n = t.return; 7495 try { 7496 Ly(4, t) 7497 } catch (l) { 7498 kt(t, n, l) 7499 } 7500 break; 7501 case 1: 7502 var r = t.stateNode; 7503 if (typeof r.componentDidMount == "function") { 7504 var i = t.return; 7505 try { 7506 r.componentDidMount() 7507 } catch (l) { 7508 kt(t, i, l) 7509 } 7510 } 7511 var o = t.return; 7512 try { 7513 Wb(t) 7514 } catch (l) { 7515 kt(t, o, l) 7516 } 7517 break; 7518 case 5: 7519 var a = t.return; 7520 try { 7521 Wb(t) 7522 } catch (l) { 7523 kt(t, a, l) 7524 } 7525 } 7526 } catch (l) { 7527 kt(t, t.return, l) 7528 } 7529 if (t === e) { 7530 pe = null; 7531 break 7532 } 7533 var s = t.sibling; 7534 if (s !== null) { 7535 s.return = t.return, 7536 pe = s; 7537 break 7538 } 7539 pe = t.return 7540 } 7541} 7542var eG = Math.ceil 7543 , Vm = No.ReactCurrentDispatcher 7544 , gP = No.ReactCurrentOwner 7545 , Dr = No.ReactCurrentBatchConfig 7546 , Ke = 0 7547 , un = null 7548 , qt = null 7549 , xn = 0 7550 , ar = 0 7551 , jl = Ia(0) 7552 , en = 0 7553 , rf = null 7554 , Ds = 0 7555 , Fy = 0 7556 , yP = 0 7557 , Od = null 7558 , Xn = null 7559 , vP = 0 7560 , Pc = 1 / 0 7561 , io = null 7562 , Um = !1 7563 , Kb = null 7564 , ga = null 7565 , vp = !1 7566 , ca = null 7567 , zm = 0 7568 , Ad = 0 7569 , Gb = null 7570 , im = -1 7571 , om = 0; 7572function Fn() { 7573 return Ke & 6 ? Vt() : im !== -1 ? im : im = Vt() 7574} 7575function ya(e) { 7576 return e.mode & 1 ? Ke & 2 && xn !== 0 ? xn & -xn : $K.transition !== null ? (om === 0 && (om = q$()), 7577 om) : (e = rt, 7578 e !== 0 || (e = window.event, 7579 e = e === void 0 ? 16 : J$(e.type)), 7580 e) : 1 7581} 7582function li(e, t, n, r) { 7583 if (50 < Ad) 7584 throw Ad = 0, 7585 Gb = null, 7586 Error(J(185)); 7587 wh(e, n, r), 7588 (!(Ke & 2) || e !== un) && (e === un && (!(Ke & 2) && (Fy |= n), 7589 en === 4 && Xo(e, xn)), 7590 tr(e, r), 7591 n === 1 && Ke === 0 && !(t.mode & 1) && (Pc = Vt() + 500, 7592 Dy && $a())) 7593} 7594function tr(e, t) { 7595 var n = e.callbackNode; 7596 $q(e, t); 7597 var r = Cm(e, e === un ? xn : 0); 7598 if (r === 0) 7599 n !== null && WC(n), 7600 e.callbackNode = null, 7601 e.callbackPriority = 0; 7602 else if (t = r & -r, 7603 e.callbackPriority !== t) { 7604 if (n != null && WC(n), 7605 t === 1) 7606 e.tag === 0 ? IK(IO.bind(null, e)) : vL(IO.bind(null, e)), 7607 MK(function() { 7608 !(Ke & 6) && $a() 7609 }), 7610 n = null; 7611 else { 7612 switch (K$(r)) { 7613 case 1: 7614 n = WS; 7615 break; 7616 case 4: 7617 n = W$; 7618 break; 7619 case 16: 7620 n = Tm; 7621 break; 7622 case 536870912: 7623 n = H$; 7624 break; 7625 default: 7626 n = Tm 7627 } 7628 n = gF(n, cF.bind(null, e)) 7629 } 7630 e.callbackPriority = t, 7631 e.callbackNode = n 7632 } 7633} 7634function cF(e, t) { 7635 if (im = -1, 7636 om = 0, 7637 Ke & 6) 7638 throw Error(J(327)); 7639 var n = e.callbackNode; 7640 if (Hl() && e.callbackNode !== n) 7641 return null; 7642 var r = Cm(e, e === un ? xn : 0); 7643 if (r === 0) 7644 return null; 7645 if (r & 30 || r & e.expiredLanes || t) 7646 t = Wm(e, r); 7647 else { 7648 t = r; 7649 var i = Ke; 7650 Ke |= 2; 7651 var o = dF(); 7652 (un !== e || xn !== t) && (io = null, 7653 Pc = Vt() + 500, 7654 _s(e, t)); 7655 do 7656 try { 7657 rG(); 7658 break 7659 } catch (s) { 7660 uF(e, s) 7661 } 7662 while (!0); 7663 rP(), 7664 Vm.current = o, 7665 Ke = i, 7666 qt !== null ? t = 0 : (un = null, 7667 xn = 0, 7668 t = en) 7669 } 7670 if (t !== 0) { 7671 if (t === 2 && (i = wb(e), 7672 i !== 0 && (r = i, 7673 t = Yb(e, i))), 7674 t === 1) 7675 throw n = rf, 7676 _s(e, 0), 7677 Xo(e, r), 7678 tr(e, Vt()), 7679 n; 7680 if (t === 6) 7681 Xo(e, r); 7682 else { 7683 if (i = e.current.alternate, 7684 !(r & 30) && !tG(i) && (t = Wm(e, r), 7685 t === 2 && (o = wb(e), 7686 o !== 0 && (r = o, 7687 t = Yb(e, o))), 7688 t === 1)) 7689 throw n = rf, 7690 _s(e, 0), 7691 Xo(e, r), 7692 tr(e, Vt()), 7693 n; 7694 switch (e.finishedWork = i, 7695 e.finishedLanes = r, 7696 t) { 7697 case 0: 7698 case 1: 7699 throw Error(J(345)); 7700 case 2: 7701 es(e, Xn, io); 7702 break; 7703 case 3: 7704 if (Xo(e, r), 7705 (r & 130023424) === r && (t = vP + 500 - Vt(), 7706 10 < t)) { 7707 if (Cm(e, 0) !== 0) 7708 break; 7709 if (i = e.suspendedLanes, 7710 (i & r) !== r) { 7711 Fn(), 7712 e.pingedLanes |= e.suspendedLanes & i; 7713 break 7714 } 7715 e.timeoutHandle = Eb(es.bind(null, e, Xn, io), t); 7716 break 7717 } 7718 es(e, Xn, io); 7719 break; 7720 case 4: 7721 if (Xo(e, r), 7722 (r & 4194240) === r) 7723 break; 7724 for (t = e.eventTimes, 7725 i = -1; 0 < r; ) { 7726 var a = 31 - si(r); 7727 o = 1 << a, 7728 a = t[a], 7729 a > i && (i = a), 7730 r &= ~o 7731 } 7732 if (r = i, 7733 r = Vt() - r, 7734 r = (120 > r ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * eG(r / 1960)) - r, 7735 10 < r) { 7736 e.timeoutHandle = Eb(es.bind(null, e, Xn, io), r); 7737 break 7738 } 7739 es(e, Xn, io); 7740 break; 7741 case 5: 7742 es(e, Xn, io); 7743 break; 7744 default: 7745 throw Error(J(329)) 7746 } 7747 } 7748 } 7749 return tr(e, Vt()), 7750 e.callbackNode === n ? cF.bind(null, e) : null 7751} 7752function Yb(e, t) { 7753 var n = Od; 7754 return e.current.memoizedState.isDehydrated && (_s(e, t).flags |= 256), 7755 e = Wm(e, t), 7756 e !== 2 && (t = Xn, 7757 Xn = n, 7758 t !== null && Xb(t)), 7759 e 7760} 7761function Xb(e) { 7762 Xn === null ? Xn = e : Xn.push.apply(Xn, e) 7763} 7764function tG(e) { 7765 for (var t = e; ; ) { 7766 if (t.flags & 16384) { 7767 var n = t.updateQueue; 7768 if (n !== null && (n = n.stores, 7769 n !== null)) 7770 for (var r = 0; r < n.length; r++) { 7771 var i = n[r] 7772 , o = i.getSnapshot; 7773 i = i.value; 7774 try { 7775 if (!hi(o(), i)) 7776 return !1 7777 } catch { 7778 return !1 7779 } 7780 } 7781 } 7782 if (n = t.child, 7783 t.subtreeFlags & 16384 && n !== null) 7784 n.return = t, 7785 t = n; 7786 else { 7787 if (t === e) 7788 break; 7789 for (; t.sibling === null; ) { 7790 if (t.return === null || t.return === e) 7791 return !0; 7792 t = t.return 7793 } 7794 t.sibling.return = t.return, 7795 t = t.sibling 7796 } 7797 } 7798 return !0 7799} 7800function Xo(e, t) { 7801 for (t &= ~yP, 7802 t &= ~Fy, 7803 e.suspendedLanes |= t, 7804 e.pingedLanes &= ~t, 7805 e = e.expirationTimes; 0 < t; ) { 7806 var n = 31 - si(t) 7807 , r = 1 << n; 7808 e[n] = -1, 7809 t &= ~r 7810 } 7811} 7812function IO(e) { 7813 if (Ke & 6) 7814 throw Error(J(327)); 7815 Hl(); 7816 var t = Cm(e, 0); 7817 if (!(t & 1)) 7818 return tr(e, Vt()), 7819 null; 7820 var n = Wm(e, t); 7821 if (e.tag !== 0 && n === 2) { 7822 var r = wb(e); 7823 r !== 0 && (t = r, 7824 n = Yb(e, r)) 7825 } 7826 if (n === 1) 7827 throw n = rf, 7828 _s(e, 0), 7829 Xo(e, t), 7830 tr(e, Vt()), 7831 n; 7832 if (n === 6) 7833 throw Error(J(345)); 7834 return e.finishedWork = e.current.alternate, 7835 e.finishedLanes = t, 7836 es(e, Xn, io), 7837 tr(e, Vt()), 7838 null 7839} 7840function xP(e, t) { 7841 var n = Ke;
vendor: 1,765 bytes, lines 7842-7924
7842 Ke |= 1; 7843 try { 7844 return e(t) 7845 } finally { 7846 Ke = n, 7847 Ke === 0 && (Pc = Vt() + 500, 7848 Dy && $a()) 7849 } 7850} 7851function Is(e) { 7852 ca !== null && ca.tag === 0 && !(Ke & 6) && Hl(); 7853 var t = Ke; 7854 Ke |= 1; 7855 var n = Dr.transition 7856 , r = rt; 7857 try { 7858 if (Dr.transition = null, 7859 rt = 1, 7860 e) 7861 return e() 7862 } finally { 7863 rt = r, 7864 Dr.transition = n, 7865 Ke = t, 7866 !(Ke & 6) && $a() 7867 } 7868} 7869function bP() { 7870 ar = jl.current, 7871 yt(jl) 7872} 7873function _s(e, t) { 7874 e.finishedWork = null, 7875 e.finishedLanes = 0; 7876 var n = e.timeoutHandle; 7877 if (n !== -1 && (e.timeoutHandle = -1, 7878 NK(n)), 7879 qt !== null) 7880 for (n = qt.return; n !== null; ) { 7881 var r = n; 7882 switch (eP(r), 7883 r.tag) { 7884 case 1: 7885 r = r.type.childContextTypes, 7886 r != null && Nm(); 7887 break; 7888 case 3: 7889 wc(), 7890 yt(Jn), 7891 yt(En), 7892 cP(); 7893 break; 7894 case 5: 7895 lP(r); 7896 break; 7897 case 4: 7898 wc(); 7899 break; 7900 case 13: 7901 yt(_t); 7902 break; 7903 case 19: 7904 yt(_t); 7905 break; 7906 case 10: 7907 iP(r.type._context); 7908 break; 7909 case 22: 7910 case 23: 7911 bP() 7912 } 7913 n = n.return 7914 } 7915 if (un = e, 7916 qt = e = va(e.current, null), 7917 xn = ar = t, 7918 en = 0, 7919 rf = null, 7920 yP = Fy = Ds = 0, 7921 Xn = Od = null, 7922 cs !== null) { 7923 for (t = 0; t < cs.length; t++) 7924 if (n = cs[t],
vendor: 16,630 bytes, lines 7925-8474
7925 r = n.interleaved, 7926 r !== null) { 7927 n.interleaved = null; 7928 var i = r.next 7929 , o = n.pending; 7930 if (o !== null) { 7931 var a = o.next; 7932 o.next = i, 7933 r.next = a 7934 } 7935 n.pending = r 7936 } 7937 cs = null 7938 } 7939 return e 7940} 7941function uF(e, t) { 7942 do { 7943 var n = qt; 7944 try { 7945 if (rP(), 7946 tm.current = Bm, 7947 Fm) { 7948 for (var r = Et.memoizedState; r !== null; ) { 7949 var i = r.queue; 7950 i !== null && (i.pending = null), 7951 r = r.next 7952 } 7953 Fm = !1 7954 } 7955 if (Rs = 0, 7956 sn = Zt = Et = null, 7957 Td = !1, 7958 ef = 0, 7959 gP.current = null, 7960 n === null || n.return === null) { 7961 en = 1, 7962 rf = t, 7963 qt = null; 7964 break 7965 } 7966 e: { 7967 var o = e 7968 , a = n.return 7969 , s = n 7970 , l = t; 7971 if (t = xn, 7972 s.flags |= 32768, 7973 l !== null && typeof l == "object" && typeof l.then == "function") { 7974 var c = l 7975 , u = s 7976 , d = u.tag; 7977 if (!(u.mode & 1) && (d === 0 || d === 11 || d === 15)) { 7978 var f = u.alternate; 7979 f ? (u.updateQueue = f.updateQueue, 7980 u.memoizedState = f.memoizedState, 7981 u.lanes = f.lanes) : (u.updateQueue = null, 7982 u.memoizedState = null) 7983 } 7984 var p = PO(a); 7985 if (p !== null) { 7986 p.flags &= -257, 7987 _O(p, a, s, o, t), 7988 p.mode & 1 && SO(o, c, t), 7989 t = p, 7990 l = c; 7991 var g = t.updateQueue; 7992 if (g === null) { 7993 var m = new Set; 7994 m.add(l), 7995 t.updateQueue = m 7996 } else 7997 g.add(l); 7998 break e 7999 } else { 8000 if (!(t & 1)) { 8001 SO(o, c, t), 8002 wP(); 8003 break e 8004 } 8005 l = Error(J(426)) 8006 } 8007 } else if (xt && s.mode & 1) { 8008 var x = PO(a); 8009 if (x !== null) { 8010 !(x.flags & 65536) && (x.flags |= 256), 8011 _O(x, a, s, o, t), 8012 tP(Sc(l, s)); 8013 break e 8014 } 8015 } 8016 o = l = Sc(l, s), 8017 en !== 4 && (en = 2), 8018 Od === null ? Od = [o] : Od.push(o), 8019 o = a; 8020 do { 8021 switch (o.tag) { 8022 case 3: 8023 o.flags |= 65536, 8024 t &= -t, 8025 o.lanes |= t; 8026 var v = KL(o, l, t); 8027 gO(o, v); 8028 break e; 8029 case 1: 8030 s = l; 8031 var y = o.type 8032 , w = o.stateNode; 8033 if (!(o.flags & 128) && (typeof y.getDerivedStateFromError == "function" || w !== null && typeof w.componentDidCatch == "function" && (ga === null || !ga.has(w)))) { 8034 o.flags |= 65536, 8035 t &= -t, 8036 o.lanes |= t; 8037 var P = GL(o, s, t); 8038 gO(o, P); 8039 break e 8040 } 8041 } 8042 o = o.return 8043 } while (o !== null) 8044 } 8045 hF(n) 8046 } catch (S) { 8047 t = S, 8048 qt === n && n !== null && (qt = n = n.return); 8049 continue 8050 } 8051 break 8052 } while (!0) 8053} 8054function dF() { 8055 var e = Vm.current; 8056 return Vm.current = Bm, 8057 e === null ? Bm : e 8058} 8059function wP() { 8060 (en === 0 || en === 3 || en === 2) && (en = 4), 8061 un === null || !(Ds & 268435455) && !(Fy & 268435455) || Xo(un, xn) 8062} 8063function Wm(e, t) { 8064 var n = Ke; 8065 Ke |= 2; 8066 var r = dF(); 8067 (un !== e || xn !== t) && (io = null, 8068 _s(e, t)); 8069 do 8070 try { 8071 nG(); 8072 break 8073 } catch (i) { 8074 uF(e, i) 8075 } 8076 while (!0); 8077 if (rP(), 8078 Ke = n, 8079 Vm.current = r, 8080 qt !== null) 8081 throw Error(J(261)); 8082 return un = null, 8083 xn = 0, 8084 en 8085} 8086function nG() { 8087 for (; qt !== null; ) 8088 fF(qt) 8089} 8090function rG() { 8091 for (; qt !== null && !Aq(); ) 8092 fF(qt) 8093} 8094function fF(e) { 8095 var t = mF(e.alternate, e, ar); 8096 e.memoizedProps = e.pendingProps, 8097 t === null ? hF(e) : qt = t, 8098 gP.current = null 8099} 8100function hF(e) { 8101 var t = e; 8102 do { 8103 var n = t.alternate; 8104 if (e = t.return, 8105 t.flags & 32768) { 8106 if (n = XK(n, t), 8107 n !== null) { 8108 n.flags &= 32767, 8109 qt = n; 8110 return 8111 } 8112 if (e !== null) 8113 e.flags |= 32768, 8114 e.subtreeFlags = 0, 8115 e.deletions = null; 8116 else { 8117 en = 6, 8118 qt = null; 8119 return 8120 } 8121 } else if (n = YK(n, t, ar), 8122 n !== null) { 8123 qt = n; 8124 return 8125 } 8126 if (t = t.sibling, 8127 t !== null) { 8128 qt = t; 8129 return 8130 } 8131 qt = t = e 8132 } while (t !== null); 8133 en === 0 && (en = 5) 8134} 8135function es(e, t, n) { 8136 var r = rt 8137 , i = Dr.transition; 8138 try { 8139 Dr.transition = null, 8140 rt = 1, 8141 iG(e, t, n, r) 8142 } finally { 8143 Dr.transition = i, 8144 rt = r 8145 } 8146 return null 8147} 8148function iG(e, t, n, r) { 8149 do 8150 Hl(); 8151 while (ca !== null); 8152 if (Ke & 6) 8153 throw Error(J(327)); 8154 n = e.finishedWork; 8155 var i = e.finishedLanes; 8156 if (n === null) 8157 return null; 8158 if (e.finishedWork = null, 8159 e.finishedLanes = 0, 8160 n === e.current) 8161 throw Error(J(177)); 8162 e.callbackNode = null, 8163 e.callbackPriority = 0; 8164 var o = n.lanes | n.childLanes; 8165 if (Lq(e, o), 8166 e === un && (qt = un = null, 8167 xn = 0), 8168 !(n.subtreeFlags & 2064) && !(n.flags & 2064) || vp || (vp = !0, 8169 gF(Tm, function() { 8170 return Hl(), 8171 null 8172 })), 8173 o = (n.flags & 15990) !== 0, 8174 n.subtreeFlags & 15990 || o) { 8175 o = Dr.transition, 8176 Dr.transition = null; 8177 var a = rt; 8178 rt = 1; 8179 var s = Ke; 8180 Ke |= 4, 8181 gP.current = null, 8182 ZK(e, n), 8183 sF(n, e), 8184 _K(Ob), 8185 Om = !!Cb, 8186 Ob = Cb = null, 8187 e.current = n, 8188 JK(n), 8189 Eq(), 8190 Ke = s, 8191 rt = a, 8192 Dr.transition = o 8193 } else 8194 e.current = n; 8195 if (vp && (vp = !1, 8196 ca = e, 8197 zm = i), 8198 o = e.pendingLanes, 8199 o === 0 && (ga = null), 8200 Mq(n.stateNode), 8201 tr(e, Vt()), 8202 t !== null) 8203 for (r = e.onRecoverableError, 8204 n = 0; n < t.length; n++) 8205 i = t[n], 8206 r(i.value, { 8207 componentStack: i.stack, 8208 digest: i.digest 8209 }); 8210 if (Um) 8211 throw Um = !1, 8212 e = Kb, 8213 Kb = null, 8214 e; 8215 return zm & 1 && e.tag !== 0 && Hl(), 8216 o = e.pendingLanes, 8217 o & 1 ? e === Gb ? Ad++ : (Ad = 0, 8218 Gb = e) : Ad = 0, 8219 $a(), 8220 null 8221} 8222function Hl() { 8223 if (ca !== null) { 8224 var e = K$(zm) 8225 , t = Dr.transition 8226 , n = rt; 8227 try { 8228 if (Dr.transition = null, 8229 rt = 16 > e ? 16 : e, 8230 ca === null) 8231 var r = !1; 8232 else { 8233 if (e = ca, 8234 ca = null, 8235 zm = 0, 8236 Ke & 6) 8237 throw Error(J(331)); 8238 var i = Ke; 8239 for (Ke |= 4, 8240 pe = e.current; pe !== null; ) { 8241 var o = pe 8242 , a = o.child; 8243 if (pe.flags & 16) { 8244 var s = o.deletions; 8245 if (s !== null) { 8246 for (var l = 0; l < s.length; l++) { 8247 var c = s[l]; 8248 for (pe = c; pe !== null; ) { 8249 var u = pe; 8250 switch (u.tag) { 8251 case 0: 8252 case 11: 8253 case 15: 8254 Cd(8, u, o) 8255 } 8256 var d = u.child; 8257 if (d !== null) 8258 d.return = u, 8259 pe = d; 8260 else 8261 for (; pe !== null; ) { 8262 u = pe; 8263 var f = u.sibling 8264 , p = u.return; 8265 if (iF(u), 8266 u === c) { 8267 pe = null; 8268 break 8269 } 8270 if (f !== null) { 8271 f.return = p, 8272 pe = f; 8273 break 8274 } 8275 pe = p 8276 } 8277 } 8278 } 8279 var g = o.alternate; 8280 if (g !== null) { 8281 var m = g.child; 8282 if (m !== null) { 8283 g.child = null; 8284 do { 8285 var x = m.sibling; 8286 m.sibling = null, 8287 m = x 8288 } while (m !== null) 8289 } 8290 } 8291 pe = o 8292 } 8293 } 8294 if (o.subtreeFlags & 2064 && a !== null) 8295 a.return = o, 8296 pe = a; 8297 else 8298 e: for (; pe !== null; ) { 8299 if (o = pe, 8300 o.flags & 2048) 8301 switch (o.tag) { 8302 case 0: 8303 case 11: 8304 case 15: 8305 Cd(9, o, o.return) 8306 } 8307 var v = o.sibling; 8308 if (v !== null) { 8309 v.return = o.return, 8310 pe = v; 8311 break e 8312 } 8313 pe = o.return 8314 } 8315 } 8316 var y = e.current; 8317 for (pe = y; pe !== null; ) { 8318 a = pe; 8319 var w = a.child; 8320 if (a.subtreeFlags & 2064 && w !== null) 8321 w.return = a, 8322 pe = w; 8323 else 8324 e: for (a = y; pe !== null; ) { 8325 if (s = pe, 8326 s.flags & 2048) 8327 try { 8328 switch (s.tag) { 8329 case 0: 8330 case 11: 8331 case 15: 8332 Ly(9, s) 8333 } 8334 } catch (S) { 8335 kt(s, s.return, S) 8336 } 8337 if (s === a) { 8338 pe = null; 8339 break e 8340 } 8341 var P = s.sibling; 8342 if (P !== null) { 8343 P.return = s.return, 8344 pe = P; 8345 break e 8346 } 8347 pe = s.return 8348 } 8349 } 8350 if (Ke = i, 8351 $a(), 8352 ki && typeof ki.onPostCommitFiberRoot == "function") 8353 try { 8354 ki.onPostCommitFiberRoot(jy, e) 8355 } catch {} 8356 r = !0 8357 } 8358 return r 8359 } finally { 8360 rt = n, 8361 Dr.transition = t 8362 } 8363 } 8364 return !1 8365} 8366function $O(e, t, n) { 8367 t = Sc(n, t), 8368 t = KL(e, t, 1), 8369 e = ma(e, t, 1), 8370 t = Fn(), 8371 e !== null && (wh(e, 1, t), 8372 tr(e, t)) 8373} 8374function kt(e, t, n) { 8375 if (e.tag === 3) 8376 $O(e, e, n); 8377 else 8378 for (; t !== null; ) { 8379 if (t.tag === 3) { 8380 $O(t, e, n); 8381 break 8382 } else if (t.tag === 1) { 8383 var r = t.stateNode; 8384 if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (ga === null || !ga.has(r))) { 8385 e = Sc(n, e), 8386 e = GL(t, e, 1), 8387 t = ma(t, e, 1), 8388 e = Fn(), 8389 t !== null && (wh(t, 1, e), 8390 tr(t, e)); 8391 break 8392 } 8393 } 8394 t = t.return 8395 } 8396} 8397function oG(e, t, n) { 8398 var r = e.pingCache; 8399 r !== null && r.delete(t), 8400 t = Fn(), 8401 e.pingedLanes |= e.suspendedLanes & n, 8402 un === e && (xn & n) === n && (en === 4 || en === 3 && (xn & 130023424) === xn && 500 > Vt() - vP ? _s(e, 0) : yP |= n), 8403 tr(e, t) 8404} 8405function pF(e, t) { 8406 t === 0 && (e.mode & 1 ? (t = lp, 8407 lp <<= 1, 8408 !(lp & 130023424) && (lp = 4194304)) : t = 1); 8409 var n = Fn(); 8410 e = So(e, t), 8411 e !== null && (wh(e, t, n), 8412 tr(e, n)) 8413} 8414function aG(e) { 8415 var t = e.memoizedState 8416 , n = 0; 8417 t !== null && (n = t.retryLane), 8418 pF(e, n) 8419} 8420function sG(e, t) { 8421 var n = 0; 8422 switch (e.tag) { 8423 case 13: 8424 var r = e.stateNode 8425 , i = e.memoizedState; 8426 i !== null && (n = i.retryLane); 8427 break; 8428 case 19: 8429 r = e.stateNode; 8430 break; 8431 default: 8432 throw Error(J(314)) 8433 } 8434 r !== null && r.delete(t), 8435 pF(e, n) 8436} 8437var mF; 8438mF = function(e, t, n) { 8439 if (e !== null) 8440 if (e.memoizedProps !== t.pendingProps || Jn.current) 8441 Qn = !0; 8442 else { 8443 if (!(e.lanes & n) && !(t.flags & 128)) 8444 return Qn = !1, 8445 GK(e, t, n); 8446 Qn = !!(e.flags & 131072) 8447 } 8448 else 8449 Qn = !1, 8450 xt && t.flags & 1048576 && xL(t, Rm, t.index); 8451 switch (t.lanes = 0, 8452 t.tag) { 8453 case 2: 8454 var r = t.type; 8455 rm(e, t), 8456 e = t.pendingProps; 8457 var i = vc(t, En.current); 8458 Wl(t, n), 8459 i = dP(null, t, r, e, i, n); 8460 var o = fP(); 8461 return t.flags |= 1, 8462 typeof i == "object" && i !== null && typeof i.render == "function" && i.$$typeof === void 0 ? (t.tag = 1, 8463 t.memoizedState = null, 8464 t.updateQueue = null, 8465 er(r) ? (o = !0, 8466 Mm(t)) : o = !1, 8467 t.memoizedState = i.state !== null && i.state !== void 0 ? i.state : null, 8468 aP(t), 8469 i.updater = $y, 8470 t.stateNode = i, 8471 i._reactInternals = t, 8472 Ib(t, r, e, n), 8473 t = Fb(null, t, r, !0, o, n)) : (t.tag = 0, 8474 xt && o && JS(t),
vendor: 9,064 bytes, lines 8475-8761
8475 Dn(null, t, i, n), 8476 t = t.child), 8477 t; 8478 case 16: 8479 r = t.elementType; 8480 e: { 8481 switch (rm(e, t), 8482 e = t.pendingProps, 8483 i = r._init, 8484 r = i(r._payload), 8485 t.type = r, 8486 i = t.tag = cG(r), 8487 e = Xr(r, e), 8488 i) { 8489 case 0: 8490 t = Lb(null, t, r, e, n); 8491 break e; 8492 case 1: 8493 t = OO(null, t, r, e, n); 8494 break e; 8495 case 11: 8496 t = TO(null, t, r, e, n); 8497 break e; 8498 case 14: 8499 t = CO(null, t, r, Xr(r.type, e), n); 8500 break e 8501 } 8502 throw Error(J(306, r, "")) 8503 } 8504 return t; 8505 case 0: 8506 return r = t.type, 8507 i = t.pendingProps, 8508 i = t.elementType === r ? i : Xr(r, i), 8509 Lb(e, t, r, i, n); 8510 case 1: 8511 return r = t.type, 8512 i = t.pendingProps, 8513 i = t.elementType === r ? i : Xr(r, i), 8514 OO(e, t, r, i, n); 8515 case 3: 8516 e: { 8517 if (ZL(t), 8518 e === null) 8519 throw Error(J(387)); 8520 r = t.pendingProps, 8521 o = t.memoizedState, 8522 i = o.element, 8523 TL(e, t), 8524 $m(t, r, null, n); 8525 var a = t.memoizedState; 8526 if (r = a.element, 8527 o.isDehydrated) 8528 if (o = { 8529 element: r, 8530 isDehydrated: !1, 8531 cache: a.cache, 8532 pendingSuspenseBoundaries: a.pendingSuspenseBoundaries, 8533 transitions: a.transitions 8534 }, 8535 t.updateQueue.baseState = o, 8536 t.memoizedState = o, 8537 t.flags & 256) { 8538 i = Sc(Error(J(423)), t), 8539 t = AO(e, t, r, n, i); 8540 break e 8541 } else if (r !== i) { 8542 i = Sc(Error(J(424)), t), 8543 t = AO(e, t, r, n, i); 8544 break e 8545 } else 8546 for (dr = pa(t.stateNode.containerInfo.firstChild), 8547 fr = t, 8548 xt = !0, 8549 ei = null, 8550 n = PL(t, null, r, n), 8551 t.child = n; n; ) 8552 n.flags = n.flags & -3 | 4096, 8553 n = n.sibling; 8554 else { 8555 if (xc(), 8556 r === i) { 8557 t = Po(e, t, n); 8558 break e 8559 } 8560 Dn(e, t, r, n) 8561 } 8562 t = t.child 8563 } 8564 return t; 8565 case 5: 8566 return CL(t), 8567 e === null && kb(t), 8568 r = t.type, 8569 i = t.pendingProps, 8570 o = e !== null ? e.memoizedProps : null, 8571 a = i.children, 8572 Ab(r, i) ? a = null : o !== null && Ab(r, o) && (t.flags |= 32), 8573 QL(e, t), 8574 Dn(e, t, a, n), 8575 t.child; 8576 case 6: 8577 return e === null && kb(t), 8578 null; 8579 case 13: 8580 return JL(e, t, n); 8581 case 4: 8582 return sP(t, t.stateNode.containerInfo), 8583 r = t.pendingProps, 8584 e === null ? t.child = bc(t, null, r, n) : Dn(e, t, r, n), 8585 t.child; 8586 case 11: 8587 return r = t.type, 8588 i = t.pendingProps, 8589 i = t.elementType === r ? i : Xr(r, i), 8590 TO(e, t, r, i, n); 8591 case 7: 8592 return Dn(e, t, t.pendingProps, n), 8593 t.child; 8594 case 8: 8595 return Dn(e, t, t.pendingProps.children, n), 8596 t.child; 8597 case 12: 8598 return Dn(e, t, t.pendingProps.children, n), 8599 t.child; 8600 case 10: 8601 e: { 8602 if (r = t.type._context, 8603 i = t.pendingProps, 8604 o = t.memoizedProps, 8605 a = i.value, 8606 dt(Dm, r._currentValue), 8607 r._currentValue = a, 8608 o !== null) 8609 if (hi(o.value, a)) { 8610 if (o.children === i.children && !Jn.current) { 8611 t = Po(e, t, n); 8612 break e 8613 } 8614 } else 8615 for (o = t.child, 8616 o !== null && (o.return = t); o !== null; ) { 8617 var s = o.dependencies; 8618 if (s !== null) { 8619 a = o.child; 8620 for (var l = s.firstContext; l !== null; ) { 8621 if (l.context === r) { 8622 if (o.tag === 1) { 8623 l = ho(-1, n & -n), 8624 l.tag = 2; 8625 var c = o.updateQueue; 8626 if (c !== null) { 8627 c = c.shared; 8628 var u = c.pending; 8629 u === null ? l.next = l : (l.next = u.next, 8630 u.next = l), 8631 c.pending = l 8632 } 8633 } 8634 o.lanes |= n, 8635 l = o.alternate, 8636 l !== null && (l.lanes |= n), 8637 Rb(o.return, n, t), 8638 s.lanes |= n; 8639 break 8640 } 8641 l = l.next 8642 } 8643 } else if (o.tag === 10) 8644 a = o.type === t.type ? null : o.child; 8645 else if (o.tag === 18) { 8646 if (a = o.return, 8647 a === null) 8648 throw Error(J(341)); 8649 a.lanes |= n, 8650 s = a.alternate, 8651 s !== null && (s.lanes |= n), 8652 Rb(a, n, t), 8653 a = o.sibling 8654 } else 8655 a = o.child; 8656 if (a !== null) 8657 a.return = o; 8658 else 8659 for (a = o; a !== null; ) { 8660 if (a === t) { 8661 a = null; 8662 break 8663 } 8664 if (o = a.sibling, 8665 o !== null) { 8666 o.return = a.return, 8667 a = o; 8668 break 8669 } 8670 a = a.return 8671 } 8672 o = a 8673 } 8674 Dn(e, t, i.children, n), 8675 t = t.child 8676 } 8677 return t; 8678 case 9: 8679 return i = t.type, 8680 r = t.pendingProps.children, 8681 Wl(t, n), 8682 i = Br(i), 8683 r = r(i), 8684 t.flags |= 1, 8685 Dn(e, t, r, n), 8686 t.child; 8687 case 14: 8688 return r = t.type, 8689 i = Xr(r, t.pendingProps), 8690 i = Xr(r.type, i), 8691 CO(e, t, r, i, n); 8692 case 15: 8693 return YL(e, t, t.type, t.pendingProps, n); 8694 case 17: 8695 return r = t.type, 8696 i = t.pendingProps, 8697 i = t.elementType === r ? i : Xr(r, i), 8698 rm(e, t), 8699 t.tag = 1, 8700 er(r) ? (e = !0, 8701 Mm(t)) : e = !1, 8702 Wl(t, n), 8703 qL(t, r, i), 8704 Ib(t, r, i, n), 8705 Fb(null, t, r, !0, e, n); 8706 case 19: 8707 return eF(e, t, n); 8708 case 22: 8709 return XL(e, t, n) 8710 } 8711 throw Error(J(156, t.tag)) 8712} 8713; 8714function gF(e, t) { 8715 return z$(e, t) 8716} 8717function lG(e, t, n, r) { 8718 this.tag = e, 8719 this.key = n, 8720 this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, 8721 this.index = 0, 8722 this.ref = null, 8723 this.pendingProps = t, 8724 this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, 8725 this.mode = r, 8726 this.subtreeFlags = this.flags = 0, 8727 this.deletions = null, 8728 this.childLanes = this.lanes = 0, 8729 this.alternate = null 8730} 8731function kr(e, t, n, r) { 8732 return new lG(e,t,n,r) 8733} 8734function SP(e) { 8735 return e = e.prototype, 8736 !(!e || !e.isReactComponent) 8737} 8738function cG(e) { 8739 if (typeof e == "function") 8740 return SP(e) ? 1 : 0; 8741 if (e != null) { 8742 if (e = e.$$typeof, 8743 e === VS) 8744 return 11; 8745 if (e === US) 8746 return 14 8747 } 8748 return 2 8749} 8750function va(e, t) { 8751 var n = e.alternate; 8752 return n === null ? (n = kr(e.tag, t, e.key, e.mode), 8753 n.elementType = e.elementType, 8754 n.type = e.type, 8755 n.stateNode = e.stateNode, 8756 n.alternate = e, 8757 e.alternate = n) : (n.pendingProps = t, 8758 n.type = e.type, 8759 n.flags = 0, 8760 n.subtreeFlags = 0, 8761 n.deletions = null),
vendor: 11,386 bytes, lines 8762-9234
8762 n.flags = e.flags & 14680064, 8763 n.childLanes = e.childLanes, 8764 n.lanes = e.lanes, 8765 n.child = e.child, 8766 n.memoizedProps = e.memoizedProps, 8767 n.memoizedState = e.memoizedState, 8768 n.updateQueue = e.updateQueue, 8769 t = e.dependencies, 8770 n.dependencies = t === null ? null : { 8771 lanes: t.lanes, 8772 firstContext: t.firstContext 8773 }, 8774 n.sibling = e.sibling, 8775 n.index = e.index, 8776 n.ref = e.ref, 8777 n 8778} 8779function am(e, t, n, r, i, o) { 8780 var a = 2; 8781 if (r = e, 8782 typeof e == "function") 8783 SP(e) && (a = 1); 8784 else if (typeof e == "string") 8785 a = 5; 8786 else 8787 e: switch (e) { 8788 case bl: 8789 return Ts(n.children, i, o, t); 8790 case BS: 8791 a = 8, 8792 i |= 8; 8793 break; 8794 case ab: 8795 return e = kr(12, n, t, i | 2), 8796 e.elementType = ab, 8797 e.lanes = o, 8798 e; 8799 case sb: 8800 return e = kr(13, n, t, i), 8801 e.elementType = sb, 8802 e.lanes = o, 8803 e; 8804 case lb: 8805 return e = kr(19, n, t, i), 8806 e.elementType = lb, 8807 e.lanes = o, 8808 e; 8809 case C$: 8810 return By(n, i, o, t); 8811 default: 8812 if (typeof e == "object" && e !== null) 8813 switch (e.$$typeof) { 8814 case _$: 8815 a = 10; 8816 break e; 8817 case T$: 8818 a = 9; 8819 break e; 8820 case VS: 8821 a = 11; 8822 break e; 8823 case US: 8824 a = 14; 8825 break e; 8826 case qo: 8827 a = 16, 8828 r = null; 8829 break e 8830 } 8831 throw Error(J(130, e == null ? e : typeof e, "")) 8832 } 8833 return t = kr(a, n, t, i), 8834 t.elementType = e, 8835 t.type = r, 8836 t.lanes = o, 8837 t 8838} 8839function Ts(e, t, n, r) { 8840 return e = kr(7, e, r, t), 8841 e.lanes = n, 8842 e 8843} 8844function By(e, t, n, r) { 8845 return e = kr(22, e, r, t), 8846 e.elementType = C$, 8847 e.lanes = n, 8848 e.stateNode = { 8849 isHidden: !1 8850 }, 8851 e 8852} 8853function H0(e, t, n) { 8854 return e = kr(6, e, null, t), 8855 e.lanes = n, 8856 e 8857} 8858function q0(e, t, n) { 8859 return t = kr(4, e.children !== null ? e.children : [], e.key, t), 8860 t.lanes = n, 8861 t.stateNode = { 8862 containerInfo: e.containerInfo, 8863 pendingChildren: null, 8864 implementation: e.implementation 8865 }, 8866 t 8867} 8868function uG(e, t, n, r, i) { 8869 this.tag = t, 8870 this.containerInfo = e, 8871 this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, 8872 this.timeoutHandle = -1, 8873 this.callbackNode = this.pendingContext = this.context = null, 8874 this.callbackPriority = 0, 8875 this.eventTimes = C0(0), 8876 this.expirationTimes = C0(-1), 8877 this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, 8878 this.entanglements = C0(0), 8879 this.identifierPrefix = r, 8880 this.onRecoverableError = i, 8881 this.mutableSourceEagerHydrationData = null 8882} 8883function PP(e, t, n, r, i, o, a, s, l) { 8884 return e = new uG(e,t,n,s,l), 8885 t === 1 ? (t = 1, 8886 o === !0 && (t |= 8)) : t = 0, 8887 o = kr(3, null, null, t), 8888 e.current = o, 8889 o.stateNode = e, 8890 o.memoizedState = { 8891 element: r, 8892 isDehydrated: n, 8893 cache: null, 8894 transitions: null, 8895 pendingSuspenseBoundaries: null 8896 }, 8897 aP(o), 8898 e 8899} 8900function dG(e, t, n) { 8901 var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; 8902 return { 8903 $$typeof: xl, 8904 key: r == null ? null : "" + r, 8905 children: e, 8906 containerInfo: t, 8907 implementation: n 8908 } 8909} 8910function yF(e) { 8911 if (!e) 8912 return Pa; 8913 e = e._reactInternals; 8914 e: { 8915 if (Qs(e) !== e || e.tag !== 1) 8916 throw Error(J(170)); 8917 var t = e; 8918 do { 8919 switch (t.tag) { 8920 case 3: 8921 t = t.stateNode.context; 8922 break e; 8923 case 1: 8924 if (er(t.type)) { 8925 t = t.stateNode.__reactInternalMemoizedMergedChildContext; 8926 break e 8927 } 8928 } 8929 t = t.return 8930 } while (t !== null); 8931 throw Error(J(171)) 8932 } 8933 if (e.tag === 1) { 8934 var n = e.type; 8935 if (er(n)) 8936 return yL(e, n, t) 8937 } 8938 return t 8939} 8940function vF(e, t, n, r, i, o, a, s, l) { 8941 return e = PP(n, r, !0, e, i, o, a, s, l), 8942 e.context = yF(null), 8943 n = e.current, 8944 r = Fn(), 8945 i = ya(n), 8946 o = ho(r, i), 8947 o.callback = t ?? null, 8948 ma(n, o, i), 8949 e.current.lanes = i, 8950 wh(e, i, r), 8951 tr(e, r), 8952 e 8953} 8954function Vy(e, t, n, r) { 8955 var i = t.current 8956 , o = Fn() 8957 , a = ya(i); 8958 return n = yF(n), 8959 t.context === null ? t.context = n : t.pendingContext = n, 8960 t = ho(o, a), 8961 t.payload = { 8962 element: e 8963 }, 8964 r = r === void 0 ? null : r, 8965 r !== null && (t.callback = r), 8966 e = ma(i, t, a), 8967 e !== null && (li(e, i, a, o), 8968 em(e, i, a)), 8969 a 8970} 8971function Hm(e) { 8972 if (e = e.current, 8973 !e.child) 8974 return null; 8975 switch (e.child.tag) { 8976 case 5: 8977 return e.child.stateNode; 8978 default: 8979 return e.child.stateNode 8980 } 8981} 8982function LO(e, t) { 8983 if (e = e.memoizedState, 8984 e !== null && e.dehydrated !== null) { 8985 var n = e.retryLane; 8986 e.retryLane = n !== 0 && n < t ? n : t 8987 } 8988} 8989function _P(e, t) { 8990 LO(e, t), 8991 (e = e.alternate) && LO(e, t) 8992} 8993function fG() { 8994 return null 8995} 8996var xF = typeof reportError == "function" ? reportError : function(e) { 8997 console.error(e) 8998} 8999; 9000function TP(e) { 9001 this._internalRoot = e 9002} 9003Uy.prototype.render = TP.prototype.render = function(e) { 9004 var t = this._internalRoot; 9005 if (t === null) 9006 throw Error(J(409)); 9007 Vy(e, t, null, null) 9008} 9009; 9010Uy.prototype.unmount = TP.prototype.unmount = function() { 9011 var e = this._internalRoot; 9012 if (e !== null) { 9013 this._internalRoot = null; 9014 var t = e.containerInfo; 9015 Is(function() { 9016 Vy(null, e, null, null) 9017 }), 9018 t[wo] = null 9019 } 9020} 9021; 9022function Uy(e) { 9023 this._internalRoot = e 9024} 9025Uy.prototype.unstable_scheduleHydration = function(e) { 9026 if (e) { 9027 var t = X$(); 9028 e = { 9029 blockedOn: null, 9030 target: e, 9031 priority: t 9032 }; 9033 for (var n = 0; n < Yo.length && t !== 0 && t < Yo[n].priority; n++) 9034 ; 9035 Yo.splice(n, 0, e), 9036 n === 0 && Z$(e) 9037 } 9038} 9039; 9040function CP(e) { 9041 return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11) 9042} 9043function zy(e) { 9044 return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11 && (e.nodeType !== 8 || e.nodeValue !== " react-mount-point-unstable ")) 9045} 9046function FO() {} 9047function hG(e, t, n, r, i) { 9048 if (i) { 9049 if (typeof r == "function") { 9050 var o = r; 9051 r = function() { 9052 var c = Hm(a); 9053 o.call(c) 9054 } 9055 } 9056 var a = vF(t, r, e, 0, null, !1, !1, "", FO); 9057 return e._reactRootContainer = a, 9058 e[wo] = a.current, 9059 Yd(e.nodeType === 8 ? e.parentNode : e), 9060 Is(), 9061 a 9062 } 9063 for (; i = e.lastChild; ) 9064 e.removeChild(i); 9065 if (typeof r == "function") { 9066 var s = r; 9067 r = function() { 9068 var c = Hm(l); 9069 s.call(c) 9070 } 9071 } 9072 var l = PP(e, 0, !1, null, null, !1, !1, "", FO); 9073 return e._reactRootContainer = l, 9074 e[wo] = l.current, 9075 Yd(e.nodeType === 8 ? e.parentNode : e), 9076 Is(function() { 9077 Vy(t, l, n, r) 9078 }), 9079 l 9080} 9081function Wy(e, t, n, r, i) { 9082 var o = n._reactRootContainer; 9083 if (o) { 9084 var a = o; 9085 if (typeof i == "function") { 9086 var s = i; 9087 i = function() { 9088 var l = Hm(a); 9089 s.call(l) 9090 } 9091 } 9092 Vy(t, a, e, i) 9093 } else 9094 a = hG(n, t, e, i, r); 9095 return Hm(a) 9096} 9097G$ = function(e) { 9098 switch (e.tag) { 9099 case 3: 9100 var t = e.stateNode; 9101 if (t.current.memoizedState.isDehydrated) { 9102 var n = nd(t.pendingLanes); 9103 n !== 0 && (HS(t, n | 1), 9104 tr(t, Vt()), 9105 !(Ke & 6) && (Pc = Vt() + 500, 9106 $a())) 9107 } 9108 break; 9109 case 13: 9110 Is(function() { 9111 var r = So(e, 1); 9112 if (r !== null) { 9113 var i = Fn(); 9114 li(r, e, 1, i) 9115 } 9116 }), 9117 _P(e, 1) 9118 } 9119} 9120; 9121qS = function(e) { 9122 if (e.tag === 13) { 9123 var t = So(e, 134217728); 9124 if (t !== null) { 9125 var n = Fn(); 9126 li(t, e, 134217728, n) 9127 } 9128 _P(e, 134217728) 9129 } 9130} 9131; 9132Y$ = function(e) { 9133 if (e.tag === 13) { 9134 var t = ya(e) 9135 , n = So(e, t); 9136 if (n !== null) { 9137 var r = Fn(); 9138 li(n, e, t, r) 9139 } 9140 _P(e, t) 9141 } 9142} 9143; 9144X$ = function() { 9145 return rt 9146} 9147; 9148Q$ = function(e, t) { 9149 var n = rt; 9150 try { 9151 return rt = e, 9152 t() 9153 } finally { 9154 rt = n 9155 } 9156} 9157; 9158vb = function(e, t, n) { 9159 switch (t) { 9160 case "input": 9161 if (db(e, n), 9162 t = n.name, 9163 n.type === "radio" && t != null) { 9164 for (n = e; n.parentNode; ) 9165 n = n.parentNode; 9166 for (n = n.querySelectorAll("input[name=" + JSON.stringify("" + t) + '][type="radio"]'), 9167 t = 0; t < n.length; t++) { 9168 var r = n[t]; 9169 if (r !== e && r.form === e.form) { 9170 var i = Ry(r); 9171 if (!i) 9172 throw Error(J(90)); 9173 A$(r), 9174 db(r, i) 9175 } 9176 } 9177 } 9178 break; 9179 case "textarea": 9180 j$(e, n); 9181 break; 9182 case "select": 9183 t = n.value, 9184 t != null && Bl(e, !!n.multiple, t, !1) 9185 } 9186} 9187; 9188$$ = xP; 9189L$ = Is; 9190var pG = { 9191 usingClientEntryPoint: !1, 9192 Events: [Ph, _l, Ry, D$, I$, xP] 9193} 9194 , Du = { 9195 findFiberByHostInstance: ls, 9196 bundleType: 0, 9197 version: "18.3.1", 9198 rendererPackageName: "react-dom" 9199} 9200 , mG = { 9201 bundleType: Du.bundleType, 9202 version: Du.version, 9203 rendererPackageName: Du.rendererPackageName, 9204 rendererConfig: Du.rendererConfig, 9205 overrideHookState: null, 9206 overrideHookStateDeletePath: null, 9207 overrideHookStateRenamePath: null, 9208 overrideProps: null, 9209 overridePropsDeletePath: null, 9210 overridePropsRenamePath: null, 9211 setErrorHandler: null, 9212 setSuspenseHandler: null, 9213 scheduleUpdate: null, 9214 currentDispatcherRef: No.ReactCurrentDispatcher, 9215 findHostInstanceByFiber: function(e) { 9216 return e = V$(e), 9217 e === null ? null : e.stateNode 9218 }, 9219 findFiberByHostInstance: Du.findFiberByHostInstance || fG, 9220 findHostInstancesForRefresh: null, 9221 scheduleRefresh: null, 9222 scheduleRoot: null, 9223 setRefreshHandler: null, 9224 getCurrentFiber: null, 9225 reconcilerVersion: "18.3.1-next-f1338f8080-20240426" 9226}; 9227if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") { 9228 var xp = __REACT_DEVTOOLS_GLOBAL_HOOK__; 9229 if (!xp.isDisabled && xp.supportsFiber) 9230 try { 9231 jy = xp.inject(mG), 9232 ki = xp 9233 } catch {} 9234}
9235xr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = pG; 9236xr.createPortal = function(e, t) { 9237 var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; 9238 if (!CP(t)) 9239 throw Error(J(200)); 9240 return dG(e, t, null, n) 9241} 9242; 9243xr.createRoot = function(e, t) { 9244 if (!CP(e)) 9245 throw Error(J(299)); 9246 var n = !1 9247 , r = "" 9248 , i = xF; 9249 return t != null && (t.unstable_strictMode === !0 && (n = !0), 9250 t.identifierPrefix !== void 0 && (r = t.identifierPrefix), 9251 t.onRecoverableError !== void 0 && (i = t.onRecoverableError)), 9252 t = PP(e, 1, !1, null, null, n, !1, r, i), 9253 e[wo] = t.current, 9254 Yd(e.nodeType === 8 ? e.parentNode : e), 9255 new TP(t) 9256} 9257; 9258xr.findDOMNode = function(e) { 9259 if (e == null) 9260 return null; 9261 if (e.nodeType === 1) 9262 return e; 9263 var t = e._reactInternals; 9264 if (t === void 0) 9265 throw typeof e.render == "function" ? Error(J(188)) : (e = Object.keys(e).join(","), 9266 Error(J(268, e))); 9267 return e = V$(t), 9268 e = e === null ? null : e.stateNode, 9269 e 9270} 9271; 9272xr.flushSync = function(e) { 9273 return Is(e) 9274} 9275; 9276xr.hydrate = function(e, t, n) { 9277 if (!zy(t)) 9278 throw Error(J(200)); 9279 return Wy(null, e, t, !0, n) 9280} 9281; 9282xr.hydrateRoot = function(e, t, n) { 9283 if (!CP(e)) 9284 throw Error(J(405)); 9285 var r = n != null && n.hydratedSources || null 9286 , i = !1 9287 , o = "" 9288 , a = xF; 9289 if (n != null && (n.unstable_strictMode === !0 && (i = !0), 9290 n.identifierPrefix !== void 0 && (o = n.identifierPrefix), 9291 n.onRecoverableError !== void 0 && (a = n.onRecoverableError)), 9292 t = vF(t, null, e, 1, n ?? null, i, !1, o, a), 9293 e[wo] = t.current, 9294 Yd(e), 9295 r) 9296 for (e = 0; e < r.length; e++) 9297 n = r[e], 9298 i = n._getVersion, 9299 i = i(n._source), 9300 t.mutableSourceEagerHydrationData == null ? t.mutableSourceEagerHydrationData = [n, i] : t.mutableSourceEagerHydrationData.push(n, i); 9301 return new Uy(t) 9302} 9303; 9304xr.render = function(e, t, n) { 9305 if (!zy(t)) 9306 throw Error(J(200)); 9307 return Wy(null, e, t, !1, n) 9308} 9309; 9310xr.unmountComponentAtNode = function(e) { 9311 if (!zy(e)) 9312 throw Error(J(40)); 9313 return e._reactRootContainer ? (Is(function() { 9314 Wy(null, null, e, !1, function() { 9315 e._reactRootContainer = null, 9316 e[wo] = null 9317 }) 9318 }), 9319 !0) : !1 9320} 9321; 9322xr.unstable_batchedUpdates = xP; 9323xr.unstable_renderSubtreeIntoContainer = function(e, t, n, r) { 9324 if (!zy(n)) 9325 throw Error(J(200)); 9326 if (e == null || e._reactInternals === void 0) 9327 throw Error(J(38)); 9328 return Wy(e, t, n, !1, r) 9329} 9330; 9331xr.version = "18.3.1-next-f1338f8080-20240426"; 9332function bF() { 9333 if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) 9334 try { 9335 __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bF) 9336 } catch (e) { 9337 console.error(e) 9338 } 9339} 9340bF(), 9341b$.exports = xr; 9342var La = b$.exports; 9343const wF = lt(La); 9344var SF, BO = La; 9345SF = BO.createRoot, 9346BO.hydrateRoot; 9347function gG(e, t) { 9348 if (e instanceof RegExp) 9349 return { 9350 keys: !1, 9351 pattern: e 9352 }; 9353 var n, r, i, o, a = [], s = "", l = e.split("/"); 9354 for (l[0] || l.shift(); i = l.shift(); ) 9355 n = i[0], 9356 n === "*" ? (a.push(n), 9357 s += i[1] === "?" ? "(?:/(.*))?" : "/(.*)") : n === ":" ? (r = i.indexOf("?", 1), 9358 o = i.indexOf(".", 1), 9359 a.push(i.substring(1, ~r ? r : ~o ? o : i.length)), 9360 s += ~r && !~o ? "(?:/([^/]+?))?" : "/([^/]+?)", 9361 ~o && (s += (~r ? "?" : "") + "\\" + i.substring(o))) : s += "/" + i; 9362 return { 9363 keys: a, 9364 pattern: new RegExp("^" + s + (t ? "(?=$|/)" : "/?$"),"i") 9365 } 9366} 9367var PF = { 9368 exports: {} 9369} 9370 , _F = {}; 9371/** 9372 * @license React 9373 * use-sync-external-store-shim.production.min.js 9374 * 9375 * Copyright (c) Facebook, Inc. and its affiliates. 9376 * 9377 * This source code is licensed under the MIT license found in the 9378 * LICENSE file in the root directory of this source tree. 9379 */ 9380var _c = b; 9381function yG(e, t) { 9382 return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t 9383} 9384var vG = typeof Object.is == "function" ? Object.is : yG 9385 , xG = _c.useState 9386 , bG = _c.useEffect 9387 , wG = _c.useLayoutEffect 9388 , SG = _c.useDebugValue; 9389function PG(e, t) { 9390 var n = t() 9391 , r = xG({ 9392 inst: { 9393 value: n, 9394 getSnapshot: t 9395 } 9396 }) 9397 , i = r[0].inst 9398 , o = r[1]; 9399 return wG(function() { 9400 i.value = n, 9401 i.getSnapshot = t, 9402 K0(i) && o({ 9403 inst: i 9404 }) 9405 }, [e, n, t]), 9406 bG(function() { 9407 return K0(i) && o({ 9408 inst: i 9409 }), 9410 e(function() { 9411 K0(i) && o({ 9412 inst: i 9413 }) 9414 }) 9415 }, [e]), 9416 SG(n), 9417 n 9418} 9419function K0(e) { 9420 var t = e.getSnapshot; 9421 e = e.value; 9422 try { 9423 var n = t(); 9424 return !vG(e, n) 9425 } catch { 9426 return !0 9427 } 9428} 9429function _G(e, t) { 9430 return t() 9431} 9432var TG = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? _G : PG; 9433_F.useSyncExternalStore = _c.useSyncExternalStore !== void 0 ? _c.useSyncExternalStore : TG; 9434PF.exports = _F; 9435var CG = PF.exports; 9436const OG = v$.useInsertionEffect 9437 , AG = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" 9438 , EG = AG ? b.useLayoutEffect : b.useEffect 9439 , jG = OG || EG 9440 , TF = e => { 9441 const t = b.useRef([e, (...n) => t[0](...n)]).current; 9442 return jG( () => { 9443 t[0] = e
9444 } 9445 ), 9446 t[1] 9447} 9448 , NG = "popstate" 9449 , OP = "pushState" 9450 , AP = "replaceState" 9451 , MG = "hashchange" 9452 , VO = [NG, OP, AP, MG] 9453 , kG = e => { 9454 for (const t of VO) 9455 addEventListener(t, e); 9456 return () => { 9457 for (const t of VO) 9458 removeEventListener(t, e) 9459 } 9460} 9461 , CF = (e, t) => CG.useSyncExternalStore(kG, e, t) 9462 , RG = () => location.search 9463 , DG = ({ssrSearch: e=""}={}) => CF(RG, () => e) 9464 , UO = () => location.pathname 9465 , IG = ({ssrPath: e}={}) => CF(UO, e ? () => e : UO) 9466 , $G = (e, {replace: t=!1, state: n=null}={}) => history[t ? AP : OP](n, "", e) 9467 , LG = (e={}) => [IG(e), $G] 9468 , zO = Symbol.for("wouter_v3"); 9469if (typeof history < "u" && typeof window[zO] > "u") { 9470 for (const e of [OP, AP]) { 9471 const t = history[e]; 9472 history[e] = function() { 9473 const n = t.apply(this, arguments) 9474 , r = new Event(e); 9475 return r.arguments = arguments, 9476 dispatchEvent(r), 9477 n 9478 } 9479 } 9480 Object.defineProperty(window, zO, { 9481 value: !0 9482 }) 9483} 9484const FG = (e, t) => t.toLowerCase().indexOf(e.toLowerCase()) ? "~" + t : t.slice(e.length) || "/" 9485 , OF = (e="") => e === "/" ? "" : e 9486 , BG = (e, t) => e[0] === "~" ? e.slice(1) : OF(t) + e 9487 , VG = (e="", t) => FG(WO(OF(e)), WO(t)) 9488 , WO = e => { 9489 try { 9490 return decodeURI(e) 9491 } catch { 9492 return e 9493 } 9494} 9495 , AF = { 9496 hook: LG, 9497 searchHook: DG, 9498 parser: gG, 9499 base: "", 9500 ssrPath: void 0, 9501 ssrSearch: void 0, 9502 ssrContext: void 0, 9503 hrefs: e => e 9504} 9505 , EF = b.createContext(AF) 9506 , Th = () => b.useContext(EF) 9507 , jF = {} 9508 , NF = b.createContext(jF) 9509 , UG = () => b.useContext(NF) 9510 , Hy = e => { 9511 const [t,n] = e.hook(e); 9512 return [VG(e.base, t), TF( (r, i) => n(BG(r, e.base), i))] 9513} 9514 , qy = () => Hy(Th()) 9515 , MF = (e, t, n, r) => { 9516 const {pattern: i, keys: o} = t instanceof RegExp ? { 9517 keys: !1, 9518 pattern: t 9519 } : e(t || "*", r) 9520 , a = i.exec(n) || [] 9521 , [s,...l] = a; 9522 return s !== void 0 ? [!0, ( () => { 9523 const c = o !== !1 ? Object.fromEntries(o.map( (d, f) => [d, l[f]])) : a.groups; 9524 let u = { 9525 ...l 9526 }; 9527 return c && Object.assign(u, c), 9528 u 9529 } 9530 )(), ...r ? [s] : []] : [!1, null] 9531} 9532 , zG = ({children: e, ...t}) => { 9533 var u, d; 9534 const n = Th() 9535 , r = t.hook ? AF : n; 9536 let i = r; 9537 const [o,a] = ((u = t.ssrPath) == null ? void 0 : u.split("?")) ?? []; 9538 a && (t.ssrSearch = a, 9539 t.ssrPath = o), 9540 t.hrefs = t.hrefs ?? ((d = t.hook) == null ? void 0 : d.hrefs); 9541 let s = b.useRef({}) 9542 , l = s.current 9543 , c = l; 9544 for (let f in r) { 9545 const p = f === "base" ? r[f] + (t[f] || "") : t[f] || r[f]; 9546 l === c && p !== c[f] && (s.current = c = { 9547 ...c 9548 }), 9549 c[f] = p, 9550 p !== r[f] && (i = c) 9551 } 9552 return b.createElement(EF.Provider, { 9553 value: i, 9554 children: e 9555 }) 9556} 9557 , HO = ({children: e, component: t}, n) => t ? b.createElement(t, { 9558 params: n 9559}) : typeof e == "function" ? e(n) : e 9560 , WG = e => { 9561 let t = b.useRef(jF); 9562 const n = t.current; 9563 return t.current = Object.keys(e).length !== Object.keys(n).length || Object.entries(e).some( ([r,i]) => i !== n[r]) ? e : n 9564} 9565 , ll = ({path: e, nest: t, match: n, ...r}) => { 9566 const i = Th() 9567 , [o] = Hy(i) 9568 , [a,s,l] = n ?? MF(i.parser, e, o, t) 9569 , c = WG({ 9570 ...UG(), 9571 ...s 9572 }); 9573 if (!a) 9574 return null; 9575 const u = l ? b.createElement(zG, { 9576 base: l 9577 }, HO(r, c)) : HO(r, c); 9578 return b.createElement(NF.Provider, { 9579 value: c, 9580 children: u 9581 }) 9582} 9583 , Tt = b.forwardRef( (e, t) => { 9584 const n = Th() 9585 , [r,i] = Hy(n) 9586 , {to: o="", href: a=o, onClick: s, asChild: l, children: c, className: u, replace: d, state: f, ...p} = e 9587 , g = TF(x => { 9588 x.ctrlKey || x.metaKey || x.altKey || x.shiftKey || x.button !== 0 || (s == null || s(x), 9589 x.defaultPrevented || (x.preventDefault(), 9590 i(a, e))) 9591 } 9592 ) 9593 , m = n.hrefs(a[0] === "~" ? a.slice(1) : n.base + a, n); 9594 return l && b.isValidElement(c) ? b.cloneElement(c, { 9595 onClick: g, 9596 href: m 9597 }) : b.createElement("a", { 9598 ...p, 9599 onClick: g, 9600 href: m, 9601 className: u != null && u.call ? u(r === a) : u, 9602 children: c, 9603 ref: t 9604 }) 9605} 9606) 9607 , kF = e => Array.isArray(e) ? e.flatMap(t => kF(t && t.type === b.Fragment ? t.props.children : t)) : [e] 9608 , HG = ({children: e, location: t}) => { 9609 const n = Th() 9610 , [r] = Hy(n); 9611 for (const i of kF(e)) { 9612 let o = 0; 9613 if (b.isValidElement(i) && (o = MF(n.parser, i.props.path, t || r, i.props.nest))[0]) 9614 return b.cloneElement(i, { 9615 match: o 9616 }) 9617 } 9618 return null 9619} 9620; 9621var iu = class { 9622 constructor() { 9623 this.listeners = new Set, 9624 this.subscribe = this.subscribe.bind(this) 9625 } 9626 subscribe(e) { 9627 return this.listeners.add(e), 9628 this.onSubscribe(), 9629 () => { 9630 this.listeners.delete(e), 9631 this.onUnsubscribe() 9632 } 9633 } 9634 hasListeners() { 9635 return this.listeners.size > 0 9636 } 9637 onSubscribe() {} 9638 onUnsubscribe() {} 9639} 9640 , $s = typeof window > "u" || "Deno"in globalThis; 9641function Ar() {} 9642function qG(e, t) { 9643 return typeof e == "function" ? e(t) : e 9644} 9645function Qb(e) { 9646 return typeof e == "number" && e >= 0 && e !== 1 / 0 9647} 9648function RF(e, t) { 9649 return Math.max(e + (t || 0) - Date.now(), 0) 9650} 9651function ql(e, t) { 9652 return typeof e == "function" ? e(t) : e 9653} 9654function ti(e, t) { 9655 return typeof e == "function" ? e(t) : e 9656} 9657function qO(e, t) { 9658 const {type: n="all", exact: r, fetchStatus: i, predicate: o, queryKey: a, stale: s} = e; 9659 if (a) { 9660 if (r) { 9661 if (t.queryHash !== EP(a, t.options)) 9662 return !1 9663 } else if (!of(t.queryKey, a)) 9664 return !1 9665 } 9666 if (n !== "all") { 9667 const l = t.isActive(); 9668 if (n === "active" && !l || n === "inactive" && l) 9669 return !1 9670 } 9671 return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || o && !o(t)) 9672} 9673function KO(e, t) { 9674 const {exact: n, status: r, predicate: i, mutationKey: o} = e; 9675 if (o) { 9676 if (!t.options.mutationKey) 9677 return !1; 9678 if (n) { 9679 if (Ls(t.options.mutationKey) !== Ls(o)) 9680 return !1 9681 } else if (!of(t.options.mutationKey, o)) 9682 return !1 9683 } 9684 return !(r && t.state.status !== r || i && !i(t)) 9685} 9686function EP(e, t) { 9687 return ((t == null ? void 0 : t.queryKeyHashFn) || Ls)(e) 9688} 9689function Ls(e) { 9690 return JSON.stringify(e, (t, n) => Zb(n) ? Object.keys(n).sort().reduce( (r, i) => (r[i] = n[i], 9691 r), {}) : n) 9692} 9693function of(e, t) { 9694 return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some(n => !of(e[n], t[n])) : !1 9695} 9696function DF(e, t) { 9697 if (e === t) 9698 return e; 9699 const n = GO(e) && GO(t); 9700 if (n || Zb(e) && Zb(t)) { 9701 const r = n ? e : Object.keys(e) 9702 , i = r.length 9703 , o = n ? t : Object.keys(t) 9704 , a = o.length 9705 , s = n ? [] : {}; 9706 let l = 0; 9707 for (let c = 0; c < a; c++) { 9708 const u = n ? c : o[c]; 9709 (!n && r.includes(u) || n) && e[u] === void 0 && t[u] === void 0 ? (s[u] = void 0, 9710 l++) : (s[u] = DF(e[u], t[u]), 9711 s[u] === e[u] && e[u] !== void 0 && l++) 9712 } 9713 return i === a && l === i ? e : s 9714 } 9715 return t 9716} 9717function qm(e, t) {
vendor: 56,866 bytes, lines 9718-11669
9718 if (!t || Object.keys(e).length !== Object.keys(t).length) 9719 return !1; 9720 for (const n in e) 9721 if (e[n] !== t[n]) 9722 return !1; 9723 return !0 9724} 9725function GO(e) { 9726 return Array.isArray(e) && e.length === Object.keys(e).length 9727} 9728function Zb(e) { 9729 if (!YO(e)) 9730 return !1; 9731 const t = e.constructor; 9732 if (t === void 0) 9733 return !0; 9734 const n = t.prototype; 9735 return !(!YO(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype) 9736} 9737function YO(e) { 9738 return Object.prototype.toString.call(e) === "[object Object]" 9739} 9740function KG(e) { 9741 return new Promise(t => { 9742 setTimeout(t, e) 9743 } 9744 ) 9745} 9746function Jb(e, t, n) { 9747 return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing !== !1 ? DF(e, t) : t 9748} 9749function GG(e, t, n=0) { 9750 const r = [...e, t]; 9751 return n && r.length > n ? r.slice(1) : r 9752} 9753function YG(e, t, n=0) { 9754 const r = [t, ...e]; 9755 return n && r.length > n ? r.slice(0, -1) : r 9756} 9757var jP = Symbol(); 9758function IF(e, t) { 9759 return !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === jP ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn 9760} 9761var ys, Jo, ic, g2, XG = (g2 = class extends iu { 9762 constructor() { 9763 super(); 9764 we(this, ys); 9765 we(this, Jo); 9766 we(this, ic); 9767 ce(this, ic, t => { 9768 if (!$s && window.addEventListener) { 9769 const n = () => t(); 9770 return window.addEventListener("visibilitychange", n, !1), 9771 () => { 9772 window.removeEventListener("visibilitychange", n) 9773 } 9774 } 9775 } 9776 ) 9777 } 9778 onSubscribe() { 9779 I(this, Jo) || this.setEventListener(I(this, ic)) 9780 } 9781 onUnsubscribe() { 9782 var t; 9783 this.hasListeners() || ((t = I(this, Jo)) == null || t.call(this), 9784 ce(this, Jo, void 0)) 9785 } 9786 setEventListener(t) { 9787 var n; 9788 ce(this, ic, t), 9789 (n = I(this, Jo)) == null || n.call(this), 9790 ce(this, Jo, t(r => { 9791 typeof r == "boolean" ? this.setFocused(r) : this.onFocus() 9792 } 9793 )) 9794 } 9795 setFocused(t) { 9796 I(this, ys) !== t && (ce(this, ys, t), 9797 this.onFocus()) 9798 } 9799 onFocus() { 9800 const t = this.isFocused(); 9801 this.listeners.forEach(n => { 9802 n(t) 9803 } 9804 ) 9805 } 9806 isFocused() { 9807 var t; 9808 return typeof I(this, ys) == "boolean" ? I(this, ys) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden" 9809 } 9810} 9811, 9812ys = new WeakMap, 9813Jo = new WeakMap, 9814ic = new WeakMap, 9815g2), NP = new XG, oc, ea, ac, y2, QG = (y2 = class extends iu { 9816 constructor() { 9817 super(); 9818 we(this, oc, !0); 9819 we(this, ea); 9820 we(this, ac); 9821 ce(this, ac, t => { 9822 if (!$s && window.addEventListener) { 9823 const n = () => t(!0) 9824 , r = () => t(!1); 9825 return window.addEventListener("online", n, !1), 9826 window.addEventListener("offline", r, !1), 9827 () => { 9828 window.removeEventListener("online", n), 9829 window.removeEventListener("offline", r) 9830 } 9831 } 9832 } 9833 ) 9834 } 9835 onSubscribe() { 9836 I(this, ea) || this.setEventListener(I(this, ac)) 9837 } 9838 onUnsubscribe() { 9839 var t; 9840 this.hasListeners() || ((t = I(this, ea)) == null || t.call(this), 9841 ce(this, ea, void 0)) 9842 } 9843 setEventListener(t) { 9844 var n; 9845 ce(this, ac, t), 9846 (n = I(this, ea)) == null || n.call(this), 9847 ce(this, ea, t(this.setOnline.bind(this))) 9848 } 9849 setOnline(t) { 9850 I(this, oc) !== t && (ce(this, oc, t), 9851 this.listeners.forEach(r => { 9852 r(t) 9853 } 9854 )) 9855 } 9856 isOnline() { 9857 return I(this, oc) 9858 } 9859} 9860, 9861oc = new WeakMap, 9862ea = new WeakMap, 9863ac = new WeakMap, 9864y2), Km = new QG; 9865function ew() { 9866 let e, t; 9867 const n = new Promise( (i, o) => { 9868 e = i, 9869 t = o 9870 } 9871 ); 9872 n.status = "pending", 9873 n.catch( () => {} 9874 ); 9875 function r(i) { 9876 Object.assign(n, i), 9877 delete n.resolve, 9878 delete n.reject 9879 } 9880 return n.resolve = i => { 9881 r({ 9882 status: "fulfilled", 9883 value: i 9884 }), 9885 e(i) 9886 } 9887 , 9888 n.reject = i => { 9889 r({ 9890 status: "rejected", 9891 reason: i 9892 }), 9893 t(i) 9894 } 9895 , 9896 n 9897} 9898function ZG(e) { 9899 return Math.min(1e3 * 2 ** e, 3e4) 9900} 9901function $F(e) { 9902 return (e ?? "online") === "online" ? Km.isOnline() : !0 9903} 9904var LF = class extends Error { 9905 constructor(e) { 9906 super("CancelledError"), 9907 this.revert = e == null ? void 0 : e.revert, 9908 this.silent = e == null ? void 0 : e.silent 9909 } 9910} 9911; 9912function G0(e) { 9913 return e instanceof LF 9914} 9915function FF(e) { 9916 let t = !1, n = 0, r = !1, i; 9917 const o = ew() 9918 , a = m => { 9919 var x; 9920 r || (f(new LF(m)), 9921 (x = e.abort) == null || x.call(e)) 9922 } 9923 , s = () => { 9924 t = !0 9925 } 9926 , l = () => { 9927 t = !1 9928 } 9929 , c = () => NP.isFocused() && (e.networkMode === "always" || Km.isOnline()) && e.canRun() 9930 , u = () => $F(e.networkMode) && e.canRun() 9931 , d = m => { 9932 var x; 9933 r || (r = !0, 9934 (x = e.onSuccess) == null || x.call(e, m), 9935 i == null || i(), 9936 o.resolve(m)) 9937 } 9938 , f = m => { 9939 var x; 9940 r || (r = !0, 9941 (x = e.onError) == null || x.call(e, m), 9942 i == null || i(), 9943 o.reject(m)) 9944 } 9945 , p = () => new Promise(m => { 9946 var x; 9947 i = v => { 9948 (r || c()) && m(v) 9949 } 9950 , 9951 (x = e.onPause) == null || x.call(e) 9952 } 9953 ).then( () => { 9954 var m; 9955 i = void 0, 9956 r || (m = e.onContinue) == null || m.call(e) 9957 } 9958 ) 9959 , g = () => { 9960 if (r) 9961 return; 9962 let m; 9963 const x = n === 0 ? e.initialPromise : void 0; 9964 try { 9965 m = x ?? e.fn() 9966 } catch (v) { 9967 m = Promise.reject(v) 9968 } 9969 Promise.resolve(m).then(d).catch(v => { 9970 var _; 9971 if (r) 9972 return; 9973 const y = e.retry ?? ($s ? 0 : 3) 9974 , w = e.retryDelay ?? ZG 9975 , P = typeof w == "function" ? w(n, v) : w 9976 , S = y === !0 || typeof y == "number" && n < y || typeof y == "function" && y(n, v); 9977 if (t || !S) { 9978 f(v); 9979 return 9980 } 9981 n++, 9982 (_ = e.onFail) == null || _.call(e, n, v), 9983 KG(P).then( () => c() ? void 0 : p()).then( () => { 9984 t ? f(v) : g() 9985 } 9986 ) 9987 } 9988 ) 9989 } 9990 ; 9991 return { 9992 promise: o, 9993 cancel: a, 9994 continue: () => (i == null || i(), 9995 o), 9996 cancelRetry: s, 9997 continueRetry: l, 9998 canStart: u, 9999 start: () => (u() ? g() : p().then(g), 10000 o) 10001 } 10002} 10003function JG() { 10004 let e = [] 10005 , t = 0 10006 , n = s => { 10007 s() 10008 } 10009 , r = s => { 10010 s() 10011 } 10012 , i = s => setTimeout(s, 0); 10013 const o = s => { 10014 t ? e.push(s) : i( () => { 10015 n(s) 10016 } 10017 ) 10018 } 10019 , a = () => { 10020 const s = e; 10021 e = [], 10022 s.length && i( () => { 10023 r( () => { 10024 s.forEach(l => { 10025 n(l) 10026 } 10027 ) 10028 } 10029 ) 10030 } 10031 ) 10032 } 10033 ; 10034 return { 10035 batch: s => { 10036 let l; 10037 t++; 10038 try { 10039 l = s() 10040 } finally { 10041 t--, 10042 t || a() 10043 } 10044 return l 10045 } 10046 , 10047 batchCalls: s => (...l) => { 10048 o( () => { 10049 s(...l) 10050 } 10051 ) 10052 } 10053 , 10054 schedule: o, 10055 setNotifyFunction: s => { 10056 n = s 10057 } 10058 , 10059 setBatchNotifyFunction: s => { 10060 r = s 10061 } 10062 , 10063 setScheduler: s => { 10064 i = s 10065 } 10066 } 10067} 10068var Jt = JG(), vs, v2, BF = (v2 = class { 10069 constructor() { 10070 we(this, vs) 10071 } 10072 destroy() { 10073 this.clearGcTimeout() 10074 } 10075 scheduleGc() { 10076 this.clearGcTimeout(), 10077 Qb(this.gcTime) && ce(this, vs, setTimeout( () => { 10078 this.optionalRemove() 10079 } 10080 , this.gcTime)) 10081 } 10082 updateGcTime(e) { 10083 this.gcTime = Math.max(this.gcTime || 0, e ?? ($s ? 1 / 0 : 5 * 60 * 1e3)) 10084 } 10085 clearGcTimeout() { 10086 I(this, vs) && (clearTimeout(I(this, vs)), 10087 ce(this, vs, void 0)) 10088 } 10089} 10090, 10091vs = new WeakMap, 10092v2), sc, lc, Or, Pn, gh, xs, Qr, no, x2, eY = (x2 = class extends BF { 10093 constructor(t) { 10094 super(); 10095 we(this, Qr); 10096 we(this, sc); 10097 we(this, lc); 10098 we(this, Or); 10099 we(this, Pn); 10100 we(this, gh); 10101 we(this, xs); 10102 ce(this, xs, !1), 10103 ce(this, gh, t.defaultOptions), 10104 this.setOptions(t.options), 10105 this.observers = [], 10106 ce(this, Or, t.cache), 10107 this.queryKey = t.queryKey, 10108 this.queryHash = t.queryHash, 10109 ce(this, sc, tY(this.options)), 10110 this.state = t.state ?? I(this, sc), 10111 this.scheduleGc() 10112 } 10113 get meta() { 10114 return this.options.meta 10115 } 10116 get promise() { 10117 var t; 10118 return (t = I(this, Pn)) == null ? void 0 : t.promise 10119 } 10120 setOptions(t) { 10121 this.options = { 10122 ...I(this, gh), 10123 ...t 10124 }, 10125 this.updateGcTime(this.options.gcTime) 10126 } 10127 optionalRemove() { 10128 !this.observers.length && this.state.fetchStatus === "idle" && I(this, Or).remove(this) 10129 } 10130 setData(t, n) { 10131 const r = Jb(this.state.data, t, this.options); 10132 return $e(this, Qr, no).call(this, { 10133 data: r, 10134 type: "success", 10135 dataUpdatedAt: n == null ? void 0 : n.updatedAt, 10136 manual: n == null ? void 0 : n.manual 10137 }), 10138 r 10139 } 10140 setState(t, n) { 10141 $e(this, Qr, no).call(this, { 10142 type: "setState", 10143 state: t, 10144 setStateOptions: n 10145 }) 10146 } 10147 cancel(t) { 10148 var r, i; 10149 const n = (r = I(this, Pn)) == null ? void 0 : r.promise; 10150 return (i = I(this, Pn)) == null || i.cancel(t), 10151 n ? n.then(Ar).catch(Ar) : Promise.resolve() 10152 } 10153 destroy() { 10154 super.destroy(), 10155 this.cancel({ 10156 silent: !0 10157 }) 10158 } 10159 reset() { 10160 this.destroy(), 10161 this.setState(I(this, sc)) 10162 } 10163 isActive() { 10164 return this.observers.some(t => ti(t.options.enabled, this) !== !1) 10165 } 10166 isDisabled() { 10167 return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === jP || this.state.dataUpdateCount + this.state.errorUpdateCount === 0 10168 } 10169 isStale() { 10170 return this.state.isInvalidated ? !0 : this.getObserversCount() > 0 ? this.observers.some(t => t.getCurrentResult().isStale) : this.state.data === void 0 10171 } 10172 isStaleByTime(t=0) { 10173 return this.state.isInvalidated || this.state.data === void 0 || !RF(this.state.dataUpdatedAt, t) 10174 } 10175 onFocus() { 10176 var n; 10177 const t = this.observers.find(r => r.shouldFetchOnWindowFocus()); 10178 t == null || t.refetch({ 10179 cancelRefetch: !1 10180 }), 10181 (n = I(this, Pn)) == null || n.continue() 10182 } 10183 onOnline() { 10184 var n; 10185 const t = this.observers.find(r => r.shouldFetchOnReconnect()); 10186 t == null || t.refetch({ 10187 cancelRefetch: !1 10188 }), 10189 (n = I(this, Pn)) == null || n.continue() 10190 } 10191 addObserver(t) { 10192 this.observers.includes(t) || (this.observers.push(t), 10193 this.clearGcTimeout(), 10194 I(this, Or).notify({ 10195 type: "observerAdded", 10196 query: this, 10197 observer: t 10198 })) 10199 } 10200 removeObserver(t) { 10201 this.observers.includes(t) && (this.observers = this.observers.filter(n => n !== t), 10202 this.observers.length || (I(this, Pn) && (I(this, xs) ? I(this, Pn).cancel({ 10203 revert: !0 10204 }) : I(this, Pn).cancelRetry()), 10205 this.scheduleGc()), 10206 I(this, Or).notify({ 10207 type: "observerRemoved", 10208 query: this, 10209 observer: t 10210 })) 10211 } 10212 getObserversCount() { 10213 return this.observers.length 10214 } 10215 invalidate() { 10216 this.state.isInvalidated || $e(this, Qr, no).call(this, { 10217 type: "invalidate" 10218 }) 10219 } 10220 fetch(t, n) { 10221 var l, c, u; 10222 if (this.state.fetchStatus !== "idle") { 10223 if (this.state.data !== void 0 && (n != null && n.cancelRefetch)) 10224 this.cancel({ 10225 silent: !0 10226 }); 10227 else if (I(this, Pn)) 10228 return I(this, Pn).continueRetry(), 10229 I(this, Pn).promise 10230 } 10231 if (t && this.setOptions(t), 10232 !this.options.queryFn) { 10233 const d = this.observers.find(f => f.options.queryFn); 10234 d && this.setOptions(d.options) 10235 } 10236 const r = new AbortController 10237 , i = d => { 10238 Object.defineProperty(d, "signal", { 10239 enumerable: !0, 10240 get: () => (ce(this, xs, !0), 10241 r.signal) 10242 }) 10243 } 10244 , o = () => { 10245 const d = IF(this.options, n) 10246 , f = { 10247 queryKey: this.queryKey, 10248 meta: this.meta 10249 }; 10250 return i(f), 10251 ce(this, xs, !1), 10252 this.options.persister ? this.options.persister(d, f, this) : d(f) 10253 } 10254 , a = { 10255 fetchOptions: n, 10256 options: this.options, 10257 queryKey: this.queryKey, 10258 state: this.state, 10259 fetchFn: o 10260 }; 10261 i(a), 10262 (l = this.options.behavior) == null || l.onFetch(a, this), 10263 ce(this, lc, this.state), 10264 (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((c = a.fetchOptions) == null ? void 0 : c.meta)) && $e(this, Qr, no).call(this, { 10265 type: "fetch", 10266 meta: (u = a.fetchOptions) == null ? void 0 : u.meta 10267 }); 10268 const s = d => { 10269 var f, p, g, m; 10270 G0(d) && d.silent || $e(this, Qr, no).call(this, { 10271 type: "error", 10272 error: d 10273 }), 10274 G0(d) || ((p = (f = I(this, Or).config).onError) == null || p.call(f, d, this), 10275 (m = (g = I(this, Or).config).onSettled) == null || m.call(g, this.state.data, d, this)), 10276 this.scheduleGc() 10277 } 10278 ; 10279 return ce(this, Pn, FF({ 10280 initialPromise: n == null ? void 0 : n.initialPromise, 10281 fn: a.fetchFn, 10282 abort: r.abort.bind(r), 10283 onSuccess: d => { 10284 var f, p, g, m; 10285 if (d === void 0) { 10286 s(new Error(`${this.queryHash} data is undefined`)); 10287 return 10288 } 10289 try { 10290 this.setData(d) 10291 } catch (x) { 10292 s(x); 10293 return 10294 } 10295 (p = (f = I(this, Or).config).onSuccess) == null || p.call(f, d, this), 10296 (m = (g = I(this, Or).config).onSettled) == null || m.call(g, d, this.state.error, this), 10297 this.scheduleGc() 10298 } 10299 , 10300 onError: s, 10301 onFail: (d, f) => { 10302 $e(this, Qr, no).call(this, { 10303 type: "failed", 10304 failureCount: d, 10305 error: f 10306 }) 10307 } 10308 , 10309 onPause: () => { 10310 $e(this, Qr, no).call(this, { 10311 type: "pause" 10312 }) 10313 } 10314 , 10315 onContinue: () => { 10316 $e(this, Qr, no).call(this, { 10317 type: "continue" 10318 }) 10319 } 10320 , 10321 retry: a.options.retry, 10322 retryDelay: a.options.retryDelay, 10323 networkMode: a.options.networkMode, 10324 canRun: () => !0 10325 })), 10326 I(this, Pn).start() 10327 } 10328} 10329, 10330sc = new WeakMap, 10331lc = new WeakMap, 10332Or = new WeakMap, 10333Pn = new WeakMap, 10334gh = new WeakMap, 10335xs = new WeakMap, 10336Qr = new WeakSet, 10337no = function(t) { 10338 const n = r => { 10339 switch (t.type) { 10340 case "failed": 10341 return { 10342 ...r, 10343 fetchFailureCount: t.failureCount, 10344 fetchFailureReason: t.error 10345 }; 10346 case "pause": 10347 return { 10348 ...r, 10349 fetchStatus: "paused" 10350 }; 10351 case "continue": 10352 return { 10353 ...r, 10354 fetchStatus: "fetching" 10355 }; 10356 case "fetch": 10357 return { 10358 ...r, 10359 ...VF(r.data, this.options), 10360 fetchMeta: t.meta ?? null 10361 }; 10362 case "success": 10363 return { 10364 ...r, 10365 data: t.data, 10366 dataUpdateCount: r.dataUpdateCount + 1, 10367 dataUpdatedAt: t.dataUpdatedAt ?? Date.now(), 10368 error: null, 10369 isInvalidated: !1, 10370 status: "success", 10371 ...!t.manual && { 10372 fetchStatus: "idle", 10373 fetchFailureCount: 0, 10374 fetchFailureReason: null 10375 } 10376 }; 10377 case "error": 10378 const i = t.error; 10379 return G0(i) && i.revert && I(this, lc) ? { 10380 ...I(this, lc), 10381 fetchStatus: "idle" 10382 } : { 10383 ...r, 10384 error: i, 10385 errorUpdateCount: r.errorUpdateCount + 1, 10386 errorUpdatedAt: Date.now(), 10387 fetchFailureCount: r.fetchFailureCount + 1, 10388 fetchFailureReason: i, 10389 fetchStatus: "idle", 10390 status: "error" 10391 }; 10392 case "invalidate": 10393 return { 10394 ...r, 10395 isInvalidated: !0 10396 }; 10397 case "setState": 10398 return { 10399 ...r, 10400 ...t.state 10401 } 10402 } 10403 } 10404 ; 10405 this.state = n(this.state), 10406 Jt.batch( () => { 10407 this.observers.forEach(r => { 10408 r.onQueryUpdate() 10409 } 10410 ), 10411 I(this, Or).notify({ 10412 query: this, 10413 type: "updated", 10414 action: t 10415 }) 10416 } 10417 ) 10418} 10419, 10420x2); 10421function VF(e, t) { 10422 return { 10423 fetchFailureCount: 0, 10424 fetchFailureReason: null, 10425 fetchStatus: $F(t.networkMode) ? "fetching" : "paused", 10426 ...e === void 0 && { 10427 error: null, 10428 status: "pending" 10429 } 10430 } 10431} 10432function tY(e) { 10433 const t = typeof e.initialData == "function" ? e.initialData() : e.initialData 10434 , n = t !== void 0 10435 , r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0; 10436 return { 10437 data: t, 10438 dataUpdateCount: 0, 10439 dataUpdatedAt: n ? r ?? Date.now() : 0, 10440 error: null, 10441 errorUpdateCount: 0, 10442 errorUpdatedAt: 0, 10443 fetchFailureCount: 0, 10444 fetchFailureReason: null, 10445 fetchMeta: null, 10446 isInvalidated: !1, 10447 status: n ? "success" : "pending", 10448 fetchStatus: "idle" 10449 } 10450} 10451var _i, b2, nY = (b2 = class extends iu { 10452 constructor(t={}) { 10453 super(); 10454 we(this, _i); 10455 this.config = t, 10456 ce(this, _i, new Map) 10457 } 10458 build(t, n, r) { 10459 const i = n.queryKey 10460 , o = n.queryHash ?? EP(i, n); 10461 let a = this.get(o); 10462 return a || (a = new eY({ 10463 cache: this, 10464 queryKey: i, 10465 queryHash: o, 10466 options: t.defaultQueryOptions(n), 10467 state: r, 10468 defaultOptions: t.getQueryDefaults(i) 10469 }), 10470 this.add(a)), 10471 a 10472 } 10473 add(t) { 10474 I(this, _i).has(t.queryHash) || (I(this, _i).set(t.queryHash, t), 10475 this.notify({ 10476 type: "added", 10477 query: t 10478 })) 10479 } 10480 remove(t) { 10481 const n = I(this, _i).get(t.queryHash); 10482 n && (t.destroy(), 10483 n === t && I(this, _i).delete(t.queryHash), 10484 this.notify({ 10485 type: "removed", 10486 query: t 10487 })) 10488 } 10489 clear() { 10490 Jt.batch( () => { 10491 this.getAll().forEach(t => { 10492 this.remove(t) 10493 } 10494 ) 10495 } 10496 ) 10497 } 10498 get(t) { 10499 return I(this, _i).get(t) 10500 } 10501 getAll() { 10502 return [...I(this, _i).values()] 10503 } 10504 find(t) { 10505 const n = { 10506 exact: !0, 10507 ...t 10508 }; 10509 return this.getAll().find(r => qO(n, r)) 10510 } 10511 findAll(t={}) { 10512 const n = this.getAll(); 10513 return Object.keys(t).length > 0 ? n.filter(r => qO(t, r)) : n 10514 } 10515 notify(t) { 10516 Jt.batch( () => { 10517 this.listeners.forEach(n => { 10518 n(t) 10519 } 10520 ) 10521 } 10522 ) 10523 } 10524 onFocus() { 10525 Jt.batch( () => { 10526 this.getAll().forEach(t => { 10527 t.onFocus() 10528 } 10529 ) 10530 } 10531 ) 10532 } 10533 onOnline() { 10534 Jt.batch( () => { 10535 this.getAll().forEach(t => { 10536 t.onOnline() 10537 } 10538 ) 10539 } 10540 ) 10541 } 10542} 10543, 10544_i = new WeakMap, 10545b2), Ti, Mn, bs, Ci, zo, w2, rY = (w2 = class extends BF { 10546 constructor(t) { 10547 super(); 10548 we(this, Ci); 10549 we(this, Ti); 10550 we(this, Mn); 10551 we(this, bs); 10552 this.mutationId = t.mutationId, 10553 ce(this, Mn, t.mutationCache), 10554 ce(this, Ti, []), 10555 this.state = t.state || UF(), 10556 this.setOptions(t.options), 10557 this.scheduleGc() 10558 } 10559 setOptions(t) { 10560 this.options = t, 10561 this.updateGcTime(this.options.gcTime) 10562 } 10563 get meta() { 10564 return this.options.meta 10565 } 10566 addObserver(t) { 10567 I(this, Ti).includes(t) || (I(this, Ti).push(t), 10568 this.clearGcTimeout(), 10569 I(this, Mn).notify({ 10570 type: "observerAdded", 10571 mutation: this, 10572 observer: t 10573 })) 10574 } 10575 removeObserver(t) { 10576 ce(this, Ti, I(this, Ti).filter(n => n !== t)), 10577 this.scheduleGc(), 10578 I(this, Mn).notify({ 10579 type: "observerRemoved", 10580 mutation: this, 10581 observer: t 10582 }) 10583 } 10584 optionalRemove() { 10585 I(this, Ti).length || (this.state.status === "pending" ? this.scheduleGc() : I(this, Mn).remove(this)) 10586 } 10587 continue() { 10588 var t; 10589 return ((t = I(this, bs)) == null ? void 0 : t.continue()) ?? this.execute(this.state.variables) 10590 } 10591 async execute(t) { 10592 var i, o, a, s, l, c, u, d, f, p, g, m, x, v, y, w, P, S, _, T; 10593 ce(this, bs, FF({ 10594 fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")), 10595 onFail: (C, O) => { 10596 $e(this, Ci, zo).call(this, { 10597 type: "failed", 10598 failureCount: C, 10599 error: O 10600 }) 10601 } 10602 , 10603 onPause: () => { 10604 $e(this, Ci, zo).call(this, { 10605 type: "pause" 10606 }) 10607 } 10608 , 10609 onContinue: () => { 10610 $e(this, Ci, zo).call(this, { 10611 type: "continue" 10612 }) 10613 } 10614 , 10615 retry: this.options.retry ?? 0, 10616 retryDelay: this.options.retryDelay, 10617 networkMode: this.options.networkMode, 10618 canRun: () => I(this, Mn).canRun(this) 10619 })); 10620 const n = this.state.status === "pending" 10621 , r = !I(this, bs).canStart(); 10622 try { 10623 if (!n) { 10624 $e(this, Ci, zo).call(this, { 10625 type: "pending", 10626 variables: t, 10627 isPaused: r 10628 }), 10629 await ((o = (i = I(this, Mn).config).onMutate) == null ? void 0 : o.call(i, t, this)); 10630 const O = await ((s = (a = this.options).onMutate) == null ? void 0 : s.call(a, t)); 10631 O !== this.state.context && $e(this, Ci, zo).call(this, { 10632 type: "pending", 10633 context: O, 10634 variables: t, 10635 isPaused: r 10636 }) 10637 } 10638 const C = await I(this, bs).start(); 10639 return await ((c = (l = I(this, Mn).config).onSuccess) == null ? void 0 : c.call(l, C, t, this.state.context, this)), 10640 await ((d = (u = this.options).onSuccess) == null ? void 0 : d.call(u, C, t, this.state.context)), 10641 await ((p = (f = I(this, Mn).config).onSettled) == null ? void 0 : p.call(f, C, null, this.state.variables, this.state.context, this)), 10642 await ((m = (g = this.options).onSettled) == null ? void 0 : m.call(g, C, null, t, this.state.context)), 10643 $e(this, Ci, zo).call(this, { 10644 type: "success", 10645 data: C 10646 }), 10647 C 10648 } catch (C) { 10649 try { 10650 throw await ((v = (x = I(this, Mn).config).onError) == null ? void 0 : v.call(x, C, t, this.state.context, this)), 10651 await ((w = (y = this.options).onError) == null ? void 0 : w.call(y, C, t, this.state.context)), 10652 await ((S = (P = I(this, Mn).config).onSettled) == null ? void 0 : S.call(P, void 0, C, this.state.variables, this.state.context, this)), 10653 await ((T = (_ = this.options).onSettled) == null ? void 0 : T.call(_, void 0, C, t, this.state.context)), 10654 C 10655 } finally { 10656 $e(this, Ci, zo).call(this, { 10657 type: "error", 10658 error: C 10659 }) 10660 } 10661 } finally { 10662 I(this, Mn).runNext(this) 10663 } 10664 } 10665} 10666, 10667Ti = new WeakMap, 10668Mn = new WeakMap, 10669bs = new WeakMap, 10670Ci = new WeakSet, 10671zo = function(t) { 10672 const n = r => { 10673 switch (t.type) { 10674 case "failed": 10675 return { 10676 ...r, 10677 failureCount: t.failureCount, 10678 failureReason: t.error 10679 }; 10680 case "pause": 10681 return { 10682 ...r, 10683 isPaused: !0 10684 }; 10685 case "continue": 10686 return { 10687 ...r, 10688 isPaused: !1 10689 }; 10690 case "pending": 10691 return { 10692 ...r, 10693 context: t.context, 10694 data: void 0, 10695 failureCount: 0, 10696 failureReason: null, 10697 error: null, 10698 isPaused: t.isPaused, 10699 status: "pending", 10700 variables: t.variables, 10701 submittedAt: Date.now() 10702 }; 10703 case "success": 10704 return { 10705 ...r, 10706 data: t.data, 10707 failureCount: 0, 10708 failureReason: null, 10709 error: null, 10710 status: "success", 10711 isPaused: !1 10712 }; 10713 case "error": 10714 return { 10715 ...r, 10716 data: void 0, 10717 error: t.error, 10718 failureCount: r.failureCount + 1, 10719 failureReason: t.error, 10720 isPaused: !1, 10721 status: "error" 10722 } 10723 } 10724 } 10725 ; 10726 this.state = n(this.state), 10727 Jt.batch( () => { 10728 I(this, Ti).forEach(r => { 10729 r.onMutationUpdate(t) 10730 } 10731 ), 10732 I(this, Mn).notify({ 10733 mutation: this, 10734 type: "updated", 10735 action: t 10736 }) 10737 } 10738 ) 10739} 10740, 10741w2); 10742function UF() { 10743 return { 10744 context: void 0, 10745 data: void 0, 10746 error: null, 10747 failureCount: 0, 10748 failureReason: null, 10749 isPaused: !1, 10750 status: "idle", 10751 variables: void 0, 10752 submittedAt: 0 10753 } 10754} 10755var or, yh, S2, iY = (S2 = class extends iu { 10756 constructor(t={}) { 10757 super(); 10758 we(this, or); 10759 we(this, yh); 10760 this.config = t, 10761 ce(this, or, new Map), 10762 ce(this, yh, Date.now()) 10763 } 10764 build(t, n, r) { 10765 const i = new rY({ 10766 mutationCache: this, 10767 mutationId: ++tp(this, yh)._, 10768 options: t.defaultMutationOptions(n), 10769 state: r 10770 }); 10771 return this.add(i), 10772 i 10773 } 10774 add(t) { 10775 const n = bp(t) 10776 , r = I(this, or).get(n) ?? []; 10777 r.push(t), 10778 I(this, or).set(n, r), 10779 this.notify({ 10780 type: "added", 10781 mutation: t 10782 }) 10783 } 10784 remove(t) { 10785 var r; 10786 const n = bp(t); 10787 if (I(this, or).has(n)) { 10788 const i = (r = I(this, or).get(n)) == null ? void 0 : r.filter(o => o !== t); 10789 i && (i.length === 0 ? I(this, or).delete(n) : I(this, or).set(n, i)) 10790 } 10791 this.notify({ 10792 type: "removed", 10793 mutation: t 10794 }) 10795 } 10796 canRun(t) { 10797 var r; 10798 const n = (r = I(this, or).get(bp(t))) == null ? void 0 : r.find(i => i.state.status === "pending"); 10799 return !n || n === t 10800 } 10801 runNext(t) { 10802 var r; 10803 const n = (r = I(this, or).get(bp(t))) == null ? void 0 : r.find(i => i !== t && i.state.isPaused); 10804 return (n == null ? void 0 : n.continue()) ?? Promise.resolve() 10805 } 10806 clear() { 10807 Jt.batch( () => { 10808 this.getAll().forEach(t => { 10809 this.remove(t) 10810 } 10811 ) 10812 } 10813 ) 10814 } 10815 getAll() { 10816 return [...I(this, or).values()].flat() 10817 } 10818 find(t) { 10819 const n = { 10820 exact: !0, 10821 ...t 10822 }; 10823 return this.getAll().find(r => KO(n, r)) 10824 } 10825 findAll(t={}) { 10826 return this.getAll().filter(n => KO(t, n)) 10827 } 10828 notify(t) { 10829 Jt.batch( () => { 10830 this.listeners.forEach(n => { 10831 n(t) 10832 } 10833 ) 10834 } 10835 ) 10836 } 10837 resumePausedMutations() { 10838 const t = this.getAll().filter(n => n.state.isPaused); 10839 return Jt.batch( () => Promise.all(t.map(n => n.continue().catch(Ar)))) 10840 } 10841} 10842, 10843or = new WeakMap, 10844yh = new WeakMap, 10845S2); 10846function bp(e) { 10847 var t; 10848 return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId) 10849} 10850function XO(e) { 10851 return { 10852 onFetch: (t, n) => { 10853 var u, d, f, p, g; 10854 const r = t.options 10855 , i = (f = (d = (u = t.fetchOptions) == null ? void 0 : u.meta) == null ? void 0 : d.fetchMore) == null ? void 0 : f.direction 10856 , o = ((p = t.state.data) == null ? void 0 : p.pages) || [] 10857 , a = ((g = t.state.data) == null ? void 0 : g.pageParams) || []; 10858 let s = { 10859 pages: [], 10860 pageParams: [] 10861 } 10862 , l = 0; 10863 const c = async () => { 10864 let m = !1; 10865 const x = w => { 10866 Object.defineProperty(w, "signal", { 10867 enumerable: !0, 10868 get: () => (t.signal.aborted ? m = !0 : t.signal.addEventListener("abort", () => { 10869 m = !0 10870 } 10871 ), 10872 t.signal) 10873 }) 10874 } 10875 , v = IF(t.options, t.fetchOptions) 10876 , y = async (w, P, S) => { 10877 if (m) 10878 return Promise.reject(); 10879 if (P == null && w.pages.length) 10880 return Promise.resolve(w); 10881 const _ = { 10882 queryKey: t.queryKey, 10883 pageParam: P, 10884 direction: S ? "backward" : "forward", 10885 meta: t.options.meta 10886 }; 10887 x(_); 10888 const T = await v(_) 10889 , {maxPages: C} = t.options 10890 , O = S ? YG : GG; 10891 return { 10892 pages: O(w.pages, T, C), 10893 pageParams: O(w.pageParams, P, C) 10894 } 10895 } 10896 ; 10897 if (i && o.length) { 10898 const w = i === "backward" 10899 , P = w ? oY : QO 10900 , S = { 10901 pages: o, 10902 pageParams: a 10903 } 10904 , _ = P(r, S); 10905 s = await y(S, _, w) 10906 } else { 10907 const w = e ?? o.length; 10908 do { 10909 const P = l === 0 ? a[0] ?? r.initialPageParam : QO(r, s); 10910 if (l > 0 && P == null) 10911 break; 10912 s = await y(s, P), 10913 l++ 10914 } while (l < w) 10915 } 10916 return s 10917 } 10918 ; 10919 t.options.persister ? t.fetchFn = () => { 10920 var m, x; 10921 return (x = (m = t.options).persister) == null ? void 0 : x.call(m, c, { 10922 queryKey: t.queryKey, 10923 meta: t.options.meta, 10924 signal: t.signal 10925 }, n) 10926 } 10927 : t.fetchFn = c 10928 } 10929 } 10930} 10931function QO(e, {pages: t, pageParams: n}) { 10932 const r = t.length - 1; 10933 return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0 10934} 10935function oY(e, {pages: t, pageParams: n}) { 10936 var r; 10937 return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0 10938} 10939var Nt, ta, na, cc, uc, ra, dc, fc, P2, aY = (P2 = class { 10940 constructor(e={}) { 10941 we(this, Nt); 10942 we(this, ta); 10943 we(this, na); 10944 we(this, cc); 10945 we(this, uc); 10946 we(this, ra); 10947 we(this, dc); 10948 we(this, fc); 10949 ce(this, Nt, e.queryCache || new nY), 10950 ce(this, ta, e.mutationCache || new iY), 10951 ce(this, na, e.defaultOptions || {}), 10952 ce(this, cc, new Map), 10953 ce(this, uc, new Map), 10954 ce(this, ra, 0) 10955 } 10956 mount() { 10957 tp(this, ra)._++, 10958 I(this, ra) === 1 && (ce(this, dc, NP.subscribe(async e => { 10959 e && (await this.resumePausedMutations(), 10960 I(this, Nt).onFocus()) 10961 } 10962 )), 10963 ce(this, fc, Km.subscribe(async e => { 10964 e && (await this.resumePausedMutations(), 10965 I(this, Nt).onOnline()) 10966 } 10967 ))) 10968 } 10969 unmount() { 10970 var e, t; 10971 tp(this, ra)._--, 10972 I(this, ra) === 0 && ((e = I(this, dc)) == null || e.call(this), 10973 ce(this, dc, void 0), 10974 (t = I(this, fc)) == null || t.call(this), 10975 ce(this, fc, void 0)) 10976 } 10977 isFetching(e) { 10978 return I(this, Nt).findAll({ 10979 ...e, 10980 fetchStatus: "fetching" 10981 }).length 10982 } 10983 isMutating(e) { 10984 return I(this, ta).findAll({ 10985 ...e, 10986 status: "pending" 10987 }).length 10988 } 10989 getQueryData(e) { 10990 var n; 10991 const t = this.defaultQueryOptions({ 10992 queryKey: e 10993 }); 10994 return (n = I(this, Nt).get(t.queryHash)) == null ? void 0 : n.state.data 10995 } 10996 ensureQueryData(e) { 10997 const t = this.getQueryData(e.queryKey); 10998 if (t === void 0) 10999 return this.fetchQuery(e); 11000 { 11001 const n = this.defaultQueryOptions(e) 11002 , r = I(this, Nt).build(this, n); 11003 return e.revalidateIfStale && r.isStaleByTime(ql(n.staleTime, r)) && this.prefetchQuery(n), 11004 Promise.resolve(t) 11005 } 11006 } 11007 getQueriesData(e) { 11008 return I(this, Nt).findAll(e).map( ({queryKey: t, state: n}) => { 11009 const r = n.data; 11010 return [t, r] 11011 } 11012 ) 11013 } 11014 setQueryData(e, t, n) { 11015 const r = this.defaultQueryOptions({ 11016 queryKey: e 11017 }) 11018 , i = I(this, Nt).get(r.queryHash) 11019 , o = i == null ? void 0 : i.state.data 11020 , a = qG(t, o); 11021 if (a !== void 0) 11022 return I(this, Nt).build(this, r).setData(a, { 11023 ...n, 11024 manual: !0 11025 }) 11026 } 11027 setQueriesData(e, t, n) { 11028 return Jt.batch( () => I(this, Nt).findAll(e).map( ({queryKey: r}) => [r, this.setQueryData(r, t, n)])) 11029 } 11030 getQueryState(e) { 11031 var n; 11032 const t = this.defaultQueryOptions({ 11033 queryKey: e 11034 }); 11035 return (n = I(this, Nt).get(t.queryHash)) == null ? void 0 : n.state 11036 } 11037 removeQueries(e) { 11038 const t = I(this, Nt); 11039 Jt.batch( () => { 11040 t.findAll(e).forEach(n => { 11041 t.remove(n) 11042 } 11043 ) 11044 } 11045 ) 11046 } 11047 resetQueries(e, t) { 11048 const n = I(this, Nt) 11049 , r = { 11050 type: "active", 11051 ...e 11052 }; 11053 return Jt.batch( () => (n.findAll(e).forEach(i => { 11054 i.reset() 11055 } 11056 ), 11057 this.refetchQueries(r, t))) 11058 } 11059 cancelQueries(e={}, t={}) { 11060 const n = { 11061 revert: !0, 11062 ...t 11063 } 11064 , r = Jt.batch( () => I(this, Nt).findAll(e).map(i => i.cancel(n))); 11065 return Promise.all(r).then(Ar).catch(Ar) 11066 } 11067 invalidateQueries(e={}, t={}) { 11068 return Jt.batch( () => { 11069 if (I(this, Nt).findAll(e).forEach(r => { 11070 r.invalidate() 11071 } 11072 ), 11073 e.refetchType === "none") 11074 return Promise.resolve(); 11075 const n = { 11076 ...e, 11077 type: e.refetchType ?? e.type ?? "active" 11078 }; 11079 return this.refetchQueries(n, t) 11080 } 11081 ) 11082 } 11083 refetchQueries(e={}, t) { 11084 const n = { 11085 ...t, 11086 cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0 11087 } 11088 , r = Jt.batch( () => I(this, Nt).findAll(e).filter(i => !i.isDisabled()).map(i => { 11089 let o = i.fetch(void 0, n); 11090 return n.throwOnError || (o = o.catch(Ar)), 11091 i.state.fetchStatus === "paused" ? Promise.resolve() : o 11092 } 11093 )); 11094 return Promise.all(r).then(Ar) 11095 } 11096 fetchQuery(e) { 11097 const t = this.defaultQueryOptions(e); 11098 t.retry === void 0 && (t.retry = !1); 11099 const n = I(this, Nt).build(this, t); 11100 return n.isStaleByTime(ql(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data) 11101 } 11102 prefetchQuery(e) { 11103 return this.fetchQuery(e).then(Ar).catch(Ar) 11104 } 11105 fetchInfiniteQuery(e) { 11106 return e.behavior = XO(e.pages), 11107 this.fetchQuery(e) 11108 } 11109 prefetchInfiniteQuery(e) { 11110 return this.fetchInfiniteQuery(e).then(Ar).catch(Ar) 11111 } 11112 ensureInfiniteQueryData(e) { 11113 return e.behavior = XO(e.pages), 11114 this.ensureQueryData(e) 11115 } 11116 resumePausedMutations() { 11117 return Km.isOnline() ? I(this, ta).resumePausedMutations() : Promise.resolve() 11118 } 11119 getQueryCache() { 11120 return I(this, Nt) 11121 } 11122 getMutationCache() { 11123 return I(this, ta) 11124 } 11125 getDefaultOptions() { 11126 return I(this, na) 11127 } 11128 setDefaultOptions(e) { 11129 ce(this, na, e) 11130 } 11131 setQueryDefaults(e, t) { 11132 I(this, cc).set(Ls(e), { 11133 queryKey: e, 11134 defaultOptions: t 11135 }) 11136 } 11137 getQueryDefaults(e) { 11138 const t = [...I(this, cc).values()]; 11139 let n = {}; 11140 return t.forEach(r => { 11141 of(e, r.queryKey) && (n = { 11142 ...n, 11143 ...r.defaultOptions 11144 }) 11145 } 11146 ), 11147 n 11148 } 11149 setMutationDefaults(e, t) { 11150 I(this, uc).set(Ls(e), { 11151 mutationKey: e, 11152 defaultOptions: t 11153 }) 11154 } 11155 getMutationDefaults(e) { 11156 const t = [...I(this, uc).values()]; 11157 let n = {}; 11158 return t.forEach(r => { 11159 of(e, r.mutationKey) && (n = { 11160 ...n, 11161 ...r.defaultOptions 11162 }) 11163 } 11164 ), 11165 n 11166 } 11167 defaultQueryOptions(e) { 11168 if (e._defaulted) 11169 return e; 11170 const t = { 11171 ...I(this, na).queries, 11172 ...this.getQueryDefaults(e.queryKey), 11173 ...e, 11174 _defaulted: !0 11175 }; 11176 return t.queryHash || (t.queryHash = EP(t.queryKey, t)), 11177 t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), 11178 t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), 11179 !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), 11180 t.enabled !== !0 && t.queryFn === jP && (t.enabled = !1), 11181 t 11182 } 11183 defaultMutationOptions(e) { 11184 return e != null && e._defaulted ? e : { 11185 ...I(this, na).mutations, 11186 ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey), 11187 ...e, 11188 _defaulted: !0 11189 } 11190 } 11191 clear() { 11192 I(this, Nt).clear(), 11193 I(this, ta).clear() 11194 } 11195} 11196, 11197Nt = new WeakMap, 11198ta = new WeakMap, 11199na = new WeakMap, 11200cc = new WeakMap, 11201uc = new WeakMap, 11202ra = new WeakMap, 11203dc = new WeakMap, 11204fc = new WeakMap, 11205P2), Hn, ze, vh, kn, ws, hc, ia, Oi, xh, pc, mc, Ss, Ps, oa, gc, tt, id, tw, nw, rw, iw, ow, aw, sw, zF, _2, sY = (_2 = class extends iu { 11206 constructor(t, n) { 11207 super(); 11208 we(this, tt); 11209 we(this, Hn); 11210 we(this, ze); 11211 we(this, vh); 11212 we(this, kn); 11213 we(this, ws); 11214 we(this, hc); 11215 we(this, ia); 11216 we(this, Oi); 11217 we(this, xh); 11218 we(this, pc); 11219 we(this, mc); 11220 we(this, Ss); 11221 we(this, Ps); 11222 we(this, oa); 11223 we(this, gc, new Set); 11224 this.options = n, 11225 ce(this, Hn, t), 11226 ce(this, Oi, null), 11227 ce(this, ia, ew()), 11228 this.options.experimental_prefetchInRender || I(this, ia).reject(new Error("experimental_prefetchInRender feature flag is not enabled")), 11229 this.bindMethods(), 11230 this.setOptions(n) 11231 } 11232 bindMethods() { 11233 this.refetch = this.refetch.bind(this) 11234 } 11235 onSubscribe() { 11236 this.listeners.size === 1 && (I(this, ze).addObserver(this), 11237 ZO(I(this, ze), this.options) ? $e(this, tt, id).call(this) : this.updateResult(), 11238 $e(this, tt, iw).call(this)) 11239 } 11240 onUnsubscribe() { 11241 this.hasListeners() || this.destroy() 11242 } 11243 shouldFetchOnReconnect() { 11244 return lw(I(this, ze), this.options, this.options.refetchOnReconnect) 11245 } 11246 shouldFetchOnWindowFocus() { 11247 return lw(I(this, ze), this.options, this.options.refetchOnWindowFocus) 11248 } 11249 destroy() { 11250 this.listeners = new Set, 11251 $e(this, tt, ow).call(this), 11252 $e(this, tt, aw).call(this), 11253 I(this, ze).removeObserver(this) 11254 } 11255 setOptions(t, n) { 11256 const r = this.options 11257 , i = I(this, ze); 11258 if (this.options = I(this, Hn).defaultQueryOptions(t), 11259 this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof ti(this.options.enabled, I(this, ze)) != "boolean") 11260 throw new Error("Expected enabled to be a boolean or a callback that returns a boolean"); 11261 $e(this, tt, sw).call(this), 11262 I(this, ze).setOptions(this.options), 11263 r._defaulted && !qm(this.options, r) && I(this, Hn).getQueryCache().notify({ 11264 type: "observerOptionsUpdated", 11265 query: I(this, ze), 11266 observer: this 11267 }); 11268 const o = this.hasListeners(); 11269 o && JO(I(this, ze), i, this.options, r) && $e(this, tt, id).call(this), 11270 this.updateResult(n), 11271 o && (I(this, ze) !== i || ti(this.options.enabled, I(this, ze)) !== ti(r.enabled, I(this, ze)) || ql(this.options.staleTime, I(this, ze)) !== ql(r.staleTime, I(this, ze))) && $e(this, tt, tw).call(this); 11272 const a = $e(this, tt, nw).call(this); 11273 o && (I(this, ze) !== i || ti(this.options.enabled, I(this, ze)) !== ti(r.enabled, I(this, ze)) || a !== I(this, oa)) && $e(this, tt, rw).call(this, a) 11274 } 11275 getOptimisticResult(t) { 11276 const n = I(this, Hn).getQueryCache().build(I(this, Hn), t) 11277 , r = this.createResult(n, t); 11278 return cY(this, r) && (ce(this, kn, r), 11279 ce(this, hc, this.options), 11280 ce(this, ws, I(this, ze).state)), 11281 r 11282 } 11283 getCurrentResult() { 11284 return I(this, kn) 11285 } 11286 trackResult(t, n) { 11287 const r = {}; 11288 return Object.keys(t).forEach(i => { 11289 Object.defineProperty(r, i, { 11290 configurable: !1, 11291 enumerable: !0, 11292 get: () => (this.trackProp(i), 11293 n == null || n(i), 11294 t[i]) 11295 }) 11296 } 11297 ), 11298 r 11299 } 11300 trackProp(t) { 11301 I(this, gc).add(t) 11302 } 11303 getCurrentQuery() { 11304 return I(this, ze) 11305 } 11306 refetch({...t}={}) { 11307 return this.fetch({ 11308 ...t 11309 }) 11310 } 11311 fetchOptimistic(t) { 11312 const n = I(this, Hn).defaultQueryOptions(t) 11313 , r = I(this, Hn).getQueryCache().build(I(this, Hn), n); 11314 return r.fetch().then( () => this.createResult(r, n)) 11315 } 11316 fetch(t) { 11317 return $e(this, tt, id).call(this, { 11318 ...t, 11319 cancelRefetch: t.cancelRefetch ?? !0 11320 }).then( () => (this.updateResult(), 11321 I(this, kn))) 11322 } 11323 createResult(t, n) { 11324 var C; 11325 const r = I(this, ze) 11326 , i = this.options 11327 , o = I(this, kn) 11328 , a = I(this, ws) 11329 , s = I(this, hc) 11330 , c = t !== r ? t.state : I(this, vh) 11331 , {state: u} = t; 11332 let d = { 11333 ...u 11334 }, f = !1, p; 11335 if (n._optimisticResults) { 11336 const O = this.hasListeners() 11337 , A = !O && ZO(t, n) 11338 , E = O && JO(t, r, n, i); 11339 (A || E) && (d = { 11340 ...d, 11341 ...VF(u.data, t.options) 11342 }), 11343 n._optimisticResults === "isRestoring" && (d.fetchStatus = "idle") 11344 } 11345 let {error: g, errorUpdatedAt: m, status: x} = d; 11346 if (n.select && d.data !== void 0) 11347 if (o && d.data === (a == null ? void 0 : a.data) && n.select === I(this, xh)) 11348 p = I(this, pc); 11349 else 11350 try { 11351 ce(this, xh, n.select), 11352 p = n.select(d.data), 11353 p = Jb(o == null ? void 0 : o.data, p, n), 11354 ce(this, pc, p), 11355 ce(this, Oi, null) 11356 } catch (O) { 11357 ce(this, Oi, O) 11358 } 11359 else 11360 p = d.data; 11361 if (n.placeholderData !== void 0 && p === void 0 && x === "pending") { 11362 let O; 11363 if (o != null && o.isPlaceholderData && n.placeholderData === (s == null ? void 0 : s.placeholderData)) 11364 O = o.data; 11365 else if (O = typeof n.placeholderData == "function" ? n.placeholderData((C = I(this, mc)) == null ? void 0 : C.state.data, I(this, mc)) : n.placeholderData, 11366 n.select && O !== void 0) 11367 try { 11368 O = n.select(O), 11369 ce(this, Oi, null) 11370 } catch (A) { 11371 ce(this, Oi, A) 11372 } 11373 O !== void 0 && (x = "success", 11374 p = Jb(o == null ? void 0 : o.data, O, n), 11375 f = !0) 11376 } 11377 I(this, Oi) && (g = I(this, Oi), 11378 p = I(this, pc), 11379 m = Date.now(), 11380 x = "error"); 11381 const v = d.fetchStatus === "fetching" 11382 , y = x === "pending" 11383 , w = x === "error" 11384 , P = y && v 11385 , S = p !== void 0 11386 , T = { 11387 status: x, 11388 fetchStatus: d.fetchStatus, 11389 isPending: y, 11390 isSuccess: x === "success", 11391 isError: w, 11392 isInitialLoading: P, 11393 isLoading: P, 11394 data: p, 11395 dataUpdatedAt: d.dataUpdatedAt, 11396 error: g, 11397 errorUpdatedAt: m, 11398 failureCount: d.fetchFailureCount, 11399 failureReason: d.fetchFailureReason, 11400 errorUpdateCount: d.errorUpdateCount, 11401 isFetched: d.dataUpdateCount > 0 || d.errorUpdateCount > 0, 11402 isFetchedAfterMount: d.dataUpdateCount > c.dataUpdateCount || d.errorUpdateCount > c.errorUpdateCount, 11403 isFetching: v, 11404 isRefetching: v && !y, 11405 isLoadingError: w && !S, 11406 isPaused: d.fetchStatus === "paused", 11407 isPlaceholderData: f, 11408 isRefetchError: w && S, 11409 isStale: MP(t, n), 11410 refetch: this.refetch, 11411 promise: I(this, ia) 11412 }; 11413 if (this.options.experimental_prefetchInRender) { 11414 const O = j => { 11415 T.status === "error" ? j.reject(T.error) : T.data !== void 0 && j.resolve(T.data) 11416 } 11417 , A = () => { 11418 const j = ce(this, ia, T.promise = ew()); 11419 O(j) 11420 } 11421 , E = I(this, ia); 11422 switch (E.status) { 11423 case "pending": 11424 t.queryHash === r.queryHash && O(E); 11425 break; 11426 case "fulfilled": 11427 (T.status === "error" || T.data !== E.value) && A(); 11428 break; 11429 case "rejected": 11430 (T.status !== "error" || T.error !== E.reason) && A(); 11431 break 11432 } 11433 } 11434 return T 11435 } 11436 updateResult(t) { 11437 const n = I(this, kn) 11438 , r = this.createResult(I(this, ze), this.options); 11439 if (ce(this, ws, I(this, ze).state), 11440 ce(this, hc, this.options), 11441 I(this, ws).data !== void 0 && ce(this, mc, I(this, ze)), 11442 qm(r, n)) 11443 return; 11444 ce(this, kn, r); 11445 const i = {} 11446 , o = () => { 11447 if (!n) 11448 return !0; 11449 const {notifyOnChangeProps: a} = this.options 11450 , s = typeof a == "function" ? a() : a; 11451 if (s === "all" || !s && !I(this, gc).size) 11452 return !0; 11453 const l = new Set(s ?? I(this, gc)); 11454 return this.options.throwOnError && l.add("error"), 11455 Object.keys(I(this, kn)).some(c => { 11456 const u = c; 11457 return I(this, kn)[u] !== n[u] && l.has(u) 11458 } 11459 ) 11460 } 11461 ; 11462 (t == null ? void 0 : t.listeners) !== !1 && o() && (i.listeners = !0), 11463 $e(this, tt, zF).call(this, { 11464 ...i, 11465 ...t 11466 }) 11467 } 11468 onQueryUpdate() { 11469 this.updateResult(), 11470 this.hasListeners() && $e(this, tt, iw).call(this) 11471 } 11472} 11473, 11474Hn = new WeakMap, 11475ze = new WeakMap, 11476vh = new WeakMap, 11477kn = new WeakMap, 11478ws = new WeakMap, 11479hc = new WeakMap, 11480ia = new WeakMap, 11481Oi = new WeakMap, 11482xh = new WeakMap, 11483pc = new WeakMap, 11484mc = new WeakMap, 11485Ss = new WeakMap, 11486Ps = new WeakMap, 11487oa = new WeakMap, 11488gc = new WeakMap, 11489tt = new WeakSet, 11490id = function(t) { 11491 $e(this, tt, sw).call(this); 11492 let n = I(this, ze).fetch(this.options, t); 11493 return t != null && t.throwOnError || (n = n.catch(Ar)), 11494 n 11495} 11496, 11497tw = function() { 11498 $e(this, tt, ow).call(this); 11499 const t = ql(this.options.staleTime, I(this, ze)); 11500 if ($s || I(this, kn).isStale || !Qb(t)) 11501 return; 11502 const r = RF(I(this, kn).dataUpdatedAt, t) + 1; 11503 ce(this, Ss, setTimeout( () => { 11504 I(this, kn).isStale || this.updateResult() 11505 } 11506 , r)) 11507} 11508, 11509nw = function() { 11510 return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(I(this, ze)) : this.options.refetchInterval) ?? !1 11511} 11512, 11513rw = function(t) { 11514 $e(this, tt, aw).call(this), 11515 ce(this, oa, t), 11516 !($s || ti(this.options.enabled, I(this, ze)) === !1 || !Qb(I(this, oa)) || I(this, oa) === 0) && ce(this, Ps, setInterval( () => { 11517 (this.options.refetchIntervalInBackground || NP.isFocused()) && $e(this, tt, id).call(this) 11518 } 11519 , I(this, oa))) 11520} 11521, 11522iw = function() { 11523 $e(this, tt, tw).call(this), 11524 $e(this, tt, rw).call(this, $e(this, tt, nw).call(this)) 11525} 11526, 11527ow = function() { 11528 I(this, Ss) && (clearTimeout(I(this, Ss)), 11529 ce(this, Ss, void 0)) 11530} 11531, 11532aw = function() { 11533 I(this, Ps) && (clearInterval(I(this, Ps)), 11534 ce(this, Ps, void 0)) 11535} 11536, 11537sw = function() { 11538 const t = I(this, Hn).getQueryCache().build(I(this, Hn), this.options); 11539 if (t === I(this, ze)) 11540 return; 11541 const n = I(this, ze); 11542 ce(this, ze, t), 11543 ce(this, vh, t.state), 11544 this.hasListeners() && (n == null || n.removeObserver(this), 11545 t.addObserver(this)) 11546} 11547, 11548zF = function(t) { 11549 Jt.batch( () => { 11550 t.listeners && this.listeners.forEach(n => { 11551 n(I(this, kn)) 11552 } 11553 ), 11554 I(this, Hn).getQueryCache().notify({ 11555 query: I(this, ze), 11556 type: "observerResultsUpdated" 11557 }) 11558 } 11559 ) 11560} 11561, 11562_2); 11563function lY(e, t) { 11564 return ti(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1) 11565} 11566function ZO(e, t) { 11567 return lY(e, t) || e.state.data !== void 0 && lw(e, t, t.refetchOnMount) 11568} 11569function lw(e, t, n) { 11570 if (ti(t.enabled, e) !== !1) { 11571 const r = typeof n == "function" ? n(e) : n; 11572 return r === "always" || r !== !1 && MP(e, t) 11573 } 11574 return !1 11575} 11576function JO(e, t, n, r) { 11577 return (e !== t || ti(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && MP(e, n) 11578} 11579function MP(e, t) { 11580 return ti(t.enabled, e) !== !1 && e.isStaleByTime(ql(t.staleTime, e)) 11581} 11582function cY(e, t) { 11583 return !qm(e.getCurrentResult(), t) 11584} 11585var aa, sa, qn, ao, xo, sm, cw, T2, uY = (T2 = class extends iu { 11586 constructor(n, r) { 11587 super(); 11588 we(this, xo); 11589 we(this, aa); 11590 we(this, sa); 11591 we(this, qn); 11592 we(this, ao); 11593 ce(this, aa, n), 11594 this.setOptions(r), 11595 this.bindMethods(), 11596 $e(this, xo, sm).call(this) 11597 } 11598 bindMethods() { 11599 this.mutate = this.mutate.bind(this), 11600 this.reset = this.reset.bind(this) 11601 } 11602 setOptions(n) { 11603 var i; 11604 const r = this.options; 11605 this.options = I(this, aa).defaultMutationOptions(n), 11606 qm(this.options, r) || I(this, aa).getMutationCache().notify({ 11607 type: "observerOptionsUpdated", 11608 mutation: I(this, qn), 11609 observer: this 11610 }), 11611 r != null && r.mutationKey && this.options.mutationKey && Ls(r.mutationKey) !== Ls(this.options.mutationKey) ? this.reset() : ((i = I(this, qn)) == null ? void 0 : i.state.status) === "pending" && I(this, qn).setOptions(this.options) 11612 } 11613 onUnsubscribe() { 11614 var n; 11615 this.hasListeners() || (n = I(this, qn)) == null || n.removeObserver(this) 11616 } 11617 onMutationUpdate(n) { 11618 $e(this, xo, sm).call(this), 11619 $e(this, xo, cw).call(this, n) 11620 } 11621 getCurrentResult() { 11622 return I(this, sa) 11623 } 11624 reset() { 11625 var n; 11626 (n = I(this, qn)) == null || n.removeObserver(this), 11627 ce(this, qn, void 0), 11628 $e(this, xo, sm).call(this), 11629 $e(this, xo, cw).call(this) 11630 } 11631 mutate(n, r) { 11632 var i; 11633 return ce(this, ao, r), 11634 (i = I(this, qn)) == null || i.removeObserver(this), 11635 ce(this, qn, I(this, aa).getMutationCache().build(I(this, aa), this.options)), 11636 I(this, qn).addObserver(this), 11637 I(this, qn).execute(n) 11638 } 11639} 11640, 11641aa = new WeakMap, 11642sa = new WeakMap, 11643qn = new WeakMap, 11644ao = new WeakMap, 11645xo = new WeakSet, 11646sm = function() { 11647 var r; 11648 const n = ((r = I(this, qn)) == null ? void 0 : r.state) ?? UF(); 11649 ce(this, sa, { 11650 ...n, 11651 isPending: n.status === "pending", 11652 isSuccess: n.status === "success", 11653 isError: n.status === "error", 11654 isIdle: n.status === "idle", 11655 mutate: this.mutate, 11656 reset: this.reset 11657 }) 11658} 11659, 11660cw = function(n) { 11661 Jt.batch( () => { 11662 var r, i, o, a, s, l, c, u; 11663 if (I(this, ao) && this.hasListeners()) { 11664 const d = I(this, sa).variables 11665 , f = I(this, sa).context; 11666 (n == null ? void 0 : n.type) === "success" ? ((i = (r = I(this, ao)).onSuccess) == null || i.call(r, n.data, d, f), 11667 (a = (o = I(this, ao)).onSettled) == null || a.call(o, n.data, null, d, f)) : (n == null ? void 0 : n.type) === "error" && ((l = (s = I(this, ao)).onError) == null || l.call(s, n.error, d, f), 11668 (u = (c = I(this, ao)).onSettled) == null || u.call(c, void 0, n.error, d, f)) 11669 }
11670 this.listeners.forEach(d => { 11671 d(I(this, sa)) 11672 } 11673 ) 11674 } 11675 ) 11676} 11677, 11678T2), WF = b.createContext(void 0), HF = e => { 11679 const t = b.useContext(WF); 11680 if (!t) 11681 throw new Error("No QueryClient set, use QueryClientProvider to set one"); 11682 return t 11683} 11684, dY = ({client: e, children: t}) => (b.useEffect( () => (e.mount(), 11685() => { 11686 e.unmount() 11687} 11688), [e]), 11689h.jsx(WF.Provider, { 11690 value: e, 11691 children: t 11692})), qF = b.createContext(!1), fY = () => b.useContext(qF); 11693qF.Provider; 11694function hY() { 11695 let e = !1; 11696 return { 11697 clearReset: () => { 11698 e = !1 11699 } 11700 , 11701 reset: () => { 11702 e = !0 11703 } 11704 , 11705 isReset: () => e 11706 } 11707} 11708var pY = b.createContext(hY()) 11709 , mY = () => b.useContext(pY); 11710function KF(e, t) { 11711 return typeof e == "function" ? e(...t) : !!e 11712} 11713function uw() {} 11714var gY = (e, t) => { 11715 (e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1)) 11716} 11717 , yY = e => { 11718 b.useEffect( () => { 11719 e.clearReset() 11720 } 11721 , [e]) 11722} 11723 , vY = ({result: e, errorResetBoundary: t, throwOnError: n, query: r}) => e.isError && !t.isReset() && !e.isFetching && r && KF(n, [e.error, r]) 11724 , xY = e => { 11725 e.suspense && (e.staleTime === void 0 && (e.staleTime = 1e3), 11726 typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, 1e3))) 11727} 11728 , bY = (e, t) => e.isLoading && e.isFetching && !t 11729 , wY = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending 11730 , eA = (e, t, n) => t.fetchOptimistic(e).catch( () => { 11731 n.clearReset() 11732} 11733); 11734function SY(e, t, n) { 11735 var u, d, f, p, g; 11736 const r = HF() 11737 , i = fY() 11738 , o = mY() 11739 , a = r.defaultQueryOptions(e); 11740 (d = (u = r.getDefaultOptions().queries) == null ? void 0 : u._experimental_beforeQuery) == null || d.call(u, a), 11741 a._optimisticResults = i ? "isRestoring" : "optimistic", 11742 xY(a), 11743 gY(a, o), 11744 yY(o); 11745 const s = !r.getQueryCache().get(a.queryHash) 11746 , [l] = b.useState( () => new t(r,a)) 11747 , c = l.getOptimisticResult(a); 11748 if (b.useSyncExternalStore(b.useCallback(m => { 11749 const x = i ? uw : l.subscribe(Jt.batchCalls(m)); 11750 return l.updateResult(), 11751 x 11752 } 11753 , [l, i]), () => l.getCurrentResult(), () => l.getCurrentResult()), 11754 b.useEffect( () => { 11755 l.setOptions(a, { 11756 listeners: !1 11757 }) 11758 } 11759 , [a, l]), 11760 wY(a, c)) 11761 throw eA(a, l, o); 11762 if (vY({ 11763 result: c, 11764 errorResetBoundary: o, 11765 throwOnError: a.throwOnError, 11766 query: r.getQueryCache().get(a.queryHash) 11767 })) 11768 throw c.error; 11769 if ((p = (f = r.getDefaultOptions().queries) == null ? void 0 : f._experimental_afterQuery) == null || p.call(f, a, c), 11770 a.experimental_prefetchInRender && !$s && bY(c, i)) { 11771 const m = s ? eA(a, l, o) : (g = r.getQueryCache().get(a.queryHash)) == null ? void 0 : g.promise; 11772 m == null || m.catch(uw).finally( () => { 11773 l.updateResult() 11774 } 11775 ) 11776 } 11777 return a.notifyOnChangeProps ? c : l.trackResult(c) 11778} 11779function ni(e, t) { 11780 return SY(e, sY) 11781} 11782function ci(e, t) { 11783 const n = HF() 11784 , [r] = b.useState( () => new uY(n,e)); 11785 b.useEffect( () => { 11786 r.setOptions(e) 11787 } 11788 , [r, e]); 11789 const i = b.useSyncExternalStore(b.useCallback(a => r.subscribe(Jt.batchCalls(a)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()) 11790 , o = b.useCallback( (a, s) => { 11791 r.mutate(a, s).catch(uw) 11792 } 11793 , [r]); 11794 if (i.error && KF(r.options.throwOnError, [i.error])) 11795 throw i.error; 11796 return { 11797 ...i, 11798 mutate: o, 11799 mutateAsync: i.mutate 11800 } 11801} 11802async function GF(e) { 11803 if (!e.ok) { 11804 const t = await e.text() || e.statusText; 11805 throw new Error(`${e.status}: ${t}`) 11806 } 11807} 11808async function Di(e, t, n) { 11809 const r = await fetch(t, { 11810 method: e, 11811 headers: n ? { 11812 "Content-Type": "application/json" 11813 } : {}, 11814 body: n ? JSON.stringify(n) : void 0, 11815 credentials: "include" 11816 }); 11817 return await GF(r), 11818 r 11819} 11820const PY = ({on401: e}) => async ({queryKey: t}) => { 11821 const n = await fetch(t[0], { 11822 credentials: "include" 11823 }); 11824 return e === "returnNull" && n.status === 401 ? null : (await GF(n), 11825 await n.json()) 11826} 11827 , hr = new aY({ 11828 defaultOptions: { 11829 queries: { 11830 queryFn: PY({ 11831 on401: "throw" 11832 }), 11833 refetchInterval: !1, 11834 refetchOnWindowFocus: !1, 11835 staleTime: 1 / 0, 11836 retry: !1 11837 }, 11838 mutations: { 11839 retry: !1 11840 } 11841 } 11842}) 11843 , _Y = 1 11844 , TY = 1e6; 11845let Y0 = 0; 11846function CY() { 11847 return Y0 = (Y0 + 1) % Number.MAX_SAFE_INTEGER, 11848 Y0.toString() 11849} 11850const X0 = new Map 11851 , tA = e => { 11852 if (X0.has(e)) 11853 return; 11854 const t = setTimeout( () => { 11855 X0.delete(e), 11856 Ed({ 11857 type: "REMOVE_TOAST", 11858 toastId: e 11859 }) 11860 } 11861 , TY); 11862 X0.set(e, t) 11863} 11864 , OY = (e, t) => { 11865 switch (t.type) { 11866 case "ADD_TOAST": 11867 return { 11868 ...e, 11869 toasts: [t.toast, ...e.toasts].slice(0, _Y) 11870 }; 11871 case "UPDATE_TOAST": 11872 return { 11873 ...e, 11874 toasts: e.toasts.map(n => n.id === t.toast.id ? { 11875 ...n, 11876 ...t.toast 11877 } : n) 11878 }; 11879 case "DISMISS_TOAST": 11880 { 11881 const {toastId: n} = t;
11882 return n ? tA(n) : e.toasts.forEach(r => { 11883 tA(r.id) 11884 } 11885 ), 11886 { 11887 ...e, 11888 toasts: e.toasts.map(r => r.id === n || n === void 0 ? { 11889 ...r, 11890 open: !1 11891 } : r) 11892 } 11893 } 11894 case "REMOVE_TOAST": 11895 return t.toastId === void 0 ? { 11896 ...e, 11897 toasts: [] 11898 } : { 11899 ...e, 11900 toasts: e.toasts.filter(n => n.id !== t.toastId) 11901 } 11902 } 11903} 11904 , lm = []; 11905let cm = { 11906 toasts: [] 11907}; 11908function Ed(e) { 11909 cm = OY(cm, e), 11910 lm.forEach(t => { 11911 t(cm) 11912 } 11913 ) 11914} 11915function AY({...e}) { 11916 const t = CY() 11917 , n = i => Ed({ 11918 type: "UPDATE_TOAST", 11919 toast: { 11920 ...i, 11921 id: t 11922 } 11923 }) 11924 , r = () => Ed({ 11925 type: "DISMISS_TOAST", 11926 toastId: t 11927 }); 11928 return Ed({ 11929 type: "ADD_TOAST", 11930 toast: { 11931 ...e, 11932 id: t, 11933 open: !0, 11934 onOpenChange: i => { 11935 i || r() 11936 } 11937 } 11938 }), 11939 { 11940 id: t, 11941 dismiss: r, 11942 update: n 11943 } 11944} 11945function Fa() { 11946 const [e,t] = b.useState(cm); 11947 return b.useEffect( () => (lm.push(t), 11948 () => { 11949 const n = lm.indexOf(t); 11950 n > -1 && lm.splice(n, 1) 11951 } 11952 ), [e]), 11953 { 11954 ...e, 11955 toast: AY, 11956 dismiss: n => Ed({ 11957 type: "DISMISS_TOAST", 11958 toastId: n 11959 }) 11960 } 11961} 11962function cr(e, t, {checkForDefaultPrevented: n=!0}={}) { 11963 return function(i) { 11964 if (e == null || e(i), 11965 n === !1 || !i.defaultPrevented) 11966 return t == null ? void 0 : t(i) 11967 } 11968} 11969function nA(e, t) { 11970 if (typeof e == "function") 11971 return e(t); 11972 e != null && (e.current = t) 11973} 11974function EY(...e) { 11975 return t => { 11976 let n = !1; 11977 const r = e.map(i => { 11978 const o = nA(i, t); 11979 return !n && typeof o == "function" && (n = !0), 11980 o 11981 } 11982 ); 11983 if (n) 11984 return () => { 11985 for (let i = 0; i < r.length; i++) { 11986 const o = r[i]; 11987 typeof o == "function" ? o() : nA(e[i], null) 11988 } 11989 } 11990 } 11991} 11992function Fs(...e) { 11993 return b.useCallback(EY(...e), e) 11994} 11995function jY(e, t) { 11996 const n = b.createContext(t) 11997 , r = o => { 11998 const {children: a, ...s} = o 11999 , l = b.useMemo( () => s, Object.values(s)); 12000 return h.jsx(n.Provider, { 12001 value: l, 12002 children: a 12003 }) 12004 } 12005 ; 12006 r.displayName = e + "Provider"; 12007 function i(o) { 12008 const a = b.useContext(n); 12009 if (a) 12010 return a; 12011 if (t !== void 0) 12012 return t; 12013 throw new Error(`\`${o}\` must be used within \`${e}\``) 12014 } 12015 return [r, i] 12016} 12017function zr(e, t=[]) { 12018 let n = []; 12019 function r(o, a) { 12020 const s = b.createContext(a) 12021 , l = n.length; 12022 n = [...n, a]; 12023 const c = d => { 12024 var v; 12025 const {scope: f, children: p, ...g} = d 12026 , m = ((v = f == null ? void 0 : f[e]) == null ? void 0 : v[l]) || s 12027 , x = b.useMemo( () => g, Object.values(g)); 12028 return h.jsx(m.Provider, { 12029 value: x, 12030 children: p 12031 }) 12032 } 12033 ; 12034 c.displayName = o + "Provider"; 12035 function u(d, f) { 12036 var m; 12037 const p = ((m = f == null ? void 0 : f[e]) == null ? void 0 : m[l]) || s 12038 , g = b.useContext(p); 12039 if (g) 12040 return g; 12041 if (a !== void 0) 12042 return a; 12043 throw new Error(`\`${d}\` must be used within \`${o}\``) 12044 } 12045 return [c, u] 12046 } 12047 const i = () => { 12048 const o = n.map(a => b.createContext(a)); 12049 return function(s) { 12050 const l = (s == null ? void 0 : s[e]) || o; 12051 return b.useMemo( () => ({ 12052 [`__scope${e}`]: { 12053 ...s, 12054 [e]: l 12055 } 12056 }), [s, l]) 12057 } 12058 } 12059 ; 12060 return i.scopeName = e, 12061 [r, NY(i, ...t)] 12062} 12063function NY(...e) { 12064 const t = e[0]; 12065 if (e.length === 1) 12066 return t; 12067 const n = () => { 12068 const r = e.map(i => ({ 12069 useScope: i(), 12070 scopeName: i.scopeName 12071 })); 12072 return function(o) { 12073 const a = r.reduce( (s, {useScope: l, scopeName: c}) => { 12074 const d = l(o)[`__scope${c}`]; 12075 return { 12076 ...s, 12077 ...d 12078 } 12079 } 12080 , {}); 12081 return b.useMemo( () => ({ 12082 [`__scope${t.scopeName}`]: a 12083 }), [a]) 12084 } 12085 } 12086 ; 12087 return n.scopeName = t.scopeName, 12088 n 12089} 12090function rA(e, t) { 12091 if (typeof e == "function") 12092 return e(t); 12093 e != null && (e.current = t) 12094} 12095function MY(...e) { 12096 return t => { 12097 let n = !1; 12098 const r = e.map(i => { 12099 const o = rA(i, t); 12100 return !n && typeof o == "function" && (n = !0), 12101 o 12102 } 12103 ); 12104 if (n) 12105 return () => { 12106 for (let i = 0; i < r.length; i++) { 12107 const o = r[i]; 12108 typeof o == "function" ? o() : rA(e[i], null) 12109 } 12110 } 12111 } 12112} 12113var Bs = b.forwardRef( (e, t) => { 12114 const {children: n, ...r} = e 12115 , i = b.Children.toArray(n) 12116 , o = i.find(RY); 12117 if (o) { 12118 const a = o.props.children 12119 , s = i.map(l => l === o ? b.Children.count(a) > 1 ? b.Children.only(null) : b.isValidElement(a) ? a.props.children : null : l); 12120 return h.jsx(dw, { 12121 ...r, 12122 ref: t, 12123 children: b.isValidElement(a) ? b.cloneElement(a, void 0, s) : null 12124 }) 12125 } 12126 return h.jsx(dw, { 12127 ...r, 12128 ref: t, 12129 children: n 12130 }) 12131} 12132); 12133Bs.displayName = "Slot"; 12134var dw = b.forwardRef( (e, t) => { 12135 const {children: n, ...r} = e; 12136 if (b.isValidElement(n)) { 12137 const i = IY(n) 12138 , o = DY(r, n.props); 12139 return n.type !== b.Fragment && (o.ref = t ? MY(t, i) : i), 12140 b.cloneElement(n, o) 12141 } 12142 return b.Children.count(n) > 1 ? b.Children.only(null) : null 12143} 12144); 12145dw.displayName = "SlotClone"; 12146var kY = ({children: e}) => h.jsx(h.Fragment, { 12147 children: e 12148}); 12149function RY(e) { 12150 return b.isValidElement(e) && e.type === kY 12151} 12152function DY(e, t) { 12153 const n = { 12154 ...t 12155 }; 12156 for (const r in t) { 12157 const i = e[r] 12158 , o = t[r]; 12159 /^on[A-Z]/.test(r) ? i && o ? n[r] = (...s) => { 12160 o(...s), 12161 i(...s) 12162 } 12163 : i && (n[r] = i) : r === "style" ? n[r] = { 12164 ...i, 12165 ...o 12166 }
vendor: 9,809 bytes, lines 12166-12508
12166 : r === "className" && (n[r] = [i, o].filter(Boolean).join(" ")) 12167 } 12168 return { 12169 ...e, 12170 ...n 12171 } 12172} 12173function IY(e) { 12174 var r, i; 12175 let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get 12176 , n = t && "isReactWarning"in t && t.isReactWarning; 12177 return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, 12178 n = t && "isReactWarning"in t && t.isReactWarning, 12179 n ? e.props.ref : e.props.ref || e.ref) 12180} 12181function $Y(e) { 12182 const t = e + "CollectionProvider" 12183 , [n,r] = zr(t) 12184 , [i,o] = n(t, { 12185 collectionRef: { 12186 current: null 12187 }, 12188 itemMap: new Map 12189 }) 12190 , a = p => { 12191 const {scope: g, children: m} = p 12192 , x = k.useRef(null) 12193 , v = k.useRef(new Map).current; 12194 return h.jsx(i, { 12195 scope: g, 12196 itemMap: v, 12197 collectionRef: x, 12198 children: m 12199 }) 12200 } 12201 ; 12202 a.displayName = t; 12203 const s = e + "CollectionSlot" 12204 , l = k.forwardRef( (p, g) => { 12205 const {scope: m, children: x} = p 12206 , v = o(s, m) 12207 , y = Fs(g, v.collectionRef); 12208 return h.jsx(Bs, { 12209 ref: y, 12210 children: x 12211 }) 12212 } 12213 ); 12214 l.displayName = s; 12215 const c = e + "CollectionItemSlot" 12216 , u = "data-radix-collection-item" 12217 , d = k.forwardRef( (p, g) => { 12218 const {scope: m, children: x, ...v} = p 12219 , y = k.useRef(null) 12220 , w = Fs(g, y) 12221 , P = o(c, m); 12222 return k.useEffect( () => (P.itemMap.set(y, { 12223 ref: y, 12224 ...v 12225 }), 12226 () => void P.itemMap.delete(y))), 12227 h.jsx(Bs, { 12228 [u]: "", 12229 ref: w, 12230 children: x 12231 }) 12232 } 12233 ); 12234 d.displayName = c; 12235 function f(p) { 12236 const g = o(e + "CollectionConsumer", p); 12237 return k.useCallback( () => { 12238 const x = g.collectionRef.current; 12239 if (!x) 12240 return []; 12241 const v = Array.from(x.querySelectorAll(`[${u}]`)); 12242 return Array.from(g.itemMap.values()).sort( (P, S) => v.indexOf(P.ref.current) - v.indexOf(S.ref.current)) 12243 } 12244 , [g.collectionRef, g.itemMap]) 12245 } 12246 return [{ 12247 Provider: a, 12248 Slot: l, 12249 ItemSlot: d 12250 }, f, r] 12251} 12252var LY = ["a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "span", "svg", "ul"] 12253 , Gi = LY.reduce( (e, t) => { 12254 const n = b.forwardRef( (r, i) => { 12255 const {asChild: o, ...a} = r 12256 , s = o ? Bs : t; 12257 return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), 12258 h.jsx(s, { 12259 ...a, 12260 ref: i 12261 }) 12262 } 12263 ); 12264 return n.displayName = `Primitive.${t}`, 12265 { 12266 ...e, 12267 [t]: n 12268 } 12269} 12270, {}); 12271function YF(e, t) { 12272 e && La.flushSync( () => e.dispatchEvent(t)) 12273} 12274function rn(e) { 12275 const t = b.useRef(e); 12276 return b.useEffect( () => { 12277 t.current = e 12278 } 12279 ), 12280 b.useMemo( () => (...n) => { 12281 var r; 12282 return (r = t.current) == null ? void 0 : r.call(t, ...n) 12283 } 12284 , []) 12285} 12286function XF(e, t=globalThis == null ? void 0 : globalThis.document) { 12287 const n = rn(e); 12288 b.useEffect( () => { 12289 const r = i => { 12290 i.key === "Escape" && n(i) 12291 } 12292 ; 12293 return t.addEventListener("keydown", r, { 12294 capture: !0 12295 }), 12296 () => t.removeEventListener("keydown", r, { 12297 capture: !0 12298 }) 12299 } 12300 , [n, t]) 12301} 12302var FY = "DismissableLayer", fw = "dismissableLayer.update", BY = "dismissableLayer.pointerDownOutside", VY = "dismissableLayer.focusOutside", iA, QF = b.createContext({ 12303 layers: new Set, 12304 layersWithOutsidePointerEventsDisabled: new Set, 12305 branches: new Set 12306}), ZF = b.forwardRef( (e, t) => { 12307 const {disableOutsidePointerEvents: n=!1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: o, onInteractOutside: a, onDismiss: s, ...l} = e 12308 , c = b.useContext(QF) 12309 , [u,d] = b.useState(null) 12310 , f = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document) 12311 , [,p] = b.useState({}) 12312 , g = Fs(t, T => d(T)) 12313 , m = Array.from(c.layers) 12314 , [x] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1) 12315 , v = m.indexOf(x) 12316 , y = u ? m.indexOf(u) : -1 12317 , w = c.layersWithOutsidePointerEventsDisabled.size > 0 12318 , P = y >= v 12319 , S = zY(T => { 12320 const C = T.target 12321 , O = [...c.branches].some(A => A.contains(C)); 12322 !P || O || (i == null || i(T), 12323 a == null || a(T), 12324 T.defaultPrevented || s == null || s()) 12325 } 12326 , f) 12327 , _ = WY(T => { 12328 const C = T.target; 12329 [...c.branches].some(A => A.contains(C)) || (o == null || o(T), 12330 a == null || a(T), 12331 T.defaultPrevented || s == null || s()) 12332 } 12333 , f); 12334 return XF(T => { 12335 y === c.layers.size - 1 && (r == null || r(T), 12336 !T.defaultPrevented && s && (T.preventDefault(), 12337 s())) 12338 } 12339 , f), 12340 b.useEffect( () => { 12341 if (u) 12342 return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (iA = f.body.style.pointerEvents, 12343 f.body.style.pointerEvents = "none"), 12344 c.layersWithOutsidePointerEventsDisabled.add(u)), 12345 c.layers.add(u), 12346 oA(), 12347 () => { 12348 n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = iA) 12349 } 12350 } 12351 , [u, f, n, c]), 12352 b.useEffect( () => () => { 12353 u && (c.layers.delete(u), 12354 c.layersWithOutsidePointerEventsDisabled.delete(u), 12355 oA()) 12356 } 12357 , [u, c]), 12358 b.useEffect( () => { 12359 const T = () => p({}); 12360 return document.addEventListener(fw, T), 12361 () => document.removeEventListener(fw, T) 12362 } 12363 , []), 12364 h.jsx(Gi.div, { 12365 ...l, 12366 ref: g, 12367 style: { 12368 pointerEvents: w ? P ? "auto" : "none" : void 0, 12369 ...e.style 12370 }, 12371 onFocusCapture: cr(e.onFocusCapture, _.onFocusCapture), 12372 onBlurCapture: cr(e.onBlurCapture, _.onBlurCapture), 12373 onPointerDownCapture: cr(e.onPointerDownCapture, S.onPointerDownCapture) 12374 }) 12375} 12376); 12377ZF.displayName = FY; 12378var UY = "DismissableLayerBranch" 12379 , JF = b.forwardRef( (e, t) => { 12380 const n = b.useContext(QF) 12381 , r = b.useRef(null) 12382 , i = Fs(t, r); 12383 return b.useEffect( () => { 12384 const o = r.current; 12385 if (o) 12386 return n.branches.add(o), 12387 () => { 12388 n.branches.delete(o) 12389 } 12390 } 12391 , [n.branches]), 12392 h.jsx(Gi.div, { 12393 ...e, 12394 ref: i 12395 }) 12396} 12397); 12398JF.displayName = UY; 12399function zY(e, t=globalThis == null ? void 0 : globalThis.document) { 12400 const n = rn(e) 12401 , r = b.useRef(!1) 12402 , i = b.useRef( () => {} 12403 ); 12404 return b.useEffect( () => { 12405 const o = s => { 12406 if (s.target && !r.current) { 12407 let l = function() { 12408 e4(BY, n, c, { 12409 discrete: !0 12410 }) 12411 }; 12412 const c = { 12413 originalEvent: s 12414 }; 12415 s.pointerType === "touch" ? (t.removeEventListener("click", i.current), 12416 i.current = l, 12417 t.addEventListener("click", i.current, { 12418 once: !0 12419 })) : l() 12420 } else 12421 t.removeEventListener("click", i.current); 12422 r.current = !1 12423 } 12424 , a = window.setTimeout( () => { 12425 t.addEventListener("pointerdown", o) 12426 } 12427 , 0); 12428 return () => { 12429 window.clearTimeout(a), 12430 t.removeEventListener("pointerdown", o), 12431 t.removeEventListener("click", i.current) 12432 } 12433 } 12434 , [t, n]), 12435 { 12436 onPointerDownCapture: () => r.current = !0 12437 } 12438} 12439function WY(e, t=globalThis == null ? void 0 : globalThis.document) { 12440 const n = rn(e) 12441 , r = b.useRef(!1); 12442 return b.useEffect( () => { 12443 const i = o => { 12444 o.target && !r.current && e4(VY, n, { 12445 originalEvent: o 12446 }, { 12447 discrete: !1 12448 }) 12449 } 12450 ; 12451 return t.addEventListener("focusin", i), 12452 () => t.removeEventListener("focusin", i) 12453 } 12454 , [t, n]), 12455 { 12456 onFocusCapture: () => r.current = !0, 12457 onBlurCapture: () => r.current = !1 12458 } 12459} 12460function oA() { 12461 const e = new CustomEvent(fw); 12462 document.dispatchEvent(e) 12463} 12464function e4(e, t, n, {discrete: r}) { 12465 const i = n.originalEvent.target 12466 , o = new CustomEvent(e,{ 12467 bubbles: !1, 12468 cancelable: !0, 12469 detail: n 12470 }); 12471 t && i.addEventListener(e, t, { 12472 once: !0 12473 }), 12474 r ? YF(i, o) : i.dispatchEvent(o) 12475} 12476var HY = ZF 12477 , qY = JF 12478 , $t = globalThis != null && globalThis.document ? b.useLayoutEffect : () => {} 12479 , KY = "Portal" 12480 , t4 = b.forwardRef( (e, t) => { 12481 var s; 12482 const {container: n, ...r} = e 12483 , [i,o] = b.useState(!1); 12484 $t( () => o(!0), []); 12485 const a = n || i && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body); 12486 return a ? wF.createPortal(h.jsx(Gi.div, { 12487 ...r, 12488 ref: t 12489 }), a) : null 12490} 12491); 12492t4.displayName = KY; 12493function GY(e, t) { 12494 return b.useReducer( (n, r) => t[n][r] ?? n, e) 12495} 12496var n4 = e => { 12497 const {present: t, children: n} = e 12498 , r = YY(t) 12499 , i = typeof n == "function" ? n({ 12500 present: r.isPresent 12501 }) : b.Children.only(n) 12502 , o = Fs(r.ref, XY(i)); 12503 return typeof n == "function" || r.isPresent ? b.cloneElement(i, { 12504 ref: o 12505 }) : null 12506} 12507; 12508n4.displayName = "Presence";
12509function YY(e) { 12510 const [t,n] = b.useState() 12511 , r = b.useRef({}) 12512 , i = b.useRef(e) 12513 , o = b.useRef("none") 12514 , a = e ? "mounted" : "unmounted" 12515 , [s,l] = GY(a, { 12516 mounted: { 12517 UNMOUNT: "unmounted", 12518 ANIMATION_OUT: "unmountSuspended" 12519 }, 12520 unmountSuspended: { 12521 MOUNT: "mounted", 12522 ANIMATION_END: "unmounted" 12523 }, 12524 unmounted: { 12525 MOUNT: "mounted" 12526 } 12527 }); 12528 return b.useEffect( () => { 12529 const c = wp(r.current); 12530 o.current = s === "mounted" ? c : "none" 12531 } 12532 , [s]), 12533 $t( () => { 12534 const c = r.current 12535 , u = i.current; 12536 if (u !== e) { 12537 const f = o.current 12538 , p = wp(c); 12539 e ? l("MOUNT") : p === "none" || (c == null ? void 0 : c.display) === "none" ? l("UNMOUNT") : l(u && f !== p ? "ANIMATION_OUT" : "UNMOUNT"), 12540 i.current = e 12541 } 12542 } 12543 , [e, l]), 12544 $t( () => { 12545 if (t) { 12546 let c; 12547 const u = t.ownerDocument.defaultView ?? window 12548 , d = p => { 12549 const m = wp(r.current).includes(p.animationName); 12550 if (p.target === t && m && (l("ANIMATION_END"), 12551 !i.current)) { 12552 const x = t.style.animationFillMode; 12553 t.style.animationFillMode = "forwards", 12554 c = u.setTimeout( () => { 12555 t.style.animationFillMode === "forwards" && (t.style.animationFillMode = x) 12556 } 12557 ) 12558 } 12559 } 12560 , f = p => { 12561 p.target === t && (o.current = wp(r.current)) 12562 } 12563 ; 12564 return t.addEventListener("animationstart", f), 12565 t.addEventListener("animationcancel", d), 12566 t.addEventListener("animationend", d), 12567 () => { 12568 u.clearTimeout(c), 12569 t.removeEventListener("animationstart", f), 12570 t.removeEventListener("animationcancel", d), 12571 t.removeEventListener("animationend", d) 12572 } 12573 } else 12574 l("ANIMATION_END") 12575 } 12576 , [t, l]), 12577 { 12578 isPresent: ["mounted", "unmountSuspended"].includes(s), 12579 ref: b.useCallback(c => { 12580 c && (r.current = getComputedStyle(c)), 12581 n(c) 12582 } 12583 , []) 12584 } 12585} 12586function wp(e) { 12587 return (e == null ? void 0 : e.animationName) || "none" 12588} 12589function XY(e) { 12590 var r, i; 12591 let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get 12592 , n = t && "isReactWarning"in t && t.isReactWarning; 12593 return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, 12594 n = t && "isReactWarning"in t && t.isReactWarning, 12595 n ? e.props.ref : e.props.ref || e.ref) 12596} 12597function pi({prop: e, defaultProp: t, onChange: n= () => {} 12598}) { 12599 const [r,i] = QY({ 12600 defaultProp: t, 12601 onChange: n 12602 }) 12603 , o = e !== void 0 12604 , a = o ? e : r 12605 , s = rn(n) 12606 , l = b.useCallback(c => { 12607 if (o) { 12608 const d = typeof c == "function" ? c(e) : c; 12609 d !== e && s(d) 12610 } else 12611 i(c) 12612 } 12613 , [o, e, i, s]); 12614 return [a, l] 12615} 12616function QY({defaultProp: e, onChange: t}) { 12617 const n = b.useState(e) 12618 , [r] = n 12619 , i = b.useRef(r) 12620 , o = rn(t); 12621 return b.useEffect( () => { 12622 i.current !== r && (o(r), 12623 i.current = r) 12624 } 12625 , [r, i, o]), 12626 n 12627} 12628var ZY = "VisuallyHidden" 12629 , kP = b.forwardRef( (e, t) => h.jsx(Gi.span, { 12630 ...e, 12631 ref: t, 12632 style: { 12633 position: "absolute", 12634 border: 0, 12635 width: 1, 12636 height: 1, 12637 padding: 0, 12638 margin: -1, 12639 overflow: "hidden", 12640 clip: "rect(0, 0, 0, 0)", 12641 whiteSpace: "nowrap", 12642 wordWrap: "normal", 12643 ...e.style 12644 } 12645})); 12646kP.displayName = ZY; 12647var RP = "ToastProvider" 12648 , [DP,JY,eX] = $Y("Toast") 12649 , [r4,qIe] = zr("Toast", [eX]) 12650 , [tX,Ky] = r4(RP) 12651 , i4 = e => { 12652 const {__scopeToast: t, label: n="Notification", duration: r=5e3, swipeDirection: i="right", swipeThreshold: o=50, children: a} = e 12653 , [s,l] = b.useState(null) 12654 , [c,u] = b.useState(0) 12655 , d = b.useRef(!1) 12656 , f = b.useRef(!1); 12657 return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${RP}\`. Expected non-empty \`string\`.`), 12658 h.jsx(DP.Provider, { 12659 scope: t, 12660 children: h.jsx(tX, { 12661 scope: t, 12662 label: n, 12663 duration: r, 12664 swipeDirection: i, 12665 swipeThreshold: o, 12666 toastCount: c, 12667 viewport: s, 12668 onViewportChange: l, 12669 onToastAdd: b.useCallback( () => u(p => p + 1), []), 12670 onToastRemove: b.useCallback( () => u(p => p - 1), []), 12671 isFocusedToastEscapeKeyDownRef: d, 12672 isClosePausedRef: f, 12673 children: a 12674 }) 12675 }) 12676} 12677; 12678i4.displayName = RP; 12679var o4 = "ToastViewport" 12680 , nX = ["F8"] 12681 , hw = "toast.viewportPause" 12682 , pw = "toast.viewportResume" 12683 , a4 = b.forwardRef( (e, t) => { 12684 const {__scopeToast: n, hotkey: r=nX, label: i="Notifications ({hotkey})", ...o} = e 12685 , a = Ky(o4, n) 12686 , s = JY(n) 12687 , l = b.useRef(null) 12688 , c = b.useRef(null) 12689 , u = b.useRef(null) 12690 , d = b.useRef(null) 12691 , f = Fs(t, d, a.onViewportChange) 12692 , p = r.join("+").replace(/Key/g, "").replace(/Digit/g, "") 12693 , g = a.toastCount > 0; 12694 b.useEffect( () => { 12695 const x = v => { 12696 var w; 12697 r.length !== 0 && r.every(P => v[P] || v.code === P) && ((w = d.current) == null || w.focus()) 12698 } 12699 ; 12700 return document.addEventListener("keydown", x), 12701 () => document.removeEventListener("keydown", x) 12702 } 12703 , [r]), 12704 b.useEffect( () => { 12705 const x = l.current 12706 , v = d.current; 12707 if (g && x && v) { 12708 const y = () => { 12709 if (!a.isClosePausedRef.current) { 12710 const _ = new CustomEvent(hw); 12711 v.dispatchEvent(_), 12712 a.isClosePausedRef.current = !0 12713 } 12714 } 12715 , w = () => { 12716 if (a.isClosePausedRef.current) { 12717 const _ = new CustomEvent(pw); 12718 v.dispatchEvent(_), 12719 a.isClosePausedRef.current = !1 12720 } 12721 } 12722 , P = _ => { 12723 !x.contains(_.relatedTarget) && w() 12724 } 12725 , S = () => { 12726 x.contains(document.activeElement) || w() 12727 } 12728 ; 12729 return x.addEventListener("focusin", y), 12730 x.addEventListener("focusout", P), 12731 x.addEventListener("pointermove", y), 12732 x.addEventListener("pointerleave", S), 12733 window.addEventListener("blur", y), 12734 window.addEventListener("focus", w), 12735 () => { 12736 x.removeEventListener("focusin", y), 12737 x.removeEventListener("focusout", P), 12738 x.removeEventListener("pointermove", y), 12739 x.removeEventListener("pointerleave", S), 12740 window.removeEventListener("blur", y), 12741 window.removeEventListener("focus", w) 12742 } 12743 } 12744 } 12745 , [g, a.isClosePausedRef]); 12746 const m = b.useCallback( ({tabbingDirection: x}) => { 12747 const y = s().map(w => { 12748 const P = w.ref.current 12749 , S = [P, ...mX(P)]; 12750 return x === "forwards" ? S : S.reverse() 12751 } 12752 ); 12753 return (x === "forwards" ? y.reverse() : y).flat() 12754 } 12755 , [s]); 12756 return b.useEffect( () => { 12757 const x = d.current; 12758 if (x) { 12759 const v = y => { 12760 var S, _, T; 12761 const w = y.altKey || y.ctrlKey || y.metaKey; 12762 if (y.key === "Tab" && !w) { 12763 const C = document.activeElement
12764 , O = y.shiftKey; 12765 if (y.target === x && O) { 12766 (S = c.current) == null || S.focus(); 12767 return 12768 } 12769 const j = m({ 12770 tabbingDirection: O ? "backwards" : "forwards" 12771 }) 12772 , $ = j.findIndex(R => R === C); 12773 Q0(j.slice($ + 1)) ? y.preventDefault() : O ? (_ = c.current) == null || _.focus() : (T = u.current) == null || T.focus() 12774 } 12775 } 12776 ; 12777 return x.addEventListener("keydown", v), 12778 () => x.removeEventListener("keydown", v) 12779 } 12780 } 12781 , [s, m]), 12782 h.jsxs(qY, { 12783 ref: l, 12784 role: "region", 12785 "aria-label": i.replace("{hotkey}", p), 12786 tabIndex: -1, 12787 style: { 12788 pointerEvents: g ? void 0 : "none" 12789 }, 12790 children: [g && h.jsx(mw, { 12791 ref: c, 12792 onFocusFromOutsideViewport: () => { 12793 const x = m({ 12794 tabbingDirection: "forwards" 12795 }); 12796 Q0(x) 12797 } 12798 }), h.jsx(DP.Slot, { 12799 scope: n, 12800 children: h.jsx(Gi.ol, { 12801 tabIndex: -1, 12802 ...o, 12803 ref: f 12804 }) 12805 }), g && h.jsx(mw, { 12806 ref: u, 12807 onFocusFromOutsideViewport: () => { 12808 const x = m({ 12809 tabbingDirection: "backwards" 12810 }); 12811 Q0(x) 12812 } 12813 })] 12814 }) 12815} 12816); 12817a4.displayName = o4; 12818var s4 = "ToastFocusProxy" 12819 , mw = b.forwardRef( (e, t) => { 12820 const {__scopeToast: n, onFocusFromOutsideViewport: r, ...i} = e 12821 , o = Ky(s4, n); 12822 return h.jsx(kP, { 12823 "aria-hidden": !0, 12824 tabIndex: 0, 12825 ...i, 12826 ref: t, 12827 style: { 12828 position: "fixed" 12829 }, 12830 onFocus: a => { 12831 var c; 12832 const s = a.relatedTarget; 12833 !((c = o.viewport) != null && c.contains(s)) && r() 12834 } 12835 }) 12836} 12837); 12838mw.displayName = s4; 12839var Gy = "Toast" 12840 , rX = "toast.swipeStart" 12841 , iX = "toast.swipeMove" 12842 , oX = "toast.swipeCancel" 12843 , aX = "toast.swipeEnd" 12844 , l4 = b.forwardRef( (e, t) => { 12845 const {forceMount: n, open: r, defaultOpen: i, onOpenChange: o, ...a} = e 12846 , [s=!0,l] = pi({ 12847 prop: r, 12848 defaultProp: i, 12849 onChange: o 12850 }); 12851 return h.jsx(n4, { 12852 present: n || s, 12853 children: h.jsx(cX, { 12854 open: s, 12855 ...a, 12856 ref: t, 12857 onClose: () => l(!1), 12858 onPause: rn(e.onPause), 12859 onResume: rn(e.onResume), 12860 onSwipeStart: cr(e.onSwipeStart, c => { 12861 c.currentTarget.setAttribute("data-swipe", "start") 12862 } 12863 ), 12864 onSwipeMove: cr(e.onSwipeMove, c => { 12865 const {x: u, y: d} = c.detail.delta; 12866 c.currentTarget.setAttribute("data-swipe", "move"), 12867 c.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${u}px`), 12868 c.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${d}px`) 12869 } 12870 ), 12871 onSwipeCancel: cr(e.onSwipeCancel, c => { 12872 c.currentTarget.setAttribute("data-swipe", "cancel"), 12873 c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), 12874 c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), 12875 c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), 12876 c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y") 12877 } 12878 ), 12879 onSwipeEnd: cr(e.onSwipeEnd, c => { 12880 const {x: u, y: d} = c.detail.delta; 12881 c.currentTarget.setAttribute("data-swipe", "end"), 12882 c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), 12883 c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), 12884 c.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${u}px`), 12885 c.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${d}px`), 12886 l(!1) 12887 } 12888 ) 12889 }) 12890 }) 12891} 12892); 12893l4.displayName = Gy; 12894var [sX,lX] = r4(Gy, { 12895 onClose() {} 12896}) 12897 , cX = b.forwardRef( (e, t) => { 12898 const {__scopeToast: n, type: r="foreground", duration: i, open: o, onClose: a, onEscapeKeyDown: s, onPause: l, onResume: c, onSwipeStart: u, onSwipeMove: d, onSwipeCancel: f, onSwipeEnd: p, ...g} = e 12899 , m = Ky(Gy, n) 12900 , [x,v] = b.useState(null) 12901 , y = Fs(t, R => v(R)) 12902 , w = b.useRef(null) 12903 , P = b.useRef(null) 12904 , S = i || m.duration 12905 , _ = b.useRef(0) 12906 , T = b.useRef(S) 12907 , C = b.useRef(0) 12908 , {onToastAdd: O, onToastRemove: A} = m 12909 , E = rn( () => { 12910 var L; 12911 (x == null ? void 0 : x.contains(document.activeElement)) && ((L = m.viewport) == null || L.focus()), 12912 a() 12913 } 12914 ) 12915 , j = b.useCallback(R => { 12916 !R || R === 1 / 0 || (window.clearTimeout(C.current), 12917 _.current = new Date().getTime(), 12918 C.current = window.setTimeout(E, R)) 12919 } 12920 , [E]); 12921 b.useEffect( () => { 12922 const R = m.viewport; 12923 if (R) { 12924 const L = () => { 12925 j(T.current), 12926 c == null || c() 12927 } 12928 , B = () => { 12929 const U = new Date().getTime() - _.current; 12930 T.current = T.current - U, 12931 window.clearTimeout(C.current), 12932 l == null || l() 12933 } 12934 ; 12935 return R.addEventListener(hw, B), 12936 R.addEventListener(pw, L), 12937 () => { 12938 R.removeEventListener(hw, B), 12939 R.removeEventListener(pw, L) 12940 } 12941 } 12942 } 12943 , [m.viewport, S, l, c, j]), 12944 b.useEffect( () => { 12945 o && !m.isClosePausedRef.current && j(S) 12946 } 12947 , [o, S, m.isClosePausedRef, j]), 12948 b.useEffect( () => (O(), 12949 () =>
vendor: 5,685 bytes, lines 12949-13095
12949 A()), [O, A]); 12950 const $ = b.useMemo( () => x ? m4(x) : null, [x]); 12951 return m.viewport ? h.jsxs(h.Fragment, { 12952 children: [$ && h.jsx(uX, { 12953 __scopeToast: n, 12954 role: "status", 12955 "aria-live": r === "foreground" ? "assertive" : "polite", 12956 "aria-atomic": !0, 12957 children: $ 12958 }), h.jsx(sX, { 12959 scope: n, 12960 onClose: E, 12961 children: La.createPortal(h.jsx(DP.ItemSlot, { 12962 scope: n, 12963 children: h.jsx(HY, { 12964 asChild: !0, 12965 onEscapeKeyDown: cr(s, () => { 12966 m.isFocusedToastEscapeKeyDownRef.current || E(), 12967 m.isFocusedToastEscapeKeyDownRef.current = !1 12968 } 12969 ), 12970 children: h.jsx(Gi.li, { 12971 role: "status", 12972 "aria-live": "off", 12973 "aria-atomic": !0, 12974 tabIndex: 0, 12975 "data-state": o ? "open" : "closed", 12976 "data-swipe-direction": m.swipeDirection, 12977 ...g, 12978 ref: y, 12979 style: { 12980 userSelect: "none", 12981 touchAction: "none", 12982 ...e.style 12983 }, 12984 onKeyDown: cr(e.onKeyDown, R => { 12985 R.key === "Escape" && (s == null || s(R.nativeEvent), 12986 R.nativeEvent.defaultPrevented || (m.isFocusedToastEscapeKeyDownRef.current = !0, 12987 E())) 12988 } 12989 ), 12990 onPointerDown: cr(e.onPointerDown, R => { 12991 R.button === 0 && (w.current = { 12992 x: R.clientX, 12993 y: R.clientY 12994 }) 12995 } 12996 ), 12997 onPointerMove: cr(e.onPointerMove, R => { 12998 if (!w.current) 12999 return; 13000 const L = R.clientX - w.current.x 13001 , B = R.clientY - w.current.y 13002 , U = !!P.current 13003 , N = ["left", "right"].includes(m.swipeDirection) 13004 , D = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max 13005 , W = N ? D(0, L) : 0 13006 , K = N ? 0 : D(0, B) 13007 , G = R.pointerType === "touch" ? 10 : 2 13008 , ae = { 13009 x: W, 13010 y: K 13011 } 13012 , ve = { 13013 originalEvent: R, 13014 delta: ae 13015 }; 13016 U ? (P.current = ae, 13017 Sp(iX, d, ve, { 13018 discrete: !1 13019 })) : aA(ae, m.swipeDirection, G) ? (P.current = ae, 13020 Sp(rX, u, ve, { 13021 discrete: !1 13022 }), 13023 R.target.setPointerCapture(R.pointerId)) : (Math.abs(L) > G || Math.abs(B) > G) && (w.current = null) 13024 } 13025 ), 13026 onPointerUp: cr(e.onPointerUp, R => { 13027 const L = P.current 13028 , B = R.target; 13029 if (B.hasPointerCapture(R.pointerId) && B.releasePointerCapture(R.pointerId), 13030 P.current = null, 13031 w.current = null, 13032 L) { 13033 const U = R.currentTarget 13034 , N = { 13035 originalEvent: R, 13036 delta: L 13037 }; 13038 aA(L, m.swipeDirection, m.swipeThreshold) ? Sp(aX, p, N, { 13039 discrete: !0 13040 }) : Sp(oX, f, N, { 13041 discrete: !0 13042 }), 13043 U.addEventListener("click", D => D.preventDefault(), { 13044 once: !0 13045 }) 13046 } 13047 } 13048 ) 13049 }) 13050 }) 13051 }), m.viewport) 13052 })] 13053 }) : null 13054} 13055) 13056 , uX = e => { 13057 const {__scopeToast: t, children: n, ...r} = e 13058 , i = Ky(Gy, t) 13059 , [o,a] = b.useState(!1) 13060 , [s,l] = b.useState(!1); 13061 return hX( () => a(!0)), 13062 b.useEffect( () => { 13063 const c = window.setTimeout( () => l(!0), 1e3); 13064 return () => window.clearTimeout(c) 13065 } 13066 , []), 13067 s ? null : h.jsx(t4, { 13068 asChild: !0, 13069 children: h.jsx(kP, { 13070 ...r, 13071 children: o && h.jsxs(h.Fragment, { 13072 children: [i.label, " ", n] 13073 }) 13074 }) 13075 }) 13076} 13077 , dX = "ToastTitle" 13078 , c4 = b.forwardRef( (e, t) => { 13079 const {__scopeToast: n, ...r} = e; 13080 return h.jsx(Gi.div, { 13081 ...r, 13082 ref: t 13083 }) 13084} 13085); 13086c4.displayName = dX; 13087var fX = "ToastDescription" 13088 , u4 = b.forwardRef( (e, t) => { 13089 const {__scopeToast: n, ...r} = e; 13090 return h.jsx(Gi.div, { 13091 ...r, 13092 ref: t 13093 }) 13094} 13095);
13096u4.displayName = fX; 13097var d4 = "ToastAction" 13098 , f4 = b.forwardRef( (e, t) => { 13099 const {altText: n, ...r} = e; 13100 return n.trim() ? h.jsx(p4, { 13101 altText: n, 13102 asChild: !0, 13103 children: h.jsx(IP, { 13104 ...r, 13105 ref: t 13106 }) 13107 }) : (console.error(`Invalid prop \`altText\` supplied to \`${d4}\`. Expected non-empty \`string\`.`), 13108 null) 13109} 13110); 13111f4.displayName = d4; 13112var h4 = "ToastClose" 13113 , IP = b.forwardRef( (e, t) => { 13114 const {__scopeToast: n, ...r} = e 13115 , i = lX(h4, n); 13116 return h.jsx(p4, { 13117 asChild: !0, 13118 children: h.jsx(Gi.button, { 13119 type: "button", 13120 ...r, 13121 ref: t, 13122 onClick: cr(e.onClick, i.onClose) 13123 }) 13124 }) 13125} 13126); 13127IP.displayName = h4; 13128var p4 = b.forwardRef( (e, t) => { 13129 const {__scopeToast: n, altText: r, ...i} = e; 13130 return h.jsx(Gi.div, { 13131 "data-radix-toast-announce-exclude": "", 13132 "data-radix-toast-announce-alt": r || void 0, 13133 ...i, 13134 ref: t 13135 }) 13136} 13137); 13138function m4(e) { 13139 const t = []; 13140 return Array.from(e.childNodes).forEach(r => { 13141 if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent), 13142 pX(r)) { 13143 const i = r.ariaHidden || r.hidden || r.style.display === "none" 13144 , o = r.dataset.radixToastAnnounceExclude === ""; 13145 if (!i) 13146 if (o) { 13147 const a = r.dataset.radixToastAnnounceAlt; 13148 a && t.push(a) 13149 } else 13150 t.push(...m4(r)) 13151 } 13152 } 13153 ), 13154 t 13155} 13156function Sp(e, t, n, {discrete: r}) { 13157 const i = n.originalEvent.currentTarget 13158 , o = new CustomEvent(e,{ 13159 bubbles: !0, 13160 cancelable: !0, 13161 detail: n 13162 }); 13163 t && i.addEventListener(e, t, { 13164 once: !0 13165 }), 13166 r ? YF(i, o) : i.dispatchEvent(o) 13167} 13168var aA = (e, t, n=0) => { 13169 const r = Math.abs(e.x) 13170 , i = Math.abs(e.y) 13171 , o = r > i; 13172 return t === "left" || t === "right" ? o && r > n : !o && i > n 13173} 13174; 13175function hX(e= () => {} 13176) { 13177 const t = rn(e); 13178 $t( () => { 13179 let n = 0 13180 , r = 0; 13181 return n = window.requestAnimationFrame( () => r = window.requestAnimationFrame(t)), 13182 () => { 13183 window.cancelAnimationFrame(n), 13184 window.cancelAnimationFrame(r) 13185 } 13186 } 13187 , [t]) 13188} 13189function pX(e) { 13190 return e.nodeType === e.ELEMENT_NODE 13191} 13192function mX(e) { 13193 const t = [] 13194 , n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { 13195 acceptNode: r => { 13196 const i = r.tagName === "INPUT" && r.type === "hidden"; 13197 return r.disabled || r.hidden || i ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP 13198 } 13199 }); 13200 for (; n.nextNode(); ) 13201 t.push(n.currentNode); 13202 return t 13203} 13204function Q0(e) { 13205 const t = document.activeElement; 13206 return e.some(n => n === t ? !0 : (n.focus(), 13207 document.activeElement !== t)) 13208} 13209var gX = i4 13210 , g4 = a4 13211 , y4 = l4 13212 , v4 = c4 13213 , x4 = u4 13214 , b4 = f4 13215 , w4 = IP; 13216function S4(e) { 13217 var t, n, r = ""; 13218 if (typeof e == "string" || typeof e == "number") 13219 r += e; 13220 else if (typeof e == "object") 13221 if (Array.isArray(e)) { 13222 var i = e.length; 13223 for (t = 0; t < i; t++) 13224 e[t] && (n = S4(e[t])) && (r && (r += " "), 13225 r += n) 13226 } else 13227 for (n in e) 13228 e[n] && (r && (r += " "), 13229 r += n); 13230 return r 13231} 13232function Ge() { 13233 for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) 13234 (e = arguments[n]) && (t = S4(e)) && (r && (r += " "), 13235 r += t); 13236 return r 13237} 13238const sA = e => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e 13239 , lA = Ge 13240 , Ch = (e, t) => n => { 13241 var r; 13242 if ((t == null ? void 0 : t.variants) == null) 13243 return lA(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className); 13244 const {variants: i, defaultVariants: o} = t 13245 , a = Object.keys(i).map(c => { 13246 const u = n == null ? void 0 : n[c] 13247 , d = o == null ? void 0 : o[c]; 13248 if (u === null) 13249 return null;
vendor: 4,935 bytes, lines 13250-13430
13250 const f = sA(u) || sA(d); 13251 return i[c][f] 13252 } 13253 ) 13254 , s = n && Object.entries(n).reduce( (c, u) => { 13255 let[d,f] = u; 13256 return f === void 0 || (c[d] = f), 13257 c 13258 } 13259 , {}) 13260 , l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce( (c, u) => { 13261 let {class: d, className: f, ...p} = u; 13262 return Object.entries(p).every(g => { 13263 let[m,x] = g; 13264 return Array.isArray(x) ? x.includes({ 13265 ...o, 13266 ...s 13267 }[m]) : { 13268 ...o, 13269 ...s 13270 }[m] === x 13271 } 13272 ) ? [...c, d, f] : c 13273 } 13274 , []); 13275 return lA(e, a, l, n == null ? void 0 : n.class, n == null ? void 0 : n.className) 13276} 13277; 13278/** 13279 * @license lucide-react v0.453.0 - ISC 13280 * 13281 * This source code is licensed under the ISC license. 13282 * See the LICENSE file in the root directory of this source tree. 13283 */ 13284const yX = e => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase() 13285 , P4 = (...e) => e.filter( (t, n, r) => !!t && r.indexOf(t) === n).join(" "); 13286/** 13287 * @license lucide-react v0.453.0 - ISC 13288 * 13289 * This source code is licensed under the ISC license. 13290 * See the LICENSE file in the root directory of this source tree. 13291 */ 13292var vX = { 13293 xmlns: "http://www.w3.org/2000/svg", 13294 width: 24, 13295 height: 24, 13296 viewBox: "0 0 24 24", 13297 fill: "none", 13298 stroke: "currentColor", 13299 strokeWidth: 2, 13300 strokeLinecap: "round", 13301 strokeLinejoin: "round" 13302}; 13303/** 13304 * @license lucide-react v0.453.0 - ISC 13305 * 13306 * This source code is licensed under the ISC license. 13307 * See the LICENSE file in the root directory of this source tree. 13308 */ 13309const xX = b.forwardRef( ({color: e="currentColor", size: t=24, strokeWidth: n=2, absoluteStrokeWidth: r, className: i="", children: o, iconNode: a, ...s}, l) => b.createElement("svg", { 13310 ref: l, 13311 ...vX, 13312 width: t, 13313 height: t, 13314 stroke: e, 13315 strokeWidth: r ? Number(n) * 24 / Number(t) : n, 13316 className: P4("lucide", i), 13317 ...s 13318}, [...a.map( ([c,u]) => b.createElement(c, u)), ...Array.isArray(o) ? o : [o]])); 13319/** 13320 * @license lucide-react v0.453.0 - ISC 13321 * 13322 * This source code is licensed under the ISC license. 13323 * See the LICENSE file in the root directory of this source tree. 13324 */ 13325const Fe = (e, t) => { 13326 const n = b.forwardRef( ({className: r, ...i}, o) => b.createElement(xX, { 13327 ref: o, 13328 iconNode: t, 13329 className: P4(`lucide-${yX(e)}`, r), 13330 ...i 13331 })); 13332 return n.displayName = `${e}`, 13333 n 13334} 13335; 13336/** 13337 * @license lucide-react v0.453.0 - ISC 13338 * 13339 * This source code is licensed under the ISC license. 13340 * See the LICENSE file in the root directory of this source tree. 13341 */ 13342const _4 = Fe("ArrowLeft", [["path", { 13343 d: "m12 19-7-7 7-7", 13344 key: "1l729n" 13345}], ["path", { 13346 d: "M19 12H5", 13347 key: "x3x0zl" 13348}]]); 13349/** 13350 * @license lucide-react v0.453.0 - ISC 13351 * 13352 * This source code is licensed under the ISC license. 13353 * See the LICENSE file in the root directory of this source tree. 13354 */ 13355const um = Fe("ArrowRight", [["path", { 13356 d: "M5 12h14", 13357 key: "1ays0h" 13358}], ["path", { 13359 d: "m12 5 7 7-7 7", 13360 key: "xquz4c" 13361}]]); 13362/** 13363 * @license lucide-react v0.453.0 - ISC 13364 * 13365 * This source code is licensed under the ISC license. 13366 * See the LICENSE file in the root directory of this source tree. 13367 */ 13368const bX = Fe("Bell", [["path", { 13369 d: "M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9", 13370 key: "1qo2s2" 13371}], ["path", { 13372 d: "M10.3 21a1.94 1.94 0 0 0 3.4 0", 13373 key: "qgo35s" 13374}]]); 13375/** 13376 * @license lucide-react v0.453.0 - ISC 13377 * 13378 * This source code is licensed under the ISC license. 13379 * See the LICENSE file in the root directory of this source tree. 13380 */ 13381const wX = Fe("Box", [["path", { 13382 d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z", 13383 key: "hh9hay" 13384}], ["path", { 13385 d: "m3.3 7 8.7 5 8.7-5", 13386 key: "g66t2b" 13387}], ["path", { 13388 d: "M12 22V12", 13389 key: "d0xqtd" 13390}]]); 13391/** 13392 * @license lucide-react v0.453.0 - ISC 13393 * 13394 * This source code is licensed under the ISC license. 13395 * See the LICENSE file in the root directory of this source tree. 13396 */ 13397const SX = Fe("Building2", [["path", { 13398 d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z", 13399 key: "1b4qmf" 13400}], ["path", { 13401 d: "M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2", 13402 key: "i71pzd" 13403}], ["path", { 13404 d: "M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2", 13405 key: "10jefs" 13406}], ["path", { 13407 d: "M10 6h4", 13408 key: "1itunk" 13409}], ["path", { 13410 d: "M10 10h4", 13411 key: "tcdvrf" 13412}], ["path", { 13413 d: "M10 14h4", 13414 key: "kelpxr" 13415}], ["path", { 13416 d: "M10 18h4", 13417 key: "1ulq68" 13418}]]); 13419/** 13420 * @license lucide-react v0.453.0 - ISC 13421 * 13422 * This source code is licensed under the ISC license. 13423 * See the LICENSE file in the root directory of this source tree. 13424 */ 13425const $P = Fe("Calculator", [["rect", { 13426 width: "16", 13427 height: "20", 13428 x: "4", 13429 y: "2", 13430 rx: "2",
13431 key: "1nb95v" 13432}], ["line", { 13433 x1: "8", 13434 x2: "16", 13435 y1: "6", 13436 y2: "6", 13437 key: "x4nwl0" 13438}], ["line", { 13439 x1: "16", 13440 x2: "16", 13441 y1: "14", 13442 y2: "18", 13443 key: "wjye3r" 13444}], ["path", { 13445 d: "M16 10h.01", 13446 key: "1m94wz" 13447}], ["path", { 13448 d: "M12 10h.01", 13449 key: "1nrarc" 13450}], ["path", { 13451 d: "M8 10h.01", 13452 key: "19clt8" 13453}], ["path", { 13454 d: "M12 14h.01", 13455 key: "1etili" 13456}], ["path", { 13457 d: "M8 14h.01", 13458 key: "6423bh" 13459}], ["path", { 13460 d: "M12 18h.01", 13461 key: "mhygvu" 13462}], ["path", { 13463 d: "M8 18h.01", 13464 key: "lrp35t" 13465}]]); 13466/** 13467 * @license lucide-react v0.453.0 - ISC 13468 * 13469 * This source code is licensed under the ISC license. 13470 * See the LICENSE file in the root directory of this source tree. 13471 */ 13472const LP = Fe("Check", [["path", { 13473 d: "M20 6 9 17l-5-5", 13474 key: "1gmf2c" 13475}]]); 13476/** 13477 * @license lucide-react v0.453.0 - ISC 13478 * 13479 * This source code is licensed under the ISC license. 13480 * See the LICENSE file in the root directory of this source tree. 13481 */ 13482const FP = Fe("ChevronDown", [["path", { 13483 d: "m6 9 6 6 6-6", 13484 key: "qrunsl" 13485}]]); 13486/** 13487 * @license lucide-react v0.453.0 - ISC 13488 * 13489 * This source code is licensed under the ISC license. 13490 * See the LICENSE file in the root directory of this source tree. 13491 */ 13492const PX = Fe("ChevronRight", [["path", { 13493 d: "m9 18 6-6-6-6", 13494 key: "mthhwq" 13495}]]); 13496/** 13497 * @license lucide-react v0.453.0 - ISC 13498 * 13499 * This source code is licensed under the ISC license. 13500 * See the LICENSE file in the root directory of this source tree. 13501 */ 13502const _X = Fe("ChevronUp", [["path", { 13503 d: "m18 15-6-6-6 6", 13504 key: "153udz" 13505}]]); 13506/** 13507 * @license lucide-react v0.453.0 - ISC 13508 * 13509 * This source code is licensed under the ISC license. 13510 * See the LICENSE file in the root directory of this source tree. 13511 */ 13512const T4 = Fe("CircleAlert", [["circle", { 13513 cx: "12", 13514 cy: "12", 13515 r: "10", 13516 key: "1mglay" 13517}], ["line", { 13518 x1: "12", 13519 x2: "12", 13520 y1: "8", 13521 y2: "12", 13522 key: "1pkeuh" 13523}], ["line", { 13524 x1: "12", 13525 x2: "12.01", 13526 y1: "16", 13527 y2: "16", 13528 key: "4dfq90" 13529}]]); 13530/** 13531 * @license lucide-react v0.453.0 - ISC 13532 * 13533 * This source code is licensed under the ISC license. 13534 * See the LICENSE file in the root directory of this source tree. 13535 */ 13536const C4 = Fe("CircleHelp", [["circle", { 13537 cx: "12", 13538 cy: "12", 13539 r: "10", 13540 key: "1mglay" 13541}], ["path", { 13542 d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", 13543 key: "1u773s" 13544}], ["path", { 13545 d: "M12 17h.01", 13546 key: "p32p05" 13547}]]); 13548/** 13549 * @license lucide-react v0.453.0 - ISC 13550 * 13551 * This source code is licensed under the ISC license. 13552 * See the LICENSE file in the root directory of this source tree. 13553 */ 13554const TX = Fe("CircleUser", [["circle", { 13555 cx: "12", 13556 cy: "12", 13557 r: "10", 13558 key: "1mglay" 13559}], ["circle", { 13560 cx: "12", 13561 cy: "10", 13562 r: "3", 13563 key: "ilqhr7" 13564}], ["path", { 13565 d: "M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662", 13566 key: "154egf" 13567}]]); 13568/** 13569 * @license lucide-react v0.453.0 - ISC 13570 * 13571 * This source code is licensed under the ISC license. 13572 * See the LICENSE file in the root directory of this source tree. 13573 */ 13574const CX = Fe("Circle", [["circle", { 13575 cx: "12", 13576 cy: "12", 13577 r: "10", 13578 key: "1mglay" 13579}]]); 13580/** 13581 * @license lucide-react v0.453.0 - ISC 13582 * 13583 * This source code is licensed under the ISC license. 13584 * See the LICENSE file in the root directory of this source tree. 13585 */ 13586const OX = Fe("CreditCard", [["rect", { 13587 width: "20", 13588 height: "14", 13589 x: "2", 13590 y: "5", 13591 rx: "2", 13592 key: "ynyp8z" 13593}], ["line", { 13594 x1: "2", 13595 x2: "22", 13596 y1: "10", 13597 y2: "10", 13598 key: "1b3vmo" 13599}]]); 13600/** 13601 * @license lucide-react v0.453.0 - ISC 13602 * 13603 * This source code is licensed under the ISC license. 13604 * See the LICENSE file in the root directory of this source tree. 13605 */ 13606const Yy = Fe("DollarSign", [["line", { 13607 x1: "12", 13608 x2: "12", 13609 y1: "2", 13610 y2: "22", 13611 key: "7eqyqh" 13612}], ["path", { 13613 d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", 13614 key: "1b0p4s" 13615}]]); 13616/** 13617 * @license lucide-react v0.453.0 - ISC 13618 * 13619 * This source code is licensed under the ISC license. 13620 * See the LICENSE file in the root directory of this source tree. 13621 */ 13622const Oh = Fe("Download", [["path", { 13623 d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", 13624 key: "ih7n3h" 13625}], ["polyline", { 13626 points: "7 10 12 15 17 10", 13627 key: "2ggqvy" 13628}], ["line", { 13629 x1: "12", 13630 x2: "12", 13631 y1: "15", 13632 y2: "3", 13633 key: "1vk2je" 13634}]]); 13635/** 13636 * @license lucide-react v0.453.0 - ISC 13637 * 13638 * This source code is licensed under the ISC license. 13639 * See the LICENSE file in the root directory of this source tree. 13640 */ 13641const O4 = Fe("FileText", [["path", { 13642 d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", 13643 key: "1rqfz7" 13644}], ["path", { 13645 d: "M14 2v4a2 2 0 0 0 2 2h4", 13646 key: "tnqrlb" 13647}], ["path", { 13648 d: "M10 9H8",
13649 key: "b1mrlr" 13650}], ["path", { 13651 d: "M16 13H8", 13652 key: "t4e002" 13653}], ["path", { 13654 d: "M16 17H8", 13655 key: "z1uh3a" 13656}]]); 13657/** 13658 * @license lucide-react v0.453.0 - ISC 13659 * 13660 * This source code is licensed under the ISC license. 13661 * See the LICENSE file in the root directory of this source tree. 13662 */ 13663const AX = Fe("Filter", [["polygon", { 13664 points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3", 13665 key: "1yg77f" 13666}]]); 13667/** 13668 * @license lucide-react v0.453.0 - ISC 13669 * 13670 * This source code is licensed under the ISC license. 13671 * See the LICENSE file in the root directory of this source tree. 13672 */ 13673const EX = Fe("House", [["path", { 13674 d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", 13675 key: "5wwlr5" 13676}], ["path", { 13677 d: "M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z", 13678 key: "1d0kgt" 13679}]]); 13680/** 13681 * @license lucide-react v0.453.0 - ISC 13682 * 13683 * This source code is licensed under the ISC license. 13684 * See the LICENSE file in the root directory of this source tree. 13685 */ 13686const gw = Fe("Key", [["path", { 13687 d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", 13688 key: "g0fldk" 13689}], ["path", { 13690 d: "m21 2-9.6 9.6", 13691 key: "1j0ho8" 13692}], ["circle", { 13693 cx: "7.5", 13694 cy: "15.5", 13695 r: "5.5", 13696 key: "yqb3hr" 13697}]]); 13698/** 13699 * @license lucide-react v0.453.0 - ISC 13700 * 13701 * This source code is licensed under the ISC license. 13702 * See the LICENSE file in the root directory of this source tree. 13703 */ 13704const A4 = Fe("Linkedin", [["path", { 13705 d: "M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z", 13706 key: "c2jq9f" 13707}], ["rect", { 13708 width: "4", 13709 height: "12", 13710 x: "2", 13711 y: "9", 13712 key: "mk3on5" 13713}], ["circle", { 13714 cx: "4", 13715 cy: "4", 13716 r: "2", 13717 key: "bt5ra8" 13718}]]); 13719/** 13720 * @license lucide-react v0.453.0 - ISC 13721 * 13722 * This source code is licensed under the ISC license. 13723 * See the LICENSE file in the root directory of this source tree. 13724 */ 13725const Xy = Fe("LoaderCircle", [["path", { 13726 d: "M21 12a9 9 0 1 1-6.219-8.56", 13727 key: "13zald" 13728}]]); 13729/** 13730 * @license lucide-react v0.453.0 - ISC 13731 * 13732 * This source code is licensed under the ISC license. 13733 * See the LICENSE file in the root directory of this source tree. 13734 */ 13735const E4 = Fe("Lock", [["rect", { 13736 width: "18", 13737 height: "11", 13738 x: "3", 13739 y: "11", 13740 rx: "2", 13741 ry: "2", 13742 key: "1w4ew1" 13743}], ["path", { 13744 d: "M7 11V7a5 5 0 0 1 10 0v4", 13745 key: "fwvmzm" 13746}]]); 13747/** 13748 * @license lucide-react v0.453.0 - ISC 13749 * 13750 * This source code is licensed under the ISC license. 13751 * See the LICENSE file in the root directory of this source tree. 13752 */ 13753const j4 = Fe("LogOut", [["path", { 13754 d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", 13755 key: "1uf3rs" 13756}], ["polyline", { 13757 points: "16 17 21 12 16 7", 13758 key: "1gabdz" 13759}], ["line", { 13760 x1: "21", 13761 x2: "9", 13762 y1: "12", 13763 y2: "12", 13764 key: "1uyos4" 13765}]]); 13766/** 13767 * @license lucide-react v0.453.0 - ISC 13768 * 13769 * This source code is licensed under the ISC license. 13770 * See the LICENSE file in the root directory of this source tree. 13771 */ 13772const jX = Fe("Mail", [["rect", { 13773 width: "20", 13774 height: "16", 13775 x: "2", 13776 y: "4", 13777 rx: "2", 13778 key: "18n3k1" 13779}], ["path", { 13780 d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", 13781 key: "1ocrg3" 13782}]]); 13783/** 13784 * @license lucide-react v0.453.0 - ISC 13785 * 13786 * This source code is licensed under the ISC license. 13787 * See the LICENSE file in the root directory of this source tree. 13788 */ 13789const N4 = Fe("Monitor", [["rect", { 13790 width: "20", 13791 height: "14", 13792 x: "2", 13793 y: "3", 13794 rx: "2", 13795 key: "48i651" 13796}], ["line", { 13797 x1: "8", 13798 x2: "16", 13799 y1: "21", 13800 y2: "21", 13801 key: "1svkeh" 13802}], ["line", { 13803 x1: "12", 13804 x2: "12", 13805 y1: "17", 13806 y2: "21", 13807 key: "vw1qmm" 13808}]]); 13809/** 13810 * @license lucide-react v0.453.0 - ISC 13811 * 13812 * This source code is licensed under the ISC license. 13813 * See the LICENSE file in the root directory of this source tree. 13814 */ 13815const NX = Fe("Network", [["rect", { 13816 x: "16", 13817 y: "16", 13818 width: "6", 13819 height: "6", 13820 rx: "1", 13821 key: "4q2zg0" 13822}], ["rect", { 13823 x: "2", 13824 y: "16", 13825 width: "6", 13826 height: "6", 13827 rx: "1", 13828 key: "8cvhb9" 13829}], ["rect", { 13830 x: "9", 13831 y: "2", 13832 width: "6", 13833 height: "6", 13834 rx: "1", 13835 key: "1egb70" 13836}], ["path", { 13837 d: "M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3", 13838 key: "1jsf9p" 13839}], ["path", { 13840 d: "M12 12V8",
13841 key: "2874zd" 13842}]]); 13843/** 13844 * @license lucide-react v0.453.0 - ISC 13845 * 13846 * This source code is licensed under the ISC license. 13847 * See the LICENSE file in the root directory of this source tree. 13848 */ 13849const cA = Fe("Paperclip", [["path", { 13850 d: "m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48", 13851 key: "1u3ebp" 13852}]]); 13853/** 13854 * @license lucide-react v0.453.0 - ISC 13855 * 13856 * This source code is licensed under the ISC license. 13857 * See the LICENSE file in the root directory of this source tree. 13858 */ 13859const M4 = Fe("Plus", [["path", { 13860 d: "M5 12h14", 13861 key: "1ays0h" 13862}], ["path", { 13863 d: "M12 5v14", 13864 key: "s699le" 13865}]]); 13866/** 13867 * @license lucide-react v0.453.0 - ISC 13868 * 13869 * This source code is licensed under the ISC license. 13870 * See the LICENSE file in the root directory of this source tree. 13871 */ 13872const MX = Fe("Rocket", [["path", { 13873 d: "M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z", 13874 key: "m3kijz" 13875}], ["path", { 13876 d: "m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z", 13877 key: "1fmvmk" 13878}], ["path", { 13879 d: "M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0", 13880 key: "1f8sc4" 13881}], ["path", { 13882 d: "M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5", 13883 key: "qeys4" 13884}]]); 13885/** 13886 * @license lucide-react v0.453.0 - ISC 13887 * 13888 * This source code is licensed under the ISC license. 13889 * See the LICENSE file in the root directory of this source tree. 13890 */ 13891const kX = Fe("Search", [["circle", { 13892 cx: "11", 13893 cy: "11", 13894 r: "8", 13895 key: "4ej97u" 13896}], ["path", { 13897 d: "m21 21-4.3-4.3", 13898 key: "1qie3q" 13899}]]); 13900/** 13901 * @license lucide-react v0.453.0 - ISC 13902 * 13903 * This source code is licensed under the ISC license. 13904 * See the LICENSE file in the root directory of this source tree. 13905 */ 13906const RX = Fe("ServerCog", [["circle", { 13907 cx: "12", 13908 cy: "12", 13909 r: "3", 13910 key: "1v7zrd" 13911}], ["path", { 13912 d: "M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5", 13913 key: "tn8das" 13914}], ["path", { 13915 d: "M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5", 13916 key: "1g2pve" 13917}], ["path", { 13918 d: "M6 6h.01", 13919 key: "1utrut" 13920}], ["path", { 13921 d: "M6 18h.01", 13922 key: "uhywen" 13923}], ["path", { 13924 d: "m15.7 13.4-.9-.3", 13925 key: "1jwmzr" 13926}], ["path", { 13927 d: "m9.2 10.9-.9-.3", 13928 key: "qapnim" 13929}], ["path", { 13930 d: "m10.6 15.7.3-.9", 13931 key: "quwk0k" 13932}], ["path", { 13933 d: "m13.6 15.7-.4-1", 13934 key: "cb9xp7" 13935}], ["path", { 13936 d: "m10.8 9.3-.4-1", 13937 key: "1uaiz5" 13938}], ["path", { 13939 d: "m8.3 13.6 1-.4", 13940 key: "s6srou" 13941}], ["path", { 13942 d: "m14.7 10.8 1-.4",
vendor: 4,760 bytes, lines 13943-14113
13943 key: "4d31cq" 13944}], ["path", { 13945 d: "m13.4 8.3-.3.9", 13946 key: "1bm987" 13947}]]); 13948/** 13949 * @license lucide-react v0.453.0 - ISC 13950 * 13951 * This source code is licensed under the ISC license. 13952 * See the LICENSE file in the root directory of this source tree. 13953 */ 13954const DX = Fe("Server", [["rect", { 13955 width: "20", 13956 height: "8", 13957 x: "2", 13958 y: "2", 13959 rx: "2", 13960 ry: "2", 13961 key: "ngkwjq" 13962}], ["rect", { 13963 width: "20", 13964 height: "8", 13965 x: "2", 13966 y: "14", 13967 rx: "2", 13968 ry: "2", 13969 key: "iecqi9" 13970}], ["line", { 13971 x1: "6", 13972 x2: "6.01", 13973 y1: "6", 13974 y2: "6", 13975 key: "16zg32" 13976}], ["line", { 13977 x1: "6", 13978 x2: "6.01", 13979 y1: "18", 13980 y2: "18", 13981 key: "nzw8ys" 13982}]]); 13983/** 13984 * @license lucide-react v0.453.0 - ISC 13985 * 13986 * This source code is licensed under the ISC license. 13987 * See the LICENSE file in the root directory of this source tree. 13988 */ 13989const k4 = Fe("Settings", [["path", { 13990 d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z", 13991 key: "1qme2f" 13992}], ["circle", { 13993 cx: "12", 13994 cy: "12", 13995 r: "3", 13996 key: "1v7zrd" 13997}]]); 13998/** 13999 * @license lucide-react v0.453.0 - ISC 14000 * 14001 * This source code is licensed under the ISC license. 14002 * See the LICENSE file in the root directory of this source tree. 14003 */ 14004const IX = Fe("Shield", [["path", { 14005 d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z", 14006 key: "oel41y" 14007}]]); 14008/** 14009 * @license lucide-react v0.453.0 - ISC 14010 * 14011 * This source code is licensed under the ISC license. 14012 * See the LICENSE file in the root directory of this source tree. 14013 */ 14014const $X = Fe("Upload", [["path", { 14015 d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", 14016 key: "ih7n3h" 14017}], ["polyline", { 14018 points: "17 8 12 3 7 8", 14019 key: "t8dd8p" 14020}], ["line", { 14021 x1: "12", 14022 x2: "12", 14023 y1: "3", 14024 y2: "15", 14025 key: "widbto" 14026}]]); 14027/** 14028 * @license lucide-react v0.453.0 - ISC 14029 * 14030 * This source code is licensed under the ISC license. 14031 * See the LICENSE file in the root directory of this source tree. 14032 */ 14033const LX = Fe("User", [["path", { 14034 d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", 14035 key: "975kel" 14036}], ["circle", { 14037 cx: "12", 14038 cy: "7", 14039 r: "4", 14040 key: "17ys0d" 14041}]]); 14042/** 14043 * @license lucide-react v0.453.0 - ISC 14044 * 14045 * This source code is licensed under the ISC license. 14046 * See the LICENSE file in the root directory of this source tree. 14047 */ 14048const R4 = Fe("X", [["path", { 14049 d: "M18 6 6 18", 14050 key: "1bl5f8" 14051}], ["path", { 14052 d: "m6 6 12 12", 14053 key: "d8bk6v" 14054}]]); 14055/** 14056 * @license lucide-react v0.453.0 - ISC 14057 * 14058 * This source code is licensed under the ISC license. 14059 * See the LICENSE file in the root directory of this source tree. 14060 */ 14061const D4 = Fe("Youtube", [["path", { 14062 d: "M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17", 14063 key: "1q2vi4" 14064}], ["path", { 14065 d: "m10 15 5-3-5-3z", 14066 key: "1jp15x" 14067}]]) 14068 , BP = "-" 14069 , FX = e => { 14070 const t = VX(e) 14071 , {conflictingClassGroups: n, conflictingClassGroupModifiers: r} = e; 14072 return { 14073 getClassGroupId: a => { 14074 const s = a.split(BP); 14075 return s[0] === "" && s.length !== 1 && s.shift(), 14076 I4(s, t) || BX(a) 14077 } 14078 , 14079 getConflictingClassGroupIds: (a, s) => { 14080 const l = n[a] || []; 14081 return s && r[a] ? [...l, ...r[a]] : l 14082 } 14083 } 14084} 14085 , I4 = (e, t) => { 14086 var a; 14087 if (e.length === 0) 14088 return t.classGroupId; 14089 const n = e[0] 14090 , r = t.nextPart.get(n) 14091 , i = r ? I4(e.slice(1), r) : void 0; 14092 if (i) 14093 return i; 14094 if (t.validators.length === 0) 14095 return; 14096 const o = e.join(BP); 14097 return (a = t.validators.find( ({validator: s}) => s(o))) == null ? void 0 : a.classGroupId 14098} 14099 , uA = /^\[(.+)\]$/ 14100 , BX = e => { 14101 if (uA.test(e)) { 14102 const t = uA.exec(e)[1] 14103 , n = t == null ? void 0 : t.substring(0, t.indexOf(":")); 14104 if (n) 14105 return "arbitrary.." + n 14106 } 14107} 14108 , VX = e => { 14109 const {theme: t, prefix: n} = e 14110 , r = { 14111 nextPart: new Map, 14112 validators: [] 14113 };
vendor: 10,573 bytes, lines 14114-14477
14114 return zX(Object.entries(e.classGroups), n).forEach( ([o,a]) => { 14115 yw(a, r, o, t) 14116 } 14117 ), 14118 r 14119} 14120 , yw = (e, t, n, r) => { 14121 e.forEach(i => { 14122 if (typeof i == "string") { 14123 const o = i === "" ? t : dA(t, i); 14124 o.classGroupId = n; 14125 return 14126 } 14127 if (typeof i == "function") { 14128 if (UX(i)) { 14129 yw(i(r), t, n, r); 14130 return 14131 } 14132 t.validators.push({ 14133 validator: i, 14134 classGroupId: n 14135 }); 14136 return 14137 } 14138 Object.entries(i).forEach( ([o,a]) => { 14139 yw(a, dA(t, o), n, r) 14140 } 14141 ) 14142 } 14143 ) 14144} 14145 , dA = (e, t) => { 14146 let n = e; 14147 return t.split(BP).forEach(r => { 14148 n.nextPart.has(r) || n.nextPart.set(r, { 14149 nextPart: new Map, 14150 validators: [] 14151 }), 14152 n = n.nextPart.get(r) 14153 } 14154 ), 14155 n 14156} 14157 , UX = e => e.isThemeGetter 14158 , zX = (e, t) => t ? e.map( ([n,r]) => { 14159 const i = r.map(o => typeof o == "string" ? t + o : typeof o == "object" ? Object.fromEntries(Object.entries(o).map( ([a,s]) => [t + a, s])) : o); 14160 return [n, i] 14161} 14162) : e 14163 , WX = e => { 14164 if (e < 1) 14165 return { 14166 get: () => {} 14167 , 14168 set: () => {} 14169 }; 14170 let t = 0 14171 , n = new Map 14172 , r = new Map; 14173 const i = (o, a) => { 14174 n.set(o, a), 14175 t++, 14176 t > e && (t = 0, 14177 r = n, 14178 n = new Map) 14179 } 14180 ; 14181 return { 14182 get(o) { 14183 let a = n.get(o); 14184 if (a !== void 0) 14185 return a; 14186 if ((a = r.get(o)) !== void 0) 14187 return i(o, a), 14188 a 14189 }, 14190 set(o, a) { 14191 n.has(o) ? n.set(o, a) : i(o, a) 14192 } 14193 } 14194} 14195 , $4 = "!" 14196 , HX = e => { 14197 const {separator: t, experimentalParseClassName: n} = e 14198 , r = t.length === 1 14199 , i = t[0] 14200 , o = t.length 14201 , a = s => { 14202 const l = []; 14203 let c = 0, u = 0, d; 14204 for (let x = 0; x < s.length; x++) { 14205 let v = s[x]; 14206 if (c === 0) { 14207 if (v === i && (r || s.slice(x, x + o) === t)) { 14208 l.push(s.slice(u, x)), 14209 u = x + o; 14210 continue 14211 } 14212 if (v === "/") { 14213 d = x; 14214 continue 14215 } 14216 } 14217 v === "[" ? c++ : v === "]" && c-- 14218 } 14219 const f = l.length === 0 ? s : s.substring(u) 14220 , p = f.startsWith($4) 14221 , g = p ? f.substring(1) : f 14222 , m = d && d > u ? d - u : void 0; 14223 return { 14224 modifiers: l, 14225 hasImportantModifier: p, 14226 baseClassName: g, 14227 maybePostfixModifierPosition: m 14228 } 14229 } 14230 ; 14231 return n ? s => n({ 14232 className: s, 14233 parseClassName: a 14234 }) : a 14235} 14236 , qX = e => { 14237 if (e.length <= 1) 14238 return e; 14239 const t = []; 14240 let n = []; 14241 return e.forEach(r => { 14242 r[0] === "[" ? (t.push(...n.sort(), r), 14243 n = []) : n.push(r) 14244 } 14245 ), 14246 t.push(...n.sort()), 14247 t 14248} 14249 , KX = e => ({ 14250 cache: WX(e.cacheSize), 14251 parseClassName: HX(e), 14252 ...FX(e) 14253}) 14254 , GX = /\s+/ 14255 , YX = (e, t) => { 14256 const {parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i} = t 14257 , o = [] 14258 , a = e.trim().split(GX); 14259 let s = ""; 14260 for (let l = a.length - 1; l >= 0; l -= 1) { 14261 const c = a[l] 14262 , {modifiers: u, hasImportantModifier: d, baseClassName: f, maybePostfixModifierPosition: p} = n(c); 14263 let g = !!p 14264 , m = r(g ? f.substring(0, p) : f); 14265 if (!m) { 14266 if (!g) { 14267 s = c + (s.length > 0 ? " " + s : s); 14268 continue 14269 } 14270 if (m = r(f), 14271 !m) { 14272 s = c + (s.length > 0 ? " " + s : s); 14273 continue 14274 } 14275 g = !1 14276 } 14277 const x = qX(u).join(":") 14278 , v = d ? x + $4 : x 14279 , y = v + m; 14280 if (o.includes(y)) 14281 continue; 14282 o.push(y); 14283 const w = i(m, g); 14284 for (let P = 0; P < w.length; ++P) { 14285 const S = w[P]; 14286 o.push(v + S) 14287 } 14288 s = c + (s.length > 0 ? " " + s : s) 14289 } 14290 return s 14291} 14292; 14293function XX() { 14294 let e = 0, t, n, r = ""; 14295 for (; e < arguments.length; ) 14296 (t = arguments[e++]) && (n = L4(t)) && (r && (r += " "), 14297 r += n); 14298 return r 14299} 14300const L4 = e => { 14301 if (typeof e == "string") 14302 return e; 14303 let t, n = ""; 14304 for (let r = 0; r < e.length; r++) 14305 e[r] && (t = L4(e[r])) && (n && (n += " "), 14306 n += t); 14307 return n 14308} 14309; 14310function QX(e, ...t) { 14311 let n, r, i, o = a; 14312 function a(l) { 14313 const c = t.reduce( (u, d) => d(u), e()); 14314 return n = KX(c), 14315 r = n.cache.get, 14316 i = n.cache.set, 14317 o = s, 14318 s(l) 14319 } 14320 function s(l) { 14321 const c = r(l); 14322 if (c) 14323 return c; 14324 const u = YX(l, n); 14325 return i(l, u), 14326 u 14327 } 14328 return function() { 14329 return o(XX.apply(null, arguments)) 14330 } 14331} 14332const ft = e => { 14333 const t = n => n[e] || []; 14334 return t.isThemeGetter = !0, 14335 t 14336} 14337 , F4 = /^\[(?:([a-z-]+):)?(.+)\]$/i 14338 , ZX = /^\d+\/\d+$/ 14339 , JX = new Set(["px", "full", "screen"]) 14340 , eQ = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/ 14341 , tQ = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/ 14342 , nQ = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/ 14343 , rQ = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/ 14344 , iQ = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/ 14345 , Ji = e => Kl(e) || JX.has(e) || ZX.test(e) 14346 , Bo = e => ou(e, "length", fQ) 14347 , Kl = e => !!e && !Number.isNaN(Number(e)) 14348 , Z0 = e => ou(e, "number", Kl) 14349 , Iu = e => !!e && Number.isInteger(Number(e)) 14350 , oQ = e => e.endsWith("%") && Kl(e.slice(0, -1)) 14351 , De = e => F4.test(e) 14352 , Vo = e => eQ.test(e) 14353 , aQ = new Set(["length", "size", "percentage"]) 14354 , sQ = e => ou(e, aQ, B4) 14355 , lQ = e => ou(e, "position", B4) 14356 , cQ = new Set(["image", "url"]) 14357 , uQ = e => ou(e, cQ, pQ) 14358 , dQ = e => ou(e, "", hQ) 14359 , $u = () => !0 14360 , ou = (e, t, n) => { 14361 const r = F4.exec(e); 14362 return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1 14363} 14364 , fQ = e => tQ.test(e) && !nQ.test(e) 14365 , B4 = () => !1 14366 , hQ = e => rQ.test(e) 14367 , pQ = e => iQ.test(e) 14368 , mQ = () => { 14369 const e = ft("colors") 14370 , t = ft("spacing") 14371 , n = ft("blur") 14372 , r = ft("brightness") 14373 , i = ft("borderColor") 14374 , o = ft("borderRadius") 14375 , a = ft("borderSpacing") 14376 , s = ft("borderWidth") 14377 , l = ft("contrast") 14378 , c = ft("grayscale") 14379 , u = ft("hueRotate") 14380 , d = ft("invert") 14381 , f = ft("gap") 14382 , p = ft("gradientColorStops") 14383 , g = ft("gradientColorStopPositions") 14384 , m = ft("inset") 14385 , x = ft("margin") 14386 , v = ft("opacity") 14387 , y = ft("padding") 14388 , w = ft("saturate") 14389 , P = ft("scale") 14390 , S = ft("sepia") 14391 , _ = ft("skew") 14392 , T = ft("space") 14393 , C = ft("translate") 14394 , O = () => ["auto", "contain", "none"] 14395 , A = () => ["auto", "hidden", "clip", "visible", "scroll"] 14396 , E = () => ["auto", De, t] 14397 , j = () => [De, t] 14398 , $ = () => ["", Ji, Bo] 14399 , R = () => ["auto", Kl, De] 14400 , L = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"] 14401 , B = () => ["solid", "dashed", "dotted", "double", "none"] 14402 , U = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"] 14403 , N = () => ["start", "end", "center", "between", "around", "evenly", "stretch"] 14404 , D = () => ["", "0", De] 14405 , W = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"] 14406 , K = () => [Kl, De]; 14407 return { 14408 cacheSize: 500, 14409 separator: ":", 14410 theme: { 14411 colors: [$u], 14412 spacing: [Ji, Bo], 14413 blur: ["none", "", Vo, De], 14414 brightness: K(), 14415 borderColor: [e], 14416 borderRadius: ["none", "", "full", Vo, De], 14417 borderSpacing: j(), 14418 borderWidth: $(), 14419 contrast: K(), 14420 grayscale: D(), 14421 hueRotate: K(), 14422 invert: D(), 14423 gap: j(), 14424 gradientColorStops: [e], 14425 gradientColorStopPositions: [oQ, Bo], 14426 inset: E(), 14427 margin: E(), 14428 opacity: K(), 14429 padding: j(), 14430 saturate: K(), 14431 scale: K(), 14432 sepia: D(), 14433 skew: K(), 14434 space: j(), 14435 translate: j() 14436 }, 14437 classGroups: { 14438 aspect: [{ 14439 aspect: ["auto", "square", "video", De] 14440 }], 14441 container: ["container"], 14442 columns: [{ 14443 columns: [Vo] 14444 }], 14445 "break-after": [{ 14446 "break-after": W() 14447 }], 14448 "break-before": [{ 14449 "break-before": W() 14450 }], 14451 "break-inside": [{ 14452 "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] 14453 }], 14454 "box-decoration": [{ 14455 "box-decoration": ["slice", "clone"] 14456 }], 14457 box: [{ 14458 box: ["border", "content"] 14459 }], 14460 display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"], 14461 float: [{ 14462 float: ["right", "left", "none", "start", "end"] 14463 }], 14464 clear: [{ 14465 clear: ["left", "right", "both", "none", "start", "end"] 14466 }], 14467 isolation: ["isolate", "isolation-auto"], 14468 "object-fit": [{ 14469 object: ["contain", "cover", "fill", "none", "scale-down"] 14470 }], 14471 "object-position": [{ 14472 object: [...L(), De] 14473 }], 14474 overflow: [{ 14475 overflow: A() 14476 }], 14477 "overflow-x": [{
vendor: 22,965 bytes, lines 14478-15249
14478 "overflow-x": A() 14479 }], 14480 "overflow-y": [{ 14481 "overflow-y": A() 14482 }], 14483 overscroll: [{ 14484 overscroll: O() 14485 }], 14486 "overscroll-x": [{ 14487 "overscroll-x": O() 14488 }], 14489 "overscroll-y": [{ 14490 "overscroll-y": O() 14491 }], 14492 position: ["static", "fixed", "absolute", "relative", "sticky"], 14493 inset: [{ 14494 inset: [m] 14495 }], 14496 "inset-x": [{ 14497 "inset-x": [m] 14498 }], 14499 "inset-y": [{ 14500 "inset-y": [m] 14501 }], 14502 start: [{ 14503 start: [m] 14504 }], 14505 end: [{ 14506 end: [m] 14507 }], 14508 top: [{ 14509 top: [m] 14510 }], 14511 right: [{ 14512 right: [m] 14513 }], 14514 bottom: [{ 14515 bottom: [m] 14516 }], 14517 left: [{ 14518 left: [m] 14519 }], 14520 visibility: ["visible", "invisible", "collapse"], 14521 z: [{ 14522 z: ["auto", Iu, De] 14523 }], 14524 basis: [{ 14525 basis: E() 14526 }], 14527 "flex-direction": [{ 14528 flex: ["row", "row-reverse", "col", "col-reverse"] 14529 }], 14530 "flex-wrap": [{ 14531 flex: ["wrap", "wrap-reverse", "nowrap"] 14532 }], 14533 flex: [{ 14534 flex: ["1", "auto", "initial", "none", De] 14535 }], 14536 grow: [{ 14537 grow: D() 14538 }], 14539 shrink: [{ 14540 shrink: D() 14541 }], 14542 order: [{ 14543 order: ["first", "last", "none", Iu, De] 14544 }], 14545 "grid-cols": [{ 14546 "grid-cols": [$u] 14547 }], 14548 "col-start-end": [{ 14549 col: ["auto", { 14550 span: ["full", Iu, De] 14551 }, De] 14552 }], 14553 "col-start": [{ 14554 "col-start": R() 14555 }], 14556 "col-end": [{ 14557 "col-end": R() 14558 }], 14559 "grid-rows": [{ 14560 "grid-rows": [$u] 14561 }], 14562 "row-start-end": [{ 14563 row: ["auto", { 14564 span: [Iu, De] 14565 }, De] 14566 }], 14567 "row-start": [{ 14568 "row-start": R() 14569 }], 14570 "row-end": [{ 14571 "row-end": R() 14572 }], 14573 "grid-flow": [{ 14574 "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] 14575 }], 14576 "auto-cols": [{ 14577 "auto-cols": ["auto", "min", "max", "fr", De] 14578 }], 14579 "auto-rows": [{ 14580 "auto-rows": ["auto", "min", "max", "fr", De] 14581 }], 14582 gap: [{ 14583 gap: [f] 14584 }], 14585 "gap-x": [{ 14586 "gap-x": [f] 14587 }], 14588 "gap-y": [{ 14589 "gap-y": [f] 14590 }], 14591 "justify-content": [{ 14592 justify: ["normal", ...N()] 14593 }], 14594 "justify-items": [{ 14595 "justify-items": ["start", "end", "center", "stretch"] 14596 }], 14597 "justify-self": [{ 14598 "justify-self": ["auto", "start", "end", "center", "stretch"] 14599 }], 14600 "align-content": [{ 14601 content: ["normal", ...N(), "baseline"] 14602 }], 14603 "align-items": [{ 14604 items: ["start", "end", "center", "baseline", "stretch"] 14605 }], 14606 "align-self": [{ 14607 self: ["auto", "start", "end", "center", "stretch", "baseline"] 14608 }], 14609 "place-content": [{ 14610 "place-content": [...N(), "baseline"] 14611 }], 14612 "place-items": [{ 14613 "place-items": ["start", "end", "center", "baseline", "stretch"] 14614 }], 14615 "place-self": [{ 14616 "place-self": ["auto", "start", "end", "center", "stretch"] 14617 }], 14618 p: [{ 14619 p: [y] 14620 }], 14621 px: [{ 14622 px: [y] 14623 }], 14624 py: [{ 14625 py: [y] 14626 }], 14627 ps: [{ 14628 ps: [y] 14629 }], 14630 pe: [{ 14631 pe: [y] 14632 }], 14633 pt: [{ 14634 pt: [y] 14635 }], 14636 pr: [{ 14637 pr: [y] 14638 }], 14639 pb: [{ 14640 pb: [y] 14641 }], 14642 pl: [{ 14643 pl: [y] 14644 }], 14645 m: [{ 14646 m: [x] 14647 }], 14648 mx: [{ 14649 mx: [x] 14650 }], 14651 my: [{ 14652 my: [x] 14653 }], 14654 ms: [{ 14655 ms: [x] 14656 }], 14657 me: [{ 14658 me: [x] 14659 }], 14660 mt: [{ 14661 mt: [x] 14662 }], 14663 mr: [{ 14664 mr: [x] 14665 }], 14666 mb: [{ 14667 mb: [x] 14668 }], 14669 ml: [{ 14670 ml: [x] 14671 }], 14672 "space-x": [{ 14673 "space-x": [T] 14674 }], 14675 "space-x-reverse": ["space-x-reverse"], 14676 "space-y": [{ 14677 "space-y": [T] 14678 }], 14679 "space-y-reverse": ["space-y-reverse"], 14680 w: [{ 14681 w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", De, t] 14682 }], 14683 "min-w": [{ 14684 "min-w": [De, t, "min", "max", "fit"] 14685 }], 14686 "max-w": [{ 14687 "max-w": [De, t, "none", "full", "min", "max", "fit", "prose", { 14688 screen: [Vo] 14689 }, Vo] 14690 }], 14691 h: [{ 14692 h: [De, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"] 14693 }], 14694 "min-h": [{ 14695 "min-h": [De, t, "min", "max", "fit", "svh", "lvh", "dvh"] 14696 }], 14697 "max-h": [{ 14698 "max-h": [De, t, "min", "max", "fit", "svh", "lvh", "dvh"] 14699 }], 14700 size: [{ 14701 size: [De, t, "auto", "min", "max", "fit"] 14702 }], 14703 "font-size": [{ 14704 text: ["base", Vo, Bo] 14705 }], 14706 "font-smoothing": ["antialiased", "subpixel-antialiased"], 14707 "font-style": ["italic", "not-italic"], 14708 "font-weight": [{ 14709 font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Z0] 14710 }], 14711 "font-family": [{ 14712 font: [$u] 14713 }], 14714 "fvn-normal": ["normal-nums"], 14715 "fvn-ordinal": ["ordinal"], 14716 "fvn-slashed-zero": ["slashed-zero"], 14717 "fvn-figure": ["lining-nums", "oldstyle-nums"], 14718 "fvn-spacing": ["proportional-nums", "tabular-nums"], 14719 "fvn-fraction": ["diagonal-fractions", "stacked-fractions"], 14720 tracking: [{ 14721 tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", De] 14722 }], 14723 "line-clamp": [{ 14724 "line-clamp": ["none", Kl, Z0] 14725 }], 14726 leading: [{ 14727 leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Ji, De] 14728 }], 14729 "list-image": [{ 14730 "list-image": ["none", De] 14731 }], 14732 "list-style-type": [{ 14733 list: ["none", "disc", "decimal", De] 14734 }], 14735 "list-style-position": [{ 14736 list: ["inside", "outside"] 14737 }], 14738 "placeholder-color": [{ 14739 placeholder: [e] 14740 }], 14741 "placeholder-opacity": [{ 14742 "placeholder-opacity": [v] 14743 }], 14744 "text-alignment": [{ 14745 text: ["left", "center", "right", "justify", "start", "end"] 14746 }], 14747 "text-color": [{ 14748 text: [e] 14749 }], 14750 "text-opacity": [{ 14751 "text-opacity": [v] 14752 }], 14753 "text-decoration": ["underline", "overline", "line-through", "no-underline"], 14754 "text-decoration-style": [{ 14755 decoration: [...B(), "wavy"] 14756 }], 14757 "text-decoration-thickness": [{ 14758 decoration: ["auto", "from-font", Ji, Bo] 14759 }], 14760 "underline-offset": [{ 14761 "underline-offset": ["auto", Ji, De] 14762 }], 14763 "text-decoration-color": [{ 14764 decoration: [e] 14765 }], 14766 "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], 14767 "text-overflow": ["truncate", "text-ellipsis", "text-clip"], 14768 "text-wrap": [{ 14769 text: ["wrap", "nowrap", "balance", "pretty"] 14770 }], 14771 indent: [{ 14772 indent: j() 14773 }], 14774 "vertical-align": [{ 14775 align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", De] 14776 }], 14777 whitespace: [{ 14778 whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] 14779 }], 14780 break: [{ 14781 break: ["normal", "words", "all", "keep"] 14782 }], 14783 hyphens: [{ 14784 hyphens: ["none", "manual", "auto"] 14785 }], 14786 content: [{ 14787 content: ["none", De] 14788 }], 14789 "bg-attachment": [{ 14790 bg: ["fixed", "local", "scroll"] 14791 }], 14792 "bg-clip": [{ 14793 "bg-clip": ["border", "padding", "content", "text"] 14794 }], 14795 "bg-opacity": [{ 14796 "bg-opacity": [v] 14797 }], 14798 "bg-origin": [{ 14799 "bg-origin": ["border", "padding", "content"] 14800 }], 14801 "bg-position": [{ 14802 bg: [...L(), lQ] 14803 }], 14804 "bg-repeat": [{ 14805 bg: ["no-repeat", { 14806 repeat: ["", "x", "y", "round", "space"] 14807 }] 14808 }], 14809 "bg-size": [{ 14810 bg: ["auto", "cover", "contain", sQ] 14811 }], 14812 "bg-image": [{ 14813 bg: ["none", { 14814 "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"] 14815 }, uQ] 14816 }], 14817 "bg-color": [{ 14818 bg: [e] 14819 }], 14820 "gradient-from-pos": [{ 14821 from: [g] 14822 }], 14823 "gradient-via-pos": [{ 14824 via: [g] 14825 }], 14826 "gradient-to-pos": [{ 14827 to: [g] 14828 }], 14829 "gradient-from": [{ 14830 from: [p] 14831 }], 14832 "gradient-via": [{ 14833 via: [p] 14834 }], 14835 "gradient-to": [{ 14836 to: [p] 14837 }], 14838 rounded: [{ 14839 rounded: [o] 14840 }], 14841 "rounded-s": [{ 14842 "rounded-s": [o] 14843 }], 14844 "rounded-e": [{ 14845 "rounded-e": [o] 14846 }], 14847 "rounded-t": [{ 14848 "rounded-t": [o] 14849 }], 14850 "rounded-r": [{ 14851 "rounded-r": [o] 14852 }], 14853 "rounded-b": [{ 14854 "rounded-b": [o] 14855 }], 14856 "rounded-l": [{ 14857 "rounded-l": [o] 14858 }], 14859 "rounded-ss": [{ 14860 "rounded-ss": [o] 14861 }], 14862 "rounded-se": [{ 14863 "rounded-se": [o] 14864 }], 14865 "rounded-ee": [{ 14866 "rounded-ee": [o] 14867 }], 14868 "rounded-es": [{ 14869 "rounded-es": [o] 14870 }], 14871 "rounded-tl": [{ 14872 "rounded-tl": [o] 14873 }], 14874 "rounded-tr": [{ 14875 "rounded-tr": [o] 14876 }], 14877 "rounded-br": [{ 14878 "rounded-br": [o] 14879 }], 14880 "rounded-bl": [{ 14881 "rounded-bl": [o] 14882 }], 14883 "border-w": [{ 14884 border: [s] 14885 }], 14886 "border-w-x": [{ 14887 "border-x": [s] 14888 }], 14889 "border-w-y": [{ 14890 "border-y": [s] 14891 }], 14892 "border-w-s": [{ 14893 "border-s": [s] 14894 }], 14895 "border-w-e": [{ 14896 "border-e": [s] 14897 }], 14898 "border-w-t": [{ 14899 "border-t": [s] 14900 }], 14901 "border-w-r": [{ 14902 "border-r": [s] 14903 }], 14904 "border-w-b": [{ 14905 "border-b": [s] 14906 }], 14907 "border-w-l": [{ 14908 "border-l": [s] 14909 }], 14910 "border-opacity": [{ 14911 "border-opacity": [v] 14912 }], 14913 "border-style": [{ 14914 border: [...B(), "hidden"] 14915 }], 14916 "divide-x": [{ 14917 "divide-x": [s] 14918 }], 14919 "divide-x-reverse": ["divide-x-reverse"], 14920 "divide-y": [{ 14921 "divide-y": [s] 14922 }], 14923 "divide-y-reverse": ["divide-y-reverse"], 14924 "divide-opacity": [{ 14925 "divide-opacity": [v] 14926 }], 14927 "divide-style": [{ 14928 divide: B() 14929 }], 14930 "border-color": [{ 14931 border: [i] 14932 }], 14933 "border-color-x": [{ 14934 "border-x": [i] 14935 }], 14936 "border-color-y": [{ 14937 "border-y": [i] 14938 }], 14939 "border-color-s": [{ 14940 "border-s": [i] 14941 }], 14942 "border-color-e": [{ 14943 "border-e": [i] 14944 }], 14945 "border-color-t": [{ 14946 "border-t": [i] 14947 }], 14948 "border-color-r": [{ 14949 "border-r": [i] 14950 }], 14951 "border-color-b": [{ 14952 "border-b": [i] 14953 }], 14954 "border-color-l": [{ 14955 "border-l": [i] 14956 }], 14957 "divide-color": [{ 14958 divide: [i] 14959 }], 14960 "outline-style": [{ 14961 outline: ["", ...B()] 14962 }], 14963 "outline-offset": [{ 14964 "outline-offset": [Ji, De] 14965 }], 14966 "outline-w": [{ 14967 outline: [Ji, Bo] 14968 }], 14969 "outline-color": [{ 14970 outline: [e] 14971 }], 14972 "ring-w": [{ 14973 ring: $() 14974 }], 14975 "ring-w-inset": ["ring-inset"], 14976 "ring-color": [{ 14977 ring: [e] 14978 }], 14979 "ring-opacity": [{ 14980 "ring-opacity": [v] 14981 }], 14982 "ring-offset-w": [{ 14983 "ring-offset": [Ji, Bo] 14984 }], 14985 "ring-offset-color": [{ 14986 "ring-offset": [e] 14987 }], 14988 shadow: [{ 14989 shadow: ["", "inner", "none", Vo, dQ] 14990 }], 14991 "shadow-color": [{ 14992 shadow: [$u] 14993 }], 14994 opacity: [{ 14995 opacity: [v] 14996 }], 14997 "mix-blend": [{ 14998 "mix-blend": [...U(), "plus-lighter", "plus-darker"] 14999 }], 15000 "bg-blend": [{ 15001 "bg-blend": U() 15002 }], 15003 filter: [{ 15004 filter: ["", "none"] 15005 }], 15006 blur: [{ 15007 blur: [n] 15008 }], 15009 brightness: [{ 15010 brightness: [r] 15011 }], 15012 contrast: [{ 15013 contrast: [l] 15014 }], 15015 "drop-shadow": [{ 15016 "drop-shadow": ["", "none", Vo, De] 15017 }], 15018 grayscale: [{ 15019 grayscale: [c] 15020 }], 15021 "hue-rotate": [{ 15022 "hue-rotate": [u] 15023 }], 15024 invert: [{ 15025 invert: [d] 15026 }], 15027 saturate: [{ 15028 saturate: [w] 15029 }], 15030 sepia: [{ 15031 sepia: [S] 15032 }], 15033 "backdrop-filter": [{ 15034 "backdrop-filter": ["", "none"] 15035 }], 15036 "backdrop-blur": [{ 15037 "backdrop-blur": [n] 15038 }], 15039 "backdrop-brightness": [{ 15040 "backdrop-brightness": [r] 15041 }], 15042 "backdrop-contrast": [{ 15043 "backdrop-contrast": [l] 15044 }], 15045 "backdrop-grayscale": [{ 15046 "backdrop-grayscale": [c] 15047 }], 15048 "backdrop-hue-rotate": [{ 15049 "backdrop-hue-rotate": [u] 15050 }], 15051 "backdrop-invert": [{ 15052 "backdrop-invert": [d] 15053 }], 15054 "backdrop-opacity": [{ 15055 "backdrop-opacity": [v] 15056 }], 15057 "backdrop-saturate": [{ 15058 "backdrop-saturate": [w] 15059 }], 15060 "backdrop-sepia": [{ 15061 "backdrop-sepia": [S] 15062 }], 15063 "border-collapse": [{ 15064 border: ["collapse", "separate"] 15065 }], 15066 "border-spacing": [{ 15067 "border-spacing": [a] 15068 }], 15069 "border-spacing-x": [{ 15070 "border-spacing-x": [a] 15071 }], 15072 "border-spacing-y": [{ 15073 "border-spacing-y": [a] 15074 }], 15075 "table-layout": [{ 15076 table: ["auto", "fixed"] 15077 }], 15078 caption: [{ 15079 caption: ["top", "bottom"] 15080 }], 15081 transition: [{ 15082 transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", De] 15083 }], 15084 duration: [{ 15085 duration: K() 15086 }], 15087 ease: [{ 15088 ease: ["linear", "in", "out", "in-out", De] 15089 }], 15090 delay: [{ 15091 delay: K() 15092 }], 15093 animate: [{ 15094 animate: ["none", "spin", "ping", "pulse", "bounce", De] 15095 }], 15096 transform: [{ 15097 transform: ["", "gpu", "none"] 15098 }], 15099 scale: [{ 15100 scale: [P] 15101 }], 15102 "scale-x": [{ 15103 "scale-x": [P] 15104 }], 15105 "scale-y": [{ 15106 "scale-y": [P] 15107 }], 15108 rotate: [{ 15109 rotate: [Iu, De] 15110 }], 15111 "translate-x": [{ 15112 "translate-x": [C] 15113 }], 15114 "translate-y": [{ 15115 "translate-y": [C] 15116 }], 15117 "skew-x": [{ 15118 "skew-x": [_] 15119 }], 15120 "skew-y": [{ 15121 "skew-y": [_] 15122 }], 15123 "transform-origin": [{ 15124 origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", De] 15125 }], 15126 accent: [{ 15127 accent: ["auto", e] 15128 }], 15129 appearance: [{ 15130 appearance: ["none", "auto"] 15131 }], 15132 cursor: [{ 15133 cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", De] 15134 }], 15135 "caret-color": [{ 15136 caret: [e] 15137 }], 15138 "pointer-events": [{ 15139 "pointer-events": ["none", "auto"] 15140 }], 15141 resize: [{ 15142 resize: ["none", "y", "x", ""] 15143 }], 15144 "scroll-behavior": [{ 15145 scroll: ["auto", "smooth"] 15146 }], 15147 "scroll-m": [{ 15148 "scroll-m": j() 15149 }], 15150 "scroll-mx": [{ 15151 "scroll-mx": j() 15152 }], 15153 "scroll-my": [{ 15154 "scroll-my": j() 15155 }], 15156 "scroll-ms": [{ 15157 "scroll-ms": j() 15158 }], 15159 "scroll-me": [{ 15160 "scroll-me": j() 15161 }], 15162 "scroll-mt": [{ 15163 "scroll-mt": j() 15164 }], 15165 "scroll-mr": [{ 15166 "scroll-mr": j() 15167 }], 15168 "scroll-mb": [{ 15169 "scroll-mb": j() 15170 }], 15171 "scroll-ml": [{ 15172 "scroll-ml": j() 15173 }], 15174 "scroll-p": [{ 15175 "scroll-p": j() 15176 }], 15177 "scroll-px": [{ 15178 "scroll-px": j() 15179 }], 15180 "scroll-py": [{ 15181 "scroll-py": j() 15182 }], 15183 "scroll-ps": [{ 15184 "scroll-ps": j() 15185 }], 15186 "scroll-pe": [{ 15187 "scroll-pe": j() 15188 }], 15189 "scroll-pt": [{ 15190 "scroll-pt": j() 15191 }], 15192 "scroll-pr": [{ 15193 "scroll-pr": j() 15194 }], 15195 "scroll-pb": [{ 15196 "scroll-pb": j() 15197 }], 15198 "scroll-pl": [{ 15199 "scroll-pl": j() 15200 }], 15201 "snap-align": [{ 15202 snap: ["start", "end", "center", "align-none"] 15203 }], 15204 "snap-stop": [{ 15205 snap: ["normal", "always"] 15206 }], 15207 "snap-type": [{ 15208 snap: ["none", "x", "y", "both"] 15209 }], 15210 "snap-strictness": [{ 15211 snap: ["mandatory", "proximity"] 15212 }], 15213 touch: [{ 15214 touch: ["auto", "none", "manipulation"] 15215 }], 15216 "touch-x": [{ 15217 "touch-pan": ["x", "left", "right"] 15218 }], 15219 "touch-y": [{ 15220 "touch-pan": ["y", "up", "down"] 15221 }], 15222 "touch-pz": ["touch-pinch-zoom"], 15223 select: [{ 15224 select: ["none", "text", "all", "auto"] 15225 }], 15226 "will-change": [{ 15227 "will-change": ["auto", "scroll", "contents", "transform", De] 15228 }], 15229 fill: [{ 15230 fill: [e, "none"] 15231 }], 15232 "stroke-w": [{ 15233 stroke: [Ji, Bo, Z0] 15234 }], 15235 stroke: [{ 15236 stroke: [e, "none"] 15237 }], 15238 sr: ["sr-only", "not-sr-only"], 15239 "forced-color-adjust": [{ 15240 "forced-color-adjust": ["auto", "none"] 15241 }] 15242 }, 15243 conflictingClassGroups: { 15244 overflow: ["overflow-x", "overflow-y"], 15245 overscroll: ["overscroll-x", "overscroll-y"], 15246 inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"], 15247 "inset-x": ["right", "left"], 15248 "inset-y": ["top", "bottom"], 15249 flex: ["basis", "grow", "shrink"],
15250 gap: ["gap-x", "gap-y"], 15251 p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"], 15252 px: ["pr", "pl"], 15253 py: ["pt", "pb"], 15254 m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"], 15255 mx: ["mr", "ml"], 15256 my: ["mt", "mb"], 15257 size: ["w", "h"], 15258 "font-size": ["leading"], 15259 "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"], 15260 "fvn-ordinal": ["fvn-normal"], 15261 "fvn-slashed-zero": ["fvn-normal"], 15262 "fvn-figure": ["fvn-normal"], 15263 "fvn-spacing": ["fvn-normal"], 15264 "fvn-fraction": ["fvn-normal"], 15265 "line-clamp": ["display", "overflow"], 15266 rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"], 15267 "rounded-s": ["rounded-ss", "rounded-es"], 15268 "rounded-e": ["rounded-se", "rounded-ee"], 15269 "rounded-t": ["rounded-tl", "rounded-tr"], 15270 "rounded-r": ["rounded-tr", "rounded-br"], 15271 "rounded-b": ["rounded-br", "rounded-bl"], 15272 "rounded-l": ["rounded-tl", "rounded-bl"], 15273 "border-spacing": ["border-spacing-x", "border-spacing-y"], 15274 "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"], 15275 "border-w-x": ["border-w-r", "border-w-l"], 15276 "border-w-y": ["border-w-t", "border-w-b"], 15277 "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"], 15278 "border-color-x": ["border-color-r", "border-color-l"], 15279 "border-color-y": ["border-color-t", "border-color-b"], 15280 "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"], 15281 "scroll-mx": ["scroll-mr", "scroll-ml"], 15282 "scroll-my": ["scroll-mt", "scroll-mb"], 15283 "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"], 15284 "scroll-px": ["scroll-pr", "scroll-pl"], 15285 "scroll-py": ["scroll-pt", "scroll-pb"], 15286 touch: ["touch-x", "touch-y", "touch-pz"], 15287 "touch-x": ["touch"], 15288 "touch-y": ["touch"], 15289 "touch-pz": ["touch"] 15290 }, 15291 conflictingClassGroupModifiers: { 15292 "font-size": ["leading"] 15293 } 15294 } 15295} 15296 , gQ = QX(mQ); 15297function fe(...e) { 15298 return gQ(Ge(e)) 15299} 15300const yQ = gX 15301 , V4 = b.forwardRef( ({className: e, ...t}, n) => h.jsx(g4, { 15302 ref: n, 15303 className: fe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]", e), 15304 ...t 15305})); 15306V4.displayName = g4.displayName; 15307const vQ = Ch("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", { 15308 variants: { 15309 variant: { 15310 default: "border bg-background text-foreground", 15311 destructive: "destructive group border-destructive bg-destructive text-destructive-foreground" 15312 } 15313 }, 15314 defaultVariants: { 15315 variant: "default" 15316 } 15317}) 15318 , U4 = b.forwardRef( ({className: e, variant: t, ...n}, r) => h.jsx(y4, { 15319 ref: r, 15320 className: fe(vQ({ 15321 variant: t 15322 }), e), 15323 ...n 15324})); 15325U4.displayName = y4.displayName; 15326const xQ = b.forwardRef( ({className: e, ...t}, n) => h.jsx(b4, { 15327 ref: n, 15328 className: fe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive", e), 15329 ...t 15330})); 15331xQ.displayName = b4.displayName; 15332const z4 = b.forwardRef( ({className: e, ...t}, n) => h.jsx(w4, { 15333 ref: n, 15334 className: fe("absolute right-2 top-2 rounded-md p-1 text-foreground
15334/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", e), 15335 "toast-close": "", 15336 ...t, 15337 children: h.jsx(R4, { 15338 className: "h-4 w-4" 15339 }) 15340})); 15341z4.displayName = w4.displayName; 15342const W4 = b.forwardRef( ({className: e, ...t}, n) => h.jsx(v4, { 15343 ref: n, 15344 className: fe("text-sm font-semibold", e), 15345 ...t 15346})); 15347W4.displayName = v4.displayName; 15348const H4 = b.forwardRef( ({className: e, ...t}, n) => h.jsx(x4, { 15349 ref: n, 15350 className: fe("text-sm opacity-90", e), 15351 ...t 15352})); 15353H4.displayName = x4.displayName; 15354function bQ() { 15355 const {toasts: e} = Fa(); 15356 return h.jsxs(yQ, { 15357 children: [e.map(function({id: t, title: n, description: r, action: i, ...o}) { 15358 return h.jsxs(U4, { 15359 ...o, 15360 children: [h.jsxs("div", { 15361 className: "grid gap-1", 15362 children: [n && h.jsx(W4, { 15363 children: n 15364 }), r && h.jsx(H4, { 15365 children: r 15366 })] 15367 }), i, h.jsx(z4, {})] 15368 }, t) 15369 }), h.jsx(V4, {})] 15370 }) 15371} 15372const cn = b.forwardRef( ({className: e, ...t}, n) => h.jsx("div", { 15373 ref: n, 15374 className: fe("rounded-lg border bg-card text-card-foreground shadow-sm", e), 15375 ...t 15376})); 15377cn.displayName = "Card"; 15378const Kt = b.forwardRef( ({className: e, ...t}, n) => h.jsx("div", { 15379 ref: n, 15380 className: fe("flex flex-col space-y-1.5 p-6", e), 15381 ...t 15382})); 15383Kt.displayName = "CardHeader"; 15384const Gt = b.forwardRef( ({className: e, ...t}, n) => h.jsx("h3", { 15385 ref: n, 15386 className: fe("text-2xl font-semibold leading-none tracking-tight", e), 15387 ...t 15388})); 15389Gt.displayName = "CardTitle"; 15390const od = b.forwardRef( ({className: e, ...t}, n) => h.jsx("p", { 15391 ref: n, 15392 className: fe("text-sm text-muted-foreground", e), 15393 ...t 15394})); 15395od.displayName = "CardDescription"; 15396const Ct = b.forwardRef( ({className: e, ...t}, n) => h.jsx("div", { 15397 ref: n, 15398 className: fe("p-6 pt-0", e), 15399 ...t 15400})); 15401Ct.displayName = "CardContent"; 15402const q4 = b.forwardRef( ({className: e, ...t}, n) => h.jsx("div", { 15403 ref: n, 15404 className: fe("flex items-center p-6 pt-0", e), 15405 ...t 15406})); 15407q4.displayName = "CardFooter"; 15408function wQ() { 15409 return h.jsx("div", { 15410 className: "min-h-screen w-full flex items-center justify-center bg-gray-50", 15411 children: h.jsx(cn, { 15412 className: "w-full max-w-md mx-4", 15413 children: h.jsxs(Ct, { 15414 className: "pt-6", 15415 children: [h.jsxs("div", { 15416 className: "flex mb-4 gap-2", 15417 children: [h.jsx(T4, { 15418 className: "h-8 w-8 text-red-500" 15419 }), h.jsx("h1", { 15420 className: "text-2xl font-bold text-gray-900", 15421 children: "404 Page Not Found" 15422 })] 15423 }), h.jsx("p", { 15424 className: "mt-4 text-sm text-gray-600", 15425 children: "Did you forget to add the page to the router?" 15426 })] 15427 }) 15428 }) 15429 }) 15430} 15431const VP = Ch("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", { 15432 variants: { 15433 variant: { 15434 default: "bg-primary text-primary-foreground hover:bg-primary/90", 15435 destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90", 15436 outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground", 15437 secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80", 15438 ghost: "hover:bg-accent hover:text-accent-foreground", 15439 link: "text-primary underline-offset-4 hover:underline" 15440 }, 15441 size: { 15442 default: "h-10 px-4 py-2", 15443 sm: "h-9 rounded-md px-3", 15444 lg: "h-11 rounded-md px-8", 15445 icon: "h-10 w-10" 15446 } 15447 }, 15448 defaultVariants: { 15449 variant: "default", 15450 size: "default" 15451 } 15452}) 15453 , Me = b.forwardRef( ({className: e, variant: t, size: n, asChild: r=!1, ...i}, o) => { 15454 const a = r ? Bs : "button"; 15455 return h.jsx(a, { 15456 className: fe(VP({ 15457 variant: t, 15458 size: n, 15459 className: e 15460 })), 15461 ref: o, 15462 ...i 15463 }) 15464} 15465); 15466Me.displayName = "Button"; 15467const K4 = b.createContext({}); 15468function SQ(e) { 15469 const t = b.useRef(null); 15470 return t.current === null && (t.current = e()), 15471 t.current 15472} 15473const UP = b.createContext(null) 15474 , G4 = b.createContext({ 15475 transformPagePoint: e => e, 15476 isStatic: !1,
vendor: 55,045 bytes, lines 15477-17470
15477 reducedMotion: "never" 15478}); 15479function PQ(e=!0) { 15480 const t = b.useContext(UP); 15481 if (t === null) 15482 return [!0, null]; 15483 const {isPresent: n, onExitComplete: r, register: i} = t 15484 , o = b.useId(); 15485 b.useEffect( () => { 15486 e && i(o) 15487 } 15488 , [e]); 15489 const a = b.useCallback( () => e && r && r(o), [o, r, e]); 15490 return !n && r ? [!1, a] : [!0] 15491} 15492const zP = typeof window < "u" 15493 , _Q = zP ? b.useLayoutEffect : b.useEffect 15494 , pr = e => e; 15495let vw = pr; 15496function WP(e) { 15497 let t; 15498 return () => (t === void 0 && (t = e()), 15499 t) 15500} 15501const Tc = (e, t, n) => { 15502 const r = t - e; 15503 return r === 0 ? 1 : (n - e) / r 15504} 15505 , po = e => e * 1e3 15506 , mo = e => e / 1e3 15507 , TQ = { 15508 skipAnimations: !1, 15509 useManualTiming: !1 15510}; 15511function CQ(e) { 15512 let t = new Set 15513 , n = new Set 15514 , r = !1 15515 , i = !1; 15516 const o = new WeakSet; 15517 let a = { 15518 delta: 0, 15519 timestamp: 0, 15520 isProcessing: !1 15521 }; 15522 function s(c) { 15523 o.has(c) && (l.schedule(c), 15524 e()), 15525 c(a) 15526 } 15527 const l = { 15528 schedule: (c, u=!1, d=!1) => { 15529 const p = d && r ? t : n; 15530 return u && o.add(c), 15531 p.has(c) || p.add(c), 15532 c 15533 } 15534 , 15535 cancel: c => { 15536 n.delete(c), 15537 o.delete(c) 15538 } 15539 , 15540 process: c => { 15541 if (a = c, 15542 r) { 15543 i = !0; 15544 return 15545 } 15546 r = !0, 15547 [t,n] = [n, t], 15548 t.forEach(s), 15549 t.clear(), 15550 r = !1, 15551 i && (i = !1, 15552 l.process(c)) 15553 } 15554 }; 15555 return l 15556} 15557const Pp = ["read", "resolveKeyframes", "update", "preRender", "render", "postRender"] 15558 , OQ = 40; 15559function Y4(e, t) { 15560 let n = !1 15561 , r = !0; 15562 const i = { 15563 delta: 0, 15564 timestamp: 0, 15565 isProcessing: !1 15566 } 15567 , o = () => n = !0 15568 , a = Pp.reduce( (v, y) => (v[y] = CQ(o), 15569 v), {}) 15570 , {read: s, resolveKeyframes: l, update: c, preRender: u, render: d, postRender: f} = a 15571 , p = () => { 15572 const v = performance.now(); 15573 n = !1, 15574 i.delta = r ? 1e3 / 60 : Math.max(Math.min(v - i.timestamp, OQ), 1), 15575 i.timestamp = v, 15576 i.isProcessing = !0, 15577 s.process(i), 15578 l.process(i), 15579 c.process(i), 15580 u.process(i), 15581 d.process(i), 15582 f.process(i), 15583 i.isProcessing = !1, 15584 n && t && (r = !1, 15585 e(p)) 15586 } 15587 , g = () => { 15588 n = !0, 15589 r = !0, 15590 i.isProcessing || e(p) 15591 } 15592 ; 15593 return { 15594 schedule: Pp.reduce( (v, y) => { 15595 const w = a[y]; 15596 return v[y] = (P, S=!1, _=!1) => (n || g(), 15597 w.schedule(P, S, _)), 15598 v 15599 } 15600 , {}), 15601 cancel: v => { 15602 for (let y = 0; y < Pp.length; y++) 15603 a[Pp[y]].cancel(v) 15604 } 15605 , 15606 state: i, 15607 steps: a 15608 } 15609} 15610const {schedule: vt, cancel: _a, state: gn, steps: J0} = Y4(typeof requestAnimationFrame < "u" ? requestAnimationFrame : pr, !0) 15611 , X4 = b.createContext({ 15612 strict: !1 15613}) 15614 , fA = { 15615 animation: ["animate", "variants", "whileHover", "whileTap", "exit", "whileInView", "whileFocus", "whileDrag"], 15616 exit: ["exit"], 15617 drag: ["drag", "dragControls"], 15618 focus: ["whileFocus"], 15619 hover: ["whileHover", "onHoverStart", "onHoverEnd"], 15620 tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"], 15621 pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"], 15622 inView: ["whileInView", "onViewportEnter", "onViewportLeave"], 15623 layout: ["layout", "layoutId"] 15624} 15625 , Cc = {}; 15626for (const e in fA) 15627 Cc[e] = { 15628 isEnabled: t => fA[e].some(n => !!t[n]) 15629 }; 15630function AQ(e) { 15631 for (const t in e) 15632 Cc[t] = { 15633 ...Cc[t], 15634 ...e[t] 15635 } 15636} 15637const EQ = new Set(["animate", "exit", "variants", "initial", "style", "values", "variants", "transition", "transformTemplate", "custom", "inherit", "onBeforeLayoutMeasure", "onAnimationStart", "onAnimationComplete", "onUpdate", "onDragStart", "onDrag", "onDragEnd", "onMeasureDragConstraints", "onDirectionLock", "onDragTransitionEnd", "_dragX", "_dragY", "onHoverStart", "onHoverEnd", "onViewportEnter", "onViewportLeave", "globalTapTarget", "ignoreStrict", "viewport"]); 15638function Gm(e) { 15639 return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || EQ.has(e) 15640} 15641let Q4 = e => !Gm(e); 15642function jQ(e) { 15643 e && (Q4 = t => t.startsWith("on") ? !Gm(t) : e(t)) 15644} 15645try { 15646 jQ(require("@emotion/is-prop-valid").default) 15647} catch {} 15648function NQ(e, t, n) { 15649 const r = {}; 15650 for (const i in e) 15651 i === "values" && typeof e.values == "object" || (Q4(i) || n === !0 && Gm(i) || !t && !Gm(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]); 15652 return r 15653} 15654function MQ(e) { 15655 if (typeof Proxy > "u") 15656 return e; 15657 const t = new Map 15658 , n = (...r) => e(...r); 15659 return new Proxy(n,{ 15660 get: (r, i) => i === "create" ? e : (t.has(i) || t.set(i, e(i)), 15661 t.get(i)) 15662 }) 15663} 15664const Qy = b.createContext({}); 15665function af(e) { 15666 return typeof e == "string" || Array.isArray(e) 15667} 15668function Zy(e) { 15669 return e !== null && typeof e == "object" && typeof e.start == "function" 15670} 15671const HP = ["animate", "whileInView", "whileFocus", "whileHover", "whileTap", "whileDrag", "exit"] 15672 , qP = ["initial", ...HP]; 15673function Jy(e) { 15674 return Zy(e.animate) || qP.some(t => af(e[t])) 15675} 15676function Z4(e) { 15677 return !!(Jy(e) || e.variants) 15678} 15679function kQ(e, t) { 15680 if (Jy(e)) { 15681 const {initial: n, animate: r} = e; 15682 return { 15683 initial: n === !1 || af(n) ? n : void 0, 15684 animate: af(r) ? r : void 0 15685 } 15686 } 15687 return e.inherit !== !1 ? t : {} 15688} 15689function RQ(e) { 15690 const {initial: t, animate: n} = kQ(e, b.useContext(Qy)); 15691 return b.useMemo( () => ({ 15692 initial: t, 15693 animate: n 15694 }), [hA(t), hA(n)]) 15695} 15696function hA(e) { 15697 return Array.isArray(e) ? e.join(" ") : e 15698} 15699const DQ = Symbol.for("motionComponentSymbol"); 15700function Nl(e) { 15701 return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current") 15702} 15703function IQ(e, t, n) { 15704 return b.useCallback(r => { 15705 r && e.onMount && e.onMount(r), 15706 t && (r ? t.mount(r) : t.unmount()), 15707 n && (typeof n == "function" ? n(r) : Nl(n) && (n.current = r)) 15708 } 15709 , [t]) 15710} 15711const KP = e => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase() 15712 , $Q = "framerAppearId" 15713 , J4 = "data-" + KP($Q) 15714 , {schedule: GP, cancel: KIe} = Y4(queueMicrotask, !1) 15715 , eB = b.createContext({}); 15716function LQ(e, t, n, r, i) { 15717 var o, a; 15718 const {visualElement: s} = b.useContext(Qy) 15719 , l = b.useContext(X4) 15720 , c = b.useContext(UP) 15721 , u = b.useContext(G4).reducedMotion 15722 , d = b.useRef(null); 15723 r = r || l.renderer, 15724 !d.current && r && (d.current = r(e, { 15725 visualState: t, 15726 parent: s, 15727 props: n, 15728 presenceContext: c, 15729 blockInitialAnimation: c ? c.initial === !1 : !1, 15730 reducedMotionConfig: u 15731 })); 15732 const f = d.current 15733 , p = b.useContext(eB); 15734 f && !f.projection && i && (f.type === "html" || f.type === "svg") && FQ(d.current, n, i, p); 15735 const g = b.useRef(!1); 15736 b.useInsertionEffect( () => { 15737 f && g.current && f.update(n, c) 15738 } 15739 ); 15740 const m = n[J4] 15741 , x = b.useRef(!!m && !(!((o = window.MotionHandoffIsComplete) === null || o === void 0) && o.call(window, m)) && ((a = window.MotionHasOptimisedAnimation) === null || a === void 0 ? void 0 : a.call(window, m))); 15742 return _Q( () => { 15743 f && (g.current = !0, 15744 window.MotionIsMounted = !0, 15745 f.updateFeatures(), 15746 GP.render(f.render), 15747 x.current && f.animationState && f.animationState.animateChanges()) 15748 } 15749 ), 15750 b.useEffect( () => { 15751 f && (!x.current && f.animationState && f.animationState.animateChanges(), 15752 x.current && (queueMicrotask( () => { 15753 var v; 15754 (v = window.MotionHandoffMarkAsComplete) === null || v === void 0 || v.call(window, m) 15755 } 15756 ), 15757 x.current = !1)) 15758 } 15759 ), 15760 f 15761} 15762function FQ(e, t, n, r) { 15763 const {layoutId: i, layout: o, drag: a, dragConstraints: s, layoutScroll: l, layoutRoot: c} = t; 15764 e.projection = new n(e.latestValues,t["data-framer-portal-id"] ? void 0 : tB(e.parent)), 15765 e.projection.setOptions({ 15766 layoutId: i, 15767 layout: o, 15768 alwaysMeasureLayout: !!a || s && Nl(s), 15769 visualElement: e, 15770 animationType: typeof o == "string" ? o : "both", 15771 initialPromotionConfig: r, 15772 layoutScroll: l, 15773 layoutRoot: c 15774 }) 15775} 15776function tB(e) { 15777 if (e) 15778 return e.options.allowProjection !== !1 ? e.projection : tB(e.parent) 15779} 15780function BQ({preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i}) { 15781 var o, a; 15782 e && AQ(e); 15783 function s(c, u) { 15784 let d; 15785 const f = { 15786 ...b.useContext(G4), 15787 ...c, 15788 layoutId: VQ(c) 15789 } 15790 , {isStatic: p} = f 15791 , g = RQ(c) 15792 , m = r(c, p); 15793 if (!p && zP) { 15794 UQ(); 15795 const x = zQ(f); 15796 d = x.MeasureLayout, 15797 g.visualElement = LQ(i, m, f, t, x.ProjectionNode) 15798 } 15799 return h.jsxs(Qy.Provider, { 15800 value: g, 15801 children: [d && g.visualElement ? h.jsx(d, { 15802 visualElement: g.visualElement, 15803 ...f 15804 }) : null, n(i, c, IQ(m, g.visualElement, u), m, p, g.visualElement)] 15805 }) 15806 } 15807 s.displayName = `motion.${typeof i == "string" ? i : `create(${(a = (o = i.displayName) !== null && o !== void 0 ? o : i.name) !== null && a !== void 0 ? a : ""})`}`; 15808 const l = b.forwardRef(s); 15809 return l[DQ] = i, 15810 l 15811} 15812function VQ({layoutId: e}) { 15813 const t = b.useContext(K4).id; 15814 return t && e !== void 0 ? t + "-" + e : e 15815} 15816function UQ(e, t) { 15817 b.useContext(X4).strict 15818} 15819function zQ(e) { 15820 const {drag: t, layout: n} = Cc; 15821 if (!t && !n) 15822 return {}; 15823 const r = { 15824 ...t, 15825 ...n 15826 }; 15827 return { 15828 MeasureLayout: t != null && t.isEnabled(e) || n != null && n.isEnabled(e) ? r.MeasureLayout : void 0, 15829 ProjectionNode: r.ProjectionNode 15830 } 15831} 15832const WQ = ["animate", "circle", "defs", "desc", "ellipse", "g", "image", "line", "filter", "marker", "mask", "metadata", "path", "pattern", "polygon", "polyline", "rect", "stop", "switch", "symbol", "svg", "text", "tspan", "use", "view"]; 15833function YP(e) { 15834 return typeof e != "string" || e.includes("-") ? !1 : !!(WQ.indexOf(e) > -1 || /[A-Z]/u.test(e)) 15835} 15836function pA(e) { 15837 const t = [{}, {}]; 15838 return e == null || e.values.forEach( (n, r) => { 15839 t[0][r] = n.get(), 15840 t[1][r] = n.getVelocity() 15841 } 15842 ), 15843 t 15844} 15845function XP(e, t, n, r) { 15846 if (typeof t == "function") { 15847 const [i,o] = pA(r); 15848 t = t(n !== void 0 ? n : e.custom, i, o) 15849 } 15850 if (typeof t == "string" && (t = e.variants && e.variants[t]), 15851 typeof t == "function") { 15852 const [i,o] = pA(r); 15853 t = t(n !== void 0 ? n : e.custom, i, o) 15854 } 15855 return t 15856} 15857const xw = e => Array.isArray(e) 15858 , HQ = e => !!(e && typeof e == "object" && e.mix && e.toValue) 15859 , qQ = e => xw(e) ? e[e.length - 1] || 0 : e 15860 , An = e => !!(e && e.getVelocity); 15861function dm(e) { 15862 const t = An(e) ? e.get() : e; 15863 return HQ(t) ? t.toValue() : t 15864} 15865function KQ({scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n}, r, i, o) { 15866 const a = { 15867 latestValues: GQ(r, i, o, e), 15868 renderState: t() 15869 }; 15870 return n && (a.onMount = s => n({ 15871 props: r, 15872 current: s, 15873 ...a 15874 }), 15875 a.onUpdate = s => n(s)), 15876 a 15877} 15878const nB = e => (t, n) => { 15879 const r = b.useContext(Qy) 15880 , i = b.useContext(UP) 15881 , o = () => KQ(e, t, r, i); 15882 return n ? o() : SQ(o) 15883} 15884; 15885function GQ(e, t, n, r) { 15886 const i = {} 15887 , o = r(e, {}); 15888 for (const f in o) 15889 i[f] = dm(o[f]); 15890 let {initial: a, animate: s} = e; 15891 const l = Jy(e) 15892 , c = Z4(e); 15893 t && c && !l && e.inherit !== !1 && (a === void 0 && (a = t.initial), 15894 s === void 0 && (s = t.animate)); 15895 let u = n ? n.initial === !1 : !1; 15896 u = u || a === !1; 15897 const d = u ? s : a; 15898 if (d && typeof d != "boolean" && !Zy(d)) { 15899 const f = Array.isArray(d) ? d : [d]; 15900 for (let p = 0; p < f.length; p++) { 15901 const g = XP(e, f[p]); 15902 if (g) { 15903 const {transitionEnd: m, transition: x, ...v} = g; 15904 for (const y in v) { 15905 let w = v[y]; 15906 if (Array.isArray(w)) { 15907 const P = u ? w.length - 1 : 0; 15908 w = w[P] 15909 } 15910 w !== null && (i[y] = w) 15911 } 15912 for (const y in m) 15913 i[y] = m[y] 15914 } 15915 } 15916 } 15917 return i 15918} 15919const au = ["transformPerspective", "x", "y", "z", "translateX", "translateY", "translateZ", "scale", "scaleX", "scaleY", "rotate", "rotateX", "rotateY", "rotateZ", "skew", "skewX", "skewY"] 15920 , Zs = new Set(au) 15921 , rB = e => t => typeof t == "string" && t.startsWith(e) 15922 , iB = rB("--") 15923 , YQ = rB("var(--") 15924 , QP = e => YQ(e) ? XQ.test(e.split("/*")[0].trim()) : !1 15925 , XQ = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu 15926 , oB = (e, t) => t && typeof e == "number" ? t.transform(e) : e 15927 , _o = (e, t, n) => n > t ? t : n < e ? e : n 15928 , su = { 15929 test: e => typeof e == "number", 15930 parse: parseFloat, 15931 transform: e => e 15932} 15933 , sf = { 15934 ...su, 15935 transform: e => _o(0, 1, e) 15936} 15937 , _p = { 15938 ...su, 15939 default: 1 15940} 15941 , Ah = e => ({ 15942 test: t => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1, 15943 parse: parseFloat, 15944 transform: t => `${t}${e}` 15945}) 15946 , Wo = Ah("deg") 15947 , Ii = Ah("%") 15948 , Se = Ah("px") 15949 , QQ = Ah("vh") 15950 , ZQ = Ah("vw") 15951 , mA = { 15952 ...Ii, 15953 parse: e => Ii.parse(e) / 100, 15954 transform: e => Ii.transform(e * 100) 15955} 15956 , JQ = { 15957 borderWidth: Se, 15958 borderTopWidth: Se, 15959 borderRightWidth: Se, 15960 borderBottomWidth: Se, 15961 borderLeftWidth: Se, 15962 borderRadius: Se, 15963 radius: Se, 15964 borderTopLeftRadius: Se, 15965 borderTopRightRadius: Se, 15966 borderBottomRightRadius: Se, 15967 borderBottomLeftRadius: Se, 15968 width: Se, 15969 maxWidth: Se, 15970 height: Se, 15971 maxHeight: Se, 15972 top: Se, 15973 right: Se, 15974 bottom: Se, 15975 left: Se, 15976 padding: Se, 15977 paddingTop: Se, 15978 paddingRight: Se, 15979 paddingBottom: Se, 15980 paddingLeft: Se, 15981 margin: Se, 15982 marginTop: Se, 15983 marginRight: Se, 15984 marginBottom: Se, 15985 marginLeft: Se, 15986 backgroundPositionX: Se, 15987 backgroundPositionY: Se 15988} 15989 , eZ = { 15990 rotate: Wo, 15991 rotateX: Wo, 15992 rotateY: Wo, 15993 rotateZ: Wo, 15994 scale: _p, 15995 scaleX: _p, 15996 scaleY: _p, 15997 scaleZ: _p, 15998 skew: Wo, 15999 skewX: Wo, 16000 skewY: Wo, 16001 distance: Se, 16002 translateX: Se, 16003 translateY: Se, 16004 translateZ: Se, 16005 x: Se, 16006 y: Se, 16007 z: Se, 16008 perspective: Se, 16009 transformPerspective: Se, 16010 opacity: sf, 16011 originX: mA, 16012 originY: mA, 16013 originZ: Se 16014} 16015 , gA = { 16016 ...su, 16017 transform: Math.round 16018} 16019 , ZP = { 16020 ...JQ, 16021 ...eZ, 16022 zIndex: gA, 16023 size: Se, 16024 fillOpacity: sf, 16025 strokeOpacity: sf, 16026 numOctaves: gA 16027} 16028 , tZ = { 16029 x: "translateX", 16030 y: "translateY", 16031 z: "translateZ", 16032 transformPerspective: "perspective" 16033} 16034 , nZ = au.length; 16035function rZ(e, t, n) { 16036 let r = "" 16037 , i = !0; 16038 for (let o = 0; o < nZ; o++) { 16039 const a = au[o] 16040 , s = e[a]; 16041 if (s === void 0) 16042 continue; 16043 let l = !0; 16044 if (typeof s == "number" ? l = s === (a.startsWith("scale") ? 1 : 0) : l = parseFloat(s) === 0, 16045 !l || n) { 16046 const c = oB(s, ZP[a]); 16047 if (!l) { 16048 i = !1; 16049 const u = tZ[a] || a; 16050 r += `${u}(${c}) ` 16051 } 16052 n && (t[a] = c) 16053 } 16054 } 16055 return r = r.trim(), 16056 n ? r = n(t, i ? "" : r) : i && (r = "none"), 16057 r 16058} 16059function JP(e, t, n) { 16060 const {style: r, vars: i, transformOrigin: o} = e; 16061 let a = !1 16062 , s = !1; 16063 for (const l in t) { 16064 const c = t[l]; 16065 if (Zs.has(l)) { 16066 a = !0; 16067 continue 16068 } else if (iB(l)) { 16069 i[l] = c; 16070 continue 16071 } else { 16072 const u = oB(c, ZP[l]); 16073 l.startsWith("origin") ? (s = !0, 16074 o[l] = u) : r[l] = u 16075 } 16076 } 16077 if (t.transform || (a || n ? r.transform = rZ(t, e.transform, n) : r.transform && (r.transform = "none")), 16078 s) { 16079 const {originX: l="50%", originY: c="50%", originZ: u=0} = o; 16080 r.transformOrigin = `${l} ${c} ${u}` 16081 } 16082} 16083const iZ = { 16084 offset: "stroke-dashoffset", 16085 array: "stroke-dasharray" 16086} 16087 , oZ = { 16088 offset: "strokeDashoffset", 16089 array: "strokeDasharray" 16090}; 16091function aZ(e, t, n=1, r=0, i=!0) { 16092 e.pathLength = 1; 16093 const o = i ? iZ : oZ; 16094 e[o.offset] = Se.transform(-r); 16095 const a = Se.transform(t) 16096 , s = Se.transform(n); 16097 e[o.array] = `${a} ${s}` 16098} 16099function yA(e, t, n) { 16100 return typeof e == "string" ? e : Se.transform(t + n * e) 16101} 16102function sZ(e, t, n) { 16103 const r = yA(t, e.x, e.width) 16104 , i = yA(n, e.y, e.height); 16105 return `${r} ${i}` 16106} 16107function e_(e, {attrX: t, attrY: n, attrScale: r, originX: i, originY: o, pathLength: a, pathSpacing: s=1, pathOffset: l=0, ...c}, u, d) { 16108 if (JP(e, c, d), 16109 u) { 16110 e.style.viewBox && (e.attrs.viewBox = e.style.viewBox); 16111 return 16112 } 16113 e.attrs = e.style, 16114 e.style = {}; 16115 const {attrs: f, style: p, dimensions: g} = e; 16116 f.transform && (g && (p.transform = f.transform), 16117 delete f.transform), 16118 g && (i !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = sZ(g, i !== void 0 ? i : .5, o !== void 0 ? o : .5)), 16119 t !== void 0 && (f.x = t), 16120 n !== void 0 && (f.y = n), 16121 r !== void 0 && (f.scale = r), 16122 a !== void 0 && aZ(f, a, s, l, !1) 16123} 16124const t_ = () => ({ 16125 style: {}, 16126 transform: {}, 16127 transformOrigin: {}, 16128 vars: {} 16129}) 16130 , aB = () => ({ 16131 ...t_(), 16132 attrs: {} 16133}) 16134 , n_ = e => typeof e == "string" && e.toLowerCase() === "svg"; 16135function sB(e, {style: t, vars: n}, r, i) { 16136 Object.assign(e.style, t, i && i.getProjectionStyles(r)); 16137 for (const o in n) 16138 e.style.setProperty(o, n[o]) 16139} 16140const lB = new Set(["baseFrequency", "diffuseConstant", "kernelMatrix", "kernelUnitLength", "keySplines", "keyTimes", "limitingConeAngle", "markerHeight", "markerWidth", "numOctaves", "targetX", "targetY", "surfaceScale", "specularConstant", "specularExponent", "stdDeviation", "tableValues", "viewBox", "gradientTransform", "pathLength", "startOffset", "textLength", "lengthAdjust"]); 16141function cB(e, t, n, r) { 16142 sB(e, t, void 0, r); 16143 for (const i in t.attrs) 16144 e.setAttribute(lB.has(i) ? i : KP(i), t.attrs[i]) 16145} 16146const Ym = {}; 16147function lZ(e) { 16148 Object.assign(Ym, e) 16149} 16150function uB(e, {layout: t, layoutId: n}) { 16151 return Zs.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Ym[e] || e === "opacity") 16152} 16153function r_(e, t, n) { 16154 var r; 16155 const {style: i} = e 16156 , o = {}; 16157 for (const a in i) 16158 (An(i[a]) || t.style && An(t.style[a]) || uB(a, e) || ((r = n == null ? void 0 : n.getValue(a)) === null || r === void 0 ? void 0 : r.liveStyle) !== void 0) && (o[a] = i[a]); 16159 return o 16160} 16161function dB(e, t, n) { 16162 const r = r_(e, t, n); 16163 for (const i in e) 16164 if (An(e[i]) || An(t[i])) { 16165 const o = au.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i; 16166 r[o] = e[i] 16167 } 16168 return r 16169} 16170function cZ(e, t) { 16171 try { 16172 t.dimensions = typeof e.getBBox == "function" ? e.getBBox() : e.getBoundingClientRect() 16173 } catch { 16174 t.dimensions = { 16175 x: 0, 16176 y: 0, 16177 width: 0, 16178 height: 0 16179 } 16180 } 16181} 16182const vA = ["x", "y", "width", "height", "cx", "cy", "r"] 16183 , uZ = { 16184 useVisualState: nB({ 16185 scrapeMotionValuesFromProps: dB, 16186 createRenderState: aB, 16187 onUpdate: ({props: e, prevProps: t, current: n, renderState: r, latestValues: i}) => { 16188 if (!n) 16189 return; 16190 let o = !!e.drag; 16191 if (!o) { 16192 for (const s in i) 16193 if (Zs.has(s)) { 16194 o = !0; 16195 break 16196 } 16197 } 16198 if (!o) 16199 return; 16200 let a = !t; 16201 if (t) 16202 for (let s = 0; s < vA.length; s++) { 16203 const l = vA[s]; 16204 e[l] !== t[l] && (a = !0) 16205 } 16206 a && vt.read( () => { 16207 cZ(n, r), 16208 vt.render( () => { 16209 e_(r, i, n_(n.tagName), e.transformTemplate), 16210 cB(n, r) 16211 } 16212 ) 16213 } 16214 ) 16215 } 16216 }) 16217} 16218 , dZ = { 16219 useVisualState: nB({ 16220 scrapeMotionValuesFromProps: r_, 16221 createRenderState: t_ 16222 }) 16223}; 16224function fB(e, t, n) { 16225 for (const r in t) 16226 !An(t[r]) && !uB(r, n) && (e[r] = t[r]) 16227} 16228function fZ({transformTemplate: e}, t) { 16229 return b.useMemo( () => { 16230 const n = t_(); 16231 return JP(n, t, e), 16232 Object.assign({}, n.vars, n.style) 16233 } 16234 , [t]) 16235} 16236function hZ(e, t) { 16237 const n = e.style || {} 16238 , r = {}; 16239 return fB(r, n, e), 16240 Object.assign(r, fZ(e, t)), 16241 r 16242} 16243function pZ(e, t) { 16244 const n = {} 16245 , r = hZ(e, t); 16246 return e.drag && e.dragListener !== !1 && (n.draggable = !1, 16247 r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", 16248 r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), 16249 e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), 16250 n.style = r, 16251 n 16252} 16253function mZ(e, t, n, r) { 16254 const i = b.useMemo( () => { 16255 const o = aB(); 16256 return e_(o, t, n_(r), e.transformTemplate), 16257 { 16258 ...o.attrs, 16259 style: { 16260 ...o.style 16261 } 16262 } 16263 } 16264 , [t]); 16265 if (e.style) { 16266 const o = {}; 16267 fB(o, e.style, e), 16268 i.style = { 16269 ...o, 16270 ...i.style 16271 } 16272 } 16273 return i 16274} 16275function gZ(e=!1) { 16276 return (n, r, i, {latestValues: o}, a) => { 16277 const l = (YP(n) ? mZ : pZ)(r, o, a, n) 16278 , c = NQ(r, typeof n == "string", e) 16279 , u = n !== b.Fragment ? { 16280 ...c, 16281 ...l, 16282 ref: i 16283 } : {} 16284 , {children: d} = r 16285 , f = b.useMemo( () => An(d) ? d.get() : d, [d]); 16286 return b.createElement(n, { 16287 ...u, 16288 children: f 16289 }) 16290 } 16291} 16292function yZ(e, t) { 16293 return function(r, {forwardMotionProps: i}={ 16294 forwardMotionProps: !1 16295 }) { 16296 const a = { 16297 ...YP(r) ? uZ : dZ, 16298 preloadedFeatures: e, 16299 useRender: gZ(i), 16300 createVisualElement: t, 16301 Component: r 16302 }; 16303 return BQ(a) 16304 } 16305} 16306function hB(e, t) { 16307 if (!Array.isArray(t)) 16308 return !1; 16309 const n = t.length; 16310 if (n !== e.length) 16311 return !1; 16312 for (let r = 0; r < n; r++) 16313 if (t[r] !== e[r]) 16314 return !1; 16315 return !0 16316} 16317function ev(e, t, n) { 16318 const r = e.getProps(); 16319 return XP(r, t, n !== void 0 ? n : r.custom, e) 16320} 16321const vZ = WP( () => window.ScrollTimeline !== void 0); 16322class xZ { 16323 constructor(t) { 16324 this.stop = () => this.runAll("stop"), 16325 this.animations = t.filter(Boolean) 16326 } 16327 get finished() { 16328 return Promise.all(this.animations.map(t => "finished"in t ? t.finished : t)) 16329 } 16330 getAll(t) { 16331 return this.animations[0][t] 16332 } 16333 setAll(t, n) { 16334 for (let r = 0; r < this.animations.length; r++) 16335 this.animations[r][t] = n 16336 } 16337 attachTimeline(t, n) { 16338 const r = this.animations.map(i => { 16339 if (vZ() && i.attachTimeline) 16340 return i.attachTimeline(t); 16341 if (typeof n == "function") 16342 return n(i) 16343 } 16344 ); 16345 return () => { 16346 r.forEach( (i, o) => { 16347 i && i(), 16348 this.animations[o].stop() 16349 } 16350 ) 16351 } 16352 } 16353 get time() { 16354 return this.getAll("time") 16355 } 16356 set time(t) { 16357 this.setAll("time", t) 16358 } 16359 get speed() { 16360 return this.getAll("speed") 16361 } 16362 set speed(t) { 16363 this.setAll("speed", t) 16364 } 16365 get startTime() { 16366 return this.getAll("startTime") 16367 } 16368 get duration() { 16369 let t = 0; 16370 for (let n = 0; n < this.animations.length; n++) 16371 t = Math.max(t, this.animations[n].duration); 16372 return t 16373 } 16374 runAll(t) { 16375 this.animations.forEach(n => n[t]()) 16376 } 16377 flatten() { 16378 this.runAll("flatten") 16379 } 16380 play() { 16381 this.runAll("play") 16382 } 16383 pause() { 16384 this.runAll("pause") 16385 } 16386 cancel() { 16387 this.runAll("cancel") 16388 } 16389 complete() { 16390 this.runAll("complete") 16391 } 16392} 16393class bZ extends xZ { 16394 then(t, n) { 16395 return Promise.all(this.animations).then(t).catch(n) 16396 } 16397} 16398function i_(e, t) { 16399 return e ? e[t] || e.default || e : void 0 16400} 16401const bw = 2e4; 16402function pB(e) { 16403 let t = 0; 16404 const n = 50; 16405 let r = e.next(t); 16406 for (; !r.done && t < bw; ) 16407 t += n, 16408 r = e.next(t); 16409 return t >= bw ? 1 / 0 : t 16410} 16411function o_(e) { 16412 return typeof e == "function" 16413} 16414function xA(e, t) { 16415 e.timeline = t, 16416 e.onfinish = null 16417} 16418const a_ = e => Array.isArray(e) && typeof e[0] == "number" 16419 , wZ = { 16420 linearEasing: void 0 16421}; 16422function SZ(e, t) { 16423 const n = WP(e); 16424 return () => { 16425 var r; 16426 return (r = wZ[t]) !== null && r !== void 0 ? r : n() 16427 } 16428} 16429const Xm = SZ( () => { 16430 try { 16431 document.createElement("div").animate({ 16432 opacity: 0 16433 }, { 16434 easing: "linear(0, 1)" 16435 }) 16436 } catch { 16437 return !1 16438 } 16439 return !0 16440} 16441, "linearEasing") 16442 , mB = (e, t, n=10) => { 16443 let r = ""; 16444 const i = Math.max(Math.round(t / n), 2); 16445 for (let o = 0; o < i; o++) 16446 r += e(Tc(0, i - 1, o)) + ", "; 16447 return `linear(${r.substring(0, r.length - 2)})` 16448} 16449; 16450function gB(e) { 16451 return !!(typeof e == "function" && Xm() || !e || typeof e == "string" && (e in ww || Xm()) || a_(e) || Array.isArray(e) && e.every(gB)) 16452} 16453const ad = ([e,t,n,r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})` 16454 , ww = { 16455 linear: "linear", 16456 ease: "ease", 16457 easeIn: "ease-in", 16458 easeOut: "ease-out", 16459 easeInOut: "ease-in-out", 16460 circIn: ad([0, .65, .55, 1]), 16461 circOut: ad([.55, 0, 1, .45]), 16462 backIn: ad([.31, .01, .66, -.59]), 16463 backOut: ad([.33, 1.53, .69, .99]) 16464}; 16465function yB(e, t) { 16466 if (e) 16467 return typeof e == "function" && Xm() ? mB(e, t) : a_(e) ? ad(e) : Array.isArray(e) ? e.map(n => yB(n, t) || ww.easeOut) : ww[e] 16468} 16469const Gr = { 16470 x: !1, 16471 y: !1 16472}; 16473function vB() { 16474 return Gr.x || Gr.y 16475} 16476function PZ(e, t, n) { 16477 var r; 16478 if (e instanceof Element) 16479 return [e]; 16480 if (typeof e == "string") { 16481 let i = document; 16482 const o = (r = void 0) !== null && r !== void 0 ? r : i.querySelectorAll(e); 16483 return o ? Array.from(o) : [] 16484 } 16485 return Array.from(e) 16486} 16487function xB(e, t) { 16488 const n = PZ(e) 16489 , r = new AbortController 16490 , i = { 16491 passive: !0, 16492 ...t, 16493 signal: r.signal 16494 }; 16495 return [n, i, () => r.abort()] 16496} 16497function bA(e) { 16498 return t => { 16499 t.pointerType === "touch" || vB() || e(t) 16500 } 16501} 16502function _Z(e, t, n={}) { 16503 const [r,i,o] = xB(e, n) 16504 , a = bA(s => { 16505 const {target: l} = s 16506 , c = t(s); 16507 if (typeof c != "function" || !l) 16508 return; 16509 const u = bA(d => { 16510 c(d), 16511 l.removeEventListener("pointerleave", u) 16512 } 16513 ); 16514 l.addEventListener("pointerleave", u, i) 16515 } 16516 ); 16517 return r.forEach(s => { 16518 s.addEventListener("pointerenter", a, i) 16519 } 16520 ), 16521 o 16522} 16523const bB = (e, t) => t ? e === t ? !0 : bB(e, t.parentElement) : !1 16524 , s_ = e => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1 16525 , TZ = new Set(["BUTTON", "INPUT", "SELECT", "TEXTAREA", "A"]); 16526function CZ(e) { 16527 return TZ.has(e.tagName) || e.tabIndex !== -1 16528} 16529const sd = new WeakSet; 16530function wA(e) { 16531 return t => { 16532 t.key === "Enter" && e(t) 16533 } 16534} 16535function ex(e, t) { 16536 e.dispatchEvent(new PointerEvent("pointer" + t,{ 16537 isPrimary: !0, 16538 bubbles: !0 16539 })) 16540} 16541const OZ = (e, t) => { 16542 const n = e.currentTarget; 16543 if (!n) 16544 return; 16545 const r = wA( () => { 16546 if (sd.has(n)) 16547 return; 16548 ex(n, "down"); 16549 const i = wA( () => { 16550 ex(n, "up") 16551 } 16552 ) 16553 , o = () => ex(n, "cancel"); 16554 n.addEventListener("keyup", i, t), 16555 n.addEventListener("blur", o, t) 16556 } 16557 ); 16558 n.addEventListener("keydown", r, t), 16559 n.addEventListener("blur", () => n.removeEventListener("keydown", r), t) 16560} 16561; 16562function SA(e) { 16563 return s_(e) && !vB() 16564} 16565function AZ(e, t, n={}) { 16566 const [r,i,o] = xB(e, n) 16567 , a = s => { 16568 const l = s.currentTarget; 16569 if (!SA(s) || sd.has(l)) 16570 return; 16571 sd.add(l); 16572 const c = t(s) 16573 , u = (p, g) => { 16574 window.removeEventListener("pointerup", d), 16575 window.removeEventListener("pointercancel", f), 16576 !(!SA(p) || !sd.has(l)) && (sd.delete(l), 16577 typeof c == "function" && c(p, { 16578 success: g 16579 })) 16580 } 16581 , d = p => { 16582 u(p, n.useGlobalTarget || bB(l, p.target)) 16583 } 16584 , f = p => { 16585 u(p, !1) 16586 } 16587 ; 16588 window.addEventListener("pointerup", d, i), 16589 window.addEventListener("pointercancel", f, i) 16590 } 16591 ; 16592 return r.forEach(s => { 16593 !CZ(s) && s.getAttribute("tabindex") === null && (s.tabIndex = 0), 16594 (n.useGlobalTarget ? window : s).addEventListener("pointerdown", a, i), 16595 s.addEventListener("focus", c => OZ(c, i), i) 16596 } 16597 ), 16598 o 16599} 16600function EZ(e) { 16601 return e === "x" || e === "y" ? Gr[e] ? null : (Gr[e] = !0, 16602 () => { 16603 Gr[e] = !1 16604 } 16605 ) : Gr.x || Gr.y ? null : (Gr.x = Gr.y = !0, 16606 () => { 16607 Gr.x = Gr.y = !1 16608 } 16609 ) 16610} 16611const wB = new Set(["width", "height", "top", "left", "right", "bottom", ...au]); 16612let fm; 16613function jZ() { 16614 fm = void 0 16615} 16616const $i = { 16617 now: () => (fm === void 0 && $i.set(gn.isProcessing || TQ.useManualTiming ? gn.timestamp : performance.now()), 16618 fm), 16619 set: e => { 16620 fm = e, 16621 queueMicrotask(jZ) 16622 } 16623}; 16624function l_(e, t) { 16625 e.indexOf(t) === -1 && e.push(t) 16626} 16627function c_(e, t) { 16628 const n = e.indexOf(t); 16629 n > -1 && e.splice(n, 1) 16630} 16631class u_ { 16632 constructor() { 16633 this.subscriptions = [] 16634 } 16635 add(t) { 16636 return l_(this.subscriptions, t), 16637 () => c_(this.subscriptions, t) 16638 } 16639 notify(t, n, r) { 16640 const i = this.subscriptions.length; 16641 if (i) 16642 if (i === 1) 16643 this.subscriptions[0](t, n, r); 16644 else 16645 for (let o = 0; o < i; o++) { 16646 const a = this.subscriptions[o]; 16647 a && a(t, n, r) 16648 } 16649 } 16650 getSize() { 16651 return this.subscriptions.length 16652 } 16653 clear() { 16654 this.subscriptions.length = 0 16655 } 16656} 16657function SB(e, t) { 16658 return t ? e * (1e3 / t) : 0 16659} 16660const PA = 30 16661 , NZ = e => !isNaN(parseFloat(e)); 16662class MZ { 16663 constructor(t, n={}) { 16664 this.version = "11.18.2", 16665 this.canTrackVelocity = null, 16666 this.events = {}, 16667 this.updateAndNotify = (r, i=!0) => { 16668 const o = $i.now(); 16669 this.updatedAt !== o && this.setPrevFrameValue(), 16670 this.prev = this.current, 16671 this.setCurrent(r), 16672 this.current !== this.prev && this.events.change && this.events.change.notify(this.current), 16673 i && this.events.renderRequest && this.events.renderRequest.notify(this.current) 16674 } 16675 , 16676 this.hasAnimated = !1, 16677 this.setCurrent(t), 16678 this.owner = n.owner 16679 } 16680 setCurrent(t) { 16681 this.current = t, 16682 this.updatedAt = $i.now(), 16683 this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = NZ(this.current)) 16684 } 16685 setPrevFrameValue(t=this.current) { 16686 this.prevFrameValue = t, 16687 this.prevUpdatedAt = this.updatedAt 16688 } 16689 onChange(t) { 16690 return this.on("change", t) 16691 } 16692 on(t, n) { 16693 this.events[t] || (this.events[t] = new u_); 16694 const r = this.events[t].add(n); 16695 return t === "change" ? () => { 16696 r(), 16697 vt.read( () => { 16698 this.events.change.getSize() || this.stop() 16699 } 16700 ) 16701 } 16702 : r 16703 } 16704 clearListeners() { 16705 for (const t in this.events) 16706 this.events[t].clear() 16707 } 16708 attach(t, n) { 16709 this.passiveEffect = t, 16710 this.stopPassiveEffect = n 16711 } 16712 set(t, n=!0) { 16713 !n || !this.passiveEffect ? this.updateAndNotify(t, n) : this.passiveEffect(t, this.updateAndNotify) 16714 } 16715 setWithVelocity(t, n, r) { 16716 this.set(n), 16717 this.prev = void 0, 16718 this.prevFrameValue = t, 16719 this.prevUpdatedAt = this.updatedAt - r 16720 } 16721 jump(t, n=!0) { 16722 this.updateAndNotify(t), 16723 this.prev = t, 16724 this.prevUpdatedAt = this.prevFrameValue = void 0, 16725 n && this.stop(), 16726 this.stopPassiveEffect && this.stopPassiveEffect() 16727 } 16728 get() { 16729 return this.current 16730 } 16731 getPrevious() { 16732 return this.prev 16733 } 16734 getVelocity() { 16735 const t = $i.now(); 16736 if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > PA) 16737 return 0; 16738 const n = Math.min(this.updatedAt - this.prevUpdatedAt, PA); 16739 return SB(parseFloat(this.current) - parseFloat(this.prevFrameValue), n) 16740 } 16741 start(t) { 16742 return this.stop(), 16743 new Promise(n => { 16744 this.hasAnimated = !0, 16745 this.animation = t(n), 16746 this.events.animationStart && this.events.animationStart.notify() 16747 } 16748 ).then( () => { 16749 this.events.animationComplete && this.events.animationComplete.notify(), 16750 this.clearAnimation() 16751 } 16752 ) 16753 } 16754 stop() { 16755 this.animation && (this.animation.stop(), 16756 this.events.animationCancel && this.events.animationCancel.notify()), 16757 this.clearAnimation() 16758 } 16759 isAnimating() { 16760 return !!this.animation 16761 } 16762 clearAnimation() { 16763 delete this.animation 16764 } 16765 destroy() { 16766 this.clearListeners(), 16767 this.stop(), 16768 this.stopPassiveEffect && this.stopPassiveEffect() 16769 } 16770} 16771function lf(e, t) { 16772 return new MZ(e,t) 16773} 16774function kZ(e, t, n) { 16775 e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, lf(n)) 16776} 16777function RZ(e, t) { 16778 const n = ev(e, t); 16779 let {transitionEnd: r={}, transition: i={}, ...o} = n || {}; 16780 o = { 16781 ...o, 16782 ...r 16783 }; 16784 for (const a in o) { 16785 const s = qQ(o[a]); 16786 kZ(e, a, s) 16787 } 16788} 16789function DZ(e) { 16790 return !!(An(e) && e.add) 16791} 16792function Sw(e, t) { 16793 const n = e.getValue("willChange"); 16794 if (DZ(n)) 16795 return n.add(t) 16796} 16797function PB(e) { 16798 return e.props[J4] 16799} 16800const _B = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e 16801 , IZ = 1e-7 16802 , $Z = 12; 16803function LZ(e, t, n, r, i) { 16804 let o, a, s = 0; 16805 do 16806 a = t + (n - t) / 2, 16807 o = _B(a, r, i) - e, 16808 o > 0 ? n = a : t = a; 16809 while (Math.abs(o) > IZ && ++s < $Z); 16810 return a 16811} 16812function Eh(e, t, n, r) { 16813 if (e === t && n === r) 16814 return pr; 16815 const i = o => LZ(o, 0, 1, e, n); 16816 return o => o === 0 || o === 1 ? o : _B(i(o), t, r) 16817} 16818const TB = e => t => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2 16819 , CB = e => t => 1 - e(1 - t) 16820 , OB = Eh(.33, 1.53, .69, .99) 16821 , d_ = CB(OB) 16822 , AB = TB(d_) 16823 , EB = e => (e *= 2) < 1 ? .5 * d_(e) : .5 * (2 - Math.pow(2, -10 * (e - 1))) 16824 , f_ = e => 1 - Math.sin(Math.acos(e)) 16825 , jB = CB(f_) 16826 , NB = TB(f_) 16827 , MB = e => /^0[^.\s]+$/u.test(e); 16828function FZ(e) { 16829 return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || MB(e) : !0 16830} 16831const jd = e => Math.round(e * 1e5) / 1e5 16832 , h_ = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu; 16833function BZ(e) { 16834 return e == null 16835} 16836const VZ = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu 16837 , p_ = (e, t) => n => !!(typeof n == "string" && VZ.test(n) && n.startsWith(e) || t && !BZ(n) && Object.prototype.hasOwnProperty.call(n, t)) 16838 , kB = (e, t, n) => r => { 16839 if (typeof r != "string") 16840 return r; 16841 const [i,o,a,s] = r.match(h_); 16842 return { 16843 [e]: parseFloat(i), 16844 [t]: parseFloat(o), 16845 [n]: parseFloat(a), 16846 alpha: s !== void 0 ? parseFloat(s) : 1 16847 } 16848} 16849 , UZ = e => _o(0, 255, e) 16850 , tx = { 16851 ...su, 16852 transform: e => Math.round(UZ(e)) 16853} 16854 , ds = { 16855 test: p_("rgb", "red"), 16856 parse: kB("red", "green", "blue"), 16857 transform: ({red: e, green: t, blue: n, alpha: r=1}) => "rgba(" + tx.transform(e) + ", " + tx.transform(t) + ", " + tx.transform(n) + ", " + jd(sf.transform(r)) + ")" 16858}; 16859function zZ(e) { 16860 let t = "" 16861 , n = "" 16862 , r = "" 16863 , i = ""; 16864 return e.length > 5 ? (t = e.substring(1, 3), 16865 n = e.substring(3, 5), 16866 r = e.substring(5, 7), 16867 i = e.substring(7, 9)) : (t = e.substring(1, 2), 16868 n = e.substring(2, 3), 16869 r = e.substring(3, 4), 16870 i = e.substring(4, 5), 16871 t += t, 16872 n += n, 16873 r += r, 16874 i += i), 16875 { 16876 red: parseInt(t, 16), 16877 green: parseInt(n, 16), 16878 blue: parseInt(r, 16), 16879 alpha: i ? parseInt(i, 16) / 255 : 1 16880 } 16881} 16882const Pw = { 16883 test: p_("#"), 16884 parse: zZ, 16885 transform: ds.transform 16886} 16887 , Ml = { 16888 test: p_("hsl", "hue"), 16889 parse: kB("hue", "saturation", "lightness"), 16890 transform: ({hue: e, saturation: t, lightness: n, alpha: r=1}) => "hsla(" + Math.round(e) + ", " + Ii.transform(jd(t)) + ", " + Ii.transform(jd(n)) + ", " + jd(sf.transform(r)) + ")" 16891} 16892 , _n = { 16893 test: e => ds.test(e) || Pw.test(e) || Ml.test(e), 16894 parse: e => ds.test(e) ? ds.parse(e) : Ml.test(e) ? Ml.parse(e) : Pw.parse(e), 16895 transform: e => typeof e == "string" ? e : e.hasOwnProperty("red") ? ds.transform(e) : Ml.transform(e) 16896} 16897 , WZ = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu; 16898function HZ(e) { 16899 var t, n; 16900 return isNaN(e) && typeof e == "string" && (((t = e.match(h_)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(WZ)) === null || n === void 0 ? void 0 : n.length) || 0) > 0 16901} 16902const RB = "number" 16903 , DB = "color" 16904 , qZ = "var" 16905 , KZ = "var(" 16906 , _A = "${}" 16907 , GZ = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu; 16908function cf(e) { 16909 const t = e.toString() 16910 , n = [] 16911 , r = { 16912 color: [], 16913 number: [], 16914 var: [] 16915 } 16916 , i = []; 16917 let o = 0; 16918 const s = t.replace(GZ, l => (_n.test(l) ? (r.color.push(o), 16919 i.push(DB), 16920 n.push(_n.parse(l))) : l.startsWith(KZ) ? (r.var.push(o), 16921 i.push(qZ), 16922 n.push(l)) : (r.number.push(o), 16923 i.push(RB), 16924 n.push(parseFloat(l))), 16925 ++o, 16926 _A)).split(_A); 16927 return { 16928 values: n, 16929 split: s, 16930 indexes: r, 16931 types: i 16932 } 16933} 16934function IB(e) { 16935 return cf(e).values 16936} 16937function $B(e) { 16938 const {split: t, types: n} = cf(e) 16939 , r = t.length; 16940 return i => { 16941 let o = ""; 16942 for (let a = 0; a < r; a++) 16943 if (o += t[a], 16944 i[a] !== void 0) { 16945 const s = n[a]; 16946 s === RB ? o += jd(i[a]) : s === DB ? o += _n.transform(i[a]) : o += i[a] 16947 } 16948 return o 16949 } 16950} 16951const YZ = e => typeof e == "number" ? 0 : e; 16952function XZ(e) { 16953 const t = IB(e); 16954 return $B(e)(t.map(YZ)) 16955} 16956const Ta = { 16957 test: HZ, 16958 parse: IB, 16959 createTransformer: $B, 16960 getAnimatableNone: XZ 16961} 16962 , QZ = new Set(["brightness", "contrast", "saturate", "opacity"]); 16963function ZZ(e) { 16964 const [t,n] = e.slice(0, -1).split("("); 16965 if (t === "drop-shadow") 16966 return e; 16967 const [r] = n.match(h_) || []; 16968 if (!r) 16969 return e; 16970 const i = n.replace(r, ""); 16971 let o = QZ.has(t) ? 1 : 0; 16972 return r !== n && (o *= 100), 16973 t + "(" + o + i + ")" 16974} 16975const JZ = /\b([a-z-]*)\(.*?\)/gu 16976 , _w = { 16977 ...Ta, 16978 getAnimatableNone: e => { 16979 const t = e.match(JZ); 16980 return t ? t.map(ZZ).join(" ") : e 16981 } 16982} 16983 , eJ = { 16984 ...ZP, 16985 color: _n, 16986 backgroundColor: _n, 16987 outlineColor: _n, 16988 fill: _n, 16989 stroke: _n, 16990 borderColor: _n, 16991 borderTopColor: _n, 16992 borderRightColor: _n, 16993 borderBottomColor: _n, 16994 borderLeftColor: _n, 16995 filter: _w, 16996 WebkitFilter: _w 16997} 16998 , m_ = e => eJ[e]; 16999function LB(e, t) { 17000 let n = m_(e); 17001 return n !== _w && (n = Ta), 17002 n.getAnimatableNone ? n.getAnimatableNone(t) : void 0 17003} 17004const tJ = new Set(["auto", "none", "0"]); 17005function nJ(e, t, n) { 17006 let r = 0, i; 17007 for (; r < e.length && !i; ) { 17008 const o = e[r]; 17009 typeof o == "string" && !tJ.has(o) && cf(o).values.length && (i = e[r]), 17010 r++ 17011 } 17012 if (i && n) 17013 for (const o of t) 17014 e[o] = LB(n, i) 17015} 17016const TA = e => e === su || e === Se 17017 , CA = (e, t) => parseFloat(e.split(", ")[t]) 17018 , OA = (e, t) => (n, {transform: r}) => { 17019 if (r === "none" || !r) 17020 return 0; 17021 const i = r.match(/^matrix3d\((.+)\)$/u); 17022 if (i) 17023 return CA(i[1], t); 17024 { 17025 const o = r.match(/^matrix\((.+)\)$/u); 17026 return o ? CA(o[1], e) : 0 17027 } 17028} 17029 , rJ = new Set(["x", "y", "z"]) 17030 , iJ = au.filter(e => !rJ.has(e)); 17031function oJ(e) { 17032 const t = []; 17033 return iJ.forEach(n => { 17034 const r = e.getValue(n); 17035 r !== void 0 && (t.push([n, r.get()]), 17036 r.set(n.startsWith("scale") ? 1 : 0)) 17037 } 17038 ), 17039 t 17040} 17041const Oc = { 17042 width: ({x: e}, {paddingLeft: t="0", paddingRight: n="0"}) => e.max - e.min - parseFloat(t) - parseFloat(n), 17043 height: ({y: e}, {paddingTop: t="0", paddingBottom: n="0"}) => e.max - e.min - parseFloat(t) - parseFloat(n), 17044 top: (e, {top: t}) => parseFloat(t), 17045 left: (e, {left: t}) => parseFloat(t), 17046 bottom: ({y: e}, {top: t}) => parseFloat(t) + (e.max - e.min), 17047 right: ({x: e}, {left: t}) => parseFloat(t) + (e.max - e.min), 17048 x: OA(4, 13), 17049 y: OA(5, 14) 17050}; 17051Oc.translateX = Oc.x; 17052Oc.translateY = Oc.y; 17053const Cs = new Set; 17054let Tw = !1 17055 , Cw = !1; 17056function FB() { 17057 if (Cw) { 17058 const e = Array.from(Cs).filter(r => r.needsMeasurement) 17059 , t = new Set(e.map(r => r.element)) 17060 , n = new Map; 17061 t.forEach(r => { 17062 const i = oJ(r); 17063 i.length && (n.set(r, i), 17064 r.render()) 17065 } 17066 ), 17067 e.forEach(r => r.measureInitialState()), 17068 t.forEach(r => { 17069 r.render(); 17070 const i = n.get(r); 17071 i && i.forEach( ([o,a]) => { 17072 var s; 17073 (s = r.getValue(o)) === null || s === void 0 || s.set(a) 17074 } 17075 ) 17076 } 17077 ), 17078 e.forEach(r => r.measureEndState()), 17079 e.forEach(r => { 17080 r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY) 17081 } 17082 ) 17083 } 17084 Cw = !1, 17085 Tw = !1, 17086 Cs.forEach(e => e.complete()), 17087 Cs.clear() 17088} 17089function BB() { 17090 Cs.forEach(e => { 17091 e.readKeyframes(), 17092 e.needsMeasurement && (Cw = !0) 17093 } 17094 ) 17095} 17096function aJ() { 17097 BB(), 17098 FB() 17099} 17100class g_ { 17101 constructor(t, n, r, i, o, a=!1) { 17102 this.isComplete = !1, 17103 this.isAsync = !1, 17104 this.needsMeasurement = !1, 17105 this.isScheduled = !1, 17106 this.unresolvedKeyframes = [...t], 17107 this.onComplete = n, 17108 this.name = r, 17109 this.motionValue = i, 17110 this.element = o, 17111 this.isAsync = a 17112 } 17113 scheduleResolve() { 17114 this.isScheduled = !0, 17115 this.isAsync ? (Cs.add(this), 17116 Tw || (Tw = !0, 17117 vt.read(BB), 17118 vt.resolveKeyframes(FB))) : (this.readKeyframes(), 17119 this.complete()) 17120 } 17121 readKeyframes() { 17122 const {unresolvedKeyframes: t, name: n, element: r, motionValue: i} = this; 17123 for (let o = 0; o < t.length; o++) 17124 if (t[o] === null) 17125 if (o === 0) { 17126 const a = i == null ? void 0 : i.get() 17127 , s = t[t.length - 1]; 17128 if (a !== void 0) 17129 t[0] = a; 17130 else if (r && n) { 17131 const l = r.readValue(n, s); 17132 l != null && (t[0] = l) 17133 } 17134 t[0] === void 0 && (t[0] = s), 17135 i && a === void 0 && i.set(t[0]) 17136 } else 17137 t[o] = t[o - 1] 17138 } 17139 setFinalKeyframe() {} 17140 measureInitialState() {} 17141 renderEndStyles() {} 17142 measureEndState() {} 17143 complete() { 17144 this.isComplete = !0, 17145 this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), 17146 Cs.delete(this) 17147 } 17148 cancel() { 17149 this.isComplete || (this.isScheduled = !1, 17150 Cs.delete(this)) 17151 } 17152 resume() { 17153 this.isComplete || this.scheduleResolve() 17154 } 17155} 17156const VB = e => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e) 17157 , sJ = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u; 17158function lJ(e) { 17159 const t = sJ.exec(e); 17160 if (!t) 17161 return [, ]; 17162 const [,n,r,i] = t; 17163 return [`--${n ?? r}`, i] 17164} 17165function UB(e, t, n=1) { 17166 const [r,i] = lJ(e); 17167 if (!r) 17168 return; 17169 const o = window.getComputedStyle(t).getPropertyValue(r); 17170 if (o) { 17171 const a = o.trim(); 17172 return VB(a) ? parseFloat(a) : a 17173 } 17174 return QP(i) ? UB(i, t, n + 1) : i 17175} 17176const zB = e => t => t.test(e) 17177 , cJ = { 17178 test: e => e === "auto", 17179 parse: e => e 17180} 17181 , WB = [su, Se, Ii, Wo, ZQ, QQ, cJ] 17182 , AA = e => WB.find(zB(e)); 17183class HB extends g_ { 17184 constructor(t, n, r, i, o) { 17185 super(t, n, r, i, o, !0) 17186 } 17187 readKeyframes() { 17188 const {unresolvedKeyframes: t, element: n, name: r} = this; 17189 if (!n || !n.current) 17190 return; 17191 super.readKeyframes(); 17192 for (let l = 0; l < t.length; l++) { 17193 let c = t[l]; 17194 if (typeof c == "string" && (c = c.trim(), 17195 QP(c))) { 17196 const u = UB(c, n.current); 17197 u !== void 0 && (t[l] = u), 17198 l === t.length - 1 && (this.finalKeyframe = c) 17199 } 17200 } 17201 if (this.resolveNoneKeyframes(), 17202 !wB.has(r) || t.length !== 2) 17203 return; 17204 const [i,o] = t 17205 , a = AA(i) 17206 , s = AA(o); 17207 if (a !== s) 17208 if (TA(a) && TA(s)) 17209 for (let l = 0; l < t.length; l++) { 17210 const c = t[l]; 17211 typeof c == "string" && (t[l] = parseFloat(c)) 17212 } 17213 else 17214 this.needsMeasurement = !0 17215 } 17216 resolveNoneKeyframes() { 17217 const {unresolvedKeyframes: t, name: n} = this 17218 , r = []; 17219 for (let i = 0; i < t.length; i++) 17220 FZ(t[i]) && r.push(i); 17221 r.length && nJ(t, r, n) 17222 } 17223 measureInitialState() { 17224 const {element: t, unresolvedKeyframes: n, name: r} = this; 17225 if (!t || !t.current) 17226 return; 17227 r === "height" && (this.suspendedScrollY = window.pageYOffset), 17228 this.measuredOrigin = Oc[r](t.measureViewportBox(), window.getComputedStyle(t.current)), 17229 n[0] = this.measuredOrigin; 17230 const i = n[n.length - 1]; 17231 i !== void 0 && t.getValue(r, i).jump(i, !1) 17232 } 17233 measureEndState() { 17234 var t; 17235 const {element: n, name: r, unresolvedKeyframes: i} = this; 17236 if (!n || !n.current) 17237 return; 17238 const o = n.getValue(r); 17239 o && o.jump(this.measuredOrigin, !1); 17240 const a = i.length - 1 17241 , s = i[a]; 17242 i[a] = Oc[r](n.measureViewportBox(), window.getComputedStyle(n.current)), 17243 s !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = s), 17244 !((t = this.removedTransforms) === null || t === void 0) && t.length && this.removedTransforms.forEach( ([l,c]) => { 17245 n.getValue(l).set(c) 17246 } 17247 ), 17248 this.resolveNoneKeyframes() 17249 } 17250} 17251const EA = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Ta.test(e) || e === "0") && !e.startsWith("url(")); 17252function uJ(e) { 17253 const t = e[0]; 17254 if (e.length === 1) 17255 return !0; 17256 for (let n = 0; n < e.length; n++) 17257 if (e[n] !== t) 17258 return !0 17259} 17260function dJ(e, t, n, r) { 17261 const i = e[0]; 17262 if (i === null) 17263 return !1; 17264 if (t === "display" || t === "visibility") 17265 return !0; 17266 const o = e[e.length - 1] 17267 , a = EA(i, t) 17268 , s = EA(o, t); 17269 return !a || !s ? !1 : uJ(e) || (n === "spring" || o_(n)) && r 17270} 17271const fJ = e => e !== null; 17272function tv(e, {repeat: t, repeatType: n="loop"}, r) { 17273 const i = e.filter(fJ) 17274 , o = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1; 17275 return !o || r === void 0 ? i[o] : r 17276} 17277const hJ = 40; 17278class qB { 17279 constructor({autoplay: t=!0, delay: n=0, type: r="keyframes", repeat: i=0, repeatDelay: o=0, repeatType: a="loop", ...s}) { 17280 this.isStopped = !1, 17281 this.hasAttemptedResolve = !1, 17282 this.createdAt = $i.now(), 17283 this.options = { 17284 autoplay: t, 17285 delay: n, 17286 type: r, 17287 repeat: i, 17288 repeatDelay: o, 17289 repeatType: a, 17290 ...s 17291 }, 17292 this.updateFinishedPromise() 17293 } 17294 calcStartTime() { 17295 return this.resolvedAt ? this.resolvedAt - this.createdAt > hJ ? this.resolvedAt : this.createdAt : this.createdAt 17296 } 17297 get resolved() { 17298 return !this._resolved && !this.hasAttemptedResolve && aJ(), 17299 this._resolved 17300 } 17301 onKeyframesResolved(t, n) { 17302 this.resolvedAt = $i.now(), 17303 this.hasAttemptedResolve = !0; 17304 const {name: r, type: i, velocity: o, delay: a, onComplete: s, onUpdate: l, isGenerator: c} = this.options; 17305 if (!c && !dJ(t, r, i, o)) 17306 if (a) 17307 this.options.duration = 0; 17308 else { 17309 l && l(tv(t, this.options, n)), 17310 s && s(), 17311 this.resolveFinishedPromise(); 17312 return 17313 } 17314 const u = this.initPlayback(t, n); 17315 u !== !1 && (this._resolved = { 17316 keyframes: t, 17317 finalKeyframe: n, 17318 ...u 17319 }, 17320 this.onPostResolved()) 17321 } 17322 onPostResolved() {} 17323 then(t, n) { 17324 return this.currentFinishedPromise.then(t, n) 17325 } 17326 flatten() { 17327 this.options.type = "keyframes", 17328 this.options.ease = "linear" 17329 } 17330 updateFinishedPromise() { 17331 this.currentFinishedPromise = new Promise(t => { 17332 this.resolveFinishedPromise = t 17333 } 17334 ) 17335 } 17336} 17337const Ot = (e, t, n) => e + (t - e) * n; 17338function nx(e, t, n) { 17339 return n < 0 && (n += 1), 17340 n > 1 && (n -= 1), 17341 n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e 17342} 17343function pJ({hue: e, saturation: t, lightness: n, alpha: r}) { 17344 e /= 360, 17345 t /= 100, 17346 n /= 100; 17347 let i = 0 17348 , o = 0 17349 , a = 0; 17350 if (!t) 17351 i = o = a = n; 17352 else { 17353 const s = n < .5 ? n * (1 + t) : n + t - n * t 17354 , l = 2 * n - s; 17355 i = nx(l, s, e + 1 / 3), 17356 o = nx(l, s, e), 17357 a = nx(l, s, e - 1 / 3) 17358 } 17359 return { 17360 red: Math.round(i * 255), 17361 green: Math.round(o * 255), 17362 blue: Math.round(a * 255), 17363 alpha: r 17364 } 17365} 17366function Qm(e, t) { 17367 return n => n > 0 ? t : e 17368} 17369const rx = (e, t, n) => { 17370 const r = e * e 17371 , i = n * (t * t - r) + r; 17372 return i < 0 ? 0 : Math.sqrt(i) 17373} 17374 , mJ = [Pw, ds, Ml] 17375 , gJ = e => mJ.find(t => t.test(e)); 17376function jA(e) { 17377 const t = gJ(e); 17378 if (!t) 17379 return !1; 17380 let n = t.parse(e); 17381 return t === Ml && (n = pJ(n)), 17382 n 17383} 17384const NA = (e, t) => { 17385 const n = jA(e) 17386 , r = jA(t); 17387 if (!n || !r) 17388 return Qm(e, t); 17389 const i = { 17390 ...n 17391 }; 17392 return o => (i.red = rx(n.red, r.red, o), 17393 i.green = rx(n.green, r.green, o), 17394 i.blue = rx(n.blue, r.blue, o), 17395 i.alpha = Ot(n.alpha, r.alpha, o), 17396 ds.transform(i)) 17397} 17398 , yJ = (e, t) => n => t(e(n)) 17399 , jh = (...e) => e.reduce(yJ) 17400 , Ow = new Set(["none", "hidden"]); 17401function vJ(e, t) { 17402 return Ow.has(e) ? n => n <= 0 ? e : t : n => n >= 1 ? t : e 17403} 17404function xJ(e, t) { 17405 return n => Ot(e, t, n) 17406} 17407function y_(e) { 17408 return typeof e == "number" ? xJ : typeof e == "string" ? QP(e) ? Qm : _n.test(e) ? NA : SJ : Array.isArray(e) ? KB : typeof e == "object" ? _n.test(e) ? NA : bJ : Qm 17409} 17410function KB(e, t) { 17411 const n = [...e] 17412 , r = n.length 17413 , i = e.map( (o, a) => y_(o)(o, t[a])); 17414 return o => { 17415 for (let a = 0; a < r; a++) 17416 n[a] = i[a](o); 17417 return n 17418 } 17419} 17420function bJ(e, t) { 17421 const n = { 17422 ...e, 17423 ...t 17424 } 17425 , r = {}; 17426 for (const i in n) 17427 e[i] !== void 0 && t[i] !== void 0 && (r[i] = y_(e[i])(e[i], t[i])); 17428 return i => { 17429 for (const o in r) 17430 n[o] = r[o](i); 17431 return n 17432 } 17433} 17434function wJ(e, t) { 17435 var n; 17436 const r = [] 17437 , i = { 17438 color: 0, 17439 var: 0, 17440 number: 0 17441 }; 17442 for (let o = 0; o < t.values.length; o++) { 17443 const a = t.types[o] 17444 , s = e.indexes[a][i[a]] 17445 , l = (n = e.values[s]) !== null && n !== void 0 ? n : 0; 17446 r[o] = l, 17447 i[a]++ 17448 } 17449 return r 17450} 17451const SJ = (e, t) => { 17452 const n = Ta.createTransformer(t) 17453 , r = cf(e) 17454 , i = cf(t); 17455 return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Ow.has(e) && !i.values.length || Ow.has(t) && !r.values.length ? vJ(e, t) : jh(KB(wJ(r, i), i.values), n) : Qm(e, t) 17456} 17457; 17458function GB(e, t, n) { 17459 return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Ot(e, t, n) : y_(e)(e, t) 17460} 17461const PJ = 5; 17462function YB(e, t, n) { 17463 const r = Math.max(t - PJ, 0); 17464 return SB(n - e(r), t - r) 17465} 17466const Mt = { 17467 stiffness: 100, 17468 damping: 10, 17469 mass: 1, 17470 velocity: 0,
vendor: 14,115 bytes, lines 17471-17957
17471 duration: 800, 17472 bounce: .3, 17473 visualDuration: .3, 17474 restSpeed: { 17475 granular: .01, 17476 default: 2 17477 }, 17478 restDelta: { 17479 granular: .005, 17480 default: .5 17481 }, 17482 minDuration: .01, 17483 maxDuration: 10, 17484 minDamping: .05, 17485 maxDamping: 1 17486} 17487 , ix = .001; 17488function _J({duration: e=Mt.duration, bounce: t=Mt.bounce, velocity: n=Mt.velocity, mass: r=Mt.mass}) { 17489 let i, o, a = 1 - t; 17490 a = _o(Mt.minDamping, Mt.maxDamping, a), 17491 e = _o(Mt.minDuration, Mt.maxDuration, mo(e)), 17492 a < 1 ? (i = c => { 17493 const u = c * a 17494 , d = u * e 17495 , f = u - n 17496 , p = Aw(c, a) 17497 , g = Math.exp(-d); 17498 return ix - f / p * g 17499 } 17500 , 17501 o = c => { 17502 const d = c * a * e 17503 , f = d * n + n 17504 , p = Math.pow(a, 2) * Math.pow(c, 2) * e 17505 , g = Math.exp(-d) 17506 , m = Aw(Math.pow(c, 2), a); 17507 return (-i(c) + ix > 0 ? -1 : 1) * ((f - p) * g) / m 17508 } 17509 ) : (i = c => { 17510 const u = Math.exp(-c * e) 17511 , d = (c - n) * e + 1; 17512 return -ix + u * d 17513 } 17514 , 17515 o = c => { 17516 const u = Math.exp(-c * e) 17517 , d = (n - c) * (e * e); 17518 return u * d 17519 } 17520 ); 17521 const s = 5 / e 17522 , l = CJ(i, o, s); 17523 if (e = po(e), 17524 isNaN(l)) 17525 return { 17526 stiffness: Mt.stiffness, 17527 damping: Mt.damping, 17528 duration: e 17529 }; 17530 { 17531 const c = Math.pow(l, 2) * r; 17532 return { 17533 stiffness: c, 17534 damping: a * 2 * Math.sqrt(r * c), 17535 duration: e 17536 } 17537 } 17538} 17539const TJ = 12; 17540function CJ(e, t, n) { 17541 let r = n; 17542 for (let i = 1; i < TJ; i++) 17543 r = r - e(r) / t(r); 17544 return r 17545} 17546function Aw(e, t) { 17547 return e * Math.sqrt(1 - t * t) 17548} 17549const OJ = ["duration", "bounce"] 17550 , AJ = ["stiffness", "damping", "mass"]; 17551function MA(e, t) { 17552 return t.some(n => e[n] !== void 0) 17553} 17554function EJ(e) { 17555 let t = { 17556 velocity: Mt.velocity, 17557 stiffness: Mt.stiffness, 17558 damping: Mt.damping, 17559 mass: Mt.mass, 17560 isResolvedFromDuration: !1, 17561 ...e 17562 }; 17563 if (!MA(e, AJ) && MA(e, OJ)) 17564 if (e.visualDuration) { 17565 const n = e.visualDuration 17566 , r = 2 * Math.PI / (n * 1.2) 17567 , i = r * r 17568 , o = 2 * _o(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i); 17569 t = { 17570 ...t, 17571 mass: Mt.mass, 17572 stiffness: i, 17573 damping: o 17574 } 17575 } else { 17576 const n = _J(e); 17577 t = { 17578 ...t, 17579 ...n, 17580 mass: Mt.mass 17581 }, 17582 t.isResolvedFromDuration = !0 17583 } 17584 return t 17585} 17586function XB(e=Mt.visualDuration, t=Mt.bounce) { 17587 const n = typeof e != "object" ? { 17588 visualDuration: e, 17589 keyframes: [0, 1], 17590 bounce: t 17591 } : e; 17592 let {restSpeed: r, restDelta: i} = n; 17593 const o = n.keyframes[0] 17594 , a = n.keyframes[n.keyframes.length - 1] 17595 , s = { 17596 done: !1, 17597 value: o 17598 } 17599 , {stiffness: l, damping: c, mass: u, duration: d, velocity: f, isResolvedFromDuration: p} = EJ({ 17600 ...n, 17601 velocity: -mo(n.velocity || 0) 17602 }) 17603 , g = f || 0 17604 , m = c / (2 * Math.sqrt(l * u)) 17605 , x = a - o 17606 , v = mo(Math.sqrt(l / u)) 17607 , y = Math.abs(x) < 5; 17608 r || (r = y ? Mt.restSpeed.granular : Mt.restSpeed.default), 17609 i || (i = y ? Mt.restDelta.granular : Mt.restDelta.default); 17610 let w; 17611 if (m < 1) { 17612 const S = Aw(v, m); 17613 w = _ => { 17614 const T = Math.exp(-m * v * _); 17615 return a - T * ((g + m * v * x) / S * Math.sin(S * _) + x * Math.cos(S * _)) 17616 } 17617 } else if (m === 1) 17618 w = S => a - Math.exp(-v * S) * (x + (g + v * x) * S); 17619 else { 17620 const S = v * Math.sqrt(m * m - 1); 17621 w = _ => { 17622 const T = Math.exp(-m * v * _) 17623 , C = Math.min(S * _, 300); 17624 return a - T * ((g + m * v * x) * Math.sinh(C) + S * x * Math.cosh(C)) / S 17625 } 17626 } 17627 const P = { 17628 calculatedDuration: p && d || null, 17629 next: S => { 17630 const _ = w(S); 17631 if (p) 17632 s.done = S >= d; 17633 else { 17634 let T = 0; 17635 m < 1 && (T = S === 0 ? po(g) : YB(w, S, _)); 17636 const C = Math.abs(T) <= r 17637 , O = Math.abs(a - _) <= i; 17638 s.done = C && O 17639 } 17640 return s.value = s.done ? a : _, 17641 s 17642 } 17643 , 17644 toString: () => { 17645 const S = Math.min(pB(P), bw) 17646 , _ = mB(T => P.next(S * T).value, S, 30); 17647 return S + "ms " + _ 17648 } 17649 }; 17650 return P 17651} 17652function kA({keyframes: e, velocity: t=0, power: n=.8, timeConstant: r=325, bounceDamping: i=10, bounceStiffness: o=500, modifyTarget: a, min: s, max: l, restDelta: c=.5, restSpeed: u}) { 17653 const d = e[0] 17654 , f = { 17655 done: !1, 17656 value: d 17657 } 17658 , p = C => s !== void 0 && C < s || l !== void 0 && C > l 17659 , g = C => s === void 0 ? l : l === void 0 || Math.abs(s - C) < Math.abs(l - C) ? s : l; 17660 let m = n * t; 17661 const x = d + m 17662 , v = a === void 0 ? x : a(x); 17663 v !== x && (m = v - d); 17664 const y = C => -m * Math.exp(-C / r) 17665 , w = C => v + y(C) 17666 , P = C => { 17667 const O = y(C) 17668 , A = w(C); 17669 f.done = Math.abs(O) <= c, 17670 f.value = f.done ? v : A 17671 } 17672 ; 17673 let S, _; 17674 const T = C => { 17675 p(f.value) && (S = C, 17676 _ = XB({ 17677 keyframes: [f.value, g(f.value)], 17678 velocity: YB(w, C, f.value), 17679 damping: i, 17680 stiffness: o, 17681 restDelta: c, 17682 restSpeed: u 17683 })) 17684 } 17685 ; 17686 return T(0), 17687 { 17688 calculatedDuration: null, 17689 next: C => { 17690 let O = !1; 17691 return !_ && S === void 0 && (O = !0, 17692 P(C), 17693 T(C)), 17694 S !== void 0 && C >= S ? _.next(C - S) : (!O && P(C), 17695 f) 17696 } 17697 } 17698} 17699const jJ = Eh(.42, 0, 1, 1) 17700 , NJ = Eh(0, 0, .58, 1) 17701 , QB = Eh(.42, 0, .58, 1) 17702 , MJ = e => Array.isArray(e) && typeof e[0] != "number" 17703 , RA = { 17704 linear: pr, 17705 easeIn: jJ, 17706 easeInOut: QB, 17707 easeOut: NJ, 17708 circIn: f_, 17709 circInOut: NB, 17710 circOut: jB, 17711 backIn: d_, 17712 backInOut: AB, 17713 backOut: OB, 17714 anticipate: EB 17715} 17716 , DA = e => { 17717 if (a_(e)) { 17718 vw(e.length === 4); 17719 const [t,n,r,i] = e; 17720 return Eh(t, n, r, i) 17721 } else if (typeof e == "string") 17722 return vw(RA[e] !== void 0), 17723 RA[e]; 17724 return e 17725} 17726; 17727function kJ(e, t, n) { 17728 const r = [] 17729 , i = n || GB 17730 , o = e.length - 1; 17731 for (let a = 0; a < o; a++) { 17732 let s = i(e[a], e[a + 1]); 17733 if (t) { 17734 const l = Array.isArray(t) ? t[a] || pr : t; 17735 s = jh(l, s) 17736 } 17737 r.push(s) 17738 } 17739 return r 17740} 17741function RJ(e, t, {clamp: n=!0, ease: r, mixer: i}={}) { 17742 const o = e.length; 17743 if (vw(o === t.length), 17744 o === 1) 17745 return () => t[0]; 17746 if (o === 2 && t[0] === t[1]) 17747 return () => t[1]; 17748 const a = e[0] === e[1]; 17749 e[0] > e[o - 1] && (e = [...e].reverse(), 17750 t = [...t].reverse()); 17751 const s = kJ(t, r, i) 17752 , l = s.length 17753 , c = u => { 17754 if (a && u < e[0]) 17755 return t[0]; 17756 let d = 0; 17757 if (l > 1) 17758 for (; d < e.length - 2 && !(u < e[d + 1]); d++) 17759 ; 17760 const f = Tc(e[d], e[d + 1], u); 17761 return s[d](f) 17762 } 17763 ; 17764 return n ? u => c(_o(e[0], e[o - 1], u)) : c 17765} 17766function DJ(e, t) { 17767 const n = e[e.length - 1]; 17768 for (let r = 1; r <= t; r++) { 17769 const i = Tc(0, t, r); 17770 e.push(Ot(n, 1, i)) 17771 } 17772} 17773function IJ(e) { 17774 const t = [0]; 17775 return DJ(t, e.length - 1), 17776 t 17777} 17778function $J(e, t) { 17779 return e.map(n => n * t) 17780} 17781function LJ(e, t) { 17782 return e.map( () => t || QB).splice(0, e.length - 1) 17783} 17784function Zm({duration: e=300, keyframes: t, times: n, ease: r="easeInOut"}) { 17785 const i = MJ(r) ? r.map(DA) : DA(r) 17786 , o = { 17787 done: !1, 17788 value: t[0] 17789 } 17790 , a = $J(n && n.length === t.length ? n : IJ(t), e) 17791 , s = RJ(a, t, { 17792 ease: Array.isArray(i) ? i : LJ(t, i) 17793 }); 17794 return { 17795 calculatedDuration: e, 17796 next: l => (o.value = s(l), 17797 o.done = l >= e, 17798 o) 17799 } 17800} 17801const FJ = e => { 17802 const t = ({timestamp: n}) => e(n); 17803 return { 17804 start: () => vt.update(t, !0), 17805 stop: () => _a(t), 17806 now: () => gn.isProcessing ? gn.timestamp : $i.now() 17807 } 17808} 17809 , BJ = { 17810 decay: kA, 17811 inertia: kA, 17812 tween: Zm, 17813 keyframes: Zm, 17814 spring: XB 17815} 17816 , VJ = e => e / 100; 17817class v_ extends qB { 17818 constructor(t) { 17819 super(t), 17820 this.holdTime = null, 17821 this.cancelTime = null, 17822 this.currentTime = 0, 17823 this.playbackSpeed = 1, 17824 this.pendingPlayState = "running", 17825 this.startTime = null, 17826 this.state = "idle", 17827 this.stop = () => { 17828 if (this.resolver.cancel(), 17829 this.isStopped = !0, 17830 this.state === "idle") 17831 return; 17832 this.teardown(); 17833 const {onStop: l} = this.options; 17834 l && l() 17835 } 17836 ; 17837 const {name: n, motionValue: r, element: i, keyframes: o} = this.options 17838 , a = (i == null ? void 0 : i.KeyframeResolver) || g_ 17839 , s = (l, c) => this.onKeyframesResolved(l, c); 17840 this.resolver = new a(o,s,n,r,i), 17841 this.resolver.scheduleResolve() 17842 } 17843 flatten() { 17844 super.flatten(), 17845 this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes)) 17846 } 17847 initPlayback(t) { 17848 const {type: n="keyframes", repeat: r=0, repeatDelay: i=0, repeatType: o, velocity: a=0} = this.options 17849 , s = o_(n) ? n : BJ[n] || Zm; 17850 let l, c; 17851 s !== Zm && typeof t[0] != "number" && (l = jh(VJ, GB(t[0], t[1])), 17852 t = [0, 100]); 17853 const u = s({ 17854 ...this.options, 17855 keyframes: t 17856 }); 17857 o === "mirror" && (c = s({ 17858 ...this.options, 17859 keyframes: [...t].reverse(), 17860 velocity: -a 17861 })), 17862 u.calculatedDuration === null && (u.calculatedDuration = pB(u)); 17863 const {calculatedDuration: d} = u 17864 , f = d + i 17865 , p = f * (r + 1) - i; 17866 return { 17867 generator: u, 17868 mirroredGenerator: c, 17869 mapPercentToKeyframes: l, 17870 calculatedDuration: d, 17871 resolvedDuration: f, 17872 totalDuration: p 17873 } 17874 } 17875 onPostResolved() { 17876 const {autoplay: t=!0} = this.options; 17877 this.play(), 17878 this.pendingPlayState === "paused" || !t ? this.pause() : this.state = this.pendingPlayState 17879 } 17880 tick(t, n=!1) { 17881 const {resolved: r} = this; 17882 if (!r) { 17883 const {keyframes: C} = this.options; 17884 return { 17885 done: !0, 17886 value: C[C.length - 1] 17887 } 17888 } 17889 const {finalKeyframe: i, generator: o, mirroredGenerator: a, mapPercentToKeyframes: s, keyframes: l, calculatedDuration: c, totalDuration: u, resolvedDuration: d} = r; 17890 if (this.startTime === null) 17891 return o.next(0); 17892 const {delay: f, repeat: p, repeatType: g, repeatDelay: m, onUpdate: x} = this.options; 17893 this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - u / this.speed, this.startTime)), 17894 n ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed; 17895 const v = this.currentTime - f * (this.speed >= 0 ? 1 : -1) 17896 , y = this.speed >= 0 ? v < 0 : v > u; 17897 this.currentTime = Math.max(v, 0), 17898 this.state === "finished" && this.holdTime === null && (this.currentTime = u); 17899 let w = this.currentTime 17900 , P = o; 17901 if (p) { 17902 const C = Math.min(this.currentTime, u) / d; 17903 let O = Math.floor(C) 17904 , A = C % 1; 17905 !A && C >= 1 && (A = 1), 17906 A === 1 && O--, 17907 O = Math.min(O, p + 1), 17908 !!(O % 2) && (g === "reverse" ? (A = 1 - A, 17909 m && (A -= m / d)) : g === "mirror" && (P = a)), 17910 w = _o(0, 1, A) * d 17911 } 17912 const S = y ? { 17913 done: !1, 17914 value: l[0] 17915 } : P.next(w); 17916 s && (S.value = s(S.value)); 17917 let {done: _} = S; 17918 !y && c !== null && (_ = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0); 17919 const T = this.holdTime === null && (this.state === "finished" || this.state === "running" && _); 17920 return T && i !== void 0 && (S.value = tv(l, this.options, i)), 17921 x && x(S.value), 17922 T && this.finish(), 17923 S 17924 } 17925 get duration() { 17926 const {resolved: t} = this; 17927 return t ? mo(t.calculatedDuration) : 0 17928 } 17929 get time() { 17930 return mo(this.currentTime) 17931 } 17932 set time(t) { 17933 t = po(t), 17934 this.currentTime = t, 17935 this.holdTime !== null || this.speed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.speed) 17936 } 17937 get speed() { 17938 return this.playbackSpeed 17939 } 17940 set speed(t) { 17941 const n = this.playbackSpeed !== t; 17942 this.playbackSpeed = t, 17943 n && (this.time = mo(this.currentTime)) 17944 } 17945 play() { 17946 if (this.resolver.isScheduled || this.resolver.resume(), 17947 !this._resolved) { 17948 this.pendingPlayState = "running"; 17949 return 17950 } 17951 if (this.isStopped) 17952 return; 17953 const {driver: t=FJ, onPlay: n, startTime: r} = this.options; 17954 this.driver || (this.driver = t(o => this.tick(o))), 17955 n && n(); 17956 const i = this.driver.now(); 17957 this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = i) : this.startTime = r ?? this.calcStartTime(),
vendor: 91,066 bytes, lines 17958-20782
17958 this.state === "finished" && this.updateFinishedPromise(), 17959 this.cancelTime = this.startTime, 17960 this.holdTime = null, 17961 this.state = "running", 17962 this.driver.start() 17963 } 17964 pause() { 17965 var t; 17966 if (!this._resolved) { 17967 this.pendingPlayState = "paused"; 17968 return 17969 } 17970 this.state = "paused", 17971 this.holdTime = (t = this.currentTime) !== null && t !== void 0 ? t : 0 17972 } 17973 complete() { 17974 this.state !== "running" && this.play(), 17975 this.pendingPlayState = this.state = "finished", 17976 this.holdTime = null 17977 } 17978 finish() { 17979 this.teardown(), 17980 this.state = "finished"; 17981 const {onComplete: t} = this.options; 17982 t && t() 17983 } 17984 cancel() { 17985 this.cancelTime !== null && this.tick(this.cancelTime), 17986 this.teardown(), 17987 this.updateFinishedPromise() 17988 } 17989 teardown() { 17990 this.state = "idle", 17991 this.stopDriver(), 17992 this.resolveFinishedPromise(), 17993 this.updateFinishedPromise(), 17994 this.startTime = this.cancelTime = null, 17995 this.resolver.cancel() 17996 } 17997 stopDriver() { 17998 this.driver && (this.driver.stop(), 17999 this.driver = void 0) 18000 } 18001 sample(t) { 18002 return this.startTime = 0, 18003 this.tick(t, !0) 18004 } 18005} 18006const UJ = new Set(["opacity", "clipPath", "filter", "transform"]); 18007function zJ(e, t, n, {delay: r=0, duration: i=300, repeat: o=0, repeatType: a="loop", ease: s="easeInOut", times: l}={}) { 18008 const c = { 18009 [t]: n 18010 }; 18011 l && (c.offset = l); 18012 const u = yB(s, i); 18013 return Array.isArray(u) && (c.easing = u), 18014 e.animate(c, { 18015 delay: r, 18016 duration: i, 18017 easing: Array.isArray(u) ? "linear" : u, 18018 fill: "both", 18019 iterations: o + 1, 18020 direction: a === "reverse" ? "alternate" : "normal" 18021 }) 18022} 18023const WJ = WP( () => Object.hasOwnProperty.call(Element.prototype, "animate")) 18024 , Jm = 10 18025 , HJ = 2e4; 18026function qJ(e) { 18027 return o_(e.type) || e.type === "spring" || !gB(e.ease) 18028} 18029function KJ(e, t) { 18030 const n = new v_({ 18031 ...t, 18032 keyframes: e, 18033 repeat: 0, 18034 delay: 0, 18035 isGenerator: !0 18036 }); 18037 let r = { 18038 done: !1, 18039 value: e[0] 18040 }; 18041 const i = []; 18042 let o = 0; 18043 for (; !r.done && o < HJ; ) 18044 r = n.sample(o), 18045 i.push(r.value), 18046 o += Jm; 18047 return { 18048 times: void 0, 18049 keyframes: i, 18050 duration: o - Jm, 18051 ease: "linear" 18052 } 18053} 18054const ZB = { 18055 anticipate: EB, 18056 backInOut: AB, 18057 circInOut: NB 18058}; 18059function GJ(e) { 18060 return e in ZB 18061} 18062class IA extends qB { 18063 constructor(t) { 18064 super(t); 18065 const {name: n, motionValue: r, element: i, keyframes: o} = this.options; 18066 this.resolver = new HB(o, (a, s) => this.onKeyframesResolved(a, s),n,r,i), 18067 this.resolver.scheduleResolve() 18068 } 18069 initPlayback(t, n) { 18070 let {duration: r=300, times: i, ease: o, type: a, motionValue: s, name: l, startTime: c} = this.options; 18071 if (!s.owner || !s.owner.current) 18072 return !1; 18073 if (typeof o == "string" && Xm() && GJ(o) && (o = ZB[o]), 18074 qJ(this.options)) { 18075 const {onComplete: d, onUpdate: f, motionValue: p, element: g, ...m} = this.options 18076 , x = KJ(t, m); 18077 t = x.keyframes, 18078 t.length === 1 && (t[1] = t[0]), 18079 r = x.duration, 18080 i = x.times, 18081 o = x.ease, 18082 a = "keyframes" 18083 } 18084 const u = zJ(s.owner.current, l, t, { 18085 ...this.options, 18086 duration: r, 18087 times: i, 18088 ease: o 18089 }); 18090 return u.startTime = c ?? this.calcStartTime(), 18091 this.pendingTimeline ? (xA(u, this.pendingTimeline), 18092 this.pendingTimeline = void 0) : u.onfinish = () => { 18093 const {onComplete: d} = this.options; 18094 s.set(tv(t, this.options, n)), 18095 d && d(), 18096 this.cancel(), 18097 this.resolveFinishedPromise() 18098 } 18099 , 18100 { 18101 animation: u, 18102 duration: r, 18103 times: i, 18104 type: a, 18105 ease: o, 18106 keyframes: t 18107 } 18108 } 18109 get duration() { 18110 const {resolved: t} = this; 18111 if (!t) 18112 return 0; 18113 const {duration: n} = t; 18114 return mo(n) 18115 } 18116 get time() { 18117 const {resolved: t} = this; 18118 if (!t) 18119 return 0; 18120 const {animation: n} = t; 18121 return mo(n.currentTime || 0) 18122 } 18123 set time(t) { 18124 const {resolved: n} = this; 18125 if (!n) 18126 return; 18127 const {animation: r} = n; 18128 r.currentTime = po(t) 18129 } 18130 get speed() { 18131 const {resolved: t} = this; 18132 if (!t) 18133 return 1; 18134 const {animation: n} = t; 18135 return n.playbackRate 18136 } 18137 set speed(t) { 18138 const {resolved: n} = this; 18139 if (!n) 18140 return; 18141 const {animation: r} = n; 18142 r.playbackRate = t 18143 } 18144 get state() { 18145 const {resolved: t} = this; 18146 if (!t) 18147 return "idle"; 18148 const {animation: n} = t; 18149 return n.playState 18150 } 18151 get startTime() { 18152 const {resolved: t} = this; 18153 if (!t) 18154 return null; 18155 const {animation: n} = t; 18156 return n.startTime 18157 } 18158 attachTimeline(t) { 18159 if (!this._resolved) 18160 this.pendingTimeline = t; 18161 else { 18162 const {resolved: n} = this; 18163 if (!n) 18164 return pr; 18165 const {animation: r} = n; 18166 xA(r, t) 18167 } 18168 return pr 18169 } 18170 play() { 18171 if (this.isStopped) 18172 return; 18173 const {resolved: t} = this; 18174 if (!t) 18175 return; 18176 const {animation: n} = t; 18177 n.playState === "finished" && this.updateFinishedPromise(), 18178 n.play() 18179 } 18180 pause() { 18181 const {resolved: t} = this; 18182 if (!t) 18183 return; 18184 const {animation: n} = t; 18185 n.pause() 18186 } 18187 stop() { 18188 if (this.resolver.cancel(), 18189 this.isStopped = !0, 18190 this.state === "idle") 18191 return; 18192 this.resolveFinishedPromise(), 18193 this.updateFinishedPromise(); 18194 const {resolved: t} = this; 18195 if (!t) 18196 return; 18197 const {animation: n, keyframes: r, duration: i, type: o, ease: a, times: s} = t; 18198 if (n.playState === "idle" || n.playState === "finished") 18199 return; 18200 if (this.time) { 18201 const {motionValue: c, onUpdate: u, onComplete: d, element: f, ...p} = this.options 18202 , g = new v_({ 18203 ...p, 18204 keyframes: r, 18205 duration: i, 18206 type: o, 18207 ease: a, 18208 times: s, 18209 isGenerator: !0 18210 }) 18211 , m = po(this.time); 18212 c.setWithVelocity(g.sample(m - Jm).value, g.sample(m).value, Jm) 18213 } 18214 const {onStop: l} = this.options; 18215 l && l(), 18216 this.cancel() 18217 } 18218 complete() { 18219 const {resolved: t} = this; 18220 t && t.animation.finish() 18221 } 18222 cancel() { 18223 const {resolved: t} = this; 18224 t && t.animation.cancel() 18225 } 18226 static supports(t) { 18227 const {motionValue: n, name: r, repeatDelay: i, repeatType: o, damping: a, type: s} = t; 18228 if (!n || !n.owner || !(n.owner.current instanceof HTMLElement)) 18229 return !1; 18230 const {onUpdate: l, transformTemplate: c} = n.owner.getProps(); 18231 return WJ() && r && UJ.has(r) && !l && !c && !i && o !== "mirror" && a !== 0 && s !== "inertia" 18232 } 18233} 18234const YJ = { 18235 type: "spring", 18236 stiffness: 500, 18237 damping: 25, 18238 restSpeed: 10 18239} 18240 , XJ = e => ({ 18241 type: "spring", 18242 stiffness: 550, 18243 damping: e === 0 ? 2 * Math.sqrt(550) : 30, 18244 restSpeed: 10 18245}) 18246 , QJ = { 18247 type: "keyframes", 18248 duration: .8 18249} 18250 , ZJ = { 18251 type: "keyframes", 18252 ease: [.25, .1, .35, 1], 18253 duration: .3 18254} 18255 , JJ = (e, {keyframes: t}) => t.length > 2 ? QJ : Zs.has(e) ? e.startsWith("scale") ? XJ(t[1]) : YJ : ZJ; 18256function eee({when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: o, repeatType: a, repeatDelay: s, from: l, elapsed: c, ...u}) { 18257 return !!Object.keys(u).length 18258} 18259const x_ = (e, t, n, r={}, i, o) => a => { 18260 const s = i_(r, e) || {} 18261 , l = s.delay || r.delay || 0; 18262 let {elapsed: c=0} = r; 18263 c = c - po(l); 18264 let u = { 18265 keyframes: Array.isArray(n) ? n : [null, n], 18266 ease: "easeOut", 18267 velocity: t.getVelocity(), 18268 ...s, 18269 delay: -c, 18270 onUpdate: f => { 18271 t.set(f), 18272 s.onUpdate && s.onUpdate(f) 18273 } 18274 , 18275 onComplete: () => { 18276 a(), 18277 s.onComplete && s.onComplete() 18278 } 18279 , 18280 name: e, 18281 motionValue: t, 18282 element: o ? void 0 : i 18283 }; 18284 eee(s) || (u = { 18285 ...u, 18286 ...JJ(e, u) 18287 }), 18288 u.duration && (u.duration = po(u.duration)), 18289 u.repeatDelay && (u.repeatDelay = po(u.repeatDelay)), 18290 u.from !== void 0 && (u.keyframes[0] = u.from); 18291 let d = !1; 18292 if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, 18293 u.delay === 0 && (d = !0)), 18294 d && !o && t.get() !== void 0) { 18295 const f = tv(u.keyframes, s); 18296 if (f !== void 0) 18297 return vt.update( () => { 18298 u.onUpdate(f), 18299 u.onComplete() 18300 } 18301 ), 18302 new bZ([]) 18303 } 18304 return !o && IA.supports(u) ? new IA(u) : new v_(u) 18305} 18306; 18307function tee({protectedKeys: e, needsAnimating: t}, n) { 18308 const r = e.hasOwnProperty(n) && t[n] !== !0; 18309 return t[n] = !1, 18310 r 18311} 18312function JB(e, t, {delay: n=0, transitionOverride: r, type: i}={}) { 18313 var o; 18314 let {transition: a=e.getDefaultTransition(), transitionEnd: s, ...l} = t; 18315 r && (a = r); 18316 const c = [] 18317 , u = i && e.animationState && e.animationState.getState()[i]; 18318 for (const d in l) { 18319 const f = e.getValue(d, (o = e.latestValues[d]) !== null && o !== void 0 ? o : null) 18320 , p = l[d]; 18321 if (p === void 0 || u && tee(u, d)) 18322 continue; 18323 const g = { 18324 delay: n, 18325 ...i_(a || {}, d) 18326 }; 18327 let m = !1; 18328 if (window.MotionHandoffAnimation) { 18329 const v = PB(e); 18330 if (v) { 18331 const y = window.MotionHandoffAnimation(v, d, vt); 18332 y !== null && (g.startTime = y, 18333 m = !0) 18334 } 18335 } 18336 Sw(e, d), 18337 f.start(x_(d, f, p, e.shouldReduceMotion && wB.has(d) ? { 18338 type: !1 18339 } : g, e, m)); 18340 const x = f.animation; 18341 x && c.push(x) 18342 } 18343 return s && Promise.all(c).then( () => { 18344 vt.update( () => { 18345 s && RZ(e, s) 18346 } 18347 ) 18348 } 18349 ), 18350 c 18351} 18352function Ew(e, t, n={}) { 18353 var r; 18354 const i = ev(e, t, n.type === "exit" ? (r = e.presenceContext) === null || r === void 0 ? void 0 : r.custom : void 0); 18355 let {transition: o=e.getDefaultTransition() || {}} = i || {}; 18356 n.transitionOverride && (o = n.transitionOverride); 18357 const a = i ? () => Promise.all(JB(e, i, n)) : () => Promise.resolve() 18358 , s = e.variantChildren && e.variantChildren.size ? (c=0) => { 18359 const {delayChildren: u=0, staggerChildren: d, staggerDirection: f} = o; 18360 return nee(e, t, u + c, d, f, n) 18361 } 18362 : () => Promise.resolve() 18363 , {when: l} = o; 18364 if (l) { 18365 const [c,u] = l === "beforeChildren" ? [a, s] : [s, a]; 18366 return c().then( () => u()) 18367 } else 18368 return Promise.all([a(), s(n.delay)]) 18369} 18370function nee(e, t, n=0, r=0, i=1, o) { 18371 const a = [] 18372 , s = (e.variantChildren.size - 1) * r 18373 , l = i === 1 ? (c=0) => c * r : (c=0) => s - c * r; 18374 return Array.from(e.variantChildren).sort(ree).forEach( (c, u) => { 18375 c.notify("AnimationStart", t), 18376 a.push(Ew(c, t, { 18377 ...o, 18378 delay: n + l(u) 18379 }).then( () => c.notify("AnimationComplete", t))) 18380 } 18381 ), 18382 Promise.all(a) 18383} 18384function ree(e, t) { 18385 return e.sortNodePosition(t) 18386} 18387function iee(e, t, n={}) { 18388 e.notify("AnimationStart", t); 18389 let r; 18390 if (Array.isArray(t)) { 18391 const i = t.map(o => Ew(e, o, n)); 18392 r = Promise.all(i) 18393 } else if (typeof t == "string") 18394 r = Ew(e, t, n); 18395 else { 18396 const i = typeof t == "function" ? ev(e, t, n.custom) : t; 18397 r = Promise.all(JB(e, i, n)) 18398 } 18399 return r.then( () => { 18400 e.notify("AnimationComplete", t) 18401 } 18402 ) 18403} 18404const oee = qP.length; 18405function e3(e) { 18406 if (!e) 18407 return; 18408 if (!e.isControllingVariants) { 18409 const n = e.parent ? e3(e.parent) || {} : {}; 18410 return e.props.initial !== void 0 && (n.initial = e.props.initial), 18411 n 18412 } 18413 const t = {}; 18414 for (let n = 0; n < oee; n++) { 18415 const r = qP[n] 18416 , i = e.props[r]; 18417 (af(i) || i === !1) && (t[r] = i) 18418 } 18419 return t 18420} 18421const aee = [...HP].reverse() 18422 , see = HP.length; 18423function lee(e) { 18424 return t => Promise.all(t.map( ({animation: n, options: r}) => iee(e, n, r))) 18425} 18426function cee(e) { 18427 let t = lee(e) 18428 , n = $A() 18429 , r = !0; 18430 const i = l => (c, u) => { 18431 var d; 18432 const f = ev(e, u, l === "exit" ? (d = e.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0); 18433 if (f) { 18434 const {transition: p, transitionEnd: g, ...m} = f; 18435 c = { 18436 ...c, 18437 ...m, 18438 ...g 18439 } 18440 } 18441 return c 18442 } 18443 ; 18444 function o(l) { 18445 t = l(e) 18446 } 18447 function a(l) { 18448 const {props: c} = e 18449 , u = e3(e.parent) || {} 18450 , d = [] 18451 , f = new Set; 18452 let p = {} 18453 , g = 1 / 0; 18454 for (let x = 0; x < see; x++) { 18455 const v = aee[x] 18456 , y = n[v] 18457 , w = c[v] !== void 0 ? c[v] : u[v] 18458 , P = af(w) 18459 , S = v === l ? y.isActive : null; 18460 S === !1 && (g = x); 18461 let _ = w === u[v] && w !== c[v] && P; 18462 if (_ && r && e.manuallyAnimateOnMount && (_ = !1), 18463 y.protectedKeys = { 18464 ...p 18465 }, 18466 !y.isActive && S === null || !w && !y.prevProp || Zy(w) || typeof w == "boolean") 18467 continue; 18468 const T = uee(y.prevProp, w); 18469 let C = T || v === l && y.isActive && !_ && P || x > g && P 18470 , O = !1; 18471 const A = Array.isArray(w) ? w : [w]; 18472 let E = A.reduce(i(v), {}); 18473 S === !1 && (E = {}); 18474 const {prevResolvedValues: j={}} = y 18475 , $ = { 18476 ...j, 18477 ...E 18478 } 18479 , R = U => { 18480 C = !0, 18481 f.has(U) && (O = !0, 18482 f.delete(U)), 18483 y.needsAnimating[U] = !0; 18484 const N = e.getValue(U); 18485 N && (N.liveStyle = !1) 18486 } 18487 ; 18488 for (const U in $) { 18489 const N = E[U] 18490 , D = j[U]; 18491 if (p.hasOwnProperty(U)) 18492 continue; 18493 let W = !1; 18494 xw(N) && xw(D) ? W = !hB(N, D) : W = N !== D, 18495 W ? N != null ? R(U) : f.add(U) : N !== void 0 && f.has(U) ? R(U) : y.protectedKeys[U] = !0 18496 } 18497 y.prevProp = w, 18498 y.prevResolvedValues = E, 18499 y.isActive && (p = { 18500 ...p, 18501 ...E 18502 }), 18503 r && e.blockInitialAnimation && (C = !1), 18504 C && (!(_ && T) || O) && d.push(...A.map(U => ({ 18505 animation: U, 18506 options: { 18507 type: v 18508 } 18509 }))) 18510 } 18511 if (f.size) { 18512 const x = {}; 18513 f.forEach(v => { 18514 const y = e.getBaseTarget(v) 18515 , w = e.getValue(v); 18516 w && (w.liveStyle = !0), 18517 x[v] = y ?? null 18518 } 18519 ), 18520 d.push({ 18521 animation: x 18522 }) 18523 } 18524 let m = !!d.length; 18525 return r && (c.initial === !1 || c.initial === c.animate) && !e.manuallyAnimateOnMount && (m = !1), 18526 r = !1, 18527 m ? t(d) : Promise.resolve() 18528 } 18529 function s(l, c) { 18530 var u; 18531 if (n[l].isActive === c) 18532 return Promise.resolve(); 18533 (u = e.variantChildren) === null || u === void 0 || u.forEach(f => { 18534 var p; 18535 return (p = f.animationState) === null || p === void 0 ? void 0 : p.setActive(l, c) 18536 } 18537 ), 18538 n[l].isActive = c; 18539 const d = a(l); 18540 for (const f in n) 18541 n[f].protectedKeys = {}; 18542 return d 18543 } 18544 return { 18545 animateChanges: a, 18546 setActive: s, 18547 setAnimateFunction: o, 18548 getState: () => n, 18549 reset: () => { 18550 n = $A(), 18551 r = !0 18552 } 18553 } 18554} 18555function uee(e, t) { 18556 return typeof t == "string" ? t !== e : Array.isArray(t) ? !hB(t, e) : !1 18557} 18558function Qa(e=!1) { 18559 return { 18560 isActive: e, 18561 protectedKeys: {}, 18562 needsAnimating: {}, 18563 prevResolvedValues: {} 18564 } 18565} 18566function $A() { 18567 return { 18568 animate: Qa(!0), 18569 whileInView: Qa(), 18570 whileHover: Qa(), 18571 whileTap: Qa(), 18572 whileDrag: Qa(), 18573 whileFocus: Qa(), 18574 exit: Qa() 18575 } 18576} 18577class Ba { 18578 constructor(t) { 18579 this.isMounted = !1, 18580 this.node = t 18581 } 18582 update() {} 18583} 18584class dee extends Ba { 18585 constructor(t) { 18586 super(t), 18587 t.animationState || (t.animationState = cee(t)) 18588 } 18589 updateAnimationControlsSubscription() { 18590 const {animate: t} = this.node.getProps(); 18591 Zy(t) && (this.unmountControls = t.subscribe(this.node)) 18592 } 18593 mount() { 18594 this.updateAnimationControlsSubscription() 18595 } 18596 update() { 18597 const {animate: t} = this.node.getProps() 18598 , {animate: n} = this.node.prevProps || {}; 18599 t !== n && this.updateAnimationControlsSubscription() 18600 } 18601 unmount() { 18602 var t; 18603 this.node.animationState.reset(), 18604 (t = this.unmountControls) === null || t === void 0 || t.call(this) 18605 } 18606} 18607let fee = 0; 18608class hee extends Ba { 18609 constructor() { 18610 super(...arguments), 18611 this.id = fee++ 18612 } 18613 update() { 18614 if (!this.node.presenceContext) 18615 return; 18616 const {isPresent: t, onExitComplete: n} = this.node.presenceContext 18617 , {isPresent: r} = this.node.prevPresenceContext || {}; 18618 if (!this.node.animationState || t === r) 18619 return; 18620 const i = this.node.animationState.setActive("exit", !t); 18621 n && !t && i.then( () => n(this.id)) 18622 } 18623 mount() { 18624 const {register: t} = this.node.presenceContext || {}; 18625 t && (this.unmount = t(this.id)) 18626 } 18627 unmount() {} 18628} 18629const pee = { 18630 animation: { 18631 Feature: dee 18632 }, 18633 exit: { 18634 Feature: hee 18635 } 18636}; 18637function uf(e, t, n, r={ 18638 passive: !0 18639}) { 18640 return e.addEventListener(t, n, r), 18641 () => e.removeEventListener(t, n) 18642} 18643function Nh(e) { 18644 return { 18645 point: { 18646 x: e.pageX, 18647 y: e.pageY 18648 } 18649 } 18650} 18651const mee = e => t => s_(t) && e(t, Nh(t)); 18652function Nd(e, t, n, r) { 18653 return uf(e, t, mee(n), r) 18654} 18655const LA = (e, t) => Math.abs(e - t); 18656function gee(e, t) { 18657 const n = LA(e.x, t.x) 18658 , r = LA(e.y, t.y); 18659 return Math.sqrt(n ** 2 + r ** 2) 18660} 18661class t3 { 18662 constructor(t, n, {transformPagePoint: r, contextWindow: i, dragSnapToOrigin: o=!1}={}) { 18663 if (this.startEvent = null, 18664 this.lastMoveEvent = null, 18665 this.lastMoveEventInfo = null, 18666 this.handlers = {}, 18667 this.contextWindow = window, 18668 this.updatePoint = () => { 18669 if (!(this.lastMoveEvent && this.lastMoveEventInfo)) 18670 return; 18671 const d = ax(this.lastMoveEventInfo, this.history) 18672 , f = this.startEvent !== null 18673 , p = gee(d.offset, { 18674 x: 0, 18675 y: 0 18676 }) >= 3; 18677 if (!f && !p) 18678 return; 18679 const {point: g} = d 18680 , {timestamp: m} = gn; 18681 this.history.push({ 18682 ...g, 18683 timestamp: m 18684 }); 18685 const {onStart: x, onMove: v} = this.handlers; 18686 f || (x && x(this.lastMoveEvent, d), 18687 this.startEvent = this.lastMoveEvent), 18688 v && v(this.lastMoveEvent, d) 18689 } 18690 , 18691 this.handlePointerMove = (d, f) => { 18692 this.lastMoveEvent = d, 18693 this.lastMoveEventInfo = ox(f, this.transformPagePoint), 18694 vt.update(this.updatePoint, !0) 18695 } 18696 , 18697 this.handlePointerUp = (d, f) => { 18698 this.end(); 18699 const {onEnd: p, onSessionEnd: g, resumeAnimation: m} = this.handlers; 18700 if (this.dragSnapToOrigin && m && m(), 18701 !(this.lastMoveEvent && this.lastMoveEventInfo)) 18702 return; 18703 const x = ax(d.type === "pointercancel" ? this.lastMoveEventInfo : ox(f, this.transformPagePoint), this.history); 18704 this.startEvent && p && p(d, x), 18705 g && g(d, x) 18706 } 18707 , 18708 !s_(t)) 18709 return; 18710 this.dragSnapToOrigin = o, 18711 this.handlers = n, 18712 this.transformPagePoint = r, 18713 this.contextWindow = i || window; 18714 const a = Nh(t) 18715 , s = ox(a, this.transformPagePoint) 18716 , {point: l} = s 18717 , {timestamp: c} = gn; 18718 this.history = [{ 18719 ...l, 18720 timestamp: c 18721 }]; 18722 const {onSessionStart: u} = n; 18723 u && u(t, ax(s, this.history)), 18724 this.removeListeners = jh(Nd(this.contextWindow, "pointermove", this.handlePointerMove), Nd(this.contextWindow, "pointerup", this.handlePointerUp), Nd(this.contextWindow, "pointercancel", this.handlePointerUp)) 18725 } 18726 updateHandlers(t) { 18727 this.handlers = t 18728 } 18729 end() { 18730 this.removeListeners && this.removeListeners(), 18731 _a(this.updatePoint) 18732 } 18733} 18734function ox(e, t) { 18735 return t ? { 18736 point: t(e.point) 18737 } : e 18738} 18739function FA(e, t) { 18740 return { 18741 x: e.x - t.x, 18742 y: e.y - t.y 18743 } 18744} 18745function ax({point: e}, t) { 18746 return { 18747 point: e, 18748 delta: FA(e, n3(t)), 18749 offset: FA(e, yee(t)), 18750 velocity: vee(t, .1) 18751 } 18752} 18753function yee(e) { 18754 return e[0] 18755} 18756function n3(e) { 18757 return e[e.length - 1] 18758} 18759function vee(e, t) { 18760 if (e.length < 2) 18761 return { 18762 x: 0, 18763 y: 0 18764 }; 18765 let n = e.length - 1 18766 , r = null; 18767 const i = n3(e); 18768 for (; n >= 0 && (r = e[n], 18769 !(i.timestamp - r.timestamp > po(t))); ) 18770 n--; 18771 if (!r) 18772 return { 18773 x: 0, 18774 y: 0 18775 }; 18776 const o = mo(i.timestamp - r.timestamp); 18777 if (o === 0) 18778 return { 18779 x: 0, 18780 y: 0 18781 }; 18782 const a = { 18783 x: (i.x - r.x) / o, 18784 y: (i.y - r.y) / o 18785 }; 18786 return a.x === 1 / 0 && (a.x = 0), 18787 a.y === 1 / 0 && (a.y = 0), 18788 a 18789} 18790const r3 = 1e-4 18791 , xee = 1 - r3 18792 , bee = 1 + r3 18793 , i3 = .01 18794 , wee = 0 - i3 18795 , See = 0 + i3; 18796function vr(e) { 18797 return e.max - e.min 18798} 18799function Pee(e, t, n) { 18800 return Math.abs(e - t) <= n 18801} 18802function BA(e, t, n, r=.5) { 18803 e.origin = r, 18804 e.originPoint = Ot(t.min, t.max, e.origin), 18805 e.scale = vr(n) / vr(t), 18806 e.translate = Ot(n.min, n.max, e.origin) - e.originPoint, 18807 (e.scale >= xee && e.scale <= bee || isNaN(e.scale)) && (e.scale = 1), 18808 (e.translate >= wee && e.translate <= See || isNaN(e.translate)) && (e.translate = 0) 18809} 18810function Md(e, t, n, r) { 18811 BA(e.x, t.x, n.x, r ? r.originX : void 0), 18812 BA(e.y, t.y, n.y, r ? r.originY : void 0) 18813} 18814function VA(e, t, n) { 18815 e.min = n.min + t.min, 18816 e.max = e.min + vr(t) 18817} 18818function _ee(e, t, n) { 18819 VA(e.x, t.x, n.x), 18820 VA(e.y, t.y, n.y) 18821} 18822function UA(e, t, n) { 18823 e.min = t.min - n.min, 18824 e.max = e.min + vr(t) 18825} 18826function kd(e, t, n) { 18827 UA(e.x, t.x, n.x), 18828 UA(e.y, t.y, n.y) 18829} 18830function Tee(e, {min: t, max: n}, r) { 18831 return t !== void 0 && e < t ? e = r ? Ot(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Ot(n, e, r.max) : Math.min(e, n)), 18832 e 18833} 18834function zA(e, t, n) { 18835 return { 18836 min: t !== void 0 ? e.min + t : void 0, 18837 max: n !== void 0 ? e.max + n - (e.max - e.min) : void 0 18838 } 18839} 18840function Cee(e, {top: t, left: n, bottom: r, right: i}) { 18841 return { 18842 x: zA(e.x, n, i), 18843 y: zA(e.y, t, r) 18844 } 18845} 18846function WA(e, t) { 18847 let n = t.min - e.min 18848 , r = t.max - e.max; 18849 return t.max - t.min < e.max - e.min && ([n,r] = [r, n]), 18850 { 18851 min: n, 18852 max: r 18853 } 18854} 18855function Oee(e, t) { 18856 return { 18857 x: WA(e.x, t.x), 18858 y: WA(e.y, t.y) 18859 } 18860} 18861function Aee(e, t) { 18862 let n = .5; 18863 const r = vr(e) 18864 , i = vr(t); 18865 return i > r ? n = Tc(t.min, t.max - r, e.min) : r > i && (n = Tc(e.min, e.max - i, t.min)), 18866 _o(0, 1, n) 18867} 18868function Eee(e, t) { 18869 const n = {}; 18870 return t.min !== void 0 && (n.min = t.min - e.min), 18871 t.max !== void 0 && (n.max = t.max - e.min), 18872 n 18873} 18874const jw = .35; 18875function jee(e=jw) { 18876 return e === !1 ? e = 0 : e === !0 && (e = jw), 18877 { 18878 x: HA(e, "left", "right"), 18879 y: HA(e, "top", "bottom") 18880 } 18881} 18882function HA(e, t, n) { 18883 return { 18884 min: qA(e, t), 18885 max: qA(e, n) 18886 } 18887} 18888function qA(e, t) { 18889 return typeof e == "number" ? e : e[t] || 0 18890} 18891const KA = () => ({ 18892 translate: 0, 18893 scale: 1, 18894 origin: 0, 18895 originPoint: 0 18896}) 18897 , kl = () => ({ 18898 x: KA(), 18899 y: KA() 18900}) 18901 , GA = () => ({ 18902 min: 0, 18903 max: 0 18904}) 18905 , Ft = () => ({ 18906 x: GA(), 18907 y: GA() 18908}); 18909function Cr(e) { 18910 return [e("x"), e("y")] 18911} 18912function o3({top: e, left: t, right: n, bottom: r}) { 18913 return { 18914 x: { 18915 min: t, 18916 max: n 18917 }, 18918 y: { 18919 min: e, 18920 max: r 18921 } 18922 } 18923} 18924function Nee({x: e, y: t}) { 18925 return { 18926 top: t.min, 18927 right: e.max, 18928 bottom: t.max, 18929 left: e.min 18930 } 18931} 18932function Mee(e, t) { 18933 if (!t) 18934 return e; 18935 const n = t({ 18936 x: e.left, 18937 y: e.top 18938 }) 18939 , r = t({ 18940 x: e.right, 18941 y: e.bottom 18942 }); 18943 return { 18944 top: n.y, 18945 left: n.x, 18946 bottom: r.y, 18947 right: r.x 18948 } 18949} 18950function sx(e) { 18951 return e === void 0 || e === 1 18952} 18953function Nw({scale: e, scaleX: t, scaleY: n}) { 18954 return !sx(e) || !sx(t) || !sx(n) 18955} 18956function ts(e) { 18957 return Nw(e) || a3(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY 18958} 18959function a3(e) { 18960 return YA(e.x) || YA(e.y) 18961} 18962function YA(e) { 18963 return e && e !== "0%" 18964} 18965function eg(e, t, n) { 18966 const r = e - n 18967 , i = t * r; 18968 return n + i 18969} 18970function XA(e, t, n, r, i) { 18971 return i !== void 0 && (e = eg(e, i, r)), 18972 eg(e, n, r) + t 18973} 18974function Mw(e, t=0, n=1, r, i) { 18975 e.min = XA(e.min, t, n, r, i), 18976 e.max = XA(e.max, t, n, r, i) 18977} 18978function s3(e, {x: t, y: n}) { 18979 Mw(e.x, t.translate, t.scale, t.originPoint), 18980 Mw(e.y, n.translate, n.scale, n.originPoint) 18981} 18982const QA = .999999999999 18983 , ZA = 1.0000000000001; 18984function kee(e, t, n, r=!1) { 18985 const i = n.length; 18986 if (!i) 18987 return; 18988 t.x = t.y = 1; 18989 let o, a; 18990 for (let s = 0; s < i; s++) { 18991 o = n[s], 18992 a = o.projectionDelta; 18993 const {visualElement: l} = o.options; 18994 l && l.props.style && l.props.style.display === "contents" || (r && o.options.layoutScroll && o.scroll && o !== o.root && Dl(e, { 18995 x: -o.scroll.offset.x, 18996 y: -o.scroll.offset.y 18997 }), 18998 a && (t.x *= a.x.scale, 18999 t.y *= a.y.scale, 19000 s3(e, a)), 19001 r && ts(o.latestValues) && Dl(e, o.latestValues)) 19002 } 19003 t.x < ZA && t.x > QA && (t.x = 1), 19004 t.y < ZA && t.y > QA && (t.y = 1) 19005} 19006function Rl(e, t) { 19007 e.min = e.min + t, 19008 e.max = e.max + t 19009} 19010function JA(e, t, n, r, i=.5) { 19011 const o = Ot(e.min, e.max, i); 19012 Mw(e, t, n, o, r) 19013} 19014function Dl(e, t) { 19015 JA(e.x, t.x, t.scaleX, t.scale, t.originX), 19016 JA(e.y, t.y, t.scaleY, t.scale, t.originY) 19017} 19018function l3(e, t) { 19019 return o3(Mee(e.getBoundingClientRect(), t)) 19020} 19021function Ree(e, t, n) { 19022 const r = l3(e, n) 19023 , {scroll: i} = t; 19024 return i && (Rl(r.x, i.offset.x), 19025 Rl(r.y, i.offset.y)), 19026 r 19027} 19028const c3 = ({current: e}) => e ? e.ownerDocument.defaultView : null 19029 , Dee = new WeakMap; 19030class Iee { 19031 constructor(t) { 19032 this.openDragLock = null, 19033 this.isDragging = !1, 19034 this.currentDirection = null, 19035 this.originPoint = { 19036 x: 0, 19037 y: 0 19038 }, 19039 this.constraints = !1, 19040 this.hasMutatedConstraints = !1, 19041 this.elastic = Ft(), 19042 this.visualElement = t 19043 } 19044 start(t, {snapToCursor: n=!1}={}) { 19045 const {presenceContext: r} = this.visualElement; 19046 if (r && r.isPresent === !1) 19047 return; 19048 const i = u => { 19049 const {dragSnapToOrigin: d} = this.getProps(); 19050 d ? this.pauseAnimation() : this.stopAnimation(), 19051 n && this.snapToCursor(Nh(u).point) 19052 } 19053 , o = (u, d) => { 19054 const {drag: f, dragPropagation: p, onDragStart: g} = this.getProps(); 19055 if (f && !p && (this.openDragLock && this.openDragLock(), 19056 this.openDragLock = EZ(f), 19057 !this.openDragLock)) 19058 return; 19059 this.isDragging = !0, 19060 this.currentDirection = null, 19061 this.resolveConstraints(), 19062 this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, 19063 this.visualElement.projection.target = void 0), 19064 Cr(x => { 19065 let v = this.getAxisMotionValue(x).get() || 0; 19066 if (Ii.test(v)) { 19067 const {projection: y} = this.visualElement; 19068 if (y && y.layout) { 19069 const w = y.layout.layoutBox[x]; 19070 w && (v = vr(w) * (parseFloat(v) / 100)) 19071 } 19072 } 19073 this.originPoint[x] = v 19074 } 19075 ), 19076 g && vt.postRender( () => g(u, d)), 19077 Sw(this.visualElement, "transform"); 19078 const {animationState: m} = this.visualElement; 19079 m && m.setActive("whileDrag", !0) 19080 } 19081 , a = (u, d) => { 19082 const {dragPropagation: f, dragDirectionLock: p, onDirectionLock: g, onDrag: m} = this.getProps(); 19083 if (!f && !this.openDragLock) 19084 return; 19085 const {offset: x} = d; 19086 if (p && this.currentDirection === null) { 19087 this.currentDirection = $ee(x), 19088 this.currentDirection !== null && g && g(this.currentDirection); 19089 return 19090 } 19091 this.updateAxis("x", d.point, x), 19092 this.updateAxis("y", d.point, x), 19093 this.visualElement.render(), 19094 m && m(u, d) 19095 } 19096 , s = (u, d) => this.stop(u, d) 19097 , l = () => Cr(u => { 19098 var d; 19099 return this.getAnimationState(u) === "paused" && ((d = this.getAxisMotionValue(u).animation) === null || d === void 0 ? void 0 : d.play()) 19100 } 19101 ) 19102 , {dragSnapToOrigin: c} = this.getProps(); 19103 this.panSession = new t3(t,{ 19104 onSessionStart: i, 19105 onStart: o, 19106 onMove: a, 19107 onSessionEnd: s, 19108 resumeAnimation: l 19109 },{ 19110 transformPagePoint: this.visualElement.getTransformPagePoint(), 19111 dragSnapToOrigin: c, 19112 contextWindow: c3(this.visualElement) 19113 }) 19114 } 19115 stop(t, n) { 19116 const r = this.isDragging; 19117 if (this.cancel(), 19118 !r) 19119 return; 19120 const {velocity: i} = n; 19121 this.startAnimation(i); 19122 const {onDragEnd: o} = this.getProps(); 19123 o && vt.postRender( () => o(t, n)) 19124 } 19125 cancel() { 19126 this.isDragging = !1; 19127 const {projection: t, animationState: n} = this.visualElement; 19128 t && (t.isAnimationBlocked = !1), 19129 this.panSession && this.panSession.end(), 19130 this.panSession = void 0; 19131 const {dragPropagation: r} = this.getProps(); 19132 !r && this.openDragLock && (this.openDragLock(), 19133 this.openDragLock = null), 19134 n && n.setActive("whileDrag", !1) 19135 } 19136 updateAxis(t, n, r) { 19137 const {drag: i} = this.getProps(); 19138 if (!r || !Tp(t, i, this.currentDirection)) 19139 return; 19140 const o = this.getAxisMotionValue(t); 19141 let a = this.originPoint[t] + r[t]; 19142 this.constraints && this.constraints[t] && (a = Tee(a, this.constraints[t], this.elastic[t])), 19143 o.set(a) 19144 } 19145 resolveConstraints() { 19146 var t; 19147 const {dragConstraints: n, dragElastic: r} = this.getProps() 19148 , i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout 19149 , o = this.constraints; 19150 n && Nl(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = Cee(i.layoutBox, n) : this.constraints = !1, 19151 this.elastic = jee(r), 19152 o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && Cr(a => { 19153 this.constraints !== !1 && this.getAxisMotionValue(a) && (this.constraints[a] = Eee(i.layoutBox[a], this.constraints[a])) 19154 } 19155 ) 19156 } 19157 resolveRefConstraints() { 19158 const {dragConstraints: t, onMeasureDragConstraints: n} = this.getProps(); 19159 if (!t || !Nl(t)) 19160 return !1; 19161 const r = t.current 19162 , {projection: i} = this.visualElement; 19163 if (!i || !i.layout) 19164 return !1; 19165 const o = Ree(r, i.root, this.visualElement.getTransformPagePoint()); 19166 let a = Oee(i.layout.layoutBox, o); 19167 if (n) { 19168 const s = n(Nee(a)); 19169 this.hasMutatedConstraints = !!s, 19170 s && (a = o3(s)) 19171 } 19172 return a 19173 } 19174 startAnimation(t) { 19175 const {drag: n, dragMomentum: r, dragElastic: i, dragTransition: o, dragSnapToOrigin: a, onDragTransitionEnd: s} = this.getProps() 19176 , l = this.constraints || {} 19177 , c = Cr(u => { 19178 if (!Tp(u, n, this.currentDirection)) 19179 return; 19180 let d = l && l[u] || {}; 19181 a && (d = { 19182 min: 0, 19183 max: 0 19184 }); 19185 const f = i ? 200 : 1e6 19186 , p = i ? 40 : 1e7 19187 , g = { 19188 type: "inertia", 19189 velocity: r ? t[u] : 0, 19190 bounceStiffness: f, 19191 bounceDamping: p, 19192 timeConstant: 750, 19193 restDelta: 1, 19194 restSpeed: 10, 19195 ...o, 19196 ...d 19197 }; 19198 return this.startAxisValueAnimation(u, g) 19199 } 19200 ); 19201 return Promise.all(c).then(s) 19202 } 19203 startAxisValueAnimation(t, n) { 19204 const r = this.getAxisMotionValue(t); 19205 return Sw(this.visualElement, t), 19206 r.start(x_(t, r, 0, n, this.visualElement, !1)) 19207 } 19208 stopAnimation() { 19209 Cr(t => this.getAxisMotionValue(t).stop()) 19210 } 19211 pauseAnimation() { 19212 Cr(t => { 19213 var n; 19214 return (n = this.getAxisMotionValue(t).animation) === null || n === void 0 ? void 0 : n.pause() 19215 } 19216 ) 19217 } 19218 getAnimationState(t) { 19219 var n; 19220 return (n = this.getAxisMotionValue(t).animation) === null || n === void 0 ? void 0 : n.state 19221 } 19222 getAxisMotionValue(t) { 19223 const n = `_drag${t.toUpperCase()}` 19224 , r = this.visualElement.getProps() 19225 , i = r[n]; 19226 return i || this.visualElement.getValue(t, (r.initial ? r.initial[t] : void 0) || 0) 19227 } 19228 snapToCursor(t) { 19229 Cr(n => { 19230 const {drag: r} = this.getProps(); 19231 if (!Tp(n, r, this.currentDirection)) 19232 return; 19233 const {projection: i} = this.visualElement 19234 , o = this.getAxisMotionValue(n); 19235 if (i && i.layout) { 19236 const {min: a, max: s} = i.layout.layoutBox[n]; 19237 o.set(t[n] - Ot(a, s, .5)) 19238 } 19239 } 19240 ) 19241 } 19242 scalePositionWithinConstraints() { 19243 if (!this.visualElement.current) 19244 return; 19245 const {drag: t, dragConstraints: n} = this.getProps() 19246 , {projection: r} = this.visualElement; 19247 if (!Nl(n) || !r || !this.constraints) 19248 return; 19249 this.stopAnimation(); 19250 const i = { 19251 x: 0, 19252 y: 0 19253 }; 19254 Cr(a => { 19255 const s = this.getAxisMotionValue(a); 19256 if (s && this.constraints !== !1) { 19257 const l = s.get(); 19258 i[a] = Aee({ 19259 min: l, 19260 max: l 19261 }, this.constraints[a]) 19262 } 19263 } 19264 ); 19265 const {transformTemplate: o} = this.visualElement.getProps(); 19266 this.visualElement.current.style.transform = o ? o({}, "") : "none", 19267 r.root && r.root.updateScroll(), 19268 r.updateLayout(), 19269 this.resolveConstraints(), 19270 Cr(a => { 19271 if (!Tp(a, t, null)) 19272 return; 19273 const s = this.getAxisMotionValue(a) 19274 , {min: l, max: c} = this.constraints[a]; 19275 s.set(Ot(l, c, i[a])) 19276 } 19277 ) 19278 } 19279 addListeners() { 19280 if (!this.visualElement.current) 19281 return; 19282 Dee.set(this.visualElement, this); 19283 const t = this.visualElement.current 19284 , n = Nd(t, "pointerdown", l => { 19285 const {drag: c, dragListener: u=!0} = this.getProps(); 19286 c && u && this.start(l) 19287 } 19288 ) 19289 , r = () => { 19290 const {dragConstraints: l} = this.getProps(); 19291 Nl(l) && l.current && (this.constraints = this.resolveRefConstraints()) 19292 } 19293 , {projection: i} = this.visualElement 19294 , o = i.addEventListener("measure", r); 19295 i && !i.layout && (i.root && i.root.updateScroll(), 19296 i.updateLayout()), 19297 vt.read(r); 19298 const a = uf(window, "resize", () => this.scalePositionWithinConstraints()) 19299 , s = i.addEventListener("didUpdate", ({delta: l, hasLayoutChanged: c}) => { 19300 this.isDragging && c && (Cr(u => { 19301 const d = this.getAxisMotionValue(u); 19302 d && (this.originPoint[u] += l[u].translate, 19303 d.set(d.get() + l[u].translate)) 19304 } 19305 ), 19306 this.visualElement.render()) 19307 } 19308 ); 19309 return () => { 19310 a(), 19311 n(), 19312 o(), 19313 s && s() 19314 } 19315 } 19316 getProps() { 19317 const t = this.visualElement.getProps() 19318 , {drag: n=!1, dragDirectionLock: r=!1, dragPropagation: i=!1, dragConstraints: o=!1, dragElastic: a=jw, dragMomentum: s=!0} = t; 19319 return { 19320 ...t, 19321 drag: n, 19322 dragDirectionLock: r, 19323 dragPropagation: i, 19324 dragConstraints: o, 19325 dragElastic: a, 19326 dragMomentum: s 19327 } 19328 } 19329} 19330function Tp(e, t, n) { 19331 return (t === !0 || t === e) && (n === null || n === e) 19332} 19333function $ee(e, t=10) { 19334 let n = null; 19335 return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), 19336 n 19337} 19338class Lee extends Ba { 19339 constructor(t) { 19340 super(t), 19341 this.removeGroupControls = pr, 19342 this.removeListeners = pr, 19343 this.controls = new Iee(t) 19344 } 19345 mount() { 19346 const {dragControls: t} = this.node.getProps(); 19347 t && (this.removeGroupControls = t.subscribe(this.controls)), 19348 this.removeListeners = this.controls.addListeners() || pr 19349 } 19350 unmount() { 19351 this.removeGroupControls(), 19352 this.removeListeners() 19353 } 19354} 19355const eE = e => (t, n) => { 19356 e && vt.postRender( () => e(t, n)) 19357} 19358; 19359class Fee extends Ba { 19360 constructor() { 19361 super(...arguments), 19362 this.removePointerDownListener = pr 19363 } 19364 onPointerDown(t) { 19365 this.session = new t3(t,this.createPanHandlers(),{ 19366 transformPagePoint: this.node.getTransformPagePoint(), 19367 contextWindow: c3(this.node) 19368 }) 19369 } 19370 createPanHandlers() { 19371 const {onPanSessionStart: t, onPanStart: n, onPan: r, onPanEnd: i} = this.node.getProps(); 19372 return { 19373 onSessionStart: eE(t), 19374 onStart: eE(n), 19375 onMove: r, 19376 onEnd: (o, a) => { 19377 delete this.session, 19378 i && vt.postRender( () => i(o, a)) 19379 } 19380 } 19381 } 19382 mount() { 19383 this.removePointerDownListener = Nd(this.node.current, "pointerdown", t => this.onPointerDown(t)) 19384 } 19385 update() { 19386 this.session && this.session.updateHandlers(this.createPanHandlers()) 19387 } 19388 unmount() { 19389 this.removePointerDownListener(), 19390 this.session && this.session.end() 19391 } 19392} 19393const hm = { 19394 hasAnimatedSinceResize: !0, 19395 hasEverUpdated: !1 19396}; 19397function tE(e, t) { 19398 return t.max === t.min ? 0 : e / (t.max - t.min) * 100 19399} 19400const Lu = { 19401 correct: (e, t) => { 19402 if (!t.target) 19403 return e; 19404 if (typeof e == "string") 19405 if (Se.test(e)) 19406 e = parseFloat(e); 19407 else 19408 return e; 19409 const n = tE(e, t.target.x) 19410 , r = tE(e, t.target.y); 19411 return `${n}% ${r}%` 19412 } 19413} 19414 , Bee = { 19415 correct: (e, {treeScale: t, projectionDelta: n}) => { 19416 const r = e 19417 , i = Ta.parse(e); 19418 if (i.length > 5) 19419 return r; 19420 const o = Ta.createTransformer(e) 19421 , a = typeof i[0] != "number" ? 1 : 0 19422 , s = n.x.scale * t.x 19423 , l = n.y.scale * t.y; 19424 i[0 + a] /= s, 19425 i[1 + a] /= l; 19426 const c = Ot(s, l, .5); 19427 return typeof i[2 + a] == "number" && (i[2 + a] /= c), 19428 typeof i[3 + a] == "number" && (i[3 + a] /= c), 19429 o(i) 19430 } 19431}; 19432class Vee extends b.Component { 19433 componentDidMount() { 19434 const {visualElement: t, layoutGroup: n, switchLayoutGroup: r, layoutId: i} = this.props 19435 , {projection: o} = t; 19436 lZ(Uee), 19437 o && (n.group && n.group.add(o), 19438 r && r.register && i && r.register(o), 19439 o.root.didUpdate(), 19440 o.addEventListener("animationComplete", () => { 19441 this.safeToRemove() 19442 } 19443 ), 19444 o.setOptions({ 19445 ...o.options, 19446 onExitComplete: () => this.safeToRemove() 19447 })), 19448 hm.hasEverUpdated = !0 19449 } 19450 getSnapshotBeforeUpdate(t) { 19451 const {layoutDependency: n, visualElement: r, drag: i, isPresent: o} = this.props 19452 , a = r.projection; 19453 return a && (a.isPresent = o, 19454 i || t.layoutDependency !== n || n === void 0 ? a.willUpdate() : this.safeToRemove(), 19455 t.isPresent !== o && (o ? a.promote() : a.relegate() || vt.postRender( () => { 19456 const s = a.getStack(); 19457 (!s || !s.members.length) && this.safeToRemove() 19458 } 19459 ))), 19460 null 19461 } 19462 componentDidUpdate() { 19463 const {projection: t} = this.props.visualElement; 19464 t && (t.root.didUpdate(), 19465 GP.postRender( () => { 19466 !t.currentAnimation && t.isLead() && this.safeToRemove() 19467 } 19468 )) 19469 } 19470 componentWillUnmount() { 19471 const {visualElement: t, layoutGroup: n, switchLayoutGroup: r} = this.props 19472 , {projection: i} = t; 19473 i && (i.scheduleCheckAfterUnmount(), 19474 n && n.group && n.group.remove(i), 19475 r && r.deregister && r.deregister(i)) 19476 } 19477 safeToRemove() { 19478 const {safeToRemove: t} = this.props; 19479 t && t() 19480 } 19481 render() { 19482 return null 19483 } 19484} 19485function u3(e) { 19486 const [t,n] = PQ() 19487 , r = b.useContext(K4); 19488 return h.jsx(Vee, { 19489 ...e, 19490 layoutGroup: r, 19491 switchLayoutGroup: b.useContext(eB), 19492 isPresent: t, 19493 safeToRemove: n 19494 }) 19495} 19496const Uee = { 19497 borderRadius: { 19498 ...Lu, 19499 applyTo: ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius"] 19500 }, 19501 borderTopLeftRadius: Lu, 19502 borderTopRightRadius: Lu, 19503 borderBottomLeftRadius: Lu, 19504 borderBottomRightRadius: Lu, 19505 boxShadow: Bee 19506}; 19507function zee(e, t, n) { 19508 const r = An(e) ? e : lf(e); 19509 return r.start(x_("", r, t, n)), 19510 r.animation 19511} 19512function Wee(e) { 19513 return e instanceof SVGElement && e.tagName !== "svg" 19514} 19515const Hee = (e, t) => e.depth - t.depth; 19516class qee { 19517 constructor() { 19518 this.children = [], 19519 this.isDirty = !1 19520 } 19521 add(t) { 19522 l_(this.children, t), 19523 this.isDirty = !0 19524 } 19525 remove(t) { 19526 c_(this.children, t), 19527 this.isDirty = !0 19528 } 19529 forEach(t) { 19530 this.isDirty && this.children.sort(Hee), 19531 this.isDirty = !1, 19532 this.children.forEach(t) 19533 } 19534} 19535function Kee(e, t) { 19536 const n = $i.now() 19537 , r = ({timestamp: i}) => { 19538 const o = i - n; 19539 o >= t && (_a(r), 19540 e(o - t)) 19541 } 19542 ; 19543 return vt.read(r, !0), 19544 () => _a(r) 19545} 19546const d3 = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"] 19547 , Gee = d3.length 19548 , nE = e => typeof e == "string" ? parseFloat(e) : e 19549 , rE = e => typeof e == "number" || Se.test(e); 19550function Yee(e, t, n, r, i, o) { 19551 i ? (e.opacity = Ot(0, n.opacity !== void 0 ? n.opacity : 1, Xee(r)), 19552 e.opacityExit = Ot(t.opacity !== void 0 ? t.opacity : 1, 0, Qee(r))) : o && (e.opacity = Ot(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r)); 19553 for (let a = 0; a < Gee; a++) { 19554 const s = `border${d3[a]}Radius`; 19555 let l = iE(t, s) 19556 , c = iE(n, s); 19557 if (l === void 0 && c === void 0) 19558 continue; 19559 l || (l = 0), 19560 c || (c = 0), 19561 l === 0 || c === 0 || rE(l) === rE(c) ? (e[s] = Math.max(Ot(nE(l), nE(c), r), 0), 19562 (Ii.test(c) || Ii.test(l)) && (e[s] += "%")) : e[s] = c 19563 } 19564 (t.rotate || n.rotate) && (e.rotate = Ot(t.rotate || 0, n.rotate || 0, r)) 19565} 19566function iE(e, t) { 19567 return e[t] !== void 0 ? e[t] : e.borderRadius 19568} 19569const Xee = f3(0, .5, jB) 19570 , Qee = f3(.5, .95, pr); 19571function f3(e, t, n) { 19572 return r => r < e ? 0 : r > t ? 1 : n(Tc(e, t, r)) 19573} 19574function oE(e, t) { 19575 e.min = t.min, 19576 e.max = t.max 19577} 19578function Sr(e, t) { 19579 oE(e.x, t.x), 19580 oE(e.y, t.y) 19581} 19582function aE(e, t) { 19583 e.translate = t.translate, 19584 e.scale = t.scale, 19585 e.originPoint = t.originPoint, 19586 e.origin = t.origin 19587} 19588function sE(e, t, n, r, i) { 19589 return e -= t, 19590 e = eg(e, 1 / n, r), 19591 i !== void 0 && (e = eg(e, 1 / i, r)), 19592 e 19593} 19594function Zee(e, t=0, n=1, r=.5, i, o=e, a=e) { 19595 if (Ii.test(t) && (t = parseFloat(t), 19596 t = Ot(a.min, a.max, t / 100) - a.min), 19597 typeof t != "number") 19598 return; 19599 let s = Ot(o.min, o.max, r); 19600 e === o && (s -= t), 19601 e.min = sE(e.min, t, n, s, i), 19602 e.max = sE(e.max, t, n, s, i) 19603} 19604function lE(e, t, [n,r,i], o, a) { 19605 Zee(e, t[n], t[r], t[i], t.scale, o, a) 19606} 19607const Jee = ["x", "scaleX", "originX"] 19608 , ete = ["y", "scaleY", "originY"]; 19609function cE(e, t, n, r) { 19610 lE(e.x, t, Jee, n ? n.x : void 0, r ? r.x : void 0), 19611 lE(e.y, t, ete, n ? n.y : void 0, r ? r.y : void 0) 19612} 19613function uE(e) { 19614 return e.translate === 0 && e.scale === 1 19615} 19616function h3(e) { 19617 return uE(e.x) && uE(e.y) 19618} 19619function dE(e, t) { 19620 return e.min === t.min && e.max === t.max 19621} 19622function tte(e, t) { 19623 return dE(e.x, t.x) && dE(e.y, t.y) 19624} 19625function fE(e, t) { 19626 return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max) 19627} 19628function p3(e, t) { 19629 return fE(e.x, t.x) && fE(e.y, t.y) 19630} 19631function hE(e) { 19632 return vr(e.x) / vr(e.y) 19633} 19634function pE(e, t) { 19635 return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint 19636} 19637class nte { 19638 constructor() { 19639 this.members = [] 19640 } 19641 add(t) { 19642 l_(this.members, t), 19643 t.scheduleRender() 19644 } 19645 remove(t) { 19646 if (c_(this.members, t), 19647 t === this.prevLead && (this.prevLead = void 0), 19648 t === this.lead) { 19649 const n = this.members[this.members.length - 1]; 19650 n && this.promote(n) 19651 } 19652 } 19653 relegate(t) { 19654 const n = this.members.findIndex(i => t === i); 19655 if (n === 0) 19656 return !1; 19657 let r; 19658 for (let i = n; i >= 0; i--) { 19659 const o = this.members[i]; 19660 if (o.isPresent !== !1) { 19661 r = o; 19662 break 19663 } 19664 } 19665 return r ? (this.promote(r), 19666 !0) : !1 19667 } 19668 promote(t, n) { 19669 const r = this.lead; 19670 if (t !== r && (this.prevLead = r, 19671 this.lead = t, 19672 t.show(), 19673 r)) { 19674 r.instance && r.scheduleRender(), 19675 t.scheduleRender(), 19676 t.resumeFrom = r, 19677 n && (t.resumeFrom.preserveOpacity = !0), 19678 r.snapshot && (t.snapshot = r.snapshot, 19679 t.snapshot.latestValues = r.animationValues || r.latestValues), 19680 t.root && t.root.isUpdating && (t.isLayoutDirty = !0); 19681 const {crossfade: i} = t.options; 19682 i === !1 && r.hide() 19683 } 19684 } 19685 exitAnimationComplete() { 19686 this.members.forEach(t => { 19687 const {options: n, resumingFrom: r} = t; 19688 n.onExitComplete && n.onExitComplete(), 19689 r && r.options.onExitComplete && r.options.onExitComplete() 19690 } 19691 ) 19692 } 19693 scheduleRender() { 19694 this.members.forEach(t => { 19695 t.instance && t.scheduleRender(!1) 19696 } 19697 ) 19698 } 19699 removeLeadSnapshot() { 19700 this.lead && this.lead.snapshot && (this.lead.snapshot = void 0) 19701 } 19702} 19703function rte(e, t, n) { 19704 let r = ""; 19705 const i = e.x.translate / t.x 19706 , o = e.y.translate / t.y 19707 , a = (n == null ? void 0 : n.z) || 0; 19708 if ((i || o || a) && (r = `translate3d(${i}px, ${o}px, ${a}px) `), 19709 (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), 19710 n) { 19711 const {transformPerspective: c, rotate: u, rotateX: d, rotateY: f, skewX: p, skewY: g} = n; 19712 c && (r = `perspective(${c}px) ${r}`), 19713 u && (r += `rotate(${u}deg) `), 19714 d && (r += `rotateX(${d}deg) `), 19715 f && (r += `rotateY(${f}deg) `), 19716 p && (r += `skewX(${p}deg) `), 19717 g && (r += `skewY(${g}deg) `) 19718 } 19719 const s = e.x.scale * t.x 19720 , l = e.y.scale * t.y; 19721 return (s !== 1 || l !== 1) && (r += `scale(${s}, ${l})`), 19722 r || "none" 19723} 19724const ns = { 19725 type: "projectionFrame", 19726 totalNodes: 0, 19727 resolvedTargetDeltas: 0, 19728 recalculatedProjection: 0 19729} 19730 , ld = typeof window < "u" && window.MotionDebug !== void 0 19731 , lx = ["", "X", "Y", "Z"] 19732 , ite = { 19733 visibility: "hidden" 19734} 19735 , mE = 1e3; 19736let ote = 0; 19737function cx(e, t, n, r) { 19738 const {latestValues: i} = t; 19739 i[e] && (n[e] = i[e], 19740 t.setStaticValue(e, 0), 19741 r && (r[e] = 0)) 19742} 19743function m3(e) { 19744 if (e.hasCheckedOptimisedAppear = !0, 19745 e.root === e) 19746 return; 19747 const {visualElement: t} = e.options; 19748 if (!t) 19749 return; 19750 const n = PB(t); 19751 if (window.MotionHasOptimisedAnimation(n, "transform")) { 19752 const {layout: i, layoutId: o} = e.options; 19753 window.MotionCancelOptimisedAnimation(n, "transform", vt, !(i || o)) 19754 } 19755 const {parent: r} = e; 19756 r && !r.hasCheckedOptimisedAppear && m3(r) 19757} 19758function g3({attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i}) { 19759 return class { 19760 constructor(a={}, s=t == null ? void 0 : t()) { 19761 this.id = ote++, 19762 this.animationId = 0, 19763 this.children = new Set, 19764 this.options = {}, 19765 this.isTreeAnimating = !1, 19766 this.isAnimationBlocked = !1, 19767 this.isLayoutDirty = !1, 19768 this.isProjectionDirty = !1, 19769 this.isSharedProjectionDirty = !1, 19770 this.isTransformDirty = !1, 19771 this.updateManuallyBlocked = !1, 19772 this.updateBlockedByResize = !1, 19773 this.isUpdating = !1, 19774 this.isSVG = !1, 19775 this.needsReset = !1, 19776 this.shouldResetTransform = !1, 19777 this.hasCheckedOptimisedAppear = !1, 19778 this.treeScale = { 19779 x: 1, 19780 y: 1 19781 }, 19782 this.eventHandlers = new Map, 19783 this.hasTreeAnimated = !1, 19784 this.updateScheduled = !1, 19785 this.scheduleUpdate = () => this.update(), 19786 this.projectionUpdateScheduled = !1, 19787 this.checkUpdateFailed = () => { 19788 this.isUpdating && (this.isUpdating = !1, 19789 this.clearAllSnapshots()) 19790 } 19791 , 19792 this.updateProjection = () => { 19793 this.projectionUpdateScheduled = !1, 19794 ld && (ns.totalNodes = ns.resolvedTargetDeltas = ns.recalculatedProjection = 0), 19795 this.nodes.forEach(lte), 19796 this.nodes.forEach(hte), 19797 this.nodes.forEach(pte), 19798 this.nodes.forEach(cte), 19799 ld && window.MotionDebug.record(ns) 19800 } 19801 , 19802 this.resolvedRelativeTargetAt = 0, 19803 this.hasProjected = !1, 19804 this.isVisible = !0, 19805 this.animationProgress = 0, 19806 this.sharedNodes = new Map, 19807 this.latestValues = a, 19808 this.root = s ? s.root || s : this, 19809 this.path = s ? [...s.path, s] : [], 19810 this.parent = s, 19811 this.depth = s ? s.depth + 1 : 0; 19812 for (let l = 0; l < this.path.length; l++) 19813 this.path[l].shouldResetTransform = !0; 19814 this.root === this && (this.nodes = new qee) 19815 } 19816 addEventListener(a, s) { 19817 return this.eventHandlers.has(a) || this.eventHandlers.set(a, new u_), 19818 this.eventHandlers.get(a).add(s) 19819 } 19820 notifyListeners(a, ...s) { 19821 const l = this.eventHandlers.get(a); 19822 l && l.notify(...s) 19823 } 19824 hasListeners(a) { 19825 return this.eventHandlers.has(a) 19826 } 19827 mount(a, s=this.root.hasTreeAnimated) { 19828 if (this.instance) 19829 return; 19830 this.isSVG = Wee(a), 19831 this.instance = a; 19832 const {layoutId: l, layout: c, visualElement: u} = this.options; 19833 if (u && !u.current && u.mount(a), 19834 this.root.nodes.add(this), 19835 this.parent && this.parent.children.add(this), 19836 s && (c || l) && (this.isLayoutDirty = !0), 19837 e) { 19838 let d; 19839 const f = () => this.root.updateBlockedByResize = !1; 19840 e(a, () => { 19841 this.root.updateBlockedByResize = !0, 19842 d && d(), 19843 d = Kee(f, 250), 19844 hm.hasAnimatedSinceResize && (hm.hasAnimatedSinceResize = !1, 19845 this.nodes.forEach(yE)) 19846 } 19847 ) 19848 } 19849 l && this.root.registerSharedNode(l, this), 19850 this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({delta: d, hasLayoutChanged: f, hasRelativeTargetChanged: p, layout: g}) => { 19851 if (this.isTreeAnimationBlocked()) { 19852 this.target = void 0, 19853 this.relativeTarget = void 0; 19854 return 19855 } 19856 const m = this.options.transition || u.getDefaultTransition() || xte 19857 , {onLayoutAnimationStart: x, onLayoutAnimationComplete: v} = u.getProps() 19858 , y = !this.targetLayout || !p3(this.targetLayout, g) || p 19859 , w = !f && p; 19860 if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || w || f && (y || !this.currentAnimation)) { 19861 this.resumeFrom && (this.resumingFrom = this.resumeFrom, 19862 this.resumingFrom.resumingFrom = void 0), 19863 this.setAnimationOrigin(d, w); 19864 const P = { 19865 ...i_(m, "layout"), 19866 onPlay: x, 19867 onComplete: v 19868 }; 19869 (u.shouldReduceMotion || this.options.layoutRoot) && (P.delay = 0, 19870 P.type = !1), 19871 this.startAnimation(P) 19872 } else 19873 f || yE(this), 19874 this.isLead() && this.options.onExitComplete && this.options.onExitComplete(); 19875 this.targetLayout = g 19876 } 19877 ) 19878 } 19879 unmount() { 19880 this.options.layoutId && this.willUpdate(), 19881 this.root.nodes.remove(this); 19882 const a = this.getStack(); 19883 a && a.remove(this), 19884 this.parent && this.parent.children.delete(this), 19885 this.instance = void 0, 19886 _a(this.updateProjection) 19887 } 19888 blockUpdate() { 19889 this.updateManuallyBlocked = !0 19890 } 19891 unblockUpdate() { 19892 this.updateManuallyBlocked = !1 19893 } 19894 isUpdateBlocked() { 19895 return this.updateManuallyBlocked || this.updateBlockedByResize 19896 } 19897 isTreeAnimationBlocked() { 19898 return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1 19899 } 19900 startUpdate() { 19901 this.isUpdateBlocked() || (this.isUpdating = !0, 19902 this.nodes && this.nodes.forEach(mte), 19903 this.animationId++) 19904 } 19905 getTransformTemplate() { 19906 const {visualElement: a} = this.options; 19907 return a && a.getProps().transformTemplate 19908 } 19909 willUpdate(a=!0) { 19910 if (this.root.hasTreeAnimated = !0, 19911 this.root.isUpdateBlocked()) { 19912 this.options.onExitComplete && this.options.onExitComplete(); 19913 return 19914 } 19915 if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && m3(this), 19916 !this.root.isUpdating && this.root.startUpdate(), 19917 this.isLayoutDirty) 19918 return; 19919 this.isLayoutDirty = !0; 19920 for (let u = 0; u < this.path.length; u++) { 19921 const d = this.path[u]; 19922 d.shouldResetTransform = !0, 19923 d.updateScroll("snapshot"), 19924 d.options.layoutRoot && d.willUpdate(!1) 19925 } 19926 const {layoutId: s, layout: l} = this.options; 19927 if (s === void 0 && !l) 19928 return; 19929 const c = this.getTransformTemplate(); 19930 this.prevTransformTemplateValue = c ? c(this.latestValues, "") : void 0, 19931 this.updateSnapshot(), 19932 a && this.notifyListeners("willUpdate") 19933 } 19934 update() { 19935 if (this.updateScheduled = !1, 19936 this.isUpdateBlocked()) { 19937 this.unblockUpdate(), 19938 this.clearAllSnapshots(), 19939 this.nodes.forEach(gE); 19940 return 19941 } 19942 this.isUpdating || this.nodes.forEach(dte), 19943 this.isUpdating = !1, 19944 this.nodes.forEach(fte), 19945 this.nodes.forEach(ate), 19946 this.nodes.forEach(ste), 19947 this.clearAllSnapshots(); 19948 const s = $i.now(); 19949 gn.delta = _o(0, 1e3 / 60, s - gn.timestamp), 19950 gn.timestamp = s, 19951 gn.isProcessing = !0, 19952 J0.update.process(gn), 19953 J0.preRender.process(gn), 19954 J0.render.process(gn), 19955 gn.isProcessing = !1 19956 } 19957 didUpdate() { 19958 this.updateScheduled || (this.updateScheduled = !0, 19959 GP.read(this.scheduleUpdate)) 19960 } 19961 clearAllSnapshots() { 19962 this.nodes.forEach(ute), 19963 this.sharedNodes.forEach(gte) 19964 } 19965 scheduleUpdateProjection() { 19966 this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, 19967 vt.preRender(this.updateProjection, !1, !0)) 19968 } 19969 scheduleCheckAfterUnmount() { 19970 vt.postRender( () => { 19971 this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed() 19972 } 19973 ) 19974 } 19975 updateSnapshot() { 19976 this.snapshot || !this.instance || (this.snapshot = this.measure()) 19977 } 19978 updateLayout() { 19979 if (!this.instance || (this.updateScroll(), 19980 !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) 19981 return; 19982 if (this.resumeFrom && !this.resumeFrom.instance) 19983 for (let l = 0; l < this.path.length; l++) 19984 this.path[l].updateScroll(); 19985 const a = this.layout; 19986 this.layout = this.measure(!1), 19987 this.layoutCorrected = Ft(), 19988 this.isLayoutDirty = !1, 19989 this.projectionDelta = void 0, 19990 this.notifyListeners("measure", this.layout.layoutBox); 19991 const {visualElement: s} = this.options; 19992 s && s.notify("LayoutMeasure", this.layout.layoutBox, a ? a.layoutBox : void 0) 19993 } 19994 updateScroll(a="measure") { 19995 let s = !!(this.options.layoutScroll && this.instance); 19996 if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === a && (s = !1), 19997 s) { 19998 const l = r(this.instance); 19999 this.scroll = { 20000 animationId: this.root.animationId, 20001 phase: a, 20002 isRoot: l, 20003 offset: n(this.instance), 20004 wasRoot: this.scroll ? this.scroll.isRoot : l 20005 } 20006 } 20007 } 20008 resetTransform() { 20009 if (!i) 20010 return; 20011 const a = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout 20012 , s = this.projectionDelta && !h3(this.projectionDelta) 20013 , l = this.getTransformTemplate() 20014 , c = l ? l(this.latestValues, "") : void 0 20015 , u = c !== this.prevTransformTemplateValue; 20016 a && (s || ts(this.latestValues) || u) && (i(this.instance, c), 20017 this.shouldResetTransform = !1, 20018 this.scheduleRender()) 20019 } 20020 measure(a=!0) { 20021 const s = this.measurePageBox(); 20022 let l = this.removeElementScroll(s); 20023 return a && (l = this.removeTransform(l)), 20024 bte(l), 20025 { 20026 animationId: this.root.animationId, 20027 measuredBox: s, 20028 layoutBox: l, 20029 latestValues: {}, 20030 source: this.id 20031 } 20032 } 20033 measurePageBox() { 20034 var a; 20035 const {visualElement: s} = this.options; 20036 if (!s) 20037 return Ft(); 20038 const l = s.measureViewportBox(); 20039 if (!(((a = this.scroll) === null || a === void 0 ? void 0 : a.wasRoot) || this.path.some(wte))) { 20040 const {scroll: u} = this.root; 20041 u && (Rl(l.x, u.offset.x), 20042 Rl(l.y, u.offset.y)) 20043 } 20044 return l 20045 } 20046 removeElementScroll(a) { 20047 var s; 20048 const l = Ft(); 20049 if (Sr(l, a), 20050 !((s = this.scroll) === null || s === void 0) && s.wasRoot) 20051 return l; 20052 for (let c = 0; c < this.path.length; c++) { 20053 const u = this.path[c] 20054 , {scroll: d, options: f} = u; 20055 u !== this.root && d && f.layoutScroll && (d.wasRoot && Sr(l, a), 20056 Rl(l.x, d.offset.x), 20057 Rl(l.y, d.offset.y)) 20058 } 20059 return l 20060 } 20061 applyTransform(a, s=!1) { 20062 const l = Ft(); 20063 Sr(l, a); 20064 for (let c = 0; c < this.path.length; c++) { 20065 const u = this.path[c]; 20066 !s && u.options.layoutScroll && u.scroll && u !== u.root && Dl(l, { 20067 x: -u.scroll.offset.x, 20068 y: -u.scroll.offset.y 20069 }), 20070 ts(u.latestValues) && Dl(l, u.latestValues) 20071 } 20072 return ts(this.latestValues) && Dl(l, this.latestValues), 20073 l 20074 } 20075 removeTransform(a) { 20076 const s = Ft(); 20077 Sr(s, a); 20078 for (let l = 0; l < this.path.length; l++) { 20079 const c = this.path[l]; 20080 if (!c.instance || !ts(c.latestValues)) 20081 continue; 20082 Nw(c.latestValues) && c.updateSnapshot(); 20083 const u = Ft() 20084 , d = c.measurePageBox(); 20085 Sr(u, d), 20086 cE(s, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u) 20087 } 20088 return ts(this.latestValues) && cE(s, this.latestValues), 20089 s 20090 } 20091 setTargetDelta(a) { 20092 this.targetDelta = a, 20093 this.root.scheduleUpdateProjection(), 20094 this.isProjectionDirty = !0 20095 } 20096 setOptions(a) { 20097 this.options = { 20098 ...this.options, 20099 ...a, 20100 crossfade: a.crossfade !== void 0 ? a.crossfade : !0 20101 } 20102 } 20103 clearMeasurements() { 20104 this.scroll = void 0, 20105 this.layout = void 0, 20106 this.snapshot = void 0, 20107 this.prevTransformTemplateValue = void 0, 20108 this.targetDelta = void 0, 20109 this.target = void 0, 20110 this.isLayoutDirty = !1 20111 } 20112 forceRelativeParentToResolveTarget() { 20113 this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== gn.timestamp && this.relativeParent.resolveTargetDelta(!0) 20114 } 20115 resolveTargetDelta(a=!1) { 20116 var s; 20117 const l = this.getLead(); 20118 this.isProjectionDirty || (this.isProjectionDirty = l.isProjectionDirty), 20119 this.isTransformDirty || (this.isTransformDirty = l.isTransformDirty), 20120 this.isSharedProjectionDirty || (this.isSharedProjectionDirty = l.isSharedProjectionDirty); 20121 const c = !!this.resumingFrom || this !== l; 20122 if (!(a || c && this.isSharedProjectionDirty || this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) 20123 return; 20124 const {layout: d, layoutId: f} = this.options; 20125 if (!(!this.layout || !(d || f))) { 20126 if (this.resolvedRelativeTargetAt = gn.timestamp, 20127 !this.targetDelta && !this.relativeTarget) { 20128 const p = this.getClosestProjectingParent(); 20129 p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, 20130 this.forceRelativeParentToResolveTarget(), 20131 this.relativeTarget = Ft(), 20132 this.relativeTargetOrigin = Ft(), 20133 kd(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), 20134 Sr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0 20135 } 20136 if (!(!this.relativeTarget && !this.targetDelta)) { 20137 if (this.target || (this.target = Ft(), 20138 this.targetWithTransforms = Ft()), 20139 this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), 20140 _ee(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Sr(this.target, this.layout.layoutBox), 20141 s3(this.target, this.targetDelta)) : Sr(this.target, this.layout.layoutBox), 20142 this.attemptToResolveRelativeTarget) { 20143 this.attemptToResolveRelativeTarget = !1; 20144 const p = this.getClosestProjectingParent(); 20145 p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, 20146 this.forceRelativeParentToResolveTarget(), 20147 this.relativeTarget = Ft(), 20148 this.relativeTargetOrigin = Ft(), 20149 kd(this.relativeTargetOrigin, this.target, p.target), 20150 Sr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0 20151 } 20152 ld && ns.resolvedTargetDeltas++ 20153 } 20154 } 20155 } 20156 getClosestProjectingParent() { 20157 if (!(!this.parent || Nw(this.parent.latestValues) || a3(this.parent.latestValues))) 20158 return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent() 20159 } 20160 isProjecting() { 20161 return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout) 20162 } 20163 calcProjection() { 20164 var a; 20165 const s = this.getLead() 20166 , l = !!this.resumingFrom || this !== s; 20167 let c = !0; 20168 if ((this.isProjectionDirty || !((a = this.parent) === null || a === void 0) && a.isProjectionDirty) && (c = !1), 20169 l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), 20170 this.resolvedRelativeTargetAt === gn.timestamp && (c = !1), 20171 c) 20172 return; 20173 const {layout: u, layoutId: d} = this.options; 20174 if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), 20175 this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), 20176 !this.layout || !(u || d)) 20177 return; 20178 Sr(this.layoutCorrected, this.layout.layoutBox); 20179 const f = this.treeScale.x 20180 , p = this.treeScale.y; 20181 kee(this.layoutCorrected, this.treeScale, this.path, l), 20182 s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox, 20183 s.targetWithTransforms = Ft()); 20184 const {target: g} = s; 20185 if (!g) { 20186 this.prevProjectionDelta && (this.createProjectionDeltas(), 20187 this.scheduleRender()); 20188 return 20189 } 20190 !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (aE(this.prevProjectionDelta.x, this.projectionDelta.x), 20191 aE(this.prevProjectionDelta.y, this.projectionDelta.y)), 20192 Md(this.projectionDelta, this.layoutCorrected, g, this.latestValues), 20193 (this.treeScale.x !== f || this.treeScale.y !== p || !pE(this.projectionDelta.x, this.prevProjectionDelta.x) || !pE(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, 20194 this.scheduleRender(), 20195 this.notifyListeners("projectionUpdate", g)), 20196 ld && ns.recalculatedProjection++ 20197 } 20198 hide() { 20199 this.isVisible = !1 20200 } 20201 show() { 20202 this.isVisible = !0 20203 } 20204 scheduleRender(a=!0) { 20205 var s; 20206 if ((s = this.options.visualElement) === null || s === void 0 || s.scheduleRender(), 20207 a) { 20208 const l = this.getStack(); 20209 l && l.scheduleRender() 20210 } 20211 this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0) 20212 } 20213 createProjectionDeltas() { 20214 this.prevProjectionDelta = kl(), 20215 this.projectionDelta = kl(), 20216 this.projectionDeltaWithTransform = kl() 20217 } 20218 setAnimationOrigin(a, s=!1) { 20219 const l = this.snapshot 20220 , c = l ? l.latestValues : {} 20221 , u = { 20222 ...this.latestValues 20223 } 20224 , d = kl(); 20225 (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), 20226 this.attemptToResolveRelativeTarget = !s; 20227 const f = Ft() 20228 , p = l ? l.source : void 0 20229 , g = this.layout ? this.layout.source : void 0 20230 , m = p !== g 20231 , x = this.getStack() 20232 , v = !x || x.members.length <= 1 20233 , y = !!(m && !v && this.options.crossfade === !0 && !this.path.some(vte)); 20234 this.animationProgress = 0; 20235 let w; 20236 this.mixTargetDelta = P => { 20237 const S = P / 1e3; 20238 vE(d.x, a.x, S), 20239 vE(d.y, a.y, S), 20240 this.setTargetDelta(d), 20241 this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (kd(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), 20242 yte(this.relativeTarget, this.relativeTargetOrigin, f, S), 20243 w && tte(this.relativeTarget, w) && (this.isProjectionDirty = !1), 20244 w || (w = Ft()), 20245 Sr(w, this.relativeTarget)), 20246 m && (this.animationValues = u, 20247 Yee(u, c, this.latestValues, S, y, v)), 20248 this.root.scheduleUpdateProjection(), 20249 this.scheduleRender(), 20250 this.animationProgress = S 20251 } 20252 , 20253 this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0) 20254 } 20255 startAnimation(a) { 20256 this.notifyListeners("animationStart"), 20257 this.currentAnimation && this.currentAnimation.stop(), 20258 this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), 20259 this.pendingAnimation && (_a(this.pendingAnimation), 20260 this.pendingAnimation = void 0), 20261 this.pendingAnimation = vt.update( () => { 20262 hm.hasAnimatedSinceResize = !0, 20263 this.currentAnimation = zee(0, mE, { 20264 ...a, 20265 onUpdate: s => { 20266 this.mixTargetDelta(s), 20267 a.onUpdate && a.onUpdate(s) 20268 } 20269 , 20270 onComplete: () => { 20271 a.onComplete && a.onComplete(), 20272 this.completeAnimation() 20273 } 20274 }), 20275 this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), 20276 this.pendingAnimation = void 0 20277 } 20278 ) 20279 } 20280 completeAnimation() { 20281 this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, 20282 this.resumingFrom.preserveOpacity = void 0); 20283 const a = this.getStack(); 20284 a && a.exitAnimationComplete(), 20285 this.resumingFrom = this.currentAnimation = this.animationValues = void 0, 20286 this.notifyListeners("animationComplete") 20287 } 20288 finishAnimation() { 20289 this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(mE), 20290 this.currentAnimation.stop()), 20291 this.completeAnimation() 20292 } 20293 applyTransformsToTarget() { 20294 const a = this.getLead(); 20295 let {targetWithTransforms: s, target: l, layout: c, latestValues: u} = a; 20296 if (!(!s || !l || !c)) { 20297 if (this !== a && this.layout && c && y3(this.options.animationType, this.layout.layoutBox, c.layoutBox)) { 20298 l = this.target || Ft(); 20299 const d = vr(this.layout.layoutBox.x); 20300 l.x.min = a.target.x.min, 20301 l.x.max = l.x.min + d; 20302 const f = vr(this.layout.layoutBox.y); 20303 l.y.min = a.target.y.min, 20304 l.y.max = l.y.min + f 20305 } 20306 Sr(s, l), 20307 Dl(s, u), 20308 Md(this.projectionDeltaWithTransform, this.layoutCorrected, s, u) 20309 } 20310 } 20311 registerSharedNode(a, s) { 20312 this.sharedNodes.has(a) || this.sharedNodes.set(a, new nte), 20313 this.sharedNodes.get(a).add(s); 20314 const c = s.options.initialPromotionConfig; 20315 s.promote({ 20316 transition: c ? c.transition : void 0, 20317 preserveFollowOpacity: c && c.shouldPreserveFollowOpacity ? c.shouldPreserveFollowOpacity(s) : void 0 20318 }) 20319 } 20320 isLead() { 20321 const a = this.getStack(); 20322 return a ? a.lead === this : !0 20323 } 20324 getLead() { 20325 var a; 20326 const {layoutId: s} = this.options; 20327 return s ? ((a = this.getStack()) === null || a === void 0 ? void 0 : a.lead) || this : this 20328 } 20329 getPrevLead() { 20330 var a; 20331 const {layoutId: s} = this.options; 20332 return s ? (a = this.getStack()) === null || a === void 0 ? void 0 : a.prevLead : void 0 20333 } 20334 getStack() { 20335 const {layoutId: a} = this.options; 20336 if (a) 20337 return this.root.sharedNodes.get(a) 20338 } 20339 promote({needsReset: a, transition: s, preserveFollowOpacity: l}={}) { 20340 const c = this.getStack(); 20341 c && c.promote(this, l), 20342 a && (this.projectionDelta = void 0, 20343 this.needsReset = !0), 20344 s && this.setOptions({ 20345 transition: s 20346 }) 20347 } 20348 relegate() { 20349 const a = this.getStack(); 20350 return a ? a.relegate(this) : !1 20351 } 20352 resetSkewAndRotation() { 20353 const {visualElement: a} = this.options; 20354 if (!a) 20355 return; 20356 let s = !1; 20357 const {latestValues: l} = a; 20358 if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (s = !0), 20359 !s) 20360 return; 20361 const c = {}; 20362 l.z && cx("z", a, c, this.animationValues); 20363 for (let u = 0; u < lx.length; u++) 20364 cx(`rotate${lx[u]}`, a, c, this.animationValues), 20365 cx(`skew${lx[u]}`, a, c, this.animationValues); 20366 a.render(); 20367 for (const u in c) 20368 a.setStaticValue(u, c[u]), 20369 this.animationValues && (this.animationValues[u] = c[u]); 20370 a.scheduleRender() 20371 } 20372 getProjectionStyles(a) { 20373 var s, l; 20374 if (!this.instance || this.isSVG) 20375 return; 20376 if (!this.isVisible) 20377 return ite; 20378 const c = { 20379 visibility: "" 20380 } 20381 , u = this.getTransformTemplate(); 20382 if (this.needsReset) 20383 return this.needsReset = !1, 20384 c.opacity = "", 20385 c.pointerEvents = dm(a == null ? void 0 : a.pointerEvents) || "", 20386 c.transform = u ? u(this.latestValues, "") : "none", 20387 c; 20388 const d = this.getLead(); 20389 if (!this.projectionDelta || !this.layout || !d.target) { 20390 const m = {}; 20391 return this.options.layoutId && (m.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, 20392 m.pointerEvents = dm(a == null ? void 0 : a.pointerEvents) || ""), 20393 this.hasProjected && !ts(this.latestValues) && (m.transform = u ? u({}, "") : "none", 20394 this.hasProjected = !1), 20395 m 20396 } 20397 const f = d.animationValues || d.latestValues; 20398 this.applyTransformsToTarget(), 20399 c.transform = rte(this.projectionDeltaWithTransform, this.treeScale, f), 20400 u && (c.transform = u(f, c.transform)); 20401 const {x: p, y: g} = this.projectionDelta; 20402 c.transformOrigin = `${p.origin * 100}% ${g.origin * 100}% 0`, 20403 d.animationValues ? c.opacity = d === this ? (l = (s = f.opacity) !== null && s !== void 0 ? s : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : f.opacityExit : c.opacity = d === this ? f.opacity !== void 0 ? f.opacity : "" : f.opacityExit !== void 0 ? f.opacityExit : 0; 20404 for (const m in Ym) { 20405 if (f[m] === void 0) 20406 continue; 20407 const {correct: x, applyTo: v} = Ym[m] 20408 , y = c.transform === "none" ? f[m] : x(f[m], d); 20409 if (v) { 20410 const w = v.length; 20411 for (let P = 0; P < w; P++) 20412 c[v[P]] = y 20413 } else 20414 c[m] = y 20415 } 20416 return this.options.layoutId && (c.pointerEvents = d === this ? dm(a == null ? void 0 : a.pointerEvents) || "" : "none"), 20417 c 20418 } 20419 clearSnapshot() { 20420 this.resumeFrom = this.snapshot = void 0 20421 } 20422 resetTree() { 20423 this.root.nodes.forEach(a => { 20424 var s; 20425 return (s = a.currentAnimation) === null || s === void 0 ? void 0 : s.stop() 20426 } 20427 ), 20428 this.root.nodes.forEach(gE), 20429 this.root.sharedNodes.clear() 20430 } 20431 } 20432} 20433function ate(e) { 20434 e.updateLayout() 20435} 20436function ste(e) { 20437 var t; 20438 const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot; 20439 if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) { 20440 const {layoutBox: r, measuredBox: i} = e.layout 20441 , {animationType: o} = e.options 20442 , a = n.source !== e.layout.source; 20443 o === "size" ? Cr(d => { 20444 const f = a ? n.measuredBox[d] : n.layoutBox[d] 20445 , p = vr(f); 20446 f.min = r[d].min, 20447 f.max = f.min + p 20448 } 20449 ) : y3(o, n.layoutBox, r) && Cr(d => { 20450 const f = a ? n.measuredBox[d] : n.layoutBox[d] 20451 , p = vr(r[d]); 20452 f.max = f.min + p, 20453 e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, 20454 e.relativeTarget[d].max = e.relativeTarget[d].min + p) 20455 } 20456 ); 20457 const s = kl(); 20458 Md(s, r, n.layoutBox); 20459 const l = kl(); 20460 a ? Md(l, e.applyTransform(i, !0), n.measuredBox) : Md(l, r, n.layoutBox); 20461 const c = !h3(s); 20462 let u = !1; 20463 if (!e.resumeFrom) { 20464 const d = e.getClosestProjectingParent(); 20465 if (d && !d.resumeFrom) { 20466 const {snapshot: f, layout: p} = d; 20467 if (f && p) { 20468 const g = Ft(); 20469 kd(g, n.layoutBox, f.layoutBox); 20470 const m = Ft(); 20471 kd(m, r, p.layoutBox), 20472 p3(g, m) || (u = !0), 20473 d.options.layoutRoot && (e.relativeTarget = m, 20474 e.relativeTargetOrigin = g, 20475 e.relativeParent = d) 20476 } 20477 } 20478 } 20479 e.notifyListeners("didUpdate", { 20480 layout: r, 20481 snapshot: n, 20482 delta: l, 20483 layoutDelta: s, 20484 hasLayoutChanged: c, 20485 hasRelativeTargetChanged: u 20486 }) 20487 } else if (e.isLead()) { 20488 const {onExitComplete: r} = e.options; 20489 r && r() 20490 } 20491 e.options.transition = void 0 20492} 20493function lte(e) { 20494 ld && ns.totalNodes++, 20495 e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), 20496 e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), 20497 e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty)) 20498} 20499function cte(e) { 20500 e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1 20501} 20502function ute(e) { 20503 e.clearSnapshot() 20504} 20505function gE(e) { 20506 e.clearMeasurements() 20507} 20508function dte(e) { 20509 e.isLayoutDirty = !1 20510} 20511function fte(e) { 20512 const {visualElement: t} = e.options; 20513 t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), 20514 e.resetTransform() 20515} 20516function yE(e) { 20517 e.finishAnimation(), 20518 e.targetDelta = e.relativeTarget = e.target = void 0, 20519 e.isProjectionDirty = !0 20520} 20521function hte(e) { 20522 e.resolveTargetDelta() 20523} 20524function pte(e) { 20525 e.calcProjection() 20526} 20527function mte(e) { 20528 e.resetSkewAndRotation() 20529} 20530function gte(e) { 20531 e.removeLeadSnapshot() 20532} 20533function vE(e, t, n) { 20534 e.translate = Ot(t.translate, 0, n), 20535 e.scale = Ot(t.scale, 1, n), 20536 e.origin = t.origin, 20537 e.originPoint = t.originPoint 20538} 20539function xE(e, t, n, r) { 20540 e.min = Ot(t.min, n.min, r), 20541 e.max = Ot(t.max, n.max, r) 20542} 20543function yte(e, t, n, r) { 20544 xE(e.x, t.x, n.x, r), 20545 xE(e.y, t.y, n.y, r) 20546} 20547function vte(e) { 20548 return e.animationValues && e.animationValues.opacityExit !== void 0 20549} 20550const xte = { 20551 duration: .45, 20552 ease: [.4, 0, .1, 1] 20553} 20554 , bE = e => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e) 20555 , wE = bE("applewebkit/") && !bE("chrome/") ? Math.round : pr; 20556function SE(e) { 20557 e.min = wE(e.min), 20558 e.max = wE(e.max) 20559} 20560function bte(e) { 20561 SE(e.x), 20562 SE(e.y) 20563} 20564function y3(e, t, n) { 20565 return e === "position" || e === "preserve-aspect" && !Pee(hE(t), hE(n), .2) 20566} 20567function wte(e) { 20568 var t; 20569 return e !== e.root && ((t = e.scroll) === null || t === void 0 ? void 0 : t.wasRoot) 20570} 20571const Ste = g3({ 20572 attachResizeListener: (e, t) => uf(e, "resize", t), 20573 measureScroll: () => ({ 20574 x: document.documentElement.scrollLeft || document.body.scrollLeft, 20575 y: document.documentElement.scrollTop || document.body.scrollTop 20576 }), 20577 checkIsScrollRoot: () => !0 20578}) 20579 , ux = { 20580 current: void 0 20581} 20582 , v3 = g3({ 20583 measureScroll: e => ({ 20584 x: e.scrollLeft, 20585 y: e.scrollTop 20586 }), 20587 defaultParent: () => { 20588 if (!ux.current) { 20589 const e = new Ste({}); 20590 e.mount(window), 20591 e.setOptions({ 20592 layoutScroll: !0 20593 }), 20594 ux.current = e 20595 } 20596 return ux.current 20597 } 20598 , 20599 resetTransform: (e, t) => { 20600 e.style.transform = t !== void 0 ? t : "none" 20601 } 20602 , 20603 checkIsScrollRoot: e => window.getComputedStyle(e).position === "fixed" 20604}) 20605 , Pte = { 20606 pan: { 20607 Feature: Fee 20608 }, 20609 drag: { 20610 Feature: Lee, 20611 ProjectionNode: v3, 20612 MeasureLayout: u3 20613 } 20614}; 20615function PE(e, t, n) { 20616 const {props: r} = e; 20617 e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start"); 20618 const i = "onHover" + n 20619 , o = r[i]; 20620 o && vt.postRender( () => o(t, Nh(t))) 20621} 20622class _te extends Ba { 20623 mount() { 20624 const {current: t} = this.node; 20625 t && (this.unmount = _Z(t, n => (PE(this.node, n, "Start"), 20626 r => PE(this.node, r, "End")))) 20627 } 20628 unmount() {} 20629} 20630class Tte extends Ba { 20631 constructor() { 20632 super(...arguments), 20633 this.isActive = !1 20634 } 20635 onFocus() { 20636 let t = !1; 20637 try { 20638 t = this.node.current.matches(":focus-visible") 20639 } catch { 20640 t = !0 20641 } 20642 !t || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), 20643 this.isActive = !0) 20644 } 20645 onBlur() { 20646 !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), 20647 this.isActive = !1) 20648 } 20649 mount() { 20650 this.unmount = jh(uf(this.node.current, "focus", () => this.onFocus()), uf(this.node.current, "blur", () => this.onBlur())) 20651 } 20652 unmount() {} 20653} 20654function _E(e, t, n) { 20655 const {props: r} = e; 20656 e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start"); 20657 const i = "onTap" + (n === "End" ? "" : n) 20658 , o = r[i]; 20659 o && vt.postRender( () => o(t, Nh(t))) 20660} 20661class Cte extends Ba { 20662 mount() { 20663 const {current: t} = this.node; 20664 t && (this.unmount = AZ(t, n => (_E(this.node, n, "Start"), 20665 (r, {success: i}) => _E(this.node, r, i ? "End" : "Cancel")), { 20666 useGlobalTarget: this.node.props.globalTapTarget 20667 })) 20668 } 20669 unmount() {} 20670} 20671const kw = new WeakMap 20672 , dx = new WeakMap 20673 , Ote = e => { 20674 const t = kw.get(e.target); 20675 t && t(e) 20676} 20677 , Ate = e => { 20678 e.forEach(Ote) 20679} 20680; 20681function Ete({root: e, ...t}) { 20682 const n = e || document; 20683 dx.has(n) || dx.set(n, {}); 20684 const r = dx.get(n) 20685 , i = JSON.stringify(t); 20686 return r[i] || (r[i] = new IntersectionObserver(Ate,{ 20687 root: e, 20688 ...t 20689 })), 20690 r[i] 20691} 20692function jte(e, t, n) { 20693 const r = Ete(t); 20694 return kw.set(e, n), 20695 r.observe(e), 20696 () => { 20697 kw.delete(e), 20698 r.unobserve(e) 20699 } 20700} 20701const Nte = { 20702 some: 0, 20703 all: 1 20704}; 20705class Mte extends Ba { 20706 constructor() { 20707 super(...arguments), 20708 this.hasEnteredView = !1, 20709 this.isInView = !1 20710 } 20711 startObserver() { 20712 this.unmount(); 20713 const {viewport: t={}} = this.node.getProps() 20714 , {root: n, margin: r, amount: i="some", once: o} = t 20715 , a = { 20716 root: n ? n.current : void 0, 20717 rootMargin: r, 20718 threshold: typeof i == "number" ? i : Nte[i] 20719 } 20720 , s = l => { 20721 const {isIntersecting: c} = l; 20722 if (this.isInView === c || (this.isInView = c, 20723 o && !c && this.hasEnteredView)) 20724 return; 20725 c && (this.hasEnteredView = !0), 20726 this.node.animationState && this.node.animationState.setActive("whileInView", c); 20727 const {onViewportEnter: u, onViewportLeave: d} = this.node.getProps() 20728 , f = c ? u : d; 20729 f && f(l) 20730 } 20731 ; 20732 return jte(this.node.current, a, s) 20733 } 20734 mount() { 20735 this.startObserver() 20736 } 20737 update() { 20738 if (typeof IntersectionObserver > "u") 20739 return; 20740 const {props: t, prevProps: n} = this.node; 20741 ["amount", "margin", "root"].some(kte(t, n)) && this.startObserver() 20742 } 20743 unmount() {} 20744} 20745function kte({viewport: e={}}, {viewport: t={}}={}) { 20746 return n => e[n] !== t[n] 20747} 20748const Rte = { 20749 inView: { 20750 Feature: Mte 20751 }, 20752 tap: { 20753 Feature: Cte 20754 }, 20755 focus: { 20756 Feature: Tte 20757 }, 20758 hover: { 20759 Feature: _te 20760 } 20761} 20762 , Dte = { 20763 layout: { 20764 ProjectionNode: v3, 20765 MeasureLayout: u3 20766 } 20767} 20768 , Rw = { 20769 current: null 20770} 20771 , x3 = { 20772 current: !1 20773}; 20774function Ite() { 20775 if (x3.current = !0, 20776 !!zP) 20777 if (window.matchMedia) { 20778 const e = window.matchMedia("(prefers-reduced-motion)") 20779 , t = () => Rw.current = e.matches; 20780 e.addListener(t), 20781 t() 20782 } else
vendor: 4,592 bytes, lines 20783-20905
20783 Rw.current = !1 20784} 20785const $te = [...WB, _n, Ta] 20786 , Lte = e => $te.find(zB(e)) 20787 , TE = new WeakMap; 20788function Fte(e, t, n) { 20789 for (const r in t) { 20790 const i = t[r] 20791 , o = n[r]; 20792 if (An(i)) 20793 e.addValue(r, i); 20794 else if (An(o)) 20795 e.addValue(r, lf(i, { 20796 owner: e 20797 })); 20798 else if (o !== i) 20799 if (e.hasValue(r)) { 20800 const a = e.getValue(r); 20801 a.liveStyle === !0 ? a.jump(i) : a.hasAnimated || a.set(i) 20802 } else { 20803 const a = e.getStaticValue(r); 20804 e.addValue(r, lf(a !== void 0 ? a : i, { 20805 owner: e 20806 })) 20807 } 20808 } 20809 for (const r in n) 20810 t[r] === void 0 && e.removeValue(r); 20811 return t 20812} 20813const CE = ["AnimationStart", "AnimationComplete", "Update", "BeforeLayoutMeasure", "LayoutMeasure", "LayoutAnimationStart", "LayoutAnimationComplete"]; 20814class Bte { 20815 scrapeMotionValuesFromProps(t, n, r) { 20816 return {} 20817 } 20818 constructor({parent: t, props: n, presenceContext: r, reducedMotionConfig: i, blockInitialAnimation: o, visualState: a}, s={}) { 20819 this.current = null, 20820 this.children = new Set, 20821 this.isVariantNode = !1, 20822 this.isControllingVariants = !1, 20823 this.shouldReduceMotion = null, 20824 this.values = new Map, 20825 this.KeyframeResolver = g_, 20826 this.features = {}, 20827 this.valueSubscriptions = new Map, 20828 this.prevMotionValues = {}, 20829 this.events = {}, 20830 this.propEventSubscriptions = {}, 20831 this.notifyUpdate = () => this.notify("Update", this.latestValues), 20832 this.render = () => { 20833 this.current && (this.triggerBuild(), 20834 this.renderInstance(this.current, this.renderState, this.props.style, this.projection)) 20835 } 20836 , 20837 this.renderScheduledAt = 0, 20838 this.scheduleRender = () => { 20839 const p = $i.now(); 20840 this.renderScheduledAt < p && (this.renderScheduledAt = p, 20841 vt.render(this.render, !1, !0)) 20842 } 20843 ; 20844 const {latestValues: l, renderState: c, onUpdate: u} = a; 20845 this.onUpdate = u, 20846 this.latestValues = l, 20847 this.baseTarget = { 20848 ...l 20849 }, 20850 this.initialValues = n.initial ? { 20851 ...l 20852 } : {}, 20853 this.renderState = c, 20854 this.parent = t, 20855 this.props = n, 20856 this.presenceContext = r, 20857 this.depth = t ? t.depth + 1 : 0, 20858 this.reducedMotionConfig = i, 20859 this.options = s, 20860 this.blockInitialAnimation = !!o, 20861 this.isControllingVariants = Jy(n), 20862 this.isVariantNode = Z4(n), 20863 this.isVariantNode && (this.variantChildren = new Set), 20864 this.manuallyAnimateOnMount = !!(t && t.current); 20865 const {willChange: d, ...f} = this.scrapeMotionValuesFromProps(n, {}, this); 20866 for (const p in f) { 20867 const g = f[p]; 20868 l[p] !== void 0 && An(g) && g.set(l[p], !1) 20869 } 20870 } 20871 mount(t) { 20872 this.current = t, 20873 TE.set(t, this), 20874 this.projection && !this.projection.instance && this.projection.mount(t), 20875 this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), 20876 this.values.forEach( (n, r) => this.bindToMotionValue(r, n)), 20877 x3.current || Ite(), 20878 this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Rw.current, 20879 this.parent && this.parent.children.add(this), 20880 this.update(this.props, this.presenceContext) 20881 } 20882 unmount() { 20883 TE.delete(this.current), 20884 this.projection && this.projection.unmount(), 20885 _a(this.notifyUpdate), 20886 _a(this.render), 20887 this.valueSubscriptions.forEach(t => t()), 20888 this.valueSubscriptions.clear(), 20889 this.removeFromVariantTree && this.removeFromVariantTree(), 20890 this.parent && this.parent.children.delete(this); 20891 for (const t in this.events) 20892 this.events[t].clear(); 20893 for (const t in this.features) { 20894 const n = this.features[t]; 20895 n && (n.unmount(), 20896 n.isMounted = !1) 20897 } 20898 this.current = null 20899 } 20900 bindToMotionValue(t, n) { 20901 this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(); 20902 const r = Zs.has(t) 20903 , i = n.on("change", s => { 20904 this.latestValues[t] = s, 20905 this.props.onUpdate && vt.preRender(this.notifyUpdate),
20906 r && this.projection && (this.projection.isTransformDirty = !0) 20907 } 20908 ) 20909 , o = n.on("renderRequest", this.scheduleRender); 20910 let a; 20911 window.MotionCheckAppearSync && (a = window.MotionCheckAppearSync(this, t, n)), 20912 this.valueSubscriptions.set(t, () => { 20913 i(), 20914 o(), 20915 a && a(), 20916 n.owner && n.stop() 20917 } 20918 ) 20919 } 20920 sortNodePosition(t) { 20921 return !this.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current) 20922 } 20923 updateFeatures() { 20924 let t = "animation"; 20925 for (t in Cc) { 20926 const n = Cc[t]; 20927 if (!n) 20928 continue; 20929 const {isEnabled: r, Feature: i} = n; 20930 if (!this.features[t] && i && r(this.props) && (this.features[t] = new i(this)), 20931 this.features[t]) { 20932 const o = this.features[t]; 20933 o.isMounted ? o.update() : (o.mount(), 20934 o.isMounted = !0) 20935 } 20936 } 20937 } 20938 triggerBuild() { 20939 this.build(this.renderState, this.latestValues, this.props) 20940 } 20941 measureViewportBox() { 20942 return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Ft() 20943 } 20944 getStaticValue(t) { 20945 return this.latestValues[t] 20946 } 20947 setStaticValue(t, n) { 20948 this.latestValues[t] = n 20949 } 20950 update(t, n) { 20951 (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), 20952 this.prevProps = this.props, 20953 this.props = t, 20954 this.prevPresenceContext = this.presenceContext, 20955 this.presenceContext = n; 20956 for (let r = 0; r < CE.length; r++) { 20957 const i = CE[r]; 20958 this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), 20959 delete this.propEventSubscriptions[i]); 20960 const o = "on" + i 20961 , a = t[o]; 20962 a && (this.propEventSubscriptions[i] = this.on(i, a)) 20963 } 20964 this.prevMotionValues = Fte(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), 20965 this.handleChildMotionValue && this.handleChildMotionValue(), 20966 this.onUpdate && this.onUpdate(this) 20967 } 20968 getProps() { 20969 return this.props 20970 } 20971 getVariant(t) { 20972 return this.props.variants ? this.props.variants[t] : void 0 20973 } 20974 getDefaultTransition() { 20975 return this.props.transition 20976 } 20977 getTransformPagePoint() { 20978 return this.props.transformPagePoint 20979 } 20980 getClosestVariantNode() { 20981 return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0 20982 } 20983 addVariantChild(t) { 20984 const n = this.getClosestVariantNode(); 20985 if (n) 20986 return n.variantChildren && n.variantChildren.add(t), 20987 () => n.variantChildren.delete(t) 20988 } 20989 addValue(t, n) { 20990 const r = this.values.get(t); 20991 n !== r && (r && this.removeValue(t), 20992 this.bindToMotionValue(t, n), 20993 this.values.set(t, n), 20994 this.latestValues[t] = n.get()) 20995 } 20996 removeValue(t) { 20997 this.values.delete(t); 20998 const n = this.valueSubscriptions.get(t); 20999 n && (n(), 21000 this.valueSubscriptions.delete(t)), 21001 delete this.latestValues[t], 21002 this.removeValueFromRenderState(t, this.renderState) 21003 } 21004 hasValue(t) { 21005 return this.values.has(t) 21006 } 21007 getValue(t, n) { 21008 if (this.props.values && this.props.values[t]) 21009 return this.props.values[t]; 21010 let r = this.values.get(t); 21011 return r === void 0 && n !== void 0 && (r = lf(n === null ? void 0 : n, { 21012 owner: this 21013 }), 21014 this.addValue(t, r)), 21015 r 21016 } 21017 readValue(t, n) { 21018 var r; 21019 let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (r = this.getBaseTargetFromProps(this.props, t)) !== null && r !== void 0 ? r : this.readValueFromInstance(this.current, t, this.options); 21020 return i != null && (typeof i == "string" && (VB(i) || MB(i)) ? i = parseFloat(i) : !Lte(i) && Ta.test(n) && (i = LB(t, n)), 21021 this.setBaseTarget(t, An(i) ? i.get() : i)), 21022 An(i) ? i.get() : i 21023 } 21024 setBaseTarget(t, n) { 21025 this.baseTarget[t] = n 21026 } 21027 getBaseTarget(t) { 21028 var n; 21029 const {initial: r} = this.props; 21030 let i; 21031 if (typeof r == "string" || typeof r == "object") { 21032 const a = XP(this.props, r, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom); 21033 a && (i = a[t]) 21034 } 21035 if (r && i !== void 0) 21036 return i; 21037 const o = this.getBaseTargetFromProps(this.props, t); 21038 return o !== void 0 && !An(o) ? o : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t] 21039 } 21040 on(t, n) { 21041 return this.events[t] || (this.events[t] = new u_), 21042 this.events[t].add(n) 21043 } 21044 notify(t, ...n) { 21045 this.events[t] && this.events[t].notify(...n) 21046 } 21047} 21048class b3 extends Bte { 21049 constructor() { 21050 super(...arguments), 21051 this.KeyframeResolver = HB 21052 } 21053 sortInstanceNodePosition(t, n) { 21054 return t.compareDocumentPosition(n) & 2 ? 1 : -1 21055 } 21056 getBaseTargetFromProps(t, n) { 21057 return t.style ? t.style[n] : void 0 21058 } 21059 removeValueFromRenderState(t, {vars: n, style: r}) { 21060 delete n[t], 21061 delete r[t] 21062 } 21063 handleChildMotionValue() { 21064 this.childSubscription && (this.childSubscription(), 21065 delete this.childSubscription); 21066 const {children: t} = this.props; 21067 An(t) && (this.childSubscription = t.on("change", n => { 21068 this.current && (this.current.textContent = `${n}`) 21069 } 21070 )) 21071 } 21072} 21073function Vte(e) { 21074 return window.getComputedStyle(e) 21075} 21076class Ute extends b3 { 21077 constructor() { 21078 super(...arguments), 21079 this.type = "html", 21080 this.renderInstance = sB 21081 } 21082 readValueFromInstance(t, n) { 21083 if (Zs.has(n)) { 21084 const r = m_(n); 21085 return r && r.default || 0 21086 } else { 21087 const r = Vte(t) 21088 , i = (iB(n) ? r.getPropertyValue(n) : r[n]) || 0; 21089 return typeof i == "string" ? i.trim() : i 21090 } 21091 } 21092 measureInstanceViewportBox(t, {transformPagePoint: n}) { 21093 return l3(t, n) 21094 } 21095 build(t, n, r) { 21096 JP(t, n, r.transformTemplate) 21097 } 21098 scrapeMotionValuesFromProps(t, n, r) { 21099 return r_(t, n, r) 21100 } 21101} 21102class zte extends b3 { 21103 constructor() { 21104 super(...arguments), 21105 this.type = "svg", 21106 this.isSVGTag = !1, 21107 this.measureInstanceViewportBox = Ft 21108 } 21109 getBaseTargetFromProps(t, n) { 21110 return t[n] 21111 } 21112 readValueFromInstance(t, n) { 21113 if (Zs.has(n)) { 21114 const r = m_(n); 21115 return r && r.default || 0 21116 } 21117 return n = lB.has(n) ? n : KP(n), 21118 t.getAttribute(n) 21119 } 21120 scrapeMotionValuesFromProps(t, n, r) { 21121 return dB(t, n, r) 21122 } 21123 build(t, n, r) { 21124 e_(t, n, this.isSVGTag, r.transformTemplate) 21125 } 21126 renderInstance(t, n, r, i) { 21127 cB(t, n, r, i) 21128 } 21129 mount(t) { 21130 this.isSVGTag = n_(t.tagName), 21131 super.mount(t) 21132 } 21133} 21134const Wte = (e, t) => YP(e) ? new zte(t) : new Ute(t,{ 21135 allowProjection: e !== b.Fragment 21136}) 21137 , Hte = yZ({ 21138 ...pee, 21139 ...Rte, 21140 ...Pte, 21141 ...Dte 21142}, Wte) 21143 , Ee = MQ(Hte) 21144 , Ut = { 21145 initial: { 21146 opacity: 0 21147 }, 21148 animate: { 21149 opacity: 1, 21150 transition: { 21151 duration: .3 21152 } 21153 }, 21154 exit: { 21155 opacity: 0, 21156 transition: { 21157 duration: .2 21158 } 21159 } 21160} 21161 , It = { 21162 initial: { 21163 opacity: 0, 21164 y: 20 21165 }, 21166 animate: { 21167 opacity: 1, 21168 y: 0, 21169 transition: { 21170 duration: .4, 21171 ease: "easeOut" 21172 } 21173 }, 21174 exit: { 21175 opacity: 0, 21176 y: 20, 21177 transition: { 21178 duration: .3 21179 } 21180 } 21181} 21182 , Ac = { 21183 animate: { 21184 transition: { 21185 staggerChildren: .1 21186 } 21187 } 21188}; 21189function qte(e) { 21190 return Object.prototype.toString.call(e) === "[object Object]" 21191} 21192function OE(e) { 21193 return qte(e) || Array.isArray(e) 21194} 21195function Kte() { 21196 return !!(typeof window < "u" && window.document && window.document.createElement) 21197} 21198function b_(e, t) { 21199 const n = Object.keys(e) 21200 , r = Object.keys(t); 21201 if (n.length !== r.length) 21202 return !1; 21203 const i = JSON.stringify(Object.keys(e.breakpoints || {})) 21204 , o = JSON.stringify(Object.keys(t.breakpoints || {})); 21205 return i !== o ? !1 : n.every(a => { 21206 const s = e[a] 21207 , l = t[a]; 21208 return typeof s == "function" ? `${s}` == `${l}` : !OE(s) || !OE(l) ? s === l : b_(s, l) 21209 } 21210 ) 21211} 21212function AE(e) { 21213 return e.concat().sort( (t, n) => t.name > n.name ? 1 : -1).map(t => t.options) 21214} 21215function Gte(e, t) { 21216 if (e.length !== t.length) 21217 return !1; 21218 const n = AE(e) 21219 , r = AE(t); 21220 return n.every( (i, o) => { 21221 const a = r[o]; 21222 return b_(i, a) 21223 } 21224 ) 21225} 21226function w_(e) { 21227 return typeof e == "number" 21228} 21229function Dw(e) { 21230 return typeof e == "string" 21231} 21232function nv(e) { 21233 return typeof e == "boolean" 21234} 21235function EE(e) { 21236 return Object.prototype.toString.call(e) === "[object Object]" 21237} 21238function At(e) { 21239 return Math.abs(e) 21240} 21241function S_(e) { 21242 return Math.sign(e) 21243} 21244function Rd(e, t) { 21245 return At(e - t) 21246} 21247function Yte(e, t) { 21248 if (e === 0 || t === 0 || At(e) <= At(t)) 21249 return 0; 21250 const n = Rd(At(e), At(t)); 21251 return At(n / e) 21252} 21253function df(e) { 21254 return ff(e).map(Number) 21255} 21256function ui(e) { 21257 return e[Mh(e)] 21258} 21259function Mh(e) { 21260 return Math.max(0, e.length - 1) 21261} 21262function P_(e, t) { 21263 return t === Mh(e) 21264} 21265function jE(e, t=0) { 21266 return Array.from(Array(e), (n, r) => t + r) 21267} 21268function ff(e) { 21269 return Object.keys(e) 21270} 21271function w3(e, t) { 21272 return [e, t].reduce( (n, r) => (ff(r).forEach(i => { 21273 const o = n[i] 21274 , a = r[i] 21275 , s = EE(o) && EE(a); 21276 n[i] = s ? w3(o, a) : a 21277 } 21278 ), 21279 n), {}) 21280} 21281function Iw(e, t) { 21282 return typeof t.MouseEvent < "u" && e instanceof t.MouseEvent 21283} 21284function Xte(e, t) { 21285 const n = { 21286 start: r, 21287 center: i, 21288 end: o 21289 }; 21290 function r() { 21291 return 0 21292 } 21293 function i(l) { 21294 return o(l) / 2 21295 } 21296 function o(l) { 21297 return t - l 21298 } 21299 function a(l, c) { 21300 return Dw(e) ? n[e](l) : e(t, l, c) 21301 } 21302 return { 21303 measure: a 21304 } 21305} 21306function hf() { 21307 let e = []; 21308 function t(i, o, a, s={ 21309 passive: !0 21310 }) { 21311 let l; 21312 if ("addEventListener"in i) 21313 i.addEventListener(o, a, s), 21314 l = () => i.removeEventListener(o, a, s); 21315 else { 21316 const c = i; 21317 c.addListener(a), 21318 l = () => c.removeListener(a) 21319 } 21320 return e.push(l), 21321 r 21322 } 21323 function n() { 21324 e = e.filter(i => i()) 21325 } 21326 const r = { 21327 add: t, 21328 clear: n 21329 }; 21330 return r 21331} 21332function Qte(e, t, n, r) { 21333 const i = hf() 21334 , o = 1e3 / 60; 21335 let a = null 21336 , s = 0 21337 , l = 0; 21338 function c() { 21339 i.add(e, "visibilitychange", () => { 21340 e.hidden && g() 21341 } 21342 ) 21343 } 21344 function u() { 21345 p(), 21346 i.clear() 21347 } 21348 function d(x) { 21349 if (!l) 21350 return; 21351 a || (a = x); 21352 const v = x - a; 21353 for (a = x, 21354 s += v; s >= o; ) 21355 n(o), 21356 s -= o; 21357 const y = s / o; 21358 r(y), 21359 l && t.requestAnimationFrame(d) 21360 } 21361 function f() { 21362 l || (l = t.requestAnimationFrame(d)) 21363 } 21364 function p() { 21365 t.cancelAnimationFrame(l), 21366 a = null, 21367 s = 0, 21368 l = 0 21369 } 21370 function g() { 21371 a = null, 21372 s = 0 21373 } 21374 return { 21375 init: c, 21376 destroy: u, 21377 start: f, 21378 stop: p, 21379 update: () => n(o), 21380 render: r 21381 } 21382} 21383function Zte(e, t) { 21384 const n = t === "rtl" 21385 , r = e === "y" 21386 , i = r ? "y" : "x" 21387 , o = r ? "x" : "y" 21388 , a = !r && n ? -1 : 1 21389 , s = u() 21390 , l = d(); 21391 function c(g) { 21392 const {height: m, width: x} = g; 21393 return r ? m : x 21394 } 21395 function u() { 21396 return r ? "top" : n ? "right" : "left" 21397 } 21398 function d() { 21399 return r ? "bottom" : n ? "left" : "right" 21400 } 21401 function f(g) { 21402 return g * a 21403 } 21404 return { 21405 scroll: i, 21406 cross: o, 21407 startEdge: s, 21408 endEdge: l, 21409 measureSize: c, 21410 direction: f 21411 } 21412} 21413function Vs(e=0, t=0) { 21414 const n = At(e - t); 21415 function r(c) { 21416 return c < e 21417 } 21418 function i(c) { 21419 return c > t 21420 } 21421 function o(c) { 21422 return r(c) || i(c) 21423 } 21424 function a(c) { 21425 return o(c) ? r(c) ? e : t : c 21426 } 21427 function s(c) { 21428 return n ? c - n * Math.ceil((c - t) / n) : c 21429 } 21430 return { 21431 length: n, 21432 max: t, 21433 min: e, 21434 constrain: a, 21435 reachedAny: o, 21436 reachedMax: i, 21437 reachedMin: r, 21438 removeOffset: s 21439 } 21440} 21441function S3(e, t, n) { 21442 const {constrain: r} = Vs(0, e) 21443 , i = e + 1; 21444 let o = a(t); 21445 function a(f) { 21446 return n ? At((i + f) % i) : r(f) 21447 } 21448 function s() { 21449 return o 21450 } 21451 function l(f) { 21452 return o = a(f), 21453 d 21454 } 21455 function c(f) { 21456 return u().set(s() + f) 21457 } 21458 function u() { 21459 return S3(e, s(), n) 21460 } 21461 const d = { 21462 get: s, 21463 set: l, 21464 add: c, 21465 clone: u 21466 }; 21467 return d 21468} 21469function Jte(e, t, n, r, i, o, a, s, l, c, u, d, f, p, g, m, x, v, y) { 21470 const {cross: w, direction: P} = e 21471 , S = ["INPUT", "SELECT", "TEXTAREA"] 21472 , _ = { 21473 passive: !1 21474 } 21475 , T = hf()
vendor: 17,921 bytes, lines 21476-22261
21476 , C = hf() 21477 , O = Vs(50, 225).constrain(p.measure(20)) 21478 , A = { 21479 mouse: 300, 21480 touch: 400 21481 } 21482 , E = { 21483 mouse: 500, 21484 touch: 600 21485 } 21486 , j = g ? 43 : 25; 21487 let $ = !1 21488 , R = 0 21489 , L = 0 21490 , B = !1 21491 , U = !1 21492 , N = !1 21493 , D = !1; 21494 function W(F) { 21495 if (!y) 21496 return; 21497 function he(Ne) { 21498 (nv(y) || y(F, Ne)) && Oe(Ne) 21499 } 21500 const de = t; 21501 T.add(de, "dragstart", Ne => Ne.preventDefault(), _).add(de, "touchmove", () => {} 21502 , _).add(de, "touchend", () => {} 21503 ).add(de, "touchstart", he).add(de, "mousedown", he).add(de, "touchcancel", ge).add(de, "contextmenu", ge).add(de, "click", Y, !0) 21504 } 21505 function K() { 21506 T.clear(), 21507 C.clear() 21508 } 21509 function G() { 21510 const F = D ? n : t; 21511 C.add(F, "touchmove", ie, _).add(F, "touchend", ge).add(F, "mousemove", ie, _).add(F, "mouseup", ge) 21512 } 21513 function ae(F) { 21514 const he = F.nodeName || ""; 21515 return S.includes(he) 21516 } 21517 function ve() { 21518 return (g ? E : A)[D ? "mouse" : "touch"] 21519 } 21520 function je(F, he) { 21521 const de = d.add(S_(F) * -1) 21522 , Ne = u.byDistance(F, !g).distance; 21523 return g || At(F) < O ? Ne : x && he ? Ne * .5 : u.byIndex(de.get(), 0).distance 21524 } 21525 function Oe(F) { 21526 const he = Iw(F, r); 21527 D = he, 21528 N = g && he && !F.buttons && $, 21529 $ = Rd(i.get(), a.get()) >= 2, 21530 !(he && F.button !== 0) && (ae(F.target) || (B = !0, 21531 o.pointerDown(F), 21532 c.useFriction(0).useDuration(0), 21533 i.set(a), 21534 G(), 21535 R = o.readPoint(F), 21536 L = o.readPoint(F, w), 21537 f.emit("pointerDown"))) 21538 } 21539 function ie(F) { 21540 if (!Iw(F, r) && F.touches.length >= 2) 21541 return ge(F); 21542 const de = o.readPoint(F) 21543 , Ne = o.readPoint(F, w) 21544 , Be = Rd(de, R) 21545 , Qe = Rd(Ne, L); 21546 if (!U && !D && (!F.cancelable || (U = Be > Qe, 21547 !U))) 21548 return ge(F); 21549 const M = o.pointerMove(F); 21550 Be > m && (N = !0), 21551 c.useFriction(.3).useDuration(.75), 21552 s.start(), 21553 i.add(P(M)), 21554 F.preventDefault() 21555 } 21556 function ge(F) { 21557 const de = u.byDistance(0, !1).index !== d.get() 21558 , Ne = o.pointerUp(F) * ve() 21559 , Be = je(P(Ne), de) 21560 , Qe = Yte(Ne, Be) 21561 , M = j - 10 * Qe 21562 , z = v + Qe / 50; 21563 U = !1, 21564 B = !1, 21565 C.clear(), 21566 c.useDuration(M).useFriction(z), 21567 l.distance(Be, !g), 21568 D = !1, 21569 f.emit("pointerUp") 21570 } 21571 function Y(F) { 21572 N && (F.stopPropagation(), 21573 F.preventDefault(), 21574 N = !1) 21575 } 21576 function ne() { 21577 return B 21578 } 21579 return { 21580 init: W, 21581 destroy: K, 21582 pointerDown: ne 21583 } 21584} 21585function ene(e, t) { 21586 let r, i; 21587 function o(d) { 21588 return d.timeStamp 21589 } 21590 function a(d, f) { 21591 const g = `client${(f || e.scroll) === "x" ? "X" : "Y"}`; 21592 return (Iw(d, t) ? d : d.touches[0])[g] 21593 } 21594 function s(d) { 21595 return r = d, 21596 i = d, 21597 a(d) 21598 } 21599 function l(d) { 21600 const f = a(d) - a(i) 21601 , p = o(d) - o(r) > 170; 21602 return i = d, 21603 p && (r = d), 21604 f 21605 } 21606 function c(d) { 21607 if (!r || !i) 21608 return 0; 21609 const f = a(i) - a(r) 21610 , p = o(d) - o(r) 21611 , g = o(d) - o(i) > 170 21612 , m = f / p; 21613 return p && !g && At(m) > .1 ? m : 0 21614 } 21615 return { 21616 pointerDown: s, 21617 pointerMove: l, 21618 pointerUp: c, 21619 readPoint: a 21620 } 21621} 21622function tne() { 21623 function e(n) { 21624 const {offsetTop: r, offsetLeft: i, offsetWidth: o, offsetHeight: a} = n; 21625 return { 21626 top: r, 21627 right: i + o, 21628 bottom: r + a, 21629 left: i, 21630 width: o, 21631 height: a 21632 } 21633 } 21634 return { 21635 measure: e 21636 } 21637} 21638function nne(e) { 21639 function t(r) { 21640 return e * (r / 100) 21641 } 21642 return { 21643 measure: t 21644 } 21645} 21646function rne(e, t, n, r, i, o, a) { 21647 const s = [e].concat(r); 21648 let l, c, u = [], d = !1; 21649 function f(x) { 21650 return i.measureSize(a.measure(x)) 21651 } 21652 function p(x) { 21653 if (!o) 21654 return; 21655 c = f(e), 21656 u = r.map(f); 21657 function v(y) { 21658 for (const w of y) { 21659 if (d) 21660 return; 21661 const P = w.target === e 21662 , S = r.indexOf(w.target) 21663 , _ = P ? c : u[S] 21664 , T = f(P ? e : r[S]); 21665 if (At(T - _) >= .5) { 21666 x.reInit(), 21667 t.emit("resize"); 21668 break 21669 } 21670 } 21671 } 21672 l = new ResizeObserver(y => { 21673 (nv(o) || o(x, y)) && v(y) 21674 } 21675 ), 21676 n.requestAnimationFrame( () => { 21677 s.forEach(y => l.observe(y)) 21678 } 21679 ) 21680 } 21681 function g() { 21682 d = !0, 21683 l && l.disconnect() 21684 } 21685 return { 21686 init: p, 21687 destroy: g 21688 } 21689} 21690function ine(e, t, n, r, i, o) { 21691 let a = 0 21692 , s = 0 21693 , l = i 21694 , c = o 21695 , u = e.get() 21696 , d = 0; 21697 function f(_) { 21698 const T = _ / 1e3 21699 , C = l * T 21700 , O = r.get() - e.get() 21701 , A = !l; 21702 let E = 0; 21703 return A ? (a = 0, 21704 n.set(r), 21705 e.set(r), 21706 E = O) : (n.set(e), 21707 a += O / C, 21708 a *= c, 21709 u += a, 21710 e.add(a * T), 21711 E = u - d), 21712 s = S_(E), 21713 d = u, 21714 S 21715 } 21716 function p() { 21717 const _ = r.get() - t.get(); 21718 return At(_) < .001 21719 } 21720 function g() { 21721 return l 21722 } 21723 function m() { 21724 return s 21725 } 21726 function x() { 21727 return a 21728 } 21729 function v() { 21730 return w(i) 21731 } 21732 function y() { 21733 return P(o) 21734 } 21735 function w(_) { 21736 return l = _, 21737 S 21738 } 21739 function P(_) { 21740 return c = _, 21741 S 21742 } 21743 const S = { 21744 direction: m, 21745 duration: g, 21746 velocity: x, 21747 seek: f, 21748 settled: p, 21749 useBaseFriction: y, 21750 useBaseDuration: v, 21751 useFriction: P, 21752 useDuration: w 21753 }; 21754 return S 21755} 21756function one(e, t, n, r, i) { 21757 const o = i.measure(10) 21758 , a = i.measure(50) 21759 , s = Vs(.1, .99); 21760 let l = !1; 21761 function c() { 21762 return !(l || !e.reachedAny(n.get()) || !e.reachedAny(t.get())) 21763 } 21764 function u(p) { 21765 if (!c()) 21766 return; 21767 const g = e.reachedMin(t.get()) ? "min" : "max" 21768 , m = At(e[g] - t.get()) 21769 , x = n.get() - t.get() 21770 , v = s.constrain(m / a); 21771 n.subtract(x * v), 21772 !p && At(x) < o && (n.set(e.constrain(n.get())), 21773 r.useDuration(25).useBaseFriction()) 21774 } 21775 function d(p) { 21776 l = !p 21777 } 21778 return { 21779 shouldConstrain: c, 21780 constrain: u, 21781 toggleActive: d 21782 } 21783} 21784function ane(e, t, n, r, i) { 21785 const o = Vs(-t + e, 0) 21786 , a = d() 21787 , s = u() 21788 , l = f(); 21789 function c(g, m) { 21790 return Rd(g, m) < 1 21791 } 21792 function u() { 21793 const g = a[0] 21794 , m = ui(a) 21795 , x = a.lastIndexOf(g) 21796 , v = a.indexOf(m) + 1; 21797 return Vs(x, v) 21798 } 21799 function d() { 21800 return n.map( (g, m) => { 21801 const {min: x, max: v} = o 21802 , y = o.constrain(g) 21803 , w = !m 21804 , P = P_(n, m); 21805 return w ? v : P || c(x, y) ? x : c(v, y) ? v : y 21806 } 21807 ).map(g => parseFloat(g.toFixed(3))) 21808 } 21809 function f() { 21810 if (t <= e + i) 21811 return [o.max]; 21812 if (r === "keepSnaps") 21813 return a; 21814 const {min: g, max: m} = s; 21815 return a.slice(g, m) 21816 } 21817 return { 21818 snapsContained: l, 21819 scrollContainLimit: s 21820 } 21821} 21822function sne(e, t, n) { 21823 const r = t[0] 21824 , i = n ? r - e : ui(t); 21825 return { 21826 limit: Vs(i, r) 21827 } 21828} 21829function lne(e, t, n, r) { 21830 const o = t.min + .1 21831 , a = t.max + .1 21832 , {reachedMin: s, reachedMax: l} = Vs(o, a); 21833 function c(f) { 21834 return f === 1 ? l(n.get()) : f === -1 ? s(n.get()) : !1 21835 } 21836 function u(f) { 21837 if (!c(f)) 21838 return; 21839 const p = e * (f * -1); 21840 r.forEach(g => g.add(p)) 21841 } 21842 return { 21843 loop: u 21844 } 21845} 21846function cne(e) { 21847 const {max: t, length: n} = e; 21848 function r(o) { 21849 const a = o - t; 21850 return n ? a / -n : 0 21851 } 21852 return { 21853 get: r 21854 } 21855} 21856function une(e, t, n, r, i) { 21857 const {startEdge: o, endEdge: a} = e 21858 , {groupSlides: s} = i 21859 , l = d().map(t.measure) 21860 , c = f() 21861 , u = p(); 21862 function d() { 21863 return s(r).map(m => ui(m)[a] - m[0][o]).map(At) 21864 } 21865 function f() { 21866 return r.map(m => n[o] - m[o]).map(m => -At(m)) 21867 } 21868 function p() { 21869 return s(c).map(m => m[0]).map( (m, x) => m + l[x]) 21870 } 21871 return { 21872 snaps: c, 21873 snapsAligned: u 21874 } 21875} 21876function dne(e, t, n, r, i, o) { 21877 const {groupSlides: a} = i 21878 , {min: s, max: l} = r 21879 , c = u(); 21880 function u() { 21881 const f = a(o) 21882 , p = !e || t === "keepSnaps"; 21883 return n.length === 1 ? [o] : p ? f : f.slice(s, l).map( (g, m, x) => { 21884 const v = !m 21885 , y = P_(x, m); 21886 if (v) { 21887 const w = ui(x[0]) + 1; 21888 return jE(w) 21889 } 21890 if (y) { 21891 const w = Mh(o) - ui(x)[0] + 1; 21892 return jE(w, ui(x)[0]) 21893 } 21894 return g 21895 } 21896 ) 21897 } 21898 return { 21899 slideRegistry: c 21900 } 21901} 21902function fne(e, t, n, r, i) { 21903 const {reachedAny: o, removeOffset: a, constrain: s} = r; 21904 function l(g) { 21905 return g.concat().sort( (m, x) => At(m) - At(x))[0] 21906 } 21907 function c(g) { 21908 const m = e ? a(g) : s(g) 21909 , x = t.map( (y, w) => ({ 21910 diff: u(y - m, 0), 21911 index: w 21912 })).sort( (y, w) => At(y.diff) - At(w.diff)) 21913 , {index: v} = x[0]; 21914 return { 21915 index: v, 21916 distance: m 21917 } 21918 } 21919 function u(g, m) { 21920 const x = [g, g + n, g - n]; 21921 if (!e) 21922 return g; 21923 if (!m) 21924 return l(x); 21925 const v = x.filter(y => S_(y) === m); 21926 return v.length ? l(v) : ui(x) - n 21927 } 21928 function d(g, m) { 21929 const x = t[g] - i.get() 21930 , v = u(x, m); 21931 return { 21932 index: g, 21933 distance: v 21934 } 21935 } 21936 function f(g, m) { 21937 const x = i.get() + g 21938 , {index: v, distance: y} = c(x) 21939 , w = !e && o(x); 21940 if (!m || w) 21941 return { 21942 index: v, 21943 distance: g 21944 }; 21945 const P = t[v] - y 21946 , S = g + u(P, 0); 21947 return { 21948 index: v, 21949 distance: S 21950 } 21951 } 21952 return { 21953 byDistance: f, 21954 byIndex: d, 21955 shortcut: u 21956 } 21957} 21958function hne(e, t, n, r, i, o, a) { 21959 function s(d) { 21960 const f = d.distance 21961 , p = d.index !== t.get(); 21962 o.add(f), 21963 f && (r.duration() ? e.start() : (e.update(), 21964 e.render(1), 21965 e.update())), 21966 p && (n.set(t.get()), 21967 t.set(d.index), 21968 a.emit("select")) 21969 } 21970 function l(d, f) { 21971 const p = i.byDistance(d, f); 21972 s(p) 21973 } 21974 function c(d, f) { 21975 const p = t.clone().set(d) 21976 , g = i.byIndex(p.get(), f); 21977 s(g) 21978 } 21979 return { 21980 distance: l, 21981 index: c 21982 } 21983} 21984function pne(e, t, n, r, i, o, a, s) { 21985 const l = { 21986 passive: !0, 21987 capture: !0 21988 }; 21989 let c = 0; 21990 function u(p) { 21991 if (!s) 21992 return; 21993 function g(m) { 21994 if (new Date().getTime() - c > 10) 21995 return; 21996 a.emit("slideFocusStart"), 21997 e.scrollLeft = 0; 21998 const y = n.findIndex(w => w.includes(m)); 21999 w_(y) && (i.useDuration(0), 22000 r.index(y, 0), 22001 a.emit("slideFocus")) 22002 } 22003 o.add(document, "keydown", d, !1), 22004 t.forEach( (m, x) => { 22005 o.add(m, "focus", v => { 22006 (nv(s) || s(p, v)) && g(x) 22007 } 22008 , l) 22009 } 22010 ) 22011 } 22012 function d(p) { 22013 p.code === "Tab" && (c = new Date().getTime()) 22014 } 22015 return { 22016 init: u 22017 } 22018} 22019function cd(e) { 22020 let t = e; 22021 function n() { 22022 return t 22023 } 22024 function r(l) { 22025 t = a(l) 22026 } 22027 function i(l) { 22028 t += a(l) 22029 } 22030 function o(l) { 22031 t -= a(l) 22032 } 22033 function a(l) { 22034 return w_(l) ? l : l.get() 22035 } 22036 return { 22037 get: n, 22038 set: r, 22039 add: i, 22040 subtract: o 22041 } 22042} 22043function P3(e, t) { 22044 const n = e.scroll === "x" ? o : a 22045 , r = t.style; 22046 let i = !1; 22047 function o(d) { 22048 return `translate3d(${d}px,0px,0px)` 22049 } 22050 function a(d) { 22051 return `translate3d(0px,${d}px,0px)` 22052 } 22053 function s(d) { 22054 i || (r.transform = n(e.direction(d))) 22055 } 22056 function l(d) { 22057 i = !d 22058 } 22059 function c() { 22060 i || (r.transform = "", 22061 t.getAttribute("style") || t.removeAttribute("style")) 22062 } 22063 return { 22064 clear: c, 22065 to: s, 22066 toggleActive: l 22067 } 22068} 22069function mne(e, t, n, r, i, o, a, s, l) { 22070 const u = df(i) 22071 , d = df(i).reverse() 22072 , f = v().concat(y()); 22073 function p(T, C) { 22074 return T.reduce( (O, A) => O - i[A], C) 22075 } 22076 function g(T, C) { 22077 return T.reduce( (O, A) => p(O, C) > 0 ? O.concat([A]) : O, []) 22078 } 22079 function m(T) { 22080 return o.map( (C, O) => ({ 22081 start: C - r[O] + .5 + T, 22082 end: C + t - .5 + T 22083 })) 22084 } 22085 function x(T, C, O) { 22086 const A = m(C); 22087 return T.map(E => { 22088 const j = O ? 0 : -n 22089 , $ = O ? n : 0 22090 , R = O ? "end" : "start" 22091 , L = A[E][R]; 22092 return { 22093 index: E, 22094 loopPoint: L, 22095 slideLocation: cd(-1), 22096 translate: P3(e, l[E]), 22097 target: () => s.get() > L ? j : $ 22098 } 22099 } 22100 ) 22101 } 22102 function v() { 22103 const T = a[0] 22104 , C = g(d, T); 22105 return x(C, n, !1) 22106 } 22107 function y() { 22108 const T = t - a[0] - 1 22109 , C = g(u, T); 22110 return x(C, -n, !0) 22111 } 22112 function w() { 22113 return f.every( ({index: T}) => { 22114 const C = u.filter(O => O !== T); 22115 return p(C, t) <= .1 22116 } 22117 ) 22118 } 22119 function P() { 22120 f.forEach(T => { 22121 const {target: C, translate: O, slideLocation: A} = T 22122 , E = C(); 22123 E !== A.get() && (O.to(E), 22124 A.set(E)) 22125 } 22126 ) 22127 } 22128 function S() { 22129 f.forEach(T => T.translate.clear()) 22130 } 22131 return { 22132 canLoop: w, 22133 clear: S, 22134 loop: P, 22135 loopPoints: f 22136 } 22137} 22138function gne(e, t, n) { 22139 let r, i = !1; 22140 function o(l) { 22141 if (!n) 22142 return; 22143 function c(u) { 22144 for (const d of u) 22145 if (d.type === "childList") { 22146 l.reInit(), 22147 t.emit("slidesChanged"); 22148 break 22149 } 22150 } 22151 r = new MutationObserver(u => { 22152 i || (nv(n) || n(l, u)) && c(u) 22153 } 22154 ), 22155 r.observe(e, { 22156 childList: !0 22157 }) 22158 } 22159 function a() { 22160 r && r.disconnect(), 22161 i = !0 22162 } 22163 return { 22164 init: o, 22165 destroy: a 22166 } 22167} 22168function yne(e, t, n, r) { 22169 const i = {}; 22170 let o = null, a = null, s, l = !1; 22171 function c() { 22172 s = new IntersectionObserver(g => { 22173 l || (g.forEach(m => { 22174 const x = t.indexOf(m.target); 22175 i[x] = m 22176 } 22177 ), 22178 o = null, 22179 a = null, 22180 n.emit("slidesInView")) 22181 } 22182 ,{ 22183 root: e.parentElement, 22184 threshold: r 22185 }), 22186 t.forEach(g => s.observe(g)) 22187 } 22188 function u() { 22189 s && s.disconnect(), 22190 l = !0 22191 } 22192 function d(g) { 22193 return ff(i).reduce( (m, x) => { 22194 const v = parseInt(x) 22195 , {isIntersecting: y} = i[v]; 22196 return (g && y || !g && !y) && m.push(v), 22197 m 22198 } 22199 , []) 22200 } 22201 function f(g=!0) { 22202 if (g && o) 22203 return o; 22204 if (!g && a) 22205 return a; 22206 const m = d(g); 22207 return g && (o = m), 22208 g || (a = m), 22209 m 22210 } 22211 return { 22212 init: c, 22213 destroy: u, 22214 get: f 22215 } 22216} 22217function vne(e, t, n, r, i, o) { 22218 const {measureSize: a, startEdge: s, endEdge: l} = e 22219 , c = n[0] && i 22220 , u = g() 22221 , d = m() 22222 , f = n.map(a) 22223 , p = x(); 22224 function g() { 22225 if (!c) 22226 return 0; 22227 const y = n[0]; 22228 return At(t[s] - y[s]) 22229 } 22230 function m() { 22231 if (!c) 22232 return 0; 22233 const y = o.getComputedStyle(ui(r)); 22234 return parseFloat(y.getPropertyValue(`margin-${l}`)) 22235 } 22236 function x() { 22237 return n.map( (y, w, P) => { 22238 const S = !w 22239 , _ = P_(P, w); 22240 return S ? f[w] + u : _ ? f[w] + d : P[w + 1][s] - y[s] 22241 } 22242 ).map(At) 22243 } 22244 return { 22245 slideSizes: f, 22246 slideSizesWithGaps: p, 22247 startGap: u, 22248 endGap: d 22249 } 22250} 22251function xne(e, t, n, r, i, o, a, s, l) { 22252 const {startEdge: c, endEdge: u, direction: d} = e 22253 , f = w_(n); 22254 function p(v, y) { 22255 return df(v).filter(w => w % y === 0).map(w => v.slice(w, w + y)) 22256 } 22257 function g(v) { 22258 return v.length ? df(v).reduce( (y, w, P) => { 22259 const S = ui(y) || 0 22260 , _ = S === 0 22261 , T = w === Mh(v)
vendor: 3,937 bytes, lines 22262-22385
22262 , C = i[c] - o[S][c] 22263 , O = i[c] - o[w][u] 22264 , A = !r && _ ? d(a) : 0 22265 , E = !r && T ? d(s) : 0 22266 , j = At(O - E - (C + A)); 22267 return P && j > t + l && y.push(w), 22268 T && y.push(v.length), 22269 y 22270 } 22271 , []).map( (y, w, P) => { 22272 const S = Math.max(P[w - 1] || 0); 22273 return v.slice(S, y) 22274 } 22275 ) : [] 22276 } 22277 function m(v) { 22278 return f ? p(v, n) : g(v) 22279 } 22280 return { 22281 groupSlides: m 22282 } 22283} 22284function bne(e, t, n, r, i, o, a) { 22285 const {align: s, axis: l, direction: c, startIndex: u, loop: d, duration: f, dragFree: p, dragThreshold: g, inViewThreshold: m, slidesToScroll: x, skipSnaps: v, containScroll: y, watchResize: w, watchSlides: P, watchDrag: S, watchFocus: _} = o 22286 , T = 2 22287 , C = tne() 22288 , O = C.measure(t) 22289 , A = n.map(C.measure) 22290 , E = Zte(l, c) 22291 , j = E.measureSize(O) 22292 , $ = nne(j) 22293 , R = Xte(s, j) 22294 , L = !d && !!y 22295 , B = d || !!y 22296 , {slideSizes: U, slideSizesWithGaps: N, startGap: D, endGap: W} = vne(E, O, A, n, B, i) 22297 , K = xne(E, j, x, d, O, A, D, W, T) 22298 , {snaps: G, snapsAligned: ae} = une(E, R, O, A, K) 22299 , ve = -ui(G) + ui(N) 22300 , {snapsContained: je, scrollContainLimit: Oe} = ane(j, ve, ae, y, T) 22301 , ie = L ? je : ae 22302 , {limit: ge} = sne(ve, ie, d) 22303 , Y = S3(Mh(ie), u, d) 22304 , ne = Y.clone() 22305 , Q = df(n) 22306 , F = ({dragHandler: wr, scrollBody: Ya, scrollBounds: Cu, options: {loop: Xa}}, Ou) => { 22307 Xa || Cu.constrain(wr.pointerDown()), 22308 Ya.seek(Ou) 22309 } 22310 , he = ({scrollBody: wr, translate: Ya, location: Cu, offsetLocation: Xa, scrollLooper: Ou, slideLooper: ep, dragHandler: $7, animation: L7, eventHandler: CC, scrollBounds: F7, options: {loop: OC}}, AC) => { 22311 const EC = wr.settled() 22312 , B7 = !F7.shouldConstrain() 22313 , jC = OC ? EC : EC && B7; 22314 jC && !$7.pointerDown() && (L7.stop(), 22315 CC.emit("settle")), 22316 jC || CC.emit("scroll"); 22317 const V7 = Cu.get() * AC + M.get() * (1 - AC); 22318 Xa.set(V7), 22319 OC && (Ou.loop(wr.direction()), 22320 ep.loop()), 22321 Ya.to(Xa.get()) 22322 } 22323 , de = Qte(r, i, wr => F(Tu, wr), wr => he(Tu, wr)) 22324 , Ne = .68 22325 , Be = ie[Y.get()] 22326 , Qe = cd(Be) 22327 , M = cd(Be) 22328 , z = cd(Be) 22329 , H = cd(Be) 22330 , re = ine(Qe, z, M, H, f, Ne) 22331 , te = fne(d, ie, ve, ge, H) 22332 , Z = hne(de, Y, ne, re, te, H, a) 22333 , xe = cne(ge) 22334 , Ae = hf() 22335 , Wt = yne(t, n, a, m) 22336 , {slideRegistry: Lt} = dne(L, y, ie, Oe, K, Q) 22337 , Zi = pne(e, n, Lt, Z, re, Ae, a, _) 22338 , Tu = { 22339 ownerDocument: r, 22340 ownerWindow: i, 22341 eventHandler: a, 22342 containerRect: O, 22343 slideRects: A, 22344 animation: de, 22345 axis: E, 22346 dragHandler: Jte(E, e, r, i, H, ene(E, i), Qe, de, Z, re, te, Y, a, $, p, g, v, Ne, S), 22347 eventStore: Ae, 22348 percentOfView: $, 22349 index: Y, 22350 indexPrevious: ne, 22351 limit: ge, 22352 location: Qe, 22353 offsetLocation: z, 22354 previousLocation: M, 22355 options: o, 22356 resizeHandler: rne(t, a, i, n, E, w, C), 22357 scrollBody: re, 22358 scrollBounds: one(ge, z, H, re, $), 22359 scrollLooper: lne(ve, ge, z, [Qe, z, M, H]), 22360 scrollProgress: xe, 22361 scrollSnapList: ie.map(xe.get), 22362 scrollSnaps: ie, 22363 scrollTarget: te, 22364 scrollTo: Z, 22365 slideLooper: mne(E, j, ve, U, N, G, ie, z, n), 22366 slideFocus: Zi, 22367 slidesHandler: gne(t, a, P), 22368 slidesInView: Wt, 22369 slideIndexes: Q, 22370 slideRegistry: Lt, 22371 slidesToScroll: K, 22372 target: H, 22373 translate: P3(E, t) 22374 }; 22375 return Tu 22376} 22377function wne() { 22378 let e = {}, t; 22379 function n(c) { 22380 t = c 22381 } 22382 function r(c) { 22383 return e[c] || [] 22384 } 22385 function i(c) {
vendor: 5,250 bytes, lines 22386-22607
22386 return r(c).forEach(u => u(t, c)), 22387 l 22388 } 22389 function o(c, u) { 22390 return e[c] = r(c).concat([u]), 22391 l 22392 } 22393 function a(c, u) { 22394 return e[c] = r(c).filter(d => d !== u), 22395 l 22396 } 22397 function s() { 22398 e = {} 22399 } 22400 const l = { 22401 init: n, 22402 emit: i, 22403 off: a, 22404 on: o, 22405 clear: s 22406 }; 22407 return l 22408} 22409const Sne = { 22410 align: "center", 22411 axis: "x", 22412 container: null, 22413 slides: null, 22414 containScroll: "trimSnaps", 22415 direction: "ltr", 22416 slidesToScroll: 1, 22417 inViewThreshold: 0, 22418 breakpoints: {}, 22419 dragFree: !1, 22420 dragThreshold: 10, 22421 loop: !1, 22422 skipSnaps: !1, 22423 duration: 25, 22424 startIndex: 0, 22425 active: !0, 22426 watchDrag: !0, 22427 watchResize: !0, 22428 watchSlides: !0, 22429 watchFocus: !0 22430}; 22431function Pne(e) { 22432 function t(o, a) { 22433 return w3(o, a || {}) 22434 } 22435 function n(o) { 22436 const a = o.breakpoints || {} 22437 , s = ff(a).filter(l => e.matchMedia(l).matches).map(l => a[l]).reduce( (l, c) => t(l, c), {}); 22438 return t(o, s) 22439 } 22440 function r(o) { 22441 return o.map(a => ff(a.breakpoints || {})).reduce( (a, s) => a.concat(s), []).map(e.matchMedia) 22442 } 22443 return { 22444 mergeOptions: t, 22445 optionsAtMedia: n, 22446 optionsMediaQueries: r 22447 } 22448} 22449function _ne(e) { 22450 let t = []; 22451 function n(o, a) { 22452 return t = a.filter( ({options: s}) => e.optionsAtMedia(s).active !== !1), 22453 t.forEach(s => s.init(o, e)), 22454 a.reduce( (s, l) => Object.assign(s, { 22455 [l.name]: l 22456 }), {}) 22457 } 22458 function r() { 22459 t = t.filter(o => o.destroy()) 22460 } 22461 return { 22462 init: n, 22463 destroy: r 22464 } 22465} 22466function tg(e, t, n) { 22467 const r = e.ownerDocument 22468 , i = r.defaultView 22469 , o = Pne(i) 22470 , a = _ne(o) 22471 , s = hf() 22472 , l = wne() 22473 , {mergeOptions: c, optionsAtMedia: u, optionsMediaQueries: d} = o 22474 , {on: f, off: p, emit: g} = l 22475 , m = E; 22476 let x = !1, v, y = c(Sne, tg.globalOptions), w = c(y), P = [], S, _, T; 22477 function C() { 22478 const {container: Q, slides: F} = w; 22479 _ = (Dw(Q) ? e.querySelector(Q) : Q) || e.children[0]; 22480 const de = Dw(F) ? _.querySelectorAll(F) : F; 22481 T = [].slice.call(de || _.children) 22482 } 22483 function O(Q) { 22484 const F = bne(e, _, T, r, i, Q, l); 22485 if (Q.loop && !F.slideLooper.canLoop()) { 22486 const he = Object.assign({}, Q, { 22487 loop: !1 22488 }); 22489 return O(he) 22490 } 22491 return F 22492 } 22493 function A(Q, F) { 22494 x || (y = c(y, Q), 22495 w = u(y), 22496 P = F || P, 22497 C(), 22498 v = O(w), 22499 d([y, ...P.map( ({options: he}) => he)]).forEach(he => s.add(he, "change", E)), 22500 w.active && (v.translate.to(v.location.get()), 22501 v.animation.init(), 22502 v.slidesInView.init(), 22503 v.slideFocus.init(ne), 22504 v.eventHandler.init(ne), 22505 v.resizeHandler.init(ne), 22506 v.slidesHandler.init(ne), 22507 v.options.loop && v.slideLooper.loop(), 22508 _.offsetParent && T.length && v.dragHandler.init(ne), 22509 S = a.init(ne, P))) 22510 } 22511 function E(Q, F) { 22512 const he = K(); 22513 j(), 22514 A(c({ 22515 startIndex: he 22516 }, Q), F), 22517 l.emit("reInit") 22518 } 22519 function j() { 22520 v.dragHandler.destroy(), 22521 v.eventStore.clear(), 22522 v.translate.clear(), 22523 v.slideLooper.clear(), 22524 v.resizeHandler.destroy(), 22525 v.slidesHandler.destroy(), 22526 v.slidesInView.destroy(), 22527 v.animation.destroy(), 22528 a.destroy(), 22529 s.clear() 22530 } 22531 function $() { 22532 x || (x = !0, 22533 s.clear(), 22534 j(), 22535 l.emit("destroy"), 22536 l.clear()) 22537 } 22538 function R(Q, F, he) { 22539 !w.active || x || (v.scrollBody.useBaseFriction().useDuration(F === !0 ? 0 : w.duration), 22540 v.scrollTo.index(Q, he || 0)) 22541 } 22542 function L(Q) { 22543 const F = v.index.add(1).get(); 22544 R(F, Q, -1) 22545 } 22546 function B(Q) { 22547 const F = v.index.add(-1).get(); 22548 R(F, Q, 1) 22549 } 22550 function U() { 22551 return v.index.add(1).get() !== K() 22552 } 22553 function N() { 22554 return v.index.add(-1).get() !== K() 22555 } 22556 function D() { 22557 return v.scrollSnapList 22558 } 22559 function W() { 22560 return v.scrollProgress.get(v.location.get()) 22561 } 22562 function K() { 22563 return v.index.get() 22564 } 22565 function G() { 22566 return v.indexPrevious.get() 22567 } 22568 function ae() { 22569 return v.slidesInView.get() 22570 } 22571 function ve() { 22572 return v.slidesInView.get(!1) 22573 } 22574 function je() { 22575 return S 22576 } 22577 function Oe() { 22578 return v 22579 } 22580 function ie() { 22581 return e 22582 } 22583 function ge() { 22584 return _ 22585 } 22586 function Y() { 22587 return T 22588 } 22589 const ne = { 22590 canScrollNext: U, 22591 canScrollPrev: N, 22592 containerNode: ge, 22593 internalEngine: Oe, 22594 destroy: $, 22595 off: p, 22596 on: f, 22597 emit: g, 22598 plugins: je, 22599 previousScrollSnap: G, 22600 reInit: m, 22601 rootNode: ie, 22602 scrollNext: L, 22603 scrollPrev: B, 22604 scrollProgress: W, 22605 scrollSnapList: D, 22606 scrollTo: R, 22607 selectedScrollSnap: K,
22608 slideNodes: Y, 22609 slidesInView: ae, 22610 slidesNotInView: ve 22611 }; 22612 return A(t, n), 22613 setTimeout( () => l.emit("init"), 0), 22614 ne 22615} 22616tg.globalOptions = void 0; 22617function __(e={}, t=[]) { 22618 const n = b.useRef(e) 22619 , r = b.useRef(t) 22620 , [i,o] = b.useState() 22621 , [a,s] = b.useState() 22622 , l = b.useCallback( () => { 22623 i && i.reInit(n.current, r.current) 22624 } 22625 , [i]); 22626 return b.useEffect( () => { 22627 b_(n.current, e) || (n.current = e, 22628 l()) 22629 } 22630 , [e, l]), 22631 b.useEffect( () => { 22632 Gte(r.current, t) || (r.current = t, 22633 l()) 22634 } 22635 , [t, l]), 22636 b.useEffect( () => { 22637 if (Kte() && a) { 22638 tg.globalOptions = __.globalOptions; 22639 const c = tg(a, n.current, r.current); 22640 return o(c), 22641 () => c.destroy() 22642 } else 22643 o(void 0) 22644 } 22645 , [a, o]), 22646 [s, i] 22647} 22648__.globalOptions = void 0; 22649const Tne = Ee.div; 22650function Cne() { 22651 const [e,t] = __({ 22652 loop: !0, 22653 dragFree: !0, 22654 containScroll: "trimSnaps", 22655 align: "center", 22656 slidesToScroll: 1, 22657 speed: 15 22658 }); 22659 b.useEffect( () => { 22660 if (t) { 22661 const r = setInterval( () => { 22662 t.scrollNext() 22663 } 22664 , 3e3); 22665 return () => clearInterval(r) 22666 } 22667 } 22668 , [t]); 22669 const n = [{ 22670 src: "./images/green-rain-logo.png", 22671 alt: "Green Rain Logo", 22672 className: "h-16 md:h-20" 22673 }, { 22674 src: "./images/allern.png", 22675 alt: "Allern Logo", 22676 className: "h-16 md:h-20" 22677 }, { 22678 src: "./images/greengold_logo.png", 22679 alt: "Green Gold Logo", 22680 className: "h-16 md:h-20" 22681 }, { 22682 src: "./images/Netflix-Logo.png", 22683 alt: "Netflix Logo", 22684 className: "h-12 md:h-16" 22685 }, { 22686 src: "./images/quiddich innovation_logo.png", 22687 alt: "Quiddich Innovation Logo", 22688 className: "h-16 md:h-20" 22689 }, { 22690 src: "./images/yfx.gif", 22691 alt: "YFX Logo", 22692 className: "h-16 md:h-20" 22693 }]; 22694 return h.jsx(Ee.div, { 22695 className: "py-12 bg-muted/30", 22696 variants: Ut, 22697 initial: "initial", 22698 whileInView: "animate", 22699 viewport: { 22700 once: !0 22701 }, 22702 children: h.jsxs("div", { 22703 className: "max-w-6xl mx-auto px-4", 22704 children: [h.jsxs(Ee.h2, { 22705 className: "text-4xl font-extrabold tracking-tight text-center mb-12", 22706 variants: Ut, 22707 children: ["Trusted by ", h.jsx("span", { 22708 className: "text-primary", 22709 children: "Studios & Creators" 22710 }), " Worldwide"] 22711 }), h.jsx("div", { 22712 className: "overflow-hidden", 22713 ref: e, 22714 children: h.jsx(Ee.div, { 22715 className: "flex gap-12 items-center", 22716 variants: Ac, 22717 transition: { 22718 duration: .8, 22719 ease: "easeInOut" 22720 }, 22721 children: n.map(r => h.jsx(Tne, { 22722 className: "flex-[0_0_200px] min-w-0 items-center justify-center p-4 transition-opacity hover:opacity-80", 22723 variants: Ut, 22724 whileHover: { 22725 scale: 1.1 22726 }, 22727 children: h.jsx("img", { 22728 src: r.src, 22729 alt: r.alt, 22730 className: `${r.className} object-contain filter brightness-100 contrast-100`, 22731 loading: "lazy", 22732 style: { 22733 maxWidth: "100%", 22734 height: "auto", 22735 imageRendering: "crisp-edges" 22736 } 22737 }) 22738 }, r.alt)) 22739 }) 22740 }), h.jsx(Ee.p, { 22741 className: "text-xl text-muted-foreground mt-12 text-center", 22742 variants: Ut, 22743 children: "Powering Unreal Engine renders for VFX, animation, and game studios globally." 22744 })] 22745 }) 22746 }) 22747} 22748var _3 = { 22749 color: void 0, 22750 size: void 0, 22751 className: void 0, 22752 style: void 0, 22753 attr: void 0 22754} 22755 , NE = k.createContext && k.createContext(_3) 22756 , One = ["attr", "size", "title"]; 22757function Ane(e, t) { 22758 if (e == null) 22759 return {}; 22760 var n = Ene(e, t), r, i; 22761 if (Object.getOwnPropertySymbols) { 22762 var o = Object.getOwnPropertySymbols(e); 22763 for (i = 0; i < o.length; i++) 22764 r = o[i], 22765 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 22766 } 22767 return n 22768} 22769function Ene(e, t) { 22770 if (e == null) 22771 return {}; 22772 var n = {}; 22773 for (var r in e) 22774 if (Object.prototype.hasOwnProperty.call(e, r)) { 22775 if (t.indexOf(r) >= 0) 22776 continue; 22777 n[r] = e[r] 22778 } 22779 return n 22780} 22781function ng() { 22782 return ng = Object.assign ? Object.assign.bind() : function(e) { 22783 for (var t = 1; t < arguments.length; t++) { 22784 var n = arguments[t]; 22785 for (var r in n) 22786 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 22787 } 22788 return e 22789 } 22790 , 22791 ng.apply(this, arguments) 22792} 22793function ME(e, t) { 22794 var n = Object.keys(e); 22795 if (Object.getOwnPropertySymbols) { 22796 var r = Object.getOwnPropertySymbols(e); 22797 t && (r = r.filter(function(i) { 22798 return Object.getOwnPropertyDescriptor(e, i).enumerable 22799 })), 22800 n.push.apply(n, r) 22801 } 22802 return n 22803} 22804function rg(e) { 22805 for (var t = 1; t < arguments.length; t++) { 22806 var n = arguments[t] != null ? arguments[t] : {};
vendor: 2,130 bytes, lines 22807-22877
22807 t % 2 ? ME(Object(n), !0).forEach(function(r) { 22808 jne(e, r, n[r]) 22809 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ME(Object(n)).forEach(function(r) { 22810 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 22811 }) 22812 } 22813 return e 22814} 22815function jne(e, t, n) { 22816 return t = Nne(t), 22817 t in e ? Object.defineProperty(e, t, { 22818 value: n, 22819 enumerable: !0, 22820 configurable: !0, 22821 writable: !0 22822 }) : e[t] = n, 22823 e 22824} 22825function Nne(e) { 22826 var t = Mne(e, "string"); 22827 return typeof t == "symbol" ? t : t + "" 22828} 22829function Mne(e, t) { 22830 if (typeof e != "object" || !e) 22831 return e; 22832 var n = e[Symbol.toPrimitive]; 22833 if (n !== void 0) { 22834 var r = n.call(e, t || "default"); 22835 if (typeof r != "object") 22836 return r; 22837 throw new TypeError("@@toPrimitive must return a primitive value.") 22838 } 22839 return (t === "string" ? String : Number)(e) 22840} 22841function T3(e) { 22842 return e && e.map( (t, n) => k.createElement(t.tag, rg({ 22843 key: n 22844 }, t.attr), T3(t.child))) 22845} 22846function T_(e) { 22847 return t => k.createElement(kne, ng({ 22848 attr: rg({}, e.attr) 22849 }, t), T3(e.child)) 22850} 22851function kne(e) { 22852 var t = n => { 22853 var {attr: r, size: i, title: o} = e, a = Ane(e, One), s = i || n.size || "1em", l; 22854 return n.className && (l = n.className), 22855 e.className && (l = (l ? l + " " : "") + e.className), 22856 k.createElement("svg", ng({ 22857 stroke: "currentColor", 22858 fill: "currentColor", 22859 strokeWidth: "0" 22860 }, n.attr, r, a, { 22861 className: l, 22862 style: rg(rg({ 22863 color: e.color || n.color 22864 }, n.style), e.style), 22865 height: s, 22866 width: s, 22867 xmlns: "http://www.w3.org/2000/svg" 22868 }), o && k.createElement("title", null, o), e.children) 22869 } 22870 ; 22871 return NE !== void 0 ? k.createElement(NE.Consumer, null, n => t(n)) : t(_3) 22872} 22873function C3(e) { 22874 return T_({ 22875 tag: "svg", 22876 attr: { 22877 role: "img",
22878 viewBox: "0 0 24 24" 22879 }, 22880 child: [{ 22881 tag: "path", 22882 attr: { 22883 d: "M8.948 8.798v-1.43a6.7 6.7 0 0 1 .424-.018c3.922-.124 6.493 3.374 6.493 3.374s-2.774 3.851-5.75 3.851c-.398 0-.787-.062-1.158-.185v-4.346c1.528.185 1.837.857 2.747 2.385l2.04-1.714s-1.492-1.952-4-1.952a6.016 6.016 0 0 0-.796.035m0-4.735v2.138l.424-.027c5.45-.185 9.01 4.47 9.01 4.47s-4.08 4.964-8.33 4.964c-.37 0-.733-.035-1.095-.097v1.325c.3.035.61.062.91.062 3.957 0 6.82-2.023 9.593-4.408.459.371 2.34 1.263 2.73 1.652-2.633 2.208-8.772 3.984-12.253 3.984-.335 0-.653-.018-.971-.053v1.864H24V4.063zm0 10.326v1.131c-3.657-.654-4.673-4.46-4.673-4.46s1.758-1.944 4.673-2.262v1.237H8.94c-1.528-.186-2.73 1.245-2.73 1.245s.68 2.412 2.739 3.11M2.456 10.9s2.164-3.197 6.5-3.533V6.201C4.153 6.59 0 10.653 0 10.653s2.35 6.802 8.948 7.42v-1.237c-4.84-.6-6.492-5.936-6.492-5.936z" 22884 }, 22885 child: [] 22886 }] 22887 })(e) 22888} 22889function Rne(e) { 22890 return T_({ 22891 tag: "svg", 22892 attr: { 22893 role: "img",
22894 viewBox: "0 0 24 24" 22895 }, 22896 child: [{ 22897 tag: "path", 22898 attr: { 22899 d: "M12 0a12 12 0 1012 12A12 12 0 0012 0zm0 23.52A11.52 11.52 0 1123.52 12 11.52 11.52 0 0112 23.52zm7.13-9.791c-.206.997-1.126 3.557-4.06 4.942l-1.179-1.325-1.988 2a7.338 7.338 0 01-5.804-2.978 2.859 2.859 0 00.65.123c.326.006.678-.114.678-.66v-5.394a.89.89 0 00-1.116-.89c-.92.212-1.656 2.509-1.656 2.509a7.304 7.304 0 012.528-5.597 7.408 7.408 0 013.73-1.721c-1.006.573-1.57 1.507-1.57 2.29 0 1.262.76 1.109.984.923v7.28a1.157 1.157 0 00.148.256 1.075 1.075 0 00.88.445c.76 0 1.747-.868 1.747-.868V9.172c0-.6-.452-1.324-.905-1.572 0 0 .838-.149 1.484.346a5.537 5.537 0 01.387-.425c1.508-1.48 2.929-1.902 4.112-2.112 0 0-2.151 1.69-2.151 3.96 0 1.687.043 5.801.043 5.801.799.771 1.986-.342 3.059-1.441Z" 22900 }, 22901 child: [] 22902 }] 22903 })(e) 22904} 22905const Dne = [{ 22906 icon: h.jsx(RX, { 22907 className: "h-8 w-8 text-teal-400" 22908 }), 22909 title: "Automatic Project Uploads", 22910 description: "Click Remote Render and watch your project uploads automatically to the cloud." 22911}, { 22912 icon: h.jsx(wX, { 22913 className: "h-8 w-8 text-indigo-400" 22914 }), 22915 title: "10X Faster Lumen & Path Tracer Rendering", 22916 description: "Industry leading multi gpu approach to path tracer speeding up renders by upto 10x!" 22917}, { 22918 icon: h.jsx(Yy, { 22919 className: "h-8 w-8 text-blue-400" 22920 }), 22921 title: "Cost Effective", 22922 description: "Zero Data transfer Cost - 80% more cost effective than iRender/AWS/GCP/Azure. No hidden costs!" 22923}] 22924 , Ine = [{ 22925 title: "Install", 22926 description: "Install our lightweight MSI & plugin to Unreal Engine—no code changes needed.", 22927 icon: h.jsx(MX, { 22928 className: "h-6 w-6" 22929 }) 22930}, { 22931 title: "Remote Render", 22932 description: "Start your renders by simply clicking Remote Render in MRQ", 22933 icon: h.jsx(N4, { 22934 className: "h-6 w-6" 22935 }) 22936}, { 22937 title: "Auto Uploads", 22938 description: "Select your GPU and watch your project upload automatically - hassle free!", 22939 icon: h.jsx($X, { 22940 className: "h-6 w-6" 22941 }) 22942}, { 22943 title: "Instant Render Delivery", 22944 description: "Frames return to your local folder for immediate review as soon as they start rendering in the cloud.", 22945 icon: h.jsx(Oh, { 22946 className: "h-6 w-6" 22947 }) 22948}] 22949 , $ne = [{ 22950 quote: "HyperRender transformed our pipeline. We've reduced rendering times by up to 70%, allowing us to hit tight deadlines and scale effortlessly with on-demand rendering.", 22951 author: "Karan Parikh", 22952 role: "CEO", 22953 company: "Greenrain Studios" 22954}, { 22955 quote: "HyperRender feels like a magic switch. I can send heavy UE5 projects to the cloud, render them fast, and get the frames back inside my project. No more blocking my main machine or wasting on data transfer. It’s crazy fast, affordable, and feels like cheating.", 22956 author: "Paul Booth", 22957 role: "", 22958 company: "SuperMotion Collective" 22959}, { 22960 quote: "Seamless integration with Unreal Engine and exceptional customer support make HyperRender our go-to solution.", 22961 author: "Pau Benazet", 22962 role: "Creative Technologist", 22963 company: "APPIA" 22964}]; 22965 22966function createDots() { 22967 const dots = [ 22968 { left: "25%", top: "35%" }, 22969 { left: "45%", top: "30%" }, 22970 { left: "70%", top: "50%" }, 22971 { left: "24%", top: "44.2%" }, 22972 { left: "14%", top: "43.3%" }, 22973 { left: "18.2%", top: "46%" }, 22974 22975 { left: "35.3%", top: "64.8%" }, // South America (Colombia/Ecuador area) 22976 { left: "54%", top: "75%" }, // South Africa 22977 { left: "62%", top: "50%" }, // Middle East (UAE/Saudi Arabia) 22978 { left: "79%", top: "65.7%" }, // Southeast Asia (Philippines) 22979 { left: "86%", top: "40%" }, // Japan 22980 { left: "88.1%", top: "82.5%" }, // Australia (Eastern coast) 22981 22982 { left: "45.24%", top: "43.23%" }, 22983 { left: "48.07%", top: "38.36%" }, 22984 { left: "49.85%", top: "33.61%" }, 22985 { left: "53.57%", top: "35.75%" }, 22986 { left: "53.57%", top: "23.40%" }, 22987 ].map(pos => 22988 h.jsxs("div", { 22989 className: "absolute", 22990 style: pos, 22991 children: [ 22992 h.jsx("div", { className: "w-4 h-4 bg-red-500/50 rounded-full animate-ping" }), 22993 h.jsx("div", { className: "w-4 h-4 bg-red-500 rounded-full absolute top-0" }) 22994 ] 22995 }) 22996 ); 22997 22998 return dots; 22999} 23000 23001function Lne() { 23002 return h.jsxs("div", { 23003 className: "min-h-screen bg-background", 23004 children: [h.jsxs("section", { 23005 className: "relative min-h-[calc(100vh-4rem)] flex items-center justify-center py-24 px-4 overflow-hidden", 23006 children: [h.jsx("img", { 23007 src: "./images/emerald-chamber.jpg", 23008 alt: "Emerald Chamber", 23009 className: "absolute inset-0 w-full h-full object-cover z-0" 23010 }), h.jsx("div", { 23011 className: "absolute inset-0 z-10 bg-background/10" 23012 }), h.jsxs("div", { 23013 className: "max-w-7xl mx-auto text-center relative z-20", 23014 children: [h.jsxs("h1", { 23015 className: "text-5xl md:text-7xl font-bold tracking-tight mb-6 text-white", 23016 children: ["Cloud Render Farm for Unreal Engine", h.jsx("br", {}), h.jsx("span", { 23017 className: "text-3xl md:text-4xl block mt-4", 23018 children: "5-10x Faster Lumen & Pathtracer Renders with Multi-GPU" 23019 })] 23020 }), h.jsx("p", { 23021 className: "text-xl text-muted-foreground mb-12 max-w-2xl mx-auto", 23022 children: "Seamless render farm integration for Unreal Engine 5" 23023 }), h.jsxs("div", { 23024 className: "flex justify-center items-center gap-8 mb-12", 23025 children: [h.jsx(Rne, { 23026 className: "w-12 h-12 text-gray-400" 23027 }), h.jsx(C3, { 23028 className: "w-24 h-12 text-gray-400" 23029 })] 23030 }), h.jsxs(Me, { 23031 size: "lg", 23032 className: "bg-gradient-to-r from-primary to-teal-400 text-lg py-6 px-8 shadow-lg hover:shadow-xl transition-all", 23033 onClick: () => { window.location.href = "/pricing" }, 23034 children: ["👉 View Pricing ", h.jsx(um, { 23035 className: "ml-2 h-5 w-5" 23036 })] 23037 }), h.jsxs("div", { 23038 className: "text-brand-gold text-lg font-bold mt-4 !inline-block", 23039 children: "Start with $5 free credit • No card required" 23040 })] 23041 })] 23042 }), h.jsx("section", { 23043 className: "py-20 bg-muted/50", 23044 children: h.jsxs("div", { 23045 className: "max-w-6xl mx-auto px-4", 23046 children: [h.jsxs("h2", { 23047 className: "text-3xl font-bold tracking-tight flex items-center justify-center gap-3 mb-6 whitespace-nowrap", 23048 style: { 23049 fontSize: window.innerWidth >= 768 ? "2.25rem" : undefined 23050 }, 23051 children: ["Rated Excellent On ", h.jsx("a", { 23052 href: "https://www.trustpilot.com/review/hyperrender.run?languages=all", 23053 target: "_blank", 23054 className: "ml-2", 23055 rel: "noopener noreferrer", 23056 onClick: () => { 23057 gtag('event', 'click_trustpilot_logo', { 23058 event_category: 'outbound', 23059 event_label: 'trustpilot_logo', 23060 transport_type: 'beacon' 23061 }); 23062 }, 23063 style: { 23064 marginTop: window.innerWidth >= 768 ? "-10px" : "-3px" 23065 }, 23066 children: h.jsx("img", { 23067 className: "object-contain h-14", 23068 src: "https://cdn.trustpilot.net/brand-assets/4.3.0/logo-white.svg", 23069 alt: "Trustpilot", 23070 loading: "lazy", 23071 style: { 23072 imageRendering: "crisp-edges" 23073 } 23074 }) 23075 })] 23076 }), h.jsx("h2", { 23077 className: "text-xl text-muted-foreground text-center mb-6", 23078 children: "Chosen by UE professionals & indies across VFX, Animation, Gaming, and ArchViz" 23079 }), h.jsx("div", { 23080 className: "grid md:grid-cols-3 gap-8", 23081 children: $ne.map( (e, t) => h.jsxs("div", { 23082 className: "relative group", 23083 children: [h.jsx("div", { 23084 className: "absolute inset-0 bg-gradient-to-br from-primary/20 to-transparent roun
23084ded-xl -z-10 group-hover:scale-105 transition-transform duration-300" 23085 }), h.jsxs("div", { 23086 className: "bg-background/80 backdrop-blur-sm p-8 rounded-xl border border-primary/10 h-full", 23087 children: [h.jsxs("p", { 23088 className: "text-lg mb-6 text-muted-foreground italic", 23089 children: ['"', e.quote, '"'] 23090 }), h.jsxs("div", { 23091 children: [h.jsx("p", { 23092 className: "font-semibold", 23093 children: e.author 23094 }), h.jsx("p", { 23095 className: "text-sm text-muted-foreground", 23096 children: e.role 23097 }), h.jsx("p", { 23098 className: "text-sm text-muted-foreground", 23099 children: e.company 23100 })] 23101 })] 23102 })] 23103 }, t)) 23104 })] 23105 }) 23106 }), h.jsx(Ee.section, { 23107 className: "py-16 bg-background", 23108 variants: Ut, 23109 initial: "initial", 23110 whileInView: "animate", 23111 viewport: { 23112 once: !0 23113 }, 23114 children: h.jsxs("div", { 23115 className: "max-w-6xl mx-auto px-4", 23116 children: [h.jsxs("h2", { 23117 className: "text-4xl font-extrabold tracking-tight text-center mb-16", 23118 children: ["How It ", h.jsx("span", { 23119 className: "text-primary", 23120 children: "Works" 23121 })] 23122 }), h.jsx("div", { 23123 className: "max-w-4xl mx-auto mb-16 rounded-xl overflow-hidden shadow-lg border border-primary/10 relative", 23124 children: h.jsxs("div", { 23125 className: "relative pb-[56.25%] h-0", 23126 children: [" ", h.jsxs("video", { 23127 className: "absolute top-0 left-0 w-full h-full object-cover", 23128 autoPlay: !0, 23129 loop: !0, 23130 muted: !0, 23131 playsInline: !0, 23132 onTimeUpdate: e => { 23133 const t = e.target 23134 , n = t.currentTime / t.duration * 100 23135 , r = document.getElementById("video-progress"); 23136 r && (r.style.width = `${n}%`) 23137 } 23138 , 23139 children: [h.jsx("source", { 23140 src: "/videos/How To Render In HR.mp4", 23141 type: "video/mp4" 23142 }), "Your browser does not support the video tag."] 23143 }), h.jsx("div", { 23144 className: "absolute bottom-0 left-0 right-0 h-1 bg-background/20", 23145 children: h.jsx("div", { 23146 id: "video-progress", 23147 className: "h-full bg-primary transition-all duration-300 ease-linear", 23148 style: { 23149 width: "0%" 23150 } 23151 }) 23152 }), h.jsxs("div", { 23153 className: "absolute bottom-4 right-4 flex items-center gap-2 bg-background/80 backdrop-blur-sm px-3 py-1.5 rounded-full text-sm text-primary border border-primary/10", 23154 children: [h.jsx("svg", { 23155 className: "w-4 h-4 animate-spin",
23156 viewBox: "0 0 24 24", 23157 children: h.jsx("path", { 23158 fill: "currentColor", 23159 d: "M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8Z" 23160 }) 23161 }), h.jsx("span", { 23162 children: "Looping Demo" 23163 })] 23164 })] 23165 }) 23166 }), h.jsx("div", { 23167 className: "grid md:grid-cols-4 gap-8", 23168 children: Ine.map(e => h.jsx("div", { 23169 className: "relative group", 23170 children: h.jsxs("div", { 23171 className: "text-center", 23172 children: [h.jsx("div", { 23173 className: "h-14 w-14 rounded-full bg-primary/10 flex items-center justify-center mb-4 mx-auto group-hover:bg-primary/20 transition-colors duration-300", 23174 children: e.icon 23175 }), h.jsx("h3", { 23176 className: "text-lg font-semibold mb-3", 23177 children: e.title 23178 }), h.jsx("p", { 23179 className: "text-sm text-muted-foreground leading-relaxed", 23180 children: e.description 23181 })] 23182 }) 23183 }, e.title)) 23184 })] 23185 }) 23186 }), h.jsx(Ee.section, { 23187 className: "py-20 bg-muted/50", 23188 variants: Ut, 23189 initial: "initial", 23190 whileInView: "animate", 23191 viewport: { 23192 once: !0 23193 }, 23194 children: h.jsxs("div", { 23195 className: "max-w-6xl mx-auto px-4", 23196 children: [h.jsxs("h2", { 23197 className: "text-4xl font-extrabold tracking-tight text-center mb-16", 23198 children: [h.jsx("span", { 23199 className: "text-primary", 23200 children: "Why" 23201 }), " Choose HyperRender?"] 23202 }), h.jsx("div", { 23203 className: "grid md:grid-cols-3 gap-8", 23204 children: Dne.map(e => h.jsxs("div", { 23205 className: "relative group", 23206 children: [h.jsx("div", { 23207 className: "absolute inset-0 bg-gradient-to-br from-primary/20 to-transparent rounded-xl -z-10 group-hover:scale-105 transition-transform duration-300" 23208 }), h.jsxs("div", { 23209 className: "bg-background/80 backdrop-blur-sm p-8 rounded-xl border border-primary/10 h-full", 23210 children: [h.jsx("div", { 23211 className: "h-16 w-16 rounded-lg bg-primary/10 flex items-center justify-center mb-6 group-hover:scale-110 transition-transform duration-300", 23212 children: e.icon 23213 }), h.jsx("h3", { 23214 className: "text-2xl font-semibold mb-4", 23215 children: e.title 23216 }), h.jsx("p", { 23217 className: "text-muted-foreground", 23218 children: e.description 23219 })] 23220 })] 23221 }, e.title)) 23222 })] 23223 }) 23224 }), h.jsx(Ee.section, { 23225 className: "py-16 bg-background", 23226 variants: Ut, 23227 initial: "initial", 23228 whileInView: "animate", 23229 viewport: { 23230 once: !0 23231 }, 23232 children: h.jsxs("div", { 23233 className: "max-w-6xl mx-auto px-4", 23234 children: [h.jsxs("h2", { 23235 className: "text-4xl font-extrabold tracking-tight text-center mb-12", 23236 children: ["See HyperRender in ", h.jsx("span", { 23237 className: "text-primary", 23238 children: "Action" 23239 })] 23240 }), h.jsx("div", { 23241 className: "relative w-full max-w-4xl mx-auto rounded-xl overflow-hidden shadow-2xl", 23242 children: h.jsxs("div", { 23243 className: "relative pb-[56.25%] h-0", 23244 children: [" ", h.jsx("iframe", { 23245 className: "absolute top-0 left-0 w-full h-full", 23246 src: "https://www.youtube.com/embed/o2BFVWmJXK4", 23247 title: "Quick Rendering Setup on HyperRender Cloud Farm", 23248 allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", 23249 allowFullScreen: !0 23250 })] 23251 }) 23252 }), h.jsx("div", { 23253 className: "mt-8 text-center", 23254 children: h.jsx(Tt, { 23255 href: "/pricing", 23256 children: h.jsxs(Me, { 23257 size: "lg", 23258 className: "bg-gradient-to-r from-primary to-teal-400", 23259 children: ["View Pricing ", h.jsx(um, { 23260 className: "ml-2 h-4 w-4" 23261 })] 23262 }) 23263 }) 23264 })] 23265 }) 23266 }), h.jsx("section", { 23267 className: "px-4 bg-muted/20 border-t border-b border-gray-300", 23268 children: h.jsx("div", { 23269 className: "max-w-6xl mx-auto text-center ", 23270 children: h.jsx(Cne, {}) 23271 }) 23272 }), h.jsx("section", { 23273 className: "py-16 bg-muted/50", 23274 children: h.jsxs("div", { 23275 className: "max-w-6xl mx-auto px-4", 23276 children: [h.jsxs("h2", { 23277 className: "text-4xl font-extrabold tracking-tight text-center mb-16", 23278 children: ["Enterprise-Grade ", h.jsx("span", { 23279 className: "text-primary", 23280 children: "Security" 23281 })] 23282 }), h.jsx("div", { 23283 className: "grid md:grid-cols-3 gap-8", 23284 children: [{ 23285 icon: h.jsx(IX, { 23286 className: "h-8 w-8 text-emerald-400" 23287 }), 23288 title: "Advanced Data Encryption", 23289 description: "Protecting your data as it travels between systems, ensuring it remains secure from unauthorized access or tampering." 23290 }, { 23291 icon: h.jsx(NX, { 23292 className: "h-8 w-8 text-purple-400" 23293 }), 23294 title: "VPC Isolation", 23295 description: "Separates render nodes, ensuring each node operates independently and securely without risk of cross-contamination or unauthorized access." 23296 }, { 23297 icon: h.jsx(E4, { 23298 className: "h-8 w-8 text-blue-400" 23299 }), 23300 title: "Secure Communication", 23301 description: "We employ industry-leading protocols such as HTTPS, SSL, TLS, and FTPS to protect against eavesdropping, tampering, and forgery." 23302 }].map(e => h.jsxs("div", { 23303 className: "relative group", 23304 children: [h.jsx("div", { 23305 className: "absolute inset-0 bg-gradient-to-br from-primary/20 to-transparent roun
vendor: 50,112 bytes, lines 23305-24904
23305ded-xl -z-10 group-hover:scale-105 transition-transform duration-300" 23306 }), h.jsxs("div", { 23307 className: "bg-background/80 backdrop-blur-sm p-8 rounded-xl border border-primary/10 h-full", 23308 children: [h.jsx("div", { 23309 className: "h-16 w-16 rounded-lg bg-primary/10 flex items-center justify-center mb-6 group-hover:scale-110 transition-transform duration-300", 23310 children: e.icon 23311 }), h.jsx("h3", { 23312 className: "text-2xl font-semibold mb-4", 23313 children: e.title 23314 }), h.jsx("p", { 23315 className: "text-muted-foreground", 23316 children: e.description 23317 })] 23318 })] 23319 }, e.title)) 23320 }), h.jsx("div", { 23321 className: "mt-12 text-center", 23322 children: h.jsx("p", { 23323 className: "text-lg text-muted-foreground mb-6", 23324 children: "Experience our enterprise-grade security firsthand" 23325 }) 23326 })] 23327 }) 23328 }), h.jsx("section", { 23329 className: "py-16 bg-background", 23330 children: h.jsxs("div", { 23331 className: "max-w-6xl mx-auto px-4", 23332 children: [h.jsxs("h2", { 23333 className: "text-4xl font-extrabold tracking-tight text-center mb-16", 23334 children: [h.jsx("span", { 23335 className: "text-primary", 23336 children: "Global" 23337 }), " Locations For Rendering"] 23338 }), h.jsxs("div", { 23339 className: "relative w-full max-w-4xl mx-auto rounded-xl overflow-hidden shadow-2xl border border-primary/10 bg-muted/30", 23340 children: [h.jsx("img", { 23341 src: "./images/world-map.png", 23342 alt: "World Map", 23343 className: "w-full h-full object-cover" 23344 }), h.jsxs("div", { 23345 className: "absolute inset-0", 23346 children: createDots(), 23347 })] 23348 }), h.jsxs("div", { 23349 className: "mt-12 text-center", 23350 children: [h.jsx("p", { 23351 className: "text-lg text-muted-foreground mb-6", 23352 children: "Learn more about our global infrastructure and capabilities" 23353 }), h.jsxs(Me, { 23354 size: "lg", 23355 className: "bg-gradient-to-r from-primary to-teal-400", 23356 onClick: () => { window.location.href = "/login" }, 23357 children: ["Login / Signup ", h.jsx(um, { 23358 className: "ml-2 h-4 w-4" 23359 })] 23360 }), h.jsxs("div", { 23361 className: "text-center text-brand-gold text-l mt-4 font-bold", 23362 children: "Start with $5 free credit • No card required" 23363 })] 23364 })] 23365 }) 23366 }), h.jsx("footer", { 23367 className: "bg-background border-t border-primary/10", 23368 children: h.jsxs("div", { 23369 className: "max-w-6xl mx-auto px-4 py-16", 23370 children: [h.jsxs("div", { 23371 className: "grid grid-cols-1 md:grid-cols-4 gap-12", 23372 children: [h.jsxs("div", { 23373 className: "space-y-4 md:col-span-2", 23374 children: [h.jsx("h3", { 23375 className: "text-lg font-semibold", 23376 children: "HyperRender" 23377 }), h.jsx("p", { 23378 className: "text-sm text-muted-foreground", 23379 children: "Transforming cloud rendering for the next generation of digital creators. Experience enterprise-grade GPU rendering with seamless Unreal Engine integration." 23380 }), h.jsxs("div", { 23381 className: "flex space-x-4", 23382 children: [h.jsx(Me, { 23383 variant: "ghost", 23384 size: "icon", 23385 className: "hover:text-primary", 23386 onClick: () => window.open("https://www.linkedin.com/company/vimobin-labs/", "_blank"), 23387 children: h.jsx(A4, { 23388 className: "h-5 w-5" 23389 }) 23390 }), h.jsx(Me, { 23391 variant: "ghost", 23392 size: "icon", 23393 className: "hover:text-primary", 23394 onClick: () => window.open("https://youtu.be/6WDW2QmA7FQ", "_blank"), 23395 children: h.jsx(D4, { 23396 className: "h-5 w-5" 23397 }) 23398 })] 23399 })] 23400 }), h.jsxs("div", { 23401 className: "space-y-4", 23402 children: [h.jsx("h3", { 23403 className: "text-lg font-semibold", 23404 children: "Quick Links" 23405 }), h.jsxs("ul", { 23406 className: "space-y-2", 23407 children: [h.jsx("li", { 23408 children: h.jsx(Tt, { 23409 href: "/pricing", 23410 className: "text-sm text-muted-foreground hover:text-foreground", 23411 children: "Pricing" 23412 }) 23413 }), h.jsx("li", { 23414 children: h.jsx(Tt, { 23415 href: "/pricing", 23416 className: "text-sm text-muted-foreground hover:text-foreground", 23417 children: "Cost Calculator" 23418 }) 23419 }), h.jsx("li", { 23420 children: h.jsx(Tt, { 23421 href: "/faq", 23422 className: "text-sm text-muted-foreground hover:text-foreground", 23423 children: "FAQ" 23424 }) 23425 })] 23426 })] 23427 }), h.jsxs("div", { 23428 className: "space-y-4", 23429 children: [h.jsx("h3", { 23430 className: "text-lg font-semibold", 23431 children: "Contact" 23432 }), h.jsx("ul", { 23433 className: "space-y-2", 23434 children: [ 23435 h.jsx("li", { 23436 children: h.jsx(Tt, { 23437 className: "text-sm text-muted-foreground hover:text-foreground", 23438 onClick: () => { window.location.href = "/contactus"; }, 23439 children: "Contact Us" 23440 }) 23441 }), 23442 h.jsx("li", { 23443 children: h.jsx(Tt, { 23444 className: "text-sm text-muted-foreground hover:text-foreground", 23445 onClick: () => { window.location.href = "/login" }, 23446 children: "Login / Signup" 23447 }) 23448 }) 23449 ] 23450 })] 23451 })] 23452 }), h.jsx("div", { 23453 className: "mt-12 pt-8 border-t border-primary/10", 23454 children: h.jsxs("div", { 23455 className: "flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0", 23456 children: [h.jsx("p", { 23457 className: "text-sm text-muted-foreground", 23458 children: "© 2026 HyperRender. All rights reserved." 23459 }), h.jsxs("div", { 23460 className: "flex flex-wrap gap-4", 23461 children: [h.jsx(Tt, { 23462 href: "/", 23463 className: "text-sm text-muted-foreground hover:text-foreground", 23464 children: "Terms of Service" 23465 }), h.jsx(Tt, { 23466 href: "/", 23467 className: "text-sm text-muted-foreground hover:text-foreground", 23468 children: "Privacy Policy" 23469 }), h.jsx(Tt, { 23470 href: "/", 23471 className: "text-sm text-muted-foreground hover:text-foreground", 23472 children: "Cookie Policy" 23473 })] 23474 })] 23475 }) 23476 })] 23477 }) 23478 })] 23479 }) 23480} 23481function kE(e, [t,n]) { 23482 return Math.min(n, Math.max(t, e)) 23483} 23484function ye(e, t, {checkForDefaultPrevented: n=!0}={}) { 23485 return function(i) { 23486 if (e == null || e(i), 23487 n === !1 || !i.defaultPrevented) 23488 return t == null ? void 0 : t(i) 23489 } 23490} 23491function Fne(e, t=[]) { 23492 let n = []; 23493 function r(o, a) { 23494 const s = b.createContext(a) 23495 , l = n.length; 23496 n = [...n, a]; 23497 function c(d) { 23498 const {scope: f, children: p, ...g} = d 23499 , m = (f == null ? void 0 : f[e][l]) || s 23500 , x = b.useMemo( () => g, Object.values(g)); 23501 return h.jsx(m.Provider, { 23502 value: x, 23503 children: p 23504 }) 23505 } 23506 function u(d, f) { 23507 const p = (f == null ? void 0 : f[e][l]) || s 23508 , g = b.useContext(p); 23509 if (g) 23510 return g; 23511 if (a !== void 0) 23512 return a; 23513 throw new Error(`\`${d}\` must be used within \`${o}\``) 23514 } 23515 return c.displayName = o + "Provider", 23516 [c, u] 23517 } 23518 const i = () => { 23519 const o = n.map(a => b.createContext(a)); 23520 return function(s) { 23521 const l = (s == null ? void 0 : s[e]) || o; 23522 return b.useMemo( () => ({ 23523 [`__scope${e}`]: { 23524 ...s, 23525 [e]: l 23526 } 23527 }), [s, l]) 23528 } 23529 } 23530 ; 23531 return i.scopeName = e, 23532 [r, Bne(i, ...t)] 23533} 23534function Bne(...e) { 23535 const t = e[0]; 23536 if (e.length === 1) 23537 return t; 23538 const n = () => { 23539 const r = e.map(i => ({ 23540 useScope: i(), 23541 scopeName: i.scopeName 23542 })); 23543 return function(o) { 23544 const a = r.reduce( (s, {useScope: l, scopeName: c}) => { 23545 const d = l(o)[`__scope${c}`]; 23546 return { 23547 ...s, 23548 ...d 23549 } 23550 } 23551 , {}); 23552 return b.useMemo( () => ({ 23553 [`__scope${t.scopeName}`]: a 23554 }), [a]) 23555 } 23556 } 23557 ; 23558 return n.scopeName = t.scopeName, 23559 n 23560} 23561function Vne(e, t) { 23562 typeof e == "function" ? e(t) : e != null && (e.current = t) 23563} 23564function Mo(...e) { 23565 return t => e.forEach(n => Vne(n, t)) 23566} 23567function Ye(...e) { 23568 return b.useCallback(Mo(...e), e) 23569} 23570var $w = b.forwardRef( (e, t) => { 23571 const {children: n, ...r} = e 23572 , i = b.Children.toArray(n) 23573 , o = i.find(zne); 23574 if (o) { 23575 const a = o.props.children 23576 , s = i.map(l => l === o ? b.Children.count(a) > 1 ? b.Children.only(null) : b.isValidElement(a) ? a.props.children : null : l); 23577 return h.jsx(Lw, { 23578 ...r, 23579 ref: t, 23580 children: b.isValidElement(a) ? b.cloneElement(a, void 0, s) : null 23581 }) 23582 } 23583 return h.jsx(Lw, { 23584 ...r, 23585 ref: t, 23586 children: n 23587 }) 23588} 23589); 23590$w.displayName = "Slot"; 23591var Lw = b.forwardRef( (e, t) => { 23592 const {children: n, ...r} = e; 23593 if (b.isValidElement(n)) { 23594 const i = Hne(n); 23595 return b.cloneElement(n, { 23596 ...Wne(r, n.props), 23597 ref: t ? Mo(t, i) : i 23598 }) 23599 } 23600 return b.Children.count(n) > 1 ? b.Children.only(null) : null 23601} 23602); 23603Lw.displayName = "SlotClone"; 23604var Une = ({children: e}) => h.jsx(h.Fragment, { 23605 children: e 23606}); 23607function zne(e) { 23608 return b.isValidElement(e) && e.type === Une 23609} 23610function Wne(e, t) { 23611 const n = { 23612 ...t 23613 }; 23614 for (const r in t) { 23615 const i = e[r] 23616 , o = t[r]; 23617 /^on[A-Z]/.test(r) ? i && o ? n[r] = (...s) => { 23618 o(...s), 23619 i(...s) 23620 } 23621 : i && (n[r] = i) : r === "style" ? n[r] = { 23622 ...i, 23623 ...o 23624 } : r === "className" && (n[r] = [i, o].filter(Boolean).join(" ")) 23625 } 23626 return { 23627 ...e, 23628 ...n 23629 } 23630} 23631function Hne(e) { 23632 var r, i; 23633 let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get 23634 , n = t && "isReactWarning"in t && t.isReactWarning; 23635 return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, 23636 n = t && "isReactWarning"in t && t.isReactWarning, 23637 n ? e.props.ref : e.props.ref || e.ref) 23638} 23639function rv(e) { 23640 const t = e + "CollectionProvider" 23641 , [n,r] = Fne(t) 23642 , [i,o] = n(t, { 23643 collectionRef: { 23644 current: null 23645 }, 23646 itemMap: new Map 23647 }) 23648 , a = p => { 23649 const {scope: g, children: m} = p 23650 , x = k.useRef(null) 23651 , v = k.useRef(new Map).current; 23652 return h.jsx(i, { 23653 scope: g, 23654 itemMap: v, 23655 collectionRef: x, 23656 children: m 23657 }) 23658 } 23659 ; 23660 a.displayName = t; 23661 const s = e + "CollectionSlot" 23662 , l = k.forwardRef( (p, g) => { 23663 const {scope: m, children: x} = p 23664 , v = o(s, m) 23665 , y = Ye(g, v.collectionRef); 23666 return h.jsx($w, { 23667 ref: y, 23668 children: x 23669 }) 23670 } 23671 ); 23672 l.displayName = s; 23673 const c = e + "CollectionItemSlot" 23674 , u = "data-radix-collection-item" 23675 , d = k.forwardRef( (p, g) => { 23676 const {scope: m, children: x, ...v} = p 23677 , y = k.useRef(null) 23678 , w = Ye(g, y) 23679 , P = o(c, m); 23680 return k.useEffect( () => (P.itemMap.set(y, { 23681 ref: y, 23682 ...v 23683 }), 23684 () => void P.itemMap.delete(y))), 23685 h.jsx($w, { 23686 [u]: "", 23687 ref: w, 23688 children: x 23689 }) 23690 } 23691 ); 23692 d.displayName = c; 23693 function f(p) { 23694 const g = o(e + "CollectionConsumer", p); 23695 return k.useCallback( () => { 23696 const x = g.collectionRef.current; 23697 if (!x) 23698 return []; 23699 const v = Array.from(x.querySelectorAll(`[${u}]`)); 23700 return Array.from(g.itemMap.values()).sort( (P, S) => v.indexOf(P.ref.current) - v.indexOf(S.ref.current)) 23701 } 23702 , [g.collectionRef, g.itemMap]) 23703 } 23704 return [{ 23705 Provider: a, 23706 Slot: l, 23707 ItemSlot: d 23708 }, f, r] 23709} 23710var qne = b.createContext(void 0); 23711function kh(e) { 23712 const t = b.useContext(qne); 23713 return e || t || "ltr" 23714} 23715var O3 = b.forwardRef( (e, t) => { 23716 const {children: n, ...r} = e 23717 , i = b.Children.toArray(n) 23718 , o = i.find(Gne); 23719 if (o) { 23720 const a = o.props.children 23721 , s = i.map(l => l === o ? b.Children.count(a) > 1 ? b.Children.only(null) : b.isValidElement(a) ? a.props.children : null : l); 23722 return h.jsx(Fw, { 23723 ...r, 23724 ref: t, 23725 children: b.isValidElement(a) ? b.cloneElement(a, void 0, s) : null 23726 }) 23727 } 23728 return h.jsx(Fw, { 23729 ...r, 23730 ref: t, 23731 children: n 23732 }) 23733} 23734); 23735O3.displayName = "Slot"; 23736var Fw = b.forwardRef( (e, t) => { 23737 const {children: n, ...r} = e; 23738 if (b.isValidElement(n)) { 23739 const i = Xne(n); 23740 return b.cloneElement(n, { 23741 ...Yne(r, n.props), 23742 ref: t ? Mo(t, i) : i 23743 }) 23744 } 23745 return b.Children.count(n) > 1 ? b.Children.only(null) : null 23746} 23747); 23748Fw.displayName = "SlotClone"; 23749var Kne = ({children: e}) => h.jsx(h.Fragment, { 23750 children: e 23751}); 23752function Gne(e) { 23753 return b.isValidElement(e) && e.type === Kne 23754} 23755function Yne(e, t) { 23756 const n = { 23757 ...t 23758 }; 23759 for (const r in t) { 23760 const i = e[r] 23761 , o = t[r]; 23762 /^on[A-Z]/.test(r) ? i && o ? n[r] = (...s) => { 23763 o(...s), 23764 i(...s) 23765 } 23766 : i && (n[r] = i) : r === "style" ? n[r] = { 23767 ...i, 23768 ...o 23769 } : r === "className" && (n[r] = [i, o].filter(Boolean).join(" ")) 23770 } 23771 return { 23772 ...e, 23773 ...n 23774 } 23775} 23776function Xne(e) { 23777 var r, i; 23778 let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get 23779 , n = t && "isReactWarning"in t && t.isReactWarning; 23780 return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, 23781 n = t && "isReactWarning"in t && t.isReactWarning, 23782 n ? e.props.ref : e.props.ref || e.ref) 23783} 23784var Qne = ["a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "span", "svg", "ul"] 23785 , Ce = Qne.reduce( (e, t) => { 23786 const n = b.forwardRef( (r, i) => { 23787 const {asChild: o, ...a} = r 23788 , s = o ? O3 : t; 23789 return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), 23790 h.jsx(s, { 23791 ...a, 23792 ref: i 23793 }) 23794 } 23795 ); 23796 return n.displayName = `Primitive.${t}`, 23797 { 23798 ...e, 23799 [t]: n 23800 } 23801} 23802, {}); 23803function A3(e, t) { 23804 e && La.flushSync( () => e.dispatchEvent(t)) 23805} 23806var Zne = "DismissableLayer", Bw = "dismissableLayer.update", Jne = "dismissableLayer.pointerDownOutside", ere = "dismissableLayer.focusOutside", RE, E3 = b.createContext({ 23807 layers: new Set, 23808 layersWithOutsidePointerEventsDisabled: new Set, 23809 branches: new Set 23810}), iv = b.forwardRef( (e, t) => { 23811 const {disableOutsidePointerEvents: n=!1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: o, onInteractOutside: a, onDismiss: s, ...l} = e 23812 , c = b.useContext(E3) 23813 , [u,d] = b.useState(null) 23814 , f = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document) 23815 , [,p] = b.useState({}) 23816 , g = Ye(t, T => d(T)) 23817 , m = Array.from(c.layers) 23818 , [x] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1) 23819 , v = m.indexOf(x) 23820 , y = u ? m.indexOf(u) : -1 23821 , w = c.layersWithOutsidePointerEventsDisabled.size > 0 23822 , P = y >= v 23823 , S = rre(T => { 23824 const C = T.target 23825 , O = [...c.branches].some(A => A.contains(C)); 23826 !P || O || (i == null || i(T), 23827 a == null || a(T), 23828 T.defaultPrevented || s == null || s()) 23829 } 23830 , f) 23831 , _ = ire(T => { 23832 const C = T.target; 23833 [...c.branches].some(A => A.contains(C)) || (o == null || o(T), 23834 a == null || a(T), 23835 T.defaultPrevented || s == null || s()) 23836 } 23837 , f); 23838 return XF(T => { 23839 y === c.layers.size - 1 && (r == null || r(T), 23840 !T.defaultPrevented && s && (T.preventDefault(), 23841 s())) 23842 } 23843 , f), 23844 b.useEffect( () => { 23845 if (u) 23846 return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (RE = f.body.style.pointerEvents, 23847 f.body.style.pointerEvents = "none"), 23848 c.layersWithOutsidePointerEventsDisabled.add(u)), 23849 c.layers.add(u), 23850 DE(), 23851 () => { 23852 n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = RE) 23853 } 23854 } 23855 , [u, f, n, c]), 23856 b.useEffect( () => () => { 23857 u && (c.layers.delete(u), 23858 c.layersWithOutsidePointerEventsDisabled.delete(u), 23859 DE()) 23860 } 23861 , [u, c]), 23862 b.useEffect( () => { 23863 const T = () => p({}); 23864 return document.addEventListener(Bw, T), 23865 () => document.removeEventListener(Bw, T) 23866 } 23867 , []), 23868 h.jsx(Ce.div, { 23869 ...l, 23870 ref: g, 23871 style: { 23872 pointerEvents: w ? P ? "auto" : "none" : void 0, 23873 ...e.style 23874 }, 23875 onFocusCapture: ye(e.onFocusCapture, _.onFocusCapture), 23876 onBlurCapture: ye(e.onBlurCapture, _.onBlurCapture), 23877 onPointerDownCapture: ye(e.onPointerDownCapture, S.onPointerDownCapture) 23878 }) 23879} 23880); 23881iv.displayName = Zne; 23882var tre = "DismissableLayerBranch" 23883 , nre = b.forwardRef( (e, t) => { 23884 const n = b.useContext(E3) 23885 , r = b.useRef(null) 23886 , i = Ye(t, r); 23887 return b.useEffect( () => { 23888 const o = r.current; 23889 if (o) 23890 return n.branches.add(o), 23891 () => { 23892 n.branches.delete(o) 23893 } 23894 } 23895 , [n.branches]), 23896 h.jsx(Ce.div, { 23897 ...e, 23898 ref: i 23899 }) 23900} 23901); 23902nre.displayName = tre; 23903function rre(e, t=globalThis == null ? void 0 : globalThis.document) { 23904 const n = rn(e) 23905 , r = b.useRef(!1) 23906 , i = b.useRef( () => {} 23907 ); 23908 return b.useEffect( () => { 23909 const o = s => { 23910 if (s.target && !r.current) { 23911 let l = function() { 23912 j3(Jne, n, c, { 23913 discrete: !0 23914 }) 23915 }; 23916 const c = { 23917 originalEvent: s 23918 }; 23919 s.pointerType === "touch" ? (t.removeEventListener("click", i.current), 23920 i.current = l, 23921 t.addEventListener("click", i.current, { 23922 once: !0 23923 })) : l() 23924 } else 23925 t.removeEventListener("click", i.current); 23926 r.current = !1 23927 } 23928 , a = window.setTimeout( () => { 23929 t.addEventListener("pointerdown", o) 23930 } 23931 , 0); 23932 return () => { 23933 window.clearTimeout(a), 23934 t.removeEventListener("pointerdown", o), 23935 t.removeEventListener("click", i.current) 23936 } 23937 } 23938 , [t, n]), 23939 { 23940 onPointerDownCapture: () => r.current = !0 23941 } 23942} 23943function ire(e, t=globalThis == null ? void 0 : globalThis.document) { 23944 const n = rn(e) 23945 , r = b.useRef(!1); 23946 return b.useEffect( () => { 23947 const i = o => { 23948 o.target && !r.current && j3(ere, n, { 23949 originalEvent: o 23950 }, { 23951 discrete: !1 23952 }) 23953 } 23954 ; 23955 return t.addEventListener("focusin", i), 23956 () => t.removeEventListener("focusin", i) 23957 } 23958 , [t, n]), 23959 { 23960 onFocusCapture: () => r.current = !0, 23961 onBlurCapture: () => r.current = !1 23962 } 23963} 23964function DE() { 23965 const e = new CustomEvent(Bw); 23966 document.dispatchEvent(e) 23967} 23968function j3(e, t, n, {discrete: r}) { 23969 const i = n.originalEvent.target 23970 , o = new CustomEvent(e,{ 23971 bubbles: !1, 23972 cancelable: !0, 23973 detail: n 23974 }); 23975 t && i.addEventListener(e, t, { 23976 once: !0 23977 }), 23978 r ? A3(i, o) : i.dispatchEvent(o) 23979} 23980var fx = 0; 23981function C_() { 23982 b.useEffect( () => { 23983 const e = document.querySelectorAll("[data-radix-focus-guard]"); 23984 return document.body.insertAdjacentElement("afterbegin", e[0] ?? IE()), 23985 document.body.insertAdjacentElement("beforeend", e[1] ?? IE()), 23986 fx++, 23987 () => { 23988 fx === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach(t => t.remove()), 23989 fx-- 23990 } 23991 } 23992 , []) 23993} 23994function IE() { 23995 const e = document.createElement("span"); 23996 return e.setAttribute("data-radix-focus-guard", ""), 23997 e.tabIndex = 0, 23998 e.style.outline = "none", 23999 e.style.opacity = "0", 24000 e.style.position = "fixed", 24001 e.style.pointerEvents = "none", 24002 e 24003} 24004var hx = "focusScope.autoFocusOnMount" 24005 , px = "focusScope.autoFocusOnUnmount" 24006 , $E = { 24007 bubbles: !1, 24008 cancelable: !0 24009} 24010 , ore = "FocusScope" 24011 , ov = b.forwardRef( (e, t) => { 24012 const {loop: n=!1, trapped: r=!1, onMountAutoFocus: i, onUnmountAutoFocus: o, ...a} = e 24013 , [s,l] = b.useState(null) 24014 , c = rn(i) 24015 , u = rn(o) 24016 , d = b.useRef(null) 24017 , f = Ye(t, m => l(m)) 24018 , p = b.useRef({ 24019 paused: !1, 24020 pause() { 24021 this.paused = !0 24022 }, 24023 resume() { 24024 this.paused = !1 24025 } 24026 }).current; 24027 b.useEffect( () => { 24028 if (r) { 24029 let m = function(w) { 24030 if (p.paused || !s) 24031 return; 24032 const P = w.target; 24033 s.contains(P) ? d.current = P : Ho(d.current, { 24034 select: !0 24035 }) 24036 } 24037 , x = function(w) { 24038 if (p.paused || !s) 24039 return; 24040 const P = w.relatedTarget; 24041 P !== null && (s.contains(P) || Ho(d.current, { 24042 select: !0 24043 })) 24044 } 24045 , v = function(w) { 24046 if (document.activeElement === document.body) 24047 for (const S of w) 24048 S.removedNodes.length > 0 && Ho(s) 24049 }; 24050 document.addEventListener("focusin", m), 24051 document.addEventListener("focusout", x); 24052 const y = new MutationObserver(v); 24053 return s && y.observe(s, { 24054 childList: !0, 24055 subtree: !0 24056 }), 24057 () => { 24058 document.removeEventListener("focusin", m), 24059 document.removeEventListener("focusout", x), 24060 y.disconnect() 24061 } 24062 } 24063 } 24064 , [r, s, p.paused]), 24065 b.useEffect( () => { 24066 if (s) { 24067 FE.add(p); 24068 const m = document.activeElement; 24069 if (!s.contains(m)) { 24070 const v = new CustomEvent(hx,$E); 24071 s.addEventListener(hx, c), 24072 s.dispatchEvent(v), 24073 v.defaultPrevented || (are(dre(N3(s)), { 24074 select: !0 24075 }), 24076 document.activeElement === m && Ho(s)) 24077 } 24078 return () => { 24079 s.removeEventListener(hx, c), 24080 setTimeout( () => { 24081 const v = new CustomEvent(px,$E); 24082 s.addEventListener(px, u), 24083 s.dispatchEvent(v), 24084 v.defaultPrevented || Ho(m ?? document.body, { 24085 select: !0 24086 }), 24087 s.removeEventListener(px, u), 24088 FE.remove(p) 24089 } 24090 , 0) 24091 } 24092 } 24093 } 24094 , [s, c, u, p]); 24095 const g = b.useCallback(m => { 24096 if (!n && !r || p.paused) 24097 return; 24098 const x = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey 24099 , v = document.activeElement; 24100 if (x && v) { 24101 const y = m.currentTarget 24102 , [w,P] = sre(y); 24103 w && P ? !m.shiftKey && v === P ? (m.preventDefault(), 24104 n && Ho(w, { 24105 select: !0 24106 })) : m.shiftKey && v === w && (m.preventDefault(), 24107 n && Ho(P, { 24108 select: !0 24109 })) : v === y && m.preventDefault() 24110 } 24111 } 24112 , [n, r, p.paused]); 24113 return h.jsx(Ce.div, { 24114 tabIndex: -1, 24115 ...a, 24116 ref: f, 24117 onKeyDown: g 24118 }) 24119} 24120); 24121ov.displayName = ore; 24122function are(e, {select: t=!1}={}) { 24123 const n = document.activeElement; 24124 for (const r of e) 24125 if (Ho(r, { 24126 select: t 24127 }), 24128 document.activeElement !== n) 24129 return 24130} 24131function sre(e) { 24132 const t = N3(e) 24133 , n = LE(t, e) 24134 , r = LE(t.reverse(), e); 24135 return [n, r] 24136} 24137function N3(e) { 24138 const t = [] 24139 , n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { 24140 acceptNode: r => { 24141 const i = r.tagName === "INPUT" && r.type === "hidden"; 24142 return r.disabled || r.hidden || i ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP 24143 } 24144 }); 24145 for (; n.nextNode(); ) 24146 t.push(n.currentNode); 24147 return t 24148} 24149function LE(e, t) { 24150 for (const n of e) 24151 if (!lre(n, { 24152 upTo: t 24153 })) 24154 return n 24155} 24156function lre(e, {upTo: t}) { 24157 if (getComputedStyle(e).visibility === "hidden") 24158 return !0; 24159 for (; e; ) { 24160 if (t !== void 0 && e === t) 24161 return !1; 24162 if (getComputedStyle(e).display === "none") 24163 return !0; 24164 e = e.parentElement 24165 } 24166 return !1 24167} 24168function cre(e) { 24169 return e instanceof HTMLInputElement && "select"in e 24170} 24171function Ho(e, {select: t=!1}={}) { 24172 if (e && e.focus) { 24173 const n = document.activeElement; 24174 e.focus({ 24175 preventScroll: !0 24176 }), 24177 e !== n && cre(e) && t && e.select() 24178 } 24179} 24180var FE = ure(); 24181function ure() { 24182 let e = []; 24183 return { 24184 add(t) { 24185 const n = e[0]; 24186 t !== n && (n == null || n.pause()), 24187 e = BE(e, t), 24188 e.unshift(t) 24189 }, 24190 remove(t) { 24191 var n; 24192 e = BE(e, t), 24193 (n = e[0]) == null || n.resume() 24194 } 24195 } 24196} 24197function BE(e, t) { 24198 const n = [...e] 24199 , r = n.indexOf(t); 24200 return r !== -1 && n.splice(r, 1), 24201 n 24202} 24203function dre(e) { 24204 return e.filter(t => t.tagName !== "A") 24205} 24206var fre = v$.useId || ( () => {} 24207) 24208 , hre = 0; 24209function Ir(e) { 24210 const [t,n] = b.useState(fre()); 24211 return $t( () => { 24212 n(r => r ?? String(hre++)) 24213 } 24214 , [e]), 24215 t ? `radix-${t}` : "" 24216} 24217const pre = ["top", "right", "bottom", "left"] 24218 , Ca = Math.min 24219 , lr = Math.max 24220 , ig = Math.round 24221 , Cp = Math.floor 24222 , Li = e => ({ 24223 x: e, 24224 y: e 24225}) 24226 , mre = { 24227 left: "right", 24228 right: "left", 24229 bottom: "top", 24230 top: "bottom" 24231} 24232 , gre = { 24233 start: "end", 24234 end: "start" 24235}; 24236function Vw(e, t, n) { 24237 return lr(e, Ca(t, n)) 24238} 24239function To(e, t) { 24240 return typeof e == "function" ? e(t) : e 24241} 24242function Co(e) { 24243 return e.split("-")[0] 24244} 24245function lu(e) { 24246 return e.split("-")[1] 24247} 24248function O_(e) { 24249 return e === "x" ? "y" : "x" 24250} 24251function A_(e) { 24252 return e === "y" ? "height" : "width" 24253} 24254function Oa(e) { 24255 return ["top", "bottom"].includes(Co(e)) ? "y" : "x" 24256} 24257function E_(e) { 24258 return O_(Oa(e)) 24259} 24260function yre(e, t, n) { 24261 n === void 0 && (n = !1); 24262 const r = lu(e) 24263 , i = E_(e) 24264 , o = A_(i); 24265 let a = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top"; 24266 return t.reference[o] > t.floating[o] && (a = og(a)), 24267 [a, og(a)] 24268} 24269function vre(e) { 24270 const t = og(e); 24271 return [Uw(e), t, Uw(t)] 24272} 24273function Uw(e) { 24274 return e.replace(/start|end/g, t => gre[t]) 24275} 24276function xre(e, t, n) { 24277 const r = ["left", "right"] 24278 , i = ["right", "left"] 24279 , o = ["top", "bottom"] 24280 , a = ["bottom", "top"]; 24281 switch (e) { 24282 case "top": 24283 case "bottom": 24284 return n ? t ? i : r : t ? r : i; 24285 case "left": 24286 case "right": 24287 return t ? o : a; 24288 default: 24289 return [] 24290 } 24291} 24292function bre(e, t, n, r) { 24293 const i = lu(e); 24294 let o = xre(Co(e), n === "start", r); 24295 return i && (o = o.map(a => a + "-" + i), 24296 t && (o = o.concat(o.map(Uw)))), 24297 o 24298} 24299function og(e) { 24300 return e.replace(/left|right|bottom|top/g, t => mre[t]) 24301} 24302function wre(e) { 24303 return { 24304 top: 0, 24305 right: 0, 24306 bottom: 0, 24307 left: 0, 24308 ...e 24309 } 24310} 24311function M3(e) { 24312 return typeof e != "number" ? wre(e) : { 24313 top: e, 24314 right: e, 24315 bottom: e, 24316 left: e 24317 } 24318} 24319function ag(e) { 24320 const {x: t, y: n, width: r, height: i} = e; 24321 return { 24322 width: r, 24323 height: i, 24324 top: n, 24325 left: t, 24326 right: t + r, 24327 bottom: n + i, 24328 x: t, 24329 y: n 24330 } 24331} 24332function VE(e, t, n) { 24333 let {reference: r, floating: i} = e; 24334 const o = Oa(t) 24335 , a = E_(t) 24336 , s = A_(a) 24337 , l = Co(t) 24338 , c = o === "y" 24339 , u = r.x + r.width / 2 - i.width / 2 24340 , d = r.y + r.height / 2 - i.height / 2 24341 , f = r[s] / 2 - i[s] / 2; 24342 let p; 24343 switch (l) { 24344 case "top": 24345 p = { 24346 x: u, 24347 y: r.y - i.height 24348 }; 24349 break; 24350 case "bottom": 24351 p = { 24352 x: u, 24353 y: r.y + r.height 24354 }; 24355 break; 24356 case "right": 24357 p = { 24358 x: r.x + r.width, 24359 y: d 24360 }; 24361 break; 24362 case "left": 24363 p = { 24364 x: r.x - i.width, 24365 y: d 24366 }; 24367 break; 24368 default: 24369 p = { 24370 x: r.x, 24371 y: r.y 24372 } 24373 } 24374 switch (lu(t)) { 24375 case "start": 24376 p[a] -= f * (n && c ? -1 : 1); 24377 break; 24378 case "end": 24379 p[a] += f * (n && c ? -1 : 1); 24380 break 24381 } 24382 return p 24383} 24384const Sre = async (e, t, n) => { 24385 const {placement: r="bottom", strategy: i="absolute", middleware: o=[], platform: a} = n 24386 , s = o.filter(Boolean) 24387 , l = await (a.isRTL == null ? void 0 : a.isRTL(t)); 24388 let c = await a.getElementRects({ 24389 reference: e, 24390 floating: t, 24391 strategy: i 24392 }) 24393 , {x: u, y: d} = VE(c, r, l) 24394 , f = r 24395 , p = {} 24396 , g = 0; 24397 for (let m = 0; m < s.length; m++) { 24398 const {name: x, fn: v} = s[m] 24399 , {x: y, y: w, data: P, reset: S} = await v({ 24400 x: u, 24401 y: d, 24402 initialPlacement: r, 24403 placement: f, 24404 strategy: i, 24405 middlewareData: p, 24406 rects: c, 24407 platform: a, 24408 elements: { 24409 reference: e, 24410 floating: t 24411 } 24412 }); 24413 u = y ?? u, 24414 d = w ?? d, 24415 p = { 24416 ...p, 24417 [x]: { 24418 ...p[x], 24419 ...P 24420 } 24421 }, 24422 S && g <= 50 && (g++, 24423 typeof S == "object" && (S.placement && (f = S.placement), 24424 S.rects && (c = S.rects === !0 ? await a.getElementRects({ 24425 reference: e, 24426 floating: t, 24427 strategy: i 24428 }) : S.rects), 24429 {x: u, y: d} = VE(c, f, l)), 24430 m = -1) 24431 } 24432 return { 24433 x: u, 24434 y: d, 24435 placement: f, 24436 strategy: i, 24437 middlewareData: p 24438 } 24439} 24440; 24441async function pf(e, t) { 24442 var n; 24443 t === void 0 && (t = {}); 24444 const {x: r, y: i, platform: o, rects: a, elements: s, strategy: l} = e 24445 , {boundary: c="clippingAncestors", rootBoundary: u="viewport", elementContext: d="floating", altBoundary: f=!1, padding: p=0} = To(t, e) 24446 , g = M3(p) 24447 , x = s[f ? d === "floating" ? "reference" : "floating" : d] 24448 , v = ag(await o.getClippingRect({ 24449 element: (n = await (o.isElement == null ? void 0 : o.isElement(x))) == null || n ? x : x.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)), 24450 boundary: c, 24451 rootBoundary: u, 24452 strategy: l 24453 })) 24454 , y = d === "floating" ? { 24455 x: r, 24456 y: i, 24457 width: a.floating.width, 24458 height: a.floating.height 24459 } : a.reference 24460 , w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)) 24461 , P = await (o.isElement == null ? void 0 : o.isElement(w)) ? await (o.getScale == null ? void 0 : o.getScale(w)) || { 24462 x: 1, 24463 y: 1 24464 } : { 24465 x: 1, 24466 y: 1 24467 } 24468 , S = ag(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({ 24469 elements: s, 24470 rect: y, 24471 offsetParent: w, 24472 strategy: l 24473 }) : y); 24474 return { 24475 top: (v.top - S.top + g.top) / P.y, 24476 bottom: (S.bottom - v.bottom + g.bottom) / P.y, 24477 left: (v.left - S.left + g.left) / P.x, 24478 right: (S.right - v.right + g.right) / P.x 24479 } 24480} 24481const Pre = e => ({ 24482 name: "arrow", 24483 options: e, 24484 async fn(t) { 24485 const {x: n, y: r, placement: i, rects: o, platform: a, elements: s, middlewareData: l} = t 24486 , {element: c, padding: u=0} = To(e, t) || {}; 24487 if (c == null) 24488 return {}; 24489 const d = M3(u) 24490 , f = { 24491 x: n, 24492 y: r 24493 } 24494 , p = E_(i) 24495 , g = A_(p) 24496 , m = await a.getDimensions(c) 24497 , x = p === "y" 24498 , v = x ? "top" : "left" 24499 , y = x ? "bottom" : "right" 24500 , w = x ? "clientHeight" : "clientWidth" 24501 , P = o.reference[g] + o.reference[p] - f[p] - o.floating[g] 24502 , S = f[p] - o.reference[p] 24503 , _ = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c)); 24504 let T = _ ? _[w] : 0; 24505 (!T || !await (a.isElement == null ? void 0 : a.isElement(_))) && (T = s.floating[w] || o.floating[g]); 24506 const C = P / 2 - S / 2 24507 , O = T / 2 - m[g] / 2 - 1 24508 , A = Ca(d[v], O) 24509 , E = Ca(d[y], O) 24510 , j = A 24511 , $ = T - m[g] - E 24512 , R = T / 2 - m[g] / 2 + C 24513 , L = Vw(j, R, $) 24514 , B = !l.arrow && lu(i) != null && R !== L && o.reference[g] / 2 - (R < j ? A : E) - m[g] / 2 < 0 24515 , U = B ? R < j ? R - j : R - $ : 0; 24516 return { 24517 [p]: f[p] + U, 24518 data: { 24519 [p]: L, 24520 centerOffset: R - L - U, 24521 ...B && { 24522 alignmentOffset: U 24523 } 24524 }, 24525 reset: B 24526 } 24527 } 24528}) 24529 , _re = function(e) { 24530 return e === void 0 && (e = {}), 24531 { 24532 name: "flip", 24533 options: e, 24534 async fn(t) { 24535 var n, r; 24536 const {placement: i, middlewareData: o, rects: a, initialPlacement: s, platform: l, elements: c} = t 24537 , {mainAxis: u=!0, crossAxis: d=!0, fallbackPlacements: f, fallbackStrategy: p="bestFit", fallbackAxisSideDirection: g="none", flipAlignment: m=!0, ...x} = To(e, t); 24538 if ((n = o.arrow) != null && n.alignmentOffset) 24539 return {}; 24540 const v = Co(i) 24541 , y = Oa(s) 24542 , w = Co(s) === s 24543 , P = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)) 24544 , S = f || (w || !m ? [og(s)] : vre(s)) 24545 , _ = g !== "none"; 24546 !f && _ && S.push(...bre(s, m, g, P)); 24547 const T = [s, ...S] 24548 , C = await pf(t, x) 24549 , O = []; 24550 let A = ((r = o.flip) == null ? void 0 : r.overflows) || []; 24551 if (u && O.push(C[v]), 24552 d) { 24553 const R = yre(i, a, P); 24554 O.push(C[R[0]], C[R[1]]) 24555 } 24556 if (A = [...A, { 24557 placement: i, 24558 overflows: O 24559 }], 24560 !O.every(R => R <= 0)) { 24561 var E, j; 24562 const R = (((E = o.flip) == null ? void 0 : E.index) || 0) + 1 24563 , L = T[R]; 24564 if (L) 24565 return { 24566 data: { 24567 index: R, 24568 overflows: A 24569 }, 24570 reset: { 24571 placement: L 24572 } 24573 }; 24574 let B = (j = A.filter(U => U.overflows[0] <= 0).sort( (U, N) => U.overflows[1] - N.overflows[1])[0]) == null ? void 0 : j.placement; 24575 if (!B) 24576 switch (p) { 24577 case "bestFit": 24578 { 24579 var $; 24580 const U = ($ = A.filter(N => { 24581 if (_) { 24582 const D = Oa(N.placement); 24583 return D === y || D === "y" 24584 } 24585 return !0 24586 } 24587 ).map(N => [N.placement, N.overflows.filter(D => D > 0).reduce( (D, W) => D + W, 0)]).sort( (N, D) => N[1] - D[1])[0]) == null ? void 0 : $[0]; 24588 U && (B = U); 24589 break 24590 } 24591 case "initialPlacement": 24592 B = s; 24593 break 24594 } 24595 if (i !== B) 24596 return { 24597 reset: { 24598 placement: B 24599 } 24600 } 24601 } 24602 return {} 24603 } 24604 } 24605}; 24606function UE(e, t) { 24607 return { 24608 top: e.top - t.height, 24609 right: e.right - t.width, 24610 bottom: e.bottom - t.height, 24611 left: e.left - t.width 24612 } 24613} 24614function zE(e) { 24615 return pre.some(t => e[t] >= 0) 24616} 24617const Tre = function(e) { 24618 return e === void 0 && (e = {}), 24619 { 24620 name: "hide", 24621 options: e, 24622 async fn(t) { 24623 const {rects: n} = t 24624 , {strategy: r="referenceHidden", ...i} = To(e, t); 24625 switch (r) { 24626 case "referenceHidden": 24627 { 24628 const o = await pf(t, { 24629 ...i, 24630 elementContext: "reference" 24631 }) 24632 , a = UE(o, n.reference); 24633 return { 24634 data: { 24635 referenceHiddenOffsets: a, 24636 referenceHidden: zE(a) 24637 } 24638 } 24639 } 24640 case "escaped": 24641 { 24642 const o = await pf(t, { 24643 ...i, 24644 altBoundary: !0 24645 }) 24646 , a = UE(o, n.floating); 24647 return { 24648 data: { 24649 escapedOffsets: a, 24650 escaped: zE(a) 24651 } 24652 } 24653 } 24654 default: 24655 return {} 24656 } 24657 } 24658 } 24659}; 24660async function Cre(e, t) { 24661 const {placement: n, platform: r, elements: i} = e 24662 , o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)) 24663 , a = Co(n) 24664 , s = lu(n) 24665 , l = Oa(n) === "y" 24666 , c = ["left", "top"].includes(a) ? -1 : 1 24667 , u = o && l ? -1 : 1 24668 , d = To(t, e); 24669 let {mainAxis: f, crossAxis: p, alignmentAxis: g} = typeof d == "number" ? { 24670 mainAxis: d, 24671 crossAxis: 0, 24672 alignmentAxis: null 24673 } : { 24674 mainAxis: d.mainAxis || 0, 24675 crossAxis: d.crossAxis || 0, 24676 alignmentAxis: d.alignmentAxis 24677 }; 24678 return s && typeof g == "number" && (p = s === "end" ? g * -1 : g), 24679 l ? { 24680 x: p * u, 24681 y: f * c 24682 } : { 24683 x: f * c, 24684 y: p * u 24685 } 24686} 24687const Ore = function(e) { 24688 return e === void 0 && (e = 0), 24689 { 24690 name: "offset", 24691 options: e, 24692 async fn(t) { 24693 var n, r; 24694 const {x: i, y: o, placement: a, middlewareData: s} = t 24695 , l = await Cre(t, e); 24696 return a === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : { 24697 x: i + l.x, 24698 y: o + l.y, 24699 data: { 24700 ...l, 24701 placement: a 24702 } 24703 } 24704 } 24705 } 24706} 24707 , Are = function(e) { 24708 return e === void 0 && (e = {}), 24709 { 24710 name: "shift", 24711 options: e, 24712 async fn(t) { 24713 const {x: n, y: r, placement: i} = t 24714 , {mainAxis: o=!0, crossAxis: a=!1, limiter: s={ 24715 fn: x => { 24716 let {x: v, y} = x; 24717 return { 24718 x: v, 24719 y 24720 } 24721 } 24722 }, ...l} = To(e, t) 24723 , c = { 24724 x: n, 24725 y: r 24726 } 24727 , u = await pf(t, l) 24728 , d = Oa(Co(i)) 24729 , f = O_(d); 24730 let p = c[f] 24731 , g = c[d]; 24732 if (o) { 24733 const x = f === "y" ? "top" : "left" 24734 , v = f === "y" ? "bottom" : "right" 24735 , y = p + u[x] 24736 , w = p - u[v]; 24737 p = Vw(y, p, w) 24738 } 24739 if (a) { 24740 const x = d === "y" ? "top" : "left" 24741 , v = d === "y" ? "bottom" : "right" 24742 , y = g + u[x] 24743 , w = g - u[v]; 24744 g = Vw(y, g, w) 24745 } 24746 const m = s.fn({ 24747 ...t, 24748 [f]: p, 24749 [d]: g 24750 }); 24751 return { 24752 ...m, 24753 data: { 24754 x: m.x - n, 24755 y: m.y - r, 24756 enabled: { 24757 [f]: o, 24758 [d]: a 24759 } 24760 } 24761 } 24762 } 24763 } 24764} 24765 , Ere = function(e) { 24766 return e === void 0 && (e = {}), 24767 { 24768 options: e, 24769 fn(t) { 24770 const {x: n, y: r, placement: i, rects: o, middlewareData: a} = t 24771 , {offset: s=0, mainAxis: l=!0, crossAxis: c=!0} = To(e, t) 24772 , u = { 24773 x: n, 24774 y: r 24775 } 24776 , d = Oa(i) 24777 , f = O_(d); 24778 let p = u[f] 24779 , g = u[d]; 24780 const m = To(s, t) 24781 , x = typeof m == "number" ? { 24782 mainAxis: m, 24783 crossAxis: 0 24784 } : { 24785 mainAxis: 0, 24786 crossAxis: 0, 24787 ...m 24788 }; 24789 if (l) { 24790 const w = f === "y" ? "height" : "width" 24791 , P = o.reference[f] - o.floating[w] + x.mainAxis 24792 , S = o.reference[f] + o.reference[w] - x.mainAxis; 24793 p < P ? p = P : p > S && (p = S) 24794 } 24795 if (c) { 24796 var v, y; 24797 const w = f === "y" ? "width" : "height" 24798 , P = ["top", "left"].includes(Co(i)) 24799 , S = o.reference[d] - o.floating[w] + (P && ((v = a.offset) == null ? void 0 : v[d]) || 0) + (P ? 0 : x.crossAxis) 24800 , _ = o.reference[d] + o.reference[w] + (P ? 0 : ((y = a.offset) == null ? void 0 : y[d]) || 0) - (P ? x.crossAxis : 0); 24801 g < S ? g = S : g > _ && (g = _) 24802 } 24803 return { 24804 [f]: p, 24805 [d]: g 24806 } 24807 } 24808 } 24809} 24810 , jre = function(e) { 24811 return e === void 0 && (e = {}), 24812 { 24813 name: "size", 24814 options: e, 24815 async fn(t) { 24816 var n, r; 24817 const {placement: i, rects: o, platform: a, elements: s} = t 24818 , {apply: l= () => {} 24819 , ...c} = To(e, t) 24820 , u = await pf(t, c) 24821 , d = Co(i) 24822 , f = lu(i) 24823 , p = Oa(i) === "y" 24824 , {width: g, height: m} = o.floating; 24825 let x, v; 24826 d === "top" || d === "bottom" ? (x = d, 24827 v = f === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (v = d, 24828 x = f === "end" ? "top" : "bottom"); 24829 const y = m - u.top - u.bottom 24830 , w = g - u.left - u.right 24831 , P = Ca(m - u[x], y) 24832 , S = Ca(g - u[v], w) 24833 , _ = !t.middlewareData.shift; 24834 let T = P 24835 , C = S; 24836 if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = w), 24837 (r = t.middlewareData.shift) != null && r.enabled.y && (T = y), 24838 _ && !f) { 24839 const A = lr(u.left, 0) 24840 , E = lr(u.right, 0) 24841 , j = lr(u.top, 0) 24842 , $ = lr(u.bottom, 0); 24843 p ? C = g - 2 * (A !== 0 || E !== 0 ? A + E : lr(u.left, u.right)) : T = m - 2 * (j !== 0 || $ !== 0 ? j + $ : lr(u.top, u.bottom)) 24844 } 24845 await l({ 24846 ...t, 24847 availableWidth: C, 24848 availableHeight: T 24849 }); 24850 const O = await a.getDimensions(s.floating); 24851 return g !== O.width || m !== O.height ? { 24852 reset: { 24853 rects: !0 24854 } 24855 } : {} 24856 } 24857 } 24858}; 24859function av() { 24860 return typeof window < "u" 24861} 24862function cu(e) { 24863 return k3(e) ? (e.nodeName || "").toLowerCase() : "#document" 24864} 24865function mr(e) { 24866 var t; 24867 return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window 24868} 24869function Yi(e) { 24870 var t; 24871 return (t = (k3(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement 24872} 24873function k3(e) { 24874 return av() ? e instanceof Node || e instanceof mr(e).Node : !1 24875} 24876function mi(e) { 24877 return av() ? e instanceof Element || e instanceof mr(e).Element : !1 24878} 24879function zi(e) { 24880 return av() ? e instanceof HTMLElement || e instanceof mr(e).HTMLElement : !1 24881} 24882function WE(e) { 24883 return !av() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof mr(e).ShadowRoot 24884} 24885function Rh(e) { 24886 const {overflow: t, overflowX: n, overflowY: r, display: i} = gi(e); 24887 return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i) 24888} 24889function Nre(e) { 24890 return ["table", "td", "th"].includes(cu(e)) 24891} 24892function sv(e) { 24893 return [":popover-open", ":modal"].some(t => { 24894 try { 24895 return e.matches(t) 24896 } catch { 24897 return !1 24898 } 24899 } 24900 ) 24901} 24902function j_(e) { 24903 const t = N_() 24904 , n = mi(e) ? gi(e) : e;
vendor: 1,721 bytes, lines 24905-24959
24905 return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some(r => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some(r => (n.contain || "").includes(r)) 24906} 24907function Mre(e) { 24908 let t = Aa(e); 24909 for (; zi(t) && !Ec(t); ) { 24910 if (j_(t)) 24911 return t; 24912 if (sv(t)) 24913 return null; 24914 t = Aa(t) 24915 } 24916 return null 24917} 24918function N_() { 24919 return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none") 24920} 24921function Ec(e) { 24922 return ["html", "body", "#document"].includes(cu(e)) 24923} 24924function gi(e) { 24925 return mr(e).getComputedStyle(e) 24926} 24927function lv(e) { 24928 return mi(e) ? { 24929 scrollLeft: e.scrollLeft, 24930 scrollTop: e.scrollTop 24931 } : { 24932 scrollLeft: e.scrollX, 24933 scrollTop: e.scrollY 24934 } 24935} 24936function Aa(e) { 24937 if (cu(e) === "html") 24938 return e; 24939 const t = e.assignedSlot || e.parentNode || WE(e) && e.host || Yi(e); 24940 return WE(t) ? t.host : t 24941} 24942function R3(e) { 24943 const t = Aa(e); 24944 return Ec(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : zi(t) && Rh(t) ? t : R3(t) 24945} 24946function mf(e, t, n) { 24947 var r; 24948 t === void 0 && (t = []), 24949 n === void 0 && (n = !0); 24950 const i = R3(e) 24951 , o = i === ((r = e.ownerDocument) == null ? void 0 : r.body) 24952 , a = mr(i); 24953 if (o) { 24954 const s = zw(a); 24955 return t.concat(a, a.visualViewport || [], Rh(i) ? i : [], s && n ? mf(s) : []) 24956 } 24957 return t.concat(i, mf(i, [], n)) 24958} 24959function zw(e) {
vendor: 1,038 bytes, lines 24960-25001
24960 return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null 24961} 24962function D3(e) { 24963 const t = gi(e); 24964 let n = parseFloat(t.width) || 0 24965 , r = parseFloat(t.height) || 0; 24966 const i = zi(e) 24967 , o = i ? e.offsetWidth : n 24968 , a = i ? e.offsetHeight : r 24969 , s = ig(n) !== o || ig(r) !== a; 24970 return s && (n = o, 24971 r = a), 24972 { 24973 width: n, 24974 height: r, 24975 $: s 24976 } 24977} 24978function M_(e) { 24979 return mi(e) ? e : e.contextElement 24980} 24981function Gl(e) { 24982 const t = M_(e); 24983 if (!zi(t)) 24984 return Li(1); 24985 const n = t.getBoundingClientRect() 24986 , {width: r, height: i, $: o} = D3(t); 24987 let a = (o ? ig(n.width) : n.width) / r 24988 , s = (o ? ig(n.height) : n.height) / i; 24989 return (!a || !Number.isFinite(a)) && (a = 1), 24990 (!s || !Number.isFinite(s)) && (s = 1), 24991 { 24992 x: a, 24993 y: s 24994 } 24995} 24996const kre = Li(0); 24997function I3(e) { 24998 const t = mr(e); 24999 return !N_() || !t.visualViewport ? kre : { 25000 x: t.visualViewport.offsetLeft, 25001 y: t.visualVie
vendor: 4,462 bytes, lines 25001-25182
25001wport.offsetTop 25002 } 25003} 25004function Rre(e, t, n) { 25005 return t === void 0 && (t = !1), 25006 !n || t && n !== mr(e) ? !1 : t 25007} 25008function Us(e, t, n, r) { 25009 t === void 0 && (t = !1), 25010 n === void 0 && (n = !1); 25011 const i = e.getBoundingClientRect() 25012 , o = M_(e); 25013 let a = Li(1); 25014 t && (r ? mi(r) && (a = Gl(r)) : a = Gl(e)); 25015 const s = Rre(o, n, r) ? I3(o) : Li(0); 25016 let l = (i.left + s.x) / a.x 25017 , c = (i.top + s.y) / a.y 25018 , u = i.width / a.x 25019 , d = i.height / a.y; 25020 if (o) { 25021 const f = mr(o) 25022 , p = r && mi(r) ? mr(r) : r; 25023 let g = f 25024 , m = zw(g); 25025 for (; m && r && p !== g; ) { 25026 const x = Gl(m) 25027 , v = m.getBoundingClientRect() 25028 , y = gi(m) 25029 , w = v.left + (m.clientLeft + parseFloat(y.paddingLeft)) * x.x 25030 , P = v.top + (m.clientTop + parseFloat(y.paddingTop)) * x.y; 25031 l *= x.x, 25032 c *= x.y, 25033 u *= x.x, 25034 d *= x.y, 25035 l += w, 25036 c += P, 25037 g = mr(m), 25038 m = zw(g) 25039 } 25040 } 25041 return ag({ 25042 width: u, 25043 height: d, 25044 x: l, 25045 y: c 25046 }) 25047} 25048function k_(e, t) { 25049 const n = lv(e).scrollLeft; 25050 return t ? t.left + n : Us(Yi(e)).left + n 25051} 25052function $3(e, t, n) { 25053 n === void 0 && (n = !1); 25054 const r = e.getBoundingClientRect() 25055 , i = r.left + t.scrollLeft - (n ? 0 : k_(e, r)) 25056 , o = r.top + t.scrollTop; 25057 return { 25058 x: i, 25059 y: o 25060 } 25061} 25062function Dre(e) { 25063 let {elements: t, rect: n, offsetParent: r, strategy: i} = e; 25064 const o = i === "fixed" 25065 , a = Yi(r) 25066 , s = t ? sv(t.floating) : !1; 25067 if (r === a || s && o) 25068 return n; 25069 let l = { 25070 scrollLeft: 0, 25071 scrollTop: 0 25072 } 25073 , c = Li(1); 25074 const u = Li(0) 25075 , d = zi(r); 25076 if ((d || !d && !o) && ((cu(r) !== "body" || Rh(a)) && (l = lv(r)), 25077 zi(r))) { 25078 const p = Us(r); 25079 c = Gl(r), 25080 u.x = p.x + r.clientLeft, 25081 u.y = p.y + r.clientTop 25082 } 25083 const f = a && !d && !o ? $3(a, l, !0) : Li(0); 25084 return { 25085 width: n.width * c.x, 25086 height: n.height * c.y, 25087 x: n.x * c.x - l.scrollLeft * c.x + u.x + f.x, 25088 y: n.y * c.y - l.scrollTop * c.y + u.y + f.y 25089 } 25090} 25091function Ire(e) { 25092 return Array.from(e.getClientRects()) 25093} 25094function $re(e) { 25095 const t = Yi(e) 25096 , n = lv(e) 25097 , r = e.ownerDocument.body 25098 , i = lr(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth) 25099 , o = lr(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight); 25100 let a = -n.scrollLeft + k_(e); 25101 const s = -n.scrollTop; 25102 return gi(r).direction === "rtl" && (a += lr(t.clientWidth, r.clientWidth) - i), 25103 { 25104 width: i, 25105 height: o, 25106 x: a, 25107 y: s 25108 } 25109} 25110function Lre(e, t) { 25111 const n = mr(e) 25112 , r = Yi(e) 25113 , i = n.visualViewport; 25114 let o = r.clientWidth 25115 , a = r.clientHeight 25116 , s = 0 25117 , l = 0; 25118 if (i) { 25119 o = i.width, 25120 a = i.height; 25121 const c = N_(); 25122 (!c || c && t === "fixed") && (s = i.offsetLeft, 25123 l = i.offsetTop) 25124 } 25125 return { 25126 width: o, 25127 height: a, 25128 x: s, 25129 y: l 25130 } 25131} 25132function Fre(e, t) { 25133 const n = Us(e, !0, t === "fixed") 25134 , r = n.top + e.clientTop 25135 , i = n.left + e.clientLeft 25136 , o = zi(e) ? Gl(e) : Li(1) 25137 , a = e.clientWidth * o.x 25138 , s = e.clientHeight * o.y 25139 , l = i * o.x 25140 , c = r * o.y; 25141 return { 25142 width: a, 25143 height: s, 25144 x: l, 25145 y: c 25146 } 25147} 25148function HE(e, t, n) { 25149 let r; 25150 if (t === "viewport") 25151 r = Lre(e, n); 25152 else if (t === "document") 25153 r = $re(Yi(e)); 25154 else if (mi(t)) 25155 r = Fre(t, n); 25156 else { 25157 const i = I3(e); 25158 r = { 25159 x: t.x - i.x, 25160 y: t.y - i.y, 25161 width: t.width, 25162 height: t.height 25163 } 25164 } 25165 return ag(r) 25166} 25167function L3(e, t) { 25168 const n = Aa(e); 25169 return n === t || !mi(n) || Ec(n) ? !1 : gi(n).position === "fixed" || L3(n, t) 25170} 25171function Bre(e, t) { 25172 const n = t.get(e); 25173 if (n) 25174 return n; 25175 let r = mf(e, [], !1).filter(s => mi(s) && cu(s) !== "body") 25176 , i = null; 25177 const o = gi(e).position === "fixed"; 25178 let a = o ? Aa(e) : e; 25179 for (; mi(a) && !Ec(a); ) { 25180 const s = gi(a) 25181 , l = j_(a); 25182 !l && s.position === "fixed" && (i = null),
vendor: 25,506 bytes, lines 25183-26153
25183 (o ? !l && !i : !l && s.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Rh(a) && !l && L3(e, a)) ? r = r.filter(u => u !== a) : i = s, 25184 a = Aa(a) 25185 } 25186 return t.set(e, r), 25187 r 25188} 25189function Vre(e) { 25190 let {element: t, boundary: n, rootBoundary: r, strategy: i} = e; 25191 const a = [...n === "clippingAncestors" ? sv(t) ? [] : Bre(t, this._c) : [].concat(n), r] 25192 , s = a[0] 25193 , l = a.reduce( (c, u) => { 25194 const d = HE(t, u, i); 25195 return c.top = lr(d.top, c.top), 25196 c.right = Ca(d.right, c.right), 25197 c.bottom = Ca(d.bottom, c.bottom), 25198 c.left = lr(d.left, c.left), 25199 c 25200 } 25201 , HE(t, s, i)); 25202 return { 25203 width: l.right - l.left, 25204 height: l.bottom - l.top, 25205 x: l.left, 25206 y: l.top 25207 } 25208} 25209function Ure(e) { 25210 const {width: t, height: n} = D3(e); 25211 return { 25212 width: t, 25213 height: n 25214 } 25215} 25216function zre(e, t, n) { 25217 const r = zi(t) 25218 , i = Yi(t) 25219 , o = n === "fixed" 25220 , a = Us(e, !0, o, t); 25221 let s = { 25222 scrollLeft: 0, 25223 scrollTop: 0 25224 }; 25225 const l = Li(0); 25226 if (r || !r && !o) 25227 if ((cu(t) !== "body" || Rh(i)) && (s = lv(t)), 25228 r) { 25229 const f = Us(t, !0, o, t); 25230 l.x = f.x + t.clientLeft, 25231 l.y = f.y + t.clientTop 25232 } else 25233 i && (l.x = k_(i)); 25234 const c = i && !r && !o ? $3(i, s) : Li(0) 25235 , u = a.left + s.scrollLeft - l.x - c.x 25236 , d = a.top + s.scrollTop - l.y - c.y; 25237 return { 25238 x: u, 25239 y: d, 25240 width: a.width, 25241 height: a.height 25242 } 25243} 25244function mx(e) { 25245 return gi(e).position === "static" 25246} 25247function qE(e, t) { 25248 if (!zi(e) || gi(e).position === "fixed") 25249 return null; 25250 if (t) 25251 return t(e); 25252 let n = e.offsetParent; 25253 return Yi(e) === n && (n = n.ownerDocument.body), 25254 n 25255} 25256function F3(e, t) { 25257 const n = mr(e); 25258 if (sv(e)) 25259 return n; 25260 if (!zi(e)) { 25261 let i = Aa(e); 25262 for (; i && !Ec(i); ) { 25263 if (mi(i) && !mx(i)) 25264 return i; 25265 i = Aa(i) 25266 } 25267 return n 25268 } 25269 let r = qE(e, t); 25270 for (; r && Nre(r) && mx(r); ) 25271 r = qE(r, t); 25272 return r && Ec(r) && mx(r) && !j_(r) ? n : r || Mre(e) || n 25273} 25274const Wre = async function(e) { 25275 const t = this.getOffsetParent || F3 25276 , n = this.getDimensions 25277 , r = await n(e.floating); 25278 return { 25279 reference: zre(e.reference, await t(e.floating), e.strategy), 25280 floating: { 25281 x: 0, 25282 y: 0, 25283 width: r.width, 25284 height: r.height 25285 } 25286 } 25287}; 25288function Hre(e) { 25289 return gi(e).direction === "rtl" 25290} 25291const qre = { 25292 convertOffsetParentRelativeRectToViewportRelativeRect: Dre, 25293 getDocumentElement: Yi, 25294 getClippingRect: Vre, 25295 getOffsetParent: F3, 25296 getElementRects: Wre, 25297 getClientRects: Ire, 25298 getDimensions: Ure, 25299 getScale: Gl, 25300 isElement: mi, 25301 isRTL: Hre 25302}; 25303function Kre(e, t) { 25304 let n = null, r; 25305 const i = Yi(e); 25306 function o() { 25307 var s; 25308 clearTimeout(r), 25309 (s = n) == null || s.disconnect(), 25310 n = null 25311 } 25312 function a(s, l) { 25313 s === void 0 && (s = !1), 25314 l === void 0 && (l = 1), 25315 o(); 25316 const {left: c, top: u, width: d, height: f} = e.getBoundingClientRect(); 25317 if (s || t(), 25318 !d || !f) 25319 return; 25320 const p = Cp(u) 25321 , g = Cp(i.clientWidth - (c + d)) 25322 , m = Cp(i.clientHeight - (u + f)) 25323 , x = Cp(c) 25324 , y = { 25325 rootMargin: -p + "px " + -g + "px " + -m + "px " + -x + "px", 25326 threshold: lr(0, Ca(1, l)) || 1 25327 }; 25328 let w = !0; 25329 function P(S) { 25330 const _ = S[0].intersectionRatio; 25331 if (_ !== l) { 25332 if (!w) 25333 return a(); 25334 _ ? a(!1, _) : r = setTimeout( () => { 25335 a(!1, 1e-7) 25336 } 25337 , 1e3) 25338 } 25339 w = !1 25340 } 25341 try { 25342 n = new IntersectionObserver(P,{ 25343 ...y, 25344 root: i.ownerDocument 25345 }) 25346 } catch { 25347 n = new IntersectionObserver(P,y) 25348 } 25349 n.observe(e) 25350 } 25351 return a(!0), 25352 o 25353} 25354function Gre(e, t, n, r) { 25355 r === void 0 && (r = {}); 25356 const {ancestorScroll: i=!0, ancestorResize: o=!0, elementResize: a=typeof ResizeObserver == "function", layoutShift: s=typeof IntersectionObserver == "function", animationFrame: l=!1} = r 25357 , c = M_(e) 25358 , u = i || o ? [...c ? mf(c) : [], ...mf(t)] : []; 25359 u.forEach(v => { 25360 i && v.addEventListener("scroll", n, { 25361 passive: !0 25362 }), 25363 o && v.addEventListener("resize", n) 25364 } 25365 ); 25366 const d = c && s ? Kre(c, n) : null; 25367 let f = -1 25368 , p = null; 25369 a && (p = new ResizeObserver(v => { 25370 let[y] = v; 25371 y && y.target === c && p && (p.unobserve(t), 25372 cancelAnimationFrame(f), 25373 f = requestAnimationFrame( () => { 25374 var w; 25375 (w = p) == null || w.observe(t) 25376 } 25377 )), 25378 n() 25379 } 25380 ), 25381 c && !l && p.observe(c), 25382 p.observe(t)); 25383 let g, m = l ? Us(e) : null; 25384 l && x(); 25385 function x() { 25386 const v = Us(e); 25387 m && (v.x !== m.x || v.y !== m.y || v.width !== m.width || v.height !== m.height) && n(), 25388 m = v, 25389 g = requestAnimationFrame(x) 25390 } 25391 return n(), 25392 () => { 25393 var v; 25394 u.forEach(y => { 25395 i && y.removeEventListener("scroll", n), 25396 o && y.removeEventListener("resize", n) 25397 } 25398 ), 25399 d == null || d(), 25400 (v = p) == null || v.disconnect(), 25401 p = null, 25402 l && cancelAnimationFrame(g) 25403 } 25404} 25405const Yre = Ore 25406 , Xre = Are 25407 , Qre = _re 25408 , Zre = jre 25409 , Jre = Tre 25410 , KE = Pre 25411 , eie = Ere 25412 , tie = (e, t, n) => { 25413 const r = new Map 25414 , i = { 25415 platform: qre, 25416 ...n 25417 } 25418 , o = { 25419 ...i.platform, 25420 _c: r 25421 }; 25422 return Sre(e, t, { 25423 ...i, 25424 platform: o 25425 }) 25426} 25427; 25428var pm = typeof document < "u" ? b.useLayoutEffect : b.useEffect; 25429function sg(e, t) { 25430 if (e === t) 25431 return !0; 25432 if (typeof e != typeof t) 25433 return !1; 25434 if (typeof e == "function" && e.toString() === t.toString()) 25435 return !0; 25436 let n, r, i; 25437 if (e && t && typeof e == "object") { 25438 if (Array.isArray(e)) { 25439 if (n = e.length, 25440 n !== t.length) 25441 return !1; 25442 for (r = n; r-- !== 0; ) 25443 if (!sg(e[r], t[r])) 25444 return !1; 25445 return !0 25446 } 25447 if (i = Object.keys(e), 25448 n = i.length, 25449 n !== Object.keys(t).length) 25450 return !1; 25451 for (r = n; r-- !== 0; ) 25452 if (!{}.hasOwnProperty.call(t, i[r])) 25453 return !1; 25454 for (r = n; r-- !== 0; ) { 25455 const o = i[r]; 25456 if (!(o === "_owner" && e.$$typeof) && !sg(e[o], t[o])) 25457 return !1 25458 } 25459 return !0 25460 } 25461 return e !== e && t !== t 25462} 25463function B3(e) { 25464 return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1 25465} 25466function GE(e, t) { 25467 const n = B3(e); 25468 return Math.round(t * n) / n 25469} 25470function gx(e) { 25471 const t = b.useRef(e); 25472 return pm( () => { 25473 t.current = e 25474 } 25475 ), 25476 t 25477} 25478function nie(e) { 25479 e === void 0 && (e = {}); 25480 const {placement: t="bottom", strategy: n="absolute", middleware: r=[], platform: i, elements: {reference: o, floating: a}={}, transform: s=!0, whileElementsMounted: l, open: c} = e 25481 , [u,d] = b.useState({ 25482 x: 0, 25483 y: 0, 25484 strategy: n, 25485 placement: t, 25486 middlewareData: {}, 25487 isPositioned: !1 25488 }) 25489 , [f,p] = b.useState(r); 25490 sg(f, r) || p(r); 25491 const [g,m] = b.useState(null) 25492 , [x,v] = b.useState(null) 25493 , y = b.useCallback(N => { 25494 N !== _.current && (_.current = N, 25495 m(N)) 25496 } 25497 , []) 25498 , w = b.useCallback(N => { 25499 N !== T.current && (T.current = N, 25500 v(N)) 25501 } 25502 , []) 25503 , P = o || g 25504 , S = a || x 25505 , _ = b.useRef(null) 25506 , T = b.useRef(null) 25507 , C = b.useRef(u) 25508 , O = l != null 25509 , A = gx(l) 25510 , E = gx(i) 25511 , j = gx(c) 25512 , $ = b.useCallback( () => { 25513 if (!_.current || !T.current) 25514 return; 25515 const N = { 25516 placement: t, 25517 strategy: n, 25518 middleware: f 25519 }; 25520 E.current && (N.platform = E.current), 25521 tie(_.current, T.current, N).then(D => { 25522 const W = { 25523 ...D, 25524 isPositioned: j.current !== !1 25525 }; 25526 R.current && !sg(C.current, W) && (C.current = W, 25527 La.flushSync( () => { 25528 d(W) 25529 } 25530 )) 25531 } 25532 ) 25533 } 25534 , [f, t, n, E, j]); 25535 pm( () => { 25536 c === !1 && C.current.isPositioned && (C.current.isPositioned = !1, 25537 d(N => ({ 25538 ...N, 25539 isPositioned: !1 25540 }))) 25541 } 25542 , [c]); 25543 const R = b.useRef(!1); 25544 pm( () => (R.current = !0, 25545 () => { 25546 R.current = !1 25547 } 25548 ), []), 25549 pm( () => { 25550 if (P && (_.current = P), 25551 S && (T.current = S), 25552 P && S) { 25553 if (A.current) 25554 return A.current(P, S, $); 25555 $() 25556 } 25557 } 25558 , [P, S, $, A, O]); 25559 const L = b.useMemo( () => ({ 25560 reference: _, 25561 floating: T, 25562 setReference: y, 25563 setFloating: w 25564 }), [y, w]) 25565 , B = b.useMemo( () => ({ 25566 reference: P, 25567 floating: S 25568 }), [P, S]) 25569 , U = b.useMemo( () => { 25570 const N = { 25571 position: n, 25572 left: 0, 25573 top: 0 25574 }; 25575 if (!B.floating) 25576 return N; 25577 const D = GE(B.floating, u.x) 25578 , W = GE(B.floating, u.y); 25579 return s ? { 25580 ...N, 25581 transform: "translate(" + D + "px, " + W + "px)", 25582 ...B3(B.floating) >= 1.5 && { 25583 willChange: "transform" 25584 } 25585 } : { 25586 position: n, 25587 left: D, 25588 top: W 25589 } 25590 } 25591 , [n, s, B.floating, u.x, u.y]); 25592 return b.useMemo( () => ({ 25593 ...u, 25594 update: $, 25595 refs: L, 25596 elements: B, 25597 floatingStyles: U 25598 }), [u, $, L, B, U]) 25599} 25600const rie = e => { 25601 function t(n) { 25602 return {}.hasOwnProperty.call(n, "current") 25603 } 25604 return { 25605 name: "arrow", 25606 options: e, 25607 fn(n) { 25608 const {element: r, padding: i} = typeof e == "function" ? e(n) : e; 25609 return r && t(r) ? r.current != null ? KE({ 25610 element: r.current, 25611 padding: i 25612 }).fn(n) : {} : r ? KE({ 25613 element: r, 25614 padding: i 25615 }).fn(n) : {} 25616 } 25617 } 25618} 25619 , iie = (e, t) => ({ 25620 ...Yre(e), 25621 options: [e, t] 25622}) 25623 , oie = (e, t) => ({ 25624 ...Xre(e), 25625 options: [e, t] 25626}) 25627 , aie = (e, t) => ({ 25628 ...eie(e), 25629 options: [e, t] 25630}) 25631 , sie = (e, t) => ({ 25632 ...Qre(e), 25633 options: [e, t] 25634}) 25635 , lie = (e, t) => ({ 25636 ...Zre(e), 25637 options: [e, t] 25638}) 25639 , cie = (e, t) => ({ 25640 ...Jre(e), 25641 options: [e, t] 25642}) 25643 , uie = (e, t) => ({ 25644 ...rie(e), 25645 options: [e, t] 25646}); 25647var die = "Arrow" 25648 , V3 = b.forwardRef( (e, t) => { 25649 const {children: n, width: r=10, height: i=5, ...o} = e; 25650 return h.jsx(Ce.svg, { 25651 ...o, 25652 ref: t, 25653 width: r, 25654 height: i, 25655 viewBox: "0 0 30 10", 25656 preserveAspectRatio: "none", 25657 children: e.asChild ? n : h.jsx("polygon", { 25658 points: "0,0 30,0 15,10" 25659 }) 25660 }) 25661} 25662); 25663V3.displayName = die; 25664var fie = V3; 25665function hie(e, t=[]) { 25666 let n = []; 25667 function r(o, a) { 25668 const s = b.createContext(a) 25669 , l = n.length; 25670 n = [...n, a]; 25671 function c(d) { 25672 const {scope: f, children: p, ...g} = d 25673 , m = (f == null ? void 0 : f[e][l]) || s 25674 , x = b.useMemo( () => g, Object.values(g)); 25675 return h.jsx(m.Provider, { 25676 value: x, 25677 children: p 25678 }) 25679 } 25680 function u(d, f) { 25681 const p = (f == null ? void 0 : f[e][l]) || s 25682 , g = b.useContext(p); 25683 if (g) 25684 return g; 25685 if (a !== void 0) 25686 return a; 25687 throw new Error(`\`${d}\` must be used within \`${o}\``) 25688 } 25689 return c.displayName = o + "Provider", 25690 [c, u] 25691 } 25692 const i = () => { 25693 const o = n.map(a => b.createContext(a)); 25694 return function(s) { 25695 const l = (s == null ? void 0 : s[e]) || o; 25696 return b.useMemo( () => ({ 25697 [`__scope${e}`]: { 25698 ...s, 25699 [e]: l 25700 } 25701 }), [s, l]) 25702 } 25703 } 25704 ; 25705 return i.scopeName = e, 25706 [r, pie(i, ...t)] 25707} 25708function pie(...e) { 25709 const t = e[0]; 25710 if (e.length === 1) 25711 return t; 25712 const n = () => { 25713 const r = e.map(i => ({ 25714 useScope: i(), 25715 scopeName: i.scopeName 25716 })); 25717 return function(o) { 25718 const a = r.reduce( (s, {useScope: l, scopeName: c}) => { 25719 const d = l(o)[`__scope${c}`]; 25720 return { 25721 ...s, 25722 ...d 25723 } 25724 } 25725 , {}); 25726 return b.useMemo( () => ({ 25727 [`__scope${t.scopeName}`]: a 25728 }), [a]) 25729 } 25730 } 25731 ; 25732 return n.scopeName = t.scopeName, 25733 n 25734} 25735function U3(e) { 25736 const [t,n] = b.useState(void 0); 25737 return $t( () => { 25738 if (e) { 25739 n({ 25740 width: e.offsetWidth, 25741 height: e.offsetHeight 25742 }); 25743 const r = new ResizeObserver(i => { 25744 if (!Array.isArray(i) || !i.length) 25745 return; 25746 const o = i[0]; 25747 let a, s; 25748 if ("borderBoxSize"in o) { 25749 const l = o.borderBoxSize 25750 , c = Array.isArray(l) ? l[0] : l; 25751 a = c.inlineSize, 25752 s = c.blockSize 25753 } else 25754 a = e.offsetWidth, 25755 s = e.offsetHeight; 25756 n({ 25757 width: a, 25758 height: s 25759 }) 25760 } 25761 ); 25762 return r.observe(e, { 25763 box: "border-box" 25764 }), 25765 () => r.unobserve(e) 25766 } else 25767 n(void 0) 25768 } 25769 , [e]), 25770 t 25771} 25772var R_ = "Popper" 25773 , [z3,cv] = hie(R_) 25774 , [mie,W3] = z3(R_) 25775 , H3 = e => { 25776 const {__scopePopper: t, children: n} = e 25777 , [r,i] = b.useState(null); 25778 return h.jsx(mie, { 25779 scope: t, 25780 anchor: r, 25781 onAnchorChange: i, 25782 children: n 25783 }) 25784} 25785; 25786H3.displayName = R_; 25787var q3 = "PopperAnchor" 25788 , K3 = b.forwardRef( (e, t) => { 25789 const {__scopePopper: n, virtualRef: r, ...i} = e 25790 , o = W3(q3, n) 25791 , a = b.useRef(null) 25792 , s = Ye(t, a); 25793 return b.useEffect( () => { 25794 o.onAnchorChange((r == null ? void 0 : r.current) || a.current) 25795 } 25796 ), 25797 r ? null : h.jsx(Ce.div, { 25798 ...i, 25799 ref: s 25800 }) 25801} 25802); 25803K3.displayName = q3; 25804var D_ = "PopperContent" 25805 , [gie,yie] = z3(D_) 25806 , G3 = b.forwardRef( (e, t) => { 25807 var ie, ge, Y, ne, Q, F; 25808 const {__scopePopper: n, side: r="bottom", sideOffset: i=0, align: o="center", alignOffset: a=0, arrowPadding: s=0, avoidCollisions: l=!0, collisionBoundary: c=[], collisionPadding: u=0, sticky: d="partial", hideWhenDetached: f=!1, updatePositionStrategy: p="optimized", onPlaced: g, ...m} = e 25809 , x = W3(D_, n) 25810 , [v,y] = b.useState(null) 25811 , w = Ye(t, he => y(he)) 25812 , [P,S] = b.useState(null) 25813 , _ = U3(P) 25814 , T = (_ == null ? void 0 : _.width) ?? 0 25815 , C = (_ == null ? void 0 : _.height) ?? 0 25816 , O = r + (o !== "center" ? "-" + o : "") 25817 , A = typeof u == "number" ? u : { 25818 top: 0, 25819 right: 0, 25820 bottom: 0, 25821 left: 0, 25822 ...u 25823 } 25824 , E = Array.isArray(c) ? c : [c] 25825 , j = E.length > 0 25826 , $ = { 25827 padding: A, 25828 boundary: E.filter(xie), 25829 altBoundary: j 25830 } 25831 , {refs: R, floatingStyles: L, placement: B, isPositioned: U, middlewareData: N} = nie({ 25832 strategy: "fixed", 25833 placement: O, 25834 whileElementsMounted: (...he) => Gre(...he, { 25835 animationFrame: p === "always" 25836 }), 25837 elements: { 25838 reference: x.anchor 25839 }, 25840 middleware: [iie({ 25841 mainAxis: i + C, 25842 alignmentAxis: a 25843 }), l && oie({ 25844 mainAxis: !0, 25845 crossAxis: !1, 25846 limiter: d === "partial" ? aie() : void 0, 25847 ...$ 25848 }), l && sie({ 25849 ...$ 25850 }), lie({ 25851 ...$, 25852 apply: ({elements: he, rects: de, availableWidth: Ne, availableHeight: Be}) => { 25853 const {width: Qe, height: M} = de.reference 25854 , z = he.floating.style; 25855 z.setProperty("--radix-popper-available-width", `${Ne}px`), 25856 z.setProperty("--radix-popper-available-height", `${Be}px`), 25857 z.setProperty("--radix-popper-anchor-width", `${Qe}px`), 25858 z.setProperty("--radix-popper-anchor-height", `${M}px`) 25859 } 25860 }), P && uie({ 25861 element: P, 25862 padding: s 25863 }), bie({ 25864 arrowWidth: T, 25865 arrowHeight: C 25866 }), f && cie({ 25867 strategy: "referenceHidden", 25868 ...$ 25869 })] 25870 }) 25871 , [D,W] = Q3(B) 25872 , K = rn(g); 25873 $t( () => { 25874 U && (K == null || K()) 25875 } 25876 , [U, K]); 25877 const G = (ie = N.arrow) == null ? void 0 : ie.x 25878 , ae = (ge = N.arrow) == null ? void 0 : ge.y 25879 , ve = ((Y = N.arrow) == null ? void 0 : Y.centerOffset) !== 0 25880 , [je,Oe] = b.useState(); 25881 return $t( () => { 25882 v && Oe(window.getComputedStyle(v).zIndex) 25883 } 25884 , [v]), 25885 h.jsx("div", { 25886 ref: R.setFloating, 25887 "data-radix-popper-content-wrapper": "", 25888 style: { 25889 ...L, 25890 transform: U ? L.transform : "translate(0, -200%)", 25891 minWidth: "max-content", 25892 zIndex: je, 25893 "--radix-popper-transform-origin": [(ne = N.transformOrigin) == null ? void 0 : ne.x, (Q = N.transformOrigin) == null ? void 0 : Q.y].join(" "), 25894 ...((F = N.hide) == null ? void 0 : F.referenceHidden) && { 25895 visibility: "hidden", 25896 pointerEvents: "none" 25897 } 25898 }, 25899 dir: e.dir, 25900 children: h.jsx(gie, { 25901 scope: n, 25902 placedSide: D, 25903 onArrowChange: S, 25904 arrowX: G, 25905 arrowY: ae, 25906 shouldHideArrow: ve, 25907 children: h.jsx(Ce.div, { 25908 "data-side": D, 25909 "data-align": W, 25910 ...m, 25911 ref: w, 25912 style: { 25913 ...m.style, 25914 animation: U ? void 0 : "none" 25915 } 25916 }) 25917 }) 25918 }) 25919} 25920); 25921G3.displayName = D_; 25922var Y3 = "PopperArrow" 25923 , vie = { 25924 top: "bottom", 25925 right: "left", 25926 bottom: "top", 25927 left: "right" 25928} 25929 , X3 = b.forwardRef(function(t, n) { 25930 const {__scopePopper: r, ...i} = t 25931 , o = yie(Y3, r) 25932 , a = vie[o.placedSide]; 25933 return h.jsx("span", { 25934 ref: o.onArrowChange, 25935 style: { 25936 position: "absolute", 25937 left: o.arrowX, 25938 top: o.arrowY, 25939 [a]: 0, 25940 transformOrigin: { 25941 top: "", 25942 right: "0 0", 25943 bottom: "center 0", 25944 left: "100% 0" 25945 }[o.placedSide], 25946 transform: { 25947 top: "translateY(100%)", 25948 right: "translateY(50%) rotate(90deg) translateX(-50%)", 25949 bottom: "rotate(180deg)", 25950 left: "translateY(50%) rotate(-90deg) translateX(50%)" 25951 }[o.placedSide], 25952 visibility: o.shouldHideArrow ? "hidden" : void 0 25953 }, 25954 children: h.jsx(fie, { 25955 ...i, 25956 ref: n, 25957 style: { 25958 ...i.style, 25959 display: "block" 25960 } 25961 }) 25962 }) 25963}); 25964X3.displayName = Y3; 25965function xie(e) { 25966 return e !== null 25967} 25968var bie = e => ({ 25969 name: "transformOrigin", 25970 options: e, 25971 fn(t) { 25972 var x, v, y; 25973 const {placement: n, rects: r, middlewareData: i} = t 25974 , a = ((x = i.arrow) == null ? void 0 : x.centerOffset) !== 0 25975 , s = a ? 0 : e.arrowWidth 25976 , l = a ? 0 : e.arrowHeight 25977 , [c,u] = Q3(n) 25978 , d = { 25979 start: "0%", 25980 center: "50%", 25981 end: "100%" 25982 }[u] 25983 , f = (((v = i.arrow) == null ? void 0 : v.x) ?? 0) + s / 2 25984 , p = (((y = i.arrow) == null ? void 0 : y.y) ?? 0) + l / 2; 25985 let g = "" 25986 , m = ""; 25987 return c === "bottom" ? (g = a ? d : `${f}px`, 25988 m = `${-l}px`) : c === "top" ? (g = a ? d : `${f}px`, 25989 m = `${r.floating.height + l}px`) : c === "right" ? (g = `${-l}px`, 25990 m = a ? d : `${p}px`) : c === "left" && (g = `${r.floating.width + l}px`, 25991 m = a ? d : `${p}px`), 25992 { 25993 data: { 25994 x: g, 25995 y: m 25996 } 25997 } 25998 } 25999}); 26000function Q3(e) { 26001 const [t,n="center"] = e.split("-"); 26002 return [t, n] 26003} 26004var Z3 = H3 26005 , J3 = K3 26006 , eV = G3 26007 , tV = X3 26008 , wie = "Portal" 26009 , uv = b.forwardRef( (e, t) => { 26010 var s; 26011 const {container: n, ...r} = e 26012 , [i,o] = b.useState(!1); 26013 $t( () => o(!0), []); 26014 const a = n || i && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body); 26015 return a ? wF.createPortal(h.jsx(Ce.div, { 26016 ...r, 26017 ref: t 26018 }), a) : null 26019} 26020); 26021uv.displayName = wie; 26022var nV = b.forwardRef( (e, t) => { 26023 const {children: n, ...r} = e 26024 , i = b.Children.toArray(n) 26025 , o = i.find(Pie); 26026 if (o) { 26027 const a = o.props.children 26028 , s = i.map(l => l === o ? b.Children.count(a) > 1 ? b.Children.only(null) : b.isValidElement(a) ? a.props.children : null : l); 26029 return h.jsx(Ww, { 26030 ...r, 26031 ref: t, 26032 children: b.isValidElement(a) ? b.cloneElement(a, void 0, s) : null 26033 }) 26034 } 26035 return h.jsx(Ww, { 26036 ...r, 26037 ref: t, 26038 children: n 26039 }) 26040} 26041); 26042nV.displayName = "Slot"; 26043var Ww = b.forwardRef( (e, t) => { 26044 const {children: n, ...r} = e; 26045 if (b.isValidElement(n)) { 26046 const i = Tie(n); 26047 return b.cloneElement(n, { 26048 ..._ie(r, n.props), 26049 ref: t ? Mo(t, i) : i 26050 }) 26051 } 26052 return b.Children.count(n) > 1 ? b.Children.only(null) : null 26053} 26054); 26055Ww.displayName = "SlotClone"; 26056var Sie = ({children: e}) => h.jsx(h.Fragment, { 26057 children: e 26058}); 26059function Pie(e) { 26060 return b.isValidElement(e) && e.type === Sie 26061} 26062function _ie(e, t) { 26063 const n = { 26064 ...t 26065 }; 26066 for (const r in t) { 26067 const i = e[r] 26068 , o = t[r]; 26069 /^on[A-Z]/.test(r) ? i && o ? n[r] = (...s) => { 26070 o(...s), 26071 i(...s) 26072 } 26073 : i && (n[r] = i) : r === "style" ? n[r] = { 26074 ...i, 26075 ...o 26076 } : r === "className" && (n[r] = [i, o].filter(Boolean).join(" ")) 26077 } 26078 return { 26079 ...e, 26080 ...n 26081 } 26082} 26083function Tie(e) { 26084 var r, i; 26085 let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get 26086 , n = t && "isReactWarning"in t && t.isReactWarning; 26087 return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, 26088 n = t && "isReactWarning"in t && t.isReactWarning, 26089 n ? e.props.ref : e.props.ref || e.ref) 26090} 26091function rV(e) { 26092 const t = b.useRef({ 26093 value: e, 26094 previous: e 26095 }); 26096 return b.useMemo( () => (t.current.value !== e && (t.current.previous = t.current.value, 26097 t.current.value = e), 26098 t.current.previous), [e]) 26099} 26100var Cie = "VisuallyHidden" 26101 , iV = b.forwardRef( (e, t) => h.jsx(Ce.span, { 26102 ...e, 26103 ref: t, 26104 style: { 26105 position: "absolute", 26106 border: 0, 26107 width: 1, 26108 height: 1, 26109 padding: 0, 26110 margin: -1, 26111 overflow: "hidden", 26112 clip: "rect(0, 0, 0, 0)", 26113 whiteSpace: "nowrap", 26114 wordWrap: "normal", 26115 ...e.style 26116 } 26117})); 26118iV.displayName = Cie; 26119var Oie = function(e) { 26120 if (typeof document > "u") 26121 return null; 26122 var t = Array.isArray(e) ? e[0] : e; 26123 return t.ownerDocument.body 26124} 26125 , cl = new WeakMap 26126 , Op = new WeakMap 26127 , Ap = {} 26128 , yx = 0 26129 , oV = function(e) { 26130 return e && (e.host || oV(e.parentNode)) 26131} 26132 , Aie = function(e, t) { 26133 return t.map(function(n) { 26134 if (e.contains(n)) 26135 return n; 26136 var r = oV(n); 26137 return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), 26138 null) 26139 }).filter(function(n) { 26140 return !!n 26141 }) 26142} 26143 , Eie = function(e, t, n, r) { 26144 var i = Aie(t, Array.isArray(e) ? e : [e]); 26145 Ap[n] || (Ap[n] = new WeakMap); 26146 var o = Ap[n] 26147 , a = [] 26148 , s = new Set 26149 , l = new Set(i) 26150 , c = function(d) { 26151 !d || s.has(d) || (s.add(d), 26152 c(d.parentNode)) 26153 };
vendor: 1,074 bytes, lines 26154-26185
26154 i.forEach(c); 26155 var u = function(d) { 26156 !d || l.has(d) || Array.prototype.forEach.call(d.children, function(f) { 26157 if (s.has(f)) 26158 u(f); 26159 else 26160 try { 26161 var p = f.getAttribute(r) 26162 , g = p !== null && p !== "false" 26163 , m = (cl.get(f) || 0) + 1 26164 , x = (o.get(f) || 0) + 1; 26165 cl.set(f, m), 26166 o.set(f, x), 26167 a.push(f), 26168 m === 1 && g && Op.set(f, !0), 26169 x === 1 && f.setAttribute(n, "true"), 26170 g || f.setAttribute(r, "true") 26171 } catch (v) { 26172 console.error("aria-hidden: cannot operate on ", f, v) 26173 } 26174 }) 26175 }; 26176 return u(t), 26177 s.clear(), 26178 yx++, 26179 function() { 26180 a.forEach(function(d) { 26181 var f = cl.get(d) - 1 26182 , p = o.get(d) - 1; 26183 cl.set(d, f), 26184 o.set(d, p), 26185 f || (Op.has(d) || d.removeAttribute(r),
vendor: 9,389 bytes, lines 26186-26543
26186 Op.delete(d)), 26187 p || d.removeAttribute(n) 26188 }), 26189 yx--, 26190 yx || (cl = new WeakMap, 26191 cl = new WeakMap, 26192 Op = new WeakMap, 26193 Ap = {}) 26194 } 26195} 26196 , I_ = function(e, t, n) { 26197 n === void 0 && (n = "data-aria-hidden"); 26198 var r = Array.from(Array.isArray(e) ? e : [e]) 26199 , i = Oie(e); 26200 return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live]"))), 26201 Eie(r, i, n, "aria-hidden")) : function() { 26202 return null 26203 } 26204} 26205 , ji = function() { 26206 return ji = Object.assign || function(t) { 26207 for (var n, r = 1, i = arguments.length; r < i; r++) { 26208 n = arguments[r]; 26209 for (var o in n) 26210 Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]) 26211 } 26212 return t 26213 } 26214 , 26215 ji.apply(this, arguments) 26216}; 26217function aV(e, t) { 26218 var n = {}; 26219 for (var r in e) 26220 Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]); 26221 if (e != null && typeof Object.getOwnPropertySymbols == "function") 26222 for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) 26223 t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]); 26224 return n 26225} 26226function jie(e, t, n) { 26227 if (n || arguments.length === 2) 26228 for (var r = 0, i = t.length, o; r < i; r++) 26229 (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), 26230 o[r] = t[r]); 26231 return e.concat(o || Array.prototype.slice.call(t)) 26232} 26233var mm = "right-scroll-bar-position" 26234 , gm = "width-before-scroll-bar" 26235 , Nie = "with-scroll-bars-hidden" 26236 , Mie = "--removed-body-scroll-bar-size"; 26237function vx(e, t) { 26238 return typeof e == "function" ? e(t) : e && (e.current = t), 26239 e 26240} 26241function kie(e, t) { 26242 var n = b.useState(function() { 26243 return { 26244 value: e, 26245 callback: t, 26246 facade: { 26247 get current() { 26248 return n.value 26249 }, 26250 set current(r) { 26251 var i = n.value; 26252 i !== r && (n.value = r, 26253 n.callback(r, i)) 26254 } 26255 } 26256 } 26257 })[0]; 26258 return n.callback = t, 26259 n.facade 26260} 26261var Rie = typeof window < "u" ? b.useLayoutEffect : b.useEffect 26262 , YE = new WeakMap; 26263function Die(e, t) { 26264 var n = kie(null, function(r) { 26265 return e.forEach(function(i) { 26266 return vx(i, r) 26267 }) 26268 }); 26269 return Rie(function() { 26270 var r = YE.get(n); 26271 if (r) { 26272 var i = new Set(r) 26273 , o = new Set(e) 26274 , a = n.current; 26275 i.forEach(function(s) { 26276 o.has(s) || vx(s, null) 26277 }), 26278 o.forEach(function(s) { 26279 i.has(s) || vx(s, a) 26280 }) 26281 } 26282 YE.set(n, e) 26283 }, [e]), 26284 n 26285} 26286function Iie(e) { 26287 return e 26288} 26289function $ie(e, t) { 26290 t === void 0 && (t = Iie); 26291 var n = [] 26292 , r = !1 26293 , i = { 26294 read: function() { 26295 if (r) 26296 throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`."); 26297 return n.length ? n[n.length - 1] : e 26298 }, 26299 useMedium: function(o) { 26300 var a = t(o, r); 26301 return n.push(a), 26302 function() { 26303 n = n.filter(function(s) { 26304 return s !== a 26305 }) 26306 } 26307 }, 26308 assignSyncMedium: function(o) { 26309 for (r = !0; n.length; ) { 26310 var a = n; 26311 n = [], 26312 a.forEach(o) 26313 } 26314 n = { 26315 push: function(s) { 26316 return o(s) 26317 }, 26318 filter: function() { 26319 return n 26320 } 26321 } 26322 }, 26323 assignMedium: function(o) { 26324 r = !0; 26325 var a = []; 26326 if (n.length) { 26327 var s = n; 26328 n = [], 26329 s.forEach(o), 26330 a = n 26331 } 26332 var l = function() { 26333 var u = a; 26334 a = [], 26335 u.forEach(o) 26336 } 26337 , c = function() { 26338 return Promise.resolve().then(l) 26339 }; 26340 c(), 26341 n = { 26342 push: function(u) { 26343 a.push(u), 26344 c() 26345 }, 26346 filter: function(u) { 26347 return a = a.filter(u), 26348 n 26349 } 26350 } 26351 } 26352 }; 26353 return i 26354} 26355function Lie(e) { 26356 e === void 0 && (e = {}); 26357 var t = $ie(null); 26358 return t.options = ji({ 26359 async: !0, 26360 ssr: !1 26361 }, e), 26362 t 26363} 26364var sV = function(e) { 26365 var t = e.sideCar 26366 , n = aV(e, ["sideCar"]); 26367 if (!t) 26368 throw new Error("Sidecar: please provide `sideCar` property to import the right car"); 26369 var r = t.read(); 26370 if (!r) 26371 throw new Error("Sidecar medium not found"); 26372 return b.createElement(r, ji({}, n)) 26373}; 26374sV.isSideCarExport = !0; 26375function Fie(e, t) { 26376 return e.useMedium(t), 26377 sV 26378} 26379var lV = Lie() 26380 , xx = function() {} 26381 , dv = b.forwardRef(function(e, t) { 26382 var n = b.useRef(null) 26383 , r = b.useState({ 26384 onScrollCapture: xx, 26385 onWheelCapture: xx, 26386 onTouchMoveCapture: xx 26387 }) 26388 , i = r[0] 26389 , o = r[1] 26390 , a = e.forwardProps 26391 , s = e.children 26392 , l = e.className 26393 , c = e.removeScrollBar 26394 , u = e.enabled 26395 , d = e.shards 26396 , f = e.sideCar 26397 , p = e.noIsolation 26398 , g = e.inert 26399 , m = e.allowPinchZoom 26400 , x = e.as 26401 , v = x === void 0 ? "div" : x 26402 , y = e.gapMode 26403 , w = aV(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]) 26404 , P = f 26405 , S = Die([n, t]) 26406 , _ = ji(ji({}, w), i); 26407 return b.createElement(b.Fragment, null, u && b.createElement(P, { 26408 sideCar: lV, 26409 removeScrollBar: c, 26410 shards: d, 26411 noIsolation: p, 26412 inert: g, 26413 setCallbacks: o, 26414 allowPinchZoom: !!m, 26415 lockRef: n, 26416 gapMode: y 26417 }), a ? b.cloneElement(b.Children.only(s), ji(ji({}, _), { 26418 ref: S 26419 })) : b.createElement(v, ji({}, _, { 26420 className: l, 26421 ref: S 26422 }), s)) 26423}); 26424dv.defaultProps = { 26425 enabled: !0, 26426 removeScrollBar: !0, 26427 inert: !1 26428}; 26429dv.classNames = { 26430 fullWidth: gm, 26431 zeroRight: mm 26432}; 26433var Bie = function() { 26434 if (typeof __webpack_nonce__ < "u") 26435 return __webpack_nonce__ 26436}; 26437function Vie() { 26438 if (!document) 26439 return null; 26440 var e = document.createElement("style"); 26441 e.type = "text/css"; 26442 var t = Bie(); 26443 return t && e.setAttribute("nonce", t), 26444 e 26445} 26446function Uie(e, t) { 26447 e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t)) 26448} 26449function zie(e) { 26450 var t = document.head || document.getElementsByTagName("head")[0]; 26451 t.appendChild(e) 26452} 26453var Wie = function() { 26454 var e = 0 26455 , t = null; 26456 return { 26457 add: function(n) { 26458 e == 0 && (t = Vie()) && (Uie(t, n), 26459 zie(t)), 26460 e++ 26461 }, 26462 remove: function() { 26463 e--, 26464 !e && t && (t.parentNode && t.parentNode.removeChild(t), 26465 t = null) 26466 } 26467 } 26468} 26469 , Hie = function() { 26470 var e = Wie(); 26471 return function(t, n) { 26472 b.useEffect(function() { 26473 return e.add(t), 26474 function() { 26475 e.remove() 26476 } 26477 }, [t && n]) 26478 } 26479} 26480 , cV = function() { 26481 var e = Hie() 26482 , t = function(n) { 26483 var r = n.styles 26484 , i = n.dynamic; 26485 return e(r, i), 26486 null 26487 }; 26488 return t 26489} 26490 , qie = { 26491 left: 0, 26492 top: 0, 26493 right: 0, 26494 gap: 0 26495} 26496 , bx = function(e) { 26497 return parseInt(e || "", 10) || 0 26498} 26499 , Kie = function(e) { 26500 var t = window.getComputedStyle(document.body) 26501 , n = t[e === "padding" ? "paddingLeft" : "marginLeft"] 26502 , r = t[e === "padding" ? "paddingTop" : "marginTop"] 26503 , i = t[e === "padding" ? "paddingRight" : "marginRight"]; 26504 return [bx(n), bx(r), bx(i)] 26505} 26506 , Gie = function(e) { 26507 if (e === void 0 && (e = "margin"), 26508 typeof window > "u") 26509 return qie; 26510 var t = Kie(e) 26511 , n = document.documentElement.clientWidth 26512 , r = window.innerWidth; 26513 return { 26514 left: t[0], 26515 top: t[1], 26516 right: t[2], 26517 gap: Math.max(0, r - n + t[2] - t[0]) 26518 } 26519} 26520 , Yie = cV() 26521 , Yl = "data-scroll-locked" 26522 , Xie = function(e, t, n, r) { 26523 var i = e.left 26524 , o = e.top 26525 , a = e.right 26526 , s = e.gap; 26527 return n === void 0 && (n = "margin"), 26528 ` 26529 .`.concat(Nie, ` { 26530 overflow: hidden `).concat(r, `; 26531 padding-right: `).concat(s, "px ").concat(r, `; 26532 } 26533 body[`).concat(Yl, `] { 26534 overflow: hidden `).concat(r, `; 26535 overscroll-behavior: contain; 26536 `).concat([t && "position: relative ".concat(r, ";"), n === "margin" && ` 26537 padding-left: `.concat(i, `px; 26538 padding-top: `).concat(o, `px; 26539 padding-right: `).concat(a, `px; 26540 margin-left:0; 26541 margin-top:0; 26542 margin-right: `).concat(s, "px ").concat(r, `; 26543 `), n === "padding" && "padding-right: ".concat(s, "px ").concat(r, ";
26543")].filter(Boolean).join(""), ` 26544 } 26545 26546 .`).concat(mm, ` { 26547 right: `).concat(s, "px ").concat(r, `; 26548 } 26549 26550 .`).concat(gm, ` { 26551 margin-right: `).concat(s, "px ").concat(r, `; 26552 } 26553 26554 .`).concat(mm, " .").concat(mm, ` { 26555 right: 0 `).concat(r, `; 26556 } 26557 26558 .`).concat(gm, " .").concat(gm, ` { 26559 margin-right: 0 `).concat(r, `; 26560 } 26561 26562 body[`).concat(Yl, `] { 26563 `).concat(Mie, ": ").concat(s, `px; 26564 } 26565`) 26566} 26567 , XE = function() { 26568 var e = parseInt(document.body.getAttribute(Yl) || "0", 10); 26569 return isFinite(e) ? e : 0 26570} 26571 , Qie = function() { 26572 b.useEffect(function() { 26573 return document.body.setAttribute(Yl, (XE() + 1).toString()), 26574 function() { 26575 var e = XE() - 1; 26576 e <= 0 ? document.body.removeAttribute(Yl) : document.body.setAttribute(Yl, e.toString()) 26577 } 26578 }, []) 26579} 26580 , Zie = function(e) { 26581 var t = e.noRelative 26582 , n = e.noImportant 26583 , r = e.gapMode 26584 , i = r === void 0 ? "margin" : r; 26585 Qie(); 26586 var o = b.useMemo(function() { 26587 return Gie(i) 26588 }, [i]); 26589 return b.createElement(Yie, { 26590 styles: Xie(o, !t, i, n ? "" : "!important") 26591 }) 26592} 26593 , Hw = !1; 26594if (typeof window < "u") 26595 try { 26596 var Ep = Object.defineProperty({}, "passive", { 26597 get: function() { 26598 return Hw = !0, 26599 !0 26600 } 26601 }); 26602 window.addEventListener("test", Ep, Ep), 26603 window.removeEventListener("test", Ep, Ep) 26604 } catch { 26605 Hw = !1 26606 } 26607var ul = Hw ? { 26608 passive: !1 26609} : !1 26610 , Jie = function(e) { 26611 return e.tagName === "TEXTAREA" 26612} 26613 , uV = function(e, t) { 26614 if (!(e instanceof Element)) 26615 return !1; 26616 var n = window.getComputedStyle(e); 26617 return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !Jie(e) && n[t] === "visible") 26618} 26619 , eoe = function(e) { 26620 return uV(e, "overflowY") 26621} 26622 , toe = function(e) { 26623 return uV(e, "overflowX") 26624} 26625 , QE = function(e, t) { 26626 var n = t.ownerDocument 26627 , r = t; 26628 do { 26629 typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host); 26630 var i = dV(e, r); 26631 if (i) { 26632 var o = fV(e, r) 26633 , a = o[1] 26634 , s = o[2]; 26635 if (a > s) 26636 return !0 26637 } 26638 r = r.parentNode 26639 } while (r && r !== n.body); 26640 return !1 26641} 26642 , noe = function(e) { 26643 var t = e.scrollTop 26644 , n = e.scrollHeight 26645 , r = e.clientHeight; 26646 return [t, n, r] 26647} 26648 , roe = function(e) { 26649 var t = e.scrollLeft 26650 , n = e.scrollWidth 26651 , r = e.clientWidth; 26652 return [t, n, r] 26653} 26654 , dV = function(e, t) { 26655 return e === "v" ? eoe(t) : toe(t) 26656} 26657 , fV = function(e, t) { 26658 return e === "v" ? noe(t) : roe(t) 26659} 26660 , ioe = function(e, t) { 26661 return e === "h" && t === "rtl" ? -1 : 1 26662} 26663 , ooe = function(e, t, n, r, i) { 26664 var o = ioe(e, window.getComputedStyle(t).direction) 26665 , a = o * r 26666 , s = n.target 26667 , l = t.contains(s) 26668 , c = !1 26669 , u = a > 0 26670 , d = 0 26671 , f = 0; 26672 do { 26673 var p = fV(e, s) 26674 , g = p[0] 26675 , m = p[1] 26676 , x = p[2] 26677 , v = m - x - o * g; 26678 (g || v) && dV(e, s) && (d += v, 26679 f += g), 26680 s instanceof ShadowRoot ? s = s.host : s = s.parentNode 26681 } while (!l && s !== document.body || l && (t.contains(s) || t === s)); 26682 return (u && (Math.abs(d) < 1 || !i) || !u && (Math.abs(f) < 1 || !i)) && (c = !0), 26683 c 26684} 26685 , jp = function(e) { 26686 return "changedTouches"in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0] 26687} 26688 , ZE = function(e) { 26689 return [e.deltaX, e.deltaY] 26690} 26691 , JE = function(e) { 26692 return e && "current"in e ? e.current : e 26693} 26694 , aoe = function(e, t) { 26695 return e[0] === t[0] && e[1] === t[1] 26696} 26697 , soe = function(e) { 26698 return ` 26699 .block-interactivity-`.concat(e, ` {pointer-events: none;} 26700 .allow-interactivity-`).concat(e, ` {pointer-events: all;} 26701`) 26702} 26703 , loe = 0 26704 , dl = []; 26705function coe(e) { 26706 var t = b.useRef([]) 26707 , n = b.useRef([0, 0]) 26708 , r = b.useRef() 26709 , i = b.useState(loe++)[0] 26710 , o = b.useState(cV)[0] 26711 , a = b.useRef(e); 26712 b.useEffect(function() { 26713 a.current = e 26714 }, [e]), 26715 b.useEffect(function() { 26716 if (e.inert) { 26717 document.body.classList.add("block-interactivity-".concat(i)); 26718 var m = jie([e.lockRef.current], (e.shards || []).map(JE), !0).filter(
vendor: 6,835 bytes, lines 26718-26924
26718Boolean); 26719 return m.forEach(function(x) { 26720 return x.classList.add("allow-interactivity-".concat(i)) 26721 }), 26722 function() { 26723 document.body.classList.remove("block-interactivity-".concat(i)), 26724 m.forEach(function(x) { 26725 return x.classList.remove("allow-interactivity-".concat(i)) 26726 }) 26727 } 26728 } 26729 }, [e.inert, e.lockRef.current, e.shards]); 26730 var s = b.useCallback(function(m, x) { 26731 if ("touches"in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey) 26732 return !a.current.allowPinchZoom; 26733 var v = jp(m), y = n.current, w = "deltaX"in m ? m.deltaX : y[0] - v[0], P = "deltaY"in m ? m.deltaY : y[1] - v[1], S, _ = m.target, T = Math.abs(w) > Math.abs(P) ? "h" : "v"; 26734 if ("touches"in m && T === "h" && _.type === "range") 26735 return !1; 26736 var C = QE(T, _); 26737 if (!C) 26738 return !0; 26739 if (C ? S = T : (S = T === "v" ? "h" : "v", 26740 C = QE(T, _)), 26741 !C) 26742 return !1; 26743 if (!r.current && "changedTouches"in m && (w || P) && (r.current = S), 26744 !S) 26745 return !0; 26746 var O = r.current || S; 26747 return ooe(O, x, m, O === "h" ? w : P, !0) 26748 }, []) 26749 , l = b.useCallback(function(m) { 26750 var x = m; 26751 if (!(!dl.length || dl[dl.length - 1] !== o)) { 26752 var v = "deltaY"in x ? ZE(x) : jp(x) 26753 , y = t.current.filter(function(S) { 26754 return S.name === x.type && (S.target === x.target || x.target === S.shadowParent) && aoe(S.delta, v) 26755 })[0]; 26756 if (y && y.should) { 26757 x.cancelable && x.preventDefault(); 26758 return 26759 } 26760 if (!y) { 26761 var w = (a.current.shards || []).map(JE).filter(Boolean).filter(function(S) { 26762 return S.contains(x.target) 26763 }) 26764 , P = w.length > 0 ? s(x, w[0]) : !a.current.noIsolation; 26765 P && x.cancelable && x.preventDefault() 26766 } 26767 } 26768 }, []) 26769 , c = b.useCallback(function(m, x, v, y) { 26770 var w = { 26771 name: m, 26772 delta: x, 26773 target: v, 26774 should: y, 26775 shadowParent: uoe(v) 26776 }; 26777 t.current.push(w), 26778 setTimeout(function() { 26779 t.current = t.current.filter(function(P) { 26780 return P !== w 26781 }) 26782 }, 1) 26783 }, []) 26784 , u = b.useCallback(function(m) { 26785 n.current = jp(m), 26786 r.current = void 0 26787 }, []) 26788 , d = b.useCallback(function(m) { 26789 c(m.type, ZE(m), m.target, s(m, e.lockRef.current)) 26790 }, []) 26791 , f = b.useCallback(function(m) { 26792 c(m.type, jp(m), m.target, s(m, e.lockRef.current)) 26793 }, []); 26794 b.useEffect(function() { 26795 return dl.push(o), 26796 e.setCallbacks({ 26797 onScrollCapture: d, 26798 onWheelCapture: d, 26799 onTouchMoveCapture: f 26800 }), 26801 document.addEventListener("wheel", l, ul), 26802 document.addEventListener("touchmove", l, ul), 26803 document.addEventListener("touchstart", u, ul), 26804 function() { 26805 dl = dl.filter(function(m) { 26806 return m !== o 26807 }), 26808 document.removeEventListener("wheel", l, ul), 26809 document.removeEventListener("touchmove", l, ul), 26810 document.removeEventListener("touchstart", u, ul) 26811 } 26812 }, []); 26813 var p = e.removeScrollBar 26814 , g = e.inert; 26815 return b.createElement(b.Fragment, null, g ? b.createElement(o, { 26816 styles: soe(i) 26817 }) : null, p ? b.createElement(Zie, { 26818 gapMode: e.gapMode 26819 }) : null) 26820} 26821function uoe(e) { 26822 for (var t = null; e !== null; ) 26823 e instanceof ShadowRoot && (t = e.host, 26824 e = e.host), 26825 e = e.parentNode; 26826 return t 26827} 26828const doe = Fie(lV, coe); 26829var fv = b.forwardRef(function(e, t) { 26830 return b.createElement(dv, ji({}, e, { 26831 ref: t, 26832 sideCar: doe 26833 })) 26834}); 26835fv.classNames = dv.classNames; 26836var foe = [" ", "Enter", "ArrowUp", "ArrowDown"] 26837 , hoe = [" ", "Enter"] 26838 , Dh = "Select" 26839 , [hv,pv,poe] = rv(Dh) 26840 , [uu,YIe] = zr(Dh, [poe, cv]) 26841 , mv = cv() 26842 , [moe,Va] = uu(Dh) 26843 , [goe,yoe] = uu(Dh) 26844 , hV = e => { 26845 const {__scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: o, value: a, defaultValue: s, onValueChange: l, dir: c, name: u, autoComplete: d, disabled: f, required: p, form: g} = e 26846 , m = mv(t) 26847 , [x,v] = b.useState(null) 26848 , [y,w] = b.useState(null) 26849 , [P,S] = b.useState(!1) 26850 , _ = kh(c) 26851 , [T=!1,C] = pi({ 26852 prop: r, 26853 defaultProp: i, 26854 onChange: o 26855 }) 26856 , [O,A] = pi({ 26857 prop: a, 26858 defaultProp: s, 26859 onChange: l 26860 }) 26861 , E = b.useRef(null) 26862 , j = x ? g || !!x.closest("form") : !0 26863 , [$,R] = b.useState(new Set) 26864 , L = Array.from($).map(B => B.props.value).join(";"); 26865 return h.jsx(Z3, { 26866 ...m, 26867 children: h.jsxs(moe, { 26868 required: p, 26869 scope: t, 26870 trigger: x, 26871 onTriggerChange: v, 26872 valueNode: y, 26873 onValueNodeChange: w, 26874 valueNodeHasChildren: P, 26875 onValueNodeHasChildrenChange: S, 26876 contentId: Ir(), 26877 value: O, 26878 onValueChange: A, 26879 open: T, 26880 onOpenChange: C, 26881 dir: _, 26882 triggerPointerDownPosRef: E, 26883 disabled: f, 26884 children: [h.jsx(hv.Provider, { 26885 scope: t, 26886 children: h.jsx(goe, { 26887 scope: e.__scopeSelect, 26888 onNativeOptionAdd: b.useCallback(B => { 26889 R(U => new Set(U).add(B)) 26890 } 26891 , []), 26892 onNativeOptionRemove: b.useCallback(B => { 26893 R(U => { 26894 const N = new Set(U); 26895 return N.delete(B), 26896 N 26897 } 26898 ) 26899 } 26900 , []), 26901 children: n 26902 }) 26903 }), j ? h.jsxs(LV, { 26904 "aria-hidden": !0, 26905 required: p, 26906 tabIndex: -1, 26907 name: u, 26908 autoComplete: d, 26909 value: O, 26910 onChange: B => A(B.target.value), 26911 disabled: f, 26912 form: g, 26913 children: [O === void 0 ? h.jsx("option", { 26914 value: "" 26915 }) : null, Array.from($)] 26916 }, L) : null] 26917 }) 26918 }) 26919} 26920; 26921hV.displayName = Dh; 26922var pV = "SelectTrigger" 26923 , mV = b.forwardRef( (e, t) => { 26924 const {__scopeSelect: n, disabled: r=!1, ...i} = e
vendor: 28,671 bytes, lines 26925-27826
26925 , o = mv(n) 26926 , a = Va(pV, n) 26927 , s = a.disabled || r 26928 , l = Ye(t, a.onTriggerChange) 26929 , c = pv(n) 26930 , u = b.useRef("touch") 26931 , [d,f,p] = FV(m => { 26932 const x = c().filter(w => !w.disabled) 26933 , v = x.find(w => w.value === a.value) 26934 , y = BV(x, m, v); 26935 y !== void 0 && a.onValueChange(y.value) 26936 } 26937 ) 26938 , g = m => { 26939 s || (a.onOpenChange(!0), 26940 p()), 26941 m && (a.triggerPointerDownPosRef.current = { 26942 x: Math.round(m.pageX), 26943 y: Math.round(m.pageY) 26944 }) 26945 } 26946 ; 26947 return h.jsx(J3, { 26948 asChild: !0, 26949 ...o, 26950 children: h.jsx(Ce.button, { 26951 type: "button", 26952 role: "combobox", 26953 "aria-controls": a.contentId, 26954 "aria-expanded": a.open, 26955 "aria-required": a.required, 26956 "aria-autocomplete": "none", 26957 dir: a.dir, 26958 "data-state": a.open ? "open" : "closed", 26959 disabled: s, 26960 "data-disabled": s ? "" : void 0, 26961 "data-placeholder": $V(a.value) ? "" : void 0, 26962 ...i, 26963 ref: l, 26964 onClick: ye(i.onClick, m => { 26965 m.currentTarget.focus(), 26966 u.current !== "mouse" && g(m) 26967 } 26968 ), 26969 onPointerDown: ye(i.onPointerDown, m => { 26970 u.current = m.pointerType; 26971 const x = m.target; 26972 x.hasPointerCapture(m.pointerId) && x.releasePointerCapture(m.pointerId), 26973 m.button === 0 && m.ctrlKey === !1 && m.pointerType === "mouse" && (g(m), 26974 m.preventDefault()) 26975 } 26976 ), 26977 onKeyDown: ye(i.onKeyDown, m => { 26978 const x = d.current !== ""; 26979 !(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && f(m.key), 26980 !(x && m.key === " ") && foe.includes(m.key) && (g(), 26981 m.preventDefault()) 26982 } 26983 ) 26984 }) 26985 }) 26986} 26987); 26988mV.displayName = pV; 26989var gV = "SelectValue" 26990 , yV = b.forwardRef( (e, t) => { 26991 const {__scopeSelect: n, className: r, style: i, children: o, placeholder: a="", ...s} = e 26992 , l = Va(gV, n) 26993 , {onValueNodeHasChildrenChange: c} = l 26994 , u = o !== void 0 26995 , d = Ye(t, l.onValueNodeChange); 26996 return $t( () => { 26997 c(u) 26998 } 26999 , [c, u]), 27000 h.jsx(Ce.span, { 27001 ...s, 27002 ref: d, 27003 style: { 27004 pointerEvents: "none" 27005 }, 27006 children: $V(l.value) ? h.jsx(h.Fragment, { 27007 children: a 27008 }) : o 27009 }) 27010} 27011); 27012yV.displayName = gV; 27013var voe = "SelectIcon" 27014 , vV = b.forwardRef( (e, t) => { 27015 const {__scopeSelect: n, children: r, ...i} = e; 27016 return h.jsx(Ce.span, { 27017 "aria-hidden": !0, 27018 ...i, 27019 ref: t, 27020 children: r || "▼" 27021 }) 27022} 27023); 27024vV.displayName = voe; 27025var xoe = "SelectPortal" 27026 , xV = e => h.jsx(uv, { 27027 asChild: !0, 27028 ...e 27029}); 27030xV.displayName = xoe; 27031var zs = "SelectContent" 27032 , bV = b.forwardRef( (e, t) => { 27033 const n = Va(zs, e.__scopeSelect) 27034 , [r,i] = b.useState(); 27035 if ($t( () => { 27036 i(new DocumentFragment) 27037 } 27038 , []), 27039 !n.open) { 27040 const o = r; 27041 return o ? La.createPortal(h.jsx(wV, { 27042 scope: e.__scopeSelect, 27043 children: h.jsx(hv.Slot, { 27044 scope: e.__scopeSelect, 27045 children: h.jsx("div", { 27046 children: e.children 27047 }) 27048 }) 27049 }), o) : null 27050 } 27051 return h.jsx(SV, { 27052 ...e, 27053 ref: t 27054 }) 27055} 27056); 27057bV.displayName = zs; 27058var Yr = 10 27059 , [wV,Ua] = uu(zs) 27060 , boe = "SelectContentImpl" 27061 , SV = b.forwardRef( (e, t) => { 27062 const {__scopeSelect: n, position: r="item-aligned", onCloseAutoFocus: i, onEscapeKeyDown: o, onPointerDownOutside: a, side: s, sideOffset: l, align: c, alignOffset: u, arrowPadding: d, collisionBoundary: f, collisionPadding: p, sticky: g, hideWhenDetached: m, avoidCollisions: x, ...v} = e 27063 , y = Va(zs, n) 27064 , [w,P] = b.useState(null) 27065 , [S,_] = b.useState(null) 27066 , T = Ye(t, ie => P(ie)) 27067 , [C,O] = b.useState(null) 27068 , [A,E] = b.useState(null) 27069 , j = pv(n) 27070 , [$,R] = b.useState(!1) 27071 , L = b.useRef(!1); 27072 b.useEffect( () => { 27073 if (w) 27074 return I_(w) 27075 } 27076 , [w]), 27077 C_(); 27078 const B = b.useCallback(ie => { 27079 const [ge,...Y] = j().map(F => F.ref.current) 27080 , [ne] = Y.slice(-1) 27081 , Q = document.activeElement; 27082 for (const F of ie) 27083 if (F === Q || (F == null || F.scrollIntoView({ 27084 block: "nearest" 27085 }), 27086 F === ge && S && (S.scrollTop = 0), 27087 F === ne && S && (S.scrollTop = S.scrollHeight), 27088 F == null || F.focus(), 27089 document.activeElement !== Q)) 27090 return 27091 } 27092 , [j, S]) 27093 , U = b.useCallback( () => B([C, w]), [B, C, w]); 27094 b.useEffect( () => { 27095 $ && U() 27096 } 27097 , [$, U]); 27098 const {onOpenChange: N, triggerPointerDownPosRef: D} = y; 27099 b.useEffect( () => { 27100 if (w) { 27101 let ie = { 27102 x: 0, 27103 y: 0 27104 }; 27105 const ge = ne => { 27106 var Q, F; 27107 ie = { 27108 x: Math.abs(Math.round(ne.pageX) - (((Q = D.current) == null ? void 0 : Q.x) ?? 0)), 27109 y: Math.abs(Math.round(ne.pageY) - (((F = D.current) == null ? void 0 : F.y) ?? 0)) 27110 } 27111 } 27112 , Y = ne => { 27113 ie.x <= 10 && ie.y <= 10 ? ne.preventDefault() : w.contains(ne.target) || N(!1), 27114 document.removeEventListener("pointermove", ge), 27115 D.current = null 27116 } 27117 ; 27118 return D.current !== null && (document.addEventListener("pointermove", ge), 27119 document.addEventListener("pointerup", Y, { 27120 capture: !0, 27121 once: !0 27122 })), 27123 () => { 27124 document.removeEventListener("pointermove", ge), 27125 document.removeEventListener("pointerup", Y, { 27126 capture: !0 27127 }) 27128 } 27129 } 27130 } 27131 , [w, N, D]), 27132 b.useEffect( () => { 27133 const ie = () => N(!1); 27134 return window.addEventListener("blur", ie), 27135 window.addEventListener("resize", ie), 27136 () => { 27137 window.removeEventListener("blur", ie), 27138 window.removeEventListener("resize", ie) 27139 } 27140 } 27141 , [N]); 27142 const [W,K] = FV(ie => { 27143 const ge = j().filter(Q => !Q.disabled) 27144 , Y = ge.find(Q => Q.ref.current === document.activeElement) 27145 , ne = BV(ge, ie, Y); 27146 ne && setTimeout( () => ne.ref.current.focus()) 27147 } 27148 ) 27149 , G = b.useCallback( (ie, ge, Y) => { 27150 const ne = !L.current && !Y; 27151 (y.value !== void 0 && y.value === ge || ne) && (O(ie), 27152 ne && (L.current = !0)) 27153 } 27154 , [y.value]) 27155 , ae = b.useCallback( () => w == null ? void 0 : w.focus(), [w]) 27156 , ve = b.useCallback( (ie, ge, Y) => { 27157 const ne = !L.current && !Y; 27158 (y.value !== void 0 && y.value === ge || ne) && E(ie) 27159 } 27160 , [y.value]) 27161 , je = r === "popper" ? qw : PV 27162 , Oe = je === qw ? { 27163 side: s, 27164 sideOffset: l, 27165 align: c, 27166 alignOffset: u, 27167 arrowPadding: d, 27168 collisionBoundary: f, 27169 collisionPadding: p, 27170 sticky: g, 27171 hideWhenDetached: m, 27172 avoidCollisions: x 27173 } : {}; 27174 return h.jsx(wV, { 27175 scope: n, 27176 content: w, 27177 viewport: S, 27178 onViewportChange: _, 27179 itemRefCallback: G, 27180 selectedItem: C, 27181 onItemLeave: ae, 27182 itemTextRefCallback: ve, 27183 focusSelectedItem: U, 27184 selectedItemText: A, 27185 position: r, 27186 isPositioned: $, 27187 searchRef: W, 27188 children: h.jsx(fv, { 27189 as: nV, 27190 allowPinchZoom: !0, 27191 children: h.jsx(ov, { 27192 asChild: !0, 27193 trapped: y.open, 27194 onMountAutoFocus: ie => { 27195 ie.preventDefault() 27196 } 27197 , 27198 onUnmountAutoFocus: ye(i, ie => { 27199 var ge; 27200 (ge = y.trigger) == null || ge.focus({ 27201 preventScroll: !0 27202 }), 27203 ie.preventDefault() 27204 } 27205 ), 27206 children: h.jsx(iv, { 27207 asChild: !0, 27208 disableOutsidePointerEvents: !0, 27209 onEscapeKeyDown: o, 27210 onPointerDownOutside: a, 27211 onFocusOutside: ie => ie.preventDefault(), 27212 onDismiss: () => y.onOpenChange(!1), 27213 children: h.jsx(je, { 27214 role: "listbox", 27215 id: y.contentId, 27216 "data-state": y.open ? "open" : "closed", 27217 dir: y.dir, 27218 onContextMenu: ie => ie.preventDefault(), 27219 ...v, 27220 ...Oe, 27221 onPlaced: () => R(!0), 27222 ref: T, 27223 style: { 27224 display: "flex", 27225 flexDirection: "column", 27226 outline: "none", 27227 ...v.style 27228 }, 27229 onKeyDown: ye(v.onKeyDown, ie => { 27230 const ge = ie.ctrlKey || ie.altKey || ie.metaKey; 27231 if (ie.key === "Tab" && ie.preventDefault(), 27232 !ge && ie.key.length === 1 && K(ie.key), 27233 ["ArrowUp", "ArrowDown", "Home", "End"].includes(ie.key)) { 27234 let ne = j().filter(Q => !Q.disabled).map(Q => Q.ref.current); 27235 if (["ArrowUp", "End"].includes(ie.key) && (ne = ne.slice().reverse()), 27236 ["ArrowUp", "ArrowDown"].includes(ie.key)) { 27237 const Q = ie.target 27238 , F = ne.indexOf(Q); 27239 ne = ne.slice(F + 1) 27240 } 27241 setTimeout( () => B(ne)), 27242 ie.preventDefault() 27243 } 27244 } 27245 ) 27246 }) 27247 }) 27248 }) 27249 }) 27250 }) 27251} 27252); 27253SV.displayName = boe; 27254var woe = "SelectItemAlignedPosition" 27255 , PV = b.forwardRef( (e, t) => { 27256 const {__scopeSelect: n, onPlaced: r, ...i} = e 27257 , o = Va(zs, n) 27258 , a = Ua(zs, n) 27259 , [s,l] = b.useState(null) 27260 , [c,u] = b.useState(null) 27261 , d = Ye(t, T => u(T)) 27262 , f = pv(n) 27263 , p = b.useRef(!1) 27264 , g = b.useRef(!0) 27265 , {viewport: m, selectedItem: x, selectedItemText: v, focusSelectedItem: y} = a 27266 , w = b.useCallback( () => { 27267 if (o.trigger && o.valueNode && s && c && m && x && v) { 27268 const T = o.trigger.getBoundingClientRect() 27269 , C = c.getBoundingClientRect() 27270 , O = o.valueNode.getBoundingClientRect() 27271 , A = v.getBoundingClientRect(); 27272 if (o.dir !== "rtl") { 27273 const Q = A.left - C.left 27274 , F = O.left - Q 27275 , he = T.left - F 27276 , de = T.width + he 27277 , Ne = Math.max(de, C.width) 27278 , Be = window.innerWidth - Yr 27279 , Qe = kE(F, [Yr, Math.max(Yr, Be - Ne)]); 27280 s.style.minWidth = de + "px", 27281 s.style.left = Qe + "px" 27282 } else { 27283 const Q = C.right - A.right 27284 , F = window.innerWidth - O.right - Q 27285 , he = window.innerWidth - T.right - F 27286 , de = T.width + he 27287 , Ne = Math.max(de, C.width) 27288 , Be = window.innerWidth - Yr 27289 , Qe = kE(F, [Yr, Math.max(Yr, Be - Ne)]); 27290 s.style.minWidth = de + "px", 27291 s.style.right = Qe + "px" 27292 } 27293 const E = f() 27294 , j = window.innerHeight - Yr * 2 27295 , $ = m.scrollHeight 27296 , R = window.getComputedStyle(c) 27297 , L = parseInt(R.borderTopWidth, 10) 27298 , B = parseInt(R.paddingTop, 10) 27299 , U = parseInt(R.borderBottomWidth, 10) 27300 , N = parseInt(R.paddingBottom, 10) 27301 , D = L + B + $ + N + U 27302 , W = Math.min(x.offsetHeight * 5, D) 27303 , K = window.getComputedStyle(m) 27304 , G = parseInt(K.paddingTop, 10) 27305 , ae = parseInt(K.paddingBottom, 10) 27306 , ve = T.top + T.height / 2 - Yr 27307 , je = j - ve 27308 , Oe = x.offsetHeight / 2 27309 , ie = x.offsetTop + Oe 27310 , ge = L + B + ie 27311 , Y = D - ge; 27312 if (ge <= ve) { 27313 const Q = E.length > 0 && x === E[E.length - 1].ref.current; 27314 s.style.bottom = "0px"; 27315 const F = c.clientHeight - m.offsetTop - m.offsetHeight 27316 , he = Math.max(je, Oe + (Q ? ae : 0) + F + U) 27317 , de = ge + he; 27318 s.style.height = de + "px" 27319 } else { 27320 const Q = E.length > 0 && x === E[0].ref.current; 27321 s.style.top = "0px"; 27322 const he = Math.max(ve, L + m.offsetTop + (Q ? G : 0) + Oe) + Y; 27323 s.style.height = he + "px", 27324 m.scrollTop = ge - ve + m.offsetTop 27325 } 27326 s.style.margin = `${Yr}px 0`, 27327 s.style.minHeight = W + "px", 27328 s.style.maxHeight = j + "px", 27329 r == null || r(), 27330 requestAnimationFrame( () => p.current = !0) 27331 } 27332 } 27333 , [f, o.trigger, o.valueNode, s, c, m, x, v, o.dir, r]); 27334 $t( () => w(), [w]); 27335 const [P,S] = b.useState(); 27336 $t( () => { 27337 c && S(window.getComputedStyle(c).zIndex) 27338 } 27339 , [c]); 27340 const _ = b.useCallback(T => { 27341 T && g.current === !0 && (w(), 27342 y == null || y(), 27343 g.current = !1) 27344 } 27345 , [w, y]); 27346 return h.jsx(Poe, { 27347 scope: n, 27348 contentWrapper: s, 27349 shouldExpandOnScrollRef: p, 27350 onScrollButtonChange: _, 27351 children: h.jsx("div", { 27352 ref: l, 27353 style: { 27354 display: "flex", 27355 flexDirection: "column", 27356 position: "fixed", 27357 zIndex: P 27358 }, 27359 children: h.jsx(Ce.div, { 27360 ...i, 27361 ref: d, 27362 style: { 27363 boxSizing: "border-box", 27364 maxHeight: "100%", 27365 ...i.style 27366 } 27367 }) 27368 }) 27369 }) 27370} 27371); 27372PV.displayName = woe; 27373var Soe = "SelectPopperPosition" 27374 , qw = b.forwardRef( (e, t) => { 27375 const {__scopeSelect: n, align: r="start", collisionPadding: i=Yr, ...o} = e 27376 , a = mv(n); 27377 return h.jsx(eV, { 27378 ...a, 27379 ...o, 27380 ref: t, 27381 align: r, 27382 collisionPadding: i, 27383 style: { 27384 boxSizing: "border-box", 27385 ...o.style, 27386 "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)", 27387 "--radix-select-content-available-width": "var(--radix-popper-available-width)", 27388 "--radix-select-content-available-height": "var(--radix-popper-available-height)", 27389 "--radix-select-trigger-width": "var(--radix-popper-anchor-width)", 27390 "--radix-select-trigger-height": "var(--radix-popper-anchor-height)" 27391 } 27392 }) 27393} 27394); 27395qw.displayName = Soe; 27396var [Poe,$_] = uu(zs, {}) 27397 , Kw = "SelectViewport" 27398 , _V = b.forwardRef( (e, t) => { 27399 const {__scopeSelect: n, nonce: r, ...i} = e 27400 , o = Ua(Kw, n) 27401 , a = $_(Kw, n) 27402 , s = Ye(t, o.onViewportChange) 27403 , l = b.useRef(0); 27404 return h.jsxs(h.Fragment, { 27405 children: [h.jsx("style", { 27406 dangerouslySetInnerHTML: { 27407 __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" 27408 }, 27409 nonce: r 27410 }), h.jsx(hv.Slot, { 27411 scope: n, 27412 children: h.jsx(Ce.div, { 27413 "data-radix-select-viewport": "", 27414 role: "presentation", 27415 ...i, 27416 ref: s, 27417 style: { 27418 position: "relative", 27419 flex: 1, 27420 overflow: "hidden auto", 27421 ...i.style 27422 }, 27423 onScroll: ye(i.onScroll, c => { 27424 const u = c.currentTarget 27425 , {contentWrapper: d, shouldExpandOnScrollRef: f} = a; 27426 if (f != null && f.current && d) { 27427 const p = Math.abs(l.current - u.scrollTop); 27428 if (p > 0) { 27429 const g = window.innerHeight - Yr * 2 27430 , m = parseFloat(d.style.minHeight) 27431 , x = parseFloat(d.style.height) 27432 , v = Math.max(m, x); 27433 if (v < g) { 27434 const y = v + p 27435 , w = Math.min(g, y) 27436 , P = y - w; 27437 d.style.height = w + "px", 27438 d.style.bottom === "0px" && (u.scrollTop = P > 0 ? P : 0, 27439 d.style.justifyContent = "flex-end") 27440 } 27441 } 27442 } 27443 l.current = u.scrollTop 27444 } 27445 ) 27446 }) 27447 })] 27448 }) 27449} 27450); 27451_V.displayName = Kw; 27452var TV = "SelectGroup" 27453 , [_oe,Toe] = uu(TV) 27454 , Coe = b.forwardRef( (e, t) => { 27455 const {__scopeSelect: n, ...r} = e 27456 , i = Ir(); 27457 return h.jsx(_oe, { 27458 scope: n, 27459 id: i, 27460 children: h.jsx(Ce.div, { 27461 role: "group", 27462 "aria-labelledby": i, 27463 ...r, 27464 ref: t 27465 }) 27466 }) 27467} 27468); 27469Coe.displayName = TV; 27470var CV = "SelectLabel" 27471 , OV = b.forwardRef( (e, t) => { 27472 const {__scopeSelect: n, ...r} = e 27473 , i = Toe(CV, n); 27474 return h.jsx(Ce.div, { 27475 id: i.id, 27476 ...r, 27477 ref: t 27478 }) 27479} 27480); 27481OV.displayName = CV; 27482var lg = "SelectItem" 27483 , [Ooe,AV] = uu(lg) 27484 , EV = b.forwardRef( (e, t) => { 27485 const {__scopeSelect: n, value: r, disabled: i=!1, textValue: o, ...a} = e 27486 , s = Va(lg, n) 27487 , l = Ua(lg, n) 27488 , c = s.value === r 27489 , [u,d] = b.useState(o ?? "") 27490 , [f,p] = b.useState(!1) 27491 , g = Ye(t, y => { 27492 var w; 27493 return (w = l.itemRefCallback) == null ? void 0 : w.call(l, y, r, i) 27494 } 27495 ) 27496 , m = Ir() 27497 , x = b.useRef("touch") 27498 , v = () => { 27499 i || (s.onValueChange(r), 27500 s.onOpenChange(!1)) 27501 } 27502 ; 27503 if (r === "") 27504 throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."); 27505 return h.jsx(Ooe, { 27506 scope: n, 27507 value: r, 27508 disabled: i, 27509 textId: m, 27510 isSelected: c, 27511 onItemTextChange: b.useCallback(y => { 27512 d(w => w || ((y == null ? void 0 : y.textContent) ?? "").trim()) 27513 } 27514 , []), 27515 children: h.jsx(hv.ItemSlot, { 27516 scope: n, 27517 value: r, 27518 disabled: i, 27519 textValue: u, 27520 children: h.jsx(Ce.div, { 27521 role: "option", 27522 "aria-labelledby": m, 27523 "data-highlighted": f ? "" : void 0, 27524 "aria-selected": c && f, 27525 "data-state": c ? "checked" : "unchecked", 27526 "aria-disabled": i || void 0, 27527 "data-disabled": i ? "" : void 0, 27528 tabIndex: i ? void 0 : -1, 27529 ...a, 27530 ref: g, 27531 onFocus: ye(a.onFocus, () => p(!0)), 27532 onBlur: ye(a.onBlur, () => p(!1)), 27533 onClick: ye(a.onClick, () => { 27534 x.current !== "mouse" && v() 27535 } 27536 ), 27537 onPointerUp: ye(a.onPointerUp, () => { 27538 x.current === "mouse" && v() 27539 } 27540 ), 27541 onPointerDown: ye(a.onPointerDown, y => { 27542 x.current = y.pointerType 27543 } 27544 ), 27545 onPointerMove: ye(a.onPointerMove, y => { 27546 var w; 27547 x.current = y.pointerType, 27548 i ? (w = l.onItemLeave) == null || w.call(l) : x.current === "mouse" && y.currentTarget.focus({ 27549 preventScroll: !0 27550 }) 27551 } 27552 ), 27553 onPointerLeave: ye(a.onPointerLeave, y => { 27554 var w; 27555 y.currentTarget === document.activeElement && ((w = l.onItemLeave) == null || w.call(l)) 27556 } 27557 ), 27558 onKeyDown: ye(a.onKeyDown, y => { 27559 var P; 27560 ((P = l.searchRef) == null ? void 0 : P.current) !== "" && y.key === " " || (hoe.includes(y.key) && v(), 27561 y.key === " " && y.preventDefault()) 27562 } 27563 ) 27564 }) 27565 }) 27566 }) 27567} 27568); 27569EV.displayName = lg; 27570var ud = "SelectItemText" 27571 , jV = b.forwardRef( (e, t) => { 27572 const {__scopeSelect: n, className: r, style: i, ...o} = e 27573 , a = Va(ud, n) 27574 , s = Ua(ud, n) 27575 , l = AV(ud, n) 27576 , c = yoe(ud, n) 27577 , [u,d] = b.useState(null) 27578 , f = Ye(t, v => d(v), l.onItemTextChange, v => { 27579 var y; 27580 return (y = s.itemTextRefCallback) == null ? void 0 : y.call(s, v, l.value, l.disabled) 27581 } 27582 ) 27583 , p = u == null ? void 0 : u.textContent 27584 , g = b.useMemo( () => h.jsx("option", { 27585 value: l.value, 27586 disabled: l.disabled, 27587 children: p 27588 }, l.value), [l.disabled, l.value, p]) 27589 , {onNativeOptionAdd: m, onNativeOptionRemove: x} = c; 27590 return $t( () => (m(g), 27591 () => x(g)), [m, x, g]), 27592 h.jsxs(h.Fragment, { 27593 children: [h.jsx(Ce.span, { 27594 id: l.textId, 27595 ...o, 27596 ref: f 27597 }), l.isSelected && a.valueNode && !a.valueNodeHasChildren ? La.createPortal(o.children, a.valueNode) : null] 27598 }) 27599} 27600); 27601jV.displayName = ud; 27602var NV = "SelectItemIndicator" 27603 , MV = b.forwardRef( (e, t) => { 27604 const {__scopeSelect: n, ...r} = e; 27605 return AV(NV, n).isSelected ? h.jsx(Ce.span, { 27606 "aria-hidden": !0, 27607 ...r, 27608 ref: t 27609 }) : null 27610} 27611); 27612MV.displayName = NV; 27613var Gw = "SelectScrollUpButton" 27614 , kV = b.forwardRef( (e, t) => { 27615 const n = Ua(Gw, e.__scopeSelect) 27616 , r = $_(Gw, e.__scopeSelect) 27617 , [i,o] = b.useState(!1) 27618 , a = Ye(t, r.onScrollButtonChange); 27619 return $t( () => { 27620 if (n.viewport && n.isPositioned) { 27621 let s = function() { 27622 const c = l.scrollTop > 0; 27623 o(c) 27624 }; 27625 const l = n.viewport; 27626 return s(), 27627 l.addEventListener("scroll", s), 27628 () => l.removeEventListener("scroll", s) 27629 } 27630 } 27631 , [n.viewport, n.isPositioned]), 27632 i ? h.jsx(DV, { 27633 ...e, 27634 ref: a, 27635 onAutoScroll: () => { 27636 const {viewport: s, selectedItem: l} = n; 27637 s && l && (s.scrollTop = s.scrollTop - l.offsetHeight) 27638 } 27639 }) : null 27640} 27641); 27642kV.displayName = Gw; 27643var Yw = "SelectScrollDownButton" 27644 , RV = b.forwardRef( (e, t) => { 27645 const n = Ua(Yw, e.__scopeSelect) 27646 , r = $_(Yw, e.__scopeSelect) 27647 , [i,o] = b.useState(!1) 27648 , a = Ye(t, r.onScrollButtonChange); 27649 return $t( () => { 27650 if (n.viewport && n.isPositioned) { 27651 let s = function() { 27652 const c = l.scrollHeight - l.clientHeight 27653 , u = Math.ceil(l.scrollTop) < c; 27654 o(u) 27655 }; 27656 const l = n.viewport; 27657 return s(), 27658 l.addEventListener("scroll", s), 27659 () => l.removeEventListener("scroll", s) 27660 } 27661 } 27662 , [n.viewport, n.isPositioned]), 27663 i ? h.jsx(DV, { 27664 ...e, 27665 ref: a, 27666 onAutoScroll: () => { 27667 const {viewport: s, selectedItem: l} = n; 27668 s && l && (s.scrollTop = s.scrollTop + l.offsetHeight) 27669 } 27670 }) : null 27671} 27672); 27673RV.displayName = Yw; 27674var DV = b.forwardRef( (e, t) => { 27675 const {__scopeSelect: n, onAutoScroll: r, ...i} = e 27676 , o = Ua("SelectScrollButton", n) 27677 , a = b.useRef(null) 27678 , s = pv(n) 27679 , l = b.useCallback( () => { 27680 a.current !== null && (window.clearInterval(a.current), 27681 a.current = null) 27682 } 27683 , []); 27684 return b.useEffect( () => () => l(), [l]), 27685 $t( () => { 27686 var u; 27687 const c = s().find(d => d.ref.current === document.activeElement); 27688 (u = c == null ? void 0 : c.ref.current) == null || u.scrollIntoView({ 27689 block: "nearest" 27690 }) 27691 } 27692 , [s]), 27693 h.jsx(Ce.div, { 27694 "aria-hidden": !0, 27695 ...i, 27696 ref: t, 27697 style: { 27698 flexShrink: 0, 27699 ...i.style 27700 }, 27701 onPointerDown: ye(i.onPointerDown, () => { 27702 a.current === null && (a.current = window.setInterval(r, 50)) 27703 } 27704 ), 27705 onPointerMove: ye(i.onPointerMove, () => { 27706 var c; 27707 (c = o.onItemLeave) == null || c.call(o), 27708 a.current === null && (a.current = window.setInterval(r, 50)) 27709 } 27710 ), 27711 onPointerLeave: ye(i.onPointerLeave, () => { 27712 l() 27713 } 27714 ) 27715 }) 27716} 27717) 27718 , Aoe = "SelectSeparator" 27719 , IV = b.forwardRef( (e, t) => { 27720 const {__scopeSelect: n, ...r} = e; 27721 return h.jsx(Ce.div, { 27722 "aria-hidden": !0, 27723 ...r, 27724 ref: t 27725 }) 27726} 27727); 27728IV.displayName = Aoe; 27729var Xw = "SelectArrow" 27730 , Eoe = b.forwardRef( (e, t) => { 27731 const {__scopeSelect: n, ...r} = e 27732 , i = mv(n) 27733 , o = Va(Xw, n) 27734 , a = Ua(Xw, n); 27735 return o.open && a.position === "popper" ? h.jsx(tV, { 27736 ...i, 27737 ...r, 27738 ref: t 27739 }) : null 27740} 27741); 27742Eoe.displayName = Xw; 27743function $V(e) { 27744 return e === "" || e === void 0 27745} 27746var LV = b.forwardRef( (e, t) => { 27747 const {value: n, ...r} = e 27748 , i = b.useRef(null) 27749 , o = Ye(t, i) 27750 , a = rV(n); 27751 return b.useEffect( () => { 27752 const s = i.current 27753 , l = window.HTMLSelectElement.prototype 27754 , u = Object.getOwnPropertyDescriptor(l, "value").set; 27755 if (a !== n && u) { 27756 const d = new Event("change",{ 27757 bubbles: !0 27758 }); 27759 u.call(s, n), 27760 s.dispatchEvent(d) 27761 } 27762 } 27763 , [a, n]), 27764 h.jsx(iV, { 27765 asChild: !0, 27766 children: h.jsx("select", { 27767 ...r, 27768 ref: o, 27769 defaultValue: n 27770 }) 27771 }) 27772} 27773); 27774LV.displayName = "BubbleSelect"; 27775function FV(e) { 27776 const t = rn(e) 27777 , n = b.useRef("") 27778 , r = b.useRef(0) 27779 , i = b.useCallback(a => { 27780 const s = n.current + a; 27781 t(s), 27782 function l(c) { 27783 n.current = c, 27784 window.clearTimeout(r.current), 27785 c !== "" && (r.current = window.setTimeout( () => l(""), 1e3)) 27786 }(s) 27787 } 27788 , [t]) 27789 , o = b.useCallback( () => { 27790 n.current = "", 27791 window.clearTimeout(r.current) 27792 } 27793 , []); 27794 return b.useEffect( () => () => window.clearTimeout(r.current), []), 27795 [n, i, o] 27796} 27797function BV(e, t, n) { 27798 const i = t.length > 1 && Array.from(t).every(c => c === t[0]) ? t[0] : t 27799 , o = n ? e.indexOf(n) : -1; 27800 let a = joe(e, Math.max(o, 0)); 27801 i.length === 1 && (a = a.filter(c => c !== n)); 27802 const l = a.find(c => c.textValue.toLowerCase().startsWith(i.toLowerCase())); 27803 return l !== n ? l : void 0 27804} 27805function joe(e, t) { 27806 return e.map( (n, r) => e[(t + r) % e.length]) 27807} 27808var Noe = hV 27809 , VV = mV 27810 , Moe = yV 27811 , koe = vV 27812 , Roe = xV 27813 , UV = bV 27814 , Doe = _V 27815 , zV = OV 27816 , WV = EV 27817 , Ioe = jV 27818 , $oe = MV 27819 , HV = kV 27820 , qV = RV 27821 , KV = IV; 27822const gv = Noe 27823 , yv = Moe 27824 , Ih = b.forwardRef( ({className: e, children: t, ...n}, r) => h.jsxs(VV, { 27825 ref: r, 27826 className: fe("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
27826ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", e), 27827 ...n, 27828 children: [t, h.jsx(koe, { 27829 asChild: !0, 27830 children: h.jsx(FP, { 27831 className: "h-4 w-4 opacity-50" 27832 }) 27833 })] 27834})); 27835Ih.displayName = VV.displayName; 27836const GV = b.forwardRef( ({className: e, ...t}, n) => h.jsx(HV, { 27837 ref: n, 27838 className: fe("flex cursor-default items-center justify-center py-1", e), 27839 ...t, 27840 children: h.jsx(_X, { 27841 className: "h-4 w-4" 27842 }) 27843})); 27844GV.displayName = HV.displayName; 27845const YV = b.forwardRef( ({className: e, ...t}, n) => h.jsx(qV, { 27846 ref: n, 27847 className: fe("flex cursor-default items-center justify-center py-1", e), 27848 ...t, 27849 children: h.jsx(FP, { 27850 className: "h-4 w-4" 27851 }) 27852})); 27853YV.displayName = qV.displayName; 27854const $h = b.forwardRef( ({className: e, children: t, position: n="popper", ...r}, i) => h.jsx(Roe, { 27855 children: h.jsxs(UV, { 27856 ref: i, 27857 className: fe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e), 27858 position: n, 27859 ...r, 27860 children: [h.jsx(GV, {}), h.jsx(Doe, { 27861 className: fe("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"), 27862 children: t 27863 }), h.jsx(YV, {})] 27864 }) 27865})); 27866$h.displayName = UV.displayName; 27867const Loe = b.forwardRef( ({className: e, ...t}, n) => h.jsx(zV, { 27868 ref: n, 27869 className: fe("py-1.5 pl-8 pr-2 text-sm font-semibold", e), 27870 ...t 27871})); 27872Loe.displayName = zV.displayName; 27873const go = b.forwardRef( ({className: e, children: t, ...n}, r) => h.jsxs(WV, { 27874 ref: r, 27875 className: fe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e), 27876 ...n, 27877 children: [h.jsx("span", { 27878 className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", 27879 children: h.jsx($oe, { 27880 children: h.jsx(LP, { 27881 className: "h-4 w-4" 27882 }) 27883 }) 27884 }), h.jsx(Ioe, { 27885 children: t 27886 })] 27887})); 27888go.displayName = WV.displayName; 27889const Foe = b.forwardRef( ({className: e, ...t}, n) => h.jsx(KV, { 27890 ref: n, 27891 className: fe("-mx-1 my-1 h-px bg-muted", e), 27892 ...t 27893}));
27894Foe.displayName = KV.displayName; 27895const yn = b.forwardRef( ({className: e, type: t, ...n}, r) => h.jsx("input", { 27896 type: t, 27897 className: fe("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", e), 27898 ref: r, 27899 ...n 27900})); 27901yn.displayName = "Input"; 27902var Boe = ["a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "span", "svg", "ul"] 27903 , Voe = Boe.reduce( (e, t) => { 27904 const n = b.forwardRef( (r, i) => { 27905 const {asChild: o, ...a} = r 27906 , s = o ? Bs : t; 27907 return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), 27908 h.jsx(s, { 27909 ...a, 27910 ref: i 27911 }) 27912 } 27913 ); 27914 return n.displayName = `Primitive.${t}`, 27915 { 27916 ...e, 27917 [t]: n 27918 } 27919} 27920, {}) 27921 , Uoe = "Label" 27922 , XV = b.forwardRef( (e, t) => h.jsx(Voe.label, { 27923 ...e, 27924 ref: t, 27925 onMouseDown: n => { 27926 var i; 27927 n.target.closest("button, input, select, textarea") || ((i = e.onMouseDown) == null || i.call(e, n), 27928 !n.defaultPrevented && n.detail > 1 && n.preventDefault()) 27929 } 27930})); 27931XV.displayName = Uoe; 27932var QV = XV; 27933const zoe = Ch("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70") 27934 , xa = b.forwardRef( ({className: e, ...t}, n) => h.jsx(QV, { 27935 ref: n, 27936 className: fe(zoe(), e), 27937 ...t 27938})); 27939xa.displayName = QV.displayName; 27940const dd = [{ 27941 id: "a5000", 27942 name: "Nvidia A5000", 27943 displayName: "Nvidia A5000 (24GB VRAM)", 27944 price: 1.4, 27945 details: "Entry-level professional GPU", 27946 specs: { 27947 memory: "24GB VRAM" 27948 } 27949}, { 27950 id: "a6000", 27951 name: "Nvidia A6000", 27952 displayName: "Nvidia A6000 (48GB VRAM)", 27953 price: 2.0, 27954 details: "Production-grade GPU", 27955 specs: { 27956 memory: "48GB VRAM" 27957 } 27958}, { 27959 id: "l40s", 27960 name: "Nvidia L40S", 27961 displayName: "Nvidia L40S (48GB VRAM)", 27962 price: 4.1, 27963 details: "Latest generation GPU", 27964 specs: { 27965 memory: "48GB VRAM" 27966 } 27967}] 27968 , Woe = Ee(cn); 27969function Hoe() { 27970 const [e,t] = b.useState(dd[0]) 27971 , [n,r] = b.useState("") 27972 , [i,o] = b.useState("") 27973 , a = () => { 27974 const d = parseFloat(n) 27975 , f = parseInt(i); 27976 return isNaN(d) || isNaN(f) ? 0 : d * f / 60 27977 } 27978 , s = () => { 27979 const d = a(); 27980 return isNaN(d) ? 0 : e.price * d 27981 } 27982 , l = a() 27983 , c = s() 27984 , u = d => { 27985 if (d === 0) 27986 return "0"; 27987 if (d < 1 / 60) 27988 return `${Math.round(d * 3600)} seconds`; 27989 if (d < 1) 27990 return `${Math.round(d * 60)} minutes`; 27991 const f = Math.floor(d) 27992 , p = Math.round((d - f) * 60); 27993 return p > 0 ? `${f}h ${p}m` : `${f}h` 27994 } 27995 ; 27996 return h.jsx("div", { 27997 className: "max-w-2xl mx-auto", 27998 children: h.jsxs(Woe, { 27999 variants: It, 28000 children: [h.jsx(Kt, { 28001 children: h.jsxs(Gt, { 28002 className: "flex items-center gap-2", 28003 children: [h.jsx($P, { 28004 className: "h-6 w-6" 28005 }), "Render Cost Calculator"] 28006 }) 28007 }), h.jsxs(Ct, { 28008 className: "space-y-6", 28009 children: [h.jsxs("div", { 28010 className: "space-y-2", 28011 children: [h.jsx(xa, { 28012 children: "GPU Tier" 28013 }), h.jsxs(gv, { 28014 value: e.id, 28015 onValueChange: d => t(dd.find(f => f.id === d) || dd[0]), 28016 children: [h.jsx(Ih, { 28017 children: h.jsx(yv, {}) 28018 }), h.jsx($h, { 28019 children: dd.map(d => h.jsxs(go, { 28020 value: d.id, 28021 children: [d.displayName, " ($", d.price, "/hour)"] 28022 }, d.id)) 28023 })] 28024 })] 28025 }), h.jsxs("div", { 28026 className: "space-y-2", 28027 children: [h.jsx(xa, { 28028 children: "Estimated Time per Frame (minutes)" 28029 }), h.jsx(yn, { 28030 type: "number", 28031 min: "0.1", 28032 step: "0.1", 28033 placeholder: "Enter minutes per frame", 28034 value: n, 28035 onChange: d => r(d.target.value) 28036 })] 28037 }), h.jsxs("div", { 28038 className: "space-y-2", 28039 children: [h.jsx(xa, { 28040 children: "Total Number of Frames" 28041 }), h.jsx(yn, { 28042 type: "number", 28043 min: "1", 28044 step: "1", 28045 placeholder: "Enter total frames", 28046 value: i, 28047 onChange: d => o(d.target.value) 28048 })] 28049 }), h.jsx(cn, { 28050 className: "bg-muted/50", 28051 children: h.jsx(Ct, { 28052 className: "pt-6", 28053 children: h.jsxs("div", { 28054 className: "grid grid-cols-2 gap-4", 28055 children: [h.jsxs("div", { 28056 children: [h.jsx("p", { 28057 className: "text-sm text-muted-foreground", 28058 children: "Rate" 28059 }), h.jsxs("p", { 28060 className: "text-2xl font-bold", 28061 children: ["$", e.price, "/hour"] 28062 })] 28063 }), h.jsxs("div", { 28064 children: [h.jsx("p", { 28065 className: "text-sm text-muted-foreground", 28066 children: "Total Time" 28067 }), h.jsx("p", { 28068 className: "text-2xl font-bold", 28069 children: u(l) 28070 })] 28071 }), h.jsxs("div", { 28072 className: "col-span-2", 28073 children: [h.jsx("p", { 28074 className: "text-sm text-muted-foreground", 28075 children: "Total Cost" 28076 }), h.jsxs("p", { 28077 className: "text-2xl font-bold", 28078 children: ["$", c.toFixed(2)] 28079 })] 28080 })] 28081 }) 28082 }) 28083 })] 28084 })] 28085 }) 28086 }) 28087} 28088function qoe(e) { 28089 return T_({ 28090 tag: "svg", 28091 attr: {
28092 viewBox: "0 0 448 512" 28093 }, 28094 child: [{ 28095 tag: "path", 28096 attr: { 28097 d: "M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z" 28098 }, 28099 child: [] 28100 }] 28101 })(e) 28102} 28103const Koe = [...dd.map(e => ({ 28104 name: e.name, 28105 price: `$${e.price.toFixed(2)}`, 28106 specs: e.specs, 28107 features: [e.details, "Multi-GPU support", "Dedicated bandwidth", "24/7 availability"] 28108})), { 28109 name: "Custom Enterprise", 28110 price: "Custom", 28111 specs: { 28112 memory: "Custom" 28113 }, 28114 features: ["Priority access to rendering nodes", "Flexible volume-based pricing", "Dedicated account manager", "Tailored support for complex workflows"], 28115 isCustom: !0 28116}] 28117 , Goe = Ee(cn); 28118function Yoe() { 28119 return b.useEffect( () => { 28120 window.scrollTo(0, 0) 28121 } 28122 , []), 28123 h.jsxs("div", { 28124 className: "min-h-screen bg-background", 28125 children: [h.jsx("div", { 28126 className: "container mx-auto pt-8 invisible", 28127 children: h.jsx(Tt, { 28128 href: "/", 28129 children: h.jsxs(Me, { 28130 variant: "ghost", 28131 className: "mb-8", 28132 children: [h.jsx(_4, { 28133 className: "mr-2 h-4 w-4" 28134 }), "Back to Home"] 28135 }) 28136 }) 28137 }), h.jsx(Ee.section, { 28138 className: "py-12 px-4", 28139 variants: Ut, 28140 initial: "initial", 28141 animate: "animate", 28142 children: h.jsxs("div", { 28143 className: "max-w-6xl mx-auto text-center", 28144 children: [h.jsx(Ee.h1, { 28145 className: "text-4xl md:text-5xl font-bold mb-8", 28146 variants: It, 28147 children: "Up to 80% cheaper than iRender & AWS" 28148 }), h.jsxs(Ee.div, { 28149 className: "grid md:grid-cols-3 gap-6 max-w-5xl mx-auto mb-8", 28150 variants: Ac, 28151 children: [h.jsxs(Ee.div, { 28152 variants: It, 28153 className: "bg-background/80 backdrop-blur-sm p-6 rounded-xl border border-primary/10", 28154 children: [h.jsx("h3", { 28155 className: "text-lg font-semibold mb-2", 28156 children: "Choose Your GPU" 28157 }), h.jsx("p", { 28158 className: "text-muted-foreground", 28159 children: "Choose the right GPU for your rendering needs" 28160 })] 28161 }), h.jsxs(Ee.div, { 28162 variants: It, 28163 className: "bg-background/80 backdrop-blur-sm p-6 rounded-xl border border-primary/10", 28164 children: [h.jsx("h3", { 28165 className: "text-lg font-semibold mb-2", 28166 children: "Pay Per Use" 28167 }), h.jsx("p", { 28168 className: "text-muted-foreground", 28169 children: "Pay only for what you use" 28170 })] 28171 }), h.jsxs(Ee.div, { 28172 variants: It, 28173 className: "bg-background/80 backdrop-blur-sm p-6 rounded-xl border border-primary/10", 28174 children: [h.jsx("h3", { 28175 className: "text-lg font-semibold mb-2", 28176 children: "Cost Effective" 28177 }), h.jsx("p", { 28178 className: "text-muted-foreground", 28179 children: "Zero Data transfer Cost - 80% more cost effective than iRender/AWS/GCP/Azure" 28180 })] 28181 })] 28182 })] 28183 }) 28184 }), h.jsx(Ee.section, { 28185 className: "py-2 px-4", 28186 variants: Ut, 28187 initial: "initial", 28188 animate: "animate", 28189 children: h.jsx(Ee.div, { 28190 className: "max-w-7xl mx-auto", 28191 variants: Ut, 28192 initial: "initial", 28193 animate: "animate", 28194 children: [h.jsx(Ee.div, { 28195 className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4", 28196 variants: Ac, 28197 children: Koe.map(e => h.jsxs(Goe, { 28198 variants: It, 28199 className: "flex flex-col h-full", 28200 children: [h.jsxs(Kt, { 28201 className: "flex-none", 28202 children: [!e.isCustom && h.jsxs("div", { 28203 className: "flex justify-center gap-6 mb-6", 28204 children: [h.jsx(qoe, { 28205 className: "w-8 h-8 text-blue-400 hover:text-blue-500 transition-colors" 28206 }), h.jsx(C3, { 28207 className: "w-8 h-8 text-green-500 hover:text-green-600 transition-colors" 28208 })] 28209 }), h.jsx(Gt, { 28210 className: "text-xl", 28211 children: e.name 28212 }), e.isCustom ? h.jsx("div", { 28213 className: "mt-4 text-xl font-medium text-muted-foreground", 28214 children: "Get discounts on reserved instances and secure dedicated render capacity for your studio." 28215 }) : h.jsxs("div", { 28216 className: "mt-4", 28217 children: [h.jsx("span", { 28218 className: "text-3xl font-bold", 28219 children: e.price 28220 }), h.jsx("span", { 28221 className: "text-muted-foreground",
28222 children: "/hour" 28223 })] 28224 })] 28225 }), h.jsxs(Ct, { 28226 className: "flex-1 flex flex-col justify-between", 28227 children: [!e.isCustom && h.jsx("div", { 28228 className: "mb-6 space-y-2 text-sm", 28229 children: h.jsxs("div", { 28230 className: "flex justify-between", 28231 children: [h.jsx("span", { 28232 className: "text-muted-foreground", 28233 children: "Memory" 28234 }), h.jsx("span", { 28235 children: e.specs.memory 28236 })] 28237 }) 28238 }), h.jsx("ul", { 28239 className: "space-y-3 mb-6", 28240 children: e.features.map(t => h.jsxs("li", { 28241 className: "flex items-start gap-2", 28242 children: [h.jsx(LP, { 28243 className: "h-4 w-4 mt-1 text-primary" 28244 }), h.jsx("span", { 28245 className: "text-sm", 28246 children: t 28247 })] 28248 }, t)) 28249 }), h.jsx(Me, { 28250 className: "w-full mt-auto", 28251 onClick: () => { 28252 if (e.isCustom) { 28253 window.open("https://calendly.com/vimobintech/30min", "_blank") 28254 } else { 28255 window.location.href = "/dashboard"; 28256 } 28257 }, 28258 children: e.isCustom ? "👉 Talk to us" : "Get Started" 28259 })] 28260 })] 28261 }, e.name)) 28262 }), h.jsx("div", { 28263 className: "text-center text-brand-gold text-3xl mt-4 font-bold", 28264 children: "Sign up & Receive $5 to Render Risk-Free" 28265 })] 28266 }) 28267 }), h.jsx(Ee.section, { 28268 id: "cost-calculator", 28269 className: "py-20 px-4", 28270 variants: Ut, 28271 initial: "initial", 28272 whileInView: "animate", 28273 viewport: { 28274 once: !0 28275 }, 28276 children: h.jsxs("div", { 28277 className: "max-w-6xl mx-auto", 28278 children: [h.jsx(Ee.h2, { 28279 className: "text-3xl font-bold text-center mb-8", 28280 variants: It, 28281 children: "Calculate Your Render Costs" 28282 }), h.jsx(Ee.p, { 28283 className: "text-xl text-muted-foreground text-center mb-12 max-w-2xl mx-auto", 28284 variants: It, 28285 children: "Use our calculator to estimate the cost of your rendering projects" 28286 }), h.jsx(Hoe, {})] 28287 }) 28288 }), h.jsx(Ee.section, { 28289 className: "py-20 px-4 bg-muted/50", 28290 variants: Ut, 28291 initial: "initial", 28292 whileInView: "animate", 28293 viewport: { 28294 once: !0 28295 }, 28296 children: h.jsxs("div", { 28297 className: "max-w-6xl mx-auto text-center", 28298 children: [h.jsx("p", { 28299 className: "text-xl text-muted-foreground mb-6", 28300 children: "Ready to experience the future of rendering?" 28301 }), h.jsxs(Me, { 28302 size: "lg", 28303 className: "bg-gradient-to-r from-primary to-teal-400", 28304 onClick: () => window.location.href = "/dashboard", 28305 children: ["Sign up", h.jsx(um, { 28306 className: "ml-2 h-4 w-4" 28307 })] 28308 })] 28309 }) 28310 }), h.jsx("footer", { 28311 className: "bg-background border-t border-primary/10", 28312 children: h.jsxs("div", { 28313 className: "max-w-6xl mx-auto px-4 py-16", 28314 children: [h.jsxs("div", { 28315 className: "grid grid-cols-1 md:grid-cols-4 gap-12", 28316 children: [h.jsxs("div", { 28317 className: "space-y-4 md:col-span-2", 28318 children: [h.jsx("h3", { 28319 className: "text-lg font-semibold", 28320 children: "HyperRender" 28321 }), h.jsx("p", { 28322 className: "text-sm text-muted-foreground", 28323 children: "Transforming cloud rendering for the next generation of digital creators. Experience enterprise-grade GPU rendering with seamless Unreal Engine integration." 28324 }), h.jsxs("div", { 28325 className: "flex space-x-4", 28326 children: [h.jsx(Me, { 28327 variant: "ghost", 28328 size: "icon", 28329 className: "hover:text-primary", 28330 onClick: () => window.open("https://www.linkedin.com/company/vimobin-labs/", "_blank"), 28331 children: h.jsx(A4, { 28332 className: "h-5 w-5" 28333 }) 28334 }), h.jsx(Me, { 28335 variant: "ghost", 28336 size: "icon", 28337 className: "hover:text-primary", 28338 onClick: () => window.open("https://youtu.be/6WDW2QmA7FQ", "_blank"), 28339 children: h.jsx(D4, { 28340 className: "h-5 w-5" 28341 }) 28342 })] 28343 })] 28344 }), h.jsxs("div", { 28345 className: "space-y-4", 28346 children: [h.jsx("h3", { 28347 className: "text-lg font-semibold", 28348 children: "Quick Links" 28349 }), h.jsxs("ul", { 28350 className: "space-y-2", 28351 children: [h.jsx("li", { 28352 children: h.jsx(Tt, { 28353 href: "/pricing", 28354 className: "text-sm text-muted-foreground hover:text-foreground", 28355 children: "Pricing" 28356 }) 28357 }), h.jsx("li", { 28358 children: h.jsx(Tt, { 28359 href: "/pricing#cost-calculator", 28360 className: "text-sm text-muted-foreground hover:text-foreground", 28361 onClick: e => { 28362 var t; 28363 e.preventDefault(), 28364 (t = document.getElementById("cost-calculator")) == null || t.scrollIntoView({ 28365 behavior: "smooth" 28366 }) 28367 } 28368 , 28369 children: "Cost Calculator" 28370 }) 28371 }), h.jsx("li", { 28372 children: h.jsx(Tt, { 28373 href: "/faq", 28374 className: "text-sm text-muted-foreground hover:text-foreground", 28375 children: "FAQ" 28376 }) 28377 })] 28378 })] 28379 }), h.jsxs("div", { 28380 className: "space-y-4", 28381 children: [h.jsx("h3", { 28382 className: "text-lg font-semibold", 28383 children: "Contact" 28384 }), h.jsx("ul", { 28385 className: "space-y-2", 28386 children: [ 28387 h.jsx("li", { 28388 children: h.jsx(Tt, { 28389 className: "text-sm text-muted-foreground hover:text-foreground", 28390 onClick: () => { window.location.href = "/contactus"; }, 28391 children: "Contact Us" 28392 }) 28393 }), 28394 h.jsx("li", { 28395 children: h.jsx(Tt, { 28396 className: "text-sm text-muted-foreground hover:text-foreground", 28397 onClick: () => { window.location.href = "/login" }, 28398 children: "Login" 28399 }) 28400 }) 28401 ] 28402 })] 28403 })] 28404 }), h.jsx("div", { 28405 className: "mt-12 pt-8 border-t border-primary/10", 28406 children: h.jsxs("div", { 28407 className: "flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0", 28408 children: [h.jsx("p", { 28409 className: "text-sm text-muted-foreground", 28410 children: "© 2026 HyperRender. All rights reserved." 28411 }), h.jsxs("div", { 28412 className: "flex flex-wrap gap-4", 28413 children: [h.jsx(Tt, { 28414 href: "/", 28415 className: "text-sm text-muted-foreground hover:text-foreground", 28416 children: "Terms of Service" 28417 }), h.jsx(Tt, { 28418 href: "/", 28419 className: "text-sm text-muted-foreground hover:text-foreground", 28420 children: "Privacy Policy" 28421 }), h.jsx(Tt, { 28422 href: "/", 28423 className: "text-sm text-muted-foreground hover:text-foreground", 28424 children: "Cookie Policy" 28425 })] 28426 })] 28427 }) 28428 })] 28429 }) 28430 })] 28431 }) 28432} 28433function Xoe(e, t) { 28434 return b.useReducer( (n, r) => t[n][r] ?? n, e) 28435} 28436var Xi = e => { 28437 const {present: t, children: n} = e 28438 , r = Qoe(t) 28439 , i = typeof n == "function" ? n({ 28440 present: r.isPresent 28441 }) : b.Children.only(n) 28442 , o = Ye(r.ref, Zoe(i)); 28443 return typeof n == "function" || r.isPresent ? b.cloneElement(i, { 28444 ref: o 28445 }) : null 28446} 28447; 28448Xi.displayName = "Presence"; 28449function Qoe(e) { 28450 const [t,n] = b.useState() 28451 , r = b.useRef({}) 28452 , i = b.useRef(e) 28453 , o = b.useRef("none") 28454 , a = e ? "mounted" : "unmounted" 28455 , [s,l] = Xoe(a, { 28456 mounted: { 28457 UNMOUNT: "unmounted", 28458 ANIMATION_OUT: "unmountSuspended" 28459 }, 28460 unmountSuspended: { 28461 MOUNT: "mounted", 28462 ANIMATION_END: "unmounted" 28463 }, 28464 unmounted: { 28465 MOUNT: "mounted" 28466 } 28467 }); 28468 return b.useEffect( () => { 28469 const c = Np(r.current); 28470 o.current = s === "mounted" ? c : "none" 28471 } 28472 , [s]), 28473 $t( () => { 28474 const c = r.current 28475 , u = i.current; 28476 if (u !== e) { 28477 const f = o.current 28478 , p = Np(c); 28479 e ? l("MOUNT") : p === "none" || (c == null ? void 0 : c.display) === "
vendor: 5,320 bytes, lines 28479-28656
28479none" ? l("UNMOUNT") : l(u && f !== p ? "ANIMATION_OUT" : "UNMOUNT"), 28480 i.current = e 28481 } 28482 } 28483 , [e, l]), 28484 $t( () => { 28485 if (t) { 28486 let c; 28487 const u = t.ownerDocument.defaultView ?? window 28488 , d = p => { 28489 const m = Np(r.current).includes(p.animationName); 28490 if (p.target === t && m && (l("ANIMATION_END"), 28491 !i.current)) { 28492 const x = t.style.animationFillMode; 28493 t.style.animationFillMode = "forwards", 28494 c = u.setTimeout( () => { 28495 t.style.animationFillMode === "forwards" && (t.style.animationFillMode = x) 28496 } 28497 ) 28498 } 28499 } 28500 , f = p => { 28501 p.target === t && (o.current = Np(r.current)) 28502 } 28503 ; 28504 return t.addEventListener("animationstart", f), 28505 t.addEventListener("animationcancel", d), 28506 t.addEventListener("animationend", d), 28507 () => { 28508 u.clearTimeout(c), 28509 t.removeEventListener("animationstart", f), 28510 t.removeEventListener("animationcancel", d), 28511 t.removeEventListener("animationend", d) 28512 } 28513 } else 28514 l("ANIMATION_END") 28515 } 28516 , [t, l]), 28517 { 28518 isPresent: ["mounted", "unmountSuspended"].includes(s), 28519 ref: b.useCallback(c => { 28520 c && (r.current = getComputedStyle(c)), 28521 n(c) 28522 } 28523 , []) 28524 } 28525} 28526function Np(e) { 28527 return (e == null ? void 0 : e.animationName) || "none" 28528} 28529function Zoe(e) { 28530 var r, i; 28531 let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get 28532 , n = t && "isReactWarning"in t && t.isReactWarning; 28533 return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, 28534 n = t && "isReactWarning"in t && t.isReactWarning, 28535 n ? e.props.ref : e.props.ref || e.ref) 28536} 28537var L_ = "Collapsible" 28538 , [Joe,ZV] = zr(L_) 28539 , [eae,F_] = Joe(L_) 28540 , JV = b.forwardRef( (e, t) => { 28541 const {__scopeCollapsible: n, open: r, defaultOpen: i, disabled: o, onOpenChange: a, ...s} = e 28542 , [l=!1,c] = pi({ 28543 prop: r, 28544 defaultProp: i, 28545 onChange: a 28546 }); 28547 return h.jsx(eae, { 28548 scope: n, 28549 disabled: o, 28550 contentId: Ir(), 28551 open: l, 28552 onOpenToggle: b.useCallback( () => c(u => !u), [c]), 28553 children: h.jsx(Ce.div, { 28554 "data-state": V_(l), 28555 "data-disabled": o ? "" : void 0, 28556 ...s, 28557 ref: t 28558 }) 28559 }) 28560} 28561); 28562JV.displayName = L_; 28563var e5 = "CollapsibleTrigger" 28564 , t5 = b.forwardRef( (e, t) => { 28565 const {__scopeCollapsible: n, ...r} = e 28566 , i = F_(e5, n); 28567 return h.jsx(Ce.button, { 28568 type: "button", 28569 "aria-controls": i.contentId, 28570 "aria-expanded": i.open || !1, 28571 "data-state": V_(i.open), 28572 "data-disabled": i.disabled ? "" : void 0, 28573 disabled: i.disabled, 28574 ...r, 28575 ref: t, 28576 onClick: ye(e.onClick, i.onOpenToggle) 28577 }) 28578} 28579); 28580t5.displayName = e5; 28581var B_ = "CollapsibleContent" 28582 , n5 = b.forwardRef( (e, t) => { 28583 const {forceMount: n, ...r} = e 28584 , i = F_(B_, e.__scopeCollapsible); 28585 return h.jsx(Xi, { 28586 present: n || i.open, 28587 children: ({present: o}) => h.jsx(tae, { 28588 ...r, 28589 ref: t, 28590 present: o 28591 }) 28592 }) 28593} 28594); 28595n5.displayName = B_; 28596var tae = b.forwardRef( (e, t) => { 28597 const {__scopeCollapsible: n, present: r, children: i, ...o} = e 28598 , a = F_(B_, n) 28599 , [s,l] = b.useState(r) 28600 , c = b.useRef(null) 28601 , u = Ye(t, c) 28602 , d = b.useRef(0) 28603 , f = d.current 28604 , p = b.useRef(0) 28605 , g = p.current 28606 , m = a.open || s 28607 , x = b.useRef(m) 28608 , v = b.useRef(); 28609 return b.useEffect( () => { 28610 const y = requestAnimationFrame( () => x.current = !1); 28611 return () => cancelAnimationFrame(y) 28612 } 28613 , []), 28614 $t( () => { 28615 const y = c.current; 28616 if (y) { 28617 v.current = v.current || { 28618 transitionDuration: y.style.transitionDuration, 28619 animationName: y.style.animationName 28620 }, 28621 y.style.transitionDuration = "0s", 28622 y.style.animationName = "none"; 28623 const w = y.getBoundingClientRect(); 28624 d.current = w.height, 28625 p.current = w.width, 28626 x.current || (y.style.transitionDuration = v.current.transitionDuration, 28627 y.style.animationName = v.current.animationName), 28628 l(r) 28629 } 28630 } 28631 , [a.open, r]), 28632 h.jsx(Ce.div, { 28633 "data-state": V_(a.open), 28634 "data-disabled": a.disabled ? "" : void 0, 28635 id: a.contentId, 28636 hidden: !m, 28637 ...o, 28638 ref: u, 28639 style: { 28640 "--radix-collapsible-content-height": f ? `${f}px` : void 0, 28641 "--radix-collapsible-content-width": g ? `${g}px` : void 0, 28642 ...e.style 28643 }, 28644 children: m && i 28645 }) 28646} 28647); 28648function V_(e) { 28649 return e ? "open" : "closed" 28650} 28651var nae = JV 28652 , rae = t5 28653 , iae = n5 28654 , ko = "Accordion" 28655 , oae = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"] 28656 , [U_,aae,sae] = rv(ko)
28657 , [vv,XIe] = zr(ko, [sae, ZV]) 28658 , z_ = ZV() 28659 , r5 = k.forwardRef( (e, t) => { 28660 const {type: n, ...r} = e 28661 , i = r 28662 , o = r; 28663 return h.jsx(U_.Provider, { 28664 scope: e.__scopeAccordion, 28665 children: n === "multiple" ? h.jsx(dae, { 28666 ...o, 28667 ref: t 28668 }) : h.jsx(uae, { 28669 ...i, 28670 ref: t 28671 }) 28672 }) 28673} 28674); 28675r5.displayName = ko; 28676var [i5,lae] = vv(ko) 28677 , [o5,cae] = vv(ko, { 28678 collapsible: !1 28679}) 28680 , uae = k.forwardRef( (e, t) => { 28681 const {value: n, defaultValue: r, onValueChange: i= () => {} 28682 , collapsible: o=!1, ...a} = e 28683 , [s,l] = pi({ 28684 prop: n, 28685 defaultProp: r, 28686 onChange: i 28687 }); 28688 return h.jsx(i5, { 28689 scope: e.__scopeAccordion, 28690 value: s ? [s] : [], 28691 onItemOpen: l, 28692 onItemClose: k.useCallback( () => o && l(""), [o, l]), 28693 children: h.jsx(o5, { 28694 scope: e.__scopeAccordion, 28695 collapsible: o, 28696 children: h.jsx(a5, { 28697 ...a, 28698 ref: t 28699 }) 28700 }) 28701 }) 28702} 28703) 28704 , dae = k.forwardRef( (e, t) => { 28705 const {value: n, defaultValue: r, onValueChange: i= () => {} 28706 , ...o} = e 28707 , [a=[],s] = pi({ 28708 prop: n, 28709 defaultProp: r, 28710 onChange: i 28711 }) 28712 , l = k.useCallback(u => s( (d=[]) => [...d, u]), [s]) 28713 , c = k.useCallback(u => s( (d=[]) => d.filter(f => f !== u)), [s]); 28714 return h.jsx(i5, { 28715 scope: e.__scopeAccordion, 28716 value: a, 28717 onItemOpen: l, 28718 onItemClose: c, 28719 children: h.jsx(o5, { 28720 scope: e.__scopeAccordion, 28721 collapsible: !0, 28722 children: h.jsx(a5, { 28723 ...o, 28724 ref: t 28725 }) 28726 }) 28727 }) 28728} 28729) 28730 , [fae,xv] = vv(ko) 28731 , a5 = k.forwardRef( (e, t) => { 28732 const {__scopeAccordion: n, disabled: r, dir: i, orientation: o="vertical", ...a} = e 28733 , s = k.useRef(null) 28734 , l = Ye(s, t) 28735 , c = aae(n) 28736 , d = kh(i) === "ltr" 28737 , f = ye(e.onKeyDown, p => { 28738 var C; 28739 if (!oae.includes(p.key)) 28740 return; 28741 const g = p.target 28742 , m = c().filter(O => { 28743 var A; 28744 return !((A = O.ref.current) != null && A.disabled) 28745 } 28746 ) 28747 , x = m.findIndex(O => O.ref.current === g) 28748 , v = m.length; 28749 if (x === -1) 28750 return; 28751 p.preventDefault(); 28752 let y = x; 28753 const w = 0 28754 , P = v - 1 28755 , S = () => { 28756 y = x + 1, 28757 y > P && (y = w) 28758 } 28759 , _ = () => { 28760 y = x - 1, 28761 y < w && (y = P) 28762 } 28763 ; 28764 switch (p.key) { 28765 case "Home": 28766 y = w; 28767 break; 28768 case "End": 28769 y = P; 28770 break; 28771 case "ArrowRight": 28772 o === "horizontal" && (d ? S() : _()); 28773 break; 28774 case "ArrowDown": 28775 o === "vertical" && S(); 28776 break; 28777 case "ArrowLeft": 28778 o === "horizontal" && (d ? _() : S()); 28779 break; 28780 case "ArrowUp": 28781 o === "vertical" && _(); 28782 break 28783 } 28784 const T = y % v; 28785 (C = m[T].ref.current) == null || C.focus() 28786 } 28787 ); 28788 return h.jsx(fae, { 28789 scope: n, 28790 disabled: r, 28791 direction: i, 28792 orientation: o, 28793 children: h.jsx(U_.Slot, { 28794 scope: n, 28795 children: h.jsx(Ce.div, { 28796 ...a, 28797 "data-orientation": o, 28798 ref: l, 28799 onKeyDown: r ? void 0 : f 28800 }) 28801 }) 28802 }) 28803} 28804) 28805 , cg = "AccordionItem" 28806 , [hae,W_] = vv(cg) 28807 , s5 = k.forwardRef( (e, t) => { 28808 const {__scopeAccordion: n, value: r, ...i} = e 28809 , o = xv(cg, n) 28810 , a = lae(cg, n) 28811 , s = z_(n) 28812 , l = Ir() 28813 , c = r && a.value.includes(r) || !1 28814 , u = o.disabled || e.disabled; 28815 return h.jsx(hae, { 28816 scope: n, 28817 open: c, 28818 disabled: u, 28819 triggerId: l, 28820 children: h.jsx(nae, { 28821 "data-orientation": o.orientation, 28822 "data-state": h5(c), 28823 ...s, 28824 ...i, 28825 ref: t, 28826 disabled: u, 28827 open: c, 28828 onOpenChange: d => { 28829 d ? a.onItemOpen(r) : a.onItemClose(r) 28830 } 28831 }) 28832 }) 28833} 28834); 28835s5.displayName = cg; 28836var l5 = "AccordionHeader" 28837 , c5 = k.forwardRef( (e, t) => { 28838 const {__scopeAccordion: n, ...r} = e 28839 , i = xv(ko, n) 28840 , o = W_(l5, n); 28841 return h.jsx(Ce.h3, { 28842 "data-orientation": i.orientation, 28843 "data-state": h5(o.open), 28844 "data-disabled": o.disabled ? "" : void 0, 28845 ...r, 28846 ref: t 28847 }) 28848} 28849); 28850c5.displayName = l5; 28851var Qw = "AccordionTrigger" 28852 , u5 = k.forwardRef( (e, t) => { 28853 const {__scopeAccordion: n, ...r} = e 28854 , i = xv(ko, n) 28855 , o = W_(Qw, n) 28856 , a = cae(Qw, n) 28857 , s = z_(n); 28858 return h.jsx(U_.ItemSlot, { 28859 scope: n, 28860 children: h.jsx(rae, { 28861 "aria-disabled": o.open && !a.collapsible || void 0, 28862 "data-orientation": i.orientation, 28863 id: o.triggerId, 28864 ...s, 28865 ...r, 28866 ref: t 28867 }) 28868 }) 28869} 28870); 28871u5.displayName = Qw; 28872var d5 = "AccordionContent" 28873 , f5 = k.forwardRef( (e, t) => { 28874 const {__scopeAccordion: n, ...r} = e 28875 , i = xv(ko, n) 28876 , o = W_(d5, n) 28877 , a = z_(n); 28878 return h.jsx(iae, {
28879 role: "region", 28880 "aria-labelledby": o.triggerId, 28881 "data-orientation": i.orientation, 28882 ...a, 28883 ...r, 28884 ref: t, 28885 style: { 28886 "--radix-accordion-content-height": "var(--radix-collapsible-content-height)", 28887 "--radix-accordion-content-width": "var(--radix-collapsible-content-width)", 28888 ...e.style 28889 } 28890 }) 28891} 28892); 28893f5.displayName = d5; 28894function h5(e) { 28895 return e ? "open" : "closed" 28896} 28897var pae = r5 28898 , mae = s5 28899 , gae = c5 28900 , p5 = u5 28901 , m5 = f5; 28902const yae = pae 28903 , g5 = b.forwardRef( ({className: e, ...t}, n) => h.jsx(mae, { 28904 ref: n, 28905 className: fe("border-b", e), 28906 ...t 28907})); 28908g5.displayName = "AccordionItem"; 28909const y5 = b.forwardRef( ({className: e, children: t, ...n}, r) => h.jsx(gae, { 28910 className: "flex", 28911 children: h.jsxs(p5, { 28912 ref: r, 28913 className: fe("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e), 28914 ...n, 28915 children: [t, h.jsx(FP, { 28916 className: "h-4 w-4 shrink-0 transition-transform duration-200" 28917 })] 28918 }) 28919})); 28920y5.displayName = p5.displayName; 28921const v5 = b.forwardRef( ({className: e, children: t, ...n}, r) => h.jsx(m5, { 28922 ref: r, 28923 className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down", 28924 ...n, 28925 children: h.jsx("div", { 28926 className: fe("pb-4 pt-0", e), 28927 children: t 28928 }) 28929})); 28930v5.displayName = m5.displayName; 28931const vae = [{ 28932 question: "Do I need to modify my Unreal Engine code?", 28933 answer: "No. We support both stock & custom builds seamlessly." 28934}, { 28935 question: "Are there any hidden fees?", 28936 answer: "Absolutely none. We don't charge data egress or storage overhead." 28937}, { 28938 question: "What GPUs do you offer?", 28939 answer: "A range of NVIDIA GPUs from mid-tier to top-tier, updated regularly." 28940}, { 28941 question: "Do you offer volume discounts?", 28942 answer: "Yes! Reserve instances for deeper discounts." 28943}, { 28944 question: "Do I need to manually upload my project to the cloud?", 28945 answer: "No. HyperRender automatically uploads your project along with all related dependencies — including assets, plugins, and configurations. This saves time and effort for artists, with no manual packaging or file transfers required." 28946}, { 28947 question: "Do I need to upload my entire project every time I render?", 28948 answer: "No. HyperRender only requires a full upload the first time. After that, we automatically sync only the changes to your project for subsequent renders, saving both time and bandwidth." 28949}, { 28950 question: "How do I start a render with HyperRender?", 28951 answer: "Once we've helped you install the HyperRender MSI, it's simple: just click Remote Render inside Unreal Engine's Movie Render Queue (MRQ). HyperRender takes care of the rest and starts the render automatically on the cloud." 28952}]; 28953function xae() { 28954 return h.jsx("div", { 28955 className: "min-h-screen bg-background", 28956 children: h.jsxs("div", { 28957 className: "max-w-4xl mx-auto px-4 py-20", 28958 children: [h.jsx("h1", { 28959 className: "text-4xl font-bold text-center mb-12", 28960 children: "Frequently Asked Questions" 28961 }), h.jsx(yae, { 28962 type: "single", 28963 collapsible: !0, 28964 className: "w-full mb-12", 28965 children: vae.map( (e, t) => h.jsxs(g5, { 28966 value: `item-${t}`, 28967 children: [h.jsx(y5, { 28968 className: "text-left text-lg", 28969 children: e.question 28970 }), h.jsx(v5, { 28971 className: "text-muted-foreground", 28972 children: e.answer 28973 })] 28974 }, t)) 28975 }), h.jsx("div", { 28976 className: "flex justify-center mt-8", 28977 children: h.jsx(Tt, { 28978 href: "/", 28979 children: h.jsxs(Me, { 28980 variant: "ghost", 28981 className: "gap-2", 28982 children: [h.jsx(_4, { 28983 className: "h-4 w-4" 28984 }), "Back to Home"] 28985 }) 28986 }) 28987 })] 28988 }) 28989 }) 28990} 28991const bae = b.createContext(null); 28992function za() { 28993 const e = b.useContext(bae); 28994 if (!e) 28995 throw new Error("useAuth must be used within an AuthProvider"); 28996 return e 28997} 28998var x5 = b.forwardRef( (e, t) => { 28999 const {children: n, ...r} = e 29000 , i = b.Children.toArray(n) 29001 , o = i.find(Sae); 29002 if (o) { 29003 const a = o.props.children 29004 , s = i.map(l => l === o ? b.Children.count(a) > 1 ? b.Children.only(null) : b.isValidElement(a) ? a.props.children : null : l); 29005 return h.jsx(Zw, { 29006 ...r, 29007 ref: t, 29008 children: b.isValidElement(a) ? b.cloneElement(a, void 0, s) : null 29009 }) 29010 } 29011 return h.jsx(Zw, { 29012 ...r, 29013 ref: t, 29014 children: n 29015 }) 29016} 29017); 29018x5.displayName = "Slot"; 29019var Zw = b.forwardRef( (e, t) => { 29020 const {children: n, ...r} = e; 29021 if (b.isValidElement(n)) { 29022 const i = _ae(n); 29023 return b.cloneElement(n, { 29024 ...Pae(r, n.props), 29025 ref: t ? Mo(t, i) : i 29026 }) 29027 } 29028 return b.Children.count(n) > 1 ? b.Children.only(null) : null 29029} 29030); 29031Zw.displayName = "SlotClone"; 29032var wae = ({children: e}) => h.jsx(h.Fragment, { 29033 children: e 29034}); 29035function Sae(e) { 29036 return b.isValidElement(e) && e.type === wae 29037} 29038function Pae(e, t) { 29039 const n = { 29040 ...t 29041 }; 29042 for (const r in t) { 29043 const i = e[r] 29044 , o = t[r]; 29045 /^on[A-Z]/.test(r) ? i && o ? n[r] = (...s) => { 29046 o(...s), 29047 i(...s) 29048 } 29049 : i && (n[r] = i) : r === "style" ? n[r] = { 29050 ...i, 29051 ...o 29052 }
vendor: 9,682 bytes, lines 29052-29414
29052 : r === "className" && (n[r] = [i, o].filter(Boolean).join(" ")) 29053 } 29054 return { 29055 ...e, 29056 ...n 29057 } 29058} 29059function _ae(e) { 29060 var r, i; 29061 let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get 29062 , n = t && "isReactWarning"in t && t.isReactWarning; 29063 return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, 29064 n = t && "isReactWarning"in t && t.isReactWarning, 29065 n ? e.props.ref : e.props.ref || e.ref) 29066} 29067var H_ = "Dialog" 29068 , [b5,w5] = zr(H_) 29069 , [Tae,xi] = b5(H_) 29070 , S5 = e => { 29071 const {__scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: o, modal: a=!0} = e 29072 , s = b.useRef(null) 29073 , l = b.useRef(null) 29074 , [c=!1,u] = pi({ 29075 prop: r, 29076 defaultProp: i, 29077 onChange: o 29078 }); 29079 return h.jsx(Tae, { 29080 scope: t, 29081 triggerRef: s, 29082 contentRef: l, 29083 contentId: Ir(), 29084 titleId: Ir(), 29085 descriptionId: Ir(), 29086 open: c, 29087 onOpenChange: u, 29088 onOpenToggle: b.useCallback( () => u(d => !d), [u]), 29089 modal: a, 29090 children: n 29091 }) 29092} 29093; 29094S5.displayName = H_; 29095var P5 = "DialogTrigger" 29096 , _5 = b.forwardRef( (e, t) => { 29097 const {__scopeDialog: n, ...r} = e 29098 , i = xi(P5, n) 29099 , o = Ye(t, i.triggerRef); 29100 return h.jsx(Ce.button, { 29101 type: "button", 29102 "aria-haspopup": "dialog", 29103 "aria-expanded": i.open, 29104 "aria-controls": i.contentId, 29105 "data-state": G_(i.open), 29106 ...r, 29107 ref: o, 29108 onClick: ye(e.onClick, i.onOpenToggle) 29109 }) 29110} 29111); 29112_5.displayName = P5; 29113var q_ = "DialogPortal" 29114 , [Cae,T5] = b5(q_, { 29115 forceMount: void 0 29116}) 29117 , C5 = e => { 29118 const {__scopeDialog: t, forceMount: n, children: r, container: i} = e 29119 , o = xi(q_, t); 29120 return h.jsx(Cae, { 29121 scope: t, 29122 forceMount: n, 29123 children: b.Children.map(r, a => h.jsx(Xi, { 29124 present: n || o.open, 29125 children: h.jsx(uv, { 29126 asChild: !0, 29127 container: i, 29128 children: a 29129 }) 29130 })) 29131 }) 29132} 29133; 29134C5.displayName = q_; 29135var ug = "DialogOverlay" 29136 , O5 = b.forwardRef( (e, t) => { 29137 const n = T5(ug, e.__scopeDialog) 29138 , {forceMount: r=n.forceMount, ...i} = e 29139 , o = xi(ug, e.__scopeDialog); 29140 return o.modal ? h.jsx(Xi, { 29141 present: r || o.open, 29142 children: h.jsx(Oae, { 29143 ...i, 29144 ref: t 29145 }) 29146 }) : null 29147} 29148); 29149O5.displayName = ug; 29150var Oae = b.forwardRef( (e, t) => { 29151 const {__scopeDialog: n, ...r} = e 29152 , i = xi(ug, n); 29153 return h.jsx(fv, { 29154 as: x5, 29155 allowPinchZoom: !0, 29156 shards: [i.contentRef], 29157 children: h.jsx(Ce.div, { 29158 "data-state": G_(i.open), 29159 ...r, 29160 ref: t, 29161 style: { 29162 pointerEvents: "auto", 29163 ...r.style 29164 } 29165 }) 29166 }) 29167} 29168) 29169 , Ws = "DialogContent" 29170 , A5 = b.forwardRef( (e, t) => { 29171 const n = T5(Ws, e.__scopeDialog) 29172 , {forceMount: r=n.forceMount, ...i} = e 29173 , o = xi(Ws, e.__scopeDialog); 29174 return h.jsx(Xi, { 29175 present: r || o.open, 29176 children: o.modal ? h.jsx(Aae, { 29177 ...i, 29178 ref: t 29179 }) : h.jsx(Eae, { 29180 ...i, 29181 ref: t 29182 }) 29183 }) 29184} 29185); 29186A5.displayName = Ws; 29187var Aae = b.forwardRef( (e, t) => { 29188 const n = xi(Ws, e.__scopeDialog) 29189 , r = b.useRef(null) 29190 , i = Ye(t, n.contentRef, r); 29191 return b.useEffect( () => { 29192 const o = r.current; 29193 if (o) 29194 return I_(o) 29195 } 29196 , []), 29197 h.jsx(E5, { 29198 ...e, 29199 ref: i, 29200 trapFocus: n.open, 29201 disableOutsidePointerEvents: !0, 29202 onCloseAutoFocus: ye(e.onCloseAutoFocus, o => { 29203 var a; 29204 o.preventDefault(), 29205 (a = n.triggerRef.current) == null || a.focus() 29206 } 29207 ), 29208 onPointerDownOutside: ye(e.onPointerDownOutside, o => { 29209 const a = o.detail.originalEvent 29210 , s = a.button === 0 && a.ctrlKey === !0; 29211 (a.button === 2 || s) && o.preventDefault() 29212 } 29213 ), 29214 onFocusOutside: ye(e.onFocusOutside, o => o.preventDefault()) 29215 }) 29216} 29217) 29218 , Eae = b.forwardRef( (e, t) => { 29219 const n = xi(Ws, e.__scopeDialog) 29220 , r = b.useRef(!1) 29221 , i = b.useRef(!1); 29222 return h.jsx(E5, { 29223 ...e, 29224 ref: t, 29225 trapFocus: !1, 29226 disableOutsidePointerEvents: !1, 29227 onCloseAutoFocus: o => { 29228 var a, s; 29229 (a = e.onCloseAutoFocus) == null || a.call(e, o), 29230 o.defaultPrevented || (r.current || (s = n.triggerRef.current) == null || s.focus(), 29231 o.preventDefault()), 29232 r.current = !1, 29233 i.current = !1 29234 } 29235 , 29236 onInteractOutside: o => { 29237 var l, c; 29238 (l = e.onInteractOutside) == null || l.call(e, o), 29239 o.defaultPrevented || (r.current = !0, 29240 o.detail.originalEvent.type === "pointerdown" && (i.current = !0)); 29241 const a = o.target; 29242 ((c = n.triggerRef.current) == null ? void 0 : c.contains(a)) && o.preventDefault(), 29243 o.detail.originalEvent.type === "focusin" && i.current && o.preventDefault() 29244 } 29245 }) 29246} 29247) 29248 , E5 = b.forwardRef( (e, t) => { 29249 const {__scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: o, ...a} = e 29250 , s = xi(Ws, n) 29251 , l = b.useRef(null) 29252 , c = Ye(t, l); 29253 return C_(), 29254 h.jsxs(h.Fragment, { 29255 children: [h.jsx(ov, { 29256 asChild: !0, 29257 loop: !0, 29258 trapped: r, 29259 onMountAutoFocus: i, 29260 onUnmountAutoFocus: o, 29261 children: h.jsx(iv, { 29262 role: "dialog", 29263 id: s.contentId, 29264 "aria-describedby": s.descriptionId, 29265 "aria-labelledby": s.titleId, 29266 "data-state": G_(s.open), 29267 ...a, 29268 ref: c, 29269 onDismiss: () => s.onOpenChange(!1) 29270 }) 29271 }), h.jsxs(h.Fragment, { 29272 children: [h.jsx(Nae, { 29273 titleId: s.titleId 29274 }), h.jsx(kae, { 29275 contentRef: l, 29276 descriptionId: s.descriptionId 29277 })] 29278 })] 29279 }) 29280} 29281) 29282 , K_ = "DialogTitle" 29283 , j5 = b.forwardRef( (e, t) => { 29284 const {__scopeDialog: n, ...r} = e 29285 , i = xi(K_, n); 29286 return h.jsx(Ce.h2, { 29287 id: i.titleId, 29288 ...r, 29289 ref: t 29290 }) 29291} 29292); 29293j5.displayName = K_; 29294var N5 = "DialogDescription" 29295 , M5 = b.forwardRef( (e, t) => { 29296 const {__scopeDialog: n, ...r} = e 29297 , i = xi(N5, n); 29298 return h.jsx(Ce.p, { 29299 id: i.descriptionId, 29300 ...r, 29301 ref: t 29302 }) 29303} 29304); 29305M5.displayName = N5; 29306var k5 = "DialogClose" 29307 , R5 = b.forwardRef( (e, t) => { 29308 const {__scopeDialog: n, ...r} = e 29309 , i = xi(k5, n); 29310 return h.jsx(Ce.button, { 29311 type: "button", 29312 ...r, 29313 ref: t, 29314 onClick: ye(e.onClick, () => i.onOpenChange(!1)) 29315 }) 29316} 29317); 29318R5.displayName = k5; 29319function G_(e) { 29320 return e ? "open" : "closed" 29321} 29322var D5 = "DialogTitleWarning" 29323 , [jae,I5] = jY(D5, { 29324 contentName: Ws, 29325 titleName: K_, 29326 docsSlug: "dialog" 29327}) 29328 , Nae = ({titleId: e}) => { 29329 const t = I5(D5) 29330 , n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 29331 29332If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 29333 29334For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`; 29335 return b.useEffect( () => { 29336 e && (document.getElementById(e) || console.error(n)) 29337 } 29338 , [n, e]), 29339 null 29340} 29341 , Mae = "DialogDescriptionWarning" 29342 , kae = ({contentRef: e, descriptionId: t}) => { 29343 const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${I5(Mae).contentName}}.`; 29344 return b.useEffect( () => { 29345 var o; 29346 const i = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby"); 29347 t && i && (document.getElementById(t) || console.warn(r)) 29348 } 29349 , [r, e, t]), 29350 null 29351} 29352 , Rae = S5 29353 , Dae = _5 29354 , Iae = C5 29355 , $ae = O5 29356 , Lae = A5 29357 , Fae = j5 29358 , Bae = M5 29359 , $5 = R5 29360 , Vae = b.forwardRef( (e, t) => { 29361 const {children: n, ...r} = e 29362 , i = b.Children.toArray(n) 29363 , o = i.find(Uae); 29364 if (o) { 29365 const a = o.props.children 29366 , s = i.map(l => l === o ? b.Children.count(a) > 1 ? b.Children.only(null) : b.isValidElement(a) ? a.props.children : null : l); 29367 return h.jsx(Jw, { 29368 ...r, 29369 ref: t, 29370 children: b.isValidElement(a) ? b.cloneElement(a, void 0, s) : null 29371 }) 29372 } 29373 return h.jsx(Jw, { 29374 ...r, 29375 ref: t, 29376 children: n 29377 }) 29378} 29379); 29380Vae.displayName = "Slot"; 29381var Jw = b.forwardRef( (e, t) => { 29382 const {children: n, ...r} = e; 29383 if (b.isValidElement(n)) { 29384 const i = Wae(n); 29385 return b.cloneElement(n, { 29386 ...zae(r, n.props), 29387 ref: t ? Mo(t, i) : i 29388 }) 29389 } 29390 return b.Children.count(n) > 1 ? b.Children.only(null) : null 29391} 29392); 29393Jw.displayName = "SlotClone"; 29394var L5 = ({children: e}) => h.jsx(h.Fragment, { 29395 children: e 29396}); 29397function Uae(e) { 29398 return b.isValidElement(e) && e.type === L5 29399} 29400function zae(e, t) { 29401 const n = { 29402 ...t 29403 }; 29404 for (const r in t) { 29405 const i = e[r] 29406 , o = t[r]; 29407 /^on[A-Z]/.test(r) ? i && o ? n[r] = (...s) => { 29408 o(...s), 29409 i(...s) 29410 } 29411 : i && (n[r] = i) : r === "style" ? n[r] = { 29412 ...i, 29413 ...o 29414 }
29414 : r === "className" && (n[r] = [i, o].filter(Boolean).join(" ")) 29415 } 29416 return { 29417 ...e, 29418 ...n 29419 } 29420} 29421function Wae(e) { 29422 var r, i; 29423 let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get 29424 , n = t && "isReactWarning"in t && t.isReactWarning; 29425 return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, 29426 n = t && "isReactWarning"in t && t.isReactWarning, 29427 n ? e.props.ref : e.props.ref || e.ref) 29428} 29429var F5 = "AlertDialog" 29430 , [Hae,QIe] = zr(F5, [w5]) 29431 , Ro = w5() 29432 , B5 = e => { 29433 const {__scopeAlertDialog: t, ...n} = e 29434 , r = Ro(t); 29435 return h.jsx(Rae, { 29436 ...r, 29437 ...n, 29438 modal: !0 29439 }) 29440} 29441; 29442B5.displayName = F5; 29443var qae = "AlertDialogTrigger" 29444 , Kae = b.forwardRef( (e, t) => { 29445 const {__scopeAlertDialog: n, ...r} = e 29446 , i = Ro(n); 29447 return h.jsx(Dae, { 29448 ...i, 29449 ...r, 29450 ref: t 29451 }) 29452} 29453); 29454Kae.displayName = qae; 29455var Gae = "AlertDialogPortal" 29456 , V5 = e => { 29457 const {__scopeAlertDialog: t, ...n} = e 29458 , r = Ro(t); 29459 return h.jsx(Iae, { 29460 ...r, 29461 ...n 29462 }) 29463} 29464; 29465V5.displayName = Gae; 29466var Yae = "AlertDialogOverlay" 29467 , U5 = b.forwardRef( (e, t) => { 29468 const {__scopeAlertDialog: n, ...r} = e 29469 , i = Ro(n); 29470 return h.jsx($ae, { 29471 ...i, 29472 ...r, 29473 ref: t 29474 }) 29475} 29476); 29477U5.displayName = Yae; 29478var Xl = "AlertDialogContent" 29479 , [Xae,Qae] = Hae(Xl) 29480 , z5 = b.forwardRef( (e, t) => { 29481 const {__scopeAlertDialog: n, children: r, ...i} = e 29482 , o = Ro(n) 29483 , a = b.useRef(null) 29484 , s = Ye(t, a) 29485 , l = b.useRef(null); 29486 return h.jsx(jae, { 29487 contentName: Xl, 29488 titleName: W5, 29489 docsSlug: "alert-dialog", 29490 children: h.jsx(Xae, { 29491 scope: n, 29492 cancelRef: l, 29493 children: h.jsxs(Lae, { 29494 role: "alertdialog", 29495 ...o, 29496 ...i, 29497 ref: s, 29498 onOpenAutoFocus: ye(i.onOpenAutoFocus, c => { 29499 var u; 29500 c.preventDefault(), 29501 (u = l.current) == null || u.focus({ 29502 preventScroll: !0 29503 }) 29504 } 29505 ), 29506 onPointerDownOutside: c => c.preventDefault(), 29507 onInteractOutside: c => c.preventDefault(), 29508 children: [h.jsx(L5, { 29509 children: r 29510 }), h.jsx(Jae, { 29511 contentRef: a 29512 })] 29513 }) 29514 }) 29515 }) 29516} 29517); 29518z5.displayName = Xl; 29519var W5 = "AlertDialogTitle" 29520 , H5 = b.forwardRef( (e, t) => { 29521 const {__scopeAlertDialog: n, ...r} = e 29522 , i = Ro(n); 29523 return h.jsx(Fae, { 29524 ...i, 29525 ...r, 29526 ref: t 29527 }) 29528} 29529); 29530H5.displayName = W5; 29531var q5 = "AlertDialogDescription" 29532 , K5 = b.forwardRef( (e, t) => { 29533 const {__scopeAlertDialog: n, ...r} = e 29534 , i = Ro(n); 29535 return h.jsx(Bae, { 29536 ...i, 29537 ...r, 29538 ref: t 29539 }) 29540} 29541); 29542K5.displayName = q5; 29543var Zae = "AlertDialogAction" 29544 , G5 = b.forwardRef( (e, t) => { 29545 const {__scopeAlertDialog: n, ...r} = e 29546 , i = Ro(n); 29547 return h.jsx($5, { 29548 ...i, 29549 ...r, 29550 ref: t 29551 }) 29552} 29553); 29554G5.displayName = Zae; 29555var Y5 = "AlertDialogCancel" 29556 , X5 = b.forwardRef( (e, t) => { 29557 const {__scopeAlertDialog: n, ...r} = e 29558 , {cancelRef: i} = Qae(Y5, n) 29559 , o = Ro(n) 29560 , a = Ye(t, i); 29561 return h.jsx($5, { 29562 ...o, 29563 ...r, 29564 ref: a 29565 }) 29566} 29567); 29568X5.displayName = Y5; 29569var Jae = ({contentRef: e}) => { 29570 const t = `\`${Xl}\` requires a description for the component to be accessible for screen reader users. 29571 29572You can add a description to the \`${Xl}\` by passing a \`${q5}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 29573 29574Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Xl}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 29575 29576For more information, see https://radix-ui.com/primitives/docs/components/
29576alert-dialog`; 29577 return b.useEffect( () => { 29578 var r; 29579 document.getElementById((r = e.current) == null ? void 0 : r.getAttribute("aria-describedby")) || console.warn(t) 29580 } 29581 , [t, e]), 29582 null 29583} 29584 , ese = B5 29585 , tse = V5 29586 , Q5 = U5 29587 , Z5 = z5 29588 , J5 = G5 29589 , eU = X5 29590 , tU = H5 29591 , nU = K5; 29592const rU = ese 29593 , nse = tse 29594 , iU = b.forwardRef( ({className: e, ...t}, n) => h.jsx(Q5, { 29595 className: fe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", e), 29596 ...t, 29597 ref: n 29598})); 29599iU.displayName = Q5.displayName; 29600const Y_ = b.forwardRef( ({className: e, ...t}, n) => h.jsxs(nse, { 29601 children: [h.jsx(iU, {}), h.jsx(Z5, { 29602 ref: n, 29603 className: fe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", e), 29604 ...t 29605 })] 29606})); 29607Y_.displayName = Z5.displayName; 29608const X_ = ({className: e, ...t}) => h.jsx("div", { 29609 className: fe("flex flex-col space-y-2 text-center sm:text-left", e), 29610 ...t 29611}); 29612X_.displayName = "AlertDialogHeader"; 29613const Q_ = ({className: e, ...t}) => h.jsx("div", { 29614 className: fe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), 29615 ...t 29616}); 29617Q_.displayName = "AlertDialogFooter"; 29618const Z_ = b.forwardRef( ({className: e, ...t}, n) => h.jsx(tU, { 29619 ref: n, 29620 className: fe("text-lg font-semibold", e), 29621 ...t 29622})); 29623Z_.displayName = tU.displayName; 29624const J_ = b.forwardRef( ({className: e, ...t}, n) => h.jsx(nU, { 29625 ref: n, 29626 className: fe("text-sm text-muted-foreground", e), 29627 ...t 29628})); 29629J_.displayName = nU.displayName; 29630const eT = b.forwardRef( ({className: e, ...t}, n) => h.jsx(J5, { 29631 ref: n, 29632 className: fe(VP(), e), 29633 ...t 29634})); 29635eT.displayName = J5.displayName; 29636const tT = b.forwardRef( ({className: e, ...t}, n) => h.jsx(eU, { 29637 ref: n, 29638 className: fe(VP({ 29639 variant: "outline" 29640 }), "mt-2 sm:mt-0", e), 29641 ...t 29642})); 29643tT.displayName = eU.displayName; 29644function rse({activePath: e}) { 29645 const {user: t, logoutMutation: n, showLogoutConfirmation: r, setShowLogoutConfirmation: i, handleLogout: o} = za() 29646 , [a] = qy() 29647 , s = c => a === c || e === c 29648 , l = !(t != null && t.isVerified); 29649 return h.jsxs(h.Fragment, { 29650 children: [h.jsxs("div", { 29651 className: "w-64 min-h-screen bg-sidebar border-r flex flex-col", 29652 children: [h.jsx("div", { 29653 className: "p-4 border-b", 29654 children: h.jsxs("div", { 29655 className: "flex items-center gap-2", 29656 children: [h.jsx("div", { 29657 className: "w-8 h-8 bg-primary rounded-lg flex items-center justify-center", 29658 children: h.jsx(gw, { 29659 className: "h-4 w-4 text-primary-foreground" 29660 }) 29661 }), h.jsx("h1", { 29662 className: "font-bold text-xl", 29663 children: "HyperRender" 29664 })] 29665 }) 29666 }), h.jsxs("nav", { 29667 className: "flex-1 p-4 space-y-2", 29668 children: [h.jsx(Me, { 29669 variant: s("/dashboard") ? "secondary" : "ghost", 29670 className: "w-full justify-start", 29671 asChild: !0, 29672 children: h.jsxs(Tt, { 29673 href: "/dashboard", 29674 children: [h.jsx(EX, { 29675 className: "mr-2 h-4 w-4" 29676 }), "Dashboard"] 29677 }) 29678 }), h.jsx(Me, { 29679 variant: s("/renders") ? "secondary" : "ghost", 29680 className: "w-full justify-start", 29681 asChild: !l, 29682 disabled: l, 29683 children: h.jsxs(Tt, { 29684 href: "/renders", 29685 children: [h.jsx(N4, { 29686 className: "mr-2 h-4 w-4" 29687 }), "Renders"] 29688 }) 29689 }), h.jsx(Me, { 29690 variant: s("/keys") ? "secondary" : "ghost", 29691 className: "w-full justify-start", 29692 asChild: !l, 29693 disabled: l, 29694 children: h.jsxs(Tt, { 29695 href: "/keys", 29696 children: [h.jsx(gw, { 29697 className: "mr-2 h-4 w-4" 29698 }), "Studio Keys"] 29699 }) 29700 }), h.jsx(Me, { 29701 variant: s("/calculator") ? "secondary" : "ghost", 29702 className: "w-full justify-start", 29703 asChild: !0, 29704 children: h.jsxs(Tt, { 29705 href: "/calculator", 29706 children: [h.jsx($P, { 29707 className: "mr-2 h-4 w-4" 29708 }), "Cost Calculator"] 29709 }) 29710 }), h.jsx(Me, { 29711 variant: s("/download") ? "secondary" : "ghost", 29712 className: "w-full justify-start", 29713 asChild: !l, 29714 disabled: l, 29715 children: h.jsxs(Tt, { 29716 href: "/download", 29717 children: [h.jsx(Oh, { 29718 className: "mr-2 h-4 w-4" 29719 }), "Download MSI"] 29720 }) 29721 }), h.jsx(Me, { 29722 variant: s("/billing") ? "secondary" : "ghost", 29723 className: "w-full justify-start", 29724 asChild: !l, 29725 disabled: l, 29726 children: h.jsxs(Tt, { 29727 href: "/billing", 29728 children: [h.jsx(OX, { 29729 className: "mr-2 h-4 w-4" 29730 }), "Billing"] 29731 }) 29732 }), h.jsx(Me, { 29733 variant: s("/settings") ? "secondary" : "ghost", 29734 className: "w-full justify-start", 29735 asChild: !0, 29736 children: h.jsxs(Tt, { 29737 href: "/settings", 29738 children: [h.jsx(k4, { 29739 className: "mr-2 h-4 w-4" 29740 }), "Settings"] 29741 }) 29742 }), h.jsx(Me, { 29743 variant: s("/support") ? "secondary" : "ghost", 29744 className: "w-full justify-start", 29745 asChild: !0, 29746 children: h.jsxs(Tt, { 29747 href: "/support", 29748 children: [h.jsx(C4, { 29749 className: "mr-2 h-4 w-4" 29750 }), "Support & FAQ"] 29751 }) 29752 })] 29753 }), h.jsxs("div", {
29754 className: "p-4 border-t mt-auto", 29755 children: [h.jsxs("div", { 29756 className: "mb-4", 29757 children: [h.jsx("p", { 29758 className: "text-sm font-medium", 29759 children: "Logged in as" 29760 }), h.jsx("p", { 29761 className: "text-sm text-muted-foreground", 29762 children: t == null ? void 0 : t.username 29763 })] 29764 }), h.jsxs(Me, { 29765 variant: "outline", 29766 className: "w-full", 29767 onClick: o, 29768 disabled: n.isPending, 29769 children: [h.jsx(j4, { 29770 className: "mr-2 h-4 w-4" 29771 }), "Logout"] 29772 })] 29773 })] 29774 }), h.jsx(rU, { 29775 open: r, 29776 onOpenChange: i, 29777 children: h.jsxs(Y_, { 29778 children: [h.jsxs(X_, { 29779 children: [h.jsx(Z_, { 29780 children: "Are you sure you want to logout?" 29781 }), h.jsx(J_, { 29782 children: "Any unsaved changes will be lost. Please make sure you've saved all your work before logging out." 29783 })] 29784 }), h.jsxs(Q_, { 29785 children: [h.jsx(tT, { 29786 children: "Cancel" 29787 }), h.jsx(eT, { 29788 onClick: () => { 29789 i(!1), 29790 n.mutate() 29791 } 29792 , 29793 className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", 29794 children: "Logout" 29795 })] 29796 })] 29797 }) 29798 })] 29799 }) 29800} 29801var nT = "Avatar" 29802 , [ise,ZIe] = zr(nT) 29803 , [ose,oU] = ise(nT) 29804 , aU = b.forwardRef( (e, t) => { 29805 const {__scopeAvatar: n, ...r} = e 29806 , [i,o] = b.useState("idle"); 29807 return h.jsx(ose, { 29808 scope: n, 29809 imageLoadingStatus: i, 29810 onImageLoadingStatusChange: o, 29811 children: h.jsx(Ce.span, { 29812 ...r, 29813 ref: t 29814 }) 29815 }) 29816} 29817); 29818aU.displayName = nT; 29819var sU = "AvatarImage" 29820 , lU = b.forwardRef( (e, t) => { 29821 const {__scopeAvatar: n, src: r, onLoadingStatusChange: i= () => {} 29822 , ...o} = e 29823 , a = oU(sU, n) 29824 , s = ase(r, o.referrerPolicy) 29825 , l = rn(c => { 29826 i(c), 29827 a.onImageLoadingStatusChange(c) 29828 } 29829 ); 29830 return $t( () => { 29831 s !== "idle" && l(s) 29832 } 29833 , [s, l]), 29834 s === "loaded" ? h.jsx(Ce.img, { 29835 ...o, 29836 ref: t, 29837 src: r 29838 }) : null 29839} 29840); 29841lU.displayName = sU; 29842var cU = "AvatarFallback" 29843 , uU = b.forwardRef( (e, t) => { 29844 const {__scopeAvatar: n, delayMs: r, ...i} = e 29845 , o = oU(cU, n) 29846 , [a,s] = b.useState(r === void 0); 29847 return b.useEffect( () => { 29848 if (r !== void 0) { 29849 const l = window.setTimeout( () => s(!0), r); 29850 return () => window.clearTimeout(l) 29851 } 29852 } 29853 , [r]), 29854 a && o.imageLoadingStatus !== "loaded" ? h.jsx(Ce.span, { 29855 ...i, 29856 ref: t 29857 }) : null 29858} 29859); 29860uU.displayName = cU; 29861function ase(e, t) { 29862 const [n,r] = b.useState("idle"); 29863 return $t( () => { 29864 if (!e) { 29865 r("error"); 29866 return 29867 } 29868 let i = !0; 29869 const o = new window.Image 29870 , a = s => () => { 29871 i && r(s) 29872 } 29873 ; 29874 return r("loading"), 29875 o.onload = a("loaded"), 29876 o.onerror = a("error"), 29877 o.src = e, 29878 t && (o.referrerPolicy = t), 29879 () => { 29880 i = !1 29881 } 29882 } 29883 , [e, t]), 29884 n 29885} 29886var dU = aU 29887 , fU = lU 29888 , hU = uU; 29889const pU = b.forwardRef( ({className: e, ...t}, n) => h.jsx(dU, { 29890 ref: n, 29891 className: fe("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e), 29892 ...t 29893})); 29894pU.displayName = dU.displayName; 29895const sse = b.forwardRef( ({className: e, ...t}, n) => h.jsx(fU, { 29896 ref: n, 29897 className: fe("aspect-square h-full w-full", e), 29898 ...t 29899})); 29900sse.displayName = fU.displayName; 29901const mU = b.forwardRef( ({className: e, ...t}, n) => h.jsx(hU, { 29902 ref: n, 29903 className: fe("flex h-full w-full items-center justify-center rounded-full bg-muted", e), 29904 ...t 29905})); 29906mU.displayName = hU.displayName; 29907function lse(e, t=[]) { 29908 let n = []; 29909 function r(o, a) { 29910 const s = b.createContext(a) 29911 , l = n.length; 29912 n = [...n, a]; 29913 function c(d) { 29914 const {scope: f, children: p, ...g} = d 29915 , m = (f == null ? void 0 : f[e][l]) || s 29916 , x = b.useMemo( () => g, Object.values(g)); 29917 return h.jsx(m.Provider, { 29918 value: x, 29919 children: p 29920 }) 29921 } 29922 function u(d, f) { 29923 const p = (f == null ? void 0 : f[e][l]) || s 29924 , g = b.useContext(p); 29925 if (g) 29926 return g; 29927 if (a !== void 0) 29928 return a; 29929 throw new Error(`\`${d}\` must be used within \`${o}\``) 29930 } 29931 return c.displayName = o + "Provider", 29932 [c, u] 29933 } 29934 const i = () => { 29935 const o = n.map(a => b.createContext(a)); 29936 return function(s) { 29937 const l = (s == null ? void 0 : s[e]) || o; 29938 return b.useMemo( () => ({ 29939 [`__scope${e}`]: { 29940 ...s, 29941 [e]: l 29942 } 29943 }), [s, l]) 29944 } 29945 } 29946 ; 29947 return i.scopeName = e, 29948 [r, cse(i, ...t)] 29949} 29950function cse(...e) { 29951 const t = e[0]; 29952 if (e.length === 1) 29953 return t; 29954 const n = () => { 29955 const r = e.map(i => ({ 29956 useScope: i(), 29957 scopeName: i.scopeName 29958 })); 29959 return function(o) { 29960 const a = r.reduce( (s, {useScope: l, scopeName: c}) => { 29961 const d = l(o)[`__scope${c}`]; 29962 return { 29963 ...s, 29964 ...d 29965 } 29966 } 29967 , {}); 29968 return b.useMemo( () => ({ 29969 [`__scope${t.scopeName}`]: a 29970 }), [a]) 29971 } 29972 } 29973 ; 29974 return n.scopeName = t.scopeName, 29975 n 29976} 29977var wx = "rovingFocusGroup.onEntryFocus" 29978 , use = { 29979 bubbles: !1, 29980 cancelable: !0 29981} 29982 , bv = "RovingFocusGroup" 29983 , [e1,gU,dse] = rv(bv) 29984 , [fse,wv] = lse(bv, [dse]) 29985 , [hse,pse] = fse(bv) 29986 , yU = b.forwardRef( (e, t) => h.jsx(e1.Provider, { 29987 scope: e.__scopeRovingFocusGroup, 29988 children: h.jsx(e1.Slot, { 29989 scope: e.__scopeRovingFocusGroup, 29990 children: h.jsx(mse, { 29991 ...e, 29992 ref: t 29993 }) 29994 }) 29995})); 29996yU.displayName = bv; 29997var mse = b.forwardRef( (e, t) => { 29998 const {__scopeRovingFocusGroup: n, orientation: r, loop: i=!1, dir: o, currentTabStopId: a, defaultCurrentTabStopId: s, onCurrentTabStopIdChange: l, onEntryFocus: c, preventScrollOnEntryFocus: u=!1, ...d} = e 29999 , f = b.useRef(null) 30000 , p = Ye(t, f) 30001 , g = kh(o) 30002 , [m=null,x] = pi({ 30003 prop: a, 30004 defaultProp: s, 30005 onChange: l 30006 }) 30007 , [v,y] = b.useState(!1) 30008 , w = rn(c) 30009 , P = gU(n) 30010 , S = b.useRef(!1) 30011 , [_,T] = b.useState(0); 30012 return b.useEffect( () => { 30013 const C = f.current; 30014 if (C) 30015 return C.addEventListener(wx, w), 30016 () => C.removeEventListener(wx, w) 30017 } 30018 , [w]), 30019 h.jsx(hse, { 30020 scope: n, 30021 orientation: r, 30022 dir: g, 30023 loop: i, 30024 currentTabStopId: m, 30025 onItemFocus: b.useCallback(C => x(C), [x]), 30026 onItemShiftTab: b.useCallback( () => y(!0), []), 30027 onFocusableItemAdd: b.useCallback( () =>
vendor: 35,930 bytes, lines 30027-31271
30027 T(C => C + 1), []), 30028 onFocusableItemRemove: b.useCallback( () => T(C => C - 1), []), 30029 children: h.jsx(Ce.div, { 30030 tabIndex: v || _ === 0 ? -1 : 0, 30031 "data-orientation": r, 30032 ...d, 30033 ref: p, 30034 style: { 30035 outline: "none", 30036 ...e.style 30037 }, 30038 onMouseDown: ye(e.onMouseDown, () => { 30039 S.current = !0 30040 } 30041 ), 30042 onFocus: ye(e.onFocus, C => { 30043 const O = !S.current; 30044 if (C.target === C.currentTarget && O && !v) { 30045 const A = new CustomEvent(wx,use); 30046 if (C.currentTarget.dispatchEvent(A), 30047 !A.defaultPrevented) { 30048 const E = P().filter(B => B.focusable) 30049 , j = E.find(B => B.active) 30050 , $ = E.find(B => B.id === m) 30051 , L = [j, $, ...E].filter(Boolean).map(B => B.ref.current); 30052 bU(L, u) 30053 } 30054 } 30055 S.current = !1 30056 } 30057 ), 30058 onBlur: ye(e.onBlur, () => y(!1)) 30059 }) 30060 }) 30061} 30062) 30063 , vU = "RovingFocusGroupItem" 30064 , xU = b.forwardRef( (e, t) => { 30065 const {__scopeRovingFocusGroup: n, focusable: r=!0, active: i=!1, tabStopId: o, ...a} = e 30066 , s = Ir() 30067 , l = o || s 30068 , c = pse(vU, n) 30069 , u = c.currentTabStopId === l 30070 , d = gU(n) 30071 , {onFocusableItemAdd: f, onFocusableItemRemove: p} = c; 30072 return b.useEffect( () => { 30073 if (r) 30074 return f(), 30075 () => p() 30076 } 30077 , [r, f, p]), 30078 h.jsx(e1.ItemSlot, { 30079 scope: n, 30080 id: l, 30081 focusable: r, 30082 active: i, 30083 children: h.jsx(Ce.span, { 30084 tabIndex: u ? 0 : -1, 30085 "data-orientation": c.orientation, 30086 ...a, 30087 ref: t, 30088 onMouseDown: ye(e.onMouseDown, g => { 30089 r ? c.onItemFocus(l) : g.preventDefault() 30090 } 30091 ), 30092 onFocus: ye(e.onFocus, () => c.onItemFocus(l)), 30093 onKeyDown: ye(e.onKeyDown, g => { 30094 if (g.key === "Tab" && g.shiftKey) { 30095 c.onItemShiftTab(); 30096 return 30097 } 30098 if (g.target !== g.currentTarget) 30099 return; 30100 const m = vse(g, c.orientation, c.dir); 30101 if (m !== void 0) { 30102 if (g.metaKey || g.ctrlKey || g.altKey || g.shiftKey) 30103 return; 30104 g.preventDefault(); 30105 let v = d().filter(y => y.focusable).map(y => y.ref.current); 30106 if (m === "last") 30107 v.reverse(); 30108 else if (m === "prev" || m === "next") { 30109 m === "prev" && v.reverse(); 30110 const y = v.indexOf(g.currentTarget); 30111 v = c.loop ? xse(v, y + 1) : v.slice(y + 1) 30112 } 30113 setTimeout( () => bU(v)) 30114 } 30115 } 30116 ) 30117 }) 30118 }) 30119} 30120); 30121xU.displayName = vU; 30122var gse = { 30123 ArrowLeft: "prev", 30124 ArrowUp: "prev", 30125 ArrowRight: "next", 30126 ArrowDown: "next", 30127 PageUp: "first", 30128 Home: "first", 30129 PageDown: "last", 30130 End: "last" 30131}; 30132function yse(e, t) { 30133 return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e 30134} 30135function vse(e, t, n) { 30136 const r = yse(e.key, n); 30137 if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) 30138 return gse[r] 30139} 30140function bU(e, t=!1) { 30141 const n = document.activeElement; 30142 for (const r of e) 30143 if (r === n || (r.focus({ 30144 preventScroll: t 30145 }), 30146 document.activeElement !== n)) 30147 return 30148} 30149function xse(e, t) { 30150 return e.map( (n, r) => e[(t + r) % e.length]) 30151} 30152var wU = yU 30153 , SU = xU 30154 , PU = b.forwardRef( (e, t) => { 30155 const {children: n, ...r} = e 30156 , i = b.Children.toArray(n) 30157 , o = i.find(wse); 30158 if (o) { 30159 const a = o.props.children 30160 , s = i.map(l => l === o ? b.Children.count(a) > 1 ? b.Children.only(null) : b.isValidElement(a) ? a.props.children : null : l); 30161 return h.jsx(t1, { 30162 ...r, 30163 ref: t, 30164 children: b.isValidElement(a) ? b.cloneElement(a, void 0, s) : null 30165 }) 30166 } 30167 return h.jsx(t1, { 30168 ...r, 30169 ref: t, 30170 children: n 30171 }) 30172} 30173); 30174PU.displayName = "Slot"; 30175var t1 = b.forwardRef( (e, t) => { 30176 const {children: n, ...r} = e; 30177 if (b.isValidElement(n)) { 30178 const i = Pse(n); 30179 return b.cloneElement(n, { 30180 ...Sse(r, n.props), 30181 ref: t ? Mo(t, i) : i 30182 }) 30183 } 30184 return b.Children.count(n) > 1 ? b.Children.only(null) : null 30185} 30186); 30187t1.displayName = "SlotClone"; 30188var bse = ({children: e}) => h.jsx(h.Fragment, { 30189 children: e 30190}); 30191function wse(e) { 30192 return b.isValidElement(e) && e.type === bse 30193} 30194function Sse(e, t) { 30195 const n = { 30196 ...t 30197 }; 30198 for (const r in t) { 30199 const i = e[r] 30200 , o = t[r]; 30201 /^on[A-Z]/.test(r) ? i && o ? n[r] = (...s) => { 30202 o(...s), 30203 i(...s) 30204 } 30205 : i && (n[r] = i) : r === "style" ? n[r] = { 30206 ...i, 30207 ...o 30208 } : r === "className" && (n[r] = [i, o].filter(Boolean).join(" ")) 30209 } 30210 return { 30211 ...e, 30212 ...n 30213 } 30214} 30215function Pse(e) { 30216 var r, i; 30217 let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get 30218 , n = t && "isReactWarning"in t && t.isReactWarning; 30219 return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, 30220 n = t && "isReactWarning"in t && t.isReactWarning, 30221 n ? e.props.ref : e.props.ref || e.ref) 30222} 30223var n1 = ["Enter", " "] 30224 , _se = ["ArrowDown", "PageUp", "Home"] 30225 , _U = ["ArrowUp", "PageDown", "End"] 30226 , Tse = [..._se, ..._U] 30227 , Cse = { 30228 ltr: [...n1, "ArrowRight"], 30229 rtl: [...n1, "ArrowLeft"] 30230} 30231 , Ose = { 30232 ltr: ["ArrowLeft"], 30233 rtl: ["ArrowRight"] 30234} 30235 , Lh = "Menu" 30236 , [gf,Ase,Ese] = rv(Lh) 30237 , [Js,TU] = zr(Lh, [Ese, cv, wv]) 30238 , Sv = cv() 30239 , CU = wv() 30240 , [jse,el] = Js(Lh) 30241 , [Nse,Fh] = Js(Lh) 30242 , OU = e => { 30243 const {__scopeMenu: t, open: n=!1, children: r, dir: i, onOpenChange: o, modal: a=!0} = e 30244 , s = Sv(t) 30245 , [l,c] = b.useState(null) 30246 , u = b.useRef(!1) 30247 , d = rn(o) 30248 , f = kh(i); 30249 return b.useEffect( () => { 30250 const p = () => { 30251 u.current = !0, 30252 document.addEventListener("pointerdown", g, { 30253 capture: !0, 30254 once: !0 30255 }), 30256 document.addEventListener("pointermove", g, { 30257 capture: !0, 30258 once: !0 30259 }) 30260 } 30261 , g = () => u.current = !1; 30262 return document.addEventListener("keydown", p, { 30263 capture: !0 30264 }), 30265 () => { 30266 document.removeEventListener("keydown", p, { 30267 capture: !0 30268 }), 30269 document.removeEventListener("pointerdown", g, { 30270 capture: !0 30271 }), 30272 document.removeEventListener("pointermove", g, { 30273 capture: !0 30274 }) 30275 } 30276 } 30277 , []), 30278 h.jsx(Z3, { 30279 ...s, 30280 children: h.jsx(jse, { 30281 scope: t, 30282 open: n, 30283 onOpenChange: d, 30284 content: l, 30285 onContentChange: c, 30286 children: h.jsx(Nse, { 30287 scope: t, 30288 onClose: b.useCallback( () => d(!1), [d]), 30289 isUsingKeyboardRef: u, 30290 dir: f, 30291 modal: a, 30292 children: r 30293 }) 30294 }) 30295 }) 30296} 30297; 30298OU.displayName = Lh; 30299var Mse = "MenuAnchor" 30300 , rT = b.forwardRef( (e, t) => { 30301 const {__scopeMenu: n, ...r} = e 30302 , i = Sv(n); 30303 return h.jsx(J3, { 30304 ...i, 30305 ...r, 30306 ref: t 30307 }) 30308} 30309); 30310rT.displayName = Mse; 30311var iT = "MenuPortal" 30312 , [kse,AU] = Js(iT, { 30313 forceMount: void 0 30314}) 30315 , EU = e => { 30316 const {__scopeMenu: t, forceMount: n, children: r, container: i} = e 30317 , o = el(iT, t); 30318 return h.jsx(kse, { 30319 scope: t, 30320 forceMount: n, 30321 children: h.jsx(Xi, { 30322 present: n || o.open, 30323 children: h.jsx(uv, { 30324 asChild: !0, 30325 container: i, 30326 children: r 30327 }) 30328 }) 30329 }) 30330} 30331; 30332EU.displayName = iT; 30333var $r = "MenuContent" 30334 , [Rse,oT] = Js($r) 30335 , jU = b.forwardRef( (e, t) => { 30336 const n = AU($r, e.__scopeMenu) 30337 , {forceMount: r=n.forceMount, ...i} = e 30338 , o = el($r, e.__scopeMenu) 30339 , a = Fh($r, e.__scopeMenu); 30340 return h.jsx(gf.Provider, { 30341 scope: e.__scopeMenu, 30342 children: h.jsx(Xi, { 30343 present: r || o.open, 30344 children: h.jsx(gf.Slot, { 30345 scope: e.__scopeMenu, 30346 children: a.modal ? h.jsx(Dse, { 30347 ...i, 30348 ref: t 30349 }) : h.jsx(Ise, { 30350 ...i, 30351 ref: t 30352 }) 30353 }) 30354 }) 30355 }) 30356} 30357) 30358 , Dse = b.forwardRef( (e, t) => { 30359 const n = el($r, e.__scopeMenu) 30360 , r = b.useRef(null) 30361 , i = Ye(t, r); 30362 return b.useEffect( () => { 30363 const o = r.current; 30364 if (o) 30365 return I_(o) 30366 } 30367 , []), 30368 h.jsx(aT, { 30369 ...e, 30370 ref: i, 30371 trapFocus: n.open, 30372 disableOutsidePointerEvents: n.open, 30373 disableOutsideScroll: !0, 30374 onFocusOutside: ye(e.onFocusOutside, o => o.preventDefault(), { 30375 checkForDefaultPrevented: !1 30376 }), 30377 onDismiss: () => n.onOpenChange(!1) 30378 }) 30379} 30380) 30381 , Ise = b.forwardRef( (e, t) => { 30382 const n = el($r, e.__scopeMenu); 30383 return h.jsx(aT, { 30384 ...e, 30385 ref: t, 30386 trapFocus: !1, 30387 disableOutsidePointerEvents: !1, 30388 disableOutsideScroll: !1, 30389 onDismiss: () => n.onOpenChange(!1) 30390 }) 30391} 30392) 30393 , aT = b.forwardRef( (e, t) => { 30394 const {__scopeMenu: n, loop: r=!1, trapFocus: i, onOpenAutoFocus: o, onCloseAutoFocus: a, disableOutsidePointerEvents: s, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: d, onInteractOutside: f, onDismiss: p, disableOutsideScroll: g, ...m} = e 30395 , x = el($r, n) 30396 , v = Fh($r, n) 30397 , y = Sv(n) 30398 , w = CU(n) 30399 , P = Ase(n) 30400 , [S,_] = b.useState(null) 30401 , T = b.useRef(null) 30402 , C = Ye(t, T, x.onContentChange) 30403 , O = b.useRef(0) 30404 , A = b.useRef("") 30405 , E = b.useRef(0) 30406 , j = b.useRef(null) 30407 , $ = b.useRef("right") 30408 , R = b.useRef(0) 30409 , L = g ? fv : b.Fragment 30410 , B = g ? { 30411 as: PU, 30412 allowPinchZoom: !0 30413 } : void 0 30414 , U = D => { 30415 var ie, ge; 30416 const W = A.current + D 30417 , K = P().filter(Y => !Y.disabled) 30418 , G = document.activeElement 30419 , ae = (ie = K.find(Y => Y.ref.current === G)) == null ? void 0 : ie.textValue 30420 , ve = K.map(Y => Y.textValue) 30421 , je = Gse(ve, W, ae) 30422 , Oe = (ge = K.find(Y => Y.textValue === je)) == null ? void 0 : ge.ref.current; 30423 (function Y(ne) { 30424 A.current = ne, 30425 window.clearTimeout(O.current), 30426 ne !== "" && (O.current = window.setTimeout( () => Y(""), 1e3)) 30427 } 30428 )(W), 30429 Oe && setTimeout( () => Oe.focus()) 30430 } 30431 ; 30432 b.useEffect( () => () => window.clearTimeout(O.current), []), 30433 C_(); 30434 const N = b.useCallback(D => { 30435 var K, G; 30436 return $.current === ((K = j.current) == null ? void 0 : K.side) && Xse(D, (G = j.current) == null ? void 0 : G.area) 30437 } 30438 , []); 30439 return h.jsx(Rse, { 30440 scope: n, 30441 searchRef: A, 30442 onItemEnter: b.useCallback(D => { 30443 N(D) && D.preventDefault() 30444 } 30445 , [N]), 30446 onItemLeave: b.useCallback(D => { 30447 var W; 30448 N(D) || ((W = T.current) == null || W.focus(), 30449 _(null)) 30450 } 30451 , [N]), 30452 onTriggerLeave: b.useCallback(D => { 30453 N(D) && D.preventDefault() 30454 } 30455 , [N]), 30456 pointerGraceTimerRef: E, 30457 onPointerGraceIntentChange: b.useCallback(D => { 30458 j.current = D 30459 } 30460 , []), 30461 children: h.jsx(L, { 30462 ...B, 30463 children: h.jsx(ov, { 30464 asChild: !0, 30465 trapped: i, 30466 onMountAutoFocus: ye(o, D => { 30467 var W; 30468 D.preventDefault(), 30469 (W = T.current) == null || W.focus({ 30470 preventScroll: !0 30471 }) 30472 } 30473 ), 30474 onUnmountAutoFocus: a, 30475 children: h.jsx(iv, { 30476 asChild: !0, 30477 disableOutsidePointerEvents: s, 30478 onEscapeKeyDown: c, 30479 onPointerDownOutside: u, 30480 onFocusOutside: d, 30481 onInteractOutside: f, 30482 onDismiss: p, 30483 children: h.jsx(wU, { 30484 asChild: !0, 30485 ...w, 30486 dir: v.dir, 30487 orientation: "vertical", 30488 loop: r, 30489 currentTabStopId: S, 30490 onCurrentTabStopIdChange: _, 30491 onEntryFocus: ye(l, D => { 30492 v.isUsingKeyboardRef.current || D.preventDefault() 30493 } 30494 ), 30495 preventScrollOnEntryFocus: !0, 30496 children: h.jsx(eV, { 30497 role: "menu", 30498 "aria-orientation": "vertical", 30499 "data-state": qU(x.open), 30500 "data-radix-menu-content": "", 30501 dir: v.dir, 30502 ...y, 30503 ...m, 30504 ref: C, 30505 style: { 30506 outline: "none", 30507 ...m.style 30508 }, 30509 onKeyDown: ye(m.onKeyDown, D => { 30510 const K = D.target.closest("[data-radix-menu-content]") === D.currentTarget 30511 , G = D.ctrlKey || D.altKey || D.metaKey 30512 , ae = D.key.length === 1; 30513 K && (D.key === "Tab" && D.preventDefault(), 30514 !G && ae && U(D.key)); 30515 const ve = T.current; 30516 if (D.target !== ve || !Tse.includes(D.key)) 30517 return; 30518 D.preventDefault(); 30519 const Oe = P().filter(ie => !ie.disabled).map(ie => ie.ref.current); 30520 _U.includes(D.key) && Oe.reverse(), 30521 qse(Oe) 30522 } 30523 ), 30524 onBlur: ye(e.onBlur, D => { 30525 D.currentTarget.contains(D.target) || (window.clearTimeout(O.current), 30526 A.current = "") 30527 } 30528 ), 30529 onPointerMove: ye(e.onPointerMove, yf(D => { 30530 const W = D.target 30531 , K = R.current !== D.clientX; 30532 if (D.currentTarget.contains(W) && K) { 30533 const G = D.clientX > R.current ? "right" : "left"; 30534 $.current = G, 30535 R.current = D.clientX 30536 } 30537 } 30538 )) 30539 }) 30540 }) 30541 }) 30542 }) 30543 }) 30544 }) 30545} 30546); 30547jU.displayName = $r; 30548var $se = "MenuGroup" 30549 , sT = b.forwardRef( (e, t) => { 30550 const {__scopeMenu: n, ...r} = e; 30551 return h.jsx(Ce.div, { 30552 role: "group", 30553 ...r, 30554 ref: t 30555 }) 30556} 30557); 30558sT.displayName = $se; 30559var Lse = "MenuLabel" 30560 , NU = b.forwardRef( (e, t) => { 30561 const {__scopeMenu: n, ...r} = e; 30562 return h.jsx(Ce.div, { 30563 ...r, 30564 ref: t 30565 }) 30566} 30567); 30568NU.displayName = Lse; 30569var dg = "MenuItem" 30570 , ej = "menu.itemSelect" 30571 , Pv = b.forwardRef( (e, t) => { 30572 const {disabled: n=!1, onSelect: r, ...i} = e 30573 , o = b.useRef(null) 30574 , a = Fh(dg, e.__scopeMenu) 30575 , s = oT(dg, e.__scopeMenu) 30576 , l = Ye(t, o) 30577 , c = b.useRef(!1) 30578 , u = () => { 30579 const d = o.current; 30580 if (!n && d) { 30581 const f = new CustomEvent(ej,{ 30582 bubbles: !0, 30583 cancelable: !0 30584 }); 30585 d.addEventListener(ej, p => r == null ? void 0 : r(p), { 30586 once: !0 30587 }), 30588 A3(d, f), 30589 f.defaultPrevented ? c.current = !1 : a.onClose() 30590 } 30591 } 30592 ; 30593 return h.jsx(MU, { 30594 ...i, 30595 ref: l, 30596 disabled: n, 30597 onClick: ye(e.onClick, u), 30598 onPointerDown: d => { 30599 var f; 30600 (f = e.onPointerDown) == null || f.call(e, d), 30601 c.current = !0 30602 } 30603 , 30604 onPointerUp: ye(e.onPointerUp, d => { 30605 var f; 30606 c.current || (f = d.currentTarget) == null || f.click() 30607 } 30608 ), 30609 onKeyDown: ye(e.onKeyDown, d => { 30610 const f = s.searchRef.current !== ""; 30611 n || f && d.key === " " || n1.includes(d.key) && (d.currentTarget.click(), 30612 d.preventDefault()) 30613 } 30614 ) 30615 }) 30616} 30617); 30618Pv.displayName = dg; 30619var MU = b.forwardRef( (e, t) => { 30620 const {__scopeMenu: n, disabled: r=!1, textValue: i, ...o} = e 30621 , a = oT(dg, n) 30622 , s = CU(n) 30623 , l = b.useRef(null) 30624 , c = Ye(t, l) 30625 , [u,d] = b.useState(!1) 30626 , [f,p] = b.useState(""); 30627 return b.useEffect( () => { 30628 const g = l.current; 30629 g && p((g.textContent ?? "").trim()) 30630 } 30631 , [o.children]), 30632 h.jsx(gf.ItemSlot, { 30633 scope: n, 30634 disabled: r, 30635 textValue: i ?? f, 30636 children: h.jsx(SU, { 30637 asChild: !0, 30638 ...s, 30639 focusable: !r, 30640 children: h.jsx(Ce.div, { 30641 role: "menuitem", 30642 "data-highlighted": u ? "" : void 0, 30643 "aria-disabled": r || void 0, 30644 "data-disabled": r ? "" : void 0, 30645 ...o, 30646 ref: c, 30647 onPointerMove: ye(e.onPointerMove, yf(g => { 30648 r ? a.onItemLeave(g) : (a.onItemEnter(g), 30649 g.defaultPrevented || g.currentTarget.focus({ 30650 preventScroll: !0 30651 })) 30652 } 30653 )), 30654 onPointerLeave: ye(e.onPointerLeave, yf(g => a.onItemLeave(g))), 30655 onFocus: ye(e.onFocus, () => d(!0)), 30656 onBlur: ye(e.onBlur, () => d(!1)) 30657 }) 30658 }) 30659 }) 30660} 30661) 30662 , Fse = "MenuCheckboxItem" 30663 , kU = b.forwardRef( (e, t) => { 30664 const {checked: n=!1, onCheckedChange: r, ...i} = e; 30665 return h.jsx(LU, { 30666 scope: e.__scopeMenu, 30667 checked: n, 30668 children: h.jsx(Pv, { 30669 role: "menuitemcheckbox", 30670 "aria-checked": fg(n) ? "mixed" : n, 30671 ...i, 30672 ref: t, 30673 "data-state": cT(n), 30674 onSelect: ye(i.onSelect, () => r == null ? void 0 : r(fg(n) ? !0 : !n), { 30675 checkForDefaultPrevented: !1 30676 }) 30677 }) 30678 }) 30679} 30680); 30681kU.displayName = Fse; 30682var RU = "MenuRadioGroup" 30683 , [Bse,Vse] = Js(RU, { 30684 value: void 0, 30685 onValueChange: () => {} 30686}) 30687 , DU = b.forwardRef( (e, t) => { 30688 const {value: n, onValueChange: r, ...i} = e 30689 , o = rn(r); 30690 return h.jsx(Bse, { 30691 scope: e.__scopeMenu, 30692 value: n, 30693 onValueChange: o, 30694 children: h.jsx(sT, { 30695 ...i, 30696 ref: t 30697 }) 30698 }) 30699} 30700); 30701DU.displayName = RU; 30702var IU = "MenuRadioItem" 30703 , $U = b.forwardRef( (e, t) => { 30704 const {value: n, ...r} = e 30705 , i = Vse(IU, e.__scopeMenu) 30706 , o = n === i.value; 30707 return h.jsx(LU, { 30708 scope: e.__scopeMenu, 30709 checked: o, 30710 children: h.jsx(Pv, { 30711 role: "menuitemradio", 30712 "aria-checked": o, 30713 ...r, 30714 ref: t, 30715 "data-state": cT(o), 30716 onSelect: ye(r.onSelect, () => { 30717 var a; 30718 return (a = i.onValueChange) == null ? void 0 : a.call(i, n) 30719 } 30720 , { 30721 checkForDefaultPrevented: !1 30722 }) 30723 }) 30724 }) 30725} 30726); 30727$U.displayName = IU; 30728var lT = "MenuItemIndicator" 30729 , [LU,Use] = Js(lT, { 30730 checked: !1 30731}) 30732 , FU = b.forwardRef( (e, t) => { 30733 const {__scopeMenu: n, forceMount: r, ...i} = e 30734 , o = Use(lT, n); 30735 return h.jsx(Xi, { 30736 present: r || fg(o.checked) || o.checked === !0, 30737 children: h.jsx(Ce.span, { 30738 ...i, 30739 ref: t, 30740 "data-state": cT(o.checked) 30741 }) 30742 }) 30743} 30744); 30745FU.displayName = lT; 30746var zse = "MenuSeparator" 30747 , BU = b.forwardRef( (e, t) => { 30748 const {__scopeMenu: n, ...r} = e; 30749 return h.jsx(Ce.div, { 30750 role: "separator", 30751 "aria-orientation": "horizontal", 30752 ...r, 30753 ref: t 30754 }) 30755} 30756); 30757BU.displayName = zse; 30758var Wse = "MenuArrow" 30759 , VU = b.forwardRef( (e, t) => { 30760 const {__scopeMenu: n, ...r} = e 30761 , i = Sv(n); 30762 return h.jsx(tV, { 30763 ...i, 30764 ...r, 30765 ref: t 30766 }) 30767} 30768); 30769VU.displayName = Wse; 30770var Hse = "MenuSub" 30771 , [JIe,UU] = Js(Hse) 30772 , fd = "MenuSubTrigger" 30773 , zU = b.forwardRef( (e, t) => { 30774 const n = el(fd, e.__scopeMenu) 30775 , r = Fh(fd, e.__scopeMenu) 30776 , i = UU(fd, e.__scopeMenu) 30777 , o = oT(fd, e.__scopeMenu) 30778 , a = b.useRef(null) 30779 , {pointerGraceTimerRef: s, onPointerGraceIntentChange: l} = o 30780 , c = { 30781 __scopeMenu: e.__scopeMenu 30782 } 30783 , u = b.useCallback( () => { 30784 a.current && window.clearTimeout(a.current), 30785 a.current = null 30786 } 30787 , []); 30788 return b.useEffect( () => u, [u]), 30789 b.useEffect( () => { 30790 const d = s.current; 30791 return () => { 30792 window.clearTimeout(d), 30793 l(null) 30794 } 30795 } 30796 , [s, l]), 30797 h.jsx(rT, { 30798 asChild: !0, 30799 ...c, 30800 children: h.jsx(MU, { 30801 id: i.triggerId, 30802 "aria-haspopup": "menu", 30803 "aria-expanded": n.open, 30804 "aria-controls": i.contentId, 30805 "data-state": qU(n.open), 30806 ...e, 30807 ref: Mo(t, i.onTriggerChange), 30808 onClick: d => { 30809 var f; 30810 (f = e.onClick) == null || f.call(e, d), 30811 !(e.disabled || d.defaultPrevented) && (d.currentTarget.focus(), 30812 n.open || n.onOpenChange(!0)) 30813 } 30814 , 30815 onPointerMove: ye(e.onPointerMove, yf(d => { 30816 o.onItemEnter(d), 30817 !d.defaultPrevented && !e.disabled && !n.open && !a.current && (o.onPointerGraceIntentChange(null), 30818 a.current = window.setTimeout( () => { 30819 n.onOpenChange(!0), 30820 u() 30821 } 30822 , 100)) 30823 } 30824 )), 30825 onPointerLeave: ye(e.onPointerLeave, yf(d => { 30826 var p, g; 30827 u(); 30828 const f = (p = n.content) == null ? void 0 : p.getBoundingClientRect(); 30829 if (f) { 30830 const m = (g = n.content) == null ? void 0 : g.dataset.side 30831 , x = m === "right" 30832 , v = x ? -5 : 5 30833 , y = f[x ? "left" : "right"] 30834 , w = f[x ? "right" : "left"]; 30835 o.onPointerGraceIntentChange({ 30836 area: [{ 30837 x: d.clientX + v, 30838 y: d.clientY 30839 }, { 30840 x: y, 30841 y: f.top 30842 }, { 30843 x: w, 30844 y: f.top 30845 }, { 30846 x: w, 30847 y: f.bottom 30848 }, { 30849 x: y, 30850 y: f.bottom 30851 }], 30852 side: m 30853 }), 30854 window.clearTimeout(s.current), 30855 s.current = window.setTimeout( () => o.onPointerGraceIntentChange(null), 300) 30856 } else { 30857 if (o.onTriggerLeave(d), 30858 d.defaultPrevented) 30859 return; 30860 o.onPointerGraceIntentChange(null) 30861 } 30862 } 30863 )), 30864 onKeyDown: ye(e.onKeyDown, d => { 30865 var p; 30866 const f = o.searchRef.current !== ""; 30867 e.disabled || f && d.key === " " || Cse[r.dir].includes(d.key) && (n.onOpenChange(!0), 30868 (p = n.content) == null || p.focus(), 30869 d.preventDefault()) 30870 } 30871 ) 30872 }) 30873 }) 30874} 30875); 30876zU.displayName = fd; 30877var WU = "MenuSubContent" 30878 , HU = b.forwardRef( (e, t) => { 30879 const n = AU($r, e.__scopeMenu) 30880 , {forceMount: r=n.forceMount, ...i} = e 30881 , o = el($r, e.__scopeMenu) 30882 , a = Fh($r, e.__scopeMenu) 30883 , s = UU(WU, e.__scopeMenu) 30884 , l = b.useRef(null) 30885 , c = Ye(t, l); 30886 return h.jsx(gf.Provider, { 30887 scope: e.__scopeMenu, 30888 children: h.jsx(Xi, { 30889 present: r || o.open, 30890 children: h.jsx(gf.Slot, { 30891 scope: e.__scopeMenu, 30892 children: h.jsx(aT, { 30893 id: s.contentId, 30894 "aria-labelledby": s.triggerId, 30895 ...i, 30896 ref: c, 30897 align: "start", 30898 side: a.dir === "rtl" ? "left" : "right", 30899 disableOutsidePointerEvents: !1, 30900 disableOutsideScroll: !1, 30901 trapFocus: !1, 30902 onOpenAutoFocus: u => { 30903 var d; 30904 a.isUsingKeyboardRef.current && ((d = l.current) == null || d.focus()), 30905 u.preventDefault() 30906 } 30907 , 30908 onCloseAutoFocus: u => u.preventDefault(), 30909 onFocusOutside: ye(e.onFocusOutside, u => { 30910 u.target !== s.trigger && o.onOpenChange(!1) 30911 } 30912 ), 30913 onEscapeKeyDown: ye(e.onEscapeKeyDown, u => { 30914 a.onClose(), 30915 u.preventDefault() 30916 } 30917 ), 30918 onKeyDown: ye(e.onKeyDown, u => { 30919 var p; 30920 const d = u.currentTarget.contains(u.target) 30921 , f = Ose[a.dir].includes(u.key); 30922 d && f && (o.onOpenChange(!1), 30923 (p = s.trigger) == null || p.focus(), 30924 u.preventDefault()) 30925 } 30926 ) 30927 }) 30928 }) 30929 }) 30930 }) 30931} 30932); 30933HU.displayName = WU; 30934function qU(e) { 30935 return e ? "open" : "closed" 30936} 30937function fg(e) { 30938 return e === "indeterminate" 30939} 30940function cT(e) { 30941 return fg(e) ? "indeterminate" : e ? "checked" : "unchecked" 30942} 30943function qse(e) { 30944 const t = document.activeElement; 30945 for (const n of e) 30946 if (n === t || (n.focus(), 30947 document.activeElement !== t)) 30948 return 30949} 30950function Kse(e, t) { 30951 return e.map( (n, r) => e[(t + r) % e.length]) 30952} 30953function Gse(e, t, n) { 30954 const i = t.length > 1 && Array.from(t).every(c => c === t[0]) ? t[0] : t 30955 , o = n ? e.indexOf(n) : -1; 30956 let a = Kse(e, Math.max(o, 0)); 30957 i.length === 1 && (a = a.filter(c => c !== n)); 30958 const l = a.find(c => c.toLowerCase().startsWith(i.toLowerCase())); 30959 return l !== n ? l : void 0 30960} 30961function Yse(e, t) { 30962 const {x: n, y: r} = e; 30963 let i = !1; 30964 for (let o = 0, a = t.length - 1; o < t.length; a = o++) { 30965 const s = t[o].x 30966 , l = t[o].y 30967 , c = t[a].x 30968 , u = t[a].y; 30969 l > r != u > r && n < (c - s) * (r - l) / (u - l) + s && (i = !i) 30970 } 30971 return i 30972} 30973function Xse(e, t) { 30974 if (!t) 30975 return !1; 30976 const n = { 30977 x: e.clientX, 30978 y: e.clientY 30979 }; 30980 return Yse(n, t) 30981} 30982function yf(e) { 30983 return t => t.pointerType === "mouse" ? e(t) : void 0 30984} 30985var Qse = OU 30986 , Zse = rT 30987 , Jse = EU 30988 , ele = jU 30989 , tle = sT 30990 , nle = NU 30991 , rle = Pv 30992 , ile = kU 30993 , ole = DU 30994 , ale = $U 30995 , sle = FU 30996 , lle = BU 30997 , cle = VU 30998 , ule = zU 30999 , dle = HU 31000 , uT = "DropdownMenu" 31001 , [fle,e$e] = zr(uT, [TU]) 31002 , zn = TU() 31003 , [hle,KU] = fle(uT) 31004 , GU = e => { 31005 const {__scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: o, onOpenChange: a, modal: s=!0} = e 31006 , l = zn(t) 31007 , c = b.useRef(null) 31008 , [u=!1,d] = pi({ 31009 prop: i, 31010 defaultProp: o, 31011 onChange: a 31012 }); 31013 return h.jsx(hle, { 31014 scope: t, 31015 triggerId: Ir(), 31016 triggerRef: c, 31017 contentId: Ir(), 31018 open: u, 31019 onOpenChange: d, 31020 onOpenToggle: b.useCallback( () => d(f => !f), [d]), 31021 modal: s, 31022 children: h.jsx(Qse, { 31023 ...l, 31024 open: u, 31025 onOpenChange: d, 31026 dir: r, 31027 modal: s, 31028 children: n 31029 }) 31030 }) 31031} 31032; 31033GU.displayName = uT; 31034var YU = "DropdownMenuTrigger" 31035 , XU = b.forwardRef( (e, t) => { 31036 const {__scopeDropdownMenu: n, disabled: r=!1, ...i} = e 31037 , o = KU(YU, n) 31038 , a = zn(n); 31039 return h.jsx(Zse, { 31040 asChild: !0, 31041 ...a, 31042 children: h.jsx(Ce.button, { 31043 type: "button", 31044 id: o.triggerId, 31045 "aria-haspopup": "menu", 31046 "aria-expanded": o.open, 31047 "aria-controls": o.open ? o.contentId : void 0, 31048 "data-state": o.open ? "open" : "closed", 31049 "data-disabled": r ? "" : void 0, 31050 disabled: r, 31051 ...i, 31052 ref: Mo(t, o.triggerRef), 31053 onPointerDown: ye(e.onPointerDown, s => { 31054 !r && s.button === 0 && s.ctrlKey === !1 && (o.onOpenToggle(), 31055 o.open || s.preventDefault()) 31056 } 31057 ), 31058 onKeyDown: ye(e.onKeyDown, s => { 31059 r || (["Enter", " "].includes(s.key) && o.onOpenToggle(), 31060 s.key === "ArrowDown" && o.onOpenChange(!0), 31061 ["Enter", " ", "ArrowDown"].includes(s.key) && s.preventDefault()) 31062 } 31063 ) 31064 }) 31065 }) 31066} 31067); 31068XU.displayName = YU; 31069var ple = "DropdownMenuPortal" 31070 , QU = e => { 31071 const {__scopeDropdownMenu: t, ...n} = e 31072 , r = zn(t); 31073 return h.jsx(Jse, { 31074 ...r, 31075 ...n 31076 }) 31077} 31078; 31079QU.displayName = ple; 31080var ZU = "DropdownMenuContent" 31081 , JU = b.forwardRef( (e, t) => { 31082 const {__scopeDropdownMenu: n, ...r} = e 31083 , i = KU(ZU, n) 31084 , o = zn(n) 31085 , a = b.useRef(!1); 31086 return h.jsx(ele, { 31087 id: i.contentId, 31088 "aria-labelledby": i.triggerId, 31089 ...o, 31090 ...r, 31091 ref: t, 31092 onCloseAutoFocus: ye(e.onCloseAutoFocus, s => { 31093 var l; 31094 a.current || (l = i.triggerRef.current) == null || l.focus(), 31095 a.current = !1, 31096 s.preventDefault() 31097 } 31098 ), 31099 onInteractOutside: ye(e.onInteractOutside, s => { 31100 const l = s.detail.originalEvent 31101 , c = l.button === 0 && l.ctrlKey === !0 31102 , u = l.button === 2 || c; 31103 (!i.modal || u) && (a.current = !0) 31104 } 31105 ), 31106 style: { 31107 ...e.style, 31108 "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)", 31109 "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)", 31110 "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)", 31111 "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)", 31112 "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)" 31113 } 31114 }) 31115} 31116); 31117JU.displayName = ZU; 31118var mle = "DropdownMenuGroup" 31119 , gle = b.forwardRef( (e, t) => { 31120 const {__scopeDropdownMenu: n, ...r} = e 31121 , i = zn(n); 31122 return h.jsx(tle, { 31123 ...i, 31124 ...r, 31125 ref: t 31126 }) 31127} 31128); 31129gle.displayName = mle; 31130var yle = "DropdownMenuLabel" 31131 , e8 = b.forwardRef( (e, t) => { 31132 const {__scopeDropdownMenu: n, ...r} = e 31133 , i = zn(n); 31134 return h.jsx(nle, { 31135 ...i, 31136 ...r, 31137 ref: t 31138 }) 31139} 31140); 31141e8.displayName = yle; 31142var vle = "DropdownMenuItem" 31143 , t8 = b.forwardRef( (e, t) => { 31144 const {__scopeDropdownMenu: n, ...r} = e 31145 , i = zn(n); 31146 return h.jsx(rle, { 31147 ...i, 31148 ...r, 31149 ref: t 31150 }) 31151} 31152); 31153t8.displayName = vle; 31154var xle = "DropdownMenuCheckboxItem" 31155 , n8 = b.forwardRef( (e, t) => { 31156 const {__scopeDropdownMenu: n, ...r} = e 31157 , i = zn(n); 31158 return h.jsx(ile, { 31159 ...i, 31160 ...r, 31161 ref: t 31162 }) 31163} 31164); 31165n8.displayName = xle; 31166var ble = "DropdownMenuRadioGroup" 31167 , wle = b.forwardRef( (e, t) => { 31168 const {__scopeDropdownMenu: n, ...r} = e 31169 , i = zn(n); 31170 return h.jsx(ole, { 31171 ...i, 31172 ...r, 31173 ref: t 31174 }) 31175} 31176); 31177wle.displayName = ble; 31178var Sle = "DropdownMenuRadioItem" 31179 , r8 = b.forwardRef( (e, t) => { 31180 const {__scopeDropdownMenu: n, ...r} = e 31181 , i = zn(n); 31182 return h.jsx(ale, { 31183 ...i, 31184 ...r, 31185 ref: t 31186 }) 31187} 31188); 31189r8.displayName = Sle; 31190var Ple = "DropdownMenuItemIndicator" 31191 , i8 = b.forwardRef( (e, t) => { 31192 const {__scopeDropdownMenu: n, ...r} = e 31193 , i = zn(n); 31194 return h.jsx(sle, { 31195 ...i, 31196 ...r, 31197 ref: t 31198 }) 31199} 31200); 31201i8.displayName = Ple; 31202var _le = "DropdownMenuSeparator" 31203 , o8 = b.forwardRef( (e, t) => { 31204 const {__scopeDropdownMenu: n, ...r} = e 31205 , i = zn(n); 31206 return h.jsx(lle, { 31207 ...i, 31208 ...r, 31209 ref: t 31210 }) 31211} 31212); 31213o8.displayName = _le; 31214var Tle = "DropdownMenuArrow" 31215 , Cle = b.forwardRef( (e, t) => { 31216 const {__scopeDropdownMenu: n, ...r} = e 31217 , i = zn(n); 31218 return h.jsx(cle, { 31219 ...i, 31220 ...r, 31221 ref: t 31222 }) 31223} 31224); 31225Cle.displayName = Tle; 31226var Ole = "DropdownMenuSubTrigger" 31227 , a8 = b.forwardRef( (e, t) => { 31228 const {__scopeDropdownMenu: n, ...r} = e 31229 , i = zn(n); 31230 return h.jsx(ule, { 31231 ...i, 31232 ...r, 31233 ref: t 31234 }) 31235} 31236); 31237a8.displayName = Ole; 31238var Ale = "DropdownMenuSubContent" 31239 , s8 = b.forwardRef( (e, t) => { 31240 const {__scopeDropdownMenu: n, ...r} = e 31241 , i = zn(n); 31242 return h.jsx(dle, { 31243 ...i, 31244 ...r, 31245 ref: t, 31246 style: { 31247 ...e.style, 31248 "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)", 31249 "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)", 31250 "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)", 31251 "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)", 31252 "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)" 31253 } 31254 }) 31255} 31256); 31257s8.displayName = Ale; 31258var Ele = GU 31259 , jle = XU 31260 , Nle = QU 31261 , l8 = JU 31262 , c8 = e8 31263 , u8 = t8 31264 , d8 = n8 31265 , f8 = r8 31266 , h8 = i8 31267 , p8 = o8 31268 , m8 = a8 31269 , g8 = s8; 31270const Mle = Ele 31271 , kle = jle
31272 , Rle = b.forwardRef( ({className: e, inset: t, children: n, ...r}, i) => h.jsxs(m8, { 31273 ref: i, 31274 className: fe("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent", t && "pl-8", e), 31275 ...r, 31276 children: [n, h.jsx(PX, { 31277 className: "ml-auto h-4 w-4" 31278 })] 31279})); 31280Rle.displayName = m8.displayName; 31281const Dle = b.forwardRef( ({className: e, ...t}, n) => h.jsx(g8, { 31282 ref: n, 31283 className: fe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", e), 31284 ...t 31285})); 31286Dle.displayName = g8.displayName; 31287const y8 = b.forwardRef( ({className: e, sideOffset: t=4, ...n}, r) => h.jsx(Nle, { 31288 children: h.jsx(l8, { 31289 ref: r, 31290 sideOffset: t, 31291 className: fe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", e), 31292 ...n 31293 }) 31294})); 31295y8.displayName = l8.displayName; 31296const r1 = b.forwardRef( ({className: e, inset: t, ...n}, r) => h.jsx(u8, { 31297 ref: r, 31298 className: fe("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", t && "pl-8", e), 31299 ...n 31300})); 31301r1.displayName = u8.displayName; 31302const Ile = b.forwardRef( ({className: e, children: t, checked: n, ...r}, i) => h.jsxs(d8, { 31303 ref: i, 31304 className: fe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e), 31305 checked: n, 31306 ...r, 31307 children: [h.jsx("span", { 31308 className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", 31309 children: h.jsx(h8, { 31310 children: h.jsx(LP, { 31311 className: "h-4 w-4" 31312 }) 31313 }) 31314 }), t] 31315})); 31316Ile.displayName = d8.displayName; 31317const $le = b.forwardRef( ({className: e, children: t, ...n}, r) => h.jsxs(f8, { 31318 ref: r, 31319 className: fe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e), 31320 ...n, 31321 children: [h.jsx("span", { 31322 className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", 31323 children: h.jsx(h8, { 31324 children: h.jsx(CX, { 31325 className: "h-2 w-2 fill-current" 31326 }) 31327 }) 31328 }), t] 31329})); 31330$le.displayName = f8.displayName; 31331const Lle = b.forwardRef( ({className: e, inset: t, ...n}, r) => h.jsx(c8, { 31332 ref: r, 31333 className: fe("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e), 31334 ...n 31335})); 31336Lle.displayName = c8.displayName; 31337const Fle = b.forwardRef( ({className: e, ...t}, n) => h.jsx(p8, { 31338 ref: n, 31339 className: fe("-mx-1 my-1 h-px bg-muted", e), 31340 ...t 31341})); 31342Fle.displayName = p8.displayName; 31343function Ble() { 31344 const {user: e, logoutMutation: t, showLogoutConfirmation: n, setShowLogoutConfirmation: r, handleLogout: i} = za(); 31345 return h.jsxs(h.Fragment, { 31346 children: [h.jsx("div", { 31347 className: "bg-primary/10 py-2 px-4 mb-4", 31348 children: h.jsx("div", { 31349 className: "max-w-6xl mx-auto", 31350 children: h.jsx("div", { 31351 className: "flex justify-end items-center", 31352 children: e && h.jsxs(Mle, { 31353 children: [h.jsx(kle, { 31354 className: "outline-none", 31355 children: h.jsx(pU, { 31356 className: "h-8 w-8", 31357 children: h.jsx(mU, { 31358 children: h.jsx(LX, { 31359 className: "h-4 w-4" 31360 }) 31361 }) 31362 }) 31363 }), h.jsxs(y8, { 31364 align: "end", 31365 children: [h.jsxs(r1, { 31366 children: [h.jsx(k4, { 31367 className: "mr-2 h-4 w-4" 31368 }), "Settings"] 31369 }), h.jsxs(r1, { 31370 onClick: i, 31371 className: "text-destructive", 31372 children: [h.jsx(j4, { 31373 className: "mr-2 h-4 w-4" 31374 }), "Logout"] 31375 })] 31376 })] 31377 }) 31378 }) 31379 }) 31380 }), h.jsx(rU, { 31381 open: n, 31382 onOpenChange: r, 31383 children: h.jsxs(Y_, { 31384 children: [h.jsxs(X_, { 31385 children: [h.jsx(Z_, { 31386 children: "Are you sure you want to logout?" 31387 }), h.jsx(J_, { 31388 children: "Any unsaved changes will be lost. Please make sure you've saved all your work before logging out." 31389 })] 31390 }), h.jsxs(Q_, { 31391 children: [h.jsx(tT, { 31392 children: "Cancel" 31393 }), h.jsx(eT, { 31394 onClick: () => { 31395 r(!1), 31396 t.mutate() 31397 } 31398 , 31399 className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", 31400 children: "Logout" 31401 })] 31402 })] 31403 }) 31404 })] 31405 }) 31406} 31407const Vle = Ch("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", { 31408 variants: { 31409 variant: { 31410 default: "bg-background text-foreground", 31411 destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive" 31412 } 31413 }, 31414 defaultVariants: { 31415 variant: "default" 31416 } 31417}) 31418 , v8 = b.forwardRef( ({className: e, variant: t, ...n}, r) => h.jsx("div", { 31419 ref: r, 31420 role: "alert", 31421 className: fe(Vle({ 31422 variant: t 31423 }), e), 31424 ...n 31425})); 31426v8.displayName = "Alert"; 31427const x8 = b.forwardRef( ({className: e, ...t}, n) => h.jsx("h5", { 31428 ref: n, 31429 className: fe("mb-1 font-medium leading-none tracking-tight", e), 31430 ...t 31431})); 31432x8.displayName = "AlertTitle"; 31433const b8 = b.forwardRef( ({className: e, ...t}, n) => h.jsx("div", { 31434 ref: n, 31435 className: fe("text-sm [&_p]:leading-relaxed", e), 31436 ...t 31437})); 31438b8.displayName = "AlertDescription"; 31439function Ule() { 31440 const {user: e} = za() 31441 , {toast: t} = Fa() 31442 , n = ci({ 31443 mutationFn: async () => (await Di("POST", "/api/resend-verification")).json(), 31444 onSuccess: () => { 31445 t({ 31446 title: "Verification email sent", 31447 description: "Please check your inbox for the verification link" 31448 }) 31449 } 31450 , 31451 onError: r => { 31452 t({ 31453 title: "Failed to resend verification email", 31454 description: r.message, 31455 variant: "destructive" 31456 }) 31457 } 31458 }); 31459 return !e || e.isVerified ? null : h.jsxs(v8, { 31460 variant: "destructive", 31461 className: "mb-6", 31462 children: [h.jsx(T4, { 31463 className: "h-4 w-4" 31464 }), h.jsx(x8, { 31465 children: "Verify your email address" 31466 }), h.jsxs(b8, { 31467 className: "flex items-center gap-4", 31468 children: [h.jsx("span", { 31469 children: "Your account is pending verification. Please verify your email to unlock full access." 31470 }), h.jsx(Me, { 31471 variant: "outline", 31472 size: "sm", 31473 onClick: () => n.mutate(), 31474 disabled: n.isPending, 31475 children: "Resend verification email" 31476 })] 31477 })] 31478 }) 31479} 31480function tj({children: e, activePath: t}) { 31481 const {user: n, isLoading: r} = za() 31482 , [i,o] = qy(); 31483 return b.useEffect( () => { 31484 !r && !n && o("/auth") 31485 } 31486 , [n, r, o]), 31487 n ? h.jsxs("div", { 31488 className: "flex min-h-screen bg-background", 31489 children: [h.jsx(rse, { 31490 activePath: t 31491 }), h.jsxs("main", { 31492 className: "flex-1 p-8 overflow-auto", 31493 children: [h.jsx(Ble, {}), !n.isVerified && h.jsx(Ule, {}), e] 31494 })] 31495 }) : null 31496} 31497var zle = Array.isArray 31498 , nr = zle 31499 , Wle = typeof np == "object" && np && np.Object === Object && np 31500 , w8 = Wle 31501 , Hle = w8 31502 , qle = typeof self == "object" && self && self.Object === Object && self 31503 , Kle = Hle || qle || Function("return this")() 31504 , Qi = Kle 31505 , Gle = Qi 31506 , Yle = Gle.Symbol 31507 , Bh = Yle 31508 , nj = Bh 31509 , S8 = Object.prototype 31510 , Xle = S8.hasOwnProperty 31511 , Qle = S8.toString 31512 , Fu = nj ? nj.toStringTag : void 0; 31513function Zle(e) { 31514 var t = Xle.call(e, Fu) 31515 , n = e[Fu]; 31516 try { 31517 e[Fu] = void 0; 31518 var r = !0 31519 } catch {} 31520 var i = Qle.call(e); 31521 return r && (t ? e[Fu] = n : delete e[Fu]), 31522 i 31523} 31524var Jle = Zle 31525 , ece = Object.prototype 31526 , tce = ece.toString; 31527function nce(e) { 31528 return tce.call(e) 31529} 31530var rce = nce 31531 , rj = Bh 31532 , ice = Jle 31533 , oce = rce 31534 , ace = "[object Null]"
vendor: 5,368 bytes, lines 31535-31784
31535 , sce = "[object Undefined]" 31536 , ij = rj ? rj.toStringTag : void 0; 31537function lce(e) { 31538 return e == null ? e === void 0 ? sce : ace : ij && ij in Object(e) ? ice(e) : oce(e) 31539} 31540var Do = lce; 31541function cce(e) { 31542 return e != null && typeof e == "object" 31543} 31544var Io = cce 31545 , uce = Do 31546 , dce = Io 31547 , fce = "[object Symbol]"; 31548function hce(e) { 31549 return typeof e == "symbol" || dce(e) && uce(e) == fce 31550} 31551var du = hce 31552 , pce = nr 31553 , mce = du 31554 , gce = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/ 31555 , yce = /^\w*$/; 31556function vce(e, t) { 31557 if (pce(e)) 31558 return !1; 31559 var n = typeof e; 31560 return n == "number" || n == "symbol" || n == "boolean" || e == null || mce(e) ? !0 : yce.test(e) || !gce.test(e) || t != null && e in Object(t) 31561} 31562var dT = vce; 31563function xce(e) { 31564 var t = typeof e; 31565 return e != null && (t == "object" || t == "function") 31566} 31567var Wa = xce; 31568const fu = lt(Wa); 31569var bce = Do 31570 , wce = Wa 31571 , Sce = "[object AsyncFunction]" 31572 , Pce = "[object Function]" 31573 , _ce = "[object GeneratorFunction]" 31574 , Tce = "[object Proxy]"; 31575function Cce(e) { 31576 if (!wce(e)) 31577 return !1; 31578 var t = bce(e); 31579 return t == Pce || t == _ce || t == Sce || t == Tce 31580} 31581var fT = Cce; 31582const qe = lt(fT); 31583var Oce = Qi 31584 , Ace = Oce["__core-js_shared__"] 31585 , Ece = Ace 31586 , Sx = Ece 31587 , oj = function() { 31588 var e = /[^.]+$/.exec(Sx && Sx.keys && Sx.keys.IE_PROTO || ""); 31589 return e ? "Symbol(src)_1." + e : "" 31590}(); 31591function jce(e) { 31592 return !!oj && oj in e 31593} 31594var Nce = jce 31595 , Mce = Function.prototype 31596 , kce = Mce.toString; 31597function Rce(e) { 31598 if (e != null) { 31599 try { 31600 return kce.call(e) 31601 } catch {} 31602 try { 31603 return e + "" 31604 } catch {} 31605 } 31606 return "" 31607} 31608var P8 = Rce 31609 , Dce = fT 31610 , Ice = Nce 31611 , $ce = Wa 31612 , Lce = P8 31613 , Fce = /[\\^$.*+?()[\]{}|]/g 31614 , Bce = /^\[object .+?Constructor\]$/ 31615 , Vce = Function.prototype 31616 , Uce = Object.prototype 31617 , zce = Vce.toString 31618 , Wce = Uce.hasOwnProperty 31619 , Hce = RegExp("^" + zce.call(Wce).replace(Fce, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); 31620function qce(e) { 31621 if (!$ce(e) || Ice(e)) 31622 return !1; 31623 var t = Dce(e) ? Hce : Bce; 31624 return t.test(Lce(e)) 31625} 31626var Kce = qce; 31627function Gce(e, t) { 31628 return e == null ? void 0 : e[t] 31629} 31630var Yce = Gce 31631 , Xce = Kce 31632 , Qce = Yce; 31633function Zce(e, t) { 31634 var n = Qce(e, t); 31635 return Xce(n) ? n : void 0 31636} 31637var tl = Zce 31638 , Jce = tl 31639 , eue = Jce(Object, "create") 31640 , _v = eue 31641 , aj = _v; 31642function tue() { 31643 this.__data__ = aj ? aj(null) : {}, 31644 this.size = 0 31645} 31646var nue = tue; 31647function rue(e) { 31648 var t = this.has(e) && delete this.__data__[e]; 31649 return this.size -= t ? 1 : 0, 31650 t 31651} 31652var iue = rue 31653 , oue = _v 31654 , aue = "__lodash_hash_undefined__" 31655 , sue = Object.prototype 31656 , lue = sue.hasOwnProperty; 31657function cue(e) { 31658 var t = this.__data__; 31659 if (oue) { 31660 var n = t[e]; 31661 return n === aue ? void 0 : n 31662 } 31663 return lue.call(t, e) ? t[e] : void 0 31664} 31665var uue = cue 31666 , due = _v 31667 , fue = Object.prototype 31668 , hue = fue.hasOwnProperty; 31669function pue(e) { 31670 var t = this.__data__; 31671 return due ? t[e] !== void 0 : hue.call(t, e) 31672} 31673var mue = pue 31674 , gue = _v 31675 , yue = "__lodash_hash_undefined__"; 31676function vue(e, t) { 31677 var n = this.__data__; 31678 return this.size += this.has(e) ? 0 : 1, 31679 n[e] = gue && t === void 0 ? yue : t, 31680 this 31681} 31682var xue = vue 31683 , bue = nue 31684 , wue = iue 31685 , Sue = uue 31686 , Pue = mue 31687 , _ue = xue; 31688function hu(e) { 31689 var t = -1 31690 , n = e == null ? 0 : e.length; 31691 for (this.clear(); ++t < n; ) { 31692 var r = e[t]; 31693 this.set(r[0], r[1]) 31694 } 31695} 31696hu.prototype.clear = bue; 31697hu.prototype.delete = wue; 31698hu.prototype.get = Sue; 31699hu.prototype.has = Pue; 31700hu.prototype.set = _ue; 31701var Tue = hu; 31702function Cue() { 31703 this.__data__ = [], 31704 this.size = 0 31705} 31706var Oue = Cue; 31707function Aue(e, t) { 31708 return e === t || e !== e && t !== t 31709} 31710var hT = Aue 31711 , Eue = hT; 31712function jue(e, t) { 31713 for (var n = e.length; n--; ) 31714 if (Eue(e[n][0], t)) 31715 return n; 31716 return -1 31717} 31718var Tv = jue 31719 , Nue = Tv 31720 , Mue = Array.prototype 31721 , kue = Mue.splice; 31722function Rue(e) { 31723 var t = this.__data__ 31724 , n = Nue(t, e); 31725 if (n < 0) 31726 return !1; 31727 var r = t.length - 1; 31728 return n == r ? t.pop() : kue.call(t, n, 1), 31729 --this.size, 31730 !0 31731} 31732var Due = Rue 31733 , Iue = Tv; 31734function $ue(e) { 31735 var t = this.__data__ 31736 , n = Iue(t, e); 31737 return n < 0 ? void 0 : t[n][1] 31738} 31739var Lue = $ue 31740 , Fue = Tv; 31741function Bue(e) { 31742 return Fue(this.__data__, e) > -1 31743} 31744var Vue = Bue 31745 , Uue = Tv; 31746function zue(e, t) { 31747 var n = this.__data__ 31748 , r = Uue(n, e); 31749 return r < 0 ? (++this.size, 31750 n.push([e, t])) : n[r][1] = t, 31751 this 31752} 31753var Wue = zue 31754 , Hue = Oue 31755 , que = Due 31756 , Kue = Lue 31757 , Gue = Vue 31758 , Yue = Wue; 31759function pu(e) { 31760 var t = -1 31761 , n = e == null ? 0 : e.length; 31762 for (this.clear(); ++t < n; ) { 31763 var r = e[t]; 31764 this.set(r[0], r[1]) 31765 } 31766} 31767pu.prototype.clear = Hue; 31768pu.prototype.delete = que; 31769pu.prototype.get = Kue; 31770pu.prototype.has = Gue; 31771pu.prototype.set = Yue; 31772var Cv = pu 31773 , Xue = tl 31774 , Que = Qi 31775 , Zue = Xue(Que, "Map") 31776 , pT = Zue 31777 , sj = Tue 31778 , Jue = Cv 31779 , ede = pT; 31780function tde() { 31781 this.size = 0, 31782 this.__data__ = { 31783 hash: new sj, 31784 map: new (ede || Jue),
vendor: 10,619 bytes, lines 31785-32183
31785 string: new sj 31786 } 31787} 31788var nde = tde; 31789function rde(e) { 31790 var t = typeof e; 31791 return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null 31792} 31793var ide = rde 31794 , ode = ide; 31795function ade(e, t) { 31796 var n = e.__data__; 31797 return ode(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map 31798} 31799var Ov = ade 31800 , sde = Ov; 31801function lde(e) { 31802 var t = sde(this, e).delete(e); 31803 return this.size -= t ? 1 : 0, 31804 t 31805} 31806var cde = lde 31807 , ude = Ov; 31808function dde(e) { 31809 return ude(this, e).get(e) 31810} 31811var fde = dde 31812 , hde = Ov; 31813function pde(e) { 31814 return hde(this, e).has(e) 31815} 31816var mde = pde 31817 , gde = Ov; 31818function yde(e, t) { 31819 var n = gde(this, e) 31820 , r = n.size; 31821 return n.set(e, t), 31822 this.size += n.size == r ? 0 : 1, 31823 this 31824} 31825var vde = yde 31826 , xde = nde 31827 , bde = cde 31828 , wde = fde 31829 , Sde = mde 31830 , Pde = vde; 31831function mu(e) { 31832 var t = -1 31833 , n = e == null ? 0 : e.length; 31834 for (this.clear(); ++t < n; ) { 31835 var r = e[t]; 31836 this.set(r[0], r[1]) 31837 } 31838} 31839mu.prototype.clear = xde; 31840mu.prototype.delete = bde; 31841mu.prototype.get = wde; 31842mu.prototype.has = Sde; 31843mu.prototype.set = Pde; 31844var mT = mu 31845 , _8 = mT 31846 , _de = "Expected a function"; 31847function gT(e, t) { 31848 if (typeof e != "function" || t != null && typeof t != "function") 31849 throw new TypeError(_de); 31850 var n = function() { 31851 var r = arguments 31852 , i = t ? t.apply(this, r) : r[0] 31853 , o = n.cache; 31854 if (o.has(i)) 31855 return o.get(i); 31856 var a = e.apply(this, r); 31857 return n.cache = o.set(i, a) || o, 31858 a 31859 }; 31860 return n.cache = new (gT.Cache || _8), 31861 n 31862} 31863gT.Cache = _8; 31864var T8 = gT; 31865const Tde = lt(T8); 31866var Cde = T8 31867 , Ode = 500; 31868function Ade(e) { 31869 var t = Cde(e, function(r) { 31870 return n.size === Ode && n.clear(), 31871 r 31872 }) 31873 , n = t.cache; 31874 return t 31875} 31876var Ede = Ade 31877 , jde = Ede 31878 , Nde = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g 31879 , Mde = /\\(\\)?/g 31880 , kde = jde(function(e) { 31881 var t = []; 31882 return e.charCodeAt(0) === 46 && t.push(""), 31883 e.replace(Nde, function(n, r, i, o) { 31884 t.push(i ? o.replace(Mde, "$1") : r || n) 31885 }), 31886 t 31887}) 31888 , Rde = kde; 31889function Dde(e, t) { 31890 for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r; ) 31891 i[n] = t(e[n], n, e); 31892 return i 31893} 31894var yT = Dde 31895 , lj = Bh 31896 , Ide = yT 31897 , $de = nr 31898 , Lde = du 31899 , Fde = 1 / 0 31900 , cj = lj ? lj.prototype : void 0 31901 , uj = cj ? cj.toString : void 0; 31902function C8(e) { 31903 if (typeof e == "string") 31904 return e; 31905 if ($de(e)) 31906 return Ide(e, C8) + ""; 31907 if (Lde(e)) 31908 return uj ? uj.call(e) : ""; 31909 var t = e + ""; 31910 return t == "0" && 1 / e == -Fde ? "-0" : t 31911} 31912var Bde = C8 31913 , Vde = Bde; 31914function Ude(e) { 31915 return e == null ? "" : Vde(e) 31916} 31917var O8 = Ude 31918 , zde = nr 31919 , Wde = dT 31920 , Hde = Rde 31921 , qde = O8; 31922function Kde(e, t) { 31923 return zde(e) ? e : Wde(e, t) ? [e] : Hde(qde(e)) 31924} 31925var A8 = Kde 31926 , Gde = du 31927 , Yde = 1 / 0; 31928function Xde(e) { 31929 if (typeof e == "string" || Gde(e)) 31930 return e; 31931 var t = e + ""; 31932 return t == "0" && 1 / e == -Yde ? "-0" : t 31933} 31934var Av = Xde 31935 , Qde = A8 31936 , Zde = Av; 31937function Jde(e, t) { 31938 t = Qde(t, e); 31939 for (var n = 0, r = t.length; e != null && n < r; ) 31940 e = e[Zde(t[n++])]; 31941 return n && n == r ? e : void 0 31942} 31943var vT = Jde 31944 , efe = vT; 31945function tfe(e, t, n) { 31946 var r = e == null ? void 0 : efe(e, t); 31947 return r === void 0 ? n : r 31948} 31949var E8 = tfe; 31950const Lr = lt(E8); 31951function nfe(e) { 31952 return e == null 31953} 31954var rfe = nfe; 31955const et = lt(rfe); 31956var ife = Do 31957 , ofe = nr 31958 , afe = Io 31959 , sfe = "[object String]"; 31960function lfe(e) { 31961 return typeof e == "string" || !ofe(e) && afe(e) && ife(e) == sfe 31962} 31963var cfe = lfe; 31964const Vh = lt(cfe); 31965var j8 = { 31966 exports: {} 31967} 31968 , it = {}; 31969/** 31970 * @license React 31971 * react-is.production.min.js 31972 * 31973 * Copyright (c) Facebook, Inc. and its affiliates. 31974 * 31975 * This source code is licensed under the MIT license found in the 31976 * LICENSE file in the root directory of this source tree. 31977 */ 31978var xT = Symbol.for("react.element"), bT = Symbol.for("react.portal"), Ev = Symbol.for("react.fragment"), jv = Symbol.for("react.strict_mode"), Nv = Symbol.for("react.profiler"), Mv = Symbol.for("react.provider"), kv = Symbol.for("react.context"), ufe = Symbol.for("react.server_context"), Rv = Symbol.for("react.forward_ref"), Dv = Symbol.for("react.suspense"), Iv = Symbol.for("react.suspense_list"), $v = Symbol.for("react.memo"), Lv = Symbol.for("react.lazy"), dfe = Symbol.for("react.offscreen"), N8; 31979N8 = Symbol.for("react.module.reference"); 31980function Wr(e) { 31981 if (typeof e == "object" && e !== null) { 31982 var t = e.$$typeof; 31983 switch (t) { 31984 case xT: 31985 switch (e = e.type, 31986 e) { 31987 case Ev: 31988 case Nv: 31989 case jv: 31990 case Dv: 31991 case Iv: 31992 return e; 31993 default: 31994 switch (e = e && e.$$typeof, 31995 e) { 31996 case ufe: 31997 case kv: 31998 case Rv: 31999 case Lv: 32000 case $v: 32001 case Mv: 32002 return e; 32003 default: 32004 return t 32005 } 32006 } 32007 case bT: 32008 return t 32009 } 32010 } 32011} 32012it.ContextConsumer = kv; 32013it.ContextProvider = Mv; 32014it.Element = xT; 32015it.ForwardRef = Rv; 32016it.Fragment = Ev; 32017it.Lazy = Lv; 32018it.Memo = $v; 32019it.Portal = bT; 32020it.Profiler = Nv; 32021it.StrictMode = jv; 32022it.Suspense = Dv; 32023it.SuspenseList = Iv; 32024it.isAsyncMode = function() { 32025 return !1 32026} 32027; 32028it.isConcurrentMode = function() { 32029 return !1 32030} 32031; 32032it.isContextConsumer = function(e) { 32033 return Wr(e) === kv 32034} 32035; 32036it.isContextProvider = function(e) { 32037 return Wr(e) === Mv 32038} 32039; 32040it.isElement = function(e) { 32041 return typeof e == "object" && e !== null && e.$$typeof === xT 32042} 32043; 32044it.isForwardRef = function(e) { 32045 return Wr(e) === Rv 32046} 32047; 32048it.isFragment = function(e) { 32049 return Wr(e) === Ev 32050} 32051; 32052it.isLazy = function(e) { 32053 return Wr(e) === Lv 32054} 32055; 32056it.isMemo = function(e) { 32057 return Wr(e) === $v 32058} 32059; 32060it.isPortal = function(e) { 32061 return Wr(e) === bT 32062} 32063; 32064it.isProfiler = function(e) { 32065 return Wr(e) === Nv 32066} 32067; 32068it.isStrictMode = function(e) { 32069 return Wr(e) === jv 32070} 32071; 32072it.isSuspense = function(e) { 32073 return Wr(e) === Dv 32074} 32075; 32076it.isSuspenseList = function(e) { 32077 return Wr(e) === Iv 32078} 32079; 32080it.isValidElementType = function(e) { 32081 return typeof e == "string" || typeof e == "function" || e === Ev || e === Nv || e === jv || e === Dv || e === Iv || e === dfe || typeof e == "object" && e !== null && (e.$$typeof === Lv || e.$$typeof === $v || e.$$typeof === Mv || e.$$typeof === kv || e.$$typeof === Rv || e.$$typeof === N8 || e.getModuleId !== void 0) 32082} 32083; 32084it.typeOf = Wr; 32085j8.exports = it; 32086var ffe = j8.exports 32087 , hfe = Do 32088 , pfe = Io 32089 , mfe = "[object Number]"; 32090function gfe(e) { 32091 return typeof e == "number" || pfe(e) && hfe(e) == mfe 32092} 32093var M8 = gfe; 32094const yfe = lt(M8); 32095var vfe = M8; 32096function xfe(e) { 32097 return vfe(e) && e != +e 32098} 32099var bfe = xfe; 32100const Uh = lt(bfe); 32101var oi = function(t) { 32102 return t === 0 ? 0 : t > 0 ? 1 : -1 32103} 32104 , fs = function(t) { 32105 return Vh(t) && t.indexOf("%") === t.length - 1 32106} 32107 , le = function(t) { 32108 return yfe(t) && !Uh(t) 32109} 32110 , tn = function(t) { 32111 return le(t) || Vh(t) 32112} 32113 , wfe = 0 32114 , Fv = function(t) { 32115 var n = ++wfe; 32116 return "".concat(t || "").concat(n) 32117} 32118 , Hs = function(t, n) { 32119 var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0 32120 , i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1; 32121 if (!le(t) && !Vh(t)) 32122 return r; 32123 var o; 32124 if (fs(t)) { 32125 var a = t.indexOf("%"); 32126 o = n * parseFloat(t.slice(0, a)) / 100 32127 } else 32128 o = +t; 32129 return Uh(o) && (o = r), 32130 i && o > n && (o = n), 32131 o 32132} 32133 , yl = function(t) { 32134 if (!t) 32135 return null; 32136 var n = Object.keys(t); 32137 return n && n.length ? t[n[0]] : null 32138} 32139 , Sfe = function(t) { 32140 if (!Array.isArray(t)) 32141 return !1; 32142 for (var n = t.length, r = {}, i = 0; i < n; i++) 32143 if (!r[t[i]]) 32144 r[t[i]] = !0; 32145 else 32146 return !0; 32147 return !1 32148} 32149 , fl = function(t, n) { 32150 return le(t) && le(n) ? function(r) { 32151 return t + r * (n - t) 32152 } 32153 : function() { 32154 return n 32155 } 32156}; 32157function i1(e, t, n) { 32158 return !e || !e.length ? null : e.find(function(r) { 32159 return r && (typeof t == "function" ? t(r) : Lr(r, t)) === n 32160 }) 32161} 32162function Ql(e, t) { 32163 for (var n in e) 32164 if ({}.hasOwnProperty.call(e, n) && (!{}.hasOwnProperty.call(t, n) || e[n] !== t[n])) 32165 return !1; 32166 for (var r in t) 32167 if ({}.hasOwnProperty.call(t, r) && !{}.hasOwnProperty.call(e, r)) 32168 return !1; 32169 return !0 32170} 32171function o1(e) { 32172 "@babel/helpers - typeof"; 32173 return o1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 32174 return typeof t 32175 } 32176 : function(t) { 32177 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 32178 } 32179 , 32180 o1(e) 32181} 32182var Pfe = ["viewBox", "children"] 32183 , _fe = ["aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-busy", "aria-checked", "aria-colcount", "aria-colindex", "aria-colspan", "aria-controls", "aria-current", "aria-describedby", "aria-details", "aria-disabled", "aria-errormessage", "aria-expanded", "aria-flowto", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-level", "aria-live", "aria-modal", "aria-multiline", "aria-multiselectable", "aria-orientation", "aria-owns", "aria-placeholder", "aria-posinset", "aria-pressed", "aria-readonly", "aria-relevant", "aria-required", "aria-roledescription", "aria-rowcount", "aria-rowindex", "aria-rowspan", "aria-selected", "aria-setsize", "aria-sort", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "className", "color", "height", "id", "lang", "max", "media", "method", "min", "name", "style", "target", "width", "role", "tabIndex", "accentHeight", "accumulate", "additive", "alignmentBaseline", "allowReorder", "alphabetic", "amplitude", "arabicForm", "ascent", "attributeName", "attributeType", "autoReverse", "azimuth", "baseFrequency", "baselineShift", "baseProfile", "bbox", "begin", "bias", "by", "calcMode", "capHeight", "clip", "clipPath", "clipPathUnits", "clipRule", "colorInterpolation", "colorInterpolationFilters", "colorProfile", "colorRen
32183dering", "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", "fx", "fy", "g1", "g2", "glyphName", "glyphOrientationHorizontal", "glyphOrientationVertical", "glyphRef", "gradientTransform", "gradientUnits", "hanging", "horizAdvX", "horizOriginX", "href", "ideographic", "imageRendering", "in2", "in", "intercept", "k1", "k2", "k3", "k4", "k", "kernelMatrix", "kernelUnitLength", "kerning", "keyPoints", "keySplines", "keyTimes", "lengthAdjust", "letterSpacing", "lightingColor", "limitingConeAngle", "local", "markerEnd", "markerHeight", "markerMid", "markerStart", "markerUnits", "markerWidth", "mask", "maskContentUnits", "maskUnits", "mathematical", "mode", "numOctaves", "offset", "opacity", "operator", "order", "orient", "orientation", "origin", "overflow", "overlinePosition", "overlineThickness", "paintOrder", "panose1", "pathLength", "patternContentUnits", "patternTransform", "patternUnits", "pointerEvents", "pointsAtX", "pointsAtY", "pointsAtZ", "preserveAlpha", "preserveAspectRatio", "primitiveUnits", "r", "radius", "refX", "refY", "renderingIntent", "repeatCount", "repeatDur", "requiredExtensions", "requiredFeatures", "restart", "result", "rotate", "rx", "ry", "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", "textLength", "textRendering", "to", "transform", "u1", "u2", "underlinePosition", "underlineThickness", "unicode", "unicodeBidi", "unicodeRange", "unitsPerEm", "vAlphabetic", "values", "vectorEffect", "version", "vertAdvY", "vertOriginX", "vertOriginY", "vHanging", "vIdeographic", "viewTarget", "visibility", "vMathematical", "widths", "wordSpacing", "writingMode", "x1", "x2", "x", "xChannelSelector", "xHeight", "xlinkActuate", "xlinkArcrole", "xlinkHref", "xlinkRole", "xlinkShow", "xlinkTitle", "xlinkType", "xmlBase", "xmlLang", "xmlns", "xmlnsXlink", "xmlSpace", "y1", "y2", "y", "yChannelSelector", "z", "zoomAndPan", "ref", "key", "angle"] 32184 , dj = ["points", "pathLength"] 32185 , Px = { 32186 svg: Pfe, 32187 polygon: dj, 32188 polyline: dj 32189} 32190 , wT = ["dangerouslySetInnerHTML", "onCopy", "onCopyCapture", "onCut", "onCutCapture", "onPaste", "onPasteCapture", "onCompositionEnd", "onCompositionEndCapture", "onCompositionStart", "onCompositionStartCapture", "onCompositionUpdate", "onCompositionUpdateCapture", "onFocus", "onFocusCapture", "onBlur", "onBlurCapture", "onChange", "onChangeCapture", "onBeforeInput", "onBeforeInputCapture", "onInput", "onInputCapture", "onReset", "onResetCapture", "onSubmit", "onSubmitCapture", "onInvalid", "onInvalidCapture", "onLoad", "onLoadCapture", "onError", "onErrorCapture", "onKeyDown", "onKeyDownCapture", "onKeyPress", "onKeyPressCapture", "onKeyUp", "onKeyUpCapture", "onAbort", "onAbortCapture", "onCanPlay", "onCanPlayCapture", "onCanPlayThrough", "onCanPlayThroughCapture", "onDurationChange", "onDurationChangeCapture", "onEmptied", "onEmptiedCapture", "onEncrypted", "onEncryptedCapture", "onEnded", "onEndedCapture", "onLoadedData", "onLoadedDataCapture", "onLoadedMetadata", "onLoadedMetadataCapture", "onLoadStart", "onLoadStartCapture", "onPause", "onPauseCapture", "onPlay", "onPlayCapture", "onPlaying", "onPlayingCapture", "onProgress", "onProgressCapture", "onRateChange", "onRateChangeCapture", "onSeeked", "onSeekedCapture", "onSeeking", "onSeekingCapture", "onStalled", "onStalledCapture", "onSuspend", "onSuspendCapture", "onTimeUpdate", "onTimeUpdate
vendor: 9,063 bytes, lines 32190-32446
32190Capture", "onVolumeChange", "onVolumeChangeCapture", "onWaiting", "onWaitingCapture", "onAuxClick", "onAuxClickCapture", "onClick", "onClickCapture", "onContextMenu", "onContextMenuCapture", "onDoubleClick", "onDoubleClickCapture", "onDrag", "onDragCapture", "onDragEnd", "onDragEndCapture", "onDragEnter", "onDragEnterCapture", "onDragExit", "onDragExitCapture", "onDragLeave", "onDragLeaveCapture", "onDragOver", "onDragOverCapture", "onDragStart", "onDragStartCapture", "onDrop", "onDropCapture", "onMouseDown", "onMouseDownCapture", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseMoveCapture", "onMouseOut", "onMouseOutCapture", "onMouseOver", "onMouseOverCapture", "onMouseUp", "onMouseUpCapture", "onSelect", "onSelectCapture", "onTouchCancel", "onTouchCancelCapture", "onTouchEnd", "onTouchEndCapture", "onTouchMove", "onTouchMoveCapture", "onTouchStart", "onTouchStartCapture", "onPointerDown", "onPointerDownCapture", "onPointerMove", "onPointerMoveCapture", "onPointerUp", "onPointerUpCapture", "onPointerCancel", "onPointerCancelCapture", "onPointerEnter", "onPointerEnterCapture", "onPointerLeave", "onPointerLeaveCapture", "onPointerOver", "onPointerOverCapture", "onPointerOut", "onPointerOutCapture", "onGotPointerCapture", "onGotPointerCaptureCapture", "onLostPointerCapture", "onLostPointerCaptureCapture", "onScroll", "onScrollCapture", "onWheel", "onWheelCapture", "onAnimationStart", "onAnimationStartCapture", "onAnimationEnd", "onAnimationEndCapture", "onAnimationIteration", "onAnimationIterationCapture", "onTransitionEnd", "onTransitionEndCapture"] 32191 , hg = function(t, n) { 32192 if (!t || typeof t == "function" || typeof t == "boolean") 32193 return null; 32194 var r = t; 32195 if (b.isValidElement(t) && (r = t.props), 32196 !fu(r)) 32197 return null; 32198 var i = {}; 32199 return Object.keys(r).forEach(function(o) { 32200 wT.includes(o) && (i[o] = n || function(a) { 32201 return r[o](r, a) 32202 } 32203 ) 32204 }), 32205 i 32206} 32207 , Tfe = function(t, n, r) { 32208 return function(i) { 32209 return t(n, r, i), 32210 null 32211 } 32212} 32213 , pg = function(t, n, r) { 32214 if (!fu(t) || o1(t) !== "object") 32215 return null; 32216 var i = null; 32217 return Object.keys(t).forEach(function(o) { 32218 var a = t[o]; 32219 wT.includes(o) && typeof a == "function" && (i || (i = {}), 32220 i[o] = Tfe(a, n, r)) 32221 }), 32222 i 32223} 32224 , Cfe = ["children"] 32225 , Ofe = ["children"]; 32226function fj(e, t) { 32227 if (e == null) 32228 return {}; 32229 var n = Afe(e, t), r, i; 32230 if (Object.getOwnPropertySymbols) { 32231 var o = Object.getOwnPropertySymbols(e); 32232 for (i = 0; i < o.length; i++) 32233 r = o[i], 32234 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 32235 } 32236 return n 32237} 32238function Afe(e, t) { 32239 if (e == null) 32240 return {}; 32241 var n = {}; 32242 for (var r in e) 32243 if (Object.prototype.hasOwnProperty.call(e, r)) { 32244 if (t.indexOf(r) >= 0) 32245 continue; 32246 n[r] = e[r] 32247 } 32248 return n 32249} 32250var hj = { 32251 click: "onClick", 32252 mousedown: "onMouseDown", 32253 mouseup: "onMouseUp", 32254 mouseover: "onMouseOver", 32255 mousemove: "onMouseMove", 32256 mouseout: "onMouseOut", 32257 mouseenter: "onMouseEnter", 32258 mouseleave: "onMouseLeave", 32259 touchcancel: "onTouchCancel", 32260 touchend: "onTouchEnd", 32261 touchmove: "onTouchMove", 32262 touchstart: "onTouchStart" 32263} 32264 , yo = function(t) { 32265 return typeof t == "string" ? t : t ? t.displayName || t.name || "Component" : "" 32266} 32267 , pj = null 32268 , _x = null 32269 , ST = function e(t) { 32270 if (t === pj && Array.isArray(_x)) 32271 return _x; 32272 var n = []; 32273 return b.Children.forEach(t, function(r) { 32274 et(r) || (ffe.isFragment(r) ? n = n.concat(e(r.props.children)) : n.push(r)) 32275 }), 32276 _x = n, 32277 pj = t, 32278 n 32279}; 32280function di(e, t) { 32281 var n = [] 32282 , r = []; 32283 return Array.isArray(t) ? r = t.map(function(i) { 32284 return yo(i) 32285 }) : r = [yo(t)], 32286 ST(e).forEach(function(i) { 32287 var o = Lr(i, "type.displayName") || Lr(i, "type.name"); 32288 r.indexOf(o) !== -1 && n.push(i) 32289 }), 32290 n 32291} 32292function sr(e, t) { 32293 var n = di(e, t); 32294 return n && n[0] 32295} 32296var mj = function(t) { 32297 if (!t || !t.props) 32298 return !1; 32299 var n = t.props 32300 , r = n.width 32301 , i = n.height; 32302 return !(!le(r) || r <= 0 || !le(i) || i <= 0) 32303} 32304 , Efe = ["a", "altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColormatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-url", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "lineGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "script", "set", "stop", "style", "svg", "switch", "symbol", "text", "textPath", "title", "tref", "tspan", "use", "view", "vkern"] 32305 , jfe = function(t) { 32306 return t && t.type && Vh(t.type) && Efe.indexOf(t.type) >= 0 32307} 32308 , Nfe = function(t, n, r, i) { 32309 var o, a = (o = Px == null ? void 0 : Px[i]) !== null && o !== void 0 ? o : []; 32310 return !qe(t) && (i && a.includes(n) || _fe.includes(n)) || r && wT.includes(n) 32311} 32312 , Je = function(t, n, r) { 32313 if (!t || typeof t == "function" || typeof t == "boolean") 32314 return null; 32315 var i = t; 32316 if (b.isValidElement(t) && (i = t.props), 32317 !fu(i)) 32318 return null; 32319 var o = {}; 32320 return Object.keys(i).forEach(function(a) { 32321 var s; 32322 Nfe((s = i) === null || s === void 0 ? void 0 : s[a], a, n, r) && (o[a] = i[a]) 32323 }), 32324 o 32325} 32326 , a1 = function e(t, n) { 32327 if (t === n) 32328 return !0; 32329 var r = b.Children.count(t); 32330 if (r !== b.Children.count(n)) 32331 return !1; 32332 if (r === 0) 32333 return !0; 32334 if (r === 1) 32335 return gj(Array.isArray(t) ? t[0] : t, Array.isArray(n) ? n[0] : n); 32336 for (var i = 0; i < r; i++) { 32337 var o = t[i] 32338 , a = n[i]; 32339 if (Array.isArray(o) || Array.isArray(a)) { 32340 if (!e(o, a)) 32341 return !1 32342 } else if (!gj(o, a)) 32343 return !1 32344 } 32345 return !0 32346} 32347 , gj = function(t, n) { 32348 if (et(t) && et(n)) 32349 return !0; 32350 if (!et(t) && !et(n)) { 32351 var r = t.props || {} 32352 , i = r.children 32353 , o = fj(r, Cfe) 32354 , a = n.props || {} 32355 , s = a.children 32356 , l = fj(a, Ofe); 32357 return i && s ? Ql(o, l) && a1(i, s) : !i && !s ? Ql(o, l) : !1 32358 } 32359 return !1 32360} 32361 , yj = function(t, n) { 32362 var r = [] 32363 , i = {}; 32364 return ST(t).forEach(function(o, a) { 32365 if (jfe(o)) 32366 r.push(o); 32367 else if (o) { 32368 var s = yo(o.type) 32369 , l = n[s] || {} 32370 , c = l.handler 32371 , u = l.once; 32372 if (c && (!u || !i[s])) { 32373 var d = c(o, s, a); 32374 r.push(d), 32375 i[s] = !0 32376 } 32377 } 32378 }), 32379 r 32380} 32381 , Mfe = function(t) { 32382 var n = t && t.type; 32383 return n && hj[n] ? hj[n] : null 32384} 32385 , kfe = function(t, n) { 32386 return ST(n).indexOf(t) 32387} 32388 , Rfe = ["children", "width", "height", "viewBox", "className", "style", "title", "desc"]; 32389function s1() { 32390 return s1 = Object.assign ? Object.assign.bind() : function(e) { 32391 for (var t = 1; t < arguments.length; t++) { 32392 var n = arguments[t]; 32393 for (var r in n) 32394 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 32395 } 32396 return e 32397 } 32398 , 32399 s1.apply(this, arguments) 32400} 32401function Dfe(e, t) { 32402 if (e == null) 32403 return {}; 32404 var n = Ife(e, t), r, i; 32405 if (Object.getOwnPropertySymbols) { 32406 var o = Object.getOwnPropertySymbols(e); 32407 for (i = 0; i < o.length; i++) 32408 r = o[i], 32409 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 32410 } 32411 return n 32412} 32413function Ife(e, t) { 32414 if (e == null) 32415 return {}; 32416 var n = {}; 32417 for (var r in e) 32418 if (Object.prototype.hasOwnProperty.call(e, r)) { 32419 if (t.indexOf(r) >= 0) 32420 continue; 32421 n[r] = e[r] 32422 } 32423 return n 32424} 32425function l1(e) { 32426 var t = e.children 32427 , n = e.width 32428 , r = e.height 32429 , i = e.viewBox 32430 , o = e.className 32431 , a = e.style 32432 , s = e.title 32433 , l = e.desc 32434 , c = Dfe(e, Rfe) 32435 , u = i || { 32436 width: n, 32437 height: r, 32438 x: 0, 32439 y: 0 32440 } 32441 , d = Ge("recharts-surface", o); 32442 return k.createElement("svg", s1({}, Je(c, !0, "svg"), { 32443 className: d, 32444 width: n, 32445 height: r, 32446 style: a,
32447 viewBox: "".concat(u.x, " ").concat(u.y, " ").concat(u.width, " ").concat(u.height) 32448 }), k.createElement("title", null, s), k.createElement("desc", null, l), t) 32449} 32450var $fe = ["children", "className"]; 32451function c1() { 32452 return c1 = Object.assign ? Object.assign.bind() : function(e) { 32453 for (var t = 1; t < arguments.length; t++) { 32454 var n = arguments[t]; 32455 for (var r in n) 32456 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 32457 } 32458 return e 32459 } 32460 , 32461 c1.apply(this, arguments) 32462} 32463function Lfe(e, t) { 32464 if (e == null) 32465 return {}; 32466 var n = Ffe(e, t), r, i; 32467 if (Object.getOwnPropertySymbols) { 32468 var o = Object.getOwnPropertySymbols(e); 32469 for (i = 0; i < o.length; i++) 32470 r = o[i], 32471 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 32472 } 32473 return n 32474} 32475function Ffe(e, t) { 32476 if (e == null) 32477 return {}; 32478 var n = {}; 32479 for (var r in e) 32480 if (Object.prototype.hasOwnProperty.call(e, r)) { 32481 if (t.indexOf(r) >= 0) 32482 continue; 32483 n[r] = e[r] 32484 } 32485 return n 32486} 32487var ln = k.forwardRef(function(e, t) { 32488 var n = e.children 32489 , r = e.className 32490 , i = Lfe(e, $fe) 32491 , o = Ge("recharts-layer", r); 32492 return k.createElement("g", c1({ 32493 className: o 32494 }, Je(i, !0), { 32495 ref: t 32496 }), n) 32497}) 32498 , Os = function(t, n) { 32499 for (var r = arguments.length, i = new Array(r > 2 ? r - 2 : 0), o = 2; o < r; o++) 32500 i[o - 2] = arguments[o] 32501}; 32502function Bfe(e, t, n) { 32503 var r = -1 32504 , i = e.length; 32505 t < 0 && (t = -t > i ? 0 : i + t), 32506 n = n > i ? i : n, 32507 n < 0 && (n += i), 32508 i = t > n ? 0 : n - t >>> 0, 32509 t >>>= 0; 32510 for (var o = Array(i); ++r < i; ) 32511 o[r] = e[r + t]; 32512 return o 32513} 32514var Vfe = Bfe 32515 , Ufe = Vfe; 32516function zfe(e, t, n) { 32517 var r = e.length; 32518 return n = n === void 0 ? r : n, 32519 !t && n >= r ? e : Ufe(e, t, n) 32520} 32521var Wfe = zfe 32522 , Hfe = "\\ud800-\\udfff" 32523 , qfe = "\\u0300-\\u036f" 32524 , Kfe = "\\ufe20-\\ufe2f" 32525 , Gfe = "\\u20d0-\\u20ff" 32526 , Yfe = qfe + Kfe + Gfe 32527 , Xfe = "\\ufe0e\\ufe0f" 32528 , Qfe = "\\u200d" 32529 , Zfe = RegExp("[" + Qfe + Hfe + Yfe + Xfe + "]"); 32530function Jfe(e) { 32531 return Zfe.test(e) 32532} 32533var k8 = Jfe; 32534function ehe(e) { 32535 return e.split("") 32536} 32537var the = ehe 32538 , R8 = "\\ud800-\\udfff" 32539 , nhe = "\\u0300-\\u036f" 32540 , rhe = "\\ufe20-\\ufe2f" 32541 , ihe = "\\u20d0-\\u20ff" 32542 , ohe = nhe + rhe + ihe 32543 , ahe = "\\ufe0e\\ufe0f" 32544 , she = "[" + R8 + "]" 32545 , u1 = "[" + ohe + "]" 32546 , d1 = "\\ud83c[\\udffb-\\udfff]" 32547 , lhe = "(?:" + u1 + "|" + d1 + ")" 32548 , D8 = "[^" + R8 + "]" 32549 , I8 = "(?:\\ud83c[\\udde6-\\uddff]){2}" 32550 , $8 = "[\\ud800-\\udbff][\\udc00-\\udfff]" 32551 , che = "\\u200d" 32552 , L8 = lhe + "?" 32553 , F8 = "[" + ahe + "]?" 32554 , uhe = "(?:" + che + "(?:" + [D8, I8, $8].join("|") + ")" + F8 + L8 + ")*" 32555 , dhe = F8 + L8 + uhe 32556 , fhe = "(?:" + [D8 + u1 + "?", u1, I8, $8, she].join("|") + ")" 32557 , hhe = RegExp(d1 + "(?=" + d1 + ")|" + fhe + dhe, "g"); 32558function phe(e) { 32559 return e.match(hhe) || [] 32560} 32561var mhe = phe 32562 , ghe = the 32563 , yhe = k8 32564 , vhe = mhe; 32565function xhe(e) { 32566 return yhe(e) ? vhe(e) : ghe(e) 32567} 32568var bhe = xhe 32569 , whe = Wfe 32570 , She = k8 32571 , Phe = bhe 32572 , _he = O8; 32573function The(e) { 32574 return function(t) { 32575 t = _he(t); 32576 var n = She(t) ? Phe(t) : void 0 32577 , r = n ? n[0] : t.charAt(0) 32578 , i = n ? whe(n, 1).join("") : t.slice(1); 32579 return r[e]() + i 32580 } 32581} 32582var Che = The 32583 , Ohe = Che 32584 , Ahe = Ohe("toUpperCase") 32585 , Ehe = Ahe; 32586const Bv = lt(Ehe); 32587function ct(e) { 32588 return function() { 32589 return e 32590 } 32591}
vendor: 7,107 bytes, lines 32592-32837
32592const B8 = Math.cos 32593 , mg = Math.sin 32594 , bi = Math.sqrt 32595 , gg = Math.PI 32596 , Vv = 2 * gg 32597 , f1 = Math.PI 32598 , h1 = 2 * f1 32599 , rs = 1e-6 32600 , jhe = h1 - rs; 32601function V8(e) { 32602 this._ += e[0]; 32603 for (let t = 1, n = e.length; t < n; ++t) 32604 this._ += arguments[t] + e[t] 32605} 32606function Nhe(e) { 32607 let t = Math.floor(e); 32608 if (!(t >= 0)) 32609 throw new Error(`invalid digits: ${e}`); 32610 if (t > 15) 32611 return V8; 32612 const n = 10 ** t; 32613 return function(r) { 32614 this._ += r[0]; 32615 for (let i = 1, o = r.length; i < o; ++i) 32616 this._ += Math.round(arguments[i] * n) / n + r[i] 32617 } 32618} 32619class Mhe { 32620 constructor(t) { 32621 this._x0 = this._y0 = this._x1 = this._y1 = null, 32622 this._ = "", 32623 this._append = t == null ? V8 : Nhe(t) 32624 } 32625 moveTo(t, n) { 32626 this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +n}` 32627 } 32628 closePath() { 32629 this._x1 !== null && (this._x1 = this._x0, 32630 this._y1 = this._y0, 32631 this._append`Z`) 32632 } 32633 lineTo(t, n) { 32634 this._append`L${this._x1 = +t},${this._y1 = +n}` 32635 } 32636 quadraticCurveTo(t, n, r, i) { 32637 this._append`Q${+t},${+n},${this._x1 = +r},${this._y1 = +i}` 32638 } 32639 bezierCurveTo(t, n, r, i, o, a) { 32640 this._append`C${+t},${+n},${+r},${+i},${this._x1 = +o},${this._y1 = +a}` 32641 } 32642 arcTo(t, n, r, i, o) { 32643 if (t = +t, 32644 n = +n, 32645 r = +r, 32646 i = +i, 32647 o = +o, 32648 o < 0) 32649 throw new Error(`negative radius: ${o}`); 32650 let a = this._x1 32651 , s = this._y1 32652 , l = r - t 32653 , c = i - n 32654 , u = a - t 32655 , d = s - n 32656 , f = u * u + d * d; 32657 if (this._x1 === null) 32658 this._append`M${this._x1 = t},${this._y1 = n}`; 32659 else if (f > rs) 32660 if (!(Math.abs(d * l - c * u) > rs) || !o) 32661 this._append`L${this._x1 = t},${this._y1 = n}`; 32662 else { 32663 let p = r - a 32664 , g = i - s 32665 , m = l * l + c * c 32666 , x = p * p + g * g 32667 , v = Math.sqrt(m) 32668 , y = Math.sqrt(f) 32669 , w = o * Math.tan((f1 - Math.acos((m + f - x) / (2 * v * y))) / 2) 32670 , P = w / y 32671 , S = w / v; 32672 Math.abs(P - 1) > rs && this._append`L${t + P * u},${n + P * d}`, 32673 this._append`A${o},${o},0,0,${+(d * p > u * g)},${this._x1 = t + S * l},${this._y1 = n + S * c}` 32674 } 32675 } 32676 arc(t, n, r, i, o, a) { 32677 if (t = +t, 32678 n = +n, 32679 r = +r, 32680 a = !!a, 32681 r < 0) 32682 throw new Error(`negative radius: ${r}`); 32683 let s = r * Math.cos(i) 32684 , l = r * Math.sin(i) 32685 , c = t + s 32686 , u = n + l 32687 , d = 1 ^ a 32688 , f = a ? i - o : o - i; 32689 this._x1 === null ? this._append`M${c},${u}` : (Math.abs(this._x1 - c) > rs || Math.abs(this._y1 - u) > rs) && this._append`L${c},${u}`, 32690 r && (f < 0 && (f = f % h1 + h1), 32691 f > jhe ? this._append`A${r},${r},0,1,${d},${t - s},${n - l}A${r},${r},0,1,${d},${this._x1 = c},${this._y1 = u}` : f > rs && this._append`A${r},${r},0,${+(f >= f1)},${d},${this._x1 = t + r * Math.cos(o)},${this._y1 = n + r * Math.sin(o)}`) 32692 } 32693 rect(t, n, r, i) { 32694 this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +n}h${r = +r}v${+i}h${-r}Z` 32695 } 32696 toString() { 32697 return this._ 32698 } 32699} 32700function PT(e) { 32701 let t = 3; 32702 return e.digits = function(n) { 32703 if (!arguments.length) 32704 return t; 32705 if (n == null) 32706 t = null; 32707 else { 32708 const r = Math.floor(n); 32709 if (!(r >= 0)) 32710 throw new RangeError(`invalid digits: ${n}`); 32711 t = r 32712 } 32713 return e 32714 } 32715 , 32716 () => new Mhe(t) 32717} 32718function _T(e) { 32719 return typeof e == "object" && "length"in e ? e : Array.from(e) 32720} 32721function U8(e) { 32722 this._context = e 32723} 32724U8.prototype = { 32725 areaStart: function() { 32726 this._line = 0 32727 }, 32728 areaEnd: function() { 32729 this._line = NaN 32730 }, 32731 lineStart: function() { 32732 this._point = 0 32733 }, 32734 lineEnd: function() { 32735 (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), 32736 this._line = 1 - this._line 32737 }, 32738 point: function(e, t) { 32739 switch (e = +e, 32740 t = +t, 32741 this._point) { 32742 case 0: 32743 this._point = 1, 32744 this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t); 32745 break; 32746 case 1: 32747 this._point = 2; 32748 default: 32749 this._context.lineTo(e, t); 32750 break 32751 } 32752 } 32753}; 32754function Uv(e) { 32755 return new U8(e) 32756} 32757function z8(e) { 32758 return e[0] 32759} 32760function W8(e) { 32761 return e[1] 32762} 32763function H8(e, t) { 32764 var n = ct(!0) 32765 , r = null 32766 , i = Uv 32767 , o = null 32768 , a = PT(s); 32769 e = typeof e == "function" ? e : e === void 0 ? z8 : ct(e), 32770 t = typeof t == "function" ? t : t === void 0 ? W8 : ct(t); 32771 function s(l) { 32772 var c, u = (l = _T(l)).length, d, f = !1, p; 32773 for (r == null && (o = i(p = a())), 32774 c = 0; c <= u; ++c) 32775 !(c < u && n(d = l[c], c, l)) === f && ((f = !f) ? o.lineStart() : o.lineEnd()), 32776 f && o.point(+e(d, c, l), +t(d, c, l)); 32777 if (p) 32778 return o = null, 32779 p + "" || null 32780 } 32781 return s.x = function(l) { 32782 return arguments.length ? (e = typeof l == "function" ? l : ct(+l), 32783 s) : e 32784 } 32785 , 32786 s.y = function(l) { 32787 return arguments.length ? (t = typeof l == "function" ? l : ct(+l), 32788 s) : t 32789 } 32790 , 32791 s.defined = function(l) { 32792 return arguments.length ? (n = typeof l == "function" ? l : ct(!!l), 32793 s) : n 32794 } 32795 , 32796 s.curve = function(l) { 32797 return arguments.length ? (i = l, 32798 r != null && (o = i(r)), 32799 s) : i 32800 } 32801 , 32802 s.context = function(l) { 32803 return arguments.length ? (l == null ? r = o = null : o = i(r = l), 32804 s) : r 32805 } 32806 , 32807 s 32808} 32809function Mp(e, t, n) { 32810 var r = null 32811 , i = ct(!0) 32812 , o = null 32813 , a = Uv 32814 , s = null 32815 , l = PT(c); 32816 e = typeof e == "function" ? e : e === void 0 ? z8 : ct(+e), 32817 t = typeof t == "function" ? t : ct(t === void 0 ? 0 : +t), 32818 n = typeof n == "function" ? n : n === void 0 ? W8 : ct(+n); 32819 function c(d) { 32820 var f, p, g, m = (d = _T(d)).length, x, v = !1, y, w = new Array(m), P = new Array(m); 32821 for (o == null && (s = a(y = l())), 32822 f = 0; f <= m; ++f) { 32823 if (!(f < m && i(x = d[f], f, d)) === v) 32824 if (v = !v) 32825 p = f, 32826 s.areaStart(), 32827 s.lineStart(); 32828 else { 32829 for (s.lineEnd(), 32830 s.lineStart(), 32831 g = f - 1; g >= p; --g) 32832 s.point(w[g], P[g]); 32833 s.lineEnd(), 32834 s.areaEnd() 32835 } 32836 v && (w[f] = +e(x, f, d), 32837 P[f] = +t(x, f, d),
32838 s.point(r ? +r(x, f, d) : w[f], n ? +n(x, f, d) : P[f])) 32839 } 32840 if (y) 32841 return s = null, 32842 y + "" || null 32843 } 32844 function u() { 32845 return H8().defined(i).curve(a).context(o) 32846 } 32847 return c.x = function(d) { 32848 return arguments.length ? (e = typeof d == "function" ? d : ct(+d), 32849 r = null, 32850 c) : e 32851 } 32852 , 32853 c.x0 = function(d) { 32854 return arguments.length ? (e = typeof d == "function" ? d : ct(+d), 32855 c) : e 32856 } 32857 , 32858 c.x1 = function(d) { 32859 return arguments.length ? (r = d == null ? null : typeof d == "function" ? d : ct(+d), 32860 c) : r 32861 } 32862 , 32863 c.y = function(d) { 32864 return arguments.length ? (t = typeof d == "function" ? d : ct(+d), 32865 n = null, 32866 c) : t 32867 } 32868 , 32869 c.y0 = function(d) { 32870 return arguments.length ? (t = typeof d == "function" ? d : ct(+d), 32871 c) : t 32872 } 32873 , 32874 c.y1 = function(d) { 32875 return arguments.length ? (n = d == null ? null : typeof d == "function" ? d : ct(+d), 32876 c) : n 32877 } 32878 , 32879 c.lineX0 = c.lineY0 = function() { 32880 return u().x(e).y(t) 32881 } 32882 , 32883 c.lineY1 = function() { 32884 return u().x(e).y(n) 32885 } 32886 , 32887 c.lineX1 = function() { 32888 return u().x(r).y(t) 32889 } 32890 , 32891 c.defined = function(d) { 32892 return arguments.length ? (i = typeof d == "function" ? d : ct(!!d), 32893 c) : i 32894 } 32895 , 32896 c.curve = function(d) { 32897 return arguments.length ? (a = d, 32898 o != null && (s = a(o)), 32899 c) : a 32900 } 32901 , 32902 c.context = function(d) { 32903 return arguments.length ? (d == null ? o = s = null : s = a(o = d), 32904 c) : o 32905 } 32906 , 32907 c 32908} 32909class q8 { 32910 constructor(t, n) { 32911 this._context = t, 32912 this._x = n 32913 } 32914 areaStart() { 32915 this._line = 0 32916 } 32917 areaEnd() { 32918 this._line = NaN 32919 } 32920 lineStart() { 32921 this._point = 0 32922 } 32923 lineEnd() { 32924 (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), 32925 this._line = 1 - this._line 32926 } 32927 point(t, n) { 32928 switch (t = +t, 32929 n = +n, 32930 this._point) { 32931 case 0: 32932 { 32933 this._point = 1, 32934 this._line ? this._context.lineTo(t, n) : this._context.moveTo(t, n); 32935 break 32936 } 32937 case 1: 32938 this._point = 2; 32939 default: 32940 { 32941 this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + t) / 2, this._y0, this._x0, n, t, n) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + n) / 2, t, this._y0, t, n); 32942 break 32943 } 32944 } 32945 this._x0 = t, 32946 this._y0 = n 32947 } 32948} 32949function khe(e) { 32950 return new q8(e,!0) 32951} 32952function Rhe(e) { 32953 return new q8(e,!1) 32954} 32955const TT = { 32956 draw(e, t) { 32957 const n = bi(t / gg); 32958 e.moveTo(n, 0), 32959 e.arc(0, 0, n, 0, Vv) 32960 } 32961} 32962 , Dhe = { 32963 draw(e, t) { 32964 const n = bi(t / 5) / 2; 32965 e.moveTo(-3 * n, -n), 32966 e.lineTo(-n, -n), 32967 e.lineTo(-n, -3 * n), 32968 e.lineTo(n, -3 * n), 32969 e.lineTo(n, -n), 32970 e.lineTo(3 * n, -n), 32971 e.lineTo(3 * n, n), 32972 e.lineTo(n, n), 32973 e.lineTo(n, 3 * n), 32974 e.lineTo(-n, 3 * n), 32975 e.lineTo(-n, n), 32976 e.lineTo(-3 * n, n), 32977 e.closePath() 32978 } 32979} 32980 , K8 = bi(1 / 3) 32981 , Ihe = K8 * 2 32982 , $he = { 32983 draw(e, t) { 32984 const n = bi(t / Ihe) 32985 , r = n * K8; 32986 e.moveTo(0, -n), 32987 e.lineTo(r, 0), 32988 e.lineTo(0, n), 32989 e.lineTo(-r, 0), 32990 e.closePath() 32991 } 32992} 32993 , Lhe = { 32994 draw(e, t) { 32995 const n = bi(t) 32996 , r = -n / 2; 32997 e.rect(r, r, n, n) 32998 } 32999} 33000 , Fhe = .8908130915292852 33001 , G8 = mg(gg / 10) / mg(7 * gg / 10) 33002 , Bhe = mg(Vv / 10) * G8 33003 , Vhe = -B8(Vv / 10) * G8 33004 , Uhe = { 33005 draw(e, t) { 33006 const n = bi(t * Fhe) 33007 , r = Bhe * n 33008 , i = Vhe * n; 33009 e.moveTo(0, -n), 33010 e.lineTo(r, i); 33011 for (let o = 1; o < 5; ++o) { 33012 const a = Vv * o / 5 33013 , s = B8(a) 33014 , l = mg(a); 33015 e.lineTo(l * n, -s * n), 33016 e.lineTo(s * r - l * i, l * r + s * i) 33017 } 33018 e.closePath() 33019 } 33020} 33021 , Tx = bi(3) 33022 , zhe = { 33023 draw(e, t) {
vendor: 14,368 bytes, lines 33024-33579
33024 const n = -bi(t / (Tx * 3)); 33025 e.moveTo(0, n * 2), 33026 e.lineTo(-Tx * n, -n), 33027 e.lineTo(Tx * n, -n), 33028 e.closePath() 33029 } 33030} 33031 , Pr = -.5 33032 , _r = bi(3) / 2 33033 , p1 = 1 / bi(12) 33034 , Whe = (p1 / 2 + 1) * 3 33035 , Hhe = { 33036 draw(e, t) { 33037 const n = bi(t / Whe) 33038 , r = n / 2 33039 , i = n * p1 33040 , o = r 33041 , a = n * p1 + n 33042 , s = -o 33043 , l = a; 33044 e.moveTo(r, i), 33045 e.lineTo(o, a), 33046 e.lineTo(s, l), 33047 e.lineTo(Pr * r - _r * i, _r * r + Pr * i), 33048 e.lineTo(Pr * o - _r * a, _r * o + Pr * a), 33049 e.lineTo(Pr * s - _r * l, _r * s + Pr * l), 33050 e.lineTo(Pr * r + _r * i, Pr * i - _r * r), 33051 e.lineTo(Pr * o + _r * a, Pr * a - _r * o), 33052 e.lineTo(Pr * s + _r * l, Pr * l - _r * s), 33053 e.closePath() 33054 } 33055}; 33056function qhe(e, t) { 33057 let n = null 33058 , r = PT(i); 33059 e = typeof e == "function" ? e : ct(e || TT), 33060 t = typeof t == "function" ? t : ct(t === void 0 ? 64 : +t); 33061 function i() { 33062 let o; 33063 if (n || (n = o = r()), 33064 e.apply(this, arguments).draw(n, +t.apply(this, arguments)), 33065 o) 33066 return n = null, 33067 o + "" || null 33068 } 33069 return i.type = function(o) { 33070 return arguments.length ? (e = typeof o == "function" ? o : ct(o), 33071 i) : e 33072 } 33073 , 33074 i.size = function(o) { 33075 return arguments.length ? (t = typeof o == "function" ? o : ct(+o), 33076 i) : t 33077 } 33078 , 33079 i.context = function(o) { 33080 return arguments.length ? (n = o ?? null, 33081 i) : n 33082 } 33083 , 33084 i 33085} 33086function yg() {} 33087function vg(e, t, n) { 33088 e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6) 33089} 33090function Y8(e) { 33091 this._context = e 33092} 33093Y8.prototype = { 33094 areaStart: function() { 33095 this._line = 0 33096 }, 33097 areaEnd: function() { 33098 this._line = NaN 33099 }, 33100 lineStart: function() { 33101 this._x0 = this._x1 = this._y0 = this._y1 = NaN, 33102 this._point = 0 33103 }, 33104 lineEnd: function() { 33105 switch (this._point) { 33106 case 3: 33107 vg(this, this._x1, this._y1); 33108 case 2: 33109 this._context.lineTo(this._x1, this._y1); 33110 break 33111 } 33112 (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), 33113 this._line = 1 - this._line 33114 }, 33115 point: function(e, t) { 33116 switch (e = +e, 33117 t = +t, 33118 this._point) { 33119 case 0: 33120 this._point = 1, 33121 this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t); 33122 break; 33123 case 1: 33124 this._point = 2; 33125 break; 33126 case 2: 33127 this._point = 3, 33128 this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); 33129 default: 33130 vg(this, e, t); 33131 break 33132 } 33133 this._x0 = this._x1, 33134 this._x1 = e, 33135 this._y0 = this._y1, 33136 this._y1 = t 33137 } 33138}; 33139function Khe(e) { 33140 return new Y8(e) 33141} 33142function X8(e) { 33143 this._context = e 33144} 33145X8.prototype = { 33146 areaStart: yg, 33147 areaEnd: yg, 33148 lineStart: function() { 33149 this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, 33150 this._point = 0 33151 }, 33152 lineEnd: function() { 33153 switch (this._point) { 33154 case 1: 33155 { 33156 this._context.moveTo(this._x2, this._y2), 33157 this._context.closePath(); 33158 break 33159 } 33160 case 2: 33161 { 33162 this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), 33163 this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), 33164 this._context.closePath(); 33165 break 33166 } 33167 case 3: 33168 { 33169 this.point(this._x2, this._y2), 33170 this.point(this._x3, this._y3), 33171 this.point(this._x4, this._y4); 33172 break 33173 } 33174 } 33175 }, 33176 point: function(e, t) { 33177 switch (e = +e, 33178 t = +t, 33179 this._point) { 33180 case 0: 33181 this._point = 1, 33182 this._x2 = e, 33183 this._y2 = t; 33184 break; 33185 case 1: 33186 this._point = 2, 33187 this._x3 = e, 33188 this._y3 = t; 33189 break; 33190 case 2: 33191 this._point = 3, 33192 this._x4 = e, 33193 this._y4 = t, 33194 this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6); 33195 break; 33196 default: 33197 vg(this, e, t); 33198 break 33199 } 33200 this._x0 = this._x1, 33201 this._x1 = e, 33202 this._y0 = this._y1, 33203 this._y1 = t 33204 } 33205}; 33206function Ghe(e) { 33207 return new X8(e) 33208} 33209function Q8(e) { 33210 this._context = e 33211} 33212Q8.prototype = { 33213 areaStart: function() { 33214 this._line = 0 33215 }, 33216 areaEnd: function() { 33217 this._line = NaN 33218 }, 33219 lineStart: function() { 33220 this._x0 = this._x1 = this._y0 = this._y1 = NaN, 33221 this._point = 0 33222 }, 33223 lineEnd: function() { 33224 (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), 33225 this._line = 1 - this._line 33226 }, 33227 point: function(e, t) { 33228 switch (e = +e, 33229 t = +t, 33230 this._point) { 33231 case 0: 33232 this._point = 1; 33233 break; 33234 case 1: 33235 this._point = 2; 33236 break; 33237 case 2: 33238 this._point = 3; 33239 var n = (this._x0 + 4 * this._x1 + e) / 6 33240 , r = (this._y0 + 4 * this._y1 + t) / 6; 33241 this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r); 33242 break; 33243 case 3: 33244 this._point = 4; 33245 default: 33246 vg(this, e, t); 33247 break 33248 } 33249 this._x0 = this._x1, 33250 this._x1 = e, 33251 this._y0 = this._y1, 33252 this._y1 = t 33253 } 33254}; 33255function Yhe(e) { 33256 return new Q8(e) 33257} 33258function Z8(e) { 33259 this._context = e 33260} 33261Z8.prototype = { 33262 areaStart: yg, 33263 areaEnd: yg, 33264 lineStart: function() { 33265 this._point = 0 33266 }, 33267 lineEnd: function() { 33268 this._point && this._context.closePath() 33269 }, 33270 point: function(e, t) { 33271 e = +e, 33272 t = +t, 33273 this._point ? this._context.lineTo(e, t) : (this._point = 1, 33274 this._context.moveTo(e, t)) 33275 } 33276}; 33277function Xhe(e) { 33278 return new Z8(e) 33279} 33280function vj(e) { 33281 return e < 0 ? -1 : 1 33282} 33283function xj(e, t, n) { 33284 var r = e._x1 - e._x0 33285 , i = t - e._x1 33286 , o = (e._y1 - e._y0) / (r || i < 0 && -0) 33287 , a = (n - e._y1) / (i || r < 0 && -0) 33288 , s = (o * i + a * r) / (r + i); 33289 return (vj(o) + vj(a)) * Math.min(Math.abs(o), Math.abs(a), .5 * Math.abs(s)) || 0 33290} 33291function bj(e, t) { 33292 var n = e._x1 - e._x0; 33293 return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t 33294} 33295function Cx(e, t, n) { 33296 var r = e._x0 33297 , i = e._y0 33298 , o = e._x1 33299 , a = e._y1 33300 , s = (o - r) / 3; 33301 e._context.bezierCurveTo(r + s, i + s * t, o - s, a - s * n, o, a) 33302} 33303function xg(e) { 33304 this._context = e 33305} 33306xg.prototype = { 33307 areaStart: function() { 33308 this._line = 0 33309 }, 33310 areaEnd: function() { 33311 this._line = NaN 33312 }, 33313 lineStart: function() { 33314 this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, 33315 this._point = 0 33316 }, 33317 lineEnd: function() { 33318 switch (this._point) { 33319 case 2: 33320 this._context.lineTo(this._x1, this._y1); 33321 break; 33322 case 3: 33323 Cx(this, this._t0, bj(this, this._t0)); 33324 break 33325 } 33326 (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), 33327 this._line = 1 - this._line 33328 }, 33329 point: function(e, t) { 33330 var n = NaN; 33331 if (e = +e, 33332 t = +t, 33333 !(e === this._x1 && t === this._y1)) { 33334 switch (this._point) { 33335 case 0: 33336 this._point = 1, 33337 this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t); 33338 break; 33339 case 1: 33340 this._point = 2; 33341 break; 33342 case 2: 33343 this._point = 3, 33344 Cx(this, bj(this, n = xj(this, e, t)), n); 33345 break; 33346 default: 33347 Cx(this, this._t0, n = xj(this, e, t)); 33348 break 33349 } 33350 this._x0 = this._x1, 33351 this._x1 = e, 33352 this._y0 = this._y1, 33353 this._y1 = t, 33354 this._t0 = n 33355 } 33356 } 33357}; 33358function J8(e) { 33359 this._context = new e6(e) 33360} 33361(J8.prototype = Object.create(xg.prototype)).point = function(e, t) { 33362 xg.prototype.point.call(this, t, e) 33363} 33364; 33365function e6(e) { 33366 this._context = e 33367} 33368e6.prototype = { 33369 moveTo: function(e, t) { 33370 this._context.moveTo(t, e) 33371 }, 33372 closePath: function() { 33373 this._context.closePath() 33374 }, 33375 lineTo: function(e, t) { 33376 this._context.lineTo(t, e) 33377 }, 33378 bezierCurveTo: function(e, t, n, r, i, o) { 33379 this._context.bezierCurveTo(t, e, r, n, o, i) 33380 } 33381}; 33382function Qhe(e) { 33383 return new xg(e) 33384} 33385function Zhe(e) { 33386 return new J8(e) 33387} 33388function t6(e) { 33389 this._context = e 33390} 33391t6.prototype = { 33392 areaStart: function() { 33393 this._line = 0 33394 }, 33395 areaEnd: function() { 33396 this._line = NaN 33397 }, 33398 lineStart: function() { 33399 this._x = [], 33400 this._y = [] 33401 }, 33402 lineEnd: function() { 33403 var e = this._x 33404 , t = this._y 33405 , n = e.length; 33406 if (n) 33407 if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), 33408 n === 2) 33409 this._context.lineTo(e[1], t[1]); 33410 else 33411 for (var r = wj(e), i = wj(t), o = 0, a = 1; a < n; ++o, 33412 ++a) 33413 this._context.bezierCurveTo(r[0][o], i[0][o], r[1][o], i[1][o], e[a], t[a]); 33414 (this._line || this._line !== 0 && n === 1) && this._context.closePath(), 33415 this._line = 1 - this._line, 33416 this._x = this._y = null 33417 }, 33418 point: function(e, t) { 33419 this._x.push(+e), 33420 this._y.push(+t) 33421 } 33422}; 33423function wj(e) { 33424 var t, n = e.length - 1, r, i = new Array(n), o = new Array(n), a = new Array(n); 33425 for (i[0] = 0, 33426 o[0] = 2, 33427 a[0] = e[0] + 2 * e[1], 33428 t = 1; t < n - 1; ++t) 33429 i[t] = 1, 33430 o[t] = 4, 33431 a[t] = 4 * e[t] + 2 * e[t + 1]; 33432 for (i[n - 1] = 2, 33433 o[n - 1] = 7, 33434 a[n - 1] = 8 * e[n - 1] + e[n], 33435 t = 1; t < n; ++t) 33436 r = i[t] / o[t - 1], 33437 o[t] -= r, 33438 a[t] -= r * a[t - 1]; 33439 for (i[n - 1] = a[n - 1] / o[n - 1], 33440 t = n - 2; t >= 0; --t) 33441 i[t] = (a[t] - i[t + 1]) / o[t]; 33442 for (o[n - 1] = (e[n] + i[n - 1]) / 2, 33443 t = 0; t < n - 1; ++t) 33444 o[t] = 2 * e[t + 1] - i[t + 1]; 33445 return [i, o] 33446} 33447function Jhe(e) { 33448 return new t6(e) 33449} 33450function zv(e, t) { 33451 this._context = e, 33452 this._t = t 33453} 33454zv.prototype = { 33455 areaStart: function() { 33456 this._line = 0 33457 }, 33458 areaEnd: function() { 33459 this._line = NaN 33460 }, 33461 lineStart: function() { 33462 this._x = this._y = NaN, 33463 this._point = 0 33464 }, 33465 lineEnd: function() { 33466 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), 33467 (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), 33468 this._line >= 0 && (this._t = 1 - this._t, 33469 this._line = 1 - this._line) 33470 }, 33471 point: function(e, t) { 33472 switch (e = +e, 33473 t = +t, 33474 this._point) { 33475 case 0: 33476 this._point = 1, 33477 this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t); 33478 break; 33479 case 1: 33480 this._point = 2; 33481 default: 33482 { 33483 if (this._t <= 0) 33484 this._context.lineTo(this._x, t), 33485 this._context.lineTo(e, t); 33486 else { 33487 var n = this._x * (1 - this._t) + e * this._t; 33488 this._context.lineTo(n, this._y), 33489 this._context.lineTo(n, t) 33490 } 33491 break 33492 } 33493 } 33494 this._x = e, 33495 this._y = t 33496 } 33497}; 33498function epe(e) { 33499 return new zv(e,.5) 33500} 33501function tpe(e) { 33502 return new zv(e,0) 33503} 33504function npe(e) { 33505 return new zv(e,1) 33506} 33507function jc(e, t) { 33508 if ((a = e.length) > 1) 33509 for (var n = 1, r, i, o = e[t[0]], a, s = o.length; n < a; ++n) 33510 for (i = o, 33511 o = e[t[n]], 33512 r = 0; r < s; ++r) 33513 o[r][1] += o[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1] 33514} 33515function m1(e) { 33516 for (var t = e.length, n = new Array(t); --t >= 0; ) 33517 n[t] = t; 33518 return n 33519} 33520function rpe(e, t) { 33521 return e[t] 33522} 33523function ipe(e) { 33524 const t = []; 33525 return t.key = e, 33526 t 33527} 33528function ope() { 33529 var e = ct([]) 33530 , t = m1 33531 , n = jc 33532 , r = rpe; 33533 function i(o) { 33534 var a = Array.from(e.apply(this, arguments), ipe), s, l = a.length, c = -1, u; 33535 for (const d of o) 33536 for (s = 0, 33537 ++c; s < l; ++s) 33538 (a[s][c] = [0, +r(d, a[s].key, c, o)]).data = d; 33539 for (s = 0, 33540 u = _T(t(a)); s < l; ++s) 33541 a[u[s]].index = s; 33542 return n(a, u), 33543 a 33544 } 33545 return i.keys = function(o) { 33546 return arguments.length ? (e = typeof o == "function" ? o : ct(Array.from(o)), 33547 i) : e 33548 } 33549 , 33550 i.value = function(o) { 33551 return arguments.length ? (r = typeof o == "function" ? o : ct(+o), 33552 i) : r 33553 } 33554 , 33555 i.order = function(o) { 33556 return arguments.length ? (t = o == null ? m1 : typeof o == "function" ? o : ct(Array.from(o)), 33557 i) : t 33558 } 33559 , 33560 i.offset = function(o) { 33561 return arguments.length ? (n = o ?? jc, 33562 i) : n 33563 } 33564 , 33565 i 33566} 33567function ape(e, t) { 33568 if ((r = e.length) > 0) { 33569 for (var n, r, i = 0, o = e[0].length, a; i < o; ++i) { 33570 for (a = n = 0; n < r; ++n) 33571 a += e[n][i][1] || 0; 33572 if (a) 33573 for (n = 0; n < r; ++n) 33574 e[n][i][1] /= a 33575 } 33576 jc(e, t) 33577 } 33578} 33579function spe(e, t) {
vendor: 13,265 bytes, lines 33580-34020
33580 if ((i = e.length) > 0) { 33581 for (var n = 0, r = e[t[0]], i, o = r.length; n < o; ++n) { 33582 for (var a = 0, s = 0; a < i; ++a) 33583 s += e[a][n][1] || 0; 33584 r[n][1] += r[n][0] = -s / 2 33585 } 33586 jc(e, t) 33587 } 33588} 33589function lpe(e, t) { 33590 if (!(!((a = e.length) > 0) || !((o = (i = e[t[0]]).length) > 0))) { 33591 for (var n = 0, r = 1, i, o, a; r < o; ++r) { 33592 for (var s = 0, l = 0, c = 0; s < a; ++s) { 33593 for (var u = e[t[s]], d = u[r][1] || 0, f = u[r - 1][1] || 0, p = (d - f) / 2, g = 0; g < s; ++g) { 33594 var m = e[t[g]] 33595 , x = m[r][1] || 0 33596 , v = m[r - 1][1] || 0; 33597 p += x - v 33598 } 33599 l += d, 33600 c += p * d 33601 } 33602 i[r - 1][1] += i[r - 1][0] = n, 33603 l && (n -= c / l) 33604 } 33605 i[r - 1][1] += i[r - 1][0] = n, 33606 jc(e, t) 33607 } 33608} 33609function vf(e) { 33610 "@babel/helpers - typeof"; 33611 return vf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 33612 return typeof t 33613 } 33614 : function(t) { 33615 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 33616 } 33617 , 33618 vf(e) 33619} 33620var cpe = ["type", "size", "sizeType"]; 33621function g1() { 33622 return g1 = Object.assign ? Object.assign.bind() : function(e) { 33623 for (var t = 1; t < arguments.length; t++) { 33624 var n = arguments[t]; 33625 for (var r in n) 33626 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 33627 } 33628 return e 33629 } 33630 , 33631 g1.apply(this, arguments) 33632} 33633function Sj(e, t) { 33634 var n = Object.keys(e); 33635 if (Object.getOwnPropertySymbols) { 33636 var r = Object.getOwnPropertySymbols(e); 33637 t && (r = r.filter(function(i) { 33638 return Object.getOwnPropertyDescriptor(e, i).enumerable 33639 })), 33640 n.push.apply(n, r) 33641 } 33642 return n 33643} 33644function Pj(e) { 33645 for (var t = 1; t < arguments.length; t++) { 33646 var n = arguments[t] != null ? arguments[t] : {}; 33647 t % 2 ? Sj(Object(n), !0).forEach(function(r) { 33648 upe(e, r, n[r]) 33649 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sj(Object(n)).forEach(function(r) { 33650 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 33651 }) 33652 } 33653 return e 33654} 33655function upe(e, t, n) { 33656 return t = dpe(t), 33657 t in e ? Object.defineProperty(e, t, { 33658 value: n, 33659 enumerable: !0, 33660 configurable: !0, 33661 writable: !0 33662 }) : e[t] = n, 33663 e 33664} 33665function dpe(e) { 33666 var t = fpe(e, "string"); 33667 return vf(t) == "symbol" ? t : t + "" 33668} 33669function fpe(e, t) { 33670 if (vf(e) != "object" || !e) 33671 return e; 33672 var n = e[Symbol.toPrimitive]; 33673 if (n !== void 0) { 33674 var r = n.call(e, t || "default"); 33675 if (vf(r) != "object") 33676 return r; 33677 throw new TypeError("@@toPrimitive must return a primitive value.") 33678 } 33679 return (t === "string" ? String : Number)(e) 33680} 33681function hpe(e, t) { 33682 if (e == null) 33683 return {}; 33684 var n = ppe(e, t), r, i; 33685 if (Object.getOwnPropertySymbols) { 33686 var o = Object.getOwnPropertySymbols(e); 33687 for (i = 0; i < o.length; i++) 33688 r = o[i], 33689 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 33690 } 33691 return n 33692} 33693function ppe(e, t) { 33694 if (e == null) 33695 return {}; 33696 var n = {}; 33697 for (var r in e) 33698 if (Object.prototype.hasOwnProperty.call(e, r)) { 33699 if (t.indexOf(r) >= 0) 33700 continue; 33701 n[r] = e[r] 33702 } 33703 return n 33704} 33705var n6 = { 33706 symbolCircle: TT, 33707 symbolCross: Dhe, 33708 symbolDiamond: $he, 33709 symbolSquare: Lhe, 33710 symbolStar: Uhe, 33711 symbolTriangle: zhe, 33712 symbolWye: Hhe 33713} 33714 , mpe = Math.PI / 180 33715 , gpe = function(t) { 33716 var n = "symbol".concat(Bv(t)); 33717 return n6[n] || TT 33718} 33719 , ype = function(t, n, r) { 33720 if (n === "area") 33721 return t; 33722 switch (r) { 33723 case "cross": 33724 return 5 * t * t / 9; 33725 case "diamond": 33726 return .5 * t * t / Math.sqrt(3); 33727 case "square": 33728 return t * t; 33729 case "star": 33730 { 33731 var i = 18 * mpe; 33732 return 1.25 * t * t * (Math.tan(i) - Math.tan(i * 2) * Math.pow(Math.tan(i), 2)) 33733 } 33734 case "triangle": 33735 return Math.sqrt(3) * t * t / 4; 33736 case "wye": 33737 return (21 - 10 * Math.sqrt(3)) * t * t / 8; 33738 default: 33739 return Math.PI * t * t / 4 33740 } 33741} 33742 , vpe = function(t, n) { 33743 n6["symbol".concat(Bv(t))] = n 33744} 33745 , CT = function(t) { 33746 var n = t.type 33747 , r = n === void 0 ? "circle" : n 33748 , i = t.size 33749 , o = i === void 0 ? 64 : i 33750 , a = t.sizeType 33751 , s = a === void 0 ? "area" : a 33752 , l = hpe(t, cpe) 33753 , c = Pj(Pj({}, l), {}, { 33754 type: r, 33755 size: o, 33756 sizeType: s 33757 }) 33758 , u = function() { 33759 var x = gpe(r) 33760 , v = qhe().type(x).size(ype(o, s, r)); 33761 return v() 33762 } 33763 , d = c.className 33764 , f = c.cx 33765 , p = c.cy 33766 , g = Je(c, !0); 33767 return f === +f && p === +p && o === +o ? k.createElement("path", g1({}, g, { 33768 className: Ge("recharts-symbols", d), 33769 transform: "translate(".concat(f, ", ").concat(p, ")"), 33770 d: u() 33771 })) : null 33772}; 33773CT.registerSymbol = vpe; 33774function Nc(e) { 33775 "@babel/helpers - typeof"; 33776 return Nc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 33777 return typeof t 33778 } 33779 : function(t) { 33780 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 33781 } 33782 , 33783 Nc(e) 33784} 33785function y1() { 33786 return y1 = Object.assign ? Object.assign.bind() : function(e) { 33787 for (var t = 1; t < arguments.length; t++) { 33788 var n = arguments[t]; 33789 for (var r in n) 33790 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 33791 } 33792 return e 33793 } 33794 , 33795 y1.apply(this, arguments) 33796} 33797function _j(e, t) { 33798 var n = Object.keys(e); 33799 if (Object.getOwnPropertySymbols) { 33800 var r = Object.getOwnPropertySymbols(e); 33801 t && (r = r.filter(function(i) { 33802 return Object.getOwnPropertyDescriptor(e, i).enumerable 33803 })), 33804 n.push.apply(n, r) 33805 } 33806 return n 33807} 33808function xpe(e) { 33809 for (var t = 1; t < arguments.length; t++) { 33810 var n = arguments[t] != null ? arguments[t] : {}; 33811 t % 2 ? _j(Object(n), !0).forEach(function(r) { 33812 xf(e, r, n[r]) 33813 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _j(Object(n)).forEach(function(r) { 33814 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 33815 }) 33816 } 33817 return e 33818} 33819function bpe(e, t) { 33820 if (!(e instanceof t)) 33821 throw new TypeError("Cannot call a class as a function") 33822} 33823function wpe(e, t) { 33824 for (var n = 0; n < t.length; n++) { 33825 var r = t[n]; 33826 r.enumerable = r.enumerable || !1, 33827 r.configurable = !0, 33828 "value"in r && (r.writable = !0), 33829 Object.defineProperty(e, i6(r.key), r) 33830 } 33831} 33832function Spe(e, t, n) { 33833 return t && wpe(e.prototype, t), 33834 Object.defineProperty(e, "prototype", { 33835 writable: !1 33836 }), 33837 e 33838} 33839function Ppe(e, t, n) { 33840 return t = bg(t), 33841 _pe(e, r6() ? Reflect.construct(t, n || [], bg(e).constructor) : t.apply(e, n)) 33842} 33843function _pe(e, t) { 33844 if (t && (Nc(t) === "object" || typeof t == "function")) 33845 return t; 33846 if (t !== void 0) 33847 throw new TypeError("Derived constructors may only return object or undefined"); 33848 return Tpe(e) 33849} 33850function Tpe(e) { 33851 if (e === void 0) 33852 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 33853 return e 33854} 33855function r6() { 33856 try { 33857 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 33858 } catch {} 33859 return (r6 = function() { 33860 return !!e 33861 } 33862 )() 33863} 33864function bg(e) { 33865 return bg = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 33866 return n.__proto__ || Object.getPrototypeOf(n) 33867 } 33868 , 33869 bg(e) 33870} 33871function Cpe(e, t) { 33872 if (typeof t != "function" && t !== null) 33873 throw new TypeError("Super expression must either be null or a function"); 33874 e.prototype = Object.create(t && t.prototype, { 33875 constructor: { 33876 value: e, 33877 writable: !0, 33878 configurable: !0 33879 } 33880 }), 33881 Object.defineProperty(e, "prototype", { 33882 writable: !1 33883 }), 33884 t && v1(e, t) 33885} 33886function v1(e, t) { 33887 return v1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 33888 return r.__proto__ = i, 33889 r 33890 } 33891 , 33892 v1(e, t) 33893} 33894function xf(e, t, n) { 33895 return t = i6(t), 33896 t in e ? Object.defineProperty(e, t, { 33897 value: n, 33898 enumerable: !0, 33899 configurable: !0, 33900 writable: !0 33901 }) : e[t] = n, 33902 e 33903} 33904function i6(e) { 33905 var t = Ope(e, "string"); 33906 return Nc(t) == "symbol" ? t : t + "" 33907} 33908function Ope(e, t) { 33909 if (Nc(e) != "object" || !e) 33910 return e; 33911 var n = e[Symbol.toPrimitive]; 33912 if (n !== void 0) { 33913 var r = n.call(e, t || "default"); 33914 if (Nc(r) != "object") 33915 return r; 33916 throw new TypeError("@@toPrimitive must return a primitive value.") 33917 } 33918 return (t === "string" ? String : Number)(e) 33919} 33920var Tr = 32 33921 , OT = function(e) { 33922 function t() { 33923 return bpe(this, t), 33924 Ppe(this, t, arguments) 33925 } 33926 return Cpe(t, e), 33927 Spe(t, [{ 33928 key: "renderIcon", 33929 value: function(r) { 33930 var i = this.props.inactiveColor 33931 , o = Tr / 2 33932 , a = Tr / 6 33933 , s = Tr / 3 33934 , l = r.inactive ? i : r.color; 33935 if (r.type === "plainline") 33936 return k.createElement("line", { 33937 strokeWidth: 4, 33938 fill: "none", 33939 stroke: l, 33940 strokeDasharray: r.payload.strokeDasharray, 33941 x1: 0, 33942 y1: o, 33943 x2: Tr, 33944 y2: o, 33945 className: "recharts-legend-icon" 33946 }); 33947 if (r.type === "line") 33948 return k.createElement("path", { 33949 strokeWidth: 4, 33950 fill: "none", 33951 stroke: l, 33952 d: "M0,".concat(o, "h").concat(s, ` 33953 A`).concat(a, ",").concat(a, ",0,1,1,").concat(2 * s, ",").concat(o, ` 33954 H`).concat(Tr, "M").concat(2 * s, ",").concat(o, ` 33955 A`).concat(a, ",").concat(a, ",0,1,1,").concat(s, ",").concat(o), 33956 className: "recharts-legend-icon" 33957 }); 33958 if (r.type === "rect") 33959 return k.createElement("path", { 33960 stroke: "none", 33961 fill: l, 33962 d: "M0,".concat(Tr / 8, "h").concat(Tr, "v").concat(Tr * 3 / 4, "h").concat(-Tr, "z"), 33963 className: "recharts-legend-icon" 33964 }); 33965 if (k.isValidElement(r.legendIcon)) { 33966 var c = xpe({}, r); 33967 return delete c.legendIcon, 33968 k.cloneElement(r.legendIcon, c) 33969 } 33970 return k.createElement(CT, { 33971 fill: l, 33972 cx: o, 33973 cy: o, 33974 size: Tr, 33975 sizeType: "diameter", 33976 type: r.type 33977 }) 33978 } 33979 }, { 33980 key: "renderItems", 33981 value: function() { 33982 var r = this 33983 , i = this.props 33984 , o = i.payload 33985 , a = i.iconSize 33986 , s = i.layout 33987 , l = i.formatter 33988 , c = i.inactiveColor 33989 , u = { 33990 x: 0, 33991 y: 0, 33992 width: Tr, 33993 height: Tr 33994 } 33995 , d = { 33996 display: s === "horizontal" ? "inline-block" : "block", 33997 marginRight: 10 33998 } 33999 , f = { 34000 display: "inline-block", 34001 verticalAlign: "middle", 34002 marginRight: 4 34003 }; 34004 return o.map(function(p, g) { 34005 var m = p.formatter || l 34006 , x = Ge(xf(xf({ 34007 "recharts-legend-item": !0 34008 }, "legend-item-".concat(g), !0), "inactive", p.inactive)); 34009 if (p.type === "none") 34010 return null; 34011 var v = qe(p.value) ? null : p.value; 34012 Os(!qe(p.value), `The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`); 34013 var y = p.inactive ? c : p.color; 34014 return k.createElement("li", y1({ 34015 className: x, 34016 style: d, 34017 key: "legend-item-".concat(g) 34018 }, pg(r.props, p, g)), k.createElement(l1, { 34019 width: a, 34020 height: a,
vendor: 13,994 bytes, lines 34021-34643
34021 viewBox: u, 34022 style: f 34023 }, r.renderIcon(p)), k.createElement("span", { 34024 className: "recharts-legend-item-text", 34025 style: { 34026 color: y 34027 } 34028 }, m ? m(v, p, g) : v)) 34029 }) 34030 } 34031 }, { 34032 key: "render", 34033 value: function() { 34034 var r = this.props 34035 , i = r.payload 34036 , o = r.layout 34037 , a = r.align; 34038 if (!i || !i.length) 34039 return null; 34040 var s = { 34041 padding: 0, 34042 margin: 0, 34043 textAlign: o === "horizontal" ? a : "left" 34044 }; 34045 return k.createElement("ul", { 34046 className: "recharts-default-legend", 34047 style: s 34048 }, this.renderItems()) 34049 } 34050 }]) 34051}(b.PureComponent); 34052xf(OT, "displayName", "Legend"); 34053xf(OT, "defaultProps", { 34054 iconSize: 14, 34055 layout: "horizontal", 34056 align: "center", 34057 verticalAlign: "middle", 34058 inactiveColor: "#ccc" 34059}); 34060var Ape = Cv; 34061function Epe() { 34062 this.__data__ = new Ape, 34063 this.size = 0 34064} 34065var jpe = Epe; 34066function Npe(e) { 34067 var t = this.__data__ 34068 , n = t.delete(e); 34069 return this.size = t.size, 34070 n 34071} 34072var Mpe = Npe; 34073function kpe(e) { 34074 return this.__data__.get(e) 34075} 34076var Rpe = kpe; 34077function Dpe(e) { 34078 return this.__data__.has(e) 34079} 34080var Ipe = Dpe 34081 , $pe = Cv 34082 , Lpe = pT 34083 , Fpe = mT 34084 , Bpe = 200; 34085function Vpe(e, t) { 34086 var n = this.__data__; 34087 if (n instanceof $pe) { 34088 var r = n.__data__; 34089 if (!Lpe || r.length < Bpe - 1) 34090 return r.push([e, t]), 34091 this.size = ++n.size, 34092 this; 34093 n = this.__data__ = new Fpe(r) 34094 } 34095 return n.set(e, t), 34096 this.size = n.size, 34097 this 34098} 34099var Upe = Vpe 34100 , zpe = Cv 34101 , Wpe = jpe 34102 , Hpe = Mpe 34103 , qpe = Rpe 34104 , Kpe = Ipe 34105 , Gpe = Upe; 34106function gu(e) { 34107 var t = this.__data__ = new zpe(e); 34108 this.size = t.size 34109} 34110gu.prototype.clear = Wpe; 34111gu.prototype.delete = Hpe; 34112gu.prototype.get = qpe; 34113gu.prototype.has = Kpe; 34114gu.prototype.set = Gpe; 34115var o6 = gu 34116 , Ype = "__lodash_hash_undefined__"; 34117function Xpe(e) { 34118 return this.__data__.set(e, Ype), 34119 this 34120} 34121var Qpe = Xpe; 34122function Zpe(e) { 34123 return this.__data__.has(e) 34124} 34125var Jpe = Zpe 34126 , eme = mT 34127 , tme = Qpe 34128 , nme = Jpe; 34129function wg(e) { 34130 var t = -1 34131 , n = e == null ? 0 : e.length; 34132 for (this.__data__ = new eme; ++t < n; ) 34133 this.add(e[t]) 34134} 34135wg.prototype.add = wg.prototype.push = tme; 34136wg.prototype.has = nme; 34137var a6 = wg; 34138function rme(e, t) { 34139 for (var n = -1, r = e == null ? 0 : e.length; ++n < r; ) 34140 if (t(e[n], n, e)) 34141 return !0; 34142 return !1 34143} 34144var s6 = rme; 34145function ime(e, t) { 34146 return e.has(t) 34147} 34148var l6 = ime 34149 , ome = a6 34150 , ame = s6 34151 , sme = l6 34152 , lme = 1 34153 , cme = 2; 34154function ume(e, t, n, r, i, o) { 34155 var a = n & lme 34156 , s = e.length 34157 , l = t.length; 34158 if (s != l && !(a && l > s)) 34159 return !1; 34160 var c = o.get(e) 34161 , u = o.get(t); 34162 if (c && u) 34163 return c == t && u == e; 34164 var d = -1 34165 , f = !0 34166 , p = n & cme ? new ome : void 0; 34167 for (o.set(e, t), 34168 o.set(t, e); ++d < s; ) { 34169 var g = e[d] 34170 , m = t[d]; 34171 if (r) 34172 var x = a ? r(m, g, d, t, e, o) : r(g, m, d, e, t, o); 34173 if (x !== void 0) { 34174 if (x) 34175 continue; 34176 f = !1; 34177 break 34178 } 34179 if (p) { 34180 if (!ame(t, function(v, y) { 34181 if (!sme(p, y) && (g === v || i(g, v, n, r, o))) 34182 return p.push(y) 34183 })) { 34184 f = !1; 34185 break 34186 } 34187 } else if (!(g === m || i(g, m, n, r, o))) { 34188 f = !1; 34189 break 34190 } 34191 } 34192 return o.delete(e), 34193 o.delete(t), 34194 f 34195} 34196var c6 = ume 34197 , dme = Qi 34198 , fme = dme.Uint8Array 34199 , hme = fme; 34200function pme(e) { 34201 var t = -1 34202 , n = Array(e.size); 34203 return e.forEach(function(r, i) { 34204 n[++t] = [i, r] 34205 }), 34206 n 34207} 34208var mme = pme; 34209function gme(e) { 34210 var t = -1 34211 , n = Array(e.size); 34212 return e.forEach(function(r) { 34213 n[++t] = r 34214 }), 34215 n 34216} 34217var AT = gme 34218 , Tj = Bh 34219 , Cj = hme 34220 , yme = hT 34221 , vme = c6 34222 , xme = mme 34223 , bme = AT 34224 , wme = 1 34225 , Sme = 2 34226 , Pme = "[object Boolean]" 34227 , _me = "[object Date]" 34228 , Tme = "[object Error]" 34229 , Cme = "[object Map]" 34230 , Ome = "[object Number]" 34231 , Ame = "[object RegExp]" 34232 , Eme = "[object Set]" 34233 , jme = "[object String]" 34234 , Nme = "[object Symbol]" 34235 , Mme = "[object ArrayBuffer]" 34236 , kme = "[object DataView]" 34237 , Oj = Tj ? Tj.prototype : void 0 34238 , Ox = Oj ? Oj.valueOf : void 0; 34239function Rme(e, t, n, r, i, o, a) { 34240 switch (n) { 34241 case kme: 34242 if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) 34243 return !1; 34244 e = e.buffer, 34245 t = t.buffer; 34246 case Mme: 34247 return !(e.byteLength != t.byteLength || !o(new Cj(e), new Cj(t))); 34248 case Pme: 34249 case _me: 34250 case Ome: 34251 return yme(+e, +t); 34252 case Tme: 34253 return e.name == t.name && e.message == t.message; 34254 case Ame: 34255 case jme: 34256 return e == t + ""; 34257 case Cme: 34258 var s = xme; 34259 case Eme: 34260 var l = r & wme; 34261 if (s || (s = bme), 34262 e.size != t.size && !l) 34263 return !1; 34264 var c = a.get(e); 34265 if (c) 34266 return c == t; 34267 r |= Sme, 34268 a.set(e, t); 34269 var u = vme(s(e), s(t), r, i, o, a); 34270 return a.delete(e), 34271 u; 34272 case Nme: 34273 if (Ox) 34274 return Ox.call(e) == Ox.call(t) 34275 } 34276 return !1 34277} 34278var Dme = Rme; 34279function Ime(e, t) { 34280 for (var n = -1, r = t.length, i = e.length; ++n < r; ) 34281 e[i + n] = t[n]; 34282 return e 34283} 34284var u6 = Ime 34285 , $me = u6 34286 , Lme = nr; 34287function Fme(e, t, n) { 34288 var r = t(e); 34289 return Lme(e) ? r : $me(r, n(e)) 34290} 34291var Bme = Fme; 34292function Vme(e, t) { 34293 for (var n = -1, r = e == null ? 0 : e.length, i = 0, o = []; ++n < r; ) { 34294 var a = e[n]; 34295 t(a, n, e) && (o[i++] = a) 34296 } 34297 return o 34298} 34299var Ume = Vme; 34300function zme() { 34301 return [] 34302} 34303var Wme = zme 34304 , Hme = Ume 34305 , qme = Wme 34306 , Kme = Object.prototype 34307 , Gme = Kme.propertyIsEnumerable 34308 , Aj = Object.getOwnPropertySymbols 34309 , Yme = Aj ? function(e) { 34310 return e == null ? [] : (e = Object(e), 34311 Hme(Aj(e), function(t) { 34312 return Gme.call(e, t) 34313 })) 34314} 34315: qme 34316 , Xme = Yme; 34317function Qme(e, t) { 34318 for (var n = -1, r = Array(e); ++n < e; ) 34319 r[n] = t(n); 34320 return r 34321} 34322var Zme = Qme 34323 , Jme = Do 34324 , ege = Io 34325 , tge = "[object Arguments]"; 34326function nge(e) { 34327 return ege(e) && Jme(e) == tge 34328} 34329var rge = nge 34330 , Ej = rge 34331 , ige = Io 34332 , d6 = Object.prototype 34333 , oge = d6.hasOwnProperty 34334 , age = d6.propertyIsEnumerable 34335 , sge = Ej(function() { 34336 return arguments 34337}()) ? Ej : function(e) { 34338 return ige(e) && oge.call(e, "callee") && !age.call(e, "callee") 34339} 34340 , ET = sge 34341 , Sg = { 34342 exports: {} 34343}; 34344function lge() { 34345 return !1 34346} 34347var cge = lge; 34348Sg.exports; 34349(function(e, t) { 34350 var n = Qi 34351 , r = cge 34352 , i = t && !t.nodeType && t 34353 , o = i && !0 && e && !e.nodeType && e 34354 , a = o && o.exports === i 34355 , s = a ? n.Buffer : void 0 34356 , l = s ? s.isBuffer : void 0 34357 , c = l || r; 34358 e.exports = c 34359} 34360)(Sg, Sg.exports); 34361var f6 = Sg.exports 34362 , uge = 9007199254740991 34363 , dge = /^(?:0|[1-9]\d*)$/; 34364function fge(e, t) { 34365 var n = typeof e; 34366 return t = t ?? uge, 34367 !!t && (n == "number" || n != "symbol" && dge.test(e)) && e > -1 && e % 1 == 0 && e < t 34368} 34369var jT = fge 34370 , hge = 9007199254740991; 34371function pge(e) { 34372 return typeof e == "number" && e > -1 && e % 1 == 0 && e <= hge 34373} 34374var NT = pge 34375 , mge = Do 34376 , gge = NT 34377 , yge = Io 34378 , vge = "[object Arguments]" 34379 , xge = "[object Array]" 34380 , bge = "[object Boolean]" 34381 , wge = "[object Date]" 34382 , Sge = "[object Error]" 34383 , Pge = "[object Function]" 34384 , _ge = "[object Map]" 34385 , Tge = "[object Number]" 34386 , Cge = "[object Object]" 34387 , Oge = "[object RegExp]" 34388 , Age = "[object Set]" 34389 , Ege = "[object String]" 34390 , jge = "[object WeakMap]" 34391 , Nge = "[object ArrayBuffer]" 34392 , Mge = "[object DataView]" 34393 , kge = "[object Float32Array]" 34394 , Rge = "[object Float64Array]" 34395 , Dge = "[object Int8Array]" 34396 , Ige = "[object Int16Array]" 34397 , $ge = "[object Int32Array]" 34398 , Lge = "[object Uint8Array]" 34399 , Fge = "[object Uint8ClampedArray]" 34400 , Bge = "[object Uint16Array]" 34401 , Vge = "[object Uint32Array]" 34402 , pt = {}; 34403pt[kge] = pt[Rge] = pt[Dge] = pt[Ige] = pt[$ge] = pt[Lge] = pt[Fge] = pt[Bge] = pt[Vge] = !0; 34404pt[vge] = pt[xge] = pt[Nge] = pt[bge] = pt[Mge] = pt[wge] = pt[Sge] = pt[Pge] = pt[_ge] = pt[Tge] = pt[Cge] = pt[Oge] = pt[Age] = pt[Ege] = pt[jge] = !1; 34405function Uge(e) { 34406 return yge(e) && gge(e.length) && !!pt[mge(e)] 34407} 34408var zge = Uge; 34409function Wge(e) { 34410 return function(t) { 34411 return e(t) 34412 } 34413} 34414var h6 = Wge 34415 , Pg = { 34416 exports: {} 34417}; 34418Pg.exports; 34419(function(e, t) { 34420 var n = w8 34421 , r = t && !t.nodeType && t 34422 , i = r && !0 && e && !e.nodeType && e 34423 , o = i && i.exports === r 34424 , a = o && n.process 34425 , s = function() { 34426 try { 34427 var l = i && i.require && i.require("util").types; 34428 return l || a && a.binding && a.binding("util") 34429 } catch {} 34430 }(); 34431 e.exports = s 34432} 34433)(Pg, Pg.exports); 34434var Hge = Pg.exports 34435 , qge = zge 34436 , Kge = h6 34437 , jj = Hge 34438 , Nj = jj && jj.isTypedArray 34439 , Gge = Nj ? Kge(Nj) : qge 34440 , p6 = Gge 34441 , Yge = Zme 34442 , Xge = ET 34443 , Qge = nr 34444 , Zge = f6 34445 , Jge = jT 34446 , eye = p6 34447 , tye = Object.prototype 34448 , nye = tye.hasOwnProperty; 34449function rye(e, t) { 34450 var n = Qge(e) 34451 , r = !n && Xge(e) 34452 , i = !n && !r && Zge(e) 34453 , o = !n && !r && !i && eye(e) 34454 , a = n || r || i || o 34455 , s = a ? Yge(e.length, String) : [] 34456 , l = s.length; 34457 for (var c in e) 34458 (t || nye.call(e, c)) && !(a && (c == "length" || i && (c == "offset" || c == "parent") || o && (c == "buffer" || c == "byteLength" || c == "byteOffset") || Jge(c, l))) && s.push(c); 34459 return s 34460} 34461var iye = rye 34462 , oye = Object.prototype; 34463function aye(e) { 34464 var t = e && e.constructor 34465 , n = typeof t == "function" && t.prototype || oye; 34466 return e === n 34467} 34468var sye = aye; 34469function lye(e, t) { 34470 return function(n) { 34471 return e(t(n)) 34472 } 34473} 34474var m6 = lye 34475 , cye = m6 34476 , uye = cye(Object.keys, Object) 34477 , dye = uye 34478 , fye = sye 34479 , hye = dye 34480 , pye = Object.prototype 34481 , mye = pye.hasOwnProperty; 34482function gye(e) { 34483 if (!fye(e)) 34484 return hye(e); 34485 var t = []; 34486 for (var n in Object(e)) 34487 mye.call(e, n) && n != "constructor" && t.push(n); 34488 return t 34489} 34490var yye = gye 34491 , vye = fT 34492 , xye = NT; 34493function bye(e) { 34494 return e != null && xye(e.length) && !vye(e) 34495} 34496var Wv = bye 34497 , wye = iye 34498 , Sye = yye 34499 , Pye = Wv; 34500function _ye(e) { 34501 return Pye(e) ? wye(e) : Sye(e) 34502} 34503var MT = _ye 34504 , Tye = Bme 34505 , Cye = Xme 34506 , Oye = MT; 34507function Aye(e) { 34508 return Tye(e, Oye, Cye) 34509} 34510var Eye = Aye 34511 , Mj = Eye 34512 , jye = 1 34513 , Nye = Object.prototype 34514 , Mye = Nye.hasOwnProperty; 34515function kye(e, t, n, r, i, o) { 34516 var a = n & jye 34517 , s = Mj(e) 34518 , l = s.length 34519 , c = Mj(t) 34520 , u = c.length; 34521 if (l != u && !a) 34522 return !1; 34523 for (var d = l; d--; ) { 34524 var f = s[d]; 34525 if (!(a ? f in t : Mye.call(t, f))) 34526 return !1 34527 } 34528 var p = o.get(e) 34529 , g = o.get(t); 34530 if (p && g) 34531 return p == t && g == e; 34532 var m = !0; 34533 o.set(e, t), 34534 o.set(t, e); 34535 for (var x = a; ++d < l; ) { 34536 f = s[d]; 34537 var v = e[f] 34538 , y = t[f]; 34539 if (r) 34540 var w = a ? r(y, v, f, t, e, o) : r(v, y, f, e, t, o); 34541 if (!(w === void 0 ? v === y || i(v, y, n, r, o) : w)) { 34542 m = !1; 34543 break 34544 } 34545 x || (x = f == "constructor") 34546 } 34547 if (m && !x) { 34548 var P = e.constructor 34549 , S = t.constructor; 34550 P != S && "constructor"in e && "constructor"in t && !(typeof P == "function" && P instanceof P && typeof S == "function" && S instanceof S) && (m = !1) 34551 } 34552 return o.delete(e), 34553 o.delete(t), 34554 m 34555} 34556var Rye = kye 34557 , Dye = tl 34558 , Iye = Qi 34559 , $ye = Dye(Iye, "DataView") 34560 , Lye = $ye 34561 , Fye = tl 34562 , Bye = Qi 34563 , Vye = Fye(Bye, "Promise") 34564 , Uye = Vye 34565 , zye = tl 34566 , Wye = Qi 34567 , Hye = zye(Wye, "Set") 34568 , g6 = Hye 34569 , qye = tl 34570 , Kye = Qi 34571 , Gye = qye(Kye, "WeakMap") 34572 , Yye = Gye 34573 , x1 = Lye 34574 , b1 = pT 34575 , w1 = Uye 34576 , S1 = g6 34577 , P1 = Yye 34578 , y6 = Do 34579 , yu = P8 34580 , kj = "[object Map]" 34581 , Xye = "[object Object]" 34582 , Rj = "[object Promise]" 34583 , Dj = "[object Set]" 34584 , Ij = "[object WeakMap]" 34585 , $j = "[object DataView]" 34586 , Qye = yu(x1) 34587 , Zye = yu(b1) 34588 , Jye = yu(w1) 34589 , eve = yu(S1) 34590 , tve = yu(P1) 34591 , is = y6; 34592(x1 && is(new x1(new ArrayBuffer(1))) != $j || b1 && is(new b1) != kj || w1 && is(w1.resolve()) != Rj || S1 && is(new S1) != Dj || P1 && is(new P1) != Ij) && (is = function(e) { 34593 var t = y6(e) 34594 , n = t == Xye ? e.constructor : void 0 34595 , r = n ? yu(n) : ""; 34596 if (r) 34597 switch (r) { 34598 case Qye: 34599 return $j; 34600 case Zye: 34601 return kj; 34602 case Jye: 34603 return Rj; 34604 case eve: 34605 return Dj; 34606 case tve: 34607 return Ij 34608 } 34609 return t 34610} 34611); 34612var nve = is 34613 , Ax = o6 34614 , rve = c6 34615 , ive = Dme 34616 , ove = Rye 34617 , Lj = nve 34618 , Fj = nr 34619 , Bj = f6 34620 , ave = p6 34621 , sve = 1 34622 , Vj = "[object Arguments]" 34623 , Uj = "[object Array]" 34624 , kp = "[object Object]" 34625 , lve = Object.prototype 34626 , zj = lve.hasOwnProperty; 34627function cve(e, t, n, r, i, o) { 34628 var a = Fj(e) 34629 , s = Fj(t) 34630 , l = a ? Uj : Lj(e) 34631 , c = s ? Uj : Lj(t); 34632 l = l == Vj ? kp : l, 34633 c = c == Vj ? kp : c; 34634 var u = l == kp 34635 , d = c == kp 34636 , f = l == c; 34637 if (f && Bj(e)) { 34638 if (!Bj(t)) 34639 return !1; 34640 a = !0, 34641 u = !1 34642 } 34643 if (f && !u)
vendor: 6,484 bytes, lines 34644-34937
34644 return o || (o = new Ax), 34645 a || ave(e) ? rve(e, t, n, r, i, o) : ive(e, t, l, n, r, i, o); 34646 if (!(n & sve)) { 34647 var p = u && zj.call(e, "__wrapped__") 34648 , g = d && zj.call(t, "__wrapped__"); 34649 if (p || g) { 34650 var m = p ? e.value() : e 34651 , x = g ? t.value() : t; 34652 return o || (o = new Ax), 34653 i(m, x, n, r, o) 34654 } 34655 } 34656 return f ? (o || (o = new Ax), 34657 ove(e, t, n, r, i, o)) : !1 34658} 34659var uve = cve 34660 , dve = uve 34661 , Wj = Io; 34662function v6(e, t, n, r, i) { 34663 return e === t ? !0 : e == null || t == null || !Wj(e) && !Wj(t) ? e !== e && t !== t : dve(e, t, n, r, v6, i) 34664} 34665var kT = v6 34666 , fve = o6 34667 , hve = kT 34668 , pve = 1 34669 , mve = 2; 34670function gve(e, t, n, r) { 34671 var i = n.length 34672 , o = i 34673 , a = !r; 34674 if (e == null) 34675 return !o; 34676 for (e = Object(e); i--; ) { 34677 var s = n[i]; 34678 if (a && s[2] ? s[1] !== e[s[0]] : !(s[0]in e)) 34679 return !1 34680 } 34681 for (; ++i < o; ) { 34682 s = n[i]; 34683 var l = s[0] 34684 , c = e[l] 34685 , u = s[1]; 34686 if (a && s[2]) { 34687 if (c === void 0 && !(l in e)) 34688 return !1 34689 } else { 34690 var d = new fve; 34691 if (r) 34692 var f = r(c, u, l, e, t, d); 34693 if (!(f === void 0 ? hve(u, c, pve | mve, r, d) : f)) 34694 return !1 34695 } 34696 } 34697 return !0 34698} 34699var yve = gve 34700 , vve = Wa; 34701function xve(e) { 34702 return e === e && !vve(e) 34703} 34704var x6 = xve 34705 , bve = x6 34706 , wve = MT; 34707function Sve(e) { 34708 for (var t = wve(e), n = t.length; n--; ) { 34709 var r = t[n] 34710 , i = e[r]; 34711 t[n] = [r, i, bve(i)] 34712 } 34713 return t 34714} 34715var Pve = Sve; 34716function _ve(e, t) { 34717 return function(n) { 34718 return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n)) 34719 } 34720} 34721var b6 = _ve 34722 , Tve = yve 34723 , Cve = Pve 34724 , Ove = b6; 34725function Ave(e) { 34726 var t = Cve(e); 34727 return t.length == 1 && t[0][2] ? Ove(t[0][0], t[0][1]) : function(n) { 34728 return n === e || Tve(n, e, t) 34729 } 34730} 34731var Eve = Ave; 34732function jve(e, t) { 34733 return e != null && t in Object(e) 34734} 34735var Nve = jve 34736 , Mve = A8 34737 , kve = ET 34738 , Rve = nr 34739 , Dve = jT 34740 , Ive = NT 34741 , $ve = Av; 34742function Lve(e, t, n) { 34743 t = Mve(t, e); 34744 for (var r = -1, i = t.length, o = !1; ++r < i; ) { 34745 var a = $ve(t[r]); 34746 if (!(o = e != null && n(e, a))) 34747 break; 34748 e = e[a] 34749 } 34750 return o || ++r != i ? o : (i = e == null ? 0 : e.length, 34751 !!i && Ive(i) && Dve(a, i) && (Rve(e) || kve(e))) 34752} 34753var Fve = Lve 34754 , Bve = Nve 34755 , Vve = Fve; 34756function Uve(e, t) { 34757 return e != null && Vve(e, t, Bve) 34758} 34759var zve = Uve 34760 , Wve = kT 34761 , Hve = E8 34762 , qve = zve 34763 , Kve = dT 34764 , Gve = x6 34765 , Yve = b6 34766 , Xve = Av 34767 , Qve = 1 34768 , Zve = 2; 34769function Jve(e, t) { 34770 return Kve(e) && Gve(t) ? Yve(Xve(e), t) : function(n) { 34771 var r = Hve(n, e); 34772 return r === void 0 && r === t ? qve(n, e) : Wve(t, r, Qve | Zve) 34773 } 34774} 34775var e0e = Jve; 34776function t0e(e) { 34777 return e 34778} 34779var vu = t0e; 34780function n0e(e) { 34781 return function(t) { 34782 return t == null ? void 0 : t[e] 34783 } 34784} 34785var r0e = n0e 34786 , i0e = vT; 34787function o0e(e) { 34788 return function(t) { 34789 return i0e(t, e) 34790 } 34791} 34792var a0e = o0e 34793 , s0e = r0e 34794 , l0e = a0e 34795 , c0e = dT 34796 , u0e = Av; 34797function d0e(e) { 34798 return c0e(e) ? s0e(u0e(e)) : l0e(e) 34799} 34800var f0e = d0e 34801 , h0e = Eve 34802 , p0e = e0e 34803 , m0e = vu 34804 , g0e = nr 34805 , y0e = f0e; 34806function v0e(e) { 34807 return typeof e == "function" ? e : e == null ? m0e : typeof e == "object" ? g0e(e) ? p0e(e[0], e[1]) : h0e(e) : y0e(e) 34808} 34809var xu = v0e; 34810function x0e(e, t, n, r) { 34811 for (var i = e.length, o = n + (r ? 1 : -1); r ? o-- : ++o < i; ) 34812 if (t(e[o], o, e)) 34813 return o; 34814 return -1 34815} 34816var b0e = x0e; 34817function w0e(e) { 34818 return e !== e 34819} 34820var S0e = w0e; 34821function P0e(e, t, n) { 34822 for (var r = n - 1, i = e.length; ++r < i; ) 34823 if (e[r] === t) 34824 return r; 34825 return -1 34826} 34827var _0e = P0e 34828 , T0e = b0e 34829 , C0e = S0e 34830 , O0e = _0e; 34831function A0e(e, t, n) { 34832 return t === t ? O0e(e, t, n) : T0e(e, C0e, n) 34833} 34834var E0e = A0e 34835 , j0e = E0e; 34836function N0e(e, t) { 34837 var n = e == null ? 0 : e.length; 34838 return !!n && j0e(e, t, 0) > -1 34839} 34840var M0e = N0e; 34841function k0e(e, t, n) { 34842 for (var r = -1, i = e == null ? 0 : e.length; ++r < i; ) 34843 if (n(t, e[r])) 34844 return !0; 34845 return !1 34846} 34847var R0e = k0e; 34848function D0e() {} 34849var I0e = D0e 34850 , Ex = g6 34851 , $0e = I0e 34852 , L0e = AT 34853 , F0e = 1 / 0 34854 , B0e = Ex && 1 / L0e(new Ex([, -0]))[1] == F0e ? function(e) { 34855 return new Ex(e) 34856} 34857: $0e 34858 , V0e = B0e 34859 , U0e = a6 34860 , z0e = M0e 34861 , W0e = R0e 34862 , H0e = l6 34863 , q0e = V0e 34864 , K0e = AT 34865 , G0e = 200; 34866function Y0e(e, t, n) { 34867 var r = -1 34868 , i = z0e 34869 , o = e.length 34870 , a = !0 34871 , s = [] 34872 , l = s; 34873 if (n) 34874 a = !1, 34875 i = W0e; 34876 else if (o >= G0e) { 34877 var c = t ? null : q0e(e); 34878 if (c) 34879 return K0e(c); 34880 a = !1, 34881 i = H0e, 34882 l = new U0e 34883 } else 34884 l = t ? [] : s; 34885 e: for (; ++r < o; ) { 34886 var u = e[r] 34887 , d = t ? t(u) : u; 34888 if (u = n || u !== 0 ? u : 0, 34889 a && d === d) { 34890 for (var f = l.length; f--; ) 34891 if (l[f] === d) 34892 continue e; 34893 t && l.push(d), 34894 s.push(u) 34895 } else 34896 i(l, d, n) || (l !== s && l.push(d), 34897 s.push(u)) 34898 } 34899 return s 34900} 34901var X0e = Y0e 34902 , Q0e = xu 34903 , Z0e = X0e; 34904function J0e(e, t) { 34905 return e && e.length ? Z0e(e, Q0e(t)) : [] 34906} 34907var exe = J0e; 34908const Hj = lt(exe); 34909function w6(e, t, n) { 34910 return t === !0 ? Hj(e, n) : qe(t) ? Hj(e, t) : e 34911} 34912function Mc(e) { 34913 "@babel/helpers - typeof"; 34914 return Mc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 34915 return typeof t 34916 } 34917 : function(t) { 34918 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 34919 } 34920 , 34921 Mc(e) 34922} 34923var txe = ["ref"]; 34924function qj(e, t) { 34925 var n = Object.keys(e); 34926 if (Object.getOwnPropertySymbols) { 34927 var r = Object.getOwnPropertySymbols(e); 34928 t && (r = r.filter(function(i) { 34929 return Object.getOwnPropertyDescriptor(e, i).enumerable 34930 })), 34931 n.push.apply(n, r) 34932 } 34933 return n 34934} 34935function eo(e) { 34936 for (var t = 1; t < arguments.length; t++) { 34937 var n = arguments[t] != null ? arguments[t] : {};
vendor: 8,528 bytes, lines 34938-35219
34938 t % 2 ? qj(Object(n), !0).forEach(function(r) { 34939 Hv(e, r, n[r]) 34940 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qj(Object(n)).forEach(function(r) { 34941 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 34942 }) 34943 } 34944 return e 34945} 34946function nxe(e, t) { 34947 if (!(e instanceof t)) 34948 throw new TypeError("Cannot call a class as a function") 34949} 34950function Kj(e, t) { 34951 for (var n = 0; n < t.length; n++) { 34952 var r = t[n]; 34953 r.enumerable = r.enumerable || !1, 34954 r.configurable = !0, 34955 "value"in r && (r.writable = !0), 34956 Object.defineProperty(e, P6(r.key), r) 34957 } 34958} 34959function rxe(e, t, n) { 34960 return t && Kj(e.prototype, t), 34961 n && Kj(e, n), 34962 Object.defineProperty(e, "prototype", { 34963 writable: !1 34964 }), 34965 e 34966} 34967function ixe(e, t, n) { 34968 return t = _g(t), 34969 oxe(e, S6() ? Reflect.construct(t, n || [], _g(e).constructor) : t.apply(e, n)) 34970} 34971function oxe(e, t) { 34972 if (t && (Mc(t) === "object" || typeof t == "function")) 34973 return t; 34974 if (t !== void 0) 34975 throw new TypeError("Derived constructors may only return object or undefined"); 34976 return axe(e) 34977} 34978function axe(e) { 34979 if (e === void 0) 34980 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 34981 return e 34982} 34983function S6() { 34984 try { 34985 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 34986 } catch {} 34987 return (S6 = function() { 34988 return !!e 34989 } 34990 )() 34991} 34992function _g(e) { 34993 return _g = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 34994 return n.__proto__ || Object.getPrototypeOf(n) 34995 } 34996 , 34997 _g(e) 34998} 34999function sxe(e, t) { 35000 if (typeof t != "function" && t !== null) 35001 throw new TypeError("Super expression must either be null or a function"); 35002 e.prototype = Object.create(t && t.prototype, { 35003 constructor: { 35004 value: e, 35005 writable: !0, 35006 configurable: !0 35007 } 35008 }), 35009 Object.defineProperty(e, "prototype", { 35010 writable: !1 35011 }), 35012 t && _1(e, t) 35013} 35014function _1(e, t) { 35015 return _1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 35016 return r.__proto__ = i, 35017 r 35018 } 35019 , 35020 _1(e, t) 35021} 35022function Hv(e, t, n) { 35023 return t = P6(t), 35024 t in e ? Object.defineProperty(e, t, { 35025 value: n, 35026 enumerable: !0, 35027 configurable: !0, 35028 writable: !0 35029 }) : e[t] = n, 35030 e 35031} 35032function P6(e) { 35033 var t = lxe(e, "string"); 35034 return Mc(t) == "symbol" ? t : t + "" 35035} 35036function lxe(e, t) { 35037 if (Mc(e) != "object" || !e) 35038 return e; 35039 var n = e[Symbol.toPrimitive]; 35040 if (n !== void 0) { 35041 var r = n.call(e, t || "default"); 35042 if (Mc(r) != "object") 35043 return r; 35044 throw new TypeError("@@toPrimitive must return a primitive value.") 35045 } 35046 return (t === "string" ? String : Number)(e) 35047} 35048function cxe(e, t) { 35049 if (e == null) 35050 return {}; 35051 var n = uxe(e, t), r, i; 35052 if (Object.getOwnPropertySymbols) { 35053 var o = Object.getOwnPropertySymbols(e); 35054 for (i = 0; i < o.length; i++) 35055 r = o[i], 35056 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 35057 } 35058 return n 35059} 35060function uxe(e, t) { 35061 if (e == null) 35062 return {}; 35063 var n = {}; 35064 for (var r in e) 35065 if (Object.prototype.hasOwnProperty.call(e, r)) { 35066 if (t.indexOf(r) >= 0) 35067 continue; 35068 n[r] = e[r] 35069 } 35070 return n 35071} 35072function dxe(e) { 35073 return e.value 35074} 35075function fxe(e, t) { 35076 if (k.isValidElement(e)) 35077 return k.cloneElement(e, t); 35078 if (typeof e == "function") 35079 return k.createElement(e, t); 35080 t.ref; 35081 var n = cxe(t, txe); 35082 return k.createElement(OT, n) 35083} 35084var Gj = 1 35085 , Zl = function(e) { 35086 function t() { 35087 var n; 35088 nxe(this, t); 35089 for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) 35090 i[o] = arguments[o]; 35091 return n = ixe(this, t, [].concat(i)), 35092 Hv(n, "lastBoundingBox", { 35093 width: -1, 35094 height: -1 35095 }), 35096 n 35097 } 35098 return sxe(t, e), 35099 rxe(t, [{ 35100 key: "componentDidMount", 35101 value: function() { 35102 this.updateBBox() 35103 } 35104 }, { 35105 key: "componentDidUpdate", 35106 value: function() { 35107 this.updateBBox() 35108 } 35109 }, { 35110 key: "getBBox", 35111 value: function() { 35112 if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) { 35113 var r = this.wrapperNode.getBoundingClientRect(); 35114 return r.height = this.wrapperNode.offsetHeight, 35115 r.width = this.wrapperNode.offsetWidth, 35116 r 35117 } 35118 return null 35119 } 35120 }, { 35121 key: "updateBBox", 35122 value: function() { 35123 var r = this.props.onBBoxUpdate 35124 , i = this.getBBox(); 35125 i ? (Math.abs(i.width - this.lastBoundingBox.width) > Gj || Math.abs(i.height - this.lastBoundingBox.height) > Gj) && (this.lastBoundingBox.width = i.width, 35126 this.lastBoundingBox.height = i.height, 35127 r && r(i)) : (this.lastBoundingBox.width !== -1 || this.lastBoundingBox.height !== -1) && (this.lastBoundingBox.width = -1, 35128 this.lastBoundingBox.height = -1, 35129 r && r(null)) 35130 } 35131 }, { 35132 key: "getBBoxSnapshot", 35133 value: function() { 35134 return this.lastBoundingBox.width >= 0 && this.lastBoundingBox.height >= 0 ? eo({}, this.lastBoundingBox) : { 35135 width: 0, 35136 height: 0 35137 } 35138 } 35139 }, { 35140 key: "getDefaultPosition", 35141 value: function(r) { 35142 var i = this.props, o = i.layout, a = i.align, s = i.verticalAlign, l = i.margin, c = i.chartWidth, u = i.chartHeight, d, f; 35143 if (!r || (r.left === void 0 || r.left === null) && (r.right === void 0 || r.right === null)) 35144 if (a === "center" && o === "vertical") { 35145 var p = this.getBBoxSnapshot(); 35146 d = { 35147 left: ((c || 0) - p.width) / 2 35148 } 35149 } else 35150 d = a === "right" ? { 35151 right: l && l.right || 0 35152 } : { 35153 left: l && l.left || 0 35154 }; 35155 if (!r || (r.top === void 0 || r.top === null) && (r.bottom === void 0 || r.bottom === null)) 35156 if (s === "middle") { 35157 var g = this.getBBoxSnapshot(); 35158 f = { 35159 top: ((u || 0) - g.height) / 2 35160 } 35161 } else 35162 f = s === "bottom" ? { 35163 bottom: l && l.bottom || 0 35164 } : { 35165 top: l && l.top || 0 35166 }; 35167 return eo(eo({}, d), f) 35168 } 35169 }, { 35170 key: "render", 35171 value: function() { 35172 var r = this 35173 , i = this.props 35174 , o = i.content 35175 , a = i.width 35176 , s = i.height 35177 , l = i.wrapperStyle 35178 , c = i.payloadUniqBy 35179 , u = i.payload 35180 , d = eo(eo({ 35181 position: "absolute", 35182 width: a || "auto", 35183 height: s || "auto" 35184 }, this.getDefaultPosition(l)), l); 35185 return k.createElement("div", { 35186 className: "recharts-legend-wrapper", 35187 style: d, 35188 ref: function(p) { 35189 r.wrapperNode = p 35190 } 35191 }, fxe(o, eo(eo({}, this.props), {}, { 35192 payload: w6(u, c, dxe) 35193 }))) 35194 } 35195 }], [{ 35196 key: "getWithHeight", 35197 value: function(r, i) { 35198 var o = eo(eo({}, this.defaultProps), r.props) 35199 , a = o.layout; 35200 return a === "vertical" && le(r.props.height) ? { 35201 height: r.props.height 35202 } : a === "horizontal" ? { 35203 width: r.props.width || i 35204 } : null 35205 } 35206 }]) 35207}(b.PureComponent); 35208Hv(Zl, "displayName", "Legend"); 35209Hv(Zl, "defaultProps", { 35210 iconSize: 14, 35211 layout: "horizontal", 35212 align: "center", 35213 verticalAlign: "bottom" 35214}); 35215var Yj = Bh 35216 , hxe = ET 35217 , pxe = nr 35218 , Xj = Yj ? Yj.isConcatSpreadable : void 0; 35219function mxe(e) {
vendor: 4,743 bytes, lines 35220-35443
35220 return pxe(e) || hxe(e) || !!(Xj && e && e[Xj]) 35221} 35222var gxe = mxe 35223 , yxe = u6 35224 , vxe = gxe; 35225function _6(e, t, n, r, i) { 35226 var o = -1 35227 , a = e.length; 35228 for (n || (n = vxe), 35229 i || (i = []); ++o < a; ) { 35230 var s = e[o]; 35231 t > 0 && n(s) ? t > 1 ? _6(s, t - 1, n, r, i) : yxe(i, s) : r || (i[i.length] = s) 35232 } 35233 return i 35234} 35235var T6 = _6; 35236function xxe(e) { 35237 return function(t, n, r) { 35238 for (var i = -1, o = Object(t), a = r(t), s = a.length; s--; ) { 35239 var l = a[e ? s : ++i]; 35240 if (n(o[l], l, o) === !1) 35241 break 35242 } 35243 return t 35244 } 35245} 35246var bxe = xxe 35247 , wxe = bxe 35248 , Sxe = wxe() 35249 , Pxe = Sxe 35250 , _xe = Pxe 35251 , Txe = MT; 35252function Cxe(e, t) { 35253 return e && _xe(e, t, Txe) 35254} 35255var C6 = Cxe 35256 , Oxe = Wv; 35257function Axe(e, t) { 35258 return function(n, r) { 35259 if (n == null) 35260 return n; 35261 if (!Oxe(n)) 35262 return e(n, r); 35263 for (var i = n.length, o = t ? i : -1, a = Object(n); (t ? o-- : ++o < i) && r(a[o], o, a) !== !1; ) 35264 ; 35265 return n 35266 } 35267} 35268var Exe = Axe 35269 , jxe = C6 35270 , Nxe = Exe 35271 , Mxe = Nxe(jxe) 35272 , RT = Mxe 35273 , kxe = RT 35274 , Rxe = Wv; 35275function Dxe(e, t) { 35276 var n = -1 35277 , r = Rxe(e) ? Array(e.length) : []; 35278 return kxe(e, function(i, o, a) { 35279 r[++n] = t(i, o, a) 35280 }), 35281 r 35282} 35283var O6 = Dxe; 35284function Ixe(e, t) { 35285 var n = e.length; 35286 for (e.sort(t); n--; ) 35287 e[n] = e[n].value; 35288 return e 35289} 35290var $xe = Ixe 35291 , Qj = du; 35292function Lxe(e, t) { 35293 if (e !== t) { 35294 var n = e !== void 0 35295 , r = e === null 35296 , i = e === e 35297 , o = Qj(e) 35298 , a = t !== void 0 35299 , s = t === null 35300 , l = t === t 35301 , c = Qj(t); 35302 if (!s && !c && !o && e > t || o && a && l && !s && !c || r && a && l || !n && l || !i) 35303 return 1; 35304 if (!r && !o && !c && e < t || c && n && i && !r && !o || s && n && i || !a && i || !l) 35305 return -1 35306 } 35307 return 0 35308} 35309var Fxe = Lxe 35310 , Bxe = Fxe; 35311function Vxe(e, t, n) { 35312 for (var r = -1, i = e.criteria, o = t.criteria, a = i.length, s = n.length; ++r < a; ) { 35313 var l = Bxe(i[r], o[r]); 35314 if (l) { 35315 if (r >= s) 35316 return l; 35317 var c = n[r]; 35318 return l * (c == "desc" ? -1 : 1) 35319 } 35320 } 35321 return e.index - t.index 35322} 35323var Uxe = Vxe 35324 , jx = yT 35325 , zxe = vT 35326 , Wxe = xu 35327 , Hxe = O6 35328 , qxe = $xe 35329 , Kxe = h6 35330 , Gxe = Uxe 35331 , Yxe = vu 35332 , Xxe = nr; 35333function Qxe(e, t, n) { 35334 t.length ? t = jx(t, function(o) { 35335 return Xxe(o) ? function(a) { 35336 return zxe(a, o.length === 1 ? o[0] : o) 35337 } 35338 : o 35339 }) : t = [Yxe]; 35340 var r = -1; 35341 t = jx(t, Kxe(Wxe)); 35342 var i = Hxe(e, function(o, a, s) { 35343 var l = jx(t, function(c) { 35344 return c(o) 35345 }); 35346 return { 35347 criteria: l, 35348 index: ++r, 35349 value: o 35350 } 35351 }); 35352 return qxe(i, function(o, a) { 35353 return Gxe(o, a, n) 35354 }) 35355} 35356var Zxe = Qxe; 35357function Jxe(e, t, n) { 35358 switch (n.length) { 35359 case 0: 35360 return e.call(t); 35361 case 1: 35362 return e.call(t, n[0]); 35363 case 2: 35364 return e.call(t, n[0], n[1]); 35365 case 3: 35366 return e.call(t, n[0], n[1], n[2]) 35367 } 35368 return e.apply(t, n) 35369} 35370var ebe = Jxe 35371 , tbe = ebe 35372 , Zj = Math.max; 35373function nbe(e, t, n) { 35374 return t = Zj(t === void 0 ? e.length - 1 : t, 0), 35375 function() { 35376 for (var r = arguments, i = -1, o = Zj(r.length - t, 0), a = Array(o); ++i < o; ) 35377 a[i] = r[t + i]; 35378 i = -1; 35379 for (var s = Array(t + 1); ++i < t; ) 35380 s[i] = r[i]; 35381 return s[t] = n(a), 35382 tbe(e, this, s) 35383 } 35384} 35385var rbe = nbe; 35386function ibe(e) { 35387 return function() { 35388 return e 35389 } 35390} 35391var obe = ibe 35392 , abe = tl 35393 , sbe = function() { 35394 try { 35395 var e = abe(Object, "defineProperty"); 35396 return e({}, "", {}), 35397 e 35398 } catch {} 35399}() 35400 , A6 = sbe 35401 , lbe = obe 35402 , Jj = A6 35403 , cbe = vu 35404 , ube = Jj ? function(e, t) { 35405 return Jj(e, "toString", { 35406 configurable: !0, 35407 enumerable: !1, 35408 value: lbe(t), 35409 writable: !0 35410 }) 35411} 35412: cbe 35413 , dbe = ube 35414 , fbe = 800 35415 , hbe = 16 35416 , pbe = Date.now; 35417function mbe(e) { 35418 var t = 0 35419 , n = 0; 35420 return function() { 35421 var r = pbe() 35422 , i = hbe - (r - n); 35423 if (n = r, 35424 i > 0) { 35425 if (++t >= fbe) 35426 return arguments[0] 35427 } else 35428 t = 0; 35429 return e.apply(void 0, arguments) 35430 } 35431} 35432var gbe = mbe 35433 , ybe = dbe 35434 , vbe = gbe 35435 , xbe = vbe(ybe) 35436 , bbe = xbe 35437 , wbe = vu 35438 , Sbe = rbe 35439 , Pbe = bbe; 35440function _be(e, t) { 35441 return Pbe(Sbe(e, t, wbe), e + "") 35442} 35443var Tbe = _be
vendor: 18,176 bytes, lines 35444-36041
35444 , Cbe = hT 35445 , Obe = Wv 35446 , Abe = jT 35447 , Ebe = Wa; 35448function jbe(e, t, n) { 35449 if (!Ebe(n)) 35450 return !1; 35451 var r = typeof t; 35452 return (r == "number" ? Obe(n) && Abe(t, n.length) : r == "string" && t in n) ? Cbe(n[t], e) : !1 35453} 35454var qv = jbe 35455 , Nbe = T6 35456 , Mbe = Zxe 35457 , kbe = Tbe 35458 , eN = qv 35459 , Rbe = kbe(function(e, t) { 35460 if (e == null) 35461 return []; 35462 var n = t.length; 35463 return n > 1 && eN(e, t[0], t[1]) ? t = [] : n > 2 && eN(t[0], t[1], t[2]) && (t = [t[0]]), 35464 Mbe(e, Nbe(t, 1), []) 35465}) 35466 , Dbe = Rbe; 35467const DT = lt(Dbe); 35468function bf(e) { 35469 "@babel/helpers - typeof"; 35470 return bf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 35471 return typeof t 35472 } 35473 : function(t) { 35474 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 35475 } 35476 , 35477 bf(e) 35478} 35479function T1() { 35480 return T1 = Object.assign ? Object.assign.bind() : function(e) { 35481 for (var t = 1; t < arguments.length; t++) { 35482 var n = arguments[t]; 35483 for (var r in n) 35484 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 35485 } 35486 return e 35487 } 35488 , 35489 T1.apply(this, arguments) 35490} 35491function Ibe(e, t) { 35492 return Bbe(e) || Fbe(e, t) || Lbe(e, t) || $be() 35493} 35494function $be() { 35495 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 35496In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 35497} 35498function Lbe(e, t) { 35499 if (e) { 35500 if (typeof e == "string") 35501 return tN(e, t); 35502 var n = Object.prototype.toString.call(e).slice(8, -1); 35503 if (n === "Object" && e.constructor && (n = e.constructor.name), 35504 n === "Map" || n === "Set") 35505 return Array.from(e); 35506 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 35507 return tN(e, t) 35508 } 35509} 35510function tN(e, t) { 35511 (t == null || t > e.length) && (t = e.length); 35512 for (var n = 0, r = new Array(t); n < t; n++) 35513 r[n] = e[n]; 35514 return r 35515} 35516function Fbe(e, t) { 35517 var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; 35518 if (n != null) { 35519 var r, i, o, a, s = [], l = !0, c = !1; 35520 try { 35521 if (o = (n = n.call(e)).next, 35522 t !== 0) 35523 for (; !(l = (r = o.call(n)).done) && (s.push(r.value), 35524 s.length !== t); l = !0) 35525 ; 35526 } catch (u) { 35527 c = !0, 35528 i = u 35529 } finally { 35530 try { 35531 if (!l && n.return != null && (a = n.return(), 35532 Object(a) !== a)) 35533 return 35534 } finally { 35535 if (c) 35536 throw i 35537 } 35538 } 35539 return s 35540 } 35541} 35542function Bbe(e) { 35543 if (Array.isArray(e)) 35544 return e 35545} 35546function nN(e, t) { 35547 var n = Object.keys(e); 35548 if (Object.getOwnPropertySymbols) { 35549 var r = Object.getOwnPropertySymbols(e); 35550 t && (r = r.filter(function(i) { 35551 return Object.getOwnPropertyDescriptor(e, i).enumerable 35552 })), 35553 n.push.apply(n, r) 35554 } 35555 return n 35556} 35557function Nx(e) { 35558 for (var t = 1; t < arguments.length; t++) { 35559 var n = arguments[t] != null ? arguments[t] : {}; 35560 t % 2 ? nN(Object(n), !0).forEach(function(r) { 35561 Vbe(e, r, n[r]) 35562 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nN(Object(n)).forEach(function(r) { 35563 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 35564 }) 35565 } 35566 return e 35567} 35568function Vbe(e, t, n) { 35569 return t = Ube(t), 35570 t in e ? Object.defineProperty(e, t, { 35571 value: n, 35572 enumerable: !0, 35573 configurable: !0, 35574 writable: !0 35575 }) : e[t] = n, 35576 e 35577} 35578function Ube(e) { 35579 var t = zbe(e, "string"); 35580 return bf(t) == "symbol" ? t : t + "" 35581} 35582function zbe(e, t) { 35583 if (bf(e) != "object" || !e) 35584 return e; 35585 var n = e[Symbol.toPrimitive]; 35586 if (n !== void 0) { 35587 var r = n.call(e, t || "default"); 35588 if (bf(r) != "object") 35589 return r; 35590 throw new TypeError("@@toPrimitive must return a primitive value.") 35591 } 35592 return (t === "string" ? String : Number)(e) 35593} 35594function Wbe(e) { 35595 return Array.isArray(e) && tn(e[0]) && tn(e[1]) ? e.join(" ~ ") : e 35596} 35597var Hbe = function(t) { 35598 var n = t.separator 35599 , r = n === void 0 ? " : " : n 35600 , i = t.contentStyle 35601 , o = i === void 0 ? {} : i 35602 , a = t.itemStyle 35603 , s = a === void 0 ? {} : a 35604 , l = t.labelStyle 35605 , c = l === void 0 ? {} : l 35606 , u = t.payload 35607 , d = t.formatter 35608 , f = t.itemSorter 35609 , p = t.wrapperClassName 35610 , g = t.labelClassName 35611 , m = t.label 35612 , x = t.labelFormatter 35613 , v = t.accessibilityLayer 35614 , y = v === void 0 ? !1 : v 35615 , w = function() { 35616 if (u && u.length) { 35617 var j = { 35618 padding: 0, 35619 margin: 0 35620 } 35621 , $ = (f ? DT(u, f) : u).map(function(R, L) { 35622 if (R.type === "none") 35623 return null; 35624 var B = Nx({ 35625 display: "block", 35626 paddingTop: 4, 35627 paddingBottom: 4, 35628 color: R.color || "#000" 35629 }, s) 35630 , U = R.formatter || d || Wbe 35631 , N = R.value 35632 , D = R.name 35633 , W = N 35634 , K = D; 35635 if (U && W != null && K != null) { 35636 var G = U(N, D, R, L, u); 35637 if (Array.isArray(G)) { 35638 var ae = Ibe(G, 2); 35639 W = ae[0], 35640 K = ae[1] 35641 } else 35642 W = G 35643 } 35644 return k.createElement("li", { 35645 className: "recharts-tooltip-item", 35646 key: "tooltip-item-".concat(L), 35647 style: B 35648 }, tn(K) ? k.createElement("span", { 35649 className: "recharts-tooltip-item-name" 35650 }, K) : null, tn(K) ? k.createElement("span", { 35651 className: "recharts-tooltip-item-separator" 35652 }, r) : null, k.createElement("span", { 35653 className: "recharts-tooltip-item-value" 35654 }, W), k.createElement("span", { 35655 className: "recharts-tooltip-item-unit" 35656 }, R.unit || "")) 35657 }); 35658 return k.createElement("ul", { 35659 className: "recharts-tooltip-item-list", 35660 style: j 35661 }, $) 35662 } 35663 return null 35664 } 35665 , P = Nx({ 35666 margin: 0, 35667 padding: 10, 35668 backgroundColor: "#fff", 35669 border: "1px solid #ccc", 35670 whiteSpace: "nowrap" 35671 }, o) 35672 , S = Nx({ 35673 margin: 0 35674 }, c) 35675 , _ = !et(m) 35676 , T = _ ? m : "" 35677 , C = Ge("recharts-default-tooltip", p) 35678 , O = Ge("recharts-tooltip-label", g); 35679 _ && x && u !== void 0 && u !== null && (T = x(m, u)); 35680 var A = y ? { 35681 role: "status", 35682 "aria-live": "assertive" 35683 } : {}; 35684 return k.createElement("div", T1({ 35685 className: C, 35686 style: P 35687 }, A), k.createElement("p", { 35688 className: O, 35689 style: S 35690 }, k.isValidElement(T) ? T : "".concat(T)), w()) 35691}; 35692function wf(e) { 35693 "@babel/helpers - typeof"; 35694 return wf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 35695 return typeof t 35696 } 35697 : function(t) { 35698 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 35699 } 35700 , 35701 wf(e) 35702} 35703function Rp(e, t, n) { 35704 return t = qbe(t), 35705 t in e ? Object.defineProperty(e, t, { 35706 value: n, 35707 enumerable: !0, 35708 configurable: !0, 35709 writable: !0 35710 }) : e[t] = n, 35711 e 35712} 35713function qbe(e) { 35714 var t = Kbe(e, "string"); 35715 return wf(t) == "symbol" ? t : t + "" 35716} 35717function Kbe(e, t) { 35718 if (wf(e) != "object" || !e) 35719 return e; 35720 var n = e[Symbol.toPrimitive]; 35721 if (n !== void 0) { 35722 var r = n.call(e, t || "default"); 35723 if (wf(r) != "object") 35724 return r; 35725 throw new TypeError("@@toPrimitive must return a primitive value.") 35726 } 35727 return (t === "string" ? String : Number)(e) 35728} 35729var Bu = "recharts-tooltip-wrapper" 35730 , Gbe = { 35731 visibility: "hidden" 35732}; 35733function Ybe(e) { 35734 var t = e.coordinate 35735 , n = e.translateX 35736 , r = e.translateY; 35737 return Ge(Bu, Rp(Rp(Rp(Rp({}, "".concat(Bu, "-right"), le(n) && t && le(t.x) && n >= t.x), "".concat(Bu, "-left"), le(n) && t && le(t.x) && n < t.x), "".concat(Bu, "-bottom"), le(r) && t && le(t.y) && r >= t.y), "".concat(Bu, "-top"), le(r) && t && le(t.y) && r < t.y)) 35738} 35739function rN(e) { 35740 var t = e.allowEscapeViewBox 35741 , n = e.coordinate 35742 , r = e.key 35743 , i = e.offsetTopLeft 35744 , o = e.position 35745 , a = e.reverseDirection 35746 , s = e.tooltipDimension 35747 , l = e.viewBox 35748 , c = e.viewBoxDimension; 35749 if (o && le(o[r])) 35750 return o[r]; 35751 var u = n[r] - s - i 35752 , d = n[r] + i; 35753 if (t[r]) 35754 return a[r] ? u : d; 35755 if (a[r]) { 35756 var f = u 35757 , p = l[r]; 35758 return f < p ? Math.max(d, l[r]) : Math.max(u, l[r]) 35759 } 35760 var g = d + s 35761 , m = l[r] + c; 35762 return g > m ? Math.max(u, l[r]) : Math.max(d, l[r]) 35763} 35764function Xbe(e) { 35765 var t = e.translateX 35766 , n = e.translateY 35767 , r = e.useTranslate3d; 35768 return { 35769 transform: r ? "translate3d(".concat(t, "px, ").concat(n, "px, 0)") : "translate(".concat(t, "px, ").concat(n, "px)") 35770 } 35771} 35772function Qbe(e) { 35773 var t = e.allowEscapeViewBox, n = e.coordinate, r = e.offsetTopLeft, i = e.position, o = e.reverseDirection, a = e.tooltipBox, s = e.useTranslate3d, l = e.viewBox, c, u, d; 35774 return a.height > 0 && a.width > 0 && n ? (u = rN({ 35775 allowEscapeViewBox: t, 35776 coordinate: n, 35777 key: "x", 35778 offsetTopLeft: r, 35779 position: i, 35780 reverseDirection: o, 35781 tooltipDimension: a.width, 35782 viewBox: l, 35783 viewBoxDimension: l.width 35784 }), 35785 d = rN({ 35786 allowEscapeViewBox: t, 35787 coordinate: n, 35788 key: "y", 35789 offsetTopLeft: r, 35790 position: i, 35791 reverseDirection: o, 35792 tooltipDimension: a.height, 35793 viewBox: l, 35794 viewBoxDimension: l.height 35795 }), 35796 c = Xbe({ 35797 translateX: u, 35798 translateY: d, 35799 useTranslate3d: s 35800 })) : c = Gbe, 35801 { 35802 cssProperties: c, 35803 cssClasses: Ybe({ 35804 translateX: u, 35805 translateY: d, 35806 coordinate: n 35807 }) 35808 } 35809} 35810function kc(e) { 35811 "@babel/helpers - typeof"; 35812 return kc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 35813 return typeof t 35814 } 35815 : function(t) { 35816 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 35817 } 35818 , 35819 kc(e) 35820} 35821function iN(e, t) { 35822 var n = Object.keys(e); 35823 if (Object.getOwnPropertySymbols) { 35824 var r = Object.getOwnPropertySymbols(e); 35825 t && (r = r.filter(function(i) { 35826 return Object.getOwnPropertyDescriptor(e, i).enumerable 35827 })), 35828 n.push.apply(n, r) 35829 } 35830 return n 35831} 35832function oN(e) { 35833 for (var t = 1; t < arguments.length; t++) { 35834 var n = arguments[t] != null ? arguments[t] : {}; 35835 t % 2 ? iN(Object(n), !0).forEach(function(r) { 35836 O1(e, r, n[r]) 35837 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iN(Object(n)).forEach(function(r) { 35838 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 35839 }) 35840 } 35841 return e 35842} 35843function Zbe(e, t) { 35844 if (!(e instanceof t)) 35845 throw new TypeError("Cannot call a class as a function") 35846} 35847function Jbe(e, t) { 35848 for (var n = 0; n < t.length; n++) { 35849 var r = t[n]; 35850 r.enumerable = r.enumerable || !1, 35851 r.configurable = !0, 35852 "value"in r && (r.writable = !0), 35853 Object.defineProperty(e, j6(r.key), r) 35854 } 35855} 35856function ewe(e, t, n) { 35857 return t && Jbe(e.prototype, t), 35858 Object.defineProperty(e, "prototype", { 35859 writable: !1 35860 }), 35861 e 35862} 35863function twe(e, t, n) { 35864 return t = Tg(t), 35865 nwe(e, E6() ? Reflect.construct(t, n || [], Tg(e).constructor) : t.apply(e, n)) 35866} 35867function nwe(e, t) { 35868 if (t && (kc(t) === "object" || typeof t == "function")) 35869 return t; 35870 if (t !== void 0) 35871 throw new TypeError("Derived constructors may only return object or undefined"); 35872 return rwe(e) 35873} 35874function rwe(e) { 35875 if (e === void 0) 35876 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 35877 return e 35878} 35879function E6() { 35880 try { 35881 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 35882 } catch {} 35883 return (E6 = function() { 35884 return !!e 35885 } 35886 )() 35887} 35888function Tg(e) { 35889 return Tg = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 35890 return n.__proto__ || Object.getPrototypeOf(n) 35891 } 35892 , 35893 Tg(e) 35894} 35895function iwe(e, t) { 35896 if (typeof t != "function" && t !== null) 35897 throw new TypeError("Super expression must either be null or a function"); 35898 e.prototype = Object.create(t && t.prototype, { 35899 constructor: { 35900 value: e, 35901 writable: !0, 35902 configurable: !0 35903 } 35904 }), 35905 Object.defineProperty(e, "prototype", { 35906 writable: !1 35907 }), 35908 t && C1(e, t) 35909} 35910function C1(e, t) { 35911 return C1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 35912 return r.__proto__ = i, 35913 r 35914 } 35915 , 35916 C1(e, t) 35917} 35918function O1(e, t, n) { 35919 return t = j6(t), 35920 t in e ? Object.defineProperty(e, t, { 35921 value: n, 35922 enumerable: !0, 35923 configurable: !0, 35924 writable: !0 35925 }) : e[t] = n, 35926 e 35927} 35928function j6(e) { 35929 var t = owe(e, "string"); 35930 return kc(t) == "symbol" ? t : t + "" 35931} 35932function owe(e, t) { 35933 if (kc(e) != "object" || !e) 35934 return e; 35935 var n = e[Symbol.toPrimitive]; 35936 if (n !== void 0) { 35937 var r = n.call(e, t || "default"); 35938 if (kc(r) != "object") 35939 return r; 35940 throw new TypeError("@@toPrimitive must return a primitive value.") 35941 } 35942 return (t === "string" ? String : Number)(e) 35943} 35944var aN = 1 35945 , awe = function(e) { 35946 function t() { 35947 var n; 35948 Zbe(this, t); 35949 for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) 35950 i[o] = arguments[o]; 35951 return n = twe(this, t, [].concat(i)), 35952 O1(n, "state", { 35953 dismissed: !1, 35954 dismissedAtCoordinate: { 35955 x: 0, 35956 y: 0 35957 }, 35958 lastBoundingBox: { 35959 width: -1, 35960 height: -1 35961 } 35962 }), 35963 O1(n, "handleKeyDown", function(a) { 35964 if (a.key === "Escape") { 35965 var s, l, c, u; 35966 n.setState({ 35967 dismissed: !0, 35968 dismissedAtCoordinate: { 35969 x: (s = (l = n.props.coordinate) === null || l === void 0 ? void 0 : l.x) !== null && s !== void 0 ? s : 0, 35970 y: (c = (u = n.props.coordinate) === null || u === void 0 ? void 0 : u.y) !== null && c !== void 0 ? c : 0 35971 } 35972 }) 35973 } 35974 }), 35975 n 35976 } 35977 return iwe(t, e), 35978 ewe(t, [{ 35979 key: "updateBBox", 35980 value: function() { 35981 if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) { 35982 var r = this.wrapperNode.getBoundingClientRect(); 35983 (Math.abs(r.width - this.state.lastBoundingBox.width) > aN || Math.abs(r.height - this.state.lastBoundingBox.height) > aN) && this.setState({ 35984 lastBoundingBox: { 35985 width: r.width, 35986 height: r.height 35987 } 35988 }) 35989 } else 35990 (this.state.lastBoundingBox.width !== -1 || this.state.lastBoundingBox.height !== -1) && this.setState({ 35991 lastBoundingBox: { 35992 width: -1, 35993 height: -1 35994 } 35995 }) 35996 } 35997 }, { 35998 key: "componentDidMount", 35999 value: function() { 36000 document.addEventListener("keydown", this.handleKeyDown), 36001 this.updateBBox() 36002 } 36003 }, { 36004 key: "componentWillUnmount", 36005 value: function() { 36006 document.removeEventListener("keydown", this.handleKeyDown) 36007 } 36008 }, { 36009 key: "componentDidUpdate", 36010 value: function() { 36011 var r, i; 36012 this.props.active && this.updateBBox(), 36013 this.state.dismissed && (((r = this.props.coordinate) === null || r === void 0 ? void 0 : r.x) !== this.state.dismissedAtCoordinate.x || ((i = this.props.coordinate) === null || i === void 0 ? void 0 : i.y) !== this.state.dismissedAtCoordinate.y) && (this.state.dismissed = !1) 36014 } 36015 }, { 36016 key: "render", 36017 value: function() { 36018 var r = this 36019 , i = this.props 36020 , o = i.active 36021 , a = i.allowEscapeViewBox 36022 , s = i.animationDuration 36023 , l = i.animationEasing 36024 , c = i.children 36025 , u = i.coordinate 36026 , d = i.hasPayload 36027 , f = i.isAnimationActive 36028 , p = i.offset 36029 , g = i.position 36030 , m = i.reverseDirection 36031 , x = i.useTranslate3d 36032 , v = i.viewBox 36033 , y = i.wrapperStyle 36034 , w = Qbe({ 36035 allowEscapeViewBox: a, 36036 coordinate: u, 36037 offsetTopLeft: p, 36038 position: g, 36039 reverseDirection: m, 36040 tooltipBox: this.state.lastBoundingBox, 36041 useTranslate3d: x,
36042 viewBox: v 36043 }) 36044 , P = w.cssClasses 36045 , S = w.cssProperties 36046 , _ = oN(oN({ 36047 transition: f && o ? "transform ".concat(s, "ms ").concat(l) : void 0 36048 }, S), {}, { 36049 pointerEvents: "none", 36050 visibility: !this.state.dismissed && o && d ? "visible" : "hidden", 36051 position: "absolute", 36052 top: 0, 36053 left: 0 36054 }, y); 36055 return k.createElement("div", { 36056 tabIndex: -1, 36057 className: P, 36058 style: _, 36059 ref: function(C) { 36060 r.wrapperNode = C 36061 } 36062 }, c) 36063 } 36064 }]) 36065}(b.PureComponent) 36066 , swe = function() { 36067 return !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout) 36068} 36069 , ba = { 36070 isSsr: swe(), 36071 get: function(t) { 36072 return ba[t] 36073 }, 36074 set: function(t, n) { 36075 if (typeof t == "string") 36076 ba[t] = n; 36077 else { 36078 var r = Object.keys(t); 36079 r && r.length && r.forEach(function(i) { 36080 ba[i] = t[i] 36081 }) 36082 } 36083 } 36084}; 36085function Rc(e) { 36086 "@babel/helpers - typeof"; 36087 return Rc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 36088 return typeof t 36089 } 36090 : function(t) { 36091 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 36092 } 36093 , 36094 Rc(e) 36095} 36096function sN(e, t) { 36097 var n = Object.keys(e); 36098 if (Object.getOwnPropertySymbols) { 36099 var r = Object.getOwnPropertySymbols(e); 36100 t && (r = r.filter(function(i) { 36101 return Object.getOwnPropertyDescriptor(e, i).enumerable 36102 })), 36103 n.push.apply(n, r) 36104 } 36105 return n 36106} 36107function lN(e) { 36108 for (var t = 1; t < arguments.length; t++) { 36109 var n = arguments[t] != null ? arguments[t] : {}; 36110 t % 2 ? sN(Object(n), !0).forEach(function(r) { 36111 IT(e, r, n[r]) 36112 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sN(Object(n)).forEach(function(r) { 36113 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 36114 }) 36115 } 36116 return e 36117} 36118function lwe(e, t) { 36119 if (!(e instanceof t)) 36120 throw new TypeError("Cannot call a class as a function") 36121} 36122function cwe(e, t) { 36123 for (var n = 0; n < t.length; n++) { 36124 var r = t[n]; 36125 r.enumerable = r.enumerable || !1, 36126 r.configurable = !0, 36127 "value"in r && (r.writable = !0), 36128 Object.defineProperty(e, M6(r.key), r) 36129 } 36130} 36131function uwe(e, t, n) { 36132 return t && cwe(e.prototype, t), 36133 Object.defineProperty(e, "prototype", { 36134 writable: !1 36135 }), 36136 e 36137} 36138function dwe(e, t, n) { 36139 return t = Cg(t), 36140 fwe(e, N6() ? Reflect.construct(t, n || [], Cg(e).constructor) : t.apply(e, n)) 36141} 36142function fwe(e, t) { 36143 if (t && (Rc(t) === "object" || typeof t == "function")) 36144 return t; 36145 if (t !== void 0) 36146 throw new TypeError("Derived constructors may only return object or undefined"); 36147 return hwe(e) 36148} 36149function hwe(e) { 36150 if (e === void 0) 36151 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 36152 return e 36153} 36154function N6() { 36155 try { 36156 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 36157 } catch {} 36158 return (N6 = function() { 36159 return !!e 36160 } 36161 )() 36162} 36163function Cg(e) { 36164 return Cg = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 36165 return n.__proto__ || Object.getPrototypeOf(n) 36166 } 36167 , 36168 Cg(e) 36169} 36170function pwe(e, t) { 36171 if (typeof t != "function" && t !== null) 36172 throw new TypeError("Super expression must either be null or a function"); 36173 e.prototype = Object.create(t && t.prototype, { 36174 constructor: { 36175 value: e, 36176 writable: !0, 36177 configurable: !0 36178 } 36179 }), 36180 Object.defineProperty(e, "prototype", { 36181 writable: !1 36182 }), 36183 t && A1(e, t) 36184} 36185function A1(e, t) { 36186 return A1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 36187 return r.__proto__ = i, 36188 r 36189 } 36190 , 36191 A1(e, t) 36192} 36193function IT(e, t, n) { 36194 return t = M6(t), 36195 t in e ? Object.defineProperty(e, t, { 36196 value: n, 36197 enumerable: !0, 36198 configurable: !0, 36199 writable: !0 36200 }) : e[t] = n, 36201 e 36202} 36203function M6(e) { 36204 var t = mwe(e, "string"); 36205 return Rc(t) == "symbol" ? t : t + "" 36206} 36207function mwe(e, t) { 36208 if (Rc(e) != "object" || !e) 36209 return e; 36210 var n = e[Symbol.toPrimitive]; 36211 if (n !== void 0) { 36212 var r = n.call(e, t || "default"); 36213 if (Rc(r) != "object") 36214 return r; 36215 throw new TypeError("@@toPrimitive must return a primitive value.") 36216 } 36217 return (t === "string" ? String : Number)(e) 36218} 36219function gwe(e) { 36220 return e.dataKey 36221} 36222function ywe(e, t) { 36223 return k.isValidElement(e) ? k.cloneElement(e, t) : typeof e == "function" ? k.createElement(e, t) : k.createElement(Hbe, t) 36224} 36225var Pi = function(e) { 36226 function t() { 36227 return lwe(this, t), 36228 dwe(this, t, arguments) 36229 } 36230 return pwe(t, e), 36231 uwe(t, [{ 36232 key: "render", 36233 value: function() { 36234 var r = this 36235 , i = this.props 36236 , o = i.active 36237 , a = i.allowEscapeViewBox 36238 , s = i.animationDuration 36239 , l = i.animationEasing 36240 , c = i.content 36241 , u = i.coordinate 36242 , d = i.filterNull 36243 , f = i.isAnimationActive 36244 , p = i.offset 36245 , g = i.payload 36246 , m = i.payloadUniqBy 36247 , x = i.position 36248 , v = i.reverseDirection 36249 , y = i.useTranslate3d
36250 , w = i.viewBox 36251 , P = i.wrapperStyle 36252 , S = g ?? []; 36253 d && S.length && (S = w6(g.filter(function(T) { 36254 return T.value != null && (T.hide !== !0 || r.props.includeHidden) 36255 }), m, gwe)); 36256 var _ = S.length > 0; 36257 return k.createElement(awe, { 36258 allowEscapeViewBox: a, 36259 animationDuration: s, 36260 animationEasing: l, 36261 isAnimationActive: f, 36262 active: o, 36263 coordinate: u, 36264 hasPayload: _, 36265 offset: p, 36266 position: x, 36267 reverseDirection: v, 36268 useTranslate3d: y, 36269 viewBox: w, 36270 wrapperStyle: P 36271 }, ywe(c, lN(lN({}, this.props), {}, { 36272 payload: S 36273 }))) 36274 } 36275 }]) 36276}(b.PureComponent); 36277IT(Pi, "displayName", "Tooltip"); 36278IT(Pi, "defaultProps", { 36279 accessibilityLayer: !1, 36280 allowEscapeViewBox: { 36281 x: !1, 36282 y: !1 36283 }, 36284 animationDuration: 400, 36285 animationEasing: "ease", 36286 contentStyle: {}, 36287 coordinate: { 36288 x: 0, 36289 y: 0 36290 }, 36291 cursor: !0, 36292 cursorStyle: {}, 36293 filterNull: !0, 36294 isAnimationActive: !ba.isSsr, 36295 itemStyle: {}, 36296 labelStyle: {}, 36297 offset: 10, 36298 reverseDirection: { 36299 x: !1, 36300 y: !1 36301 }, 36302 separator: " : ", 36303 trigger: "hover", 36304 useTranslate3d: !1, 36305 viewBox: { 36306 x: 0, 36307 y: 0, 36308 height: 0, 36309 width: 0 36310 }, 36311 wrapperStyle: {} 36312}); 36313var vwe = Qi 36314 , xwe = function() { 36315 return vwe.Date.now() 36316} 36317 , bwe = xwe 36318 , wwe = /\s/; 36319function Swe(e) { 36320 for (var t = e.length; t-- && wwe.test(e.charAt(t)); ) 36321 ; 36322 return t 36323} 36324var Pwe = Swe 36325 , _we = Pwe 36326 , Twe = /^\s+/; 36327function Cwe(e) { 36328 return e && e.slice(0, _we(e) + 1).replace(Twe, "") 36329} 36330var Owe = Cwe 36331 , Awe = Owe 36332 , cN = Wa 36333 , Ewe = du 36334 , uN = NaN 36335 , jwe = /^[-+]0x[0-9a-f]+$/i 36336 , Nwe = /^0b[01]+$/i 36337 , Mwe = /^0o[0-7]+$/i 36338 , kwe = parseInt; 36339function Rwe(e) { 36340 if (typeof e == "number") 36341 return e; 36342 if (Ewe(e)) 36343 return uN; 36344 if (cN(e)) { 36345 var t = typeof e.valueOf == "function" ? e.valueOf() : e; 36346 e = cN(t) ? t + "" : t 36347 } 36348 if (typeof e != "string") 36349 return e === 0 ? e : +e; 36350 e = Awe(e); 36351 var n = Nwe.test(e); 36352 return n || Mwe.test(e) ? kwe(e.slice(2), n ? 2 : 8) : jwe.test(e) ? uN : +e 36353} 36354var k6 = Rwe 36355 , Dwe = Wa 36356 , Mx = bwe 36357 , dN = k6 36358 , Iwe = "Expected a function" 36359 , $we = Math.max 36360 , Lwe = Math.min; 36361function Fwe(e, t, n) { 36362 var r, i, o, a, s, l, c = 0, u = !1, d = !1, f = !0; 36363 if (typeof e != "function") 36364 throw new TypeError(Iwe); 36365 t = dN(t) || 0, 36366 Dwe(n) && (u = !!n.leading, 36367 d = "maxWait"in n, 36368 o = d ? $we(dN(n.maxWait) || 0, t) : o, 36369 f = "trailing"in n ? !!n.trailing : f); 36370 function p(_) { 36371 var T = r 36372 , C = i; 36373 return r = i = void 0, 36374 c = _, 36375 a = e.apply(C, T),
vendor: 24,274 bytes, lines 36376-37237
36376 a 36377 } 36378 function g(_) { 36379 return c = _, 36380 s = setTimeout(v, t), 36381 u ? p(_) : a 36382 } 36383 function m(_) { 36384 var T = _ - l 36385 , C = _ - c 36386 , O = t - T; 36387 return d ? Lwe(O, o - C) : O 36388 } 36389 function x(_) { 36390 var T = _ - l 36391 , C = _ - c; 36392 return l === void 0 || T >= t || T < 0 || d && C >= o 36393 } 36394 function v() { 36395 var _ = Mx(); 36396 if (x(_)) 36397 return y(_); 36398 s = setTimeout(v, m(_)) 36399 } 36400 function y(_) { 36401 return s = void 0, 36402 f && r ? p(_) : (r = i = void 0, 36403 a) 36404 } 36405 function w() { 36406 s !== void 0 && clearTimeout(s), 36407 c = 0, 36408 r = l = i = s = void 0 36409 } 36410 function P() { 36411 return s === void 0 ? a : y(Mx()) 36412 } 36413 function S() { 36414 var _ = Mx() 36415 , T = x(_); 36416 if (r = arguments, 36417 i = this, 36418 l = _, 36419 T) { 36420 if (s === void 0) 36421 return g(l); 36422 if (d) 36423 return clearTimeout(s), 36424 s = setTimeout(v, t), 36425 p(l) 36426 } 36427 return s === void 0 && (s = setTimeout(v, t)), 36428 a 36429 } 36430 return S.cancel = w, 36431 S.flush = P, 36432 S 36433} 36434var Bwe = Fwe 36435 , Vwe = Bwe 36436 , Uwe = Wa 36437 , zwe = "Expected a function"; 36438function Wwe(e, t, n) { 36439 var r = !0 36440 , i = !0; 36441 if (typeof e != "function") 36442 throw new TypeError(zwe); 36443 return Uwe(n) && (r = "leading"in n ? !!n.leading : r, 36444 i = "trailing"in n ? !!n.trailing : i), 36445 Vwe(e, t, { 36446 leading: r, 36447 maxWait: t, 36448 trailing: i 36449 }) 36450} 36451var Hwe = Wwe; 36452const R6 = lt(Hwe); 36453function Sf(e) { 36454 "@babel/helpers - typeof"; 36455 return Sf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 36456 return typeof t 36457 } 36458 : function(t) { 36459 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 36460 } 36461 , 36462 Sf(e) 36463} 36464function fN(e, t) { 36465 var n = Object.keys(e); 36466 if (Object.getOwnPropertySymbols) { 36467 var r = Object.getOwnPropertySymbols(e); 36468 t && (r = r.filter(function(i) { 36469 return Object.getOwnPropertyDescriptor(e, i).enumerable 36470 })), 36471 n.push.apply(n, r) 36472 } 36473 return n 36474} 36475function Dp(e) { 36476 for (var t = 1; t < arguments.length; t++) { 36477 var n = arguments[t] != null ? arguments[t] : {}; 36478 t % 2 ? fN(Object(n), !0).forEach(function(r) { 36479 qwe(e, r, n[r]) 36480 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fN(Object(n)).forEach(function(r) { 36481 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 36482 }) 36483 } 36484 return e 36485} 36486function qwe(e, t, n) { 36487 return t = Kwe(t), 36488 t in e ? Object.defineProperty(e, t, { 36489 value: n, 36490 enumerable: !0, 36491 configurable: !0, 36492 writable: !0 36493 }) : e[t] = n, 36494 e 36495} 36496function Kwe(e) { 36497 var t = Gwe(e, "string"); 36498 return Sf(t) == "symbol" ? t : t + "" 36499} 36500function Gwe(e, t) { 36501 if (Sf(e) != "object" || !e) 36502 return e; 36503 var n = e[Symbol.toPrimitive]; 36504 if (n !== void 0) { 36505 var r = n.call(e, t || "default"); 36506 if (Sf(r) != "object") 36507 return r; 36508 throw new TypeError("@@toPrimitive must return a primitive value.") 36509 } 36510 return (t === "string" ? String : Number)(e) 36511} 36512function Ywe(e, t) { 36513 return Jwe(e) || Zwe(e, t) || Qwe(e, t) || Xwe() 36514} 36515function Xwe() { 36516 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 36517In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 36518} 36519function Qwe(e, t) { 36520 if (e) { 36521 if (typeof e == "string") 36522 return hN(e, t); 36523 var n = Object.prototype.toString.call(e).slice(8, -1); 36524 if (n === "Object" && e.constructor && (n = e.constructor.name), 36525 n === "Map" || n === "Set") 36526 return Array.from(e); 36527 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 36528 return hN(e, t) 36529 } 36530} 36531function hN(e, t) { 36532 (t == null || t > e.length) && (t = e.length); 36533 for (var n = 0, r = new Array(t); n < t; n++) 36534 r[n] = e[n]; 36535 return r 36536} 36537function Zwe(e, t) { 36538 var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; 36539 if (n != null) { 36540 var r, i, o, a, s = [], l = !0, c = !1; 36541 try { 36542 if (o = (n = n.call(e)).next, 36543 t !== 0) 36544 for (; !(l = (r = o.call(n)).done) && (s.push(r.value), 36545 s.length !== t); l = !0) 36546 ; 36547 } catch (u) { 36548 c = !0, 36549 i = u 36550 } finally { 36551 try { 36552 if (!l && n.return != null && (a = n.return(), 36553 Object(a) !== a)) 36554 return 36555 } finally { 36556 if (c) 36557 throw i 36558 } 36559 } 36560 return s 36561 } 36562} 36563function Jwe(e) { 36564 if (Array.isArray(e)) 36565 return e 36566} 36567var e1e = b.forwardRef(function(e, t) { 36568 var n = e.aspect 36569 , r = e.initialDimension 36570 , i = r === void 0 ? { 36571 width: -1, 36572 height: -1 36573 } : r 36574 , o = e.width 36575 , a = o === void 0 ? "100%" : o 36576 , s = e.height 36577 , l = s === void 0 ? "100%" : s 36578 , c = e.minWidth 36579 , u = c === void 0 ? 0 : c 36580 , d = e.minHeight 36581 , f = e.maxHeight 36582 , p = e.children 36583 , g = e.debounce 36584 , m = g === void 0 ? 0 : g 36585 , x = e.id 36586 , v = e.className 36587 , y = e.onResize 36588 , w = e.style 36589 , P = w === void 0 ? {} : w 36590 , S = b.useRef(null) 36591 , _ = b.useRef(); 36592 _.current = y, 36593 b.useImperativeHandle(t, function() { 36594 return Object.defineProperty(S.current, "current", { 36595 get: function() { 36596 return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."), 36597 S.current 36598 }, 36599 configurable: !0 36600 }) 36601 }); 36602 var T = b.useState({ 36603 containerWidth: i.width, 36604 containerHeight: i.height 36605 }) 36606 , C = Ywe(T, 2) 36607 , O = C[0] 36608 , A = C[1] 36609 , E = b.useCallback(function($, R) { 36610 A(function(L) { 36611 var B = Math.round($) 36612 , U = Math.round(R); 36613 return L.containerWidth === B && L.containerHeight === U ? L : { 36614 containerWidth: B, 36615 containerHeight: U 36616 } 36617 }) 36618 }, []); 36619 b.useEffect(function() { 36620 var $ = function(D) { 36621 var W, K = D[0].contentRect, G = K.width, ae = K.height; 36622 E(G, ae), 36623 (W = _.current) === null || W === void 0 || W.call(_, G, ae) 36624 }; 36625 m > 0 && ($ = R6($, m, { 36626 trailing: !0, 36627 leading: !1 36628 })); 36629 var R = new ResizeObserver($) 36630 , L = S.current.getBoundingClientRect() 36631 , B = L.width 36632 , U = L.height; 36633 return E(B, U), 36634 R.observe(S.current), 36635 function() { 36636 R.disconnect() 36637 } 36638 }, [E, m]); 36639 var j = b.useMemo(function() { 36640 var $ = O.containerWidth 36641 , R = O.containerHeight; 36642 if ($ < 0 || R < 0) 36643 return null; 36644 Os(fs(a) || fs(l), `The width(%s) and height(%s) are both fixed numbers, 36645 maybe you don't need to use a ResponsiveContainer.`, a, l), 36646 Os(!n || n > 0, "The aspect(%s) must be greater than zero.", n); 36647 var L = fs(a) ? $ : a 36648 , B = fs(l) ? R : l; 36649 n && n > 0 && (L ? B = L / n : B && (L = B * n), 36650 f && B > f && (B = f)), 36651 Os(L > 0 || B > 0, `The width(%s) and height(%s) of chart should be greater than 0, 36652 please check the style of container, or the props width(%s) and height(%s), 36653 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 36654 height and width.`, L, B, a, l, u, d, n); 36655 var U = !Array.isArray(p) && yo(p.type).endsWith("Chart"); 36656 return k.Children.map(p, function(N) { 36657 return k.isValidElement(N) ? b.cloneElement(N, Dp({ 36658 width: L, 36659 height: B 36660 }, U ? { 36661 style: Dp({ 36662 height: "100%", 36663 width: "100%", 36664 maxHeight: B, 36665 maxWidth: L 36666 }, N.props.style) 36667 } : {})) : N 36668 }) 36669 }, [n, p, l, f, d, u, O, a]); 36670 return k.createElement("div", { 36671 id: x ? "".concat(x) : void 0, 36672 className: Ge("recharts-responsive-container", v), 36673 style: Dp(Dp({}, P), {}, { 36674 width: a, 36675 height: l, 36676 minWidth: u, 36677 minHeight: d, 36678 maxHeight: f 36679 }), 36680 ref: S 36681 }, j) 36682}) 36683 , D6 = function(t) { 36684 return null 36685}; 36686D6.displayName = "Cell"; 36687function Pf(e) { 36688 "@babel/helpers - typeof"; 36689 return Pf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 36690 return typeof t 36691 } 36692 : function(t) { 36693 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 36694 } 36695 , 36696 Pf(e) 36697} 36698function pN(e, t) { 36699 var n = Object.keys(e); 36700 if (Object.getOwnPropertySymbols) { 36701 var r = Object.getOwnPropertySymbols(e); 36702 t && (r = r.filter(function(i) { 36703 return Object.getOwnPropertyDescriptor(e, i).enumerable 36704 })), 36705 n.push.apply(n, r) 36706 } 36707 return n 36708} 36709function E1(e) { 36710 for (var t = 1; t < arguments.length; t++) { 36711 var n = arguments[t] != null ? arguments[t] : {}; 36712 t % 2 ? pN(Object(n), !0).forEach(function(r) { 36713 t1e(e, r, n[r]) 36714 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pN(Object(n)).forEach(function(r) { 36715 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 36716 }) 36717 } 36718 return e 36719} 36720function t1e(e, t, n) { 36721 return t = n1e(t), 36722 t in e ? Object.defineProperty(e, t, { 36723 value: n, 36724 enumerable: !0, 36725 configurable: !0, 36726 writable: !0 36727 }) : e[t] = n, 36728 e 36729} 36730function n1e(e) { 36731 var t = r1e(e, "string"); 36732 return Pf(t) == "symbol" ? t : t + "" 36733} 36734function r1e(e, t) { 36735 if (Pf(e) != "object" || !e) 36736 return e; 36737 var n = e[Symbol.toPrimitive]; 36738 if (n !== void 0) { 36739 var r = n.call(e, t || "default"); 36740 if (Pf(r) != "object") 36741 return r; 36742 throw new TypeError("@@toPrimitive must return a primitive value.") 36743 } 36744 return (t === "string" ? String : Number)(e) 36745} 36746var hl = { 36747 widthCache: {}, 36748 cacheCount: 0 36749} 36750 , i1e = 2e3 36751 , o1e = { 36752 position: "absolute", 36753 top: "-20000px", 36754 left: 0, 36755 padding: 0, 36756 margin: 0, 36757 border: "none", 36758 whiteSpace: "pre" 36759} 36760 , mN = "recharts_measurement_span"; 36761function a1e(e) { 36762 var t = E1({}, e); 36763 return Object.keys(t).forEach(function(n) { 36764 t[n] || delete t[n] 36765 }), 36766 t 36767} 36768var Dd = function(t) { 36769 var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; 36770 if (t == null || ba.isSsr) 36771 return { 36772 width: 0, 36773 height: 0 36774 }; 36775 var r = a1e(n) 36776 , i = JSON.stringify({ 36777 text: t, 36778 copyStyle: r 36779 }); 36780 if (hl.widthCache[i]) 36781 return hl.widthCache[i]; 36782 try { 36783 var o = document.getElementById(mN); 36784 o || (o = document.createElement("span"), 36785 o.setAttribute("id", mN), 36786 o.setAttribute("aria-hidden", "true"), 36787 document.body.appendChild(o)); 36788 var a = E1(E1({}, o1e), r); 36789 Object.assign(o.style, a), 36790 o.textContent = "".concat(t); 36791 var s = o.getBoundingClientRect() 36792 , l = { 36793 width: s.width, 36794 height: s.height 36795 }; 36796 return hl.widthCache[i] = l, 36797 ++hl.cacheCount > i1e && (hl.cacheCount = 0, 36798 hl.widthCache = {}), 36799 l 36800 } catch { 36801 return { 36802 width: 0, 36803 height: 0 36804 } 36805 } 36806} 36807 , s1e = function(t) { 36808 return { 36809 top: t.top + window.scrollY - document.documentElement.clientTop, 36810 left: t.left + window.scrollX - document.documentElement.clientLeft 36811 } 36812}; 36813function _f(e) { 36814 "@babel/helpers - typeof"; 36815 return _f = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 36816 return typeof t 36817 } 36818 : function(t) { 36819 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 36820 } 36821 , 36822 _f(e) 36823} 36824function Og(e, t) { 36825 return d1e(e) || u1e(e, t) || c1e(e, t) || l1e() 36826} 36827function l1e() { 36828 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 36829In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 36830} 36831function c1e(e, t) { 36832 if (e) { 36833 if (typeof e == "string") 36834 return gN(e, t); 36835 var n = Object.prototype.toString.call(e).slice(8, -1); 36836 if (n === "Object" && e.constructor && (n = e.constructor.name), 36837 n === "Map" || n === "Set") 36838 return Array.from(e); 36839 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 36840 return gN(e, t) 36841 } 36842} 36843function gN(e, t) { 36844 (t == null || t > e.length) && (t = e.length); 36845 for (var n = 0, r = new Array(t); n < t; n++) 36846 r[n] = e[n]; 36847 return r 36848} 36849function u1e(e, t) { 36850 var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; 36851 if (n != null) { 36852 var r, i, o, a, s = [], l = !0, c = !1; 36853 try { 36854 if (o = (n = n.call(e)).next, 36855 t === 0) { 36856 if (Object(n) !== n) 36857 return; 36858 l = !1 36859 } else 36860 for (; !(l = (r = o.call(n)).done) && (s.push(r.value), 36861 s.length !== t); l = !0) 36862 ; 36863 } catch (u) { 36864 c = !0, 36865 i = u 36866 } finally { 36867 try { 36868 if (!l && n.return != null && (a = n.return(), 36869 Object(a) !== a)) 36870 return 36871 } finally { 36872 if (c) 36873 throw i 36874 } 36875 } 36876 return s 36877 } 36878} 36879function d1e(e) { 36880 if (Array.isArray(e)) 36881 return e 36882} 36883function f1e(e, t) { 36884 if (!(e instanceof t)) 36885 throw new TypeError("Cannot call a class as a function") 36886} 36887function yN(e, t) { 36888 for (var n = 0; n < t.length; n++) { 36889 var r = t[n]; 36890 r.enumerable = r.enumerable || !1, 36891 r.configurable = !0, 36892 "value"in r && (r.writable = !0), 36893 Object.defineProperty(e, p1e(r.key), r) 36894 } 36895} 36896function h1e(e, t, n) { 36897 return t && yN(e.prototype, t), 36898 n && yN(e, n), 36899 Object.defineProperty(e, "prototype", { 36900 writable: !1 36901 }), 36902 e 36903} 36904function p1e(e) { 36905 var t = m1e(e, "string"); 36906 return _f(t) == "symbol" ? t : t + "" 36907} 36908function m1e(e, t) { 36909 if (_f(e) != "object" || !e) 36910 return e; 36911 var n = e[Symbol.toPrimitive]; 36912 if (n !== void 0) { 36913 var r = n.call(e, t); 36914 if (_f(r) != "object") 36915 return r; 36916 throw new TypeError("@@toPrimitive must return a primitive value.") 36917 } 36918 return String(e) 36919} 36920var vN = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/ 36921 , xN = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/ 36922 , g1e = /^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/ 36923 , y1e = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/ 36924 , I6 = { 36925 cm: 96 / 2.54, 36926 mm: 96 / 25.4, 36927 pt: 96 / 72, 36928 pc: 96 / 6, 36929 in: 96, 36930 Q: 96 / (2.54 * 40), 36931 px: 1 36932} 36933 , v1e = Object.keys(I6) 36934 , Il = "NaN"; 36935function x1e(e, t) { 36936 return e * I6[t] 36937} 36938var Ip = function() { 36939 function e(t, n) { 36940 f1e(this, e), 36941 this.num = t, 36942 this.unit = n, 36943 this.num = t, 36944 this.unit = n, 36945 Number.isNaN(t) && (this.unit = ""), 36946 n !== "" && !g1e.test(n) && (this.num = NaN, 36947 this.unit = ""), 36948 v1e.includes(n) && (this.num = x1e(t, n), 36949 this.unit = "px") 36950 } 36951 return h1e(e, [{ 36952 key: "add", 36953 value: function(n) { 36954 return this.unit !== n.unit ? new e(NaN,"") : new e(this.num + n.num,this.unit) 36955 } 36956 }, { 36957 key: "subtract", 36958 value: function(n) { 36959 return this.unit !== n.unit ? new e(NaN,"") : new e(this.num - n.num,this.unit) 36960 } 36961 }, { 36962 key: "multiply", 36963 value: function(n) { 36964 return this.unit !== "" && n.unit !== "" && this.unit !== n.unit ? new e(NaN,"") : new e(this.num * n.num,this.unit || n.unit) 36965 } 36966 }, { 36967 key: "divide", 36968 value: function(n) { 36969 return this.unit !== "" && n.unit !== "" && this.unit !== n.unit ? new e(NaN,"") : new e(this.num / n.num,this.unit || n.unit) 36970 } 36971 }, { 36972 key: "toString", 36973 value: function() { 36974 return "".concat(this.num).concat(this.unit) 36975 } 36976 }, { 36977 key: "isNaN", 36978 value: function() { 36979 return Number.isNaN(this.num) 36980 } 36981 }], [{ 36982 key: "parse", 36983 value: function(n) { 36984 var r, i = (r = y1e.exec(n)) !== null && r !== void 0 ? r : [], o = Og(i, 3), a = o[1], s = o[2]; 36985 return new e(parseFloat(a),s ?? "") 36986 } 36987 }]) 36988}(); 36989function $6(e) { 36990 if (e.includes(Il)) 36991 return Il; 36992 for (var t = e; t.includes("*") || t.includes("/"); ) { 36993 var n, r = (n = vN.exec(t)) !== null && n !== void 0 ? n : [], i = Og(r, 4), o = i[1], a = i[2], s = i[3], l = Ip.parse(o ?? ""), c = Ip.parse(s ?? ""), u = a === "*" ? l.multiply(c) : l.divide(c); 36994 if (u.isNaN()) 36995 return Il; 36996 t = t.replace(vN, u.toString()) 36997 } 36998 for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t); ) { 36999 var d, f = (d = xN.exec(t)) !== null && d !== void 0 ? d : [], p = Og(f, 4), g = p[1], m = p[2], x = p[3], v = Ip.parse(g ?? ""), y = Ip.parse(x ?? ""), w = m === "+" ? v.add(y) : v.subtract(y); 37000 if (w.isNaN()) 37001 return Il; 37002 t = t.replace(xN, w.toString()) 37003 } 37004 return t 37005} 37006var bN = /\(([^()]*)\)/; 37007function b1e(e) { 37008 for (var t = e; t.includes("("); ) { 37009 var n = bN.exec(t) 37010 , r = Og(n, 2) 37011 , i = r[1]; 37012 t = t.replace(bN, $6(i)) 37013 } 37014 return t 37015} 37016function w1e(e) { 37017 var t = e.replace(/\s+/g, ""); 37018 return t = b1e(t), 37019 t = $6(t), 37020 t 37021} 37022function S1e(e) { 37023 try { 37024 return w1e(e) 37025 } catch { 37026 return Il 37027 } 37028} 37029function kx(e) { 37030 var t = S1e(e.slice(5, -1)); 37031 return t === Il ? "" : t 37032} 37033var P1e = ["x", "y", "lineHeight", "capHeight", "scaleToFit", "textAnchor", "verticalAnchor", "fill"] 37034 , _1e = ["dx", "dy", "angle", "className", "breakAll"]; 37035function j1() { 37036 return j1 = Object.assign ? Object.assign.bind() : function(e) { 37037 for (var t = 1; t < arguments.length; t++) { 37038 var n = arguments[t]; 37039 for (var r in n) 37040 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 37041 } 37042 return e 37043 } 37044 , 37045 j1.apply(this, arguments) 37046} 37047function wN(e, t) { 37048 if (e == null) 37049 return {}; 37050 var n = T1e(e, t), r, i; 37051 if (Object.getOwnPropertySymbols) { 37052 var o = Object.getOwnPropertySymbols(e); 37053 for (i = 0; i < o.length; i++) 37054 r = o[i], 37055 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 37056 } 37057 return n 37058} 37059function T1e(e, t) { 37060 if (e == null) 37061 return {}; 37062 var n = {}; 37063 for (var r in e) 37064 if (Object.prototype.hasOwnProperty.call(e, r)) { 37065 if (t.indexOf(r) >= 0) 37066 continue; 37067 n[r] = e[r] 37068 } 37069 return n 37070} 37071function SN(e, t) { 37072 return E1e(e) || A1e(e, t) || O1e(e, t) || C1e() 37073} 37074function C1e() { 37075 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 37076In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 37077} 37078function O1e(e, t) { 37079 if (e) { 37080 if (typeof e == "string") 37081 return PN(e, t); 37082 var n = Object.prototype.toString.call(e).slice(8, -1); 37083 if (n === "Object" && e.constructor && (n = e.constructor.name), 37084 n === "Map" || n === "Set") 37085 return Array.from(e); 37086 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 37087 return PN(e, t) 37088 } 37089} 37090function PN(e, t) { 37091 (t == null || t > e.length) && (t = e.length); 37092 for (var n = 0, r = new Array(t); n < t; n++) 37093 r[n] = e[n]; 37094 return r 37095} 37096function A1e(e, t) { 37097 var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; 37098 if (n != null) { 37099 var r, i, o, a, s = [], l = !0, c = !1; 37100 try { 37101 if (o = (n = n.call(e)).next, 37102 t === 0) { 37103 if (Object(n) !== n) 37104 return; 37105 l = !1 37106 } else 37107 for (; !(l = (r = o.call(n)).done) && (s.push(r.value), 37108 s.length !== t); l = !0) 37109 ; 37110 } catch (u) { 37111 c = !0, 37112 i = u 37113 } finally { 37114 try { 37115 if (!l && n.return != null && (a = n.return(), 37116 Object(a) !== a)) 37117 return 37118 } finally { 37119 if (c) 37120 throw i 37121 } 37122 } 37123 return s 37124 } 37125} 37126function E1e(e) { 37127 if (Array.isArray(e)) 37128 return e 37129} 37130var L6 = /[ \f\n\r\t\v\u2028\u2029]+/ 37131 , F6 = function(t) { 37132 var n = t.children 37133 , r = t.breakAll 37134 , i = t.style; 37135 try { 37136 var o = []; 37137 et(n) || (r ? o = n.toString().split("") : o = n.toString().split(L6)); 37138 var a = o.map(function(l) { 37139 return { 37140 word: l, 37141 width: Dd(l, i).width 37142 } 37143 }) 37144 , s = r ? 0 : Dd(" ", i).width; 37145 return { 37146 wordsWithComputedWidth: a, 37147 spaceWidth: s 37148 } 37149 } catch { 37150 return null 37151 } 37152} 37153 , j1e = function(t, n, r, i, o) { 37154 var a = t.maxLines 37155 , s = t.children 37156 , l = t.style 37157 , c = t.breakAll 37158 , u = le(a) 37159 , d = s 37160 , f = function() { 37161 var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; 37162 return L.reduce(function(B, U) { 37163 var N = U.word 37164 , D = U.width 37165 , W = B[B.length - 1]; 37166 if (W && (i == null || o || W.width + D + r < Number(i))) 37167 W.words.push(N), 37168 W.width += D + r; 37169 else { 37170 var K = { 37171 words: [N], 37172 width: D 37173 }; 37174 B.push(K) 37175 } 37176 return B 37177 }, []) 37178 } 37179 , p = f(n) 37180 , g = function(L) { 37181 return L.reduce(function(B, U) { 37182 return B.width > U.width ? B : U 37183 }) 37184 }; 37185 if (!u) 37186 return p; 37187 for (var m = "…", x = function(L) { 37188 var B = d.slice(0, L) 37189 , U = F6({ 37190 breakAll: c, 37191 style: l, 37192 children: B + m 37193 }).wordsWithComputedWidth 37194 , N = f(U) 37195 , D = N.length > a || g(N).width > Number(i); 37196 return [D, N] 37197 }, v = 0, y = d.length - 1, w = 0, P; v <= y && w <= d.length - 1; ) { 37198 var S = Math.floor((v + y) / 2) 37199 , _ = S - 1 37200 , T = x(_) 37201 , C = SN(T, 2) 37202 , O = C[0] 37203 , A = C[1] 37204 , E = x(S) 37205 , j = SN(E, 1) 37206 , $ = j[0]; 37207 if (!O && !$ && (v = S + 1), 37208 O && $ && (y = S - 1), 37209 !O && $) { 37210 P = A; 37211 break 37212 } 37213 w++ 37214 } 37215 return P || p 37216} 37217 , _N = function(t) { 37218 var n = et(t) ? [] : t.toString().split(L6); 37219 return [{ 37220 words: n 37221 }] 37222} 37223 , N1e = function(t) { 37224 var n = t.width 37225 , r = t.scaleToFit 37226 , i = t.children 37227 , o = t.style 37228 , a = t.breakAll 37229 , s = t.maxLines; 37230 if ((n || r) && !ba.isSsr) { 37231 var l, c, u = F6({ 37232 breakAll: a, 37233 children: i, 37234 style: o 37235 }); 37236 if (u) { 37237 var d = u.wordsWithComputedWidth
37238 , f = u.spaceWidth; 37239 l = d, 37240 c = f 37241 } else 37242 return _N(i); 37243 return j1e({ 37244 breakAll: a, 37245 children: i, 37246 maxLines: s, 37247 style: o 37248 }, l, c, n, r) 37249 } 37250 return _N(i) 37251} 37252 , TN = "#808080" 37253 , Ag = function(t) { 37254 var n = t.x 37255 , r = n === void 0 ? 0 : n 37256 , i = t.y 37257 , o = i === void 0 ? 0 : i 37258 , a = t.lineHeight 37259 , s = a === void 0 ? "1em" : a 37260 , l = t.capHeight 37261 , c = l === void 0 ? "0.71em" : l 37262 , u = t.scaleToFit 37263 , d = u === void 0 ? !1 : u 37264 , f = t.textAnchor 37265 , p = f === void 0 ? "start" : f 37266 , g = t.verticalAnchor 37267 , m = g === void 0 ? "end" : g 37268 , x = t.fill 37269 , v = x === void 0 ? TN : x 37270 , y = wN(t, P1e) 37271 , w = b.useMemo(function() { 37272 return N1e({ 37273 breakAll: y.breakAll, 37274 children: y.children, 37275 maxLines: y.maxLines, 37276 scaleToFit: d, 37277 style: y.style, 37278 width: y.width 37279 }) 37280 }, [y.breakAll, y.children, y.maxLines, d, y.style, y.width]) 37281 , P = y.dx 37282 , S = y.dy 37283 , _ = y.angle 37284 , T = y.className 37285 , C = y.breakAll 37286 , O = wN(y, _1e); 37287 if (!tn(r) || !tn(o)) 37288 return null; 37289 var A = r + (le(P) ? P : 0), E = o + (le(S) ? S : 0), j; 37290 switch (m) { 37291 case "start": 37292 j = kx("calc(".concat(c, ")")); 37293 break; 37294 case "middle": 37295 j = kx("calc(".concat((w.length - 1) / 2, " * -").concat(s, " + (").concat(c, " / 2))")); 37296 break; 37297 default: 37298 j = kx("calc(".concat(w.length - 1, " * -").concat(s, ")")); 37299 break 37300 } 37301 var $ = []; 37302 if (d) { 37303 var R = w[0].width 37304 , L = y.width; 37305 $.push("scale(".concat((le(L) ? L / R : 1) / R, ")")) 37306 } 37307 return _ && $.push("rotate(".concat(_, ", ").concat(A, ", ").concat(E, ")")), 37308 $.length && (O.transform = $.join(" ")), 37309 k.createElement("text", j1({}, Je(O, !0), { 37310 x: A, 37311 y: E, 37312 className: Ge("recharts-text", T), 37313 textAnchor: p, 37314 fill: v.includes("url") ? TN : v 37315 }), w.map(function(B, U) { 37316 var N = B.words.join(C ? "" : " "); 37317 return k.createElement("tspan", { 37318 x: A, 37319 dy: U === 0 ? j : s, 37320 key: "".concat(N, "-").concat(U) 37321 }, N) 37322 })) 37323}; 37324function wa(e, t) { 37325 return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN 37326} 37327function M1e(e, t) { 37328 return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN 37329} 37330function $T(e) { 37331 let t, n, r; 37332 e.length !== 2 ? (t = wa, 37333 n = (s, l) => wa(e(s), l), 37334 r = (s, l) => e(s) - l) : (t = e === wa || e === M1e ? e : k1e, 37335 n = e, 37336 r = e); 37337 function i(s, l, c=0, u=s.length) { 37338 if (c < u) { 37339 if (t(l, l) !== 0) 37340 return u; 37341 do { 37342 const d = c + u >>> 1; 37343 n(s[d], l) < 0 ? c = d + 1 : u = d 37344 } while (c < u) 37345 } 37346 return c 37347 } 37348 function o(s, l, c=0, u=s.length) { 37349 if (c < u) { 37350 if (t(l, l) !== 0) 37351 return u; 37352 do { 37353 const d = c + u >>> 1; 37354 n(s[d], l) <= 0 ? c = d + 1 : u = d 37355 } while (c < u) 37356 } 37357 return c 37358 } 37359 function a(s, l, c=0, u=s.length) { 37360 const d = i(s, l, c, u - 1); 37361 return d > c && r(s[d - 1], l) > -r(s[d], l) ? d - 1 : d 37362 } 37363 return { 37364 left: i, 37365 center: a, 37366 right: o 37367 } 37368} 37369function k1e() { 37370 return 0 37371} 37372function B6(e) { 37373 return e === null ? NaN : +e 37374} 37375function *R1e(e, t) { 37376 for (let n of e) 37377 n != null && (n = +n) >= n && (yield n) 37378} 37379const D1e = $T(wa) 37380 , zh = D1e.right; 37381$T(B6).center; 37382class CN extends Map { 37383 constructor(t, n=L1e) { 37384 if (super(), 37385 Object.defineProperties(this, { 37386 _intern: { 37387 value: new Map 37388 }, 37389 _key: { 37390 value: n 37391 } 37392 }), 37393 t != null) 37394 for (const [r,i] of t) 37395 this.set(r, i) 37396 } 37397 get(t) { 37398 return super.get(ON(this, t)) 37399 } 37400 has(t) { 37401 return super.has(ON(this, t)) 37402 } 37403 set(t, n) { 37404 return super.set(I1e(this, t), n) 37405 } 37406 delete(t) { 37407 return super.delete($1e(this, t)) 37408 } 37409} 37410function ON({_intern: e, _key: t}, n) { 37411 const r = t(n); 37412 return e.has(r) ? e.get(r) : n 37413} 37414function I1e({_intern: e, _key: t}, n) { 37415 const r = t(n); 37416 return e.has(r) ? e.get(r) : (e.set(r, n), 37417 n) 37418} 37419function $1e({_intern: e, _key: t}, n) { 37420 const r = t(n); 37421 return e.has(r) && (n = e.get(r), 37422 e.delete(r)), 37423 n 37424} 37425function L1e(e) { 37426 return e !== null && typeof e == "object" ? e.valueOf() : e 37427} 37428function F1e(e=wa) { 37429 if (e === wa) 37430 return V6; 37431 if (typeof e != "function") 37432 throw new TypeError("compare is not a function"); 37433 return (t, n) => { 37434 const r = e(t, n); 37435 return r || r === 0 ? r : (e(n, n) === 0) - (e(t, t) === 0) 37436 } 37437} 37438function V6(e, t) { 37439 return (e == null || !(e >= e)) - (t == null || !(t >= t)) || (e < t ? -1 : e > t ? 1 : 0) 37440} 37441const B1e = Math.sqrt(50) 37442 , V1e = Math.sqrt(10) 37443 , U1e = Math.sqrt(2); 37444function Eg(e, t, n) { 37445 const r = (t - e) / Math.max(0, n) 37446 , i = Math.floor(Math.log10(r)) 37447 , o = r / Math.pow(10, i) 37448 , a = o >= B1e ? 10 : o >= V1e ? 5 : o >= U1e ? 2 : 1; 37449 let s, l, c; 37450 return i < 0 ? (c = Math.pow(10, -i) / a, 37451 s = Math.round(e * c), 37452 l = Math.round(t * c), 37453 s / c < e && ++s, 37454 l / c > t && --l, 37455 c = -c) : (c = Math.pow(10, i) * a, 37456 s = Math.round(e / c), 37457 l = Math.round(t / c), 37458 s * c < e && ++s, 37459 l * c > t && --l),
37460 l < s && .5 <= n && n < 2 ? Eg(e, t, n * 2) : [s, l, c] 37461} 37462function N1(e, t, n) { 37463 if (t = +t, 37464 e = +e, 37465 n = +n, 37466 !(n > 0)) 37467 return []; 37468 if (e === t) 37469 return [e]; 37470 const r = t < e 37471 , [i,o,a] = r ? Eg(t, e, n) : Eg(e, t, n); 37472 if (!(o >= i)) 37473 return []; 37474 const s = o - i + 1 37475 , l = new Array(s); 37476 if (r) 37477 if (a < 0) 37478 for (let c = 0; c < s; ++c) 37479 l[c] = (o - c) / -a; 37480 else 37481 for (let c = 0; c < s; ++c) 37482 l[c] = (o - c) * a; 37483 else if (a < 0) 37484 for (let c = 0; c < s; ++c) 37485 l[c] = (i + c) / -a; 37486 else 37487 for (let c = 0; c < s; ++c) 37488 l[c] = (i + c) * a; 37489 return l 37490} 37491function M1(e, t, n) { 37492 return t = +t, 37493 e = +e, 37494 n = +n, 37495 Eg(e, t, n)[2] 37496} 37497function k1(e, t, n) { 37498 t = +t, 37499 e = +e, 37500 n = +n; 37501 const r = t < e 37502 , i = r ? M1(t, e, n) : M1(e, t, n); 37503 return (r ? -1 : 1) * (i < 0 ? 1 / -i : i) 37504} 37505function AN(e, t) { 37506 let n; 37507 for (const r of e) 37508 r != null && (n < r || n === void 0 && r >= r) && (n = r); 37509 return n 37510} 37511function EN(e, t) { 37512 let n; 37513 for (const r of e) 37514 r != null && (n > r || n === void 0 && r >= r) && (n = r); 37515 return n 37516} 37517function U6(e, t, n=0, r=1 / 0, i) { 37518 if (t = Math.floor(t), 37519 n = Math.floor(Math.max(0, n)), 37520 r = Math.floor(Math.min(e.length - 1, r)), 37521 !(n <= t && t <= r)) 37522 return e; 37523 for (i = i === void 0 ? V6 : F1e(i); r > n; ) { 37524 if (r - n > 600) { 37525 const l = r - n + 1 37526 , c = t - n + 1 37527 , u = Math.log(l) 37528 , d = .5 * Math.exp(2 * u / 3) 37529 , f = .5 * Math.sqrt(u * d * (l - d) / l) * (c - l / 2 < 0 ? -1 : 1) 37530 , p = Math.max(n, Math.floor(t - c * d / l + f)) 37531 , g = Math.min(r, Math.floor(t + (l - c) * d / l + f)); 37532 U6(e, t, p, g, i) 37533 } 37534 const o = e[t]; 37535 let a = n 37536 , s = r; 37537 for (Vu(e, n, t), 37538 i(e[r], o) > 0 && Vu(e, n, r); a < s; ) { 37539 for (Vu(e, a, s), 37540 ++a, 37541 --s; i(e[a], o) < 0; ) 37542 ++a; 37543 for (; i(e[s], o) > 0; ) 37544 --s 37545 } 37546 i(e[n], o) === 0 ? Vu(e, n, s) : (++s, 37547 Vu(e, s, r)), 37548 s <= t && (n = s + 1), 37549 t <= s && (r = s - 1) 37550 } 37551 return e 37552} 37553function Vu(e, t, n) { 37554 const r = e[t]; 37555 e[t] = e[n], 37556 e[n] = r 37557} 37558function z1e(e, t, n) { 37559 if (e = Float64Array.from(R1e(e)), 37560 !(!(r = e.length) || isNaN(t = +t))) { 37561 if (t <= 0 || r < 2) 37562 return EN(e); 37563 if (t >= 1) 37564 return AN(e); 37565 var r, i = (r - 1) * t, o = Math.floor(i), a = AN(U6(e, o).subarray(0, o + 1)), s = EN(e.subarray(o + 1)); 37566 return a + (s - a) * (i - o) 37567 } 37568} 37569function W1e(e, t, n=B6) { 37570 if (!(!(r = e.length) || isNaN(t = +t))) { 37571 if (t <= 0 || r < 2) 37572 return +n(e[0], 0, e); 37573 if (t >= 1) 37574 return +n(e[r - 1], r - 1, e); 37575 var r, i = (r - 1) * t, o = Math.floor(i), a = +n(e[o], o, e), s = +n(e[o + 1], o + 1, e); 37576 return a + (s - a) * (i - o) 37577 } 37578} 37579function H1e(e, t, n) { 37580 e = +e, 37581 t = +t, 37582 n = (i = arguments.length) < 2 ? (t = e, 37583 e = 0, 37584 1) : i < 3 ? 1 : +n; 37585 for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, o = new Array(i); ++r < i; ) 37586 o[r] = e + r * n; 37587 return o 37588} 37589function Hr(e, t) { 37590 switch (arguments.length) { 37591 case 0: 37592 break; 37593 case 1: 37594 this.range(e); 37595 break; 37596 default: 37597 this.range(t).domain(e); 37598 break 37599 } 37600 return this 37601} 37602function $o(e, t) { 37603 switch (arguments.length) { 37604 case 0: 37605 break; 37606 case 1: 37607 { 37608 typeof e == "function" ? this.interpolator(e) : this.range(e); 37609 break 37610 } 37611 default: 37612 { 37613 this.domain(e), 37614 typeof t == "function" ? this.interpolator(t) : this.range(t); 37615 break 37616 } 37617 } 37618 return this 37619} 37620const R1 = Symbol("implicit"); 37621function LT() { 37622 var e = new CN 37623 , t = [] 37624 , n = [] 37625 , r = R1; 37626 function i(o) { 37627 let a = e.get(o); 37628 if (a === void 0) { 37629 if (r !== R1) 37630 return r; 37631 e.set(o, a = t.push(o) - 1) 37632 } 37633 return n[a % n.length] 37634 } 37635 return i.domain = function(o) { 37636 if (!arguments.length) 37637 return t.slice(); 37638 t = [], 37639 e = new CN; 37640 for (const a of o) 37641 e.has(a) || e.set(a, t.push(a) - 1); 37642 return i 37643 } 37644 , 37645 i.range = function(o) { 37646 return arguments.length ? (n = Array.from(o), 37647 i) : n.slice() 37648 } 37649 , 37650 i.unknown = function(o) { 37651 return arguments.length ? (r = o, 37652 i) : r 37653 } 37654 , 37655 i.copy = function() { 37656 return LT(t, n).unknown(r) 37657 } 37658 , 37659 Hr.apply(i, arguments), 37660 i 37661} 37662function Tf() { 37663 var e = LT().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, o, a, s = !1, l = 0, c = 0, u = .5; 37664 delete e.unknown; 37665 function d() { 37666 var f = t().length 37667 , p = i < r 37668 , g = p ? i : r 37669 , m = p ? r : i; 37670 o = (m - g) / Math.max(1, f - l + c * 2), 37671 s && (o = Math.floor(o)), 37672 g += (m - g - o * (f - l)) * u, 37673 a = o * (1 - l), 37674 s && (g = Math.round(g), 37675 a = Math.round(a)); 37676 var x = H1e(f).map(function(v) { 37677 return g + o * v 37678 }); 37679 return n(p ? x.reverse() : x) 37680 } 37681 return e.domain = function(f) { 37682 return arguments.length ? (t(f), 37683 d()) : t() 37684 } 37685 , 37686 e.range = function(f) { 37687 return arguments.length ? ([r,i] = f, 37688 r = +r, 37689 i = +i, 37690 d()) : [r, i] 37691 } 37692 , 37693 e.rangeRound = function(f) { 37694 return [r,i] = f, 37695 r = +r, 37696 i = +i, 37697 s = !0, 37698 d() 37699 } 37700 , 37701 e.bandwidth = function() { 37702 return a 37703 } 37704 ,
vendor: 6,488 bytes, lines 37705-37958
37705 e.step = function() { 37706 return o 37707 } 37708 , 37709 e.round = function(f) { 37710 return arguments.length ? (s = !!f, 37711 d()) : s 37712 } 37713 , 37714 e.padding = function(f) { 37715 return arguments.length ? (l = Math.min(1, c = +f), 37716 d()) : l 37717 } 37718 , 37719 e.paddingInner = function(f) { 37720 return arguments.length ? (l = Math.min(1, f), 37721 d()) : l 37722 } 37723 , 37724 e.paddingOuter = function(f) { 37725 return arguments.length ? (c = +f, 37726 d()) : c 37727 } 37728 , 37729 e.align = function(f) { 37730 return arguments.length ? (u = Math.max(0, Math.min(1, f)), 37731 d()) : u 37732 } 37733 , 37734 e.copy = function() { 37735 return Tf(t(), [r, i]).round(s).paddingInner(l).paddingOuter(c).align(u) 37736 } 37737 , 37738 Hr.apply(d(), arguments) 37739} 37740function z6(e) { 37741 var t = e.copy; 37742 return e.padding = e.paddingOuter, 37743 delete e.paddingInner, 37744 delete e.paddingOuter, 37745 e.copy = function() { 37746 return z6(t()) 37747 } 37748 , 37749 e 37750} 37751function Id() { 37752 return z6(Tf.apply(null, arguments).paddingInner(1)) 37753} 37754function FT(e, t, n) { 37755 e.prototype = t.prototype = n, 37756 n.constructor = e 37757} 37758function W6(e, t) { 37759 var n = Object.create(e.prototype); 37760 for (var r in t) 37761 n[r] = t[r]; 37762 return n 37763} 37764function Wh() {} 37765var Cf = .7 37766 , jg = 1 / Cf 37767 , Jl = "\\s*([+-]?\\d+)\\s*" 37768 , Of = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*" 37769 , Fi = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*" 37770 , q1e = /^#([0-9a-f]{3,8})$/ 37771 , K1e = new RegExp(`^rgb\\(${Jl},${Jl},${Jl}\\)$`) 37772 , G1e = new RegExp(`^rgb\\(${Fi},${Fi},${Fi}\\)$`) 37773 , Y1e = new RegExp(`^rgba\\(${Jl},${Jl},${Jl},${Of}\\)$`) 37774 , X1e = new RegExp(`^rgba\\(${Fi},${Fi},${Fi},${Of}\\)$`) 37775 , Q1e = new RegExp(`^hsl\\(${Of},${Fi},${Fi}\\)$`) 37776 , Z1e = new RegExp(`^hsla\\(${Of},${Fi},${Fi},${Of}\\)$`) 37777 , jN = { 37778 aliceblue: 15792383, 37779 antiquewhite: 16444375, 37780 aqua: 65535, 37781 aquamarine: 8388564, 37782 azure: 15794175, 37783 beige: 16119260, 37784 bisque: 16770244, 37785 black: 0, 37786 blanchedalmond: 16772045, 37787 blue: 255, 37788 blueviolet: 9055202, 37789 brown: 10824234, 37790 burlywood: 14596231, 37791 cadetblue: 6266528, 37792 chartreuse: 8388352, 37793 chocolate: 13789470, 37794 coral: 16744272, 37795 cornflowerblue: 6591981, 37796 cornsilk: 16775388, 37797 crimson: 14423100, 37798 cyan: 65535, 37799 darkblue: 139, 37800 darkcyan: 35723, 37801 darkgoldenrod: 12092939, 37802 darkgray: 11119017, 37803 darkgreen: 25600, 37804 darkgrey: 11119017, 37805 darkkhaki: 12433259, 37806 darkmagenta: 9109643, 37807 darkolivegreen: 5597999, 37808 darkorange: 16747520, 37809 darkorchid: 10040012, 37810 darkred: 9109504, 37811 darksalmon: 15308410, 37812 darkseagreen: 9419919, 37813 darkslateblue: 4734347, 37814 darkslategray: 3100495, 37815 darkslategrey: 3100495, 37816 darkturquoise: 52945, 37817 darkviolet: 9699539, 37818 deeppink: 16716947, 37819 deepskyblue: 49151, 37820 dimgray: 6908265, 37821 dimgrey: 6908265, 37822 dodgerblue: 2003199, 37823 firebrick: 11674146, 37824 floralwhite: 16775920, 37825 forestgreen: 2263842, 37826 fuchsia: 16711935, 37827 gainsboro: 14474460, 37828 ghostwhite: 16316671, 37829 gold: 16766720, 37830 goldenrod: 14329120, 37831 gray: 8421504, 37832 green: 32768, 37833 greenyellow: 11403055, 37834 grey: 8421504, 37835 honeydew: 15794160, 37836 hotpink: 16738740, 37837 indianred: 13458524, 37838 indigo: 4915330, 37839 ivory: 16777200, 37840 khaki: 15787660, 37841 lavender: 15132410, 37842 lavenderblush: 16773365, 37843 lawngreen: 8190976, 37844 lemonchiffon: 16775885, 37845 lightblue: 11393254, 37846 lightcoral: 15761536, 37847 lightcyan: 14745599, 37848 lightgoldenrodyellow: 16448210, 37849 lightgray: 13882323, 37850 lightgreen: 9498256, 37851 lightgrey: 13882323, 37852 lightpink: 16758465, 37853 lightsalmon: 16752762, 37854 lightseagreen: 2142890, 37855 lightskyblue: 8900346, 37856 lightslategray: 7833753, 37857 lightslategrey: 7833753, 37858 lightsteelblue: 11584734, 37859 lightyellow: 16777184, 37860 lime: 65280, 37861 limegreen: 3329330, 37862 linen: 16445670, 37863 magenta: 16711935, 37864 maroon: 8388608, 37865 mediumaquamarine: 6737322, 37866 mediumblue: 205, 37867 mediumorchid: 12211667, 37868 mediumpurple: 9662683, 37869 mediumseagreen: 3978097, 37870 mediumslateblue: 8087790, 37871 mediumspringgreen: 64154, 37872 mediumturquoise: 4772300, 37873 mediumvioletred: 13047173, 37874 midnightblue: 1644912, 37875 mintcream: 16121850, 37876 mistyrose: 16770273, 37877 moccasin: 16770229, 37878 navajowhite: 16768685, 37879 navy: 128, 37880 oldlace: 16643558, 37881 olive: 8421376, 37882 olivedrab: 7048739, 37883 orange: 16753920, 37884 orangered: 16729344, 37885 orchid: 14315734, 37886 palegoldenrod: 15657130, 37887 palegreen: 10025880, 37888 paleturquoise: 11529966, 37889 palevioletred: 14381203, 37890 papayawhip: 16773077, 37891 peachpuff: 16767673, 37892 peru: 13468991, 37893 pink: 16761035, 37894 plum: 14524637, 37895 powderblue: 11591910, 37896 purple: 8388736, 37897 rebeccapurple: 6697881, 37898 red: 16711680, 37899 rosybrown: 12357519, 37900 royalblue: 4286945, 37901 saddlebrown: 9127187, 37902 salmon: 16416882, 37903 sandybrown: 16032864, 37904 seagreen: 3050327, 37905 seashell: 16774638, 37906 sienna: 10506797, 37907 silver: 12632256, 37908 skyblue: 8900331, 37909 slateblue: 6970061, 37910 slategray: 7372944, 37911 slategrey: 7372944, 37912 snow: 16775930, 37913 springgreen: 65407, 37914 steelblue: 4620980, 37915 tan: 13808780, 37916 teal: 32896, 37917 thistle: 14204888, 37918 tomato: 16737095, 37919 turquoise: 4251856, 37920 violet: 15631086, 37921 wheat: 16113331, 37922 white: 16777215, 37923 whitesmoke: 16119285, 37924 yellow: 16776960, 37925 yellowgreen: 10145074 37926}; 37927FT(Wh, Af, { 37928 copy(e) { 37929 return Object.assign(new this.constructor, this, e) 37930 }, 37931 displayable() { 37932 return this.rgb().displayable() 37933 }, 37934 hex: NN, 37935 formatHex: NN, 37936 formatHex8: J1e, 37937 formatHsl: eSe, 37938 formatRgb: MN, 37939 toString: MN 37940}); 37941function NN() { 37942 return this.rgb().formatHex() 37943} 37944function J1e() { 37945 return this.rgb().formatHex8() 37946} 37947function eSe() { 37948 return H6(this).formatHsl() 37949} 37950function MN() { 37951 return this.rgb().formatRgb() 37952} 37953function Af(e) { 37954 var t, n; 37955 return e = (e + "").trim().toLowerCase(), 37956 (t = q1e.exec(e)) ? (n = t[1].length, 37957 t = parseInt(t[1], 16), 37958 n === 6 ? kN(t) : n === 3 ? new Zn(t >> 8 & 15 | t >> 4 & 240,t >> 4 & 15 | t & 240,(t & 15) << 4 | t & 15,1) : n === 8 ? $p(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? $p(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = K1e.exec(e)) ? new Zn(t[1],t[2],t[3],1) : (t = G1e.exec(e)) ? new Zn(t[1] * 255 / 100,t[2] * 255 / 100,t[3] * 25
vendor: 4,613 bytes, lines 37958-38105
379585 / 100,1) : (t = Y1e.exec(e)) ? $p(t[1], t[2], t[3], t[4]) : (t = X1e.exec(e)) ? $p(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Q1e.exec(e)) ? IN(t[1], t[2] / 100, t[3] / 100, 1) : (t = Z1e.exec(e)) ? IN(t[1], t[2] / 100, t[3] / 100, t[4]) : jN.hasOwnProperty(e) ? kN(jN[e]) : e === "transparent" ? new Zn(NaN,NaN,NaN,0) : null 37959} 37960function kN(e) { 37961 return new Zn(e >> 16 & 255,e >> 8 & 255,e & 255,1) 37962} 37963function $p(e, t, n, r) { 37964 return r <= 0 && (e = t = n = NaN), 37965 new Zn(e,t,n,r) 37966} 37967function tSe(e) { 37968 return e instanceof Wh || (e = Af(e)), 37969 e ? (e = e.rgb(), 37970 new Zn(e.r,e.g,e.b,e.opacity)) : new Zn 37971} 37972function D1(e, t, n, r) { 37973 return arguments.length === 1 ? tSe(e) : new Zn(e,t,n,r ?? 1) 37974} 37975function Zn(e, t, n, r) { 37976 this.r = +e, 37977 this.g = +t, 37978 this.b = +n, 37979 this.opacity = +r 37980} 37981FT(Zn, D1, W6(Wh, { 37982 brighter(e) { 37983 return e = e == null ? jg : Math.pow(jg, e), 37984 new Zn(this.r * e,this.g * e,this.b * e,this.opacity) 37985 }, 37986 darker(e) { 37987 return e = e == null ? Cf : Math.pow(Cf, e), 37988 new Zn(this.r * e,this.g * e,this.b * e,this.opacity) 37989 }, 37990 rgb() { 37991 return this 37992 }, 37993 clamp() { 37994 return new Zn(As(this.r),As(this.g),As(this.b),Ng(this.opacity)) 37995 }, 37996 displayable() { 37997 return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1 37998 }, 37999 hex: RN, 38000 formatHex: RN, 38001 formatHex8: nSe, 38002 formatRgb: DN, 38003 toString: DN 38004})); 38005function RN() { 38006 return `#${hs(this.r)}${hs(this.g)}${hs(this.b)}` 38007} 38008function nSe() { 38009 return `#${hs(this.r)}${hs(this.g)}${hs(this.b)}${hs((isNaN(this.opacity) ? 1 : this.opacity) * 255)}` 38010} 38011function DN() { 38012 const e = Ng(this.opacity); 38013 return `${e === 1 ? "rgb(" : "rgba("}${As(this.r)}, ${As(this.g)}, ${As(this.b)}${e === 1 ? ")" : `, ${e})`}` 38014} 38015function Ng(e) { 38016 return isNaN(e) ? 1 : Math.max(0, Math.min(1, e)) 38017} 38018function As(e) { 38019 return Math.max(0, Math.min(255, Math.round(e) || 0)) 38020} 38021function hs(e) { 38022 return e = As(e), 38023 (e < 16 ? "0" : "") + e.toString(16) 38024} 38025function IN(e, t, n, r) { 38026 return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), 38027 new ri(e,t,n,r) 38028} 38029function H6(e) { 38030 if (e instanceof ri) 38031 return new ri(e.h,e.s,e.l,e.opacity); 38032 if (e instanceof Wh || (e = Af(e)), 38033 !e) 38034 return new ri; 38035 if (e instanceof ri) 38036 return e; 38037 e = e.rgb(); 38038 var t = e.r / 255 38039 , n = e.g / 255 38040 , r = e.b / 255 38041 , i = Math.min(t, n, r) 38042 , o = Math.max(t, n, r) 38043 , a = NaN 38044 , s = o - i 38045 , l = (o + i) / 2; 38046 return s ? (t === o ? a = (n - r) / s + (n < r) * 6 : n === o ? a = (r - t) / s + 2 : a = (t - n) / s + 4, 38047 s /= l < .5 ? o + i : 2 - o - i, 38048 a *= 60) : s = l > 0 && l < 1 ? 0 : a, 38049 new ri(a,s,l,e.opacity) 38050} 38051function rSe(e, t, n, r) { 38052 return arguments.length === 1 ? H6(e) : new ri(e,t,n,r ?? 1) 38053} 38054function ri(e, t, n, r) { 38055 this.h = +e, 38056 this.s = +t, 38057 this.l = +n, 38058 this.opacity = +r 38059} 38060FT(ri, rSe, W6(Wh, { 38061 brighter(e) { 38062 return e = e == null ? jg : Math.pow(jg, e), 38063 new ri(this.h,this.s,this.l * e,this.opacity) 38064 }, 38065 darker(e) { 38066 return e = e == null ? Cf : Math.pow(Cf, e), 38067 new ri(this.h,this.s,this.l * e,this.opacity) 38068 }, 38069 rgb() { 38070 var e = this.h % 360 + (this.h < 0) * 360 38071 , t = isNaN(e) || isNaN(this.s) ? 0 : this.s 38072 , n = this.l 38073 , r = n + (n < .5 ? n : 1 - n) * t 38074 , i = 2 * n - r; 38075 return new Zn(Rx(e >= 240 ? e - 240 : e + 120, i, r),Rx(e, i, r),Rx(e < 120 ? e + 240 : e - 120, i, r),this.opacity) 38076 }, 38077 clamp() { 38078 return new ri($N(this.h),Lp(this.s),Lp(this.l),Ng(this.opacity)) 38079 }, 38080 displayable() { 38081 return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1 38082 }, 38083 formatHsl() { 38084 const e = Ng(this.opacity); 38085 return `${e === 1 ? "hsl(" : "hsla("}${$N(this.h)}, ${Lp(this.s) * 100}%, ${Lp(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}` 38086 } 38087})); 38088function $N(e) { 38089 return e = (e || 0) % 360, 38090 e < 0 ? e + 360 : e 38091} 38092function Lp(e) { 38093 return Math.max(0, Math.min(1, e || 0)) 38094} 38095function Rx(e, t, n) { 38096 return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255 38097} 38098const BT = e => () => e; 38099function iSe(e, t) { 38100 return function(n) { 38101 return e + n * t 38102 } 38103} 38104function oSe(e, t, n) { 38105 return e = Math.pow(e, n),
vendor: 14,909 bytes, lines 38106-38637
38106 t = Math.pow(t, n) - e, 38107 n = 1 / n, 38108 function(r) { 38109 return Math.pow(e + r * t, n) 38110 } 38111} 38112function aSe(e) { 38113 return (e = +e) == 1 ? q6 : function(t, n) { 38114 return n - t ? oSe(t, n, e) : BT(isNaN(t) ? n : t) 38115 } 38116} 38117function q6(e, t) { 38118 var n = t - e; 38119 return n ? iSe(e, n) : BT(isNaN(e) ? t : e) 38120} 38121const LN = function e(t) { 38122 var n = aSe(t); 38123 function r(i, o) { 38124 var a = n((i = D1(i)).r, (o = D1(o)).r) 38125 , s = n(i.g, o.g) 38126 , l = n(i.b, o.b) 38127 , c = q6(i.opacity, o.opacity); 38128 return function(u) { 38129 return i.r = a(u), 38130 i.g = s(u), 38131 i.b = l(u), 38132 i.opacity = c(u), 38133 i + "" 38134 } 38135 } 38136 return r.gamma = e, 38137 r 38138}(1); 38139function sSe(e, t) { 38140 t || (t = []); 38141 var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i; 38142 return function(o) { 38143 for (i = 0; i < n; ++i) 38144 r[i] = e[i] * (1 - o) + t[i] * o; 38145 return r 38146 } 38147} 38148function lSe(e) { 38149 return ArrayBuffer.isView(e) && !(e instanceof DataView) 38150} 38151function cSe(e, t) { 38152 var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = new Array(r), o = new Array(n), a; 38153 for (a = 0; a < r; ++a) 38154 i[a] = bu(e[a], t[a]); 38155 for (; a < n; ++a) 38156 o[a] = t[a]; 38157 return function(s) { 38158 for (a = 0; a < r; ++a) 38159 o[a] = i[a](s); 38160 return o 38161 } 38162} 38163function uSe(e, t) { 38164 var n = new Date; 38165 return e = +e, 38166 t = +t, 38167 function(r) { 38168 return n.setTime(e * (1 - r) + t * r), 38169 n 38170 } 38171} 38172function Mg(e, t) { 38173 return e = +e, 38174 t = +t, 38175 function(n) { 38176 return e * (1 - n) + t * n 38177 } 38178} 38179function dSe(e, t) { 38180 var n = {}, r = {}, i; 38181 (e === null || typeof e != "object") && (e = {}), 38182 (t === null || typeof t != "object") && (t = {}); 38183 for (i in t) 38184 i in e ? n[i] = bu(e[i], t[i]) : r[i] = t[i]; 38185 return function(o) { 38186 for (i in n) 38187 r[i] = n[i](o); 38188 return r 38189 } 38190} 38191var I1 = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g 38192 , Dx = new RegExp(I1.source,"g"); 38193function fSe(e) { 38194 return function() { 38195 return e 38196 } 38197} 38198function hSe(e) { 38199 return function(t) { 38200 return e(t) + "" 38201 } 38202} 38203function pSe(e, t) { 38204 var n = I1.lastIndex = Dx.lastIndex = 0, r, i, o, a = -1, s = [], l = []; 38205 for (e = e + "", 38206 t = t + ""; (r = I1.exec(e)) && (i = Dx.exec(t)); ) 38207 (o = i.index) > n && (o = t.slice(n, o), 38208 s[a] ? s[a] += o : s[++a] = o), 38209 (r = r[0]) === (i = i[0]) ? s[a] ? s[a] += i : s[++a] = i : (s[++a] = null, 38210 l.push({ 38211 i: a, 38212 x: Mg(r, i) 38213 })), 38214 n = Dx.lastIndex; 38215 return n < t.length && (o = t.slice(n), 38216 s[a] ? s[a] += o : s[++a] = o), 38217 s.length < 2 ? l[0] ? hSe(l[0].x) : fSe(t) : (t = l.length, 38218 function(c) { 38219 for (var u = 0, d; u < t; ++u) 38220 s[(d = l[u]).i] = d.x(c); 38221 return s.join("") 38222 } 38223 ) 38224} 38225function bu(e, t) { 38226 var n = typeof t, r; 38227 return t == null || n === "boolean" ? BT(t) : (n === "number" ? Mg : n === "string" ? (r = Af(t)) ? (t = r, 38228 LN) : pSe : t instanceof Af ? LN : t instanceof Date ? uSe : lSe(t) ? sSe : Array.isArray(t) ? cSe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? dSe : Mg)(e, t) 38229} 38230function VT(e, t) { 38231 return e = +e, 38232 t = +t, 38233 function(n) { 38234 return Math.round(e * (1 - n) + t * n) 38235 } 38236} 38237function mSe(e, t) { 38238 t === void 0 && (t = e, 38239 e = bu); 38240 for (var n = 0, r = t.length - 1, i = t[0], o = new Array(r < 0 ? 0 : r); n < r; ) 38241 o[n] = e(i, i = t[++n]); 38242 return function(a) { 38243 var s = Math.max(0, Math.min(r - 1, Math.floor(a *= r))); 38244 return o[s](a - s) 38245 } 38246} 38247function gSe(e) { 38248 return function() { 38249 return e 38250 } 38251} 38252function kg(e) { 38253 return +e 38254} 38255var FN = [0, 1]; 38256function Ln(e) { 38257 return e 38258} 38259function $1(e, t) { 38260 return (t -= e = +e) ? function(n) { 38261 return (n - e) / t 38262 } 38263 : gSe(isNaN(t) ? NaN : .5) 38264} 38265function ySe(e, t) { 38266 var n; 38267 return e > t && (n = e, 38268 e = t, 38269 t = n), 38270 function(r) { 38271 return Math.max(e, Math.min(t, r)) 38272 } 38273} 38274function vSe(e, t, n) { 38275 var r = e[0] 38276 , i = e[1] 38277 , o = t[0] 38278 , a = t[1]; 38279 return i < r ? (r = $1(i, r), 38280 o = n(a, o)) : (r = $1(r, i), 38281 o = n(o, a)), 38282 function(s) { 38283 return o(r(s)) 38284 } 38285} 38286function xSe(e, t, n) { 38287 var r = Math.min(e.length, t.length) - 1 38288 , i = new Array(r) 38289 , o = new Array(r) 38290 , a = -1; 38291 for (e[r] < e[0] && (e = e.slice().reverse(), 38292 t = t.slice().reverse()); ++a < r; ) 38293 i[a] = $1(e[a], e[a + 1]), 38294 o[a] = n(t[a], t[a + 1]); 38295 return function(s) { 38296 var l = zh(e, s, 1, r) - 1; 38297 return o[l](i[l](s)) 38298 } 38299} 38300function Hh(e, t) { 38301 return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown()) 38302} 38303function Kv() { 38304 var e = FN, t = FN, n = bu, r, i, o, a = Ln, s, l, c; 38305 function u() { 38306 var f = Math.min(e.length, t.length); 38307 return a !== Ln && (a = ySe(e[0], e[f - 1])), 38308 s = f > 2 ? xSe : vSe, 38309 l = c = null, 38310 d 38311 } 38312 function d(f) { 38313 return f == null || isNaN(f = +f) ? o : (l || (l = s(e.map(r), t, n)))(r(a(f))) 38314 } 38315 return d.invert = function(f) { 38316 return a(i((c || (c = s(t, e.map(r), Mg)))(f))) 38317 } 38318 , 38319 d.domain = function(f) { 38320 return arguments.length ? (e = Array.from(f, kg), 38321 u()) : e.slice() 38322 } 38323 , 38324 d.range = function(f) { 38325 return arguments.length ? (t = Array.from(f), 38326 u()) : t.slice() 38327 } 38328 , 38329 d.rangeRound = function(f) { 38330 return t = Array.from(f), 38331 n = VT, 38332 u() 38333 } 38334 , 38335 d.clamp = function(f) { 38336 return arguments.length ? (a = f ? !0 : Ln, 38337 u()) : a !== Ln 38338 } 38339 , 38340 d.interpolate = function(f) { 38341 return arguments.length ? (n = f, 38342 u()) : n 38343 } 38344 , 38345 d.unknown = function(f) { 38346 return arguments.length ? (o = f, 38347 d) : o 38348 } 38349 , 38350 function(f, p) { 38351 return r = f, 38352 i = p, 38353 u() 38354 } 38355} 38356function UT() { 38357 return Kv()(Ln, Ln) 38358} 38359function bSe(e) { 38360 return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10) 38361} 38362function Rg(e, t) { 38363 if ((n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e")) < 0) 38364 return null; 38365 var n, r = e.slice(0, n); 38366 return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)] 38367} 38368function Dc(e) { 38369 return e = Rg(Math.abs(e)), 38370 e ? e[1] : NaN 38371} 38372function wSe(e, t) { 38373 return function(n, r) { 38374 for (var i = n.length, o = [], a = 0, s = e[0], l = 0; i > 0 && s > 0 && (l + s + 1 > r && (s = Math.max(1, r - l)), 38375 o.push(n.substring(i -= s, i + s)), 38376 !((l += s + 1) > r)); ) 38377 s = e[a = (a + 1) % e.length]; 38378 return o.reverse().join(t) 38379 } 38380} 38381function SSe(e) { 38382 return function(t) { 38383 return t.replace(/[0-9]/g, function(n) { 38384 return e[+n] 38385 }) 38386 } 38387} 38388var PSe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; 38389function Ef(e) { 38390 if (!(t = PSe.exec(e))) 38391 throw new Error("invalid format: " + e); 38392 var t; 38393 return new zT({ 38394 fill: t[1], 38395 align: t[2], 38396 sign: t[3], 38397 symbol: t[4], 38398 zero: t[5], 38399 width: t[6], 38400 comma: t[7], 38401 precision: t[8] && t[8].slice(1), 38402 trim: t[9], 38403 type: t[10] 38404 }) 38405} 38406Ef.prototype = zT.prototype; 38407function zT(e) { 38408 this.fill = e.fill === void 0 ? " " : e.fill + "", 38409 this.align = e.align === void 0 ? ">" : e.align + "", 38410 this.sign = e.sign === void 0 ? "-" : e.sign + "", 38411 this.symbol = e.symbol === void 0 ? "" : e.symbol + "", 38412 this.zero = !!e.zero, 38413 this.width = e.width === void 0 ? void 0 : +e.width, 38414 this.comma = !!e.comma, 38415 this.precision = e.precision === void 0 ? void 0 : +e.precision, 38416 this.trim = !!e.trim, 38417 this.type = e.type === void 0 ? "" : e.type + "" 38418} 38419zT.prototype.toString = function() { 38420 return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type 38421} 38422; 38423function _Se(e) { 38424 e: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) 38425 switch (e[n]) { 38426 case ".": 38427 r = i = n; 38428 break; 38429 case "0": 38430 r === 0 && (r = n), 38431 i = n; 38432 break; 38433 default: 38434 if (!+e[n]) 38435 break e; 38436 r > 0 && (r = 0); 38437 break 38438 } 38439 return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e 38440} 38441var K6; 38442function TSe(e, t) { 38443 var n = Rg(e, t); 38444 if (!n) 38445 return e + ""; 38446 var r = n[0] 38447 , i = n[1] 38448 , o = i - (K6 = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1 38449 , a = r.length; 38450 return o === a ? r : o > a ? r + new Array(o - a + 1).join("0") : o > 0 ? r.slice(0, o) + "." + r.slice(o) : "0." + new Array(1 - o).join("0") + Rg(e, Math.max(0, t + o - 1))[0] 38451} 38452function BN(e, t) { 38453 var n = Rg(e, t); 38454 if (!n) 38455 return e + ""; 38456 var r = n[0] 38457 , i = n[1]; 38458 return i < 0 ? "0." + new Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + new Array(i - r.length + 2).join("0") 38459} 38460const VN = { 38461 "%": (e, t) => (e * 100).toFixed(t), 38462 b: e => Math.round(e).toString(2), 38463 c: e => e + "", 38464 d: bSe, 38465 e: (e, t) => e.toExponential(t), 38466 f: (e, t) => e.toFixed(t), 38467 g: (e, t) => e.toPrecision(t), 38468 o: e => Math.round(e).toString(8), 38469 p: (e, t) => BN(e * 100, t), 38470 r: BN, 38471 s: TSe, 38472 X: e => Math.round(e).toString(16).toUpperCase(), 38473 x: e => Math.round(e).toString(16) 38474}; 38475function UN(e) { 38476 return e 38477} 38478var zN = Array.prototype.map 38479 , WN = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"]; 38480function CSe(e) { 38481 var t = e.grouping === void 0 || e.thousands === void 0 ? UN : wSe(zN.call(e.grouping, Number), e.thousands + "") 38482 , n = e.currency === void 0 ? "" : e.currency[0] + "" 38483 , r = e.currency === void 0 ? "" : e.currency[1] + "" 38484 , i = e.decimal === void 0 ? "." : e.decimal + "" 38485 , o = e.numerals === void 0 ? UN : SSe(zN.call(e.numerals, String)) 38486 , a = e.percent === void 0 ? "%" : e.percent + "" 38487 , s = e.minus === void 0 ? "−" : e.minus + "" 38488 , l = e.nan === void 0 ? "NaN" : e.nan + ""; 38489 function c(d) { 38490 d = Ef(d); 38491 var f = d.fill 38492 , p = d.align 38493 , g = d.sign 38494 , m = d.symbol 38495 , x = d.zero 38496 , v = d.width 38497 , y = d.comma 38498 , w = d.precision 38499 , P = d.trim 38500 , S = d.type; 38501 S === "n" ? (y = !0, 38502 S = "g") : VN[S] || (w === void 0 && (w = 12), 38503 P = !0, 38504 S = "g"), 38505 (x || f === "0" && p === "=") && (x = !0, 38506 f = "0", 38507 p = "="); 38508 var _ = m === "$" ? n : m === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "" 38509 , T = m === "$" ? r : /[%p]/.test(S) ? a : "" 38510 , C = VN[S] 38511 , O = /[defgprs%]/.test(S); 38512 w = w === void 0 ? 6 : /[gprs]/.test(S) ? Math.max(1, Math.min(21, w)) : Math.max(0, Math.min(20, w)); 38513 function A(E) { 38514 var j = _, $ = T, R, L, B; 38515 if (S === "c") 38516 $ = C(E) + $, 38517 E = ""; 38518 else { 38519 E = +E; 38520 var U = E < 0 || 1 / E < 0; 38521 if (E = isNaN(E) ? l : C(Math.abs(E), w), 38522 P && (E = _Se(E)), 38523 U && +E == 0 && g !== "+" && (U = !1), 38524 j = (U ? g === "(" ? g : s : g === "-" || g === "(" ? "" : g) + j, 38525 $ = (S === "s" ? WN[8 + K6 / 3] : "") + $ + (U && g === "(" ? ")" : ""), 38526 O) { 38527 for (R = -1, 38528 L = E.length; ++R < L; ) 38529 if (B = E.charCodeAt(R), 38530 48 > B || B > 57) { 38531 $ = (B === 46 ? i + E.slice(R + 1) : E.slice(R)) + $, 38532 E = E.slice(0, R); 38533 break 38534 } 38535 } 38536 } 38537 y && !x && (E = t(E, 1 / 0)); 38538 var N = j.length + E.length + $.length 38539 , D = N < v ? new Array(v - N + 1).join(f) : ""; 38540 switch (y && x && (E = t(D + E, D.length ? v - $.length : 1 / 0), 38541 D = ""), 38542 p) { 38543 case "<": 38544 E = j + E + $ + D; 38545 break; 38546 case "=": 38547 E = j + D + E + $; 38548 break; 38549 case "^": 38550 E = D.slice(0, N = D.length >> 1) + j + E + $ + D.slice(N); 38551 break; 38552 default: 38553 E = D + j + E + $; 38554 break 38555 } 38556 return o(E) 38557 } 38558 return A.toString = function() { 38559 return d + "" 38560 } 38561 , 38562 A 38563 } 38564 function u(d, f) { 38565 var p = c((d = Ef(d), 38566 d.type = "f", 38567 d)) 38568 , g = Math.max(-8, Math.min(8, Math.floor(Dc(f) / 3))) * 3 38569 , m = Math.pow(10, -g) 38570 , x = WN[8 + g / 3]; 38571 return function(v) { 38572 return p(m * v) + x 38573 } 38574 } 38575 return { 38576 format: c, 38577 formatPrefix: u 38578 } 38579} 38580var Fp, WT, G6; 38581OSe({ 38582 thousands: ",", 38583 grouping: [3], 38584 currency: ["$", ""] 38585}); 38586function OSe(e) { 38587 return Fp = CSe(e), 38588 WT = Fp.format, 38589 G6 = Fp.formatPrefix, 38590 Fp 38591} 38592function ASe(e) { 38593 return Math.max(0, -Dc(Math.abs(e))) 38594} 38595function ESe(e, t) { 38596 return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Dc(t) / 3))) * 3 - Dc(Math.abs(e))) 38597} 38598function jSe(e, t) { 38599 return e = Math.abs(e), 38600 t = Math.abs(t) - e, 38601 Math.max(0, Dc(t) - Dc(e)) + 1 38602} 38603function Y6(e, t, n, r) { 38604 var i = k1(e, t, n), o; 38605 switch (r = Ef(r ?? ",f"), 38606 r.type) { 38607 case "s": 38608 { 38609 var a = Math.max(Math.abs(e), Math.abs(t)); 38610 return r.precision == null && !isNaN(o = ESe(i, a)) && (r.precision = o), 38611 G6(r, a) 38612 } 38613 case "": 38614 case "e": 38615 case "g": 38616 case "p": 38617 case "r": 38618 { 38619 r.precision == null && !isNaN(o = jSe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = o - (r.type === "e")); 38620 break 38621 } 38622 case "f": 38623 case "%": 38624 { 38625 r.precision == null && !isNaN(o = ASe(i)) && (r.precision = o - (r.type === "%") * 2); 38626 break 38627 } 38628 } 38629 return WT(r) 38630} 38631function Ha(e) { 38632 var t = e.domain; 38633 return e.ticks = function(n) { 38634 var r = t(); 38635 return N1(r[0], r[r.length - 1], n ?? 10) 38636 } 38637 ,
vendor: 16,384 bytes, lines 38638-39317
38638 e.tickFormat = function(n, r) { 38639 var i = t(); 38640 return Y6(i[0], i[i.length - 1], n ?? 10, r) 38641 } 38642 , 38643 e.nice = function(n) { 38644 n == null && (n = 10); 38645 var r = t(), i = 0, o = r.length - 1, a = r[i], s = r[o], l, c, u = 10; 38646 for (s < a && (c = a, 38647 a = s, 38648 s = c, 38649 c = i, 38650 i = o, 38651 o = c); u-- > 0; ) { 38652 if (c = M1(a, s, n), 38653 c === l) 38654 return r[i] = a, 38655 r[o] = s, 38656 t(r); 38657 if (c > 0) 38658 a = Math.floor(a / c) * c, 38659 s = Math.ceil(s / c) * c; 38660 else if (c < 0) 38661 a = Math.ceil(a * c) / c, 38662 s = Math.floor(s * c) / c; 38663 else 38664 break; 38665 l = c 38666 } 38667 return e 38668 } 38669 , 38670 e 38671} 38672function Dg() { 38673 var e = UT(); 38674 return e.copy = function() { 38675 return Hh(e, Dg()) 38676 } 38677 , 38678 Hr.apply(e, arguments), 38679 Ha(e) 38680} 38681function X6(e) { 38682 var t; 38683 function n(r) { 38684 return r == null || isNaN(r = +r) ? t : r 38685 } 38686 return n.invert = n, 38687 n.domain = n.range = function(r) { 38688 return arguments.length ? (e = Array.from(r, kg), 38689 n) : e.slice() 38690 } 38691 , 38692 n.unknown = function(r) { 38693 return arguments.length ? (t = r, 38694 n) : t 38695 } 38696 , 38697 n.copy = function() { 38698 return X6(e).unknown(t) 38699 } 38700 , 38701 e = arguments.length ? Array.from(e, kg) : [0, 1], 38702 Ha(n) 38703} 38704function Q6(e, t) { 38705 e = e.slice(); 38706 var n = 0, r = e.length - 1, i = e[n], o = e[r], a; 38707 return o < i && (a = n, 38708 n = r, 38709 r = a, 38710 a = i, 38711 i = o, 38712 o = a), 38713 e[n] = t.floor(i), 38714 e[r] = t.ceil(o), 38715 e 38716} 38717function HN(e) { 38718 return Math.log(e) 38719} 38720function qN(e) { 38721 return Math.exp(e) 38722} 38723function NSe(e) { 38724 return -Math.log(-e) 38725} 38726function MSe(e) { 38727 return -Math.exp(-e) 38728} 38729function kSe(e) { 38730 return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e 38731} 38732function RSe(e) { 38733 return e === 10 ? kSe : e === Math.E ? Math.exp : t => Math.pow(e, t) 38734} 38735function DSe(e) { 38736 return e === Math.E ? Math.log : e === 10 && Math.log10 || e === 2 && Math.log2 || (e = Math.log(e), 38737 t => Math.log(t) / e) 38738} 38739function KN(e) { 38740 return (t, n) => -e(-t, n) 38741} 38742function HT(e) { 38743 const t = e(HN, qN) 38744 , n = t.domain; 38745 let r = 10, i, o; 38746 function a() { 38747 return i = DSe(r), 38748 o = RSe(r), 38749 n()[0] < 0 ? (i = KN(i), 38750 o = KN(o), 38751 e(NSe, MSe)) : e(HN, qN), 38752 t 38753 } 38754 return t.base = function(s) { 38755 return arguments.length ? (r = +s, 38756 a()) : r 38757 } 38758 , 38759 t.domain = function(s) { 38760 return arguments.length ? (n(s), 38761 a()) : n() 38762 } 38763 , 38764 t.ticks = s => { 38765 const l = n(); 38766 let c = l[0] 38767 , u = l[l.length - 1]; 38768 const d = u < c; 38769 d && ([c,u] = [u, c]); 38770 let f = i(c), p = i(u), g, m; 38771 const x = s == null ? 10 : +s; 38772 let v = []; 38773 if (!(r % 1) && p - f < x) { 38774 if (f = Math.floor(f), 38775 p = Math.ceil(p), 38776 c > 0) { 38777 for (; f <= p; ++f) 38778 for (g = 1; g < r; ++g) 38779 if (m = f < 0 ? g / o(-f) : g * o(f), 38780 !(m < c)) { 38781 if (m > u) 38782 break; 38783 v.push(m) 38784 } 38785 } else 38786 for (; f <= p; ++f) 38787 for (g = r - 1; g >= 1; --g) 38788 if (m = f > 0 ? g / o(-f) : g * o(f), 38789 !(m < c)) { 38790 if (m > u) 38791 break; 38792 v.push(m) 38793 } 38794 v.length * 2 < x && (v = N1(c, u, x)) 38795 } else 38796 v = N1(f, p, Math.min(p - f, x)).map(o); 38797 return d ? v.reverse() : v 38798 } 38799 , 38800 t.tickFormat = (s, l) => { 38801 if (s == null && (s = 10), 38802 l == null && (l = r === 10 ? "s" : ","), 38803 typeof l != "function" && (!(r % 1) && (l = Ef(l)).precision == null && (l.trim = !0), 38804 l = WT(l)), 38805 s === 1 / 0) 38806 return l; 38807 const c = Math.max(1, r * s / t.ticks().length); 38808 return u => { 38809 let d = u / o(Math.round(i(u))); 38810 return d * r < r - .5 && (d *= r), 38811 d <= c ? l(u) : "" 38812 } 38813 } 38814 , 38815 t.nice = () => n(Q6(n(), { 38816 floor: s => o(Math.floor(i(s))), 38817 ceil: s => o(Math.ceil(i(s))) 38818 })), 38819 t 38820} 38821function Z6() { 38822 const e = HT(Kv()).domain([1, 10]); 38823 return e.copy = () => Hh(e, Z6()).base(e.base()), 38824 Hr.apply(e, arguments), 38825 e 38826} 38827function GN(e) { 38828 return function(t) { 38829 return Math.sign(t) * Math.log1p(Math.abs(t / e)) 38830 } 38831} 38832function YN(e) { 38833 return function(t) { 38834 return Math.sign(t) * Math.expm1(Math.abs(t)) * e 38835 } 38836} 38837function qT(e) { 38838 var t = 1 38839 , n = e(GN(t), YN(t)); 38840 return n.constant = function(r) { 38841 return arguments.length ? e(GN(t = +r), YN(t)) : t 38842 } 38843 , 38844 Ha(n) 38845} 38846function J6() { 38847 var e = qT(Kv()); 38848 return e.copy = function() { 38849 return Hh(e, J6()).constant(e.constant()) 38850 } 38851 , 38852 Hr.apply(e, arguments) 38853} 38854function XN(e) { 38855 return function(t) { 38856 return t < 0 ? -Math.pow(-t, e) : Math.pow(t, e) 38857 } 38858} 38859function ISe(e) { 38860 return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e) 38861} 38862function $Se(e) { 38863 return e < 0 ? -e * e : e * e 38864} 38865function KT(e) { 38866 var t = e(Ln, Ln) 38867 , n = 1; 38868 function r() { 38869 return n === 1 ? e(Ln, Ln) : n === .5 ? e(ISe, $Se) : e(XN(n), XN(1 / n)) 38870 } 38871 return t.exponent = function(i) { 38872 return arguments.length ? (n = +i, 38873 r()) : n 38874 } 38875 , 38876 Ha(t) 38877} 38878function GT() { 38879 var e = KT(Kv()); 38880 return e.copy = function() { 38881 return Hh(e, GT()).exponent(e.exponent()) 38882 } 38883 , 38884 Hr.apply(e, arguments), 38885 e 38886} 38887function LSe() { 38888 return GT.apply(null, arguments).exponent(.5) 38889} 38890function QN(e) { 38891 return Math.sign(e) * e * e 38892} 38893function FSe(e) { 38894 return Math.sign(e) * Math.sqrt(Math.abs(e)) 38895} 38896function ez() { 38897 var e = UT(), t = [0, 1], n = !1, r; 38898 function i(o) { 38899 var a = FSe(e(o)); 38900 return isNaN(a) ? r : n ? Math.round(a) : a 38901 } 38902 return i.invert = function(o) { 38903 return e.invert(QN(o)) 38904 } 38905 , 38906 i.domain = function(o) { 38907 return arguments.length ? (e.domain(o), 38908 i) : e.domain() 38909 } 38910 , 38911 i.range = function(o) { 38912 return arguments.length ? (e.range((t = Array.from(o, kg)).map(QN)), 38913 i) : t.slice() 38914 } 38915 , 38916 i.rangeRound = function(o) { 38917 return i.range(o).round(!0) 38918 } 38919 , 38920 i.round = function(o) { 38921 return arguments.length ? (n = !!o, 38922 i) : n 38923 } 38924 , 38925 i.clamp = function(o) { 38926 return arguments.length ? (e.clamp(o), 38927 i) : e.clamp() 38928 } 38929 , 38930 i.unknown = function(o) { 38931 return arguments.length ? (r = o, 38932 i) : r 38933 } 38934 , 38935 i.copy = function() { 38936 return ez(e.domain(), t).round(n).clamp(e.clamp()).unknown(r) 38937 } 38938 , 38939 Hr.apply(i, arguments), 38940 Ha(i) 38941} 38942function tz() { 38943 var e = [], t = [], n = [], r; 38944 function i() { 38945 var a = 0 38946 , s = Math.max(1, t.length); 38947 for (n = new Array(s - 1); ++a < s; ) 38948 n[a - 1] = W1e(e, a / s); 38949 return o 38950 } 38951 function o(a) { 38952 return a == null || isNaN(a = +a) ? r : t[zh(n, a)] 38953 } 38954 return o.invertExtent = function(a) { 38955 var s = t.indexOf(a); 38956 return s < 0 ? [NaN, NaN] : [s > 0 ? n[s - 1] : e[0], s < n.length ? n[s] : e[e.length - 1]] 38957 } 38958 , 38959 o.domain = function(a) { 38960 if (!arguments.length) 38961 return e.slice(); 38962 e = []; 38963 for (let s of a) 38964 s != null && !isNaN(s = +s) && e.push(s); 38965 return e.sort(wa), 38966 i() 38967 } 38968 , 38969 o.range = function(a) { 38970 return arguments.length ? (t = Array.from(a), 38971 i()) : t.slice() 38972 } 38973 , 38974 o.unknown = function(a) { 38975 return arguments.length ? (r = a, 38976 o) : r 38977 } 38978 , 38979 o.quantiles = function() { 38980 return n.slice() 38981 } 38982 , 38983 o.copy = function() { 38984 return tz().domain(e).range(t).unknown(r) 38985 } 38986 , 38987 Hr.apply(o, arguments) 38988} 38989function nz() { 38990 var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], o; 38991 function a(l) { 38992 return l != null && l <= l ? i[zh(r, l, 0, n)] : o 38993 } 38994 function s() { 38995 var l = -1; 38996 for (r = new Array(n); ++l < n; ) 38997 r[l] = ((l + 1) * t - (l - n) * e) / (n + 1); 38998 return a 38999 } 39000 return a.domain = function(l) { 39001 return arguments.length ? ([e,t] = l, 39002 e = +e, 39003 t = +t, 39004 s()) : [e, t] 39005 } 39006 , 39007 a.range = function(l) { 39008 return arguments.length ? (n = (i = Array.from(l)).length - 1, 39009 s()) : i.slice() 39010 } 39011 , 39012 a.invertExtent = function(l) { 39013 var c = i.indexOf(l); 39014 return c < 0 ? [NaN, NaN] : c < 1 ? [e, r[0]] : c >= n ? [r[n - 1], t] : [r[c - 1], r[c]] 39015 } 39016 , 39017 a.unknown = function(l) { 39018 return arguments.length && (o = l), 39019 a 39020 } 39021 , 39022 a.thresholds = function() { 39023 return r.slice() 39024 } 39025 , 39026 a.copy = function() { 39027 return nz().domain([e, t]).range(i).unknown(o) 39028 } 39029 , 39030 Hr.apply(Ha(a), arguments) 39031} 39032function rz() { 39033 var e = [.5], t = [0, 1], n, r = 1; 39034 function i(o) { 39035 return o != null && o <= o ? t[zh(e, o, 0, r)] : n 39036 } 39037 return i.domain = function(o) { 39038 return arguments.length ? (e = Array.from(o), 39039 r = Math.min(e.length, t.length - 1), 39040 i) : e.slice() 39041 } 39042 , 39043 i.range = function(o) { 39044 return arguments.length ? (t = Array.from(o), 39045 r = Math.min(e.length, t.length - 1), 39046 i) : t.slice() 39047 } 39048 , 39049 i.invertExtent = function(o) { 39050 var a = t.indexOf(o); 39051 return [e[a - 1], e[a]] 39052 } 39053 , 39054 i.unknown = function(o) { 39055 return arguments.length ? (n = o, 39056 i) : n 39057 } 39058 , 39059 i.copy = function() { 39060 return rz().domain(e).range(t).unknown(n) 39061 } 39062 , 39063 Hr.apply(i, arguments) 39064} 39065const Ix = new Date 39066 , $x = new Date; 39067function on(e, t, n, r) { 39068 function i(o) { 39069 return e(o = arguments.length === 0 ? new Date : new Date(+o)), 39070 o 39071 } 39072 return i.floor = o => (e(o = new Date(+o)), 39073 o), 39074 i.ceil = o => (e(o = new Date(o - 1)), 39075 t(o, 1), 39076 e(o), 39077 o), 39078 i.round = o => { 39079 const a = i(o) 39080 , s = i.ceil(o); 39081 return o - a < s - o ? a : s 39082 } 39083 , 39084 i.offset = (o, a) => (t(o = new Date(+o), a == null ? 1 : Math.floor(a)), 39085 o), 39086 i.range = (o, a, s) => { 39087 const l = []; 39088 if (o = i.ceil(o), 39089 s = s == null ? 1 : Math.floor(s), 39090 !(o < a) || !(s > 0)) 39091 return l; 39092 let c; 39093 do 39094 l.push(c = new Date(+o)), 39095 t(o, s), 39096 e(o); 39097 while (c < o && o < a); 39098 return l 39099 } 39100 , 39101 i.filter = o => on(a => { 39102 if (a >= a) 39103 for (; e(a), 39104 !o(a); ) 39105 a.setTime(a - 1) 39106 } 39107 , (a, s) => { 39108 if (a >= a) 39109 if (s < 0) 39110 for (; ++s <= 0; ) 39111 for (; t(a, -1), 39112 !o(a); ) 39113 ; 39114 else 39115 for (; --s >= 0; ) 39116 for (; t(a, 1), 39117 !o(a); ) 39118 ; 39119 } 39120 ), 39121 n && (i.count = (o, a) => (Ix.setTime(+o), 39122 $x.setTime(+a), 39123 e(Ix), 39124 e($x), 39125 Math.floor(n(Ix, $x))), 39126 i.every = o => (o = Math.floor(o), 39127 !isFinite(o) || !(o > 0) ? null : o > 1 ? i.filter(r ? a => r(a) % o === 0 : a => i.count(0, a) % o === 0) : i)), 39128 i 39129} 39130const Ig = on( () => {} 39131, (e, t) => { 39132 e.setTime(+e + t) 39133} 39134, (e, t) => t - e); 39135Ig.every = e => (e = Math.floor(e), 39136!isFinite(e) || !(e > 0) ? null : e > 1 ? on(t => { 39137 t.setTime(Math.floor(t / e) * e) 39138} 39139, (t, n) => { 39140 t.setTime(+t + n * e) 39141} 39142, (t, n) => (n - t) / e) : Ig); 39143Ig.range; 39144const co = 1e3 39145 , Rr = co * 60 39146 , uo = Rr * 60 39147 , Oo = uo * 24 39148 , YT = Oo * 7 39149 , ZN = Oo * 30 39150 , Lx = Oo * 365 39151 , ps = on(e => { 39152 e.setTime(e - e.getMilliseconds()) 39153} 39154, (e, t) => { 39155 e.setTime(+e + t * co) 39156} 39157, (e, t) => (t - e) / co, e => e.getUTCSeconds()); 39158ps.range; 39159const XT = on(e => { 39160 e.setTime(e - e.getMilliseconds() - e.getSeconds() * co) 39161} 39162, (e, t) => { 39163 e.setTime(+e + t * Rr) 39164} 39165, (e, t) => (t - e) / Rr, e => e.getMinutes()); 39166XT.range; 39167const QT = on(e => { 39168 e.setUTCSeconds(0, 0) 39169} 39170, (e, t) => { 39171 e.setTime(+e + t * Rr) 39172} 39173, (e, t) => (t - e) / Rr, e => e.getUTCMinutes()); 39174QT.range; 39175const ZT = on(e => { 39176 e.setTime(e - e.getMilliseconds() - e.getSeconds() * co - e.getMinutes() * Rr) 39177} 39178, (e, t) => { 39179 e.setTime(+e + t * uo) 39180} 39181, (e, t) => (t - e) / uo, e => e.getHours()); 39182ZT.range; 39183const JT = on(e => { 39184 e.setUTCMinutes(0, 0, 0) 39185} 39186, (e, t) => { 39187 e.setTime(+e + t * uo) 39188} 39189, (e, t) => (t - e) / uo, e => e.getUTCHours()); 39190JT.range; 39191const qh = on(e => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * Rr) / Oo, e => e.getDate() - 1); 39192qh.range; 39193const Gv = on(e => { 39194 e.setUTCHours(0, 0, 0, 0) 39195} 39196, (e, t) => { 39197 e.setUTCDate(e.getUTCDate() + t) 39198} 39199, (e, t) => (t - e) / Oo, e => e.getUTCDate() - 1); 39200Gv.range; 39201const iz = on(e => { 39202 e.setUTCHours(0, 0, 0, 0) 39203} 39204, (e, t) => { 39205 e.setUTCDate(e.getUTCDate() + t) 39206} 39207, (e, t) => (t - e) / Oo, e => Math.floor(e / Oo)); 39208iz.range; 39209function nl(e) { 39210 return on(t => { 39211 t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), 39212 t.setHours(0, 0, 0, 0) 39213 } 39214 , (t, n) => { 39215 t.setDate(t.getDate() + n * 7) 39216 } 39217 , (t, n) => (n - t - (n.getTimezoneOffset() - t.getTimezoneOffset()) * Rr) / YT) 39218} 39219const Yv = nl(0) 39220 , $g = nl(1) 39221 , BSe = nl(2) 39222 , VSe = nl(3) 39223 , Ic = nl(4) 39224 , USe = nl(5) 39225 , zSe = nl(6); 39226Yv.range; 39227$g.range; 39228BSe.range; 39229VSe.range; 39230Ic.range; 39231USe.range; 39232zSe.range; 39233function rl(e) { 39234 return on(t => { 39235 t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), 39236 t.setUTCHours(0, 0, 0, 0) 39237 } 39238 , (t, n) => { 39239 t.setUTCDate(t.getUTCDate() + n * 7) 39240 } 39241 , (t, n) => (n - t) / YT) 39242} 39243const Xv = rl(0) 39244 , Lg = rl(1) 39245 , WSe = rl(2) 39246 , HSe = rl(3) 39247 , $c = rl(4) 39248 , qSe = rl(5) 39249 , KSe = rl(6); 39250Xv.range; 39251Lg.range; 39252WSe.range; 39253HSe.range; 39254$c.range; 39255qSe.range; 39256KSe.range; 39257const eC = on(e => { 39258 e.setDate(1), 39259 e.setHours(0, 0, 0, 0) 39260} 39261, (e, t) => { 39262 e.setMonth(e.getMonth() + t) 39263} 39264, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, e => e.getMonth()); 39265eC.range; 39266const tC = on(e => { 39267 e.setUTCDate(1), 39268 e.setUTCHours(0, 0, 0, 0) 39269} 39270, (e, t) => { 39271 e.setUTCMonth(e.getUTCMonth() + t) 39272} 39273, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, e => e.getUTCMonth()); 39274tC.range; 39275const Ao = on(e => { 39276 e.setMonth(0, 1), 39277 e.setHours(0, 0, 0, 0) 39278} 39279, (e, t) => { 39280 e.setFullYear(e.getFullYear() + t) 39281} 39282, (e, t) => t.getFullYear() - e.getFullYear(), e => e.getFullYear()); 39283Ao.every = e => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : on(t => { 39284 t.setFullYear(Math.floor(t.getFullYear() / e) * e), 39285 t.setMonth(0, 1), 39286 t.setHours(0, 0, 0, 0) 39287} 39288, (t, n) => { 39289 t.setFullYear(t.getFullYear() + n * e) 39290} 39291); 39292Ao.range; 39293const Eo = on(e => { 39294 e.setUTCMonth(0, 1), 39295 e.setUTCHours(0, 0, 0, 0) 39296} 39297, (e, t) => { 39298 e.setUTCFullYear(e.getUTCFullYear() + t) 39299} 39300, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), e => e.getUTCFullYear()); 39301Eo.every = e => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : on(t => { 39302 t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), 39303 t.setUTCMonth(0, 1), 39304 t.setUTCHours(0, 0, 0, 0) 39305} 39306, (t, n) => { 39307 t.setUTCFullYear(t.getUTCFullYear() + n * e) 39308} 39309); 39310Eo.range; 39311function oz(e, t, n, r, i, o) { 39312 const a = [[ps, 1, co], [ps, 5, 5 * co], [ps, 15, 15 * co], [ps, 30, 30 * co], [o, 1, Rr], [o, 5, 5 * Rr], [o, 15, 15 * Rr], [o, 30, 30 * Rr], [i, 1, uo], [i, 3, 3 * uo], [i, 6, 6 * uo], [i, 12, 12 * uo], [r, 1, Oo], [r, 2, 2 * Oo], [n, 1, YT], [t, 1, ZN], [t, 3, 3 * ZN], [e, 1, Lx]]; 39313 function s(c, u, d) { 39314 const f = u < c; 39315 f && ([c,u] = [u, c]); 39316 const p = d && typeof d.range == "function" ? d : l(c, u, d) 39317
vendor: 3,790 bytes, lines 39317-39502
39317 , g = p ? p.range(c, +u + 1) : []; 39318 return f ? g.reverse() : g 39319 } 39320 function l(c, u, d) { 39321 const f = Math.abs(u - c) / d 39322 , p = $T( ([,,x]) => x).right(a, f); 39323 if (p === a.length) 39324 return e.every(k1(c / Lx, u / Lx, d)); 39325 if (p === 0) 39326 return Ig.every(Math.max(k1(c, u, d), 1)); 39327 const [g,m] = a[f / a[p - 1][2] < a[p][2] / f ? p - 1 : p]; 39328 return g.every(m) 39329 } 39330 return [s, l] 39331} 39332const [GSe,YSe] = oz(Eo, tC, Xv, iz, JT, QT) 39333 , [XSe,QSe] = oz(Ao, eC, Yv, qh, ZT, XT); 39334function Fx(e) { 39335 if (0 <= e.y && e.y < 100) { 39336 var t = new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L); 39337 return t.setFullYear(e.y), 39338 t 39339 } 39340 return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L) 39341} 39342function Bx(e) { 39343 if (0 <= e.y && e.y < 100) { 39344 var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L)); 39345 return t.setUTCFullYear(e.y), 39346 t 39347 } 39348 return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L)) 39349} 39350function Uu(e, t, n) { 39351 return { 39352 y: e, 39353 m: t, 39354 d: n, 39355 H: 0, 39356 M: 0, 39357 S: 0, 39358 L: 0 39359 } 39360} 39361function ZSe(e) { 39362 var t = e.dateTime 39363 , n = e.date 39364 , r = e.time 39365 , i = e.periods 39366 , o = e.days 39367 , a = e.shortDays 39368 , s = e.months 39369 , l = e.shortMonths 39370 , c = zu(i) 39371 , u = Wu(i) 39372 , d = zu(o) 39373 , f = Wu(o) 39374 , p = zu(a) 39375 , g = Wu(a) 39376 , m = zu(s) 39377 , x = Wu(s) 39378 , v = zu(l) 39379 , y = Wu(l) 39380 , w = { 39381 a: U, 39382 A: N, 39383 b: D, 39384 B: W, 39385 c: null, 39386 d: iM, 39387 e: iM, 39388 f: wPe, 39389 g: NPe, 39390 G: kPe, 39391 H: vPe, 39392 I: xPe, 39393 j: bPe, 39394 L: az, 39395 m: SPe, 39396 M: PPe, 39397 p: K, 39398 q: G, 39399 Q: sM, 39400 s: lM, 39401 S: _Pe, 39402 u: TPe, 39403 U: CPe, 39404 V: OPe, 39405 w: APe, 39406 W: EPe, 39407 x: null, 39408 X: null, 39409 y: jPe, 39410 Y: MPe, 39411 Z: RPe, 39412 "%": aM 39413 } 39414 , P = { 39415 a: ae, 39416 A: ve, 39417 b: je, 39418 B: Oe, 39419 c: null, 39420 d: oM, 39421 e: oM, 39422 f: LPe, 39423 g: GPe, 39424 G: XPe, 39425 H: DPe, 39426 I: IPe, 39427 j: $Pe, 39428 L: lz, 39429 m: FPe, 39430 M: BPe, 39431 p: ie, 39432 q: ge, 39433 Q: sM, 39434 s: lM, 39435 S: VPe, 39436 u: UPe, 39437 U: zPe, 39438 V: WPe, 39439 w: HPe, 39440 W: qPe, 39441 x: null, 39442 X: null, 39443 y: KPe, 39444 Y: YPe, 39445 Z: QPe, 39446 "%": aM 39447 } 39448 , S = { 39449 a: A, 39450 A: E, 39451 b: j, 39452 B: $, 39453 c: R, 39454 d: nM, 39455 e: nM, 39456 f: pPe, 39457 g: tM, 39458 G: eM, 39459 H: rM, 39460 I: rM, 39461 j: uPe, 39462 L: hPe, 39463 m: cPe, 39464 M: dPe, 39465 p: O, 39466 q: lPe, 39467 Q: gPe, 39468 s: yPe, 39469 S: fPe, 39470 u: rPe, 39471 U: iPe, 39472 V: oPe, 39473 w: nPe, 39474 W: aPe, 39475 x: L, 39476 X: B, 39477 y: tM, 39478 Y: eM, 39479 Z: sPe, 39480 "%": mPe 39481 }; 39482 w.x = _(n, w), 39483 w.X = _(r, w), 39484 w.c = _(t, w), 39485 P.x = _(n, P), 39486 P.X = _(r, P), 39487 P.c = _(t, P); 39488 function _(Y, ne) { 39489 return function(Q) { 39490 var F = [], he = -1, de = 0, Ne = Y.length, Be, Qe, M; 39491 for (Q instanceof Date || (Q = new Date(+Q)); ++he < Ne; ) 39492 Y.charCodeAt(he) === 37 && (F.push(Y.slice(de, he)), 39493 (Qe = JN[Be = Y.charAt(++he)]) != null ? Be = Y.charAt(++he) : Qe = Be === "e" ? " " : "0", 39494 (M = ne[Be]) && (Be = M(Q, Qe)), 39495 F.push(Be), 39496 de = he + 1); 39497 return F.push(Y.slice(de, he)), 39498 F.join("") 39499 } 39500 } 39501 function T(Y, ne) { 39502 return function(Q) {
vendor: 11,093 bytes, lines 39503-39934
39503 var F = Uu(1900, void 0, 1), he = C(F, Y, Q += "", 0), de, Ne; 39504 if (he != Q.length) 39505 return null; 39506 if ("Q"in F) 39507 return new Date(F.Q); 39508 if ("s"in F) 39509 return new Date(F.s * 1e3 + ("L"in F ? F.L : 0)); 39510 if (ne && !("Z"in F) && (F.Z = 0), 39511 "p"in F && (F.H = F.H % 12 + F.p * 12), 39512 F.m === void 0 && (F.m = "q"in F ? F.q : 0), 39513 "V"in F) { 39514 if (F.V < 1 || F.V > 53) 39515 return null; 39516 "w"in F || (F.w = 1), 39517 "Z"in F ? (de = Bx(Uu(F.y, 0, 1)), 39518 Ne = de.getUTCDay(), 39519 de = Ne > 4 || Ne === 0 ? Lg.ceil(de) : Lg(de), 39520 de = Gv.offset(de, (F.V - 1) * 7), 39521 F.y = de.getUTCFullYear(), 39522 F.m = de.getUTCMonth(), 39523 F.d = de.getUTCDate() + (F.w + 6) % 7) : (de = Fx(Uu(F.y, 0, 1)), 39524 Ne = de.getDay(), 39525 de = Ne > 4 || Ne === 0 ? $g.ceil(de) : $g(de), 39526 de = qh.offset(de, (F.V - 1) * 7), 39527 F.y = de.getFullYear(), 39528 F.m = de.getMonth(), 39529 F.d = de.getDate() + (F.w + 6) % 7) 39530 } else 39531 ("W"in F || "U"in F) && ("w"in F || (F.w = "u"in F ? F.u % 7 : "W"in F ? 1 : 0), 39532 Ne = "Z"in F ? Bx(Uu(F.y, 0, 1)).getUTCDay() : Fx(Uu(F.y, 0, 1)).getDay(), 39533 F.m = 0, 39534 F.d = "W"in F ? (F.w + 6) % 7 + F.W * 7 - (Ne + 5) % 7 : F.w + F.U * 7 - (Ne + 6) % 7); 39535 return "Z"in F ? (F.H += F.Z / 100 | 0, 39536 F.M += F.Z % 100, 39537 Bx(F)) : Fx(F) 39538 } 39539 } 39540 function C(Y, ne, Q, F) { 39541 for (var he = 0, de = ne.length, Ne = Q.length, Be, Qe; he < de; ) { 39542 if (F >= Ne) 39543 return -1; 39544 if (Be = ne.charCodeAt(he++), 39545 Be === 37) { 39546 if (Be = ne.charAt(he++), 39547 Qe = S[Be in JN ? ne.charAt(he++) : Be], 39548 !Qe || (F = Qe(Y, Q, F)) < 0) 39549 return -1 39550 } else if (Be != Q.charCodeAt(F++)) 39551 return -1 39552 } 39553 return F 39554 } 39555 function O(Y, ne, Q) { 39556 var F = c.exec(ne.slice(Q)); 39557 return F ? (Y.p = u.get(F[0].toLowerCase()), 39558 Q + F[0].length) : -1 39559 } 39560 function A(Y, ne, Q) { 39561 var F = p.exec(ne.slice(Q)); 39562 return F ? (Y.w = g.get(F[0].toLowerCase()), 39563 Q + F[0].length) : -1 39564 } 39565 function E(Y, ne, Q) { 39566 var F = d.exec(ne.slice(Q)); 39567 return F ? (Y.w = f.get(F[0].toLowerCase()), 39568 Q + F[0].length) : -1 39569 } 39570 function j(Y, ne, Q) { 39571 var F = v.exec(ne.slice(Q)); 39572 return F ? (Y.m = y.get(F[0].toLowerCase()), 39573 Q + F[0].length) : -1 39574 } 39575 function $(Y, ne, Q) { 39576 var F = m.exec(ne.slice(Q)); 39577 return F ? (Y.m = x.get(F[0].toLowerCase()), 39578 Q + F[0].length) : -1 39579 } 39580 function R(Y, ne, Q) { 39581 return C(Y, t, ne, Q) 39582 } 39583 function L(Y, ne, Q) { 39584 return C(Y, n, ne, Q) 39585 } 39586 function B(Y, ne, Q) { 39587 return C(Y, r, ne, Q) 39588 } 39589 function U(Y) { 39590 return a[Y.getDay()] 39591 } 39592 function N(Y) { 39593 return o[Y.getDay()] 39594 } 39595 function D(Y) { 39596 return l[Y.getMonth()] 39597 } 39598 function W(Y) { 39599 return s[Y.getMonth()] 39600 } 39601 function K(Y) { 39602 return i[+(Y.getHours() >= 12)] 39603 } 39604 function G(Y) { 39605 return 1 + ~~(Y.getMonth() / 3) 39606 } 39607 function ae(Y) { 39608 return a[Y.getUTCDay()] 39609 } 39610 function ve(Y) { 39611 return o[Y.getUTCDay()] 39612 } 39613 function je(Y) { 39614 return l[Y.getUTCMonth()] 39615 } 39616 function Oe(Y) { 39617 return s[Y.getUTCMonth()] 39618 } 39619 function ie(Y) { 39620 return i[+(Y.getUTCHours() >= 12)] 39621 } 39622 function ge(Y) { 39623 return 1 + ~~(Y.getUTCMonth() / 3) 39624 } 39625 return { 39626 format: function(Y) { 39627 var ne = _(Y += "", w); 39628 return ne.toString = function() { 39629 return Y 39630 } 39631 , 39632 ne 39633 }, 39634 parse: function(Y) { 39635 var ne = T(Y += "", !1); 39636 return ne.toString = function() { 39637 return Y 39638 } 39639 , 39640 ne 39641 }, 39642 utcFormat: function(Y) { 39643 var ne = _(Y += "", P); 39644 return ne.toString = function() { 39645 return Y 39646 } 39647 , 39648 ne 39649 }, 39650 utcParse: function(Y) { 39651 var ne = T(Y += "", !0); 39652 return ne.toString = function() { 39653 return Y 39654 } 39655 , 39656 ne 39657 } 39658 } 39659} 39660var JN = { 39661 "-": "", 39662 _: " ", 39663 0: "0" 39664} 39665 , dn = /^\s*\d+/ 39666 , JSe = /^%/ 39667 , ePe = /[\\^$*+?|[\]().{}]/g; 39668function Xe(e, t, n) { 39669 var r = e < 0 ? "-" : "" 39670 , i = (r ? -e : e) + "" 39671 , o = i.length; 39672 return r + (o < n ? new Array(n - o + 1).join(t) + i : i) 39673} 39674function tPe(e) { 39675 return e.replace(ePe, "\\$&") 39676} 39677function zu(e) { 39678 return new RegExp("^(?:" + e.map(tPe).join("|") + ")","i") 39679} 39680function Wu(e) { 39681 return new Map(e.map( (t, n) => [t.toLowerCase(), n])) 39682} 39683function nPe(e, t, n) { 39684 var r = dn.exec(t.slice(n, n + 1)); 39685 return r ? (e.w = +r[0], 39686 n + r[0].length) : -1 39687} 39688function rPe(e, t, n) { 39689 var r = dn.exec(t.slice(n, n + 1)); 39690 return r ? (e.u = +r[0], 39691 n + r[0].length) : -1 39692} 39693function iPe(e, t, n) { 39694 var r = dn.exec(t.slice(n, n + 2)); 39695 return r ? (e.U = +r[0], 39696 n + r[0].length) : -1 39697} 39698function oPe(e, t, n) { 39699 var r = dn.exec(t.slice(n, n + 2)); 39700 return r ? (e.V = +r[0], 39701 n + r[0].length) : -1 39702} 39703function aPe(e, t, n) { 39704 var r = dn.exec(t.slice(n, n + 2)); 39705 return r ? (e.W = +r[0], 39706 n + r[0].length) : -1 39707} 39708function eM(e, t, n) { 39709 var r = dn.exec(t.slice(n, n + 4)); 39710 return r ? (e.y = +r[0], 39711 n + r[0].length) : -1 39712} 39713function tM(e, t, n) { 39714 var r = dn.exec(t.slice(n, n + 2)); 39715 return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), 39716 n + r[0].length) : -1 39717} 39718function sPe(e, t, n) { 39719 var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6)); 39720 return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), 39721 n + r[0].length) : -1 39722} 39723function lPe(e, t, n) { 39724 var r = dn.exec(t.slice(n, n + 1)); 39725 return r ? (e.q = r[0] * 3 - 3, 39726 n + r[0].length) : -1 39727} 39728function cPe(e, t, n) { 39729 var r = dn.exec(t.slice(n, n + 2)); 39730 return r ? (e.m = r[0] - 1, 39731 n + r[0].length) : -1 39732} 39733function nM(e, t, n) { 39734 var r = dn.exec(t.slice(n, n + 2)); 39735 return r ? (e.d = +r[0], 39736 n + r[0].length) : -1 39737} 39738function uPe(e, t, n) { 39739 var r = dn.exec(t.slice(n, n + 3)); 39740 return r ? (e.m = 0, 39741 e.d = +r[0], 39742 n + r[0].length) : -1 39743} 39744function rM(e, t, n) { 39745 var r = dn.exec(t.slice(n, n + 2)); 39746 return r ? (e.H = +r[0], 39747 n + r[0].length) : -1 39748} 39749function dPe(e, t, n) { 39750 var r = dn.exec(t.slice(n, n + 2)); 39751 return r ? (e.M = +r[0], 39752 n + r[0].length) : -1 39753} 39754function fPe(e, t, n) { 39755 var r = dn.exec(t.slice(n, n + 2)); 39756 return r ? (e.S = +r[0], 39757 n + r[0].length) : -1 39758} 39759function hPe(e, t, n) { 39760 var r = dn.exec(t.slice(n, n + 3)); 39761 return r ? (e.L = +r[0], 39762 n + r[0].length) : -1 39763} 39764function pPe(e, t, n) { 39765 var r = dn.exec(t.slice(n, n + 6)); 39766 return r ? (e.L = Math.floor(r[0] / 1e3), 39767 n + r[0].length) : -1 39768} 39769function mPe(e, t, n) { 39770 var r = JSe.exec(t.slice(n, n + 1)); 39771 return r ? n + r[0].length : -1 39772} 39773function gPe(e, t, n) { 39774 var r = dn.exec(t.slice(n)); 39775 return r ? (e.Q = +r[0], 39776 n + r[0].length) : -1 39777} 39778function yPe(e, t, n) { 39779 var r = dn.exec(t.slice(n)); 39780 return r ? (e.s = +r[0], 39781 n + r[0].length) : -1 39782} 39783function iM(e, t) { 39784 return Xe(e.getDate(), t, 2) 39785} 39786function vPe(e, t) { 39787 return Xe(e.getHours(), t, 2) 39788} 39789function xPe(e, t) { 39790 return Xe(e.getHours() % 12 || 12, t, 2) 39791} 39792function bPe(e, t) { 39793 return Xe(1 + qh.count(Ao(e), e), t, 3) 39794} 39795function az(e, t) { 39796 return Xe(e.getMilliseconds(), t, 3) 39797} 39798function wPe(e, t) { 39799 return az(e, t) + "000" 39800} 39801function SPe(e, t) { 39802 return Xe(e.getMonth() + 1, t, 2) 39803} 39804function PPe(e, t) { 39805 return Xe(e.getMinutes(), t, 2) 39806} 39807function _Pe(e, t) { 39808 return Xe(e.getSeconds(), t, 2) 39809} 39810function TPe(e) { 39811 var t = e.getDay(); 39812 return t === 0 ? 7 : t 39813} 39814function CPe(e, t) { 39815 return Xe(Yv.count(Ao(e) - 1, e), t, 2) 39816} 39817function sz(e) { 39818 var t = e.getDay(); 39819 return t >= 4 || t === 0 ? Ic(e) : Ic.ceil(e) 39820} 39821function OPe(e, t) { 39822 return e = sz(e), 39823 Xe(Ic.count(Ao(e), e) + (Ao(e).getDay() === 4), t, 2) 39824} 39825function APe(e) { 39826 return e.getDay() 39827} 39828function EPe(e, t) { 39829 return Xe($g.count(Ao(e) - 1, e), t, 2) 39830} 39831function jPe(e, t) { 39832 return Xe(e.getFullYear() % 100, t, 2) 39833} 39834function NPe(e, t) { 39835 return e = sz(e), 39836 Xe(e.getFullYear() % 100, t, 2) 39837} 39838function MPe(e, t) { 39839 return Xe(e.getFullYear() % 1e4, t, 4) 39840} 39841function kPe(e, t) { 39842 var n = e.getDay(); 39843 return e = n >= 4 || n === 0 ? Ic(e) : Ic.ceil(e), 39844 Xe(e.getFullYear() % 1e4, t, 4) 39845} 39846function RPe(e) { 39847 var t = e.getTimezoneOffset(); 39848 return (t > 0 ? "-" : (t *= -1, 39849 "+")) + Xe(t / 60 | 0, "0", 2) + Xe(t % 60, "0", 2) 39850} 39851function oM(e, t) { 39852 return Xe(e.getUTCDate(), t, 2) 39853} 39854function DPe(e, t) { 39855 return Xe(e.getUTCHours(), t, 2) 39856} 39857function IPe(e, t) { 39858 return Xe(e.getUTCHours() % 12 || 12, t, 2) 39859} 39860function $Pe(e, t) { 39861 return Xe(1 + Gv.count(Eo(e), e), t, 3) 39862} 39863function lz(e, t) { 39864 return Xe(e.getUTCMilliseconds(), t, 3) 39865} 39866function LPe(e, t) { 39867 return lz(e, t) + "000" 39868} 39869function FPe(e, t) { 39870 return Xe(e.getUTCMonth() + 1, t, 2) 39871} 39872function BPe(e, t) { 39873 return Xe(e.getUTCMinutes(), t, 2) 39874} 39875function VPe(e, t) { 39876 return Xe(e.getUTCSeconds(), t, 2) 39877} 39878function UPe(e) { 39879 var t = e.getUTCDay(); 39880 return t === 0 ? 7 : t 39881} 39882function zPe(e, t) { 39883 return Xe(Xv.count(Eo(e) - 1, e), t, 2) 39884} 39885function cz(e) { 39886 var t = e.getUTCDay(); 39887 return t >= 4 || t === 0 ? $c(e) : $c.ceil(e) 39888} 39889function WPe(e, t) { 39890 return e = cz(e), 39891 Xe($c.count(Eo(e), e) + (Eo(e).getUTCDay() === 4), t, 2) 39892} 39893function HPe(e) { 39894 return e.getUTCDay() 39895} 39896function qPe(e, t) { 39897 return Xe(Lg.count(Eo(e) - 1, e), t, 2) 39898} 39899function KPe(e, t) { 39900 return Xe(e.getUTCFullYear() % 100, t, 2) 39901} 39902function GPe(e, t) { 39903 return e = cz(e), 39904 Xe(e.getUTCFullYear() % 100, t, 2) 39905} 39906function YPe(e, t) { 39907 return Xe(e.getUTCFullYear() % 1e4, t, 4) 39908} 39909function XPe(e, t) { 39910 var n = e.getUTCDay(); 39911 return e = n >= 4 || n === 0 ? $c(e) : $c.ceil(e), 39912 Xe(e.getUTCFullYear() % 1e4, t, 4) 39913} 39914function QPe() { 39915 return "+0000" 39916} 39917function aM() { 39918 return "%" 39919} 39920function sM(e) { 39921 return +e 39922} 39923function lM(e) { 39924 return Math.floor(+e / 1e3) 39925} 39926var pl, uz, dz; 39927ZPe({ 39928 dateTime: "%x, %X", 39929 date: "%-m/%-d/%Y", 39930 time: "%-I:%M:%S %p", 39931 periods: ["AM", "PM"], 39932 days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], 39933 shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], 39934 months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
39934November", "December"], 39935 shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] 39936}); 39937function ZPe(e) { 39938 return pl = ZSe(e), 39939 uz = pl.format, 39940 pl.parse, 39941 dz = pl.utcFormat, 39942 pl.utcParse, 39943 pl 39944} 39945function JPe(e) { 39946 return new Date(e) 39947} 39948function e_e(e) { 39949 return e instanceof Date ? +e : +new Date(+e) 39950} 39951function nC(e, t, n, r, i, o, a, s, l, c) { 39952 var u = UT() 39953 , d = u.invert 39954 , f = u.domain 39955 , p = c(".%L") 39956 , g = c(":%S") 39957 , m = c("%I:%M") 39958 , x = c("%I %p") 39959 , v = c("%a %d") 39960 , y = c("%b %d") 39961 , w = c("%B") 39962 , P = c("%Y"); 39963 function S(_) { 39964 return (l(_) < _ ? p : s(_) < _ ? g : a(_) < _ ? m : o(_) < _ ? x : r(_) < _ ? i(_) < _ ? v : y : n(_) < _ ? w : P)(_) 39965 } 39966 return u.invert = function(_) { 39967 return new Date(d(_)) 39968 } 39969 , 39970 u.domain = function(_) { 39971 return arguments.length ? f(Array.from(_, e_e)) : f().map(JPe) 39972 } 39973 , 39974 u.ticks = function(_) { 39975 var T = f(); 39976 return e(T[0], T[T.length - 1], _ ?? 10) 39977 } 39978 , 39979 u.tickFormat = function(_, T) { 39980 return T == null ? S : c(T) 39981 } 39982 , 39983 u.nice = function(_) { 39984 var T = f(); 39985 return (!_ || typeof _.range != "function") && (_ = t(T[0], T[T.length - 1], _ ?? 10)), 39986 _ ? f(Q6(T, _)) : u 39987 } 39988 , 39989 u.copy = function() { 39990 return Hh(u, nC(e, t, n, r, i, o, a, s, l, c)) 39991 } 39992 , 39993 u 39994} 39995function t_e() { 39996 return Hr.apply(nC(XSe, QSe, Ao, eC, Yv, qh, ZT, XT, ps, uz).domain([new Date(2e3,0,1), new Date(2e3,0,2)]), arguments) 39997} 39998function n_e() { 39999 return Hr.apply(nC(GSe, YSe, Eo, tC, Xv, Gv, JT, QT, ps, dz).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments) 40000} 40001function Qv() { 40002 var e = 0, t = 1, n, r, i, o, a = Ln, s = !1, l; 40003 function c(d) { 40004 return d == null || isNaN(d = +d) ? l : a(i === 0 ? .5 : (d = (o(d) - n) * i, 40005 s ? Math.max(0, Math.min(1, d)) : d)) 40006 } 40007 c.domain = function(d) { 40008 return arguments.length ? ([e,t] = d, 40009 n = o(e = +e), 40010 r = o(t = +t), 40011 i = n === r ? 0 : 1 / (r - n), 40012 c) : [e, t] 40013 } 40014 , 40015 c.clamp = function(d) { 40016 return arguments.length ? (s = !!d, 40017 c) : s 40018 } 40019 , 40020 c.interpolator = function(d) { 40021 return arguments.length ? (a = d, 40022 c) : a 40023 } 40024 ; 40025 function u(d) { 40026 return function(f) { 40027 var p, g; 40028 return arguments.length ? ([p,g] = f, 40029 a = d(p, g), 40030 c) : [a(0), a(1)] 40031 } 40032 } 40033 return c.range = u(bu), 40034 c.rangeRound = u(VT), 40035 c.unknown = function(d) { 40036 return arguments.length ? (l = d, 40037 c) : l 40038 } 40039 , 40040 function(d) { 40041 return o = d, 40042 n = d(e), 40043 r = d(t), 40044 i = n === r ? 0 : 1 / (r - n), 40045 c 40046 } 40047} 40048function qa(e, t) { 40049 return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown()) 40050} 40051function fz() { 40052 var e = Ha(Qv()(Ln)); 40053 return e.copy = function() { 40054 return qa(e, fz()) 40055 } 40056 , 40057 $o.apply(e, arguments) 40058} 40059function hz() { 40060 var e = HT(Qv()).domain([1, 10]); 40061 return e.copy = function() { 40062 return qa(e, hz()).base(e.base()) 40063 } 40064 , 40065 $o.apply(e, arguments) 40066} 40067function pz() { 40068 var e = qT(Qv()); 40069 return e.copy = function() { 40070 return qa(e, pz()).constant(e.constant()) 40071 } 40072 , 40073 $o.apply(e, arguments) 40074} 40075function rC() { 40076 var e = KT(Qv()); 40077 return e.copy = function() { 40078 return qa(e, rC()).exponent(e.exponent()) 40079 } 40080 , 40081 $o.apply(e, arguments) 40082} 40083function r_e() { 40084 return rC.apply(null, arguments).exponent(.5) 40085} 40086function mz() { 40087 var e = [] 40088 , t = Ln; 40089 function n(r) { 40090 if (r != null && !isNaN(r = +r)) 40091 return t((zh(e, r, 1) - 1) / (e.length - 1)) 40092 } 40093 return n.domain = function(r) { 40094 if (!arguments.length) 40095 return e.slice(); 40096 e = []; 40097 for (let i of r) 40098 i != null && !isNaN(i = +i) && e.push(i); 40099 return e.sort(wa), 40100 n 40101 } 40102 , 40103 n.interpolator = function(r) { 40104 return arguments.length ? (t = r, 40105 n) : t 40106 } 40107 , 40108 n.range = function() { 40109 return e.map( (r, i) => t(i / (e.length - 1))) 40110 } 40111 , 40112 n.quantiles = function(r) { 40113 return Array.from({ 40114 length: r + 1 40115 }, (i, o) => z1e(e, o / r)) 40116 } 40117 , 40118 n.copy = function() { 40119 return mz(t).domain(e) 40120 } 40121 , 40122 $o.apply(n, arguments) 40123} 40124function Zv() { 40125 var e = 0, t = .5, n = 1, r = 1, i, o, a, s, l, c = Ln, u, d = !1, f; 40126 function p(m) { 40127 return isNaN(m = +m) ? f : (m = .5 + ((m = +u(m)) - o) * (r * m < r * o ? s : l), 40128 c(d ? Math.max(0, Math.min(1, m)) : m)) 40129 } 40130 p.domain = function(m) { 40131 return arguments.length ? ([e,t,n] = m, 40132 i = u(e = +e), 40133 o = u(t = +t), 40134 a = u(n = +n), 40135 s = i === o ? 0 : .5 / (o - i), 40136 l = o === a ? 0 : .5 / (a - o), 40137 r = o < i ? -1 : 1, 40138 p) : [e, t, n] 40139 } 40140 , 40141 p.clamp = function(m) { 40142 return arguments.length ? (d = !!m, 40143 p) : d 40144 } 40145 , 40146 p.interpolator = function(m) { 40147 return arguments.length ? (c = m, 40148 p) : c 40149 } 40150 ; 40151 function g(m) { 40152 return function(x) { 40153 var v, y, w; 40154 return arguments.length ? ([v,y,w] = x, 40155 c = mSe(m, [v, y, w]), 40156 p) : [c(0), c(.5), c(1)] 40157 } 40158 } 40159 return p.range = g(bu), 40160 p.rangeRound = g(VT), 40161 p.unknown = function(m) { 40162 return arguments.length ? (f = m, 40163 p) : f 40164 } 40165 , 40166 function(m) { 40167 return u = m, 40168 i = m(e), 40169 o = m(t), 40170 a = m(n), 40171 s = i === o ? 0 : .5 / (o - i), 40172 l = o === a ? 0 : .5 / (a - o), 40173 r = o < i ? -1 : 1, 40174 p 40175 } 40176} 40177function gz() { 40178 var e = Ha(Zv()(Ln)); 40179 return e.copy = function() { 40180 return qa(e, gz()) 40181 } 40182 , 40183 $o.apply(e, arguments) 40184} 40185function yz() { 40186 var e = HT(Zv()).domain([.1, 1, 10]); 40187 return e.copy = function() { 40188 return qa(e, yz()).base(e.base()) 40189 } 40190 , 40191 $o.apply(e, arguments) 40192} 40193function vz() { 40194 var e = qT(Zv()); 40195 return e.copy = function() { 40196 return qa(e, vz()).constant(e.constant()) 40197 } 40198 , 40199 $o.apply(e, arguments) 40200} 40201function iC() { 40202 var e = KT(Zv()); 40203 return e.copy = function() { 40204 return qa(e, iC()).exponent(e.exponent()) 40205 } 40206 , 40207 $o.apply(e, arguments) 40208} 40209function i_e() { 40210 return iC.apply(null, arguments).exponent(.5) 40211} 40212const cM = Object.freeze(Object.defineProperty({ 40213 __proto__: null, 40214 scaleBand: Tf, 40215 scaleDiverging: gz, 40216 scaleDivergingLog: yz, 40217 scaleDivergingPow: iC, 40218 scaleDivergingSqrt: i_e, 40219 scaleDivergingSymlog: vz, 40220 scaleIdentity: X6, 40221 scaleImplicit: R1, 40222 scaleLinear: Dg, 40223 scaleLog: Z6, 40224 scaleOrdinal: LT, 40225 scalePoint: Id, 40226 scalePow: GT, 40227 scaleQuantile: tz, 40228 scaleQuantize: nz, 40229 scaleRadial: ez, 40230 scaleSequential: fz, 40231 scaleSequentialLog: hz, 40232 scaleSequentialPow: rC, 40233 scaleSequentialQuantile: mz, 40234 scaleSequentialSqrt: r_e, 40235 scaleSequentialSymlog: pz, 40236 scaleSqrt: LSe, 40237 scaleSymlog: J6, 40238 scaleThreshold: rz, 40239 scaleTime: t_e, 40240 scaleUtc: n_e, 40241 tickFormat: Y6 40242}, Symbol.toStringTag, { 40243 value: "Module" 40244})); 40245var o_e = du; 40246function a_e(e, t, n) { 40247 for (var r = -1, i = e.length; ++r < i; ) { 40248 var o = e[r] 40249 , a = t(o); 40250 if (a != null && (s === void 0 ? a === a && !o_e(a) : n(a, s))) 40251 var s = a 40252 , l = o 40253 } 40254 return l 40255} 40256var xz = a_e; 40257function s_e(e, t) { 40258 return e > t 40259} 40260var l_e = s_e 40261 , c_e = xz 40262 , u_e = l_e 40263 , d_e = vu; 40264function f_e(e) { 40265 return e && e.length ? c_e(e, d_e, u_e) : void 0 40266} 40267var h_e = f_e; 40268const Jv = lt(h_e); 40269function p_e(e, t) { 40270 return e < t 40271} 40272var m_e = p_e 40273 , g_e = xz 40274 , y_e = m_e 40275 , v_e = vu; 40276function x_e(e) { 40277 return e && e.length ? g_e(e, v_e, y_e) : void 0 40278} 40279var b_e = x_e; 40280const e0 = lt(b_e); 40281var w_e = yT 40282 , S_e = xu 40283 , P_e = O6 40284 , __e = nr; 40285function T_e(e, t) { 40286 var n = __e(e) ? w_e : P_e; 40287 return n(e, S_e(t)) 40288} 40289var C_e = T_e 40290 , O_e = T6 40291 , A_e = C_e; 40292function E_e(e, t) { 40293 return O_e(A_e(e, t), 1) 40294} 40295var j_e = E_e; 40296const N_e = lt(j_e); 40297var M_e = kT; 40298function k_e(e, t) {
vendor: 100,893 bytes, lines 40299-43879
40299 return M_e(e, t) 40300} 40301var R_e = k_e; 40302const oC = lt(R_e); 40303var wu = 1e9, D_e = { 40304 precision: 20, 40305 rounding: 4, 40306 toExpNeg: -7, 40307 toExpPos: 21, 40308 LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286" 40309}, sC, bt = !0, Ur = "[DecimalError] ", Es = Ur + "Invalid argument: ", aC = Ur + "Exponent out of range: ", Su = Math.floor, os = Math.pow, I_e = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ur, an = 1e7, gt = 7, bz = 9007199254740991, Fg = Su(bz / gt), me = {}; 40310me.absoluteValue = me.abs = function() { 40311 var e = new this.constructor(this); 40312 return e.s && (e.s = 1), 40313 e 40314} 40315; 40316me.comparedTo = me.cmp = function(e) { 40317 var t, n, r, i, o = this; 40318 if (e = new o.constructor(e), 40319 o.s !== e.s) 40320 return o.s || -e.s; 40321 if (o.e !== e.e) 40322 return o.e > e.e ^ o.s < 0 ? 1 : -1; 40323 for (r = o.d.length, 40324 i = e.d.length, 40325 t = 0, 40326 n = r < i ? r : i; t < n; ++t) 40327 if (o.d[t] !== e.d[t]) 40328 return o.d[t] > e.d[t] ^ o.s < 0 ? 1 : -1; 40329 return r === i ? 0 : r > i ^ o.s < 0 ? 1 : -1 40330} 40331; 40332me.decimalPlaces = me.dp = function() { 40333 var e = this 40334 , t = e.d.length - 1 40335 , n = (t - e.e) * gt; 40336 if (t = e.d[t], 40337 t) 40338 for (; t % 10 == 0; t /= 10) 40339 n--; 40340 return n < 0 ? 0 : n 40341} 40342; 40343me.dividedBy = me.div = function(e) { 40344 return vo(this, new this.constructor(e)) 40345} 40346; 40347me.dividedToIntegerBy = me.idiv = function(e) { 40348 var t = this 40349 , n = t.constructor; 40350 return at(vo(t, new n(e), 0, 1), n.precision) 40351} 40352; 40353me.equals = me.eq = function(e) { 40354 return !this.cmp(e) 40355} 40356; 40357me.exponent = function() { 40358 return Yt(this) 40359} 40360; 40361me.greaterThan = me.gt = function(e) { 40362 return this.cmp(e) > 0 40363} 40364; 40365me.greaterThanOrEqualTo = me.gte = function(e) { 40366 return this.cmp(e) >= 0 40367} 40368; 40369me.isInteger = me.isint = function() { 40370 return this.e > this.d.length - 2 40371} 40372; 40373me.isNegative = me.isneg = function() { 40374 return this.s < 0 40375} 40376; 40377me.isPositive = me.ispos = function() { 40378 return this.s > 0 40379} 40380; 40381me.isZero = function() { 40382 return this.s === 0 40383} 40384; 40385me.lessThan = me.lt = function(e) { 40386 return this.cmp(e) < 0 40387} 40388; 40389me.lessThanOrEqualTo = me.lte = function(e) { 40390 return this.cmp(e) < 1 40391} 40392; 40393me.logarithm = me.log = function(e) { 40394 var t, n = this, r = n.constructor, i = r.precision, o = i + 5; 40395 if (e === void 0) 40396 e = new r(10); 40397 else if (e = new r(e), 40398 e.s < 1 || e.eq(ur)) 40399 throw Error(Ur + "NaN"); 40400 if (n.s < 1) 40401 throw Error(Ur + (n.s ? "NaN" : "-Infinity")); 40402 return n.eq(ur) ? new r(0) : (bt = !1, 40403 t = vo(jf(n, o), jf(e, o), o), 40404 bt = !0, 40405 at(t, i)) 40406} 40407; 40408me.minus = me.sub = function(e) { 40409 var t = this; 40410 return e = new t.constructor(e), 40411 t.s == e.s ? Pz(t, e) : wz(t, (e.s = -e.s, 40412 e)) 40413} 40414; 40415me.modulo = me.mod = function(e) { 40416 var t, n = this, r = n.constructor, i = r.precision; 40417 if (e = new r(e), 40418 !e.s) 40419 throw Error(Ur + "NaN"); 40420 return n.s ? (bt = !1, 40421 t = vo(n, e, 0, 1).times(e), 40422 bt = !0, 40423 n.minus(t)) : at(new r(n), i) 40424} 40425; 40426me.naturalExponential = me.exp = function() { 40427 return Sz(this) 40428} 40429; 40430me.naturalLogarithm = me.ln = function() { 40431 return jf(this) 40432} 40433; 40434me.negated = me.neg = function() { 40435 var e = new this.constructor(this); 40436 return e.s = -e.s || 0, 40437 e 40438} 40439; 40440me.plus = me.add = function(e) { 40441 var t = this; 40442 return e = new t.constructor(e), 40443 t.s == e.s ? wz(t, e) : Pz(t, (e.s = -e.s, 40444 e)) 40445} 40446; 40447me.precision = me.sd = function(e) { 40448 var t, n, r, i = this; 40449 if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) 40450 throw Error(Es + e); 40451 if (t = Yt(i) + 1, 40452 r = i.d.length - 1, 40453 n = r * gt + 1, 40454 r = i.d[r], 40455 r) { 40456 for (; r % 10 == 0; r /= 10) 40457 n--; 40458 for (r = i.d[0]; r >= 10; r /= 10) 40459 n++ 40460 } 40461 return e && t > n ? t : n 40462} 40463; 40464me.squareRoot = me.sqrt = function() { 40465 var e, t, n, r, i, o, a, s = this, l = s.constructor; 40466 if (s.s < 1) { 40467 if (!s.s) 40468 return new l(0); 40469 throw Error(Ur + "NaN") 40470 } 40471 for (e = Yt(s), 40472 bt = !1, 40473 i = Math.sqrt(+s), 40474 i == 0 || i == 1 / 0 ? (t = Ni(s.d), 40475 (t.length + e) % 2 == 0 && (t += "0"), 40476 i = Math.sqrt(t), 40477 e = Su((e + 1) / 2) - (e < 0 || e % 2), 40478 i == 1 / 0 ? t = "5e" + e : (t = i.toExponential(), 40479 t = t.slice(0, t.indexOf("e") + 1) + e), 40480 r = new l(t)) : r = new l(i.toString()), 40481 n = l.precision, 40482 i = a = n + 3; ; ) 40483 if (o = r, 40484 r = o.plus(vo(s, o, a + 2)).times(.5), 40485 Ni(o.d).slice(0, a) === (t = Ni(r.d)).slice(0, a)) { 40486 if (t = t.slice(a - 3, a + 1), 40487 i == a && t == "4999") { 40488 if (at(o, n + 1, 0), 40489 o.times(o).eq(s)) { 40490 r = o; 40491 break 40492 } 40493 } else if (t != "9999") 40494 break; 40495 a += 4 40496 } 40497 return bt = !0, 40498 at(r, n) 40499} 40500; 40501me.times = me.mul = function(e) { 40502 var t, n, r, i, o, a, s, l, c, u = this, d = u.constructor, f = u.d, p = (e = new d(e)).d; 40503 if (!u.s || !e.s) 40504 return new d(0); 40505 for (e.s *= u.s, 40506 n = u.e + e.e, 40507 l = f.length, 40508 c = p.length, 40509 l < c && (o = f, 40510 f = p, 40511 p = o, 40512 a = l, 40513 l = c, 40514 c = a), 40515 o = [], 40516 a = l + c, 40517 r = a; r--; ) 40518 o.push(0); 40519 for (r = c; --r >= 0; ) { 40520 for (t = 0, 40521 i = l + r; i > r; ) 40522 s = o[i] + p[r] * f[i - r - 1] + t, 40523 o[i--] = s % an | 0, 40524 t = s / an | 0; 40525 o[i] = (o[i] + t) % an | 0 40526 } 40527 for (; !o[--a]; ) 40528 o.pop(); 40529 return t ? ++n : o.shift(), 40530 e.d = o, 40531 e.e = n, 40532 bt ? at(e, d.precision) : e 40533} 40534; 40535me.toDecimalPlaces = me.todp = function(e, t) { 40536 var n = this 40537 , r = n.constructor; 40538 return n = new r(n), 40539 e === void 0 ? n : (Wi(e, 0, wu), 40540 t === void 0 ? t = r.rounding : Wi(t, 0, 8), 40541 at(n, e + Yt(n) + 1, t)) 40542} 40543; 40544me.toExponential = function(e, t) { 40545 var n, r = this, i = r.constructor; 40546 return e === void 0 ? n = qs(r, !0) : (Wi(e, 0, wu), 40547 t === void 0 ? t = i.rounding : Wi(t, 0, 8), 40548 r = at(new i(r), e + 1, t), 40549 n = qs(r, !0, e + 1)), 40550 n 40551} 40552; 40553me.toFixed = function(e, t) { 40554 var n, r, i = this, o = i.constructor; 40555 return e === void 0 ? qs(i) : (Wi(e, 0, wu), 40556 t === void 0 ? t = o.rounding : Wi(t, 0, 8), 40557 r = at(new o(i), e + Yt(i) + 1, t), 40558 n = qs(r.abs(), !1, e + Yt(r) + 1), 40559 i.isneg() && !i.isZero() ? "-" + n : n) 40560} 40561; 40562me.toInteger = me.toint = function() { 40563 var e = this 40564 , t = e.constructor; 40565 return at(new t(e), Yt(e) + 1, t.rounding) 40566} 40567; 40568me.toNumber = function() { 40569 return +this 40570} 40571; 40572me.toPower = me.pow = function(e) { 40573 var t, n, r, i, o, a, s = this, l = s.constructor, c = 12, u = +(e = new l(e)); 40574 if (!e.s) 40575 return new l(ur); 40576 if (s = new l(s), 40577 !s.s) { 40578 if (e.s < 1) 40579 throw Error(Ur + "Infinity"); 40580 return s 40581 } 40582 if (s.eq(ur)) 40583 return s; 40584 if (r = l.precision, 40585 e.eq(ur)) 40586 return at(s, r); 40587 if (t = e.e, 40588 n = e.d.length - 1, 40589 a = t >= n, 40590 o = s.s, 40591 a) { 40592 if ((n = u < 0 ? -u : u) <= bz) { 40593 for (i = new l(ur), 40594 t = Math.ceil(r / gt + 4), 40595 bt = !1; n % 2 && (i = i.times(s), 40596 dM(i.d, t)), 40597 n = Su(n / 2), 40598 n !== 0; ) 40599 s = s.times(s), 40600 dM(s.d, t); 40601 return bt = !0, 40602 e.s < 0 ? new l(ur).div(i) : at(i, r) 40603 } 40604 } else if (o < 0) 40605 throw Error(Ur + "NaN"); 40606 return o = o < 0 && e.d[Math.max(t, n)] & 1 ? -1 : 1, 40607 s.s = 1, 40608 bt = !1, 40609 i = e.times(jf(s, r + c)), 40610 bt = !0, 40611 i = Sz(i), 40612 i.s = o, 40613 i 40614} 40615; 40616me.toPrecision = function(e, t) { 40617 var n, r, i = this, o = i.constructor; 40618 return e === void 0 ? (n = Yt(i), 40619 r = qs(i, n <= o.toExpNeg || n >= o.toExpPos)) : (Wi(e, 1, wu), 40620 t === void 0 ? t = o.rounding : Wi(t, 0, 8), 40621 i = at(new o(i), e, t), 40622 n = Yt(i), 40623 r = qs(i, e <= n || n <= o.toExpNeg, e)), 40624 r 40625} 40626; 40627me.toSignificantDigits = me.tosd = function(e, t) { 40628 var n = this 40629 , r = n.constructor; 40630 return e === void 0 ? (e = r.precision, 40631 t = r.rounding) : (Wi(e, 1, wu), 40632 t === void 0 ? t = r.rounding : Wi(t, 0, 8)), 40633 at(new r(n), e, t) 40634} 40635; 40636me.toString = me.valueOf = me.val = me.toJSON = me[Symbol.for("nodejs.util.inspect.custom")] = function() { 40637 var e = this 40638 , t = Yt(e) 40639 , n = e.constructor; 40640 return qs(e, t <= n.toExpNeg || t >= n.toExpPos) 40641} 40642; 40643function wz(e, t) { 40644 var n, r, i, o, a, s, l, c, u = e.constructor, d = u.precision; 40645 if (!e.s || !t.s) 40646 return t.s || (t = new u(e)), 40647 bt ? at(t, d) : t; 40648 if (l = e.d, 40649 c = t.d, 40650 a = e.e, 40651 i = t.e, 40652 l = l.slice(), 40653 o = a - i, 40654 o) { 40655 for (o < 0 ? (r = l, 40656 o = -o, 40657 s = c.length) : (r = c, 40658 i = a, 40659 s = l.length), 40660 a = Math.ceil(d / gt), 40661 s = a > s ? a + 1 : s + 1, 40662 o > s && (o = s, 40663 r.length = 1), 40664 r.reverse(); o--; ) 40665 r.push(0); 40666 r.reverse() 40667 } 40668 for (s = l.length, 40669 o = c.length, 40670 s - o < 0 && (o = s, 40671 r = c, 40672 c = l, 40673 l = r), 40674 n = 0; o; ) 40675 n = (l[--o] = l[o] + c[o] + n) / an | 0, 40676 l[o] %= an; 40677 for (n && (l.unshift(n), 40678 ++i), 40679 s = l.length; l[--s] == 0; ) 40680 l.pop(); 40681 return t.d = l, 40682 t.e = i, 40683 bt ? at(t, d) : t 40684} 40685function Wi(e, t, n) { 40686 if (e !== ~~e || e < t || e > n) 40687 throw Error(Es + e) 40688} 40689function Ni(e) { 40690 var t, n, r, i = e.length - 1, o = "", a = e[0]; 40691 if (i > 0) { 40692 for (o += a, 40693 t = 1; t < i; t++) 40694 r = e[t] + "", 40695 n = gt - r.length, 40696 n && (o += Go(n)), 40697 o += r; 40698 a = e[t], 40699 r = a + "", 40700 n = gt - r.length, 40701 n && (o += Go(n)) 40702 } else if (a === 0) 40703 return "0"; 40704 for (; a % 10 === 0; ) 40705 a /= 10; 40706 return o + a 40707} 40708var vo = function() { 40709 function e(r, i) { 40710 var o, a = 0, s = r.length; 40711 for (r = r.slice(); s--; ) 40712 o = r[s] * i + a, 40713 r[s] = o % an | 0, 40714 a = o / an | 0; 40715 return a && r.unshift(a), 40716 r 40717 } 40718 function t(r, i, o, a) { 40719 var s, l; 40720 if (o != a) 40721 l = o > a ? 1 : -1; 40722 else 40723 for (s = l = 0; s < o; s++) 40724 if (r[s] != i[s]) { 40725 l = r[s] > i[s] ? 1 : -1; 40726 break 40727 } 40728 return l 40729 } 40730 function n(r, i, o) { 40731 for (var a = 0; o--; ) 40732 r[o] -= a, 40733 a = r[o] < i[o] ? 1 : 0, 40734 r[o] = a * an + r[o] - i[o]; 40735 for (; !r[0] && r.length > 1; ) 40736 r.shift() 40737 } 40738 return function(r, i, o, a) { 40739 var s, l, c, u, d, f, p, g, m, x, v, y, w, P, S, _, T, C, O = r.constructor, A = r.s == i.s ? 1 : -1, E = r.d, j = i.d; 40740 if (!r.s) 40741 return new O(r); 40742 if (!i.s) 40743 throw Error(Ur + "Division by zero"); 40744 for (l = r.e - i.e, 40745 T = j.length, 40746 S = E.length, 40747 p = new O(A), 40748 g = p.d = [], 40749 c = 0; j[c] == (E[c] || 0); ) 40750 ++c; 40751 if (j[c] > (E[c] || 0) && --l, 40752 o == null ? y = o = O.precision : a ? y = o + (Yt(r) - Yt(i)) + 1 : y = o, 40753 y < 0) 40754 return new O(0); 40755 if (y = y / gt + 2 | 0, 40756 c = 0, 40757 T == 1) 40758 for (u = 0, 40759 j = j[0], 40760 y++; (c < S || u) && y--; c++) 40761 w = u * an + (E[c] || 0), 40762 g[c] = w / j | 0, 40763 u = w % j | 0; 40764 else { 40765 for (u = an / (j[0] + 1) | 0, 40766 u > 1 && (j = e(j, u), 40767 E = e(E, u), 40768 T = j.length, 40769 S = E.length), 40770 P = T, 40771 m = E.slice(0, T), 40772 x = m.length; x < T; ) 40773 m[x++] = 0; 40774 C = j.slice(), 40775 C.unshift(0), 40776 _ = j[0], 40777 j[1] >= an / 2 && ++_; 40778 do 40779 u = 0, 40780 s = t(j, m, T, x), 40781 s < 0 ? (v = m[0], 40782 T != x && (v = v * an + (m[1] || 0)), 40783 u = v / _ | 0, 40784 u > 1 ? (u >= an && (u = an - 1), 40785 d = e(j, u), 40786 f = d.length, 40787 x = m.length, 40788 s = t(d, m, f, x), 40789 s == 1 && (u--, 40790 n(d, T < f ? C : j, f))) : (u == 0 && (s = u = 1), 40791 d = j.slice()), 40792 f = d.length, 40793 f < x && d.unshift(0), 40794 n(m, d, x), 40795 s == -1 && (x = m.length, 40796 s = t(j, m, T, x), 40797 s < 1 && (u++, 40798 n(m, T < x ? C : j, x))), 40799 x = m.length) : s === 0 && (u++, 40800 m = [0]), 40801 g[c++] = u, 40802 s && m[0] ? m[x++] = E[P] || 0 : (m = [E[P]], 40803 x = 1); 40804 while ((P++ < S || m[0] !== void 0) && y--) 40805 } 40806 return g[0] || g.shift(), 40807 p.e = l, 40808 at(p, a ? o + Yt(p) + 1 : o) 40809 } 40810}(); 40811function Sz(e, t) { 40812 var n, r, i, o, a, s, l = 0, c = 0, u = e.constructor, d = u.precision; 40813 if (Yt(e) > 16) 40814 throw Error(aC + Yt(e)); 40815 if (!e.s) 40816 return new u(ur); 40817 for (t == null ? (bt = !1, 40818 s = d) : s = t, 40819 a = new u(.03125); e.abs().gte(.1); ) 40820 e = e.times(a), 40821 c += 5; 40822 for (r = Math.log(os(2, c)) / Math.LN10 * 2 + 5 | 0, 40823 s += r, 40824 n = i = o = new u(ur), 40825 u.precision = s; ; ) { 40826 if (i = at(i.times(e), s), 40827 n = n.times(++l), 40828 a = o.plus(vo(i, n, s)), 40829 Ni(a.d).slice(0, s) === Ni(o.d).slice(0, s)) { 40830 for (; c--; ) 40831 o = at(o.times(o), s); 40832 return u.precision = d, 40833 t == null ? (bt = !0, 40834 at(o, d)) : o 40835 } 40836 o = a 40837 } 40838} 40839function Yt(e) { 40840 for (var t = e.e * gt, n = e.d[0]; n >= 10; n /= 10) 40841 t++; 40842 return t 40843} 40844function Vx(e, t, n) { 40845 if (t > e.LN10.sd()) 40846 throw bt = !0, 40847 n && (e.precision = n), 40848 Error(Ur + "LN10 precision limit exceeded"); 40849 return at(new e(e.LN10), t) 40850} 40851function Go(e) { 40852 for (var t = ""; e--; ) 40853 t += "0"; 40854 return t 40855} 40856function jf(e, t) { 40857 var n, r, i, o, a, s, l, c, u, d = 1, f = 10, p = e, g = p.d, m = p.constructor, x = m.precision; 40858 if (p.s < 1) 40859 throw Error(Ur + (p.s ? "NaN" : "-Infinity")); 40860 if (p.eq(ur)) 40861 return new m(0); 40862 if (t == null ? (bt = !1, 40863 c = x) : c = t, 40864 p.eq(10)) 40865 return t == null && (bt = !0), 40866 Vx(m, c); 40867 if (c += f, 40868 m.precision = c, 40869 n = Ni(g), 40870 r = n.charAt(0), 40871 o = Yt(p), 40872 Math.abs(o) < 15e14) { 40873 for (; r < 7 && r != 1 || r == 1 && n.charAt(1) > 3; ) 40874 p = p.times(e), 40875 n = Ni(p.d), 40876 r = n.charAt(0), 40877 d++; 40878 o = Yt(p), 40879 r > 1 ? (p = new m("0." + n), 40880 o++) : p = new m(r + "." + n.slice(1)) 40881 } else 40882 return l = Vx(m, c + 2, x).times(o + ""), 40883 p = jf(new m(r + "." + n.slice(1)), c - f).plus(l), 40884 m.precision = x, 40885 t == null ? (bt = !0, 40886 at(p, x)) : p; 40887 for (s = a = p = vo(p.minus(ur), p.plus(ur), c), 40888 u = at(p.times(p), c), 40889 i = 3; ; ) { 40890 if (a = at(a.times(u), c), 40891 l = s.plus(vo(a, new m(i), c)), 40892 Ni(l.d).slice(0, c) === Ni(s.d).slice(0, c)) 40893 return s = s.times(2), 40894 o !== 0 && (s = s.plus(Vx(m, c + 2, x).times(o + ""))), 40895 s = vo(s, new m(d), c), 40896 m.precision = x, 40897 t == null ? (bt = !0, 40898 at(s, x)) : s; 40899 s = l, 40900 i += 2 40901 } 40902} 40903function uM(e, t) { 40904 var n, r, i; 40905 for ((n = t.indexOf(".")) > -1 && (t = t.replace(".", "")), 40906 (r = t.search(/e/i)) > 0 ? (n < 0 && (n = r), 40907 n += +t.slice(r + 1), 40908 t = t.substring(0, r)) : n < 0 && (n = t.length), 40909 r = 0; t.charCodeAt(r) === 48; ) 40910 ++r; 40911 for (i = t.length; t.charCodeAt(i - 1) === 48; ) 40912 --i; 40913 if (t = t.slice(r, i), 40914 t) { 40915 if (i -= r, 40916 n = n - r - 1, 40917 e.e = Su(n / gt), 40918 e.d = [], 40919 r = (n + 1) % gt, 40920 n < 0 && (r += gt), 40921 r < i) { 40922 for (r && e.d.push(+t.slice(0, r)), 40923 i -= gt; r < i; ) 40924 e.d.push(+t.slice(r, r += gt)); 40925 t = t.slice(r), 40926 r = gt - t.length 40927 } else 40928 r -= i; 40929 for (; r--; ) 40930 t += "0"; 40931 if (e.d.push(+t), 40932 bt && (e.e > Fg || e.e < -Fg)) 40933 throw Error(aC + n) 40934 } else 40935 e.s = 0, 40936 e.e = 0, 40937 e.d = [0]; 40938 return e 40939} 40940function at(e, t, n) { 40941 var r, i, o, a, s, l, c, u, d = e.d; 40942 for (a = 1, 40943 o = d[0]; o >= 10; o /= 10) 40944 a++; 40945 if (r = t - a, 40946 r < 0) 40947 r += gt, 40948 i = t, 40949 c = d[u = 0]; 40950 else { 40951 if (u = Math.ceil((r + 1) / gt), 40952 o = d.length, 40953 u >= o) 40954 return e; 40955 for (c = o = d[u], 40956 a = 1; o >= 10; o /= 10) 40957 a++; 40958 r %= gt, 40959 i = r - gt + a 40960 } 40961 if (n !== void 0 && (o = os(10, a - i - 1), 40962 s = c / o % 10 | 0, 40963 l = t < 0 || d[u + 1] !== void 0 || c % o, 40964 l = n < 4 ? (s || l) && (n == 0 || n == (e.s < 0 ? 3 : 2)) : s > 5 || s == 5 && (n == 4 || l || n == 6 && (r > 0 ? i > 0 ? c / os(10, a - i) : 0 : d[u - 1]) % 10 & 1 || n == (e.s < 0 ? 8 : 7))), 40965 t < 1 || !d[0]) 40966 return l ? (o = Yt(e), 40967 d.length = 1, 40968 t = t - o - 1, 40969 d[0] = os(10, (gt - t % gt) % gt), 40970 e.e = Su(-t / gt) || 0) : (d.length = 1, 40971 d[0] = e.e = e.s = 0), 40972 e; 40973 if (r == 0 ? (d.length = u, 40974 o = 1, 40975 u--) : (d.length = u + 1, 40976 o = os(10, gt - r), 40977 d[u] = i > 0 ? (c / os(10, a - i) % os(10, i) | 0) * o : 0), 40978 l) 40979 for (; ; ) 40980 if (u == 0) { 40981 (d[0] += o) == an && (d[0] = 1, 40982 ++e.e); 40983 break 40984 } else { 40985 if (d[u] += o, 40986 d[u] != an) 40987 break; 40988 d[u--] = 0, 40989 o = 1 40990 } 40991 for (r = d.length; d[--r] === 0; ) 40992 d.pop(); 40993 if (bt && (e.e > Fg || e.e < -Fg)) 40994 throw Error(aC + Yt(e)); 40995 return e 40996} 40997function Pz(e, t) { 40998 var n, r, i, o, a, s, l, c, u, d, f = e.constructor, p = f.precision; 40999 if (!e.s || !t.s) 41000 return t.s ? t.s = -t.s : t = new f(e), 41001 bt ? at(t, p) : t; 41002 if (l = e.d, 41003 d = t.d, 41004 r = t.e, 41005 c = e.e, 41006 l = l.slice(), 41007 a = c - r, 41008 a) { 41009 for (u = a < 0, 41010 u ? (n = l, 41011 a = -a, 41012 s = d.length) : (n = d, 41013 r = c, 41014 s = l.length), 41015 i = Math.max(Math.ceil(p / gt), s) + 2, 41016 a > i && (a = i, 41017 n.length = 1), 41018 n.reverse(), 41019 i = a; i--; ) 41020 n.push(0); 41021 n.reverse() 41022 } else { 41023 for (i = l.length, 41024 s = d.length, 41025 u = i < s, 41026 u && (s = i), 41027 i = 0; i < s; i++) 41028 if (l[i] != d[i]) { 41029 u = l[i] < d[i]; 41030 break 41031 } 41032 a = 0 41033 } 41034 for (u && (n = l, 41035 l = d, 41036 d = n, 41037 t.s = -t.s), 41038 s = l.length, 41039 i = d.length - s; i > 0; --i) 41040 l[s++] = 0; 41041 for (i = d.length; i > a; ) { 41042 if (l[--i] < d[i]) { 41043 for (o = i; o && l[--o] === 0; ) 41044 l[o] = an - 1; 41045 --l[o], 41046 l[i] += an 41047 } 41048 l[i] -= d[i] 41049 } 41050 for (; l[--s] === 0; ) 41051 l.pop(); 41052 for (; l[0] === 0; l.shift()) 41053 --r; 41054 return l[0] ? (t.d = l, 41055 t.e = r, 41056 bt ? at(t, p) : t) : new f(0) 41057} 41058function qs(e, t, n) { 41059 var r, i = Yt(e), o = Ni(e.d), a = o.length; 41060 return t ? (n && (r = n - a) > 0 ? o = o.charAt(0) + "." + o.slice(1) + Go(r) : a > 1 && (o = o.charAt(0) + "." + o.slice(1)), 41061 o = o + (i < 0 ? "e" : "e+") + i) : i < 0 ? (o = "0." + Go(-i - 1) + o, 41062 n && (r = n - a) > 0 && (o += Go(r))) : i >= a ? (o += Go(i + 1 - a), 41063 n && (r = n - i - 1) > 0 && (o = o + "." + Go(r))) : ((r = i + 1) < a && (o = o.slice(0, r) + "." + o.slice(r)), 41064 n && (r = n - a) > 0 && (i + 1 === a && (o += "."), 41065 o += Go(r))), 41066 e.s < 0 ? "-" + o : o 41067} 41068function dM(e, t) { 41069 if (e.length > t) 41070 return e.length = t, 41071 !0 41072} 41073function _z(e) { 41074 var t, n, r; 41075 function i(o) { 41076 var a = this; 41077 if (!(a instanceof i)) 41078 return new i(o); 41079 if (a.constructor = i, 41080 o instanceof i) { 41081 a.s = o.s, 41082 a.e = o.e, 41083 a.d = (o = o.d) ? o.slice() : o; 41084 return 41085 } 41086 if (typeof o == "number") { 41087 if (o * 0 !== 0) 41088 throw Error(Es + o); 41089 if (o > 0) 41090 a.s = 1; 41091 else if (o < 0) 41092 o = -o, 41093 a.s = -1; 41094 else { 41095 a.s = 0, 41096 a.e = 0, 41097 a.d = [0]; 41098 return 41099 } 41100 if (o === ~~o && o < 1e7) { 41101 a.e = 0, 41102 a.d = [o]; 41103 return 41104 } 41105 return uM(a, o.toString()) 41106 } else if (typeof o != "string") 41107 throw Error(Es + o); 41108 if (o.charCodeAt(0) === 45 ? (o = o.slice(1), 41109 a.s = -1) : a.s = 1, 41110 I_e.test(o)) 41111 uM(a, o); 41112 else 41113 throw Error(Es + o) 41114 } 41115 if (i.prototype = me, 41116 i.ROUND_UP = 0, 41117 i.ROUND_DOWN = 1, 41118 i.ROUND_CEIL = 2, 41119 i.ROUND_FLOOR = 3, 41120 i.ROUND_HALF_UP = 4, 41121 i.ROUND_HALF_DOWN = 5, 41122 i.ROUND_HALF_EVEN = 6, 41123 i.ROUND_HALF_CEIL = 7, 41124 i.ROUND_HALF_FLOOR = 8, 41125 i.clone = _z, 41126 i.config = i.set = $_e, 41127 e === void 0 && (e = {}), 41128 e) 41129 for (r = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"], 41130 t = 0; t < r.length; ) 41131 e.hasOwnProperty(n = r[t++]) || (e[n] = this[n]); 41132 return i.config(e), 41133 i 41134} 41135function $_e(e) { 41136 if (!e || typeof e != "object") 41137 throw Error(Ur + "Object expected"); 41138 var t, n, r, i = ["precision", 1, wu, "rounding", 0, 8, "toExpNeg", -1 / 0, 0, "toExpPos", 0, 1 / 0]; 41139 for (t = 0; t < i.length; t += 3) 41140 if ((r = e[n = i[t]]) !== void 0) 41141 if (Su(r) === r && r >= i[t + 1] && r <= i[t + 2]) 41142 this[n] = r; 41143 else 41144 throw Error(Es + n + ": " + r); 41145 if ((r = e[n = "LN10"]) !== void 0) 41146 if (r == Math.LN10) 41147 this[n] = new this(r); 41148 else 41149 throw Error(Es + n + ": " + r); 41150 return this 41151} 41152var sC = _z(D_e); 41153ur = new sC(1); 41154const ot = sC; 41155function L_e(e) { 41156 return U_e(e) || V_e(e) || B_e(e) || F_e() 41157} 41158function F_e() { 41159 throw new TypeError(`Invalid attempt to spread non-iterable instance. 41160In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 41161} 41162function B_e(e, t) { 41163 if (e) { 41164 if (typeof e == "string") 41165 return L1(e, t); 41166 var n = Object.prototype.toString.call(e).slice(8, -1); 41167 if (n === "Object" && e.constructor && (n = e.constructor.name), 41168 n === "Map" || n === "Set") 41169 return Array.from(e); 41170 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 41171 return L1(e, t) 41172 } 41173} 41174function V_e(e) { 41175 if (typeof Symbol < "u" && Symbol.iterator in Object(e)) 41176 return Array.from(e) 41177} 41178function U_e(e) { 41179 if (Array.isArray(e)) 41180 return L1(e) 41181} 41182function L1(e, t) { 41183 (t == null || t > e.length) && (t = e.length); 41184 for (var n = 0, r = new Array(t); n < t; n++) 41185 r[n] = e[n]; 41186 return r 41187} 41188var z_e = function(t) { 41189 return t 41190} 41191 , Tz = { 41192 "@@functional/placeholder": !0 41193} 41194 , Cz = function(t) { 41195 return t === Tz 41196} 41197 , fM = function(t) { 41198 return function n() { 41199 return arguments.length === 0 || arguments.length === 1 && Cz(arguments.length <= 0 ? void 0 : arguments[0]) ? n : t.apply(void 0, arguments) 41200 } 41201} 41202 , W_e = function e(t, n) { 41203 return t === 1 ? n : fM(function() { 41204 for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) 41205 i[o] = arguments[o]; 41206 var a = i.filter(function(s) { 41207 return s !== Tz 41208 }).length; 41209 return a >= t ? n.apply(void 0, i) : e(t - a, fM(function() { 41210 for (var s = arguments.length, l = new Array(s), c = 0; c < s; c++) 41211 l[c] = arguments[c]; 41212 var u = i.map(function(d) { 41213 return Cz(d) ? l.shift() : d 41214 }); 41215 return n.apply(void 0, L_e(u).concat(l)) 41216 })) 41217 }) 41218} 41219 , t0 = function(t) { 41220 return W_e(t.length, t) 41221} 41222 , F1 = function(t, n) { 41223 for (var r = [], i = t; i < n; ++i) 41224 r[i - t] = i; 41225 return r 41226} 41227 , H_e = t0(function(e, t) { 41228 return Array.isArray(t) ? t.map(e) : Object.keys(t).map(function(n) { 41229 return t[n] 41230 }).map(e) 41231}) 41232 , q_e = function() { 41233 for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) 41234 n[r] = arguments[r]; 41235 if (!n.length) 41236 return z_e; 41237 var i = n.reverse() 41238 , o = i[0] 41239 , a = i.slice(1); 41240 return function() { 41241 return a.reduce(function(s, l) { 41242 return l(s) 41243 }, o.apply(void 0, arguments)) 41244 } 41245} 41246 , B1 = function(t) { 41247 return Array.isArray(t) ? t.reverse() : t.split("").reverse.join("") 41248} 41249 , Oz = function(t) { 41250 var n = null 41251 , r = null; 41252 return function() { 41253 for (var i = arguments.length, o = new Array(i), a = 0; a < i; a++) 41254 o[a] = arguments[a]; 41255 return n && o.every(function(s, l) { 41256 return s === n[l] 41257 }) || (n = o, 41258 r = t.apply(void 0, o)), 41259 r 41260 } 41261}; 41262function K_e(e) { 41263 var t; 41264 return e === 0 ? t = 1 : t = Math.floor(new ot(e).abs().log(10).toNumber()) + 1, 41265 t 41266} 41267function G_e(e, t, n) { 41268 for (var r = new ot(e), i = 0, o = []; r.lt(t) && i < 1e5; ) 41269 o.push(r.toNumber()), 41270 r = r.add(n), 41271 i++; 41272 return o 41273} 41274var Y_e = t0(function(e, t, n) { 41275 var r = +e 41276 , i = +t; 41277 return r + n * (i - r) 41278}) 41279 , X_e = t0(function(e, t, n) { 41280 var r = t - +e; 41281 return r = r || 1 / 0, 41282 (n - e) / r 41283}) 41284 , Q_e = t0(function(e, t, n) { 41285 var r = t - +e; 41286 return r = r || 1 / 0, 41287 Math.max(0, Math.min(1, (n - e) / r)) 41288}); 41289const n0 = { 41290 rangeStep: G_e, 41291 getDigitCount: K_e, 41292 interpolateNumber: Y_e, 41293 uninterpolateNumber: X_e, 41294 uninterpolateTruncation: Q_e 41295}; 41296function V1(e) { 41297 return eTe(e) || J_e(e) || Az(e) || Z_e() 41298} 41299function Z_e() { 41300 throw new TypeError(`Invalid attempt to spread non-iterable instance. 41301In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 41302} 41303function J_e(e) { 41304 if (typeof Symbol < "u" && Symbol.iterator in Object(e)) 41305 return Array.from(e) 41306} 41307function eTe(e) { 41308 if (Array.isArray(e)) 41309 return U1(e) 41310} 41311function Nf(e, t) { 41312 return rTe(e) || nTe(e, t) || Az(e, t) || tTe() 41313} 41314function tTe() { 41315 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 41316In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 41317} 41318function Az(e, t) { 41319 if (e) { 41320 if (typeof e == "string") 41321 return U1(e, t); 41322 var n = Object.prototype.toString.call(e).slice(8, -1); 41323 if (n === "Object" && e.constructor && (n = e.constructor.name), 41324 n === "Map" || n === "Set") 41325 return Array.from(e); 41326 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 41327 return U1(e, t) 41328 } 41329} 41330function U1(e, t) { 41331 (t == null || t > e.length) && (t = e.length); 41332 for (var n = 0, r = new Array(t); n < t; n++) 41333 r[n] = e[n]; 41334 return r 41335} 41336function nTe(e, t) { 41337 if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) { 41338 var n = [] 41339 , r = !0 41340 , i = !1 41341 , o = void 0; 41342 try { 41343 for (var a = e[Symbol.iterator](), s; !(r = (s = a.next()).done) && (n.push(s.value), 41344 !(t && n.length === t)); r = !0) 41345 ; 41346 } catch (l) { 41347 i = !0, 41348 o = l 41349 } finally { 41350 try { 41351 !r && a.return != null && a.return() 41352 } finally { 41353 if (i) 41354 throw o 41355 } 41356 } 41357 return n 41358 } 41359} 41360function rTe(e) { 41361 if (Array.isArray(e)) 41362 return e 41363} 41364function Ez(e) { 41365 var t = Nf(e, 2) 41366 , n = t[0] 41367 , r = t[1] 41368 , i = n 41369 , o = r; 41370 return n > r && (i = r, 41371 o = n), 41372 [i, o] 41373} 41374function jz(e, t, n) { 41375 if (e.lte(0)) 41376 return new ot(0); 41377 var r = n0.getDigitCount(e.toNumber()) 41378 , i = new ot(10).pow(r) 41379 , o = e.div(i) 41380 , a = r !== 1 ? .05 : .1 41381 , s = new ot(Math.ceil(o.div(a).toNumber())).add(n).mul(a) 41382 , l = s.mul(i); 41383 return t ? l : new ot(Math.ceil(l)) 41384} 41385function iTe(e, t, n) { 41386 var r = 1 41387 , i = new ot(e); 41388 if (!i.isint() && n) { 41389 var o = Math.abs(e); 41390 o < 1 ? (r = new ot(10).pow(n0.getDigitCount(e) - 1), 41391 i = new ot(Math.floor(i.div(r).toNumber())).mul(r)) : o > 1 && (i = new ot(Math.floor(e))) 41392 } else 41393 e === 0 ? i = new ot(Math.floor((t - 1) / 2)) : n || (i = new ot(Math.floor(e))); 41394 var a = Math.floor((t - 1) / 2) 41395 , s = q_e(H_e(function(l) { 41396 return i.add(new ot(l - a).mul(r)).toNumber() 41397 }), F1); 41398 return s(0, t) 41399} 41400function Nz(e, t, n, r) { 41401 var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0; 41402 if (!Number.isFinite((t - e) / (n - 1))) 41403 return { 41404 step: new ot(0), 41405 tickMin: new ot(0), 41406 tickMax: new ot(0) 41407 }; 41408 var o = jz(new ot(t).sub(e).div(n - 1), r, i), a; 41409 e <= 0 && t >= 0 ? a = new ot(0) : (a = new ot(e).add(t).div(2), 41410 a = a.sub(new ot(a).mod(o))); 41411 var s = Math.ceil(a.sub(e).div(o).toNumber()) 41412 , l = Math.ceil(new ot(t).sub(a).div(o).toNumber()) 41413 , c = s + l + 1; 41414 return c > n ? Nz(e, t, n, r, i + 1) : (c < n && (l = t > 0 ? l + (n - c) : l, 41415 s = t > 0 ? s : s + (n - c)), 41416 { 41417 step: o, 41418 tickMin: a.sub(new ot(s).mul(o)), 41419 tickMax: a.add(new ot(l).mul(o)) 41420 }) 41421} 41422function oTe(e) { 41423 var t = Nf(e, 2) 41424 , n = t[0] 41425 , r = t[1] 41426 , i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6 41427 , o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0 41428 , a = Math.max(i, 2) 41429 , s = Ez([n, r]) 41430 , l = Nf(s, 2) 41431 , c = l[0] 41432 , u = l[1]; 41433 if (c === -1 / 0 || u === 1 / 0) { 41434 var d = u === 1 / 0 ? [c].concat(V1(F1(0, i - 1).map(function() { 41435 return 1 / 0 41436 }))) : [].concat(V1(F1(0, i - 1).map(function() { 41437 return -1 / 0 41438 })), [u]); 41439 return n > r ? B1(d) : d 41440 } 41441 if (c === u) 41442 return iTe(c, i, o); 41443 var f = Nz(c, u, a, o) 41444 , p = f.step 41445 , g = f.tickMin 41446 , m = f.tickMax 41447 , x = n0.rangeStep(g, m.add(new ot(.1).mul(p)), p); 41448 return n > r ? B1(x) : x 41449} 41450function aTe(e, t) { 41451 var n = Nf(e, 2) 41452 , r = n[0] 41453 , i = n[1] 41454 , o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0 41455 , a = Ez([r, i]) 41456 , s = Nf(a, 2) 41457 , l = s[0] 41458 , c = s[1]; 41459 if (l === -1 / 0 || c === 1 / 0) 41460 return [r, i]; 41461 if (l === c) 41462 return [l]; 41463 var u = Math.max(t, 2) 41464 , d = jz(new ot(c).sub(l).div(u - 1), o, 0) 41465 , f = [].concat(V1(n0.rangeStep(new ot(l), new ot(c).sub(new ot(.99).mul(d)), d)), [c]); 41466 return r > i ? B1(f) : f 41467} 41468var sTe = Oz(oTe) 41469 , lTe = Oz(aTe) 41470 , cTe = "Invariant failed"; 41471function Ks(e, t) { 41472 throw new Error(cTe) 41473} 41474var uTe = ["offset", "layout", "width", "dataKey", "data", "dataPointFormatter", "xAxis", "yAxis"]; 41475function Lc(e) { 41476 "@babel/helpers - typeof"; 41477 return Lc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 41478 return typeof t 41479 } 41480 : function(t) { 41481 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 41482 } 41483 , 41484 Lc(e) 41485} 41486function Bg() { 41487 return Bg = Object.assign ? Object.assign.bind() : function(e) { 41488 for (var t = 1; t < arguments.length; t++) { 41489 var n = arguments[t]; 41490 for (var r in n) 41491 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 41492 } 41493 return e 41494 } 41495 , 41496 Bg.apply(this, arguments) 41497} 41498function dTe(e, t) { 41499 return mTe(e) || pTe(e, t) || hTe(e, t) || fTe() 41500} 41501function fTe() { 41502 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 41503In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 41504} 41505function hTe(e, t) { 41506 if (e) { 41507 if (typeof e == "string") 41508 return hM(e, t); 41509 var n = Object.prototype.toString.call(e).slice(8, -1); 41510 if (n === "Object" && e.constructor && (n = e.constructor.name), 41511 n === "Map" || n === "Set") 41512 return Array.from(e); 41513 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 41514 return hM(e, t) 41515 } 41516} 41517function hM(e, t) { 41518 (t == null || t > e.length) && (t = e.length); 41519 for (var n = 0, r = new Array(t); n < t; n++) 41520 r[n] = e[n]; 41521 return r 41522} 41523function pTe(e, t) { 41524 var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; 41525 if (n != null) { 41526 var r, i, o, a, s = [], l = !0, c = !1; 41527 try { 41528 if (o = (n = n.call(e)).next, 41529 t !== 0) 41530 for (; !(l = (r = o.call(n)).done) && (s.push(r.value), 41531 s.length !== t); l = !0) 41532 ; 41533 } catch (u) { 41534 c = !0, 41535 i = u 41536 } finally { 41537 try { 41538 if (!l && n.return != null && (a = n.return(), 41539 Object(a) !== a)) 41540 return 41541 } finally { 41542 if (c) 41543 throw i 41544 } 41545 } 41546 return s 41547 } 41548} 41549function mTe(e) { 41550 if (Array.isArray(e)) 41551 return e 41552} 41553function gTe(e, t) { 41554 if (e == null) 41555 return {}; 41556 var n = yTe(e, t), r, i; 41557 if (Object.getOwnPropertySymbols) { 41558 var o = Object.getOwnPropertySymbols(e); 41559 for (i = 0; i < o.length; i++) 41560 r = o[i], 41561 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 41562 } 41563 return n 41564} 41565function yTe(e, t) { 41566 if (e == null) 41567 return {}; 41568 var n = {}; 41569 for (var r in e) 41570 if (Object.prototype.hasOwnProperty.call(e, r)) { 41571 if (t.indexOf(r) >= 0) 41572 continue; 41573 n[r] = e[r] 41574 } 41575 return n 41576} 41577function vTe(e, t) { 41578 if (!(e instanceof t)) 41579 throw new TypeError("Cannot call a class as a function") 41580} 41581function xTe(e, t) { 41582 for (var n = 0; n < t.length; n++) { 41583 var r = t[n]; 41584 r.enumerable = r.enumerable || !1, 41585 r.configurable = !0, 41586 "value"in r && (r.writable = !0), 41587 Object.defineProperty(e, Rz(r.key), r) 41588 } 41589} 41590function bTe(e, t, n) { 41591 return t && xTe(e.prototype, t), 41592 Object.defineProperty(e, "prototype", { 41593 writable: !1 41594 }), 41595 e 41596} 41597function wTe(e, t, n) { 41598 return t = Vg(t), 41599 STe(e, Mz() ? Reflect.construct(t, n || [], Vg(e).constructor) : t.apply(e, n)) 41600} 41601function STe(e, t) { 41602 if (t && (Lc(t) === "object" || typeof t == "function")) 41603 return t; 41604 if (t !== void 0) 41605 throw new TypeError("Derived constructors may only return object or undefined"); 41606 return PTe(e) 41607} 41608function PTe(e) { 41609 if (e === void 0) 41610 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 41611 return e 41612} 41613function Mz() { 41614 try { 41615 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 41616 } catch {} 41617 return (Mz = function() { 41618 return !!e 41619 } 41620 )() 41621} 41622function Vg(e) { 41623 return Vg = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 41624 return n.__proto__ || Object.getPrototypeOf(n) 41625 } 41626 , 41627 Vg(e) 41628} 41629function _Te(e, t) { 41630 if (typeof t != "function" && t !== null) 41631 throw new TypeError("Super expression must either be null or a function"); 41632 e.prototype = Object.create(t && t.prototype, { 41633 constructor: { 41634 value: e, 41635 writable: !0, 41636 configurable: !0 41637 } 41638 }), 41639 Object.defineProperty(e, "prototype", { 41640 writable: !1 41641 }), 41642 t && z1(e, t) 41643} 41644function z1(e, t) { 41645 return z1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 41646 return r.__proto__ = i, 41647 r 41648 } 41649 , 41650 z1(e, t) 41651} 41652function kz(e, t, n) { 41653 return t = Rz(t), 41654 t in e ? Object.defineProperty(e, t, { 41655 value: n, 41656 enumerable: !0, 41657 configurable: !0, 41658 writable: !0 41659 }) : e[t] = n, 41660 e 41661} 41662function Rz(e) { 41663 var t = TTe(e, "string"); 41664 return Lc(t) == "symbol" ? t : t + "" 41665} 41666function TTe(e, t) { 41667 if (Lc(e) != "object" || !e) 41668 return e; 41669 var n = e[Symbol.toPrimitive]; 41670 if (n !== void 0) { 41671 var r = n.call(e, t || "default"); 41672 if (Lc(r) != "object") 41673 return r; 41674 throw new TypeError("@@toPrimitive must return a primitive value.") 41675 } 41676 return (t === "string" ? String : Number)(e) 41677} 41678var r0 = function(e) { 41679 function t() { 41680 return vTe(this, t), 41681 wTe(this, t, arguments) 41682 } 41683 return _Te(t, e), 41684 bTe(t, [{ 41685 key: "render", 41686 value: function() { 41687 var r = this.props 41688 , i = r.offset 41689 , o = r.layout 41690 , a = r.width 41691 , s = r.dataKey 41692 , l = r.data 41693 , c = r.dataPointFormatter 41694 , u = r.xAxis 41695 , d = r.yAxis 41696 , f = gTe(r, uTe) 41697 , p = Je(f, !1); 41698 this.props.direction === "x" && u.type !== "number" && Ks(); 41699 var g = l.map(function(m) { 41700 var x = c(m, s) 41701 , v = x.x 41702 , y = x.y 41703 , w = x.value 41704 , P = x.errorVal; 41705 if (!P) 41706 return null; 41707 var S = [], _, T; 41708 if (Array.isArray(P)) { 41709 var C = dTe(P, 2); 41710 _ = C[0], 41711 T = C[1] 41712 } else 41713 _ = T = P; 41714 if (o === "vertical") { 41715 var O = u.scale 41716 , A = y + i 41717 , E = A + a 41718 , j = A - a 41719 , $ = O(w - _) 41720 , R = O(w + T); 41721 S.push({ 41722 x1: R, 41723 y1: E, 41724 x2: R, 41725 y2: j 41726 }), 41727 S.push({ 41728 x1: $, 41729 y1: A, 41730 x2: R, 41731 y2: A 41732 }), 41733 S.push({ 41734 x1: $, 41735 y1: E, 41736 x2: $, 41737 y2: j 41738 }) 41739 } else if (o === "horizontal") { 41740 var L = d.scale 41741 , B = v + i 41742 , U = B - a 41743 , N = B + a 41744 , D = L(w - _) 41745 , W = L(w + T); 41746 S.push({ 41747 x1: U, 41748 y1: W, 41749 x2: N, 41750 y2: W 41751 }), 41752 S.push({ 41753 x1: B, 41754 y1: D, 41755 x2: B, 41756 y2: W 41757 }), 41758 S.push({ 41759 x1: U, 41760 y1: D, 41761 x2: N, 41762 y2: D 41763 }) 41764 } 41765 return k.createElement(ln, Bg({ 41766 className: "recharts-errorBar", 41767 key: "bar-".concat(S.map(function(K) { 41768 return "".concat(K.x1, "-").concat(K.x2, "-").concat(K.y1, "-").concat(K.y2) 41769 })) 41770 }, p), S.map(function(K) { 41771 return k.createElement("line", Bg({}, K, { 41772 key: "line-".concat(K.x1, "-").concat(K.x2, "-").concat(K.y1, "-").concat(K.y2) 41773 })) 41774 })) 41775 }); 41776 return k.createElement(ln, { 41777 className: "recharts-errorBars" 41778 }, g) 41779 } 41780 }]) 41781}(k.Component); 41782kz(r0, "defaultProps", { 41783 stroke: "black", 41784 strokeWidth: 1.5, 41785 width: 5, 41786 offset: 0, 41787 layout: "horizontal" 41788}); 41789kz(r0, "displayName", "ErrorBar"); 41790function Mf(e) { 41791 "@babel/helpers - typeof"; 41792 return Mf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 41793 return typeof t 41794 } 41795 : function(t) { 41796 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 41797 } 41798 , 41799 Mf(e) 41800} 41801function pM(e, t) { 41802 var n = Object.keys(e); 41803 if (Object.getOwnPropertySymbols) { 41804 var r = Object.getOwnPropertySymbols(e); 41805 t && (r = r.filter(function(i) { 41806 return Object.getOwnPropertyDescriptor(e, i).enumerable 41807 })), 41808 n.push.apply(n, r) 41809 } 41810 return n 41811} 41812function Za(e) { 41813 for (var t = 1; t < arguments.length; t++) { 41814 var n = arguments[t] != null ? arguments[t] : {}; 41815 t % 2 ? pM(Object(n), !0).forEach(function(r) { 41816 CTe(e, r, n[r]) 41817 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pM(Object(n)).forEach(function(r) { 41818 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 41819 }) 41820 } 41821 return e 41822} 41823function CTe(e, t, n) { 41824 return t = OTe(t), 41825 t in e ? Object.defineProperty(e, t, { 41826 value: n, 41827 enumerable: !0, 41828 configurable: !0, 41829 writable: !0 41830 }) : e[t] = n, 41831 e 41832} 41833function OTe(e) { 41834 var t = ATe(e, "string"); 41835 return Mf(t) == "symbol" ? t : t + "" 41836} 41837function ATe(e, t) { 41838 if (Mf(e) != "object" || !e) 41839 return e; 41840 var n = e[Symbol.toPrimitive]; 41841 if (n !== void 0) { 41842 var r = n.call(e, t || "default"); 41843 if (Mf(r) != "object") 41844 return r; 41845 throw new TypeError("@@toPrimitive must return a primitive value.") 41846 } 41847 return (t === "string" ? String : Number)(e) 41848} 41849var Dz = function(t) { 41850 var n = t.children 41851 , r = t.formattedGraphicalItems 41852 , i = t.legendWidth 41853 , o = t.legendContent 41854 , a = sr(n, Zl); 41855 if (!a) 41856 return null; 41857 var s = Zl.defaultProps, l = s !== void 0 ? Za(Za({}, s), a.props) : {}, c; 41858 return a.props && a.props.payload ? c = a.props && a.props.payload : o === "children" ? c = (r || []).reduce(function(u, d) { 41859 var f = d.item 41860 , p = d.props 41861 , g = p.sectors || p.data || []; 41862 return u.concat(g.map(function(m) { 41863 return { 41864 type: a.props.iconType || f.props.legendType, 41865 value: m.name, 41866 color: m.fill, 41867 payload: m 41868 } 41869 })) 41870 }, []) : c = (r || []).map(function(u) { 41871 var d = u.item 41872 , f = d.type.defaultProps 41873 , p = f !== void 0 ? Za(Za({}, f), d.props) : {} 41874 , g = p.dataKey 41875 , m = p.name 41876 , x = p.legendType 41877 , v = p.hide; 41878 return { 41879 inactive: v, 41880 dataKey: g, 41881 type: l.iconType || x || "square", 41882 color: lC(d), 41883 value: m || g, 41884 payload: p 41885 } 41886 }), 41887 Za(Za(Za({}, l), Zl.getWithHeight(a, i)), {}, { 41888 payload: c, 41889 item: a 41890 }) 41891}; 41892function kf(e) { 41893 "@babel/helpers - typeof"; 41894 return kf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 41895 return typeof t 41896 } 41897 : function(t) { 41898 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 41899 } 41900 , 41901 kf(e) 41902} 41903function mM(e) { 41904 return MTe(e) || NTe(e) || jTe(e) || ETe() 41905} 41906function ETe() { 41907 throw new TypeError(`Invalid attempt to spread non-iterable instance. 41908In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 41909} 41910function jTe(e, t) { 41911 if (e) { 41912 if (typeof e == "string") 41913 return W1(e, t); 41914 var n = Object.prototype.toString.call(e).slice(8, -1); 41915 if (n === "Object" && e.constructor && (n = e.constructor.name), 41916 n === "Map" || n === "Set") 41917 return Array.from(e); 41918 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 41919 return W1(e, t) 41920 } 41921} 41922function NTe(e) { 41923 if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) 41924 return Array.from(e) 41925} 41926function MTe(e) { 41927 if (Array.isArray(e)) 41928 return W1(e) 41929} 41930function W1(e, t) { 41931 (t == null || t > e.length) && (t = e.length); 41932 for (var n = 0, r = new Array(t); n < t; n++) 41933 r[n] = e[n]; 41934 return r 41935} 41936function gM(e, t) { 41937 var n = Object.keys(e); 41938 if (Object.getOwnPropertySymbols) { 41939 var r = Object.getOwnPropertySymbols(e); 41940 t && (r = r.filter(function(i) { 41941 return Object.getOwnPropertyDescriptor(e, i).enumerable 41942 })), 41943 n.push.apply(n, r) 41944 } 41945 return n 41946} 41947function Dt(e) { 41948 for (var t = 1; t < arguments.length; t++) { 41949 var n = arguments[t] != null ? arguments[t] : {}; 41950 t % 2 ? gM(Object(n), !0).forEach(function(r) { 41951 ec(e, r, n[r]) 41952 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gM(Object(n)).forEach(function(r) { 41953 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 41954 }) 41955 } 41956 return e 41957} 41958function ec(e, t, n) { 41959 return t = kTe(t), 41960 t in e ? Object.defineProperty(e, t, { 41961 value: n, 41962 enumerable: !0, 41963 configurable: !0, 41964 writable: !0 41965 }) : e[t] = n, 41966 e 41967} 41968function kTe(e) { 41969 var t = RTe(e, "string"); 41970 return kf(t) == "symbol" ? t : t + "" 41971} 41972function RTe(e, t) { 41973 if (kf(e) != "object" || !e) 41974 return e; 41975 var n = e[Symbol.toPrimitive]; 41976 if (n !== void 0) { 41977 var r = n.call(e, t || "default"); 41978 if (kf(r) != "object") 41979 return r; 41980 throw new TypeError("@@toPrimitive must return a primitive value.") 41981 } 41982 return (t === "string" ? String : Number)(e) 41983} 41984function Hi(e, t, n) { 41985 return et(e) || et(t) ? n : tn(t) ? Lr(e, t, n) : qe(t) ? t(e) : n 41986} 41987function $d(e, t, n, r) { 41988 var i = N_e(e, function(s) { 41989 return Hi(s, t) 41990 }); 41991 if (n === "number") { 41992 var o = i.filter(function(s) { 41993 return le(s) || parseFloat(s) 41994 }); 41995 return o.length ? [e0(o), Jv(o)] : [1 / 0, -1 / 0] 41996 } 41997 var a = r ? i.filter(function(s) { 41998 return !et(s) 41999 }) : i; 42000 return a.map(function(s) { 42001 return tn(s) || s instanceof Date ? s : "" 42002 }) 42003} 42004var DTe = function(t) { 42005 var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], i = arguments.length > 2 ? arguments[2] : void 0, o = arguments.length > 3 ? arguments[3] : void 0, a = -1, s = (n = r == null ? void 0 : r.length) !== null && n !== void 0 ? n : 0; 42006 if (s <= 1) 42007 return 0; 42008 if (o && o.axisType === "angleAxis" && Math.abs(Math.abs(o.range[1] - o.range[0]) - 360) <= 1e-6) 42009 for (var l = o.range, c = 0; c < s; c++) { 42010 var u = c > 0 ? i[c - 1].coordinate : i[s - 1].coordinate 42011 , d = i[c].coordinate 42012 , f = c >= s - 1 ? i[0].coordinate : i[c + 1].coordinate 42013 , p = void 0; 42014 if (oi(d - u) !== oi(f - d)) { 42015 var g = []; 42016 if (oi(f - d) === oi(l[1] - l[0])) { 42017 p = f; 42018 var m = d + l[1] - l[0]; 42019 g[0] = Math.min(m, (m + u) / 2), 42020 g[1] = Math.max(m, (m + u) / 2) 42021 } else { 42022 p = u; 42023 var x = f + l[1] - l[0]; 42024 g[0] = Math.min(d, (x + d) / 2), 42025 g[1] = Math.max(d, (x + d) / 2) 42026 } 42027 var v = [Math.min(d, (p + d) / 2), Math.max(d, (p + d) / 2)]; 42028 if (t > v[0] && t <= v[1] || t >= g[0] && t <= g[1]) { 42029 a = i[c].index; 42030 break 42031 } 42032 } else { 42033 var y = Math.min(u, f) 42034 , w = Math.max(u, f); 42035 if (t > (y + d) / 2 && t <= (w + d) / 2) { 42036 a = i[c].index; 42037 break 42038 } 42039 } 42040 } 42041 else 42042 for (var P = 0; P < s; P++) 42043 if (P === 0 && t <= (r[P].coordinate + r[P + 1].coordinate) / 2 || P > 0 && P < s - 1 && t > (r[P].coordinate + r[P - 1].coordinate) / 2 && t <= (r[P].coordinate + r[P + 1].coordinate) / 2 || P === s - 1 && t > (r[P].coordinate + r[P - 1].coordinate) / 2) { 42044 a = r[P].index; 42045 break 42046 } 42047 return a 42048} 42049 , lC = function(t) { 42050 var n, r = t, i = r.type.displayName, o = (n = t.type) !== null && n !== void 0 && n.defaultProps ? Dt(Dt({}, t.type.defaultProps), t.props) : t.props, a = o.stroke, s = o.fill, l; 42051 switch (i) { 42052 case "Line": 42053 l = a; 42054 break; 42055 case "Area": 42056 case "Radar": 42057 l = a && a !== "none" ? a : s; 42058 break; 42059 default: 42060 l = s; 42061 break 42062 } 42063 return l 42064} 42065 , ITe = function(t) { 42066 var n = t.barSize 42067 , r = t.totalSize 42068 , i = t.stackGroups 42069 , o = i === void 0 ? {} : i; 42070 if (!o) 42071 return {}; 42072 for (var a = {}, s = Object.keys(o), l = 0, c = s.length; l < c; l++) 42073 for (var u = o[s[l]].stackGroups, d = Object.keys(u), f = 0, p = d.length; f < p; f++) { 42074 var g = u[d[f]] 42075 , m = g.items 42076 , x = g.cateAxisId 42077 , v = m.filter(function(T) { 42078 return yo(T.type).indexOf("Bar") >= 0 42079 }); 42080 if (v && v.length) { 42081 var y = v[0].type.defaultProps 42082 , w = y !== void 0 ? Dt(Dt({}, y), v[0].props) : v[0].props 42083 , P = w.barSize 42084 , S = w[x]; 42085 a[S] || (a[S] = []); 42086 var _ = et(P) ? n : P; 42087 a[S].push({ 42088 item: v[0], 42089 stackList: v.slice(1), 42090 barSize: et(_) ? void 0 : Hs(_, r, 0) 42091 }) 42092 } 42093 } 42094 return a 42095} 42096 , $Te = function(t) { 42097 var n = t.barGap 42098 , r = t.barCategoryGap 42099 , i = t.bandSize 42100 , o = t.sizeList 42101 , a = o === void 0 ? [] : o 42102 , s = t.maxBarSize 42103 , l = a.length; 42104 if (l < 1) 42105 return null; 42106 var c = Hs(n, i, 0, !0), u, d = []; 42107 if (a[0].barSize === +a[0].barSize) { 42108 var f = !1 42109 , p = i / l 42110 , g = a.reduce(function(P, S) { 42111 return P + S.barSize || 0 42112 }, 0); 42113 g += (l - 1) * c, 42114 g >= i && (g -= (l - 1) * c, 42115 c = 0), 42116 g >= i && p > 0 && (f = !0, 42117 p *= .9, 42118 g = l * p); 42119 var m = (i - g) / 2 >> 0 42120 , x = { 42121 offset: m - c, 42122 size: 0 42123 }; 42124 u = a.reduce(function(P, S) { 42125 var _ = { 42126 item: S.item, 42127 position: { 42128 offset: x.offset + x.size + c, 42129 size: f ? p : S.barSize 42130 } 42131 } 42132 , T = [].concat(mM(P), [_]); 42133 return x = T[T.length - 1].position, 42134 S.stackList && S.stackList.length && S.stackList.forEach(function(C) { 42135 T.push({ 42136 item: C, 42137 position: x 42138 }) 42139 }), 42140 T 42141 }, d) 42142 } else { 42143 var v = Hs(r, i, 0, !0); 42144 i - 2 * v - (l - 1) * c <= 0 && (c = 0); 42145 var y = (i - 2 * v - (l - 1) * c) / l; 42146 y > 1 && (y >>= 0); 42147 var w = s === +s ? Math.min(y, s) : y; 42148 u = a.reduce(function(P, S, _) { 42149 var T = [].concat(mM(P), [{ 42150 item: S.item, 42151 position: { 42152 offset: v + (y + c) * _ + (y - w) / 2, 42153 size: w 42154 } 42155 }]); 42156 return S.stackList && S.stackList.length && S.stackList.forEach(function(C) { 42157 T.push({ 42158 item: C, 42159 position: T[T.length - 1].position 42160 }) 42161 }), 42162 T 42163 }, d) 42164 } 42165 return u 42166} 42167 , LTe = function(t, n, r, i) { 42168 var o = r.children 42169 , a = r.width 42170 , s = r.margin 42171 , l = a - (s.left || 0) - (s.right || 0) 42172 , c = Dz({ 42173 children: o, 42174 legendWidth: l 42175 }); 42176 if (c) { 42177 var u = i || {} 42178 , d = u.width 42179 , f = u.height 42180 , p = c.align 42181 , g = c.verticalAlign 42182 , m = c.layout; 42183 if ((m === "vertical" || m === "horizontal" && g === "middle") && p !== "center" && le(t[p])) 42184 return Dt(Dt({}, t), {}, ec({}, p, t[p] + (d || 0))); 42185 if ((m === "horizontal" || m === "vertical" && p === "center") && g !== "middle" && le(t[g])) 42186 return Dt(Dt({}, t), {}, ec({}, g, t[g] + (f || 0))) 42187 } 42188 return t 42189} 42190 , FTe = function(t, n, r) { 42191 return et(n) ? !0 : t === "horizontal" ? n === "yAxis" : t === "vertical" || r === "x" ? n === "xAxis" : r === "y" ? n === "yAxis" : !0 42192} 42193 , Iz = function(t, n, r, i, o) { 42194 var a = n.props.children 42195 , s = di(a, r0).filter(function(c) { 42196 return FTe(i, o, c.props.direction) 42197 }); 42198 if (s && s.length) { 42199 var l = s.map(function(c) { 42200 return c.props.dataKey 42201 }); 42202 return t.reduce(function(c, u) { 42203 var d = Hi(u, r); 42204 if (et(d)) 42205 return c; 42206 var f = Array.isArray(d) ? [e0(d), Jv(d)] : [d, d] 42207 , p = l.reduce(function(g, m) { 42208 var x = Hi(u, m, 0) 42209 , v = f[0] - Math.abs(Array.isArray(x) ? x[0] : x) 42210 , y = f[1] + Math.abs(Array.isArray(x) ? x[1] : x); 42211 return [Math.min(v, g[0]), Math.max(y, g[1])] 42212 }, [1 / 0, -1 / 0]); 42213 return [Math.min(p[0], c[0]), Math.max(p[1], c[1])] 42214 }, [1 / 0, -1 / 0]) 42215 } 42216 return null 42217} 42218 , BTe = function(t, n, r, i, o) { 42219 var a = n.map(function(s) { 42220 return Iz(t, s, r, o, i) 42221 }).filter(function(s) { 42222 return !et(s) 42223 }); 42224 return a && a.length ? a.reduce(function(s, l) { 42225 return [Math.min(s[0], l[0]), Math.max(s[1], l[1])] 42226 }, [1 / 0, -1 / 0]) : null 42227} 42228 , $z = function(t, n, r, i, o) { 42229 var a = n.map(function(l) { 42230 var c = l.props.dataKey; 42231 return r === "number" && c && Iz(t, l, c, i) || $d(t, c, r, o) 42232 }); 42233 if (r === "number") 42234 return a.reduce(function(l, c) { 42235 return [Math.min(l[0], c[0]), Math.max(l[1], c[1])] 42236 }, [1 / 0, -1 / 0]); 42237 var s = {}; 42238 return a.reduce(function(l, c) { 42239 for (var u = 0, d = c.length; u < d; u++) 42240 s[c[u]] || (s[c[u]] = !0, 42241 l.push(c[u])); 42242 return l 42243 }, []) 42244} 42245 , Lz = function(t, n) { 42246 return t === "horizontal" && n === "xAxis" || t === "vertical" && n === "yAxis" || t === "centric" && n === "angleAxis" || t === "radial" && n === "radiusAxis" 42247} 42248 , ms = function(t, n, r) { 42249 if (!t) 42250 return null; 42251 var i = t.scale 42252 , o = t.duplicateDomain 42253 , a = t.type 42254 , s = t.range 42255 , l = t.realScaleType === "scaleBand" ? i.bandwidth() / 2 : 2 42256 , c = (n || r) && a === "category" && i.bandwidth ? i.bandwidth() / l : 0; 42257 if (c = t.axisType === "angleAxis" && (s == null ? void 0 : s.length) >= 2 ? oi(s[0] - s[1]) * 2 * c : c, 42258 n && (t.ticks || t.niceTicks)) { 42259 var u = (t.ticks || t.niceTicks).map(function(d) { 42260 var f = o ? o.indexOf(d) : d; 42261 return { 42262 coordinate: i(f) + c, 42263 value: d, 42264 offset: c 42265 } 42266 }); 42267 return u.filter(function(d) { 42268 return !Uh(d.coordinate) 42269 }) 42270 } 42271 return t.isCategorical && t.categoricalDomain ? t.categoricalDomain.map(function(d, f) { 42272 return { 42273 coordinate: i(d) + c, 42274 value: d, 42275 index: f, 42276 offset: c 42277 } 42278 }) : i.ticks && !r ? i.ticks(t.tickCount).map(function(d) { 42279 return { 42280 coordinate: i(d) + c, 42281 value: d, 42282 offset: c 42283 } 42284 }) : i.domain().map(function(d, f) { 42285 return { 42286 coordinate: i(d) + c, 42287 value: o ? o[d] : d, 42288 index: f, 42289 offset: c 42290 } 42291 }) 42292} 42293 , Ux = new WeakMap 42294 , Bp = function(t, n) { 42295 if (typeof n != "function") 42296 return t; 42297 Ux.has(t) || Ux.set(t, new WeakMap); 42298 var r = Ux.get(t); 42299 if (r.has(n)) 42300 return r.get(n); 42301 var i = function() { 42302 t.apply(void 0, arguments), 42303 n.apply(void 0, arguments) 42304 }; 42305 return r.set(n, i), 42306 i 42307} 42308 , VTe = function(t, n, r) { 42309 var i = t.scale 42310 , o = t.type 42311 , a = t.layout 42312 , s = t.axisType; 42313 if (i === "auto") 42314 return a === "radial" && s === "radiusAxis" ? { 42315 scale: Tf(), 42316 realScaleType: "band" 42317 } : a === "radial" && s === "angleAxis" ? { 42318 scale: Dg(), 42319 realScaleType: "linear" 42320 } : o === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !r) ? { 42321 scale: Id(), 42322 realScaleType: "point" 42323 } : o === "category" ? { 42324 scale: Tf(), 42325 realScaleType: "band" 42326 } : { 42327 scale: Dg(), 42328 realScaleType: "linear" 42329 }; 42330 if (Vh(i)) { 42331 var l = "scale".concat(Bv(i)); 42332 return { 42333 scale: (cM[l] || Id)(), 42334 realScaleType: cM[l] ? l : "point" 42335 } 42336 } 42337 return qe(i) ? { 42338 scale: i 42339 } : { 42340 scale: Id(), 42341 realScaleType: "point" 42342 } 42343} 42344 , yM = 1e-4 42345 , UTe = function(t) { 42346 var n = t.domain(); 42347 if (!(!n || n.length <= 2)) { 42348 var r = n.length 42349 , i = t.range() 42350 , o = Math.min(i[0], i[1]) - yM 42351 , a = Math.max(i[0], i[1]) + yM 42352 , s = t(n[0]) 42353 , l = t(n[r - 1]); 42354 (s < o || s > a || l < o || l > a) && t.domain([n[0], n[r - 1]]) 42355 } 42356} 42357 , zTe = function(t, n) { 42358 if (!t) 42359 return null; 42360 for (var r = 0, i = t.length; r < i; r++) 42361 if (t[r].item === n) 42362 return t[r].position; 42363 return null 42364} 42365 , WTe = function(t, n) { 42366 if (!n || n.length !== 2 || !le(n[0]) || !le(n[1])) 42367 return t; 42368 var r = Math.min(n[0], n[1]) 42369 , i = Math.max(n[0], n[1]) 42370 , o = [t[0], t[1]]; 42371 return (!le(t[0]) || t[0] < r) && (o[0] = r), 42372 (!le(t[1]) || t[1] > i) && (o[1] = i), 42373 o[0] > i && (o[0] = i), 42374 o[1] < r && (o[1] = r), 42375 o 42376} 42377 , HTe = function(t) { 42378 var n = t.length; 42379 if (!(n <= 0)) 42380 for (var r = 0, i = t[0].length; r < i; ++r) 42381 for (var o = 0, a = 0, s = 0; s < n; ++s) { 42382 var l = Uh(t[s][r][1]) ? t[s][r][0] : t[s][r][1]; 42383 l >= 0 ? (t[s][r][0] = o, 42384 t[s][r][1] = o + l, 42385 o = t[s][r][1]) : (t[s][r][0] = a, 42386 t[s][r][1] = a + l, 42387 a = t[s][r][1]) 42388 } 42389} 42390 , qTe = function(t) { 42391 var n = t.length; 42392 if (!(n <= 0)) 42393 for (var r = 0, i = t[0].length; r < i; ++r) 42394 for (var o = 0, a = 0; a < n; ++a) { 42395 var s = Uh(t[a][r][1]) ? t[a][r][0] : t[a][r][1]; 42396 s >= 0 ? (t[a][r][0] = o, 42397 t[a][r][1] = o + s, 42398 o = t[a][r][1]) : (t[a][r][0] = 0, 42399 t[a][r][1] = 0) 42400 } 42401} 42402 , KTe = { 42403 sign: HTe, 42404 expand: ape, 42405 none: jc, 42406 silhouette: spe, 42407 wiggle: lpe, 42408 positive: qTe 42409} 42410 , GTe = function(t, n, r) { 42411 var i = n.map(function(s) { 42412 return s.props.dataKey 42413 }) 42414 , o = KTe[r] 42415 , a = ope().keys(i).value(function(s, l) { 42416 return +Hi(s, l, 0) 42417 }).order(m1).offset(o); 42418 return a(t) 42419} 42420 , YTe = function(t, n, r, i, o, a) { 42421 if (!t) 42422 return null; 42423 var s = a ? n.reverse() : n 42424 , l = {} 42425 , c = s.reduce(function(d, f) { 42426 var p, g = (p = f.type) !== null && p !== void 0 && p.defaultProps ? Dt(Dt({}, f.type.defaultProps), f.props) : f.props, m = g.stackId, x = g.hide; 42427 if (x) 42428 return d; 42429 var v = g[r] 42430 , y = d[v] || { 42431 hasStack: !1, 42432 stackGroups: {} 42433 }; 42434 if (tn(m)) { 42435 var w = y.stackGroups[m] || { 42436 numericAxisId: r, 42437 cateAxisId: i, 42438 items: [] 42439 }; 42440 w.items.push(f), 42441 y.hasStack = !0, 42442 y.stackGroups[m] = w 42443 } else 42444 y.stackGroups[Fv("_stackId_")] = { 42445 numericAxisId: r, 42446 cateAxisId: i, 42447 items: [f] 42448 }; 42449 return Dt(Dt({}, d), {}, ec({}, v, y)) 42450 }, l) 42451 , u = {}; 42452 return Object.keys(c).reduce(function(d, f) { 42453 var p = c[f]; 42454 if (p.hasStack) { 42455 var g = {}; 42456 p.stackGroups = Object.keys(p.stackGroups).reduce(function(m, x) { 42457 var v = p.stackGroups[x]; 42458 return Dt(Dt({}, m), {}, ec({}, x, { 42459 numericAxisId: r, 42460 cateAxisId: i, 42461 items: v.items, 42462 stackedData: GTe(t, v.items, o) 42463 })) 42464 }, g) 42465 } 42466 return Dt(Dt({}, d), {}, ec({}, f, p)) 42467 }, u) 42468} 42469 , XTe = function(t, n) { 42470 var r = n.realScaleType 42471 , i = n.type 42472 , o = n.tickCount 42473 , a = n.originalDomain 42474 , s = n.allowDecimals 42475 , l = r || n.scale; 42476 if (l !== "auto" && l !== "linear") 42477 return null; 42478 if (o && i === "number" && a && (a[0] === "auto" || a[1] === "auto")) { 42479 var c = t.domain(); 42480 if (!c.length) 42481 return null; 42482 var u = sTe(c, o, s); 42483 return t.domain([e0(u), Jv(u)]), 42484 { 42485 niceTicks: u 42486 } 42487 } 42488 if (o && i === "number") { 42489 var d = t.domain() 42490 , f = lTe(d, o, s); 42491 return { 42492 niceTicks: f 42493 } 42494 } 42495 return null 42496} 42497 , vM = function(t) { 42498 var n = t.axis 42499 , r = t.ticks 42500 , i = t.offset 42501 , o = t.bandSize 42502 , a = t.entry 42503 , s = t.index; 42504 if (n.type === "category") 42505 return r[s] ? r[s].coordinate + i : null; 42506 var l = Hi(a, n.dataKey, n.domain[s]); 42507 return et(l) ? null : n.scale(l) - o / 2 + i 42508} 42509 , QTe = function(t) { 42510 var n = t.numericAxis 42511 , r = n.scale.domain(); 42512 if (n.type === "number") { 42513 var i = Math.min(r[0], r[1]) 42514 , o = Math.max(r[0], r[1]); 42515 return i <= 0 && o >= 0 ? 0 : o < 0 ? o : i 42516 } 42517 return r[0] 42518} 42519 , ZTe = function(t, n) { 42520 var r, i = (r = t.type) !== null && r !== void 0 && r.defaultProps ? Dt(Dt({}, t.type.defaultProps), t.props) : t.props, o = i.stackId; 42521 if (tn(o)) { 42522 var a = n[o]; 42523 if (a) { 42524 var s = a.items.indexOf(t); 42525 return s >= 0 ? a.stackedData[s] : null 42526 } 42527 } 42528 return null 42529} 42530 , JTe = function(t) { 42531 return t.reduce(function(n, r) { 42532 return [e0(r.concat([n[0]]).filter(le)), Jv(r.concat([n[1]]).filter(le))] 42533 }, [1 / 0, -1 / 0]) 42534} 42535 , Fz = function(t, n, r) { 42536 return Object.keys(t).reduce(function(i, o) { 42537 var a = t[o] 42538 , s = a.stackedData 42539 , l = s.reduce(function(c, u) { 42540 var d = JTe(u.slice(n, r + 1)); 42541 return [Math.min(c[0], d[0]), Math.max(c[1], d[1])] 42542 }, [1 / 0, -1 / 0]); 42543 return [Math.min(l[0], i[0]), Math.max(l[1], i[1])] 42544 }, [1 / 0, -1 / 0]).map(function(i) { 42545 return i === 1 / 0 || i === -1 / 0 ? 0 : i 42546 }) 42547} 42548 , xM = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/ 42549 , bM = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/ 42550 , H1 = function(t, n, r) { 42551 if (qe(t)) 42552 return t(n, r); 42553 if (!Array.isArray(t)) 42554 return n; 42555 var i = []; 42556 if (le(t[0])) 42557 i[0] = r ? t[0] : Math.min(t[0], n[0]); 42558 else if (xM.test(t[0])) { 42559 var o = +xM.exec(t[0])[1]; 42560 i[0] = n[0] - o 42561 } else 42562 qe(t[0]) ? i[0] = t[0](n[0]) : i[0] = n[0]; 42563 if (le(t[1])) 42564 i[1] = r ? t[1] : Math.max(t[1], n[1]); 42565 else if (bM.test(t[1])) { 42566 var a = +bM.exec(t[1])[1]; 42567 i[1] = n[1] + a 42568 } else 42569 qe(t[1]) ? i[1] = t[1](n[1]) : i[1] = n[1]; 42570 return i 42571} 42572 , Ug = function(t, n, r) { 42573 if (t && t.scale && t.scale.bandwidth) { 42574 var i = t.scale.bandwidth(); 42575 if (!r || i > 0) 42576 return i 42577 } 42578 if (t && n && n.length >= 2) { 42579 for (var o = DT(n, function(d) { 42580 return d.coordinate 42581 }), a = 1 / 0, s = 1, l = o.length; s < l; s++) { 42582 var c = o[s] 42583 , u = o[s - 1]; 42584 a = Math.min((c.coordinate || 0) - (u.coordinate || 0), a) 42585 } 42586 return a === 1 / 0 ? 0 : a 42587 } 42588 return r ? void 0 : 0 42589} 42590 , wM = function(t, n, r) { 42591 return !t || !t.length || oC(t, Lr(r, "type.defaultProps.domain")) ? n : t 42592} 42593 , Bz = function(t, n) { 42594 var r = t.type.defaultProps ? Dt(Dt({}, t.type.defaultProps), t.props) : t.props 42595 , i = r.dataKey 42596 , o = r.name 42597 , a = r.unit 42598 , s = r.formatter 42599 , l = r.tooltipType 42600 , c = r.chartType 42601 , u = r.hide; 42602 return Dt(Dt({}, Je(t, !1)), {}, { 42603 dataKey: i, 42604 unit: a, 42605 formatter: s, 42606 name: o || i, 42607 color: lC(t), 42608 value: Hi(n, i), 42609 type: l, 42610 payload: n, 42611 chartType: c, 42612 hide: u 42613 }) 42614}; 42615function Rf(e) { 42616 "@babel/helpers - typeof"; 42617 return Rf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 42618 return typeof t 42619 } 42620 : function(t) { 42621 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 42622 } 42623 , 42624 Rf(e) 42625} 42626function SM(e, t) { 42627 var n = Object.keys(e); 42628 if (Object.getOwnPropertySymbols) { 42629 var r = Object.getOwnPropertySymbols(e); 42630 t && (r = r.filter(function(i) { 42631 return Object.getOwnPropertyDescriptor(e, i).enumerable 42632 })), 42633 n.push.apply(n, r) 42634 } 42635 return n 42636} 42637function PM(e) { 42638 for (var t = 1; t < arguments.length; t++) { 42639 var n = arguments[t] != null ? arguments[t] : {}; 42640 t % 2 ? SM(Object(n), !0).forEach(function(r) { 42641 eCe(e, r, n[r]) 42642 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SM(Object(n)).forEach(function(r) { 42643 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 42644 }) 42645 } 42646 return e 42647} 42648function eCe(e, t, n) { 42649 return t = tCe(t), 42650 t in e ? Object.defineProperty(e, t, { 42651 value: n, 42652 enumerable: !0, 42653 configurable: !0, 42654 writable: !0 42655 }) : e[t] = n, 42656 e 42657} 42658function tCe(e) { 42659 var t = nCe(e, "string"); 42660 return Rf(t) == "symbol" ? t : t + "" 42661} 42662function nCe(e, t) { 42663 if (Rf(e) != "object" || !e) 42664 return e; 42665 var n = e[Symbol.toPrimitive]; 42666 if (n !== void 0) { 42667 var r = n.call(e, t || "default"); 42668 if (Rf(r) != "object") 42669 return r; 42670 throw new TypeError("@@toPrimitive must return a primitive value.") 42671 } 42672 return (t === "string" ? String : Number)(e) 42673} 42674var zg = Math.PI / 180 42675 , rCe = function(t) { 42676 return t * 180 / Math.PI 42677} 42678 , vn = function(t, n, r, i) { 42679 return { 42680 x: t + Math.cos(-zg * i) * r, 42681 y: n + Math.sin(-zg * i) * r 42682 } 42683} 42684 , iCe = function(t, n) { 42685 var r = t.x 42686 , i = t.y 42687 , o = n.x 42688 , a = n.y; 42689 return Math.sqrt(Math.pow(r - o, 2) + Math.pow(i - a, 2)) 42690} 42691 , oCe = function(t, n) { 42692 var r = t.x 42693 , i = t.y 42694 , o = n.cx 42695 , a = n.cy 42696 , s = iCe({ 42697 x: r, 42698 y: i 42699 }, { 42700 x: o, 42701 y: a 42702 }); 42703 if (s <= 0) 42704 return { 42705 radius: s 42706 }; 42707 var l = (r - o) / s 42708 , c = Math.acos(l); 42709 return i > a && (c = 2 * Math.PI - c), 42710 { 42711 radius: s, 42712 angle: rCe(c), 42713 angleInRadian: c 42714 } 42715} 42716 , aCe = function(t) { 42717 var n = t.startAngle 42718 , r = t.endAngle 42719 , i = Math.floor(n / 360) 42720 , o = Math.floor(r / 360) 42721 , a = Math.min(i, o); 42722 return { 42723 startAngle: n - a * 360, 42724 endAngle: r - a * 360 42725 } 42726} 42727 , sCe = function(t, n) { 42728 var r = n.startAngle 42729 , i = n.endAngle 42730 , o = Math.floor(r / 360) 42731 , a = Math.floor(i / 360) 42732 , s = Math.min(o, a); 42733 return t + s * 360 42734} 42735 , _M = function(t, n) { 42736 var r = t.x 42737 , i = t.y 42738 , o = oCe({ 42739 x: r, 42740 y: i 42741 }, n) 42742 , a = o.radius 42743 , s = o.angle 42744 , l = n.innerRadius 42745 , c = n.outerRadius; 42746 if (a < l || a > c) 42747 return !1; 42748 if (a === 0) 42749 return !0; 42750 var u = aCe(n), d = u.startAngle, f = u.endAngle, p = s, g; 42751 if (d <= f) { 42752 for (; p > f; ) 42753 p -= 360; 42754 for (; p < d; ) 42755 p += 360; 42756 g = p >= d && p <= f 42757 } else { 42758 for (; p > d; ) 42759 p -= 360; 42760 for (; p < f; ) 42761 p += 360; 42762 g = p >= f && p <= d 42763 } 42764 return g ? PM(PM({}, n), {}, { 42765 radius: a, 42766 angle: sCe(p, n) 42767 }) : null 42768}; 42769function Df(e) { 42770 "@babel/helpers - typeof"; 42771 return Df = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 42772 return typeof t 42773 } 42774 : function(t) { 42775 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 42776 } 42777 , 42778 Df(e) 42779} 42780var lCe = ["offset"]; 42781function cCe(e) { 42782 return hCe(e) || fCe(e) || dCe(e) || uCe() 42783} 42784function uCe() { 42785 throw new TypeError(`Invalid attempt to spread non-iterable instance. 42786In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 42787} 42788function dCe(e, t) { 42789 if (e) { 42790 if (typeof e == "string") 42791 return q1(e, t); 42792 var n = Object.prototype.toString.call(e).slice(8, -1); 42793 if (n === "Object" && e.constructor && (n = e.constructor.name), 42794 n === "Map" || n === "Set") 42795 return Array.from(e); 42796 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 42797 return q1(e, t) 42798 } 42799} 42800function fCe(e) { 42801 if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) 42802 return Array.from(e) 42803} 42804function hCe(e) { 42805 if (Array.isArray(e)) 42806 return q1(e) 42807} 42808function q1(e, t) { 42809 (t == null || t > e.length) && (t = e.length); 42810 for (var n = 0, r = new Array(t); n < t; n++) 42811 r[n] = e[n]; 42812 return r 42813} 42814function pCe(e, t) { 42815 if (e == null) 42816 return {}; 42817 var n = mCe(e, t), r, i; 42818 if (Object.getOwnPropertySymbols) { 42819 var o = Object.getOwnPropertySymbols(e); 42820 for (i = 0; i < o.length; i++) 42821 r = o[i], 42822 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 42823 } 42824 return n 42825} 42826function mCe(e, t) { 42827 if (e == null) 42828 return {}; 42829 var n = {}; 42830 for (var r in e) 42831 if (Object.prototype.hasOwnProperty.call(e, r)) { 42832 if (t.indexOf(r) >= 0) 42833 continue; 42834 n[r] = e[r] 42835 } 42836 return n 42837} 42838function TM(e, t) { 42839 var n = Object.keys(e); 42840 if (Object.getOwnPropertySymbols) { 42841 var r = Object.getOwnPropertySymbols(e); 42842 t && (r = r.filter(function(i) { 42843 return Object.getOwnPropertyDescriptor(e, i).enumerable 42844 })), 42845 n.push.apply(n, r) 42846 } 42847 return n 42848} 42849function Xt(e) { 42850 for (var t = 1; t < arguments.length; t++) { 42851 var n = arguments[t] != null ? arguments[t] : {}; 42852 t % 2 ? TM(Object(n), !0).forEach(function(r) { 42853 gCe(e, r, n[r]) 42854 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : TM(Object(n)).forEach(function(r) { 42855 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 42856 }) 42857 } 42858 return e 42859} 42860function gCe(e, t, n) { 42861 return t = yCe(t), 42862 t in e ? Object.defineProperty(e, t, { 42863 value: n, 42864 enumerable: !0, 42865 configurable: !0, 42866 writable: !0 42867 }) : e[t] = n, 42868 e 42869} 42870function yCe(e) { 42871 var t = vCe(e, "string"); 42872 return Df(t) == "symbol" ? t : t + "" 42873} 42874function vCe(e, t) { 42875 if (Df(e) != "object" || !e) 42876 return e; 42877 var n = e[Symbol.toPrimitive]; 42878 if (n !== void 0) { 42879 var r = n.call(e, t || "default"); 42880 if (Df(r) != "object") 42881 return r; 42882 throw new TypeError("@@toPrimitive must return a primitive value.") 42883 } 42884 return (t === "string" ? String : Number)(e) 42885} 42886function If() { 42887 return If = Object.assign ? Object.assign.bind() : function(e) { 42888 for (var t = 1; t < arguments.length; t++) { 42889 var n = arguments[t]; 42890 for (var r in n) 42891 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 42892 } 42893 return e 42894 } 42895 , 42896 If.apply(this, arguments) 42897} 42898var xCe = function(t) { 42899 var n = t.value 42900 , r = t.formatter 42901 , i = et(t.children) ? n : t.children; 42902 return qe(r) ? r(i) : i 42903} 42904 , bCe = function(t, n) { 42905 var r = oi(n - t) 42906 , i = Math.min(Math.abs(n - t), 360); 42907 return r * i 42908} 42909 , wCe = function(t, n, r) { 42910 var i = t.position, o = t.viewBox, a = t.offset, s = t.className, l = o, c = l.cx, u = l.cy, d = l.innerRadius, f = l.outerRadius, p = l.startAngle, g = l.endAngle, m = l.clockWise, x = (d + f) / 2, v = bCe(p, g), y = v >= 0 ? 1 : -1, w, P; 42911 i === "insideStart" ? (w = p + y * a, 42912 P = m) : i === "insideEnd" ? (w = g - y * a, 42913 P = !m) : i === "end" && (w = g + y * a, 42914 P = m), 42915 P = v <= 0 ? P : !P; 42916 var S = vn(c, u, x, w) 42917 , _ = vn(c, u, x, w + (P ? 1 : -1) * 359) 42918 , T = "M".concat(S.x, ",").concat(S.y, ` 42919 A`).concat(x, ",").concat(x, ",0,1,").concat(P ? 0 : 1, `, 42920 `).concat(_.x, ",").concat(_.y) 42921 , C = et(t.id) ? Fv("recharts-radial-line-") : t.id; 42922 return k.createElement("text", If({}, r, { 42923 dominantBaseline: "central", 42924 className: Ge("recharts-radial-bar-label", s) 42925 }), k.createElement("defs", null, k.createElement("path", { 42926 id: C, 42927 d: T 42928 })), k.createElement("textPath", { 42929 xlinkHref: "#".concat(C) 42930 }, n)) 42931} 42932 , SCe = function(t) { 42933 var n = t.viewBox 42934 , r = t.offset 42935 , i = t.position 42936 , o = n 42937 , a = o.cx 42938 , s = o.cy 42939 , l = o.innerRadius 42940 , c = o.outerRadius 42941 , u = o.startAngle 42942 , d = o.endAngle 42943 , f = (u + d) / 2; 42944 if (i === "outside") { 42945 var p = vn(a, s, c + r, f) 42946 , g = p.x 42947 , m = p.y; 42948 return { 42949 x: g, 42950 y: m, 42951 textAnchor: g >= a ? "start" : "end", 42952 verticalAnchor: "middle" 42953 } 42954 } 42955 if (i === "center") 42956 return { 42957 x: a, 42958 y: s, 42959 textAnchor: "middle", 42960 verticalAnchor: "middle" 42961 }; 42962 if (i === "centerTop") 42963 return { 42964 x: a, 42965 y: s, 42966 textAnchor: "middle", 42967 verticalAnchor: "start" 42968 }; 42969 if (i === "centerBottom") 42970 return { 42971 x: a, 42972 y: s, 42973 textAnchor: "middle", 42974 verticalAnchor: "end" 42975 }; 42976 var x = (l + c) / 2 42977 , v = vn(a, s, x, f) 42978 , y = v.x 42979 , w = v.y; 42980 return { 42981 x: y, 42982 y: w, 42983 textAnchor: "middle", 42984 verticalAnchor: "middle" 42985 } 42986} 42987 , PCe = function(t) { 42988 var n = t.viewBox 42989 , r = t.parentViewBox 42990 , i = t.offset 42991 , o = t.position 42992 , a = n 42993 , s = a.x 42994 , l = a.y 42995 , c = a.width 42996 , u = a.height 42997 , d = u >= 0 ? 1 : -1 42998 , f = d * i 42999 , p = d > 0 ? "end" : "start" 43000 , g = d > 0 ? "start" : "end" 43001 , m = c >= 0 ? 1 : -1 43002 , x = m * i 43003 , v = m > 0 ? "end" : "start" 43004 , y = m > 0 ? "start" : "end"; 43005 if (o === "top") { 43006 var w = { 43007 x: s + c / 2, 43008 y: l - d * i, 43009 textAnchor: "middle", 43010 verticalAnchor: p 43011 }; 43012 return Xt(Xt({}, w), r ? { 43013 height: Math.max(l - r.y, 0), 43014 width: c 43015 } : {}) 43016 } 43017 if (o === "bottom") { 43018 var P = { 43019 x: s + c / 2, 43020 y: l + u + f, 43021 textAnchor: "middle", 43022 verticalAnchor: g 43023 }; 43024 return Xt(Xt({}, P), r ? { 43025 height: Math.max(r.y + r.height - (l + u), 0), 43026 width: c 43027 } : {}) 43028 } 43029 if (o === "left") { 43030 var S = { 43031 x: s - x, 43032 y: l + u / 2, 43033 textAnchor: v, 43034 verticalAnchor: "middle" 43035 }; 43036 return Xt(Xt({}, S), r ? { 43037 width: Math.max(S.x - r.x, 0), 43038 height: u 43039 } : {}) 43040 } 43041 if (o === "right") { 43042 var _ = { 43043 x: s + c + x, 43044 y: l + u / 2, 43045 textAnchor: y, 43046 verticalAnchor: "middle" 43047 }; 43048 return Xt(Xt({}, _), r ? { 43049 width: Math.max(r.x + r.width - _.x, 0), 43050 height: u 43051 } : {}) 43052 } 43053 var T = r ? { 43054 width: c, 43055 height: u 43056 } : {}; 43057 return o === "insideLeft" ? Xt({ 43058 x: s + x, 43059 y: l + u / 2, 43060 textAnchor: y, 43061 verticalAnchor: "middle" 43062 }, T) : o === "insideRight" ? Xt({ 43063 x: s + c - x, 43064 y: l + u / 2, 43065 textAnchor: v, 43066 verticalAnchor: "middle" 43067 }, T) : o === "insideTop" ? Xt({ 43068 x: s + c / 2, 43069 y: l + f, 43070 textAnchor: "middle", 43071 verticalAnchor: g 43072 }, T) : o === "insideBottom" ? Xt({ 43073 x: s + c / 2, 43074 y: l + u - f, 43075 textAnchor: "middle", 43076 verticalAnchor: p 43077 }, T) : o === "insideTopLeft" ? Xt({ 43078 x: s + x, 43079 y: l + f, 43080 textAnchor: y, 43081 verticalAnchor: g 43082 }, T) : o === "insideTopRight" ? Xt({ 43083 x: s + c - x, 43084 y: l + f, 43085 textAnchor: v, 43086 verticalAnchor: g 43087 }, T) : o === "insideBottomLeft" ? Xt({ 43088 x: s + x, 43089 y: l + u - f, 43090 textAnchor: y, 43091 verticalAnchor: p 43092 }, T) : o === "insideBottomRight" ? Xt({ 43093 x: s + c - x, 43094 y: l + u - f, 43095 textAnchor: v, 43096 verticalAnchor: p 43097 }, T) : fu(o) && (le(o.x) || fs(o.x)) && (le(o.y) || fs(o.y)) ? Xt({ 43098 x: s + Hs(o.x, c), 43099 y: l + Hs(o.y, u), 43100 textAnchor: "end", 43101 verticalAnchor: "end" 43102 }, T) : Xt({ 43103 x: s + c / 2, 43104 y: l + u / 2, 43105 textAnchor: "middle", 43106 verticalAnchor: "middle" 43107 }, T) 43108} 43109 , _Ce = function(t) { 43110 return "cx"in t && le(t.cx) 43111}; 43112function On(e) { 43113 var t = e.offset 43114 , n = t === void 0 ? 5 : t 43115 , r = pCe(e, lCe) 43116 , i = Xt({ 43117 offset: n 43118 }, r) 43119 , o = i.viewBox 43120 , a = i.position 43121 , s = i.value 43122 , l = i.children 43123 , c = i.content 43124 , u = i.className 43125 , d = u === void 0 ? "" : u 43126 , f = i.textBreakAll; 43127 if (!o || et(s) && et(l) && !b.isValidElement(c) && !qe(c)) 43128 return null; 43129 if (b.isValidElement(c)) 43130 return b.cloneElement(c, i); 43131 var p; 43132 if (qe(c)) { 43133 if (p = b.createElement(c, i), 43134 b.isValidElement(p)) 43135 return p 43136 } else 43137 p = xCe(i); 43138 var g = _Ce(o) 43139 , m = Je(i, !0); 43140 if (g && (a === "insideStart" || a === "insideEnd" || a === "end")) 43141 return wCe(i, p, m); 43142 var x = g ? SCe(i) : PCe(i); 43143 return k.createElement(Ag, If({ 43144 className: Ge("recharts-label", d) 43145 }, m, x, { 43146 breakAll: f 43147 }), p) 43148} 43149On.displayName = "Label"; 43150var Vz = function(t) { 43151 var n = t.cx 43152 , r = t.cy 43153 , i = t.angle 43154 , o = t.startAngle 43155 , a = t.endAngle 43156 , s = t.r 43157 , l = t.radius 43158 , c = t.innerRadius 43159 , u = t.outerRadius 43160 , d = t.x 43161 , f = t.y 43162 , p = t.top 43163 , g = t.left 43164 , m = t.width 43165 , x = t.height 43166 , v = t.clockWise 43167 , y = t.labelViewBox; 43168 if (y) 43169 return y; 43170 if (le(m) && le(x)) { 43171 if (le(d) && le(f)) 43172 return { 43173 x: d, 43174 y: f, 43175 width: m, 43176 height: x 43177 }; 43178 if (le(p) && le(g)) 43179 return { 43180 x: p, 43181 y: g, 43182 width: m, 43183 height: x 43184 } 43185 } 43186 return le(d) && le(f) ? { 43187 x: d, 43188 y: f, 43189 width: 0, 43190 height: 0 43191 } : le(n) && le(r) ? { 43192 cx: n, 43193 cy: r, 43194 startAngle: o || i || 0, 43195 endAngle: a || i || 0, 43196 innerRadius: c || 0, 43197 outerRadius: u || l || s || 0, 43198 clockWise: v 43199 } : t.viewBox ? t.viewBox : {} 43200} 43201 , TCe = function(t, n) { 43202 return t ? t === !0 ? k.createElement(On, { 43203 key: "label-implicit", 43204 viewBox: n 43205 }) : tn(t) ? k.createElement(On, { 43206 key: "label-implicit", 43207 viewBox: n, 43208 value: t 43209 }) : b.isValidElement(t) ? t.type === On ? b.cloneElement(t, { 43210 key: "label-implicit", 43211 viewBox: n 43212 }) : k.createElement(On, { 43213 key: "label-implicit", 43214 content: t, 43215 viewBox: n 43216 }) : qe(t) ? k.createElement(On, { 43217 key: "label-implicit", 43218 content: t, 43219 viewBox: n 43220 }) : fu(t) ? k.createElement(On, If({ 43221 viewBox: n 43222 }, t, { 43223 key: "label-implicit" 43224 })) : null : null 43225} 43226 , CCe = function(t, n) { 43227 var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; 43228 if (!t || !t.children && r && !t.label) 43229 return null; 43230 var i = t.children 43231 , o = Vz(t) 43232 , a = di(i, On).map(function(l, c) { 43233 return b.cloneElement(l, { 43234 viewBox: n || o, 43235 key: "label-".concat(c) 43236 }) 43237 }); 43238 if (!r) 43239 return a; 43240 var s = TCe(t.label, n || o); 43241 return [s].concat(cCe(a)) 43242}; 43243On.parseViewBox = Vz; 43244On.renderCallByParent = CCe; 43245function OCe(e) { 43246 var t = e == null ? 0 : e.length; 43247 return t ? e[t - 1] : void 0 43248} 43249var ACe = OCe; 43250const ECe = lt(ACe); 43251function $f(e) { 43252 "@babel/helpers - typeof"; 43253 return $f = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 43254 return typeof t 43255 } 43256 : function(t) { 43257 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 43258 } 43259 , 43260 $f(e) 43261} 43262var jCe = ["valueAccessor"] 43263 , NCe = ["data", "dataKey", "clockWise", "id", "textBreakAll"]; 43264function MCe(e) { 43265 return ICe(e) || DCe(e) || RCe(e) || kCe() 43266} 43267function kCe() { 43268 throw new TypeError(`Invalid attempt to spread non-iterable instance. 43269In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 43270} 43271function RCe(e, t) { 43272 if (e) { 43273 if (typeof e == "string") 43274 return K1(e, t); 43275 var n = Object.prototype.toString.call(e).slice(8, -1); 43276 if (n === "Object" && e.constructor && (n = e.constructor.name), 43277 n === "Map" || n === "Set") 43278 return Array.from(e); 43279 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 43280 return K1(e, t) 43281 } 43282} 43283function DCe(e) { 43284 if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) 43285 return Array.from(e) 43286} 43287function ICe(e) { 43288 if (Array.isArray(e)) 43289 return K1(e) 43290} 43291function K1(e, t) { 43292 (t == null || t > e.length) && (t = e.length); 43293 for (var n = 0, r = new Array(t); n < t; n++) 43294 r[n] = e[n]; 43295 return r 43296} 43297function Wg() { 43298 return Wg = Object.assign ? Object.assign.bind() : function(e) { 43299 for (var t = 1; t < arguments.length; t++) { 43300 var n = arguments[t]; 43301 for (var r in n) 43302 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 43303 } 43304 return e 43305 } 43306 , 43307 Wg.apply(this, arguments) 43308} 43309function CM(e, t) { 43310 var n = Object.keys(e); 43311 if (Object.getOwnPropertySymbols) { 43312 var r = Object.getOwnPropertySymbols(e); 43313 t && (r = r.filter(function(i) { 43314 return Object.getOwnPropertyDescriptor(e, i).enumerable 43315 })), 43316 n.push.apply(n, r) 43317 } 43318 return n 43319} 43320function OM(e) { 43321 for (var t = 1; t < arguments.length; t++) { 43322 var n = arguments[t] != null ? arguments[t] : {}; 43323 t % 2 ? CM(Object(n), !0).forEach(function(r) { 43324 $Ce(e, r, n[r]) 43325 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CM(Object(n)).forEach(function(r) { 43326 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 43327 }) 43328 } 43329 return e 43330} 43331function $Ce(e, t, n) { 43332 return t = LCe(t), 43333 t in e ? Object.defineProperty(e, t, { 43334 value: n, 43335 enumerable: !0, 43336 configurable: !0, 43337 writable: !0 43338 }) : e[t] = n, 43339 e 43340} 43341function LCe(e) { 43342 var t = FCe(e, "string"); 43343 return $f(t) == "symbol" ? t : t + "" 43344} 43345function FCe(e, t) { 43346 if ($f(e) != "object" || !e) 43347 return e; 43348 var n = e[Symbol.toPrimitive]; 43349 if (n !== void 0) { 43350 var r = n.call(e, t || "default"); 43351 if ($f(r) != "object") 43352 return r; 43353 throw new TypeError("@@toPrimitive must return a primitive value.") 43354 } 43355 return (t === "string" ? String : Number)(e) 43356} 43357function AM(e, t) { 43358 if (e == null) 43359 return {}; 43360 var n = BCe(e, t), r, i; 43361 if (Object.getOwnPropertySymbols) { 43362 var o = Object.getOwnPropertySymbols(e); 43363 for (i = 0; i < o.length; i++) 43364 r = o[i], 43365 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 43366 } 43367 return n 43368} 43369function BCe(e, t) { 43370 if (e == null) 43371 return {}; 43372 var n = {}; 43373 for (var r in e) 43374 if (Object.prototype.hasOwnProperty.call(e, r)) { 43375 if (t.indexOf(r) >= 0) 43376 continue; 43377 n[r] = e[r] 43378 } 43379 return n 43380} 43381var VCe = function(t) { 43382 return Array.isArray(t.value) ? ECe(t.value) : t.value 43383}; 43384function js(e) { 43385 var t = e.valueAccessor 43386 , n = t === void 0 ? VCe : t 43387 , r = AM(e, jCe) 43388 , i = r.data 43389 , o = r.dataKey 43390 , a = r.clockWise 43391 , s = r.id 43392 , l = r.textBreakAll 43393 , c = AM(r, NCe); 43394 return !i || !i.length ? null : k.createElement(ln, { 43395 className: "recharts-label-list" 43396 }, i.map(function(u, d) { 43397 var f = et(o) ? n(u, d) : Hi(u && u.payload, o) 43398 , p = et(s) ? {} : { 43399 id: "".concat(s, "-").concat(d) 43400 }; 43401 return k.createElement(On, Wg({}, Je(u, !0), c, p, { 43402 parentViewBox: u.parentViewBox, 43403 value: f, 43404 textBreakAll: l, 43405 viewBox: On.parseViewBox(et(a) ? u : OM(OM({}, u), {}, { 43406 clockWise: a 43407 })), 43408 key: "label-".concat(d), 43409 index: d 43410 })) 43411 })) 43412} 43413js.displayName = "LabelList"; 43414function UCe(e, t) { 43415 return e ? e === !0 ? k.createElement(js, { 43416 key: "labelList-implicit", 43417 data: t 43418 }) : k.isValidElement(e) || qe(e) ? k.createElement(js, { 43419 key: "labelList-implicit", 43420 data: t, 43421 content: e 43422 }) : fu(e) ? k.createElement(js, Wg({ 43423 data: t 43424 }, e, { 43425 key: "labelList-implicit" 43426 })) : null : null 43427} 43428function zCe(e, t) { 43429 var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; 43430 if (!e || !e.children && n && !e.label) 43431 return null; 43432 var r = e.children 43433 , i = di(r, js).map(function(a, s) { 43434 return b.cloneElement(a, { 43435 data: t, 43436 key: "labelList-".concat(s) 43437 }) 43438 }); 43439 if (!n) 43440 return i; 43441 var o = UCe(e.label, t); 43442 return [o].concat(MCe(i)) 43443} 43444js.renderCallByParent = zCe; 43445function Lf(e) { 43446 "@babel/helpers - typeof"; 43447 return Lf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 43448 return typeof t 43449 } 43450 : function(t) { 43451 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 43452 } 43453 , 43454 Lf(e) 43455} 43456function G1() { 43457 return G1 = Object.assign ? Object.assign.bind() : function(e) { 43458 for (var t = 1; t < arguments.length; t++) { 43459 var n = arguments[t]; 43460 for (var r in n) 43461 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 43462 } 43463 return e 43464 } 43465 , 43466 G1.apply(this, arguments) 43467} 43468function EM(e, t) { 43469 var n = Object.keys(e); 43470 if (Object.getOwnPropertySymbols) { 43471 var r = Object.getOwnPropertySymbols(e); 43472 t && (r = r.filter(function(i) { 43473 return Object.getOwnPropertyDescriptor(e, i).enumerable 43474 })), 43475 n.push.apply(n, r) 43476 } 43477 return n 43478} 43479function jM(e) { 43480 for (var t = 1; t < arguments.length; t++) { 43481 var n = arguments[t] != null ? arguments[t] : {}; 43482 t % 2 ? EM(Object(n), !0).forEach(function(r) { 43483 WCe(e, r, n[r]) 43484 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : EM(Object(n)).forEach(function(r) { 43485 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 43486 }) 43487 } 43488 return e 43489} 43490function WCe(e, t, n) { 43491 return t = HCe(t), 43492 t in e ? Object.defineProperty(e, t, { 43493 value: n, 43494 enumerable: !0, 43495 configurable: !0, 43496 writable: !0 43497 }) : e[t] = n, 43498 e 43499} 43500function HCe(e) { 43501 var t = qCe(e, "string"); 43502 return Lf(t) == "symbol" ? t : t + "" 43503} 43504function qCe(e, t) { 43505 if (Lf(e) != "object" || !e) 43506 return e; 43507 var n = e[Symbol.toPrimitive]; 43508 if (n !== void 0) { 43509 var r = n.call(e, t || "default"); 43510 if (Lf(r) != "object") 43511 return r; 43512 throw new TypeError("@@toPrimitive must return a primitive value.") 43513 } 43514 return (t === "string" ? String : Number)(e) 43515} 43516var KCe = function(t, n) { 43517 var r = oi(n - t) 43518 , i = Math.min(Math.abs(n - t), 359.999); 43519 return r * i 43520} 43521 , Vp = function(t) { 43522 var n = t.cx 43523 , r = t.cy 43524 , i = t.radius 43525 , o = t.angle 43526 , a = t.sign 43527 , s = t.isExternal 43528 , l = t.cornerRadius 43529 , c = t.cornerIsExternal 43530 , u = l * (s ? 1 : -1) + i 43531 , d = Math.asin(l / u) / zg 43532 , f = c ? o : o + a * d 43533 , p = vn(n, r, u, f) 43534 , g = vn(n, r, i, f) 43535 , m = c ? o - a * d : o 43536 , x = vn(n, r, u * Math.cos(d * zg), m); 43537 return { 43538 center: p, 43539 circleTangency: g, 43540 lineTangency: x, 43541 theta: d 43542 } 43543} 43544 , Uz = function(t) { 43545 var n = t.cx 43546 , r = t.cy 43547 , i = t.innerRadius 43548 , o = t.outerRadius 43549 , a = t.startAngle 43550 , s = t.endAngle 43551 , l = KCe(a, s) 43552 , c = a + l 43553 , u = vn(n, r, o, a) 43554 , d = vn(n, r, o, c) 43555 , f = "M ".concat(u.x, ",").concat(u.y, ` 43556 A `).concat(o, ",").concat(o, `,0, 43557 `).concat(+(Math.abs(l) > 180), ",").concat(+(a > c), `, 43558 `).concat(d.x, ",").concat(d.y, ` 43559 `); 43560 if (i > 0) { 43561 var p = vn(n, r, i, a) 43562 , g = vn(n, r, i, c); 43563 f += "L ".concat(g.x, ",").concat(g.y, ` 43564 A `).concat(i, ",").concat(i, `,0, 43565 `).concat(+(Math.abs(l) > 180), ",").concat(+(a <= c), `, 43566 `).concat(p.x, ",").concat(p.y, " Z") 43567 } else 43568 f += "L ".concat(n, ",").concat(r, " Z"); 43569 return f 43570} 43571 , GCe = function(t) { 43572 var n = t.cx 43573 , r = t.cy 43574 , i = t.innerRadius 43575 , o = t.outerRadius 43576 , a = t.cornerRadius 43577 , s = t.forceCornerRadius 43578 , l = t.cornerIsExternal 43579 , c = t.startAngle 43580 , u = t.endAngle 43581 , d = oi(u - c) 43582 , f = Vp({ 43583 cx: n, 43584 cy: r, 43585 radius: o, 43586 angle: c, 43587 sign: d, 43588 cornerRadius: a, 43589 cornerIsExternal: l 43590 }) 43591 , p = f.circleTangency 43592 , g = f.lineTangency 43593 , m = f.theta 43594 , x = Vp({ 43595 cx: n, 43596 cy: r, 43597 radius: o, 43598 angle: u, 43599 sign: -d, 43600 cornerRadius: a, 43601 cornerIsExternal: l 43602 }) 43603 , v = x.circleTangency 43604 , y = x.lineTangency 43605 , w = x.theta 43606 , P = l ? Math.abs(c - u) : Math.abs(c - u) - m - w; 43607 if (P < 0) 43608 return s ? "M ".concat(g.x, ",").concat(g.y, ` 43609 a`).concat(a, ",").concat(a, ",0,0,1,").concat(a * 2, `,0 43610 a`).concat(a, ",").concat(a, ",0,0,1,").concat(-a * 2, `,0 43611 `) : Uz({ 43612 cx: n, 43613 cy: r, 43614 innerRadius: i, 43615 outerRadius: o, 43616 startAngle: c, 43617 endAngle: u 43618 }); 43619 var S = "M ".concat(g.x, ",").concat(g.y, ` 43620 A`).concat(a, ",").concat(a, ",0,0,").concat(+(d < 0), ",").concat(p.x, ",").concat(p.y, ` 43621 A`).concat(o, ",").concat(o, ",0,").concat(+(P > 180), ",").concat(+(d < 0), ",").concat(v.x, ",").concat(v.y, ` 43622 A`).concat(a, ",").concat(a, ",0,0,").concat(+(d < 0), ",").concat(y.x, ",").concat(y.y, ` 43623 `); 43624 if (i > 0) { 43625 var _ = Vp({ 43626 cx: n, 43627 cy: r, 43628 radius: i, 43629 angle: c, 43630 sign: d, 43631 isExternal: !0, 43632 cornerRadius: a, 43633 cornerIsExternal: l 43634 }) 43635 , T = _.circleTangency 43636 , C = _.lineTangency 43637 , O = _.theta 43638 , A = Vp({ 43639 cx: n, 43640 cy: r, 43641 radius: i, 43642 angle: u, 43643 sign: -d, 43644 isExternal: !0, 43645 cornerRadius: a, 43646 cornerIsExternal: l 43647 }) 43648 , E = A.circleTangency 43649 , j = A.lineTangency 43650 , $ = A.theta 43651 , R = l ? Math.abs(c - u) : Math.abs(c - u) - O - $; 43652 if (R < 0 && a === 0) 43653 return "".concat(S, "L").concat(n, ",").concat(r, "Z"); 43654 S += "L".concat(j.x, ",").concat(j.y, ` 43655 A`).concat(a, ",").concat(a, ",0,0,").concat(+(d < 0), ",").concat(E.x, ",").concat(E.y, ` 43656 A`).concat(i, ",").concat(i, ",0,").concat(+(R > 180), ",").concat(+(d > 0), ",").concat(T.x, ",").concat(T.y, ` 43657 A`).concat(a, ",").concat(a, ",0,0,").concat(+(d < 0), ",").concat(C.x, ",").concat(C.y, "Z") 43658 } else 43659 S += "L".concat(n, ",").concat(r, "Z"); 43660 return S 43661} 43662 , YCe = { 43663 cx: 0, 43664 cy: 0, 43665 innerRadius: 0, 43666 outerRadius: 0, 43667 startAngle: 0, 43668 endAngle: 0, 43669 cornerRadius: 0, 43670 forceCornerRadius: !1, 43671 cornerIsExternal: !1 43672} 43673 , zz = function(t) { 43674 var n = jM(jM({}, YCe), t) 43675 , r = n.cx 43676 , i = n.cy 43677 , o = n.innerRadius 43678 , a = n.outerRadius 43679 , s = n.cornerRadius 43680 , l = n.forceCornerRadius 43681 , c = n.cornerIsExternal 43682 , u = n.startAngle 43683 , d = n.endAngle 43684 , f = n.className; 43685 if (a < o || u === d) 43686 return null; 43687 var p = Ge("recharts-sector", f), g = a - o, m = Hs(s, g, 0, !0), x; 43688 return m > 0 && Math.abs(u - d) < 360 ? x = GCe({ 43689 cx: r, 43690 cy: i, 43691 innerRadius: o, 43692 outerRadius: a, 43693 cornerRadius: Math.min(m, g / 2), 43694 forceCornerRadius: l, 43695 cornerIsExternal: c, 43696 startAngle: u, 43697 endAngle: d 43698 }) : x = Uz({ 43699 cx: r, 43700 cy: i, 43701 innerRadius: o, 43702 outerRadius: a, 43703 startAngle: u, 43704 endAngle: d 43705 }), 43706 k.createElement("path", G1({}, Je(n, !0), { 43707 className: p, 43708 d: x, 43709 role: "img" 43710 })) 43711}; 43712function Ff(e) { 43713 "@babel/helpers - typeof"; 43714 return Ff = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 43715 return typeof t 43716 } 43717 : function(t) { 43718 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 43719 } 43720 , 43721 Ff(e) 43722} 43723function Y1() { 43724 return Y1 = Object.assign ? Object.assign.bind() : function(e) { 43725 for (var t = 1; t < arguments.length; t++) { 43726 var n = arguments[t]; 43727 for (var r in n) 43728 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 43729 } 43730 return e 43731 } 43732 , 43733 Y1.apply(this, arguments) 43734} 43735function NM(e, t) { 43736 var n = Object.keys(e); 43737 if (Object.getOwnPropertySymbols) { 43738 var r = Object.getOwnPropertySymbols(e); 43739 t && (r = r.filter(function(i) { 43740 return Object.getOwnPropertyDescriptor(e, i).enumerable 43741 })), 43742 n.push.apply(n, r) 43743 } 43744 return n 43745} 43746function MM(e) { 43747 for (var t = 1; t < arguments.length; t++) { 43748 var n = arguments[t] != null ? arguments[t] : {}; 43749 t % 2 ? NM(Object(n), !0).forEach(function(r) { 43750 XCe(e, r, n[r]) 43751 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : NM(Object(n)).forEach(function(r) { 43752 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 43753 }) 43754 } 43755 return e 43756} 43757function XCe(e, t, n) { 43758 return t = QCe(t), 43759 t in e ? Object.defineProperty(e, t, { 43760 value: n, 43761 enumerable: !0, 43762 configurable: !0, 43763 writable: !0 43764 }) : e[t] = n, 43765 e 43766} 43767function QCe(e) { 43768 var t = ZCe(e, "string"); 43769 return Ff(t) == "symbol" ? t : t + "" 43770} 43771function ZCe(e, t) { 43772 if (Ff(e) != "object" || !e) 43773 return e; 43774 var n = e[Symbol.toPrimitive]; 43775 if (n !== void 0) { 43776 var r = n.call(e, t || "default"); 43777 if (Ff(r) != "object") 43778 return r; 43779 throw new TypeError("@@toPrimitive must return a primitive value.") 43780 } 43781 return (t === "string" ? String : Number)(e) 43782} 43783var kM = { 43784 curveBasisClosed: Ghe, 43785 curveBasisOpen: Yhe, 43786 curveBasis: Khe, 43787 curveBumpX: khe, 43788 curveBumpY: Rhe, 43789 curveLinearClosed: Xhe, 43790 curveLinear: Uv, 43791 curveMonotoneX: Qhe, 43792 curveMonotoneY: Zhe, 43793 curveNatural: Jhe, 43794 curveStep: epe, 43795 curveStepAfter: npe, 43796 curveStepBefore: tpe 43797} 43798 , Up = function(t) { 43799 return t.x === +t.x && t.y === +t.y 43800} 43801 , Hu = function(t) { 43802 return t.x 43803} 43804 , qu = function(t) { 43805 return t.y 43806} 43807 , JCe = function(t, n) { 43808 if (qe(t)) 43809 return t; 43810 var r = "curve".concat(Bv(t)); 43811 return (r === "curveMonotone" || r === "curveBump") && n ? kM["".concat(r).concat(n === "vertical" ? "Y" : "X")] : kM[r] || Uv 43812} 43813 , eOe = function(t) { 43814 var n = t.type, r = n === void 0 ? "linear" : n, i = t.points, o = i === void 0 ? [] : i, a = t.baseLine, s = t.layout, l = t.connectNulls, c = l === void 0 ? !1 : l, u = JCe(r, s), d = c ? o.filter(function(m) { 43815 return Up(m) 43816 }) : o, f; 43817 if (Array.isArray(a)) { 43818 var p = c ? a.filter(function(m) { 43819 return Up(m) 43820 }) : a 43821 , g = d.map(function(m, x) { 43822 return MM(MM({}, m), {}, { 43823 base: p[x] 43824 }) 43825 }); 43826 return s === "vertical" ? f = Mp().y(qu).x1(Hu).x0(function(m) { 43827 return m.base.x 43828 }) : f = Mp().x(Hu).y1(qu).y0(function(m) { 43829 return m.base.y 43830 }), 43831 f.defined(Up).curve(u), 43832 f(g) 43833 } 43834 return s === "vertical" && le(a) ? f = Mp().y(qu).x1(Hu).x0(a) : le(a) ? f = Mp().x(Hu).y1(qu).y0(a) : f = H8().x(Hu).y(qu), 43835 f.defined(Up).curve(u), 43836 f(d) 43837} 43838 , RM = function(t) { 43839 var n = t.className 43840 , r = t.points 43841 , i = t.path 43842 , o = t.pathRef; 43843 if ((!r || !r.length) && !i) 43844 return null; 43845 var a = r && r.length ? eOe(t) : i; 43846 return k.createElement("path", Y1({}, Je(t, !1), hg(t), { 43847 className: Ge("recharts-curve", n), 43848 d: a, 43849 ref: o 43850 })) 43851} 43852 , Wz = { 43853 exports: {} 43854} 43855 , tOe = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED" 43856 , nOe = tOe 43857 , rOe = nOe; 43858function Hz() {} 43859function qz() {} 43860qz.resetWarningCache = Hz; 43861var iOe = function() { 43862 function e(r, i, o, a, s, l) { 43863 if (l !== rOe) { 43864 var c = 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"); 43865 throw c.name = "Invariant Violation", 43866 c 43867 } 43868 } 43869 e.isRequired = e; 43870 function t() { 43871 return e 43872 } 43873 var n = { 43874 array: e, 43875 bigint: e, 43876 bool: e, 43877 func: e, 43878 number: e, 43879 object: e,
43880 string: e, 43881 symbol: e, 43882 any: e, 43883 arrayOf: t, 43884 element: e, 43885 elementType: e, 43886 instanceOf: t, 43887 node: e, 43888 objectOf: t, 43889 oneOf: t, 43890 oneOfType: t, 43891 shape: t, 43892 exact: t, 43893 checkPropTypes: qz, 43894 resetWarningCache: Hz 43895 }; 43896 return n.PropTypes = n, 43897 n 43898}; 43899Wz.exports = iOe(); 43900var oOe = Wz.exports; 43901const Ie = lt(oOe); 43902var aOe = Object.getOwnPropertyNames 43903 , sOe = Object.getOwnPropertySymbols 43904 , lOe = Object.prototype.hasOwnProperty; 43905function DM(e, t) { 43906 return function(r, i, o) { 43907 return e(r, i, o) && t(r, i, o) 43908 } 43909} 43910function zp(e) { 43911 return function(n, r, i) { 43912 if (!n || !r || typeof n != "object" || typeof r != "object") 43913 return e(n, r, i); 43914 var o = i.cache 43915 , a = o.get(n) 43916 , s = o.get(r); 43917 if (a && s) 43918 return a === r && s === n; 43919 o.set(n, r), 43920 o.set(r, n); 43921 var l = e(n, r, i); 43922 return o.delete(n), 43923 o.delete(r), 43924 l 43925 } 43926} 43927function IM(e) { 43928 return aOe(e).concat(sOe(e)) 43929} 43930var Kz = Object.hasOwn || function(e, t) { 43931 return lOe.call(e, t) 43932} 43933; 43934function Pu(e, t) { 43935 return e || t ? e === t : e === t || e !== e && t !== t 43936} 43937var Gz = "_owner" 43938 , $M = Object.getOwnPropertyDescriptor 43939 , LM = Object.keys; 43940function cOe(e, t, n) { 43941 var r = e.length; 43942 if (t.length !== r) 43943 return !1; 43944 for (; r-- > 0; ) 43945 if (!n.equals(e[r], t[r], r, r, e, t, n)) 43946 return !1; 43947 return !0 43948} 43949function uOe(e, t) { 43950 return Pu(e.getTime(), t.getTime()) 43951} 43952function FM(e, t, n) { 43953 if (e.size !== t.size) 43954 return !1; 43955 for (var r = {}, i = e.entries(), o = 0, a, s; (a = i.next()) && !a.done; ) { 43956 for (var l = t.entries(), c = !1, u = 0; (s = l.next()) && !s.done; ) { 43957 var d = a.value 43958 , f = d[0] 43959 , p = d[1] 43960 , g = s.value 43961 , m = g[0] 43962 , x = g[1]; 43963 !c && !r[u] && (c = n.equals(f, m, o, u, e, t, n) && n.equals(p, x, f, m, e, t, n)) && (r[u] = !0), 43964 u++ 43965 } 43966 if (!c) 43967 return !1; 43968 o++ 43969 } 43970 return !0 43971} 43972function dOe(e, t, n) { 43973 var r = LM(e) 43974 , i = r.length; 43975 if (LM(t).length !== i) 43976 return !1; 43977 for (var o; i-- > 0; ) 43978 if (o = r[i], 43979 o === Gz && (e.$$typeof || t.$$typeof) && e.$$typeof !== t.$$typeof || !Kz(t, o) || !n.equals(e[o], t[o], o, o, e, t, n)) 43980 return !1; 43981 return !0 43982} 43983function Ku(e, t, n) { 43984 var r = IM(e) 43985 , i = r.length; 43986 if (IM(t).length !== i) 43987 return !1; 43988 for (var o, a, s; i-- > 0; ) 43989 if (o = r[i], 43990 o === Gz && (e.$$typeof || t.$$typeof) && e.$$typeof !== t.$$typeof || !Kz(t, o) || !n.equals(e[o], t[o], o, o, e, t, n) || (a = $M(e, o), 43991 s = $M(t, o), 43992 (a || s) && (!a || !s || a.configurable !== s.configurable || a.enumerable !== s.enumerable || a.writable !== s.writable))) 43993 return !1; 43994 return !0 43995} 43996function fOe(e, t) { 43997 return Pu(e.valueOf(), t.valueOf()) 43998} 43999function hOe(e, t) { 44000 return e.source === t.source && e.flags === t.flags 44001} 44002function BM(e, t, n) { 44003 if (e.size !== t.size) 44004 return !1; 44005 for (var r = {}, i = e.values(), o, a; (o = i.next()) && !o.done; ) { 44006 for (var s = t.values(), l = !1, c = 0; (a = s.next()) && !a.done; ) 44007 !l && !r[c] && (l = n.equals(o.value, a.value, o.value, a.value, e, t, n)) && (r[c] = !0), 44008 c++; 44009 if (!l) 44010 return !1 44011 } 44012 return !0 44013} 44014function pOe(e, t) { 44015 var n = e.length; 44016 if (t.length !== n) 44017 return !1; 44018 for (; n-- > 0; ) 44019 if (e[n] !== t[n]) 44020 return !1; 44021 return !0 44022} 44023var mOe = "[object Arguments]" 44024 , gOe = "[object Boolean]" 44025 , yOe = "[object Date]" 44026 , vOe = "[object Map]" 44027 , xOe = "[object Number]" 44028 , bOe = "[object Object]" 44029 , wOe = "[object RegExp]" 44030 , SOe = "[object Set]" 44031 , POe = "[object String]" 44032 , _Oe = Array.isArray 44033 , VM = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null 44034 , UM = Object.assign 44035 , TOe = Object.prototype.toString.call.bind(Object.prototype.toString); 44036function COe(e) { 44037 var t = e.areArraysEqual 44038 , n = e.areDatesEqual 44039 , r = e.areMapsEqual 44040 , i = e.areObjectsEqual 44041 , o = e.arePrimitiveWrappersEqual 44042 , a = e.areRegExpsEqual 44043 , s = e.areSetsEqual 44044 , l = e.areTypedArraysEqual; 44045 return function(u, d, f) { 44046 if (u === d) 44047 return !0; 44048 if (u == null || d == null || typeof u != "object" || typeof d != "object") 44049 return u !== u && d !== d; 44050 var p = u.constructor; 44051 if (p !== d.constructor) 44052 return !1; 44053 if (p === Object) 44054 return i(u, d, f); 44055 if (_Oe(u)) 44056 return t(u, d, f); 44057 if (VM != null && VM(u)) 44058 return l(u, d, f); 44059 if (p === Date) 44060 return n(u, d, f); 44061 if (p === RegExp) 44062 return a(u, d, f); 44063 if (p === Map) 44064 return r(u, d, f); 44065 if (p === Set) 44066 return s(u, d, f); 44067 var g = TOe(u); 44068 return g === yOe ? n(u, d, f) : g === wOe ? a(u, d, f) : g === vOe ? r(u, d, f) : g === SOe ? s(u, d, f) : g === bOe ? typeof u.then != "function" && typeof d.then != "function" && i(u, d, f) : g === mOe ? i(u, d, f) : g === gOe || g === xOe || g === POe ? o(u, d, f) : !1 44069 } 44070} 44071function OOe(e) { 44072 var t = e.circular 44073 , n = e.createCustomConfig 44074 , r = e.strict 44075 , i = { 44076 areArraysEqual: r ? Ku : cOe, 44077 areDatesEqual: uOe, 44078 areMapsEqual: r ? DM(FM, Ku) : FM, 44079 areObjectsEqual: r ? Ku : dOe, 44080 arePrimitiveWrappersEqual: fOe, 44081 areRegExpsEqual: hOe, 44082 areSetsEqual: r ? DM(BM, Ku) : BM, 44083 areTypedArraysEqual: r ? Ku : pOe 44084 }; 44085 if (n && (i = UM({}, i, n(i))), 44086 t) { 44087 var o = zp(i.areArraysEqual) 44088 , a = zp(i.areMapsEqual) 44089 , s = zp(i.areObjectsEqual) 44090 , l = zp(i.areSetsEqual); 44091 i = UM({}, i, { 44092 areArraysEqual: o, 44093 areMapsEqual: a, 44094 areObjectsEqual: s, 44095 areSetsEqual: l 44096 }) 44097 } 44098 return i 44099} 44100function AOe(e) { 44101 return function(t, n, r, i, o, a, s) { 44102 return e(t, n, s) 44103 } 44104} 44105function EOe(e) { 44106 var t = e.circular 44107 , n = e.comparator 44108 , r = e.createState 44109 , i = e.equals 44110 , o = e.strict; 44111 if (r) 44112 return function(l, c) { 44113 var u = r() 44114 , d = u.cache 44115 , f = d === void 0 ? t ? new WeakMap : void 0 : d 44116 , p = u.meta; 44117 return n(l, c, { 44118 cache: f, 44119 equals: i, 44120 meta: p,
vendor: 57,888 bytes, lines 44121-46136
44121 strict: o 44122 }) 44123 } 44124 ; 44125 if (t) 44126 return function(l, c) { 44127 return n(l, c, { 44128 cache: new WeakMap, 44129 equals: i, 44130 meta: void 0, 44131 strict: o 44132 }) 44133 } 44134 ; 44135 var a = { 44136 cache: void 0, 44137 equals: i, 44138 meta: void 0, 44139 strict: o 44140 }; 44141 return function(l, c) { 44142 return n(l, c, a) 44143 } 44144} 44145var jOe = Ka(); 44146Ka({ 44147 strict: !0 44148}); 44149Ka({ 44150 circular: !0 44151}); 44152Ka({ 44153 circular: !0, 44154 strict: !0 44155}); 44156Ka({ 44157 createInternalComparator: function() { 44158 return Pu 44159 } 44160}); 44161Ka({ 44162 strict: !0, 44163 createInternalComparator: function() { 44164 return Pu 44165 } 44166}); 44167Ka({ 44168 circular: !0, 44169 createInternalComparator: function() { 44170 return Pu 44171 } 44172}); 44173Ka({ 44174 circular: !0, 44175 createInternalComparator: function() { 44176 return Pu 44177 }, 44178 strict: !0 44179}); 44180function Ka(e) { 44181 e === void 0 && (e = {}); 44182 var t = e.circular 44183 , n = t === void 0 ? !1 : t 44184 , r = e.createInternalComparator 44185 , i = e.createState 44186 , o = e.strict 44187 , a = o === void 0 ? !1 : o 44188 , s = OOe(e) 44189 , l = COe(s) 44190 , c = r ? r(l) : AOe(l); 44191 return EOe({ 44192 circular: n, 44193 comparator: l, 44194 createState: i, 44195 equals: c, 44196 strict: a 44197 }) 44198} 44199function NOe(e) { 44200 typeof requestAnimationFrame < "u" && requestAnimationFrame(e) 44201} 44202function zM(e) { 44203 var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0 44204 , n = -1 44205 , r = function i(o) { 44206 n < 0 && (n = o), 44207 o - n > t ? (e(o), 44208 n = -1) : NOe(i) 44209 }; 44210 requestAnimationFrame(r) 44211} 44212function X1(e) { 44213 "@babel/helpers - typeof"; 44214 return X1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 44215 return typeof t 44216 } 44217 : function(t) { 44218 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 44219 } 44220 , 44221 X1(e) 44222} 44223function MOe(e) { 44224 return IOe(e) || DOe(e) || ROe(e) || kOe() 44225} 44226function kOe() { 44227 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 44228In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 44229} 44230function ROe(e, t) { 44231 if (e) { 44232 if (typeof e == "string") 44233 return WM(e, t); 44234 var n = Object.prototype.toString.call(e).slice(8, -1); 44235 if (n === "Object" && e.constructor && (n = e.constructor.name), 44236 n === "Map" || n === "Set") 44237 return Array.from(e); 44238 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 44239 return WM(e, t) 44240 } 44241} 44242function WM(e, t) { 44243 (t == null || t > e.length) && (t = e.length); 44244 for (var n = 0, r = new Array(t); n < t; n++) 44245 r[n] = e[n]; 44246 return r 44247} 44248function DOe(e) { 44249 if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) 44250 return Array.from(e) 44251} 44252function IOe(e) { 44253 if (Array.isArray(e)) 44254 return e 44255} 44256function $Oe() { 44257 var e = {} 44258 , t = function() { 44259 return null 44260 } 44261 , n = !1 44262 , r = function i(o) { 44263 if (!n) { 44264 if (Array.isArray(o)) { 44265 if (!o.length) 44266 return; 44267 var a = o 44268 , s = MOe(a) 44269 , l = s[0] 44270 , c = s.slice(1); 44271 if (typeof l == "number") { 44272 zM(i.bind(null, c), l); 44273 return 44274 } 44275 i(l), 44276 zM(i.bind(null, c)); 44277 return 44278 } 44279 X1(o) === "object" && (e = o, 44280 t(e)), 44281 typeof o == "function" && o() 44282 } 44283 }; 44284 return { 44285 stop: function() { 44286 n = !0 44287 }, 44288 start: function(o) { 44289 n = !1, 44290 r(o) 44291 }, 44292 subscribe: function(o) { 44293 return t = o, 44294 function() { 44295 t = function() { 44296 return null 44297 } 44298 } 44299 } 44300 } 44301} 44302function Bf(e) { 44303 "@babel/helpers - typeof"; 44304 return Bf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 44305 return typeof t 44306 } 44307 : function(t) { 44308 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 44309 } 44310 , 44311 Bf(e) 44312} 44313function HM(e, t) { 44314 var n = Object.keys(e); 44315 if (Object.getOwnPropertySymbols) { 44316 var r = Object.getOwnPropertySymbols(e); 44317 t && (r = r.filter(function(i) { 44318 return Object.getOwnPropertyDescriptor(e, i).enumerable 44319 })), 44320 n.push.apply(n, r) 44321 } 44322 return n 44323} 44324function qM(e) { 44325 for (var t = 1; t < arguments.length; t++) { 44326 var n = arguments[t] != null ? arguments[t] : {}; 44327 t % 2 ? HM(Object(n), !0).forEach(function(r) { 44328 Yz(e, r, n[r]) 44329 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HM(Object(n)).forEach(function(r) { 44330 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 44331 }) 44332 } 44333 return e 44334} 44335function Yz(e, t, n) { 44336 return t = LOe(t), 44337 t in e ? Object.defineProperty(e, t, { 44338 value: n, 44339 enumerable: !0, 44340 configurable: !0, 44341 writable: !0 44342 }) : e[t] = n, 44343 e 44344} 44345function LOe(e) { 44346 var t = FOe(e, "string"); 44347 return Bf(t) === "symbol" ? t : String(t) 44348} 44349function FOe(e, t) { 44350 if (Bf(e) !== "object" || e === null) 44351 return e; 44352 var n = e[Symbol.toPrimitive]; 44353 if (n !== void 0) { 44354 var r = n.call(e, t || "default"); 44355 if (Bf(r) !== "object") 44356 return r; 44357 throw new TypeError("@@toPrimitive must return a primitive value.") 44358 } 44359 return (t === "string" ? String : Number)(e) 44360} 44361var BOe = function(t, n) { 44362 return [Object.keys(t), Object.keys(n)].reduce(function(r, i) { 44363 return r.filter(function(o) { 44364 return i.includes(o) 44365 }) 44366 }) 44367} 44368 , VOe = function(t) { 44369 return t 44370} 44371 , UOe = function(t) { 44372 return t.replace(/([A-Z])/g, function(n) { 44373 return "-".concat(n.toLowerCase()) 44374 }) 44375} 44376 , Ld = function(t, n) { 44377 return Object.keys(n).reduce(function(r, i) { 44378 return qM(qM({}, r), {}, Yz({}, i, t(i, n[i]))) 44379 }, {}) 44380} 44381 , KM = function(t, n, r) { 44382 return t.map(function(i) { 44383 return "".concat(UOe(i), " ").concat(n, "ms ").concat(r) 44384 }).join(",") 44385}; 44386function zOe(e, t) { 44387 return qOe(e) || HOe(e, t) || Xz(e, t) || WOe() 44388} 44389function WOe() { 44390 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 44391In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 44392} 44393function HOe(e, t) { 44394 var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; 44395 if (n != null) { 44396 var r, i, o, a, s = [], l = !0, c = !1; 44397 try { 44398 if (o = (n = n.call(e)).next, 44399 t !== 0) 44400 for (; !(l = (r = o.call(n)).done) && (s.push(r.value), 44401 s.length !== t); l = !0) 44402 ; 44403 } catch (u) { 44404 c = !0, 44405 i = u 44406 } finally { 44407 try { 44408 if (!l && n.return != null && (a = n.return(), 44409 Object(a) !== a)) 44410 return 44411 } finally { 44412 if (c) 44413 throw i 44414 } 44415 } 44416 return s 44417 } 44418} 44419function qOe(e) { 44420 if (Array.isArray(e)) 44421 return e 44422} 44423function KOe(e) { 44424 return XOe(e) || YOe(e) || Xz(e) || GOe() 44425} 44426function GOe() { 44427 throw new TypeError(`Invalid attempt to spread non-iterable instance. 44428In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 44429} 44430function Xz(e, t) { 44431 if (e) { 44432 if (typeof e == "string") 44433 return Q1(e, t); 44434 var n = Object.prototype.toString.call(e).slice(8, -1); 44435 if (n === "Object" && e.constructor && (n = e.constructor.name), 44436 n === "Map" || n === "Set") 44437 return Array.from(e); 44438 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 44439 return Q1(e, t) 44440 } 44441} 44442function YOe(e) { 44443 if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) 44444 return Array.from(e) 44445} 44446function XOe(e) { 44447 if (Array.isArray(e)) 44448 return Q1(e) 44449} 44450function Q1(e, t) { 44451 (t == null || t > e.length) && (t = e.length); 44452 for (var n = 0, r = new Array(t); n < t; n++) 44453 r[n] = e[n]; 44454 return r 44455} 44456var Hg = 1e-4 44457 , Qz = function(t, n) { 44458 return [0, 3 * t, 3 * n - 6 * t, 3 * t - 3 * n + 1] 44459} 44460 , Zz = function(t, n) { 44461 return t.map(function(r, i) { 44462 return r * Math.pow(n, i) 44463 }).reduce(function(r, i) { 44464 return r + i 44465 }) 44466} 44467 , GM = function(t, n) { 44468 return function(r) { 44469 var i = Qz(t, n); 44470 return Zz(i, r) 44471 } 44472} 44473 , QOe = function(t, n) { 44474 return function(r) { 44475 var i = Qz(t, n) 44476 , o = [].concat(KOe(i.map(function(a, s) { 44477 return a * s 44478 }).slice(1)), [0]); 44479 return Zz(o, r) 44480 } 44481} 44482 , YM = function() { 44483 for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) 44484 n[r] = arguments[r]; 44485 var i = n[0] 44486 , o = n[1] 44487 , a = n[2] 44488 , s = n[3]; 44489 if (n.length === 1) 44490 switch (n[0]) { 44491 case "linear": 44492 i = 0, 44493 o = 0, 44494 a = 1, 44495 s = 1; 44496 break; 44497 case "ease": 44498 i = .25, 44499 o = .1, 44500 a = .25, 44501 s = 1; 44502 break; 44503 case "ease-in": 44504 i = .42, 44505 o = 0, 44506 a = 1, 44507 s = 1; 44508 break; 44509 case "ease-out": 44510 i = .42, 44511 o = 0, 44512 a = .58, 44513 s = 1; 44514 break; 44515 case "ease-in-out": 44516 i = 0, 44517 o = 0, 44518 a = .58, 44519 s = 1; 44520 break; 44521 default: 44522 { 44523 var l = n[0].split("("); 44524 if (l[0] === "cubic-bezier" && l[1].split(")")[0].split(",").length === 4) { 44525 var c = l[1].split(")")[0].split(",").map(function(x) { 44526 return parseFloat(x) 44527 }) 44528 , u = zOe(c, 4); 44529 i = u[0], 44530 o = u[1], 44531 a = u[2], 44532 s = u[3] 44533 } 44534 } 44535 } 44536 var d = GM(i, a) 44537 , f = GM(o, s) 44538 , p = QOe(i, a) 44539 , g = function(v) { 44540 return v > 1 ? 1 : v < 0 ? 0 : v 44541 } 44542 , m = function(v) { 44543 for (var y = v > 1 ? 1 : v, w = y, P = 0; P < 8; ++P) { 44544 var S = d(w) - y 44545 , _ = p(w); 44546 if (Math.abs(S - y) < Hg || _ < Hg) 44547 return f(w); 44548 w = g(w - S / _) 44549 } 44550 return f(w) 44551 }; 44552 return m.isStepper = !1, 44553 m 44554} 44555 , ZOe = function() { 44556 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {} 44557 , n = t.stiff 44558 , r = n === void 0 ? 100 : n 44559 , i = t.damping 44560 , o = i === void 0 ? 8 : i 44561 , a = t.dt 44562 , s = a === void 0 ? 17 : a 44563 , l = function(u, d, f) { 44564 var p = -(u - d) * r 44565 , g = f * o 44566 , m = f + (p - g) * s / 1e3 44567 , x = f * s / 1e3 + u; 44568 return Math.abs(x - d) < Hg && Math.abs(m) < Hg ? [d, 0] : [x, m] 44569 }; 44570 return l.isStepper = !0, 44571 l.dt = s, 44572 l 44573} 44574 , JOe = function() { 44575 for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) 44576 n[r] = arguments[r]; 44577 var i = n[0]; 44578 if (typeof i == "string") 44579 switch (i) { 44580 case "ease": 44581 case "ease-in-out": 44582 case "ease-out": 44583 case "ease-in": 44584 case "linear": 44585 return YM(i); 44586 case "spring": 44587 return ZOe(); 44588 default: 44589 if (i.split("(")[0] === "cubic-bezier") 44590 return YM(i) 44591 } 44592 return typeof i == "function" ? i : null 44593}; 44594function Vf(e) { 44595 "@babel/helpers - typeof"; 44596 return Vf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 44597 return typeof t 44598 } 44599 : function(t) { 44600 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 44601 } 44602 , 44603 Vf(e) 44604} 44605function XM(e) { 44606 return nAe(e) || tAe(e) || Jz(e) || eAe() 44607} 44608function eAe() { 44609 throw new TypeError(`Invalid attempt to spread non-iterable instance. 44610In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 44611} 44612function tAe(e) { 44613 if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) 44614 return Array.from(e) 44615} 44616function nAe(e) { 44617 if (Array.isArray(e)) 44618 return J1(e) 44619} 44620function QM(e, t) { 44621 var n = Object.keys(e); 44622 if (Object.getOwnPropertySymbols) { 44623 var r = Object.getOwnPropertySymbols(e); 44624 t && (r = r.filter(function(i) { 44625 return Object.getOwnPropertyDescriptor(e, i).enumerable 44626 })), 44627 n.push.apply(n, r) 44628 } 44629 return n 44630} 44631function hn(e) { 44632 for (var t = 1; t < arguments.length; t++) { 44633 var n = arguments[t] != null ? arguments[t] : {}; 44634 t % 2 ? QM(Object(n), !0).forEach(function(r) { 44635 Z1(e, r, n[r]) 44636 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QM(Object(n)).forEach(function(r) { 44637 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 44638 }) 44639 } 44640 return e 44641} 44642function Z1(e, t, n) { 44643 return t = rAe(t), 44644 t in e ? Object.defineProperty(e, t, { 44645 value: n, 44646 enumerable: !0, 44647 configurable: !0, 44648 writable: !0 44649 }) : e[t] = n, 44650 e 44651} 44652function rAe(e) { 44653 var t = iAe(e, "string"); 44654 return Vf(t) === "symbol" ? t : String(t) 44655} 44656function iAe(e, t) { 44657 if (Vf(e) !== "object" || e === null) 44658 return e; 44659 var n = e[Symbol.toPrimitive]; 44660 if (n !== void 0) { 44661 var r = n.call(e, t || "default"); 44662 if (Vf(r) !== "object") 44663 return r; 44664 throw new TypeError("@@toPrimitive must return a primitive value.") 44665 } 44666 return (t === "string" ? String : Number)(e) 44667} 44668function oAe(e, t) { 44669 return lAe(e) || sAe(e, t) || Jz(e, t) || aAe() 44670} 44671function aAe() { 44672 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 44673In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 44674} 44675function Jz(e, t) { 44676 if (e) { 44677 if (typeof e == "string") 44678 return J1(e, t); 44679 var n = Object.prototype.toString.call(e).slice(8, -1); 44680 if (n === "Object" && e.constructor && (n = e.constructor.name), 44681 n === "Map" || n === "Set") 44682 return Array.from(e); 44683 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 44684 return J1(e, t) 44685 } 44686} 44687function J1(e, t) { 44688 (t == null || t > e.length) && (t = e.length); 44689 for (var n = 0, r = new Array(t); n < t; n++) 44690 r[n] = e[n]; 44691 return r 44692} 44693function sAe(e, t) { 44694 var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; 44695 if (n != null) { 44696 var r, i, o, a, s = [], l = !0, c = !1; 44697 try { 44698 if (o = (n = n.call(e)).next, 44699 t !== 0) 44700 for (; !(l = (r = o.call(n)).done) && (s.push(r.value), 44701 s.length !== t); l = !0) 44702 ; 44703 } catch (u) { 44704 c = !0, 44705 i = u 44706 } finally { 44707 try { 44708 if (!l && n.return != null && (a = n.return(), 44709 Object(a) !== a)) 44710 return 44711 } finally { 44712 if (c) 44713 throw i 44714 } 44715 } 44716 return s 44717 } 44718} 44719function lAe(e) { 44720 if (Array.isArray(e)) 44721 return e 44722} 44723var qg = function(t, n, r) { 44724 return t + (n - t) * r 44725} 44726 , eS = function(t) { 44727 var n = t.from 44728 , r = t.to; 44729 return n !== r 44730} 44731 , cAe = function e(t, n, r) { 44732 var i = Ld(function(o, a) { 44733 if (eS(a)) { 44734 var s = t(a.from, a.to, a.velocity) 44735 , l = oAe(s, 2) 44736 , c = l[0] 44737 , u = l[1]; 44738 return hn(hn({}, a), {}, { 44739 from: c, 44740 velocity: u 44741 }) 44742 } 44743 return a 44744 }, n); 44745 return r < 1 ? Ld(function(o, a) { 44746 return eS(a) ? hn(hn({}, a), {}, { 44747 velocity: qg(a.velocity, i[o].velocity, r), 44748 from: qg(a.from, i[o].from, r) 44749 }) : a 44750 }, n) : e(t, i, r - 1) 44751}; 44752const uAe = function(e, t, n, r, i) { 44753 var o = BOe(e, t), a = o.reduce(function(x, v) { 44754 return hn(hn({}, x), {}, Z1({}, v, [e[v], t[v]])) 44755 }, {}), s = o.reduce(function(x, v) { 44756 return hn(hn({}, x), {}, Z1({}, v, { 44757 from: e[v], 44758 velocity: 0, 44759 to: t[v] 44760 })) 44761 }, {}), l = -1, c, u, d = function() { 44762 return null 44763 }, f = function() { 44764 return Ld(function(v, y) { 44765 return y.from 44766 }, s) 44767 }, p = function() { 44768 return !Object.values(s).filter(eS).length 44769 }, g = function(v) { 44770 c || (c = v); 44771 var y = v - c 44772 , w = y / n.dt; 44773 s = cAe(n, s, w), 44774 i(hn(hn(hn({}, e), t), f())), 44775 c = v, 44776 p() || (l = requestAnimationFrame(d)) 44777 }, m = function(v) { 44778 u || (u = v); 44779 var y = (v - u) / r 44780 , w = Ld(function(S, _) { 44781 return qg.apply(void 0, XM(_).concat([n(y)])) 44782 }, a); 44783 if (i(hn(hn(hn({}, e), t), w)), 44784 y < 1) 44785 l = requestAnimationFrame(d); 44786 else { 44787 var P = Ld(function(S, _) { 44788 return qg.apply(void 0, XM(_).concat([n(1)])) 44789 }, a); 44790 i(hn(hn(hn({}, e), t), P)) 44791 } 44792 }; 44793 return d = n.isStepper ? g : m, 44794 function() { 44795 return requestAnimationFrame(d), 44796 function() { 44797 cancelAnimationFrame(l) 44798 } 44799 } 44800}; 44801function Fc(e) { 44802 "@babel/helpers - typeof"; 44803 return Fc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 44804 return typeof t 44805 } 44806 : function(t) { 44807 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 44808 } 44809 , 44810 Fc(e) 44811} 44812var dAe = ["children", "begin", "duration", "attributeName", "easing", "isActive", "steps", "from", "to", "canBegin", "onAnimationEnd", "shouldReAnimate", "onAnimationReStart"]; 44813function fAe(e, t) { 44814 if (e == null) 44815 return {}; 44816 var n = hAe(e, t), r, i; 44817 if (Object.getOwnPropertySymbols) { 44818 var o = Object.getOwnPropertySymbols(e); 44819 for (i = 0; i < o.length; i++) 44820 r = o[i], 44821 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 44822 } 44823 return n 44824} 44825function hAe(e, t) { 44826 if (e == null) 44827 return {}; 44828 var n = {}, r = Object.keys(e), i, o; 44829 for (o = 0; o < r.length; o++) 44830 i = r[o], 44831 !(t.indexOf(i) >= 0) && (n[i] = e[i]); 44832 return n 44833} 44834function zx(e) { 44835 return yAe(e) || gAe(e) || mAe(e) || pAe() 44836} 44837function pAe() { 44838 throw new TypeError(`Invalid attempt to spread non-iterable instance. 44839In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 44840} 44841function mAe(e, t) { 44842 if (e) { 44843 if (typeof e == "string") 44844 return tS(e, t); 44845 var n = Object.prototype.toString.call(e).slice(8, -1); 44846 if (n === "Object" && e.constructor && (n = e.constructor.name), 44847 n === "Map" || n === "Set") 44848 return Array.from(e); 44849 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 44850 return tS(e, t) 44851 } 44852} 44853function gAe(e) { 44854 if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) 44855 return Array.from(e) 44856} 44857function yAe(e) { 44858 if (Array.isArray(e)) 44859 return tS(e) 44860} 44861function tS(e, t) { 44862 (t == null || t > e.length) && (t = e.length); 44863 for (var n = 0, r = new Array(t); n < t; n++) 44864 r[n] = e[n]; 44865 return r 44866} 44867function ZM(e, t) { 44868 var n = Object.keys(e); 44869 if (Object.getOwnPropertySymbols) { 44870 var r = Object.getOwnPropertySymbols(e); 44871 t && (r = r.filter(function(i) { 44872 return Object.getOwnPropertyDescriptor(e, i).enumerable 44873 })), 44874 n.push.apply(n, r) 44875 } 44876 return n 44877} 44878function Kr(e) { 44879 for (var t = 1; t < arguments.length; t++) { 44880 var n = arguments[t] != null ? arguments[t] : {}; 44881 t % 2 ? ZM(Object(n), !0).forEach(function(r) { 44882 hd(e, r, n[r]) 44883 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZM(Object(n)).forEach(function(r) { 44884 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 44885 }) 44886 } 44887 return e 44888} 44889function hd(e, t, n) { 44890 return t = eW(t), 44891 t in e ? Object.defineProperty(e, t, { 44892 value: n, 44893 enumerable: !0, 44894 configurable: !0, 44895 writable: !0 44896 }) : e[t] = n, 44897 e 44898} 44899function vAe(e, t) { 44900 if (!(e instanceof t)) 44901 throw new TypeError("Cannot call a class as a function") 44902} 44903function xAe(e, t) { 44904 for (var n = 0; n < t.length; n++) { 44905 var r = t[n]; 44906 r.enumerable = r.enumerable || !1, 44907 r.configurable = !0, 44908 "value"in r && (r.writable = !0), 44909 Object.defineProperty(e, eW(r.key), r) 44910 } 44911} 44912function bAe(e, t, n) { 44913 return t && xAe(e.prototype, t), 44914 Object.defineProperty(e, "prototype", { 44915 writable: !1 44916 }), 44917 e 44918} 44919function eW(e) { 44920 var t = wAe(e, "string"); 44921 return Fc(t) === "symbol" ? t : String(t) 44922} 44923function wAe(e, t) { 44924 if (Fc(e) !== "object" || e === null) 44925 return e; 44926 var n = e[Symbol.toPrimitive]; 44927 if (n !== void 0) { 44928 var r = n.call(e, t || "default"); 44929 if (Fc(r) !== "object") 44930 return r; 44931 throw new TypeError("@@toPrimitive must return a primitive value.") 44932 } 44933 return (t === "string" ? String : Number)(e) 44934} 44935function SAe(e, t) { 44936 if (typeof t != "function" && t !== null) 44937 throw new TypeError("Super expression must either be null or a function"); 44938 e.prototype = Object.create(t && t.prototype, { 44939 constructor: { 44940 value: e, 44941 writable: !0, 44942 configurable: !0 44943 } 44944 }), 44945 Object.defineProperty(e, "prototype", { 44946 writable: !1 44947 }), 44948 t && nS(e, t) 44949} 44950function nS(e, t) { 44951 return nS = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 44952 return r.__proto__ = i, 44953 r 44954 } 44955 , 44956 nS(e, t) 44957} 44958function PAe(e) { 44959 var t = _Ae(); 44960 return function() { 44961 var r = Kg(e), i; 44962 if (t) { 44963 var o = Kg(this).constructor; 44964 i = Reflect.construct(r, arguments, o) 44965 } else 44966 i = r.apply(this, arguments); 44967 return rS(this, i) 44968 } 44969} 44970function rS(e, t) { 44971 if (t && (Fc(t) === "object" || typeof t == "function")) 44972 return t; 44973 if (t !== void 0) 44974 throw new TypeError("Derived constructors may only return object or undefined"); 44975 return iS(e) 44976} 44977function iS(e) { 44978 if (e === void 0) 44979 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 44980 return e 44981} 44982function _Ae() { 44983 if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) 44984 return !1; 44985 if (typeof Proxy == "function") 44986 return !0; 44987 try { 44988 return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})), 44989 !0 44990 } catch { 44991 return !1 44992 } 44993} 44994function Kg(e) { 44995 return Kg = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 44996 return n.__proto__ || Object.getPrototypeOf(n) 44997 } 44998 , 44999 Kg(e) 45000} 45001var Ea = function(e) { 45002 SAe(n, e); 45003 var t = PAe(n); 45004 function n(r, i) { 45005 var o; 45006 vAe(this, n), 45007 o = t.call(this, r, i); 45008 var a = o.props 45009 , s = a.isActive 45010 , l = a.attributeName 45011 , c = a.from 45012 , u = a.to 45013 , d = a.steps 45014 , f = a.children 45015 , p = a.duration; 45016 if (o.handleStyleChange = o.handleStyleChange.bind(iS(o)), 45017 o.changeStyle = o.changeStyle.bind(iS(o)), 45018 !s || p <= 0) 45019 return o.state = { 45020 style: {} 45021 }, 45022 typeof f == "function" && (o.state = { 45023 style: u 45024 }), 45025 rS(o); 45026 if (d && d.length) 45027 o.state = { 45028 style: d[0].style 45029 }; 45030 else if (c) { 45031 if (typeof f == "function") 45032 return o.state = { 45033 style: c 45034 }, 45035 rS(o); 45036 o.state = { 45037 style: l ? hd({}, l, c) : c 45038 } 45039 } else 45040 o.state = { 45041 style: {} 45042 }; 45043 return o 45044 } 45045 return bAe(n, [{ 45046 key: "componentDidMount", 45047 value: function() { 45048 var i = this.props 45049 , o = i.isActive 45050 , a = i.canBegin; 45051 this.mounted = !0, 45052 !(!o || !a) && this.runAnimation(this.props) 45053 } 45054 }, { 45055 key: "componentDidUpdate", 45056 value: function(i) { 45057 var o = this.props 45058 , a = o.isActive 45059 , s = o.canBegin 45060 , l = o.attributeName 45061 , c = o.shouldReAnimate 45062 , u = o.to 45063 , d = o.from 45064 , f = this.state.style; 45065 if (s) { 45066 if (!a) { 45067 var p = { 45068 style: l ? hd({}, l, u) : u 45069 }; 45070 this.state && f && (l && f[l] !== u || !l && f !== u) && this.setState(p); 45071 return 45072 } 45073 if (!(jOe(i.to, u) && i.canBegin && i.isActive)) { 45074 var g = !i.canBegin || !i.isActive; 45075 this.manager && this.manager.stop(), 45076 this.stopJSAnimation && this.stopJSAnimation(); 45077 var m = g || c ? d : i.to; 45078 if (this.state && f) { 45079 var x = { 45080 style: l ? hd({}, l, m) : m 45081 }; 45082 (l && f[l] !== m || !l && f !== m) && this.setState(x) 45083 } 45084 this.runAnimation(Kr(Kr({}, this.props), {}, { 45085 from: m, 45086 begin: 0 45087 })) 45088 } 45089 } 45090 } 45091 }, { 45092 key: "componentWillUnmount", 45093 value: function() { 45094 this.mounted = !1; 45095 var i = this.props.onAnimationEnd; 45096 this.unSubscribe && this.unSubscribe(), 45097 this.manager && (this.manager.stop(), 45098 this.manager = null), 45099 this.stopJSAnimation && this.stopJSAnimation(), 45100 i && i() 45101 } 45102 }, { 45103 key: "handleStyleChange", 45104 value: function(i) { 45105 this.changeStyle(i) 45106 } 45107 }, { 45108 key: "changeStyle", 45109 value: function(i) { 45110 this.mounted && this.setState({ 45111 style: i 45112 }) 45113 } 45114 }, { 45115 key: "runJSAnimation", 45116 value: function(i) { 45117 var o = this 45118 , a = i.from 45119 , s = i.to 45120 , l = i.duration 45121 , c = i.easing 45122 , u = i.begin 45123 , d = i.onAnimationEnd 45124 , f = i.onAnimationStart 45125 , p = uAe(a, s, JOe(c), l, this.changeStyle) 45126 , g = function() { 45127 o.stopJSAnimation = p() 45128 }; 45129 this.manager.start([f, u, g, l, d]) 45130 } 45131 }, { 45132 key: "runStepAnimation", 45133 value: function(i) { 45134 var o = this 45135 , a = i.steps 45136 , s = i.begin 45137 , l = i.onAnimationStart 45138 , c = a[0] 45139 , u = c.style 45140 , d = c.duration 45141 , f = d === void 0 ? 0 : d 45142 , p = function(m, x, v) { 45143 if (v === 0) 45144 return m; 45145 var y = x.duration 45146 , w = x.easing 45147 , P = w === void 0 ? "ease" : w 45148 , S = x.style 45149 , _ = x.properties 45150 , T = x.onAnimationEnd 45151 , C = v > 0 ? a[v - 1] : x 45152 , O = _ || Object.keys(S); 45153 if (typeof P == "function" || P === "spring") 45154 return [].concat(zx(m), [o.runJSAnimation.bind(o, { 45155 from: C.style, 45156 to: S, 45157 duration: y, 45158 easing: P 45159 }), y]); 45160 var A = KM(O, y, P) 45161 , E = Kr(Kr(Kr({}, C.style), S), {}, { 45162 transition: A 45163 }); 45164 return [].concat(zx(m), [E, y, T]).filter(VOe) 45165 }; 45166 return this.manager.start([l].concat(zx(a.reduce(p, [u, Math.max(f, s)])), [i.onAnimationEnd])) 45167 } 45168 }, { 45169 key: "runAnimation", 45170 value: function(i) { 45171 this.manager || (this.manager = $Oe()); 45172 var o = i.begin 45173 , a = i.duration 45174 , s = i.attributeName 45175 , l = i.to 45176 , c = i.easing 45177 , u = i.onAnimationStart 45178 , d = i.onAnimationEnd 45179 , f = i.steps 45180 , p = i.children 45181 , g = this.manager; 45182 if (this.unSubscribe = g.subscribe(this.handleStyleChange), 45183 typeof c == "function" || typeof p == "function" || c === "spring") { 45184 this.runJSAnimation(i); 45185 return 45186 } 45187 if (f.length > 1) { 45188 this.runStepAnimation(i); 45189 return 45190 } 45191 var m = s ? hd({}, s, l) : l 45192 , x = KM(Object.keys(m), a, c); 45193 g.start([u, o, Kr(Kr({}, m), {}, { 45194 transition: x 45195 }), a, d]) 45196 } 45197 }, { 45198 key: "render", 45199 value: function() { 45200 var i = this.props 45201 , o = i.children; 45202 i.begin; 45203 var a = i.duration; 45204 i.attributeName, 45205 i.easing; 45206 var s = i.isActive; 45207 i.steps, 45208 i.from, 45209 i.to, 45210 i.canBegin, 45211 i.onAnimationEnd, 45212 i.shouldReAnimate, 45213 i.onAnimationReStart; 45214 var l = fAe(i, dAe) 45215 , c = b.Children.count(o) 45216 , u = this.state.style; 45217 if (typeof o == "function") 45218 return o(u); 45219 if (!s || c === 0 || a <= 0) 45220 return o; 45221 var d = function(p) { 45222 var g = p.props 45223 , m = g.style 45224 , x = m === void 0 ? {} : m 45225 , v = g.className 45226 , y = b.cloneElement(p, Kr(Kr({}, l), {}, { 45227 style: Kr(Kr({}, x), u), 45228 className: v 45229 })); 45230 return y 45231 }; 45232 return c === 1 ? d(b.Children.only(o)) : k.createElement("div", null, b.Children.map(o, function(f) { 45233 return d(f) 45234 })) 45235 } 45236 }]), 45237 n 45238}(b.PureComponent); 45239Ea.displayName = "Animate"; 45240Ea.defaultProps = { 45241 begin: 0, 45242 duration: 1e3, 45243 from: "", 45244 to: "", 45245 attributeName: "", 45246 easing: "ease", 45247 isActive: !0, 45248 canBegin: !0, 45249 steps: [], 45250 onAnimationEnd: function() {}, 45251 onAnimationStart: function() {} 45252}; 45253Ea.propTypes = { 45254 from: Ie.oneOfType([Ie.object, Ie.string]), 45255 to: Ie.oneOfType([Ie.object, Ie.string]), 45256 attributeName: Ie.string, 45257 duration: Ie.number, 45258 begin: Ie.number, 45259 easing: Ie.oneOfType([Ie.string, Ie.func]), 45260 steps: Ie.arrayOf(Ie.shape({ 45261 duration: Ie.number.isRequired, 45262 style: Ie.object.isRequired, 45263 easing: Ie.oneOfType([Ie.oneOf(["ease", "ease-in", "ease-out", "ease-in-out", "linear"]), Ie.func]), 45264 properties: Ie.arrayOf("string"), 45265 onAnimationEnd: Ie.func 45266 })), 45267 children: Ie.oneOfType([Ie.node, Ie.func]), 45268 isActive: Ie.bool, 45269 canBegin: Ie.bool, 45270 onAnimationEnd: Ie.func, 45271 shouldReAnimate: Ie.bool, 45272 onAnimationStart: Ie.func, 45273 onAnimationReStart: Ie.func 45274}; 45275Ie.object, 45276Ie.object, 45277Ie.object, 45278Ie.element; 45279Ie.object, 45280Ie.object, 45281Ie.object, 45282Ie.oneOfType([Ie.array, Ie.element]), 45283Ie.any; 45284function Uf(e) { 45285 "@babel/helpers - typeof"; 45286 return Uf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 45287 return typeof t 45288 } 45289 : function(t) { 45290 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 45291 } 45292 , 45293 Uf(e) 45294} 45295function Gg() { 45296 return Gg = Object.assign ? Object.assign.bind() : function(e) { 45297 for (var t = 1; t < arguments.length; t++) { 45298 var n = arguments[t]; 45299 for (var r in n) 45300 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 45301 } 45302 return e 45303 } 45304 , 45305 Gg.apply(this, arguments) 45306} 45307function TAe(e, t) { 45308 return EAe(e) || AAe(e, t) || OAe(e, t) || CAe() 45309} 45310function CAe() { 45311 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 45312In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 45313} 45314function OAe(e, t) { 45315 if (e) { 45316 if (typeof e == "string") 45317 return JM(e, t); 45318 var n = Object.prototype.toString.call(e).slice(8, -1); 45319 if (n === "Object" && e.constructor && (n = e.constructor.name), 45320 n === "Map" || n === "Set") 45321 return Array.from(e); 45322 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 45323 return JM(e, t) 45324 } 45325} 45326function JM(e, t) { 45327 (t == null || t > e.length) && (t = e.length); 45328 for (var n = 0, r = new Array(t); n < t; n++) 45329 r[n] = e[n]; 45330 return r 45331} 45332function AAe(e, t) { 45333 var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; 45334 if (n != null) { 45335 var r, i, o, a, s = [], l = !0, c = !1; 45336 try { 45337 if (o = (n = n.call(e)).next, 45338 t !== 0) 45339 for (; !(l = (r = o.call(n)).done) && (s.push(r.value), 45340 s.length !== t); l = !0) 45341 ; 45342 } catch (u) { 45343 c = !0, 45344 i = u 45345 } finally { 45346 try { 45347 if (!l && n.return != null && (a = n.return(), 45348 Object(a) !== a)) 45349 return 45350 } finally { 45351 if (c) 45352 throw i 45353 } 45354 } 45355 return s 45356 } 45357} 45358function EAe(e) { 45359 if (Array.isArray(e)) 45360 return e 45361} 45362function ek(e, t) { 45363 var n = Object.keys(e); 45364 if (Object.getOwnPropertySymbols) { 45365 var r = Object.getOwnPropertySymbols(e); 45366 t && (r = r.filter(function(i) { 45367 return Object.getOwnPropertyDescriptor(e, i).enumerable 45368 })), 45369 n.push.apply(n, r) 45370 } 45371 return n 45372} 45373function tk(e) { 45374 for (var t = 1; t < arguments.length; t++) { 45375 var n = arguments[t] != null ? arguments[t] : {}; 45376 t % 2 ? ek(Object(n), !0).forEach(function(r) { 45377 jAe(e, r, n[r]) 45378 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ek(Object(n)).forEach(function(r) { 45379 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 45380 }) 45381 } 45382 return e 45383} 45384function jAe(e, t, n) { 45385 return t = NAe(t), 45386 t in e ? Object.defineProperty(e, t, { 45387 value: n, 45388 enumerable: !0, 45389 configurable: !0, 45390 writable: !0 45391 }) : e[t] = n, 45392 e 45393} 45394function NAe(e) { 45395 var t = MAe(e, "string"); 45396 return Uf(t) == "symbol" ? t : t + "" 45397} 45398function MAe(e, t) { 45399 if (Uf(e) != "object" || !e) 45400 return e; 45401 var n = e[Symbol.toPrimitive]; 45402 if (n !== void 0) { 45403 var r = n.call(e, t || "default"); 45404 if (Uf(r) != "object") 45405 return r; 45406 throw new TypeError("@@toPrimitive must return a primitive value.") 45407 } 45408 return (t === "string" ? String : Number)(e) 45409} 45410var nk = function(t, n, r, i, o) { 45411 var a = Math.min(Math.abs(r) / 2, Math.abs(i) / 2), s = i >= 0 ? 1 : -1, l = r >= 0 ? 1 : -1, c = i >= 0 && r >= 0 || i < 0 && r < 0 ? 1 : 0, u; 45412 if (a > 0 && o instanceof Array) { 45413 for (var d = [0, 0, 0, 0], f = 0, p = 4; f < p; f++) 45414 d[f] = o[f] > a ? a : o[f]; 45415 u = "M".concat(t, ",").concat(n + s * d[0]), 45416 d[0] > 0 && (u += "A ".concat(d[0], ",").concat(d[0], ",0,0,").concat(c, ",").concat(t + l * d[0], ",").concat(n)), 45417 u += "L ".concat(t + r - l * d[1], ",").concat(n), 45418 d[1] > 0 && (u += "A ".concat(d[1], ",").concat(d[1], ",0,0,").concat(c, `, 45419 `).concat(t + r, ",").concat(n + s * d[1])), 45420 u += "L ".concat(t + r, ",").concat(n + i - s * d[2]), 45421 d[2] > 0 && (u += "A ".concat(d[2], ",").concat(d[2], ",0,0,").concat(c, `, 45422 `).concat(t + r - l * d[2], ",").concat(n + i)), 45423 u += "L ".concat(t + l * d[3], ",").concat(n + i), 45424 d[3] > 0 && (u += "A ".concat(d[3], ",").concat(d[3], ",0,0,").concat(c, `, 45425 `).concat(t, ",").concat(n + i - s * d[3])), 45426 u += "Z" 45427 } else if (a > 0 && o === +o && o > 0) { 45428 var g = Math.min(a, o); 45429 u = "M ".concat(t, ",").concat(n + s * g, ` 45430 A `).concat(g, ",").concat(g, ",0,0,").concat(c, ",").concat(t + l * g, ",").concat(n, ` 45431 L `).concat(t + r - l * g, ",").concat(n, ` 45432 A `).concat(g, ",").concat(g, ",0,0,").concat(c, ",").concat(t + r, ",").concat(n + s * g, ` 45433 L `).concat(t + r, ",").concat(n + i - s * g, ` 45434 A `).concat(g, ",").concat(g, ",0,0,").concat(c, ",").concat(t + r - l * g, ",").concat(n + i, ` 45435 L `).concat(t + l * g, ",").concat(n + i, ` 45436 A `).concat(g, ",").concat(g, ",0,0,").concat(c, ",").concat(t, ",").concat(n + i - s * g, " Z") 45437 } else 45438 u = "M ".concat(t, ",").concat(n, " h ").concat(r, " v ").concat(i, " h ").concat(-r, " Z"); 45439 return u 45440} 45441 , kAe = function(t, n) { 45442 if (!t || !n) 45443 return !1; 45444 var r = t.x 45445 , i = t.y 45446 , o = n.x 45447 , a = n.y 45448 , s = n.width 45449 , l = n.height; 45450 if (Math.abs(s) > 0 && Math.abs(l) > 0) { 45451 var c = Math.min(o, o + s) 45452 , u = Math.max(o, o + s) 45453 , d = Math.min(a, a + l) 45454 , f = Math.max(a, a + l); 45455 return r >= c && r <= u && i >= d && i <= f 45456 } 45457 return !1 45458} 45459 , RAe = { 45460 x: 0, 45461 y: 0, 45462 width: 0, 45463 height: 0, 45464 radius: 0, 45465 isAnimationActive: !1, 45466 isUpdateAnimationActive: !1, 45467 animationBegin: 0, 45468 animationDuration: 1500, 45469 animationEasing: "ease" 45470} 45471 , cC = function(t) { 45472 var n = tk(tk({}, RAe), t) 45473 , r = b.useRef() 45474 , i = b.useState(-1) 45475 , o = TAe(i, 2) 45476 , a = o[0] 45477 , s = o[1]; 45478 b.useEffect(function() { 45479 if (r.current && r.current.getTotalLength) 45480 try { 45481 var P = r.current.getTotalLength(); 45482 P && s(P) 45483 } catch {} 45484 }, []); 45485 var l = n.x 45486 , c = n.y 45487 , u = n.width 45488 , d = n.height 45489 , f = n.radius 45490 , p = n.className 45491 , g = n.animationEasing 45492 , m = n.animationDuration 45493 , x = n.animationBegin 45494 , v = n.isAnimationActive 45495 , y = n.isUpdateAnimationActive; 45496 if (l !== +l || c !== +c || u !== +u || d !== +d || u === 0 || d === 0) 45497 return null; 45498 var w = Ge("recharts-rectangle", p); 45499 return y ? k.createElement(Ea, { 45500 canBegin: a > 0, 45501 from: { 45502 width: u, 45503 height: d, 45504 x: l, 45505 y: c 45506 }, 45507 to: { 45508 width: u, 45509 height: d, 45510 x: l, 45511 y: c 45512 }, 45513 duration: m, 45514 animationEasing: g, 45515 isActive: y 45516 }, function(P) { 45517 var S = P.width 45518 , _ = P.height 45519 , T = P.x 45520 , C = P.y; 45521 return k.createElement(Ea, { 45522 canBegin: a > 0, 45523 from: "0px ".concat(a === -1 ? 1 : a, "px"), 45524 to: "".concat(a, "px 0px"), 45525 attributeName: "strokeDasharray", 45526 begin: x, 45527 duration: m, 45528 isActive: v, 45529 easing: g 45530 }, k.createElement("path", Gg({}, Je(n, !0), { 45531 className: w, 45532 d: nk(T, C, S, _, f), 45533 ref: r 45534 }))) 45535 }) : k.createElement("path", Gg({}, Je(n, !0), { 45536 className: w, 45537 d: nk(l, c, u, d, f) 45538 })) 45539}; 45540function oS() { 45541 return oS = Object.assign ? Object.assign.bind() : function(e) { 45542 for (var t = 1; t < arguments.length; t++) { 45543 var n = arguments[t]; 45544 for (var r in n) 45545 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 45546 } 45547 return e 45548 } 45549 , 45550 oS.apply(this, arguments) 45551} 45552var tW = function(t) { 45553 var n = t.cx 45554 , r = t.cy 45555 , i = t.r 45556 , o = t.className 45557 , a = Ge("recharts-dot", o); 45558 return n === +n && r === +r && i === +i ? k.createElement("circle", oS({}, Je(t, !1), hg(t), { 45559 className: a, 45560 cx: n, 45561 cy: r, 45562 r: i 45563 })) : null 45564}; 45565function zf(e) { 45566 "@babel/helpers - typeof"; 45567 return zf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 45568 return typeof t 45569 } 45570 : function(t) { 45571 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 45572 } 45573 , 45574 zf(e) 45575} 45576var DAe = ["x", "y", "top", "left", "width", "height", "className"]; 45577function aS() { 45578 return aS = Object.assign ? Object.assign.bind() : function(e) { 45579 for (var t = 1; t < arguments.length; t++) { 45580 var n = arguments[t]; 45581 for (var r in n) 45582 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 45583 } 45584 return e 45585 } 45586 , 45587 aS.apply(this, arguments) 45588} 45589function rk(e, t) { 45590 var n = Object.keys(e); 45591 if (Object.getOwnPropertySymbols) { 45592 var r = Object.getOwnPropertySymbols(e); 45593 t && (r = r.filter(function(i) { 45594 return Object.getOwnPropertyDescriptor(e, i).enumerable 45595 })), 45596 n.push.apply(n, r) 45597 } 45598 return n 45599} 45600function IAe(e) { 45601 for (var t = 1; t < arguments.length; t++) { 45602 var n = arguments[t] != null ? arguments[t] : {}; 45603 t % 2 ? rk(Object(n), !0).forEach(function(r) { 45604 $Ae(e, r, n[r]) 45605 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rk(Object(n)).forEach(function(r) { 45606 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 45607 }) 45608 } 45609 return e 45610} 45611function $Ae(e, t, n) { 45612 return t = LAe(t), 45613 t in e ? Object.defineProperty(e, t, { 45614 value: n, 45615 enumerable: !0, 45616 configurable: !0, 45617 writable: !0 45618 }) : e[t] = n, 45619 e 45620} 45621function LAe(e) { 45622 var t = FAe(e, "string"); 45623 return zf(t) == "symbol" ? t : t + "" 45624} 45625function FAe(e, t) { 45626 if (zf(e) != "object" || !e) 45627 return e; 45628 var n = e[Symbol.toPrimitive]; 45629 if (n !== void 0) { 45630 var r = n.call(e, t || "default"); 45631 if (zf(r) != "object") 45632 return r; 45633 throw new TypeError("@@toPrimitive must return a primitive value.") 45634 } 45635 return (t === "string" ? String : Number)(e) 45636} 45637function BAe(e, t) { 45638 if (e == null) 45639 return {}; 45640 var n = VAe(e, t), r, i; 45641 if (Object.getOwnPropertySymbols) { 45642 var o = Object.getOwnPropertySymbols(e); 45643 for (i = 0; i < o.length; i++) 45644 r = o[i], 45645 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 45646 } 45647 return n 45648} 45649function VAe(e, t) { 45650 if (e == null) 45651 return {}; 45652 var n = {}; 45653 for (var r in e) 45654 if (Object.prototype.hasOwnProperty.call(e, r)) { 45655 if (t.indexOf(r) >= 0) 45656 continue; 45657 n[r] = e[r] 45658 } 45659 return n 45660} 45661var UAe = function(t, n, r, i, o, a) { 45662 return "M".concat(t, ",").concat(o, "v").concat(i, "M").concat(a, ",").concat(n, "h").concat(r) 45663} 45664 , zAe = function(t) { 45665 var n = t.x 45666 , r = n === void 0 ? 0 : n 45667 , i = t.y 45668 , o = i === void 0 ? 0 : i 45669 , a = t.top 45670 , s = a === void 0 ? 0 : a 45671 , l = t.left 45672 , c = l === void 0 ? 0 : l 45673 , u = t.width 45674 , d = u === void 0 ? 0 : u 45675 , f = t.height 45676 , p = f === void 0 ? 0 : f 45677 , g = t.className 45678 , m = BAe(t, DAe) 45679 , x = IAe({ 45680 x: r, 45681 y: o, 45682 top: s, 45683 left: c, 45684 width: d, 45685 height: p 45686 }, m); 45687 return !le(r) || !le(o) || !le(d) || !le(p) || !le(s) || !le(c) ? null : k.createElement("path", aS({}, Je(x, !0), { 45688 className: Ge("recharts-cross", g), 45689 d: UAe(r, o, d, p, s, c) 45690 })) 45691} 45692 , WAe = m6 45693 , HAe = WAe(Object.getPrototypeOf, Object) 45694 , qAe = HAe 45695 , KAe = Do 45696 , GAe = qAe 45697 , YAe = Io 45698 , XAe = "[object Object]" 45699 , QAe = Function.prototype 45700 , ZAe = Object.prototype 45701 , nW = QAe.toString 45702 , JAe = ZAe.hasOwnProperty 45703 , eEe = nW.call(Object); 45704function tEe(e) { 45705 if (!YAe(e) || KAe(e) != XAe) 45706 return !1; 45707 var t = GAe(e); 45708 if (t === null) 45709 return !0; 45710 var n = JAe.call(t, "constructor") && t.constructor; 45711 return typeof n == "function" && n instanceof n && nW.call(n) == eEe 45712} 45713var nEe = tEe; 45714const rEe = lt(nEe); 45715var iEe = Do 45716 , oEe = Io 45717 , aEe = "[object Boolean]"; 45718function sEe(e) { 45719 return e === !0 || e === !1 || oEe(e) && iEe(e) == aEe 45720} 45721var lEe = sEe; 45722const cEe = lt(lEe); 45723function Wf(e) { 45724 "@babel/helpers - typeof"; 45725 return Wf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 45726 return typeof t 45727 } 45728 : function(t) { 45729 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 45730 } 45731 , 45732 Wf(e) 45733} 45734function Yg() { 45735 return Yg = Object.assign ? Object.assign.bind() : function(e) { 45736 for (var t = 1; t < arguments.length; t++) { 45737 var n = arguments[t]; 45738 for (var r in n) 45739 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 45740 } 45741 return e 45742 } 45743 , 45744 Yg.apply(this, arguments) 45745} 45746function uEe(e, t) { 45747 return pEe(e) || hEe(e, t) || fEe(e, t) || dEe() 45748} 45749function dEe() { 45750 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 45751In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 45752} 45753function fEe(e, t) { 45754 if (e) { 45755 if (typeof e == "string") 45756 return ik(e, t); 45757 var n = Object.prototype.toString.call(e).slice(8, -1); 45758 if (n === "Object" && e.constructor && (n = e.constructor.name), 45759 n === "Map" || n === "Set") 45760 return Array.from(e); 45761 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 45762 return ik(e, t) 45763 } 45764} 45765function ik(e, t) { 45766 (t == null || t > e.length) && (t = e.length); 45767 for (var n = 0, r = new Array(t); n < t; n++) 45768 r[n] = e[n]; 45769 return r 45770} 45771function hEe(e, t) { 45772 var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; 45773 if (n != null) { 45774 var r, i, o, a, s = [], l = !0, c = !1; 45775 try { 45776 if (o = (n = n.call(e)).next, 45777 t !== 0) 45778 for (; !(l = (r = o.call(n)).done) && (s.push(r.value), 45779 s.length !== t); l = !0) 45780 ; 45781 } catch (u) { 45782 c = !0, 45783 i = u 45784 } finally { 45785 try { 45786 if (!l && n.return != null && (a = n.return(), 45787 Object(a) !== a)) 45788 return 45789 } finally { 45790 if (c) 45791 throw i 45792 } 45793 } 45794 return s 45795 } 45796} 45797function pEe(e) { 45798 if (Array.isArray(e)) 45799 return e 45800} 45801function ok(e, t) { 45802 var n = Object.keys(e); 45803 if (Object.getOwnPropertySymbols) { 45804 var r = Object.getOwnPropertySymbols(e); 45805 t && (r = r.filter(function(i) { 45806 return Object.getOwnPropertyDescriptor(e, i).enumerable 45807 })), 45808 n.push.apply(n, r) 45809 } 45810 return n 45811} 45812function ak(e) { 45813 for (var t = 1; t < arguments.length; t++) { 45814 var n = arguments[t] != null ? arguments[t] : {}; 45815 t % 2 ? ok(Object(n), !0).forEach(function(r) { 45816 mEe(e, r, n[r]) 45817 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ok(Object(n)).forEach(function(r) { 45818 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 45819 }) 45820 } 45821 return e 45822} 45823function mEe(e, t, n) { 45824 return t = gEe(t), 45825 t in e ? Object.defineProperty(e, t, { 45826 value: n, 45827 enumerable: !0, 45828 configurable: !0, 45829 writable: !0 45830 }) : e[t] = n, 45831 e 45832} 45833function gEe(e) { 45834 var t = yEe(e, "string"); 45835 return Wf(t) == "symbol" ? t : t + "" 45836} 45837function yEe(e, t) { 45838 if (Wf(e) != "object" || !e) 45839 return e; 45840 var n = e[Symbol.toPrimitive]; 45841 if (n !== void 0) { 45842 var r = n.call(e, t || "default"); 45843 if (Wf(r) != "object") 45844 return r; 45845 throw new TypeError("@@toPrimitive must return a primitive value.") 45846 } 45847 return (t === "string" ? String : Number)(e) 45848} 45849var sk = function(t, n, r, i, o) { 45850 var a = r - i, s; 45851 return s = "M ".concat(t, ",").concat(n), 45852 s += "L ".concat(t + r, ",").concat(n), 45853 s += "L ".concat(t + r - a / 2, ",").concat(n + o), 45854 s += "L ".concat(t + r - a / 2 - i, ",").concat(n + o), 45855 s += "L ".concat(t, ",").concat(n, " Z"), 45856 s 45857} 45858 , vEe = { 45859 x: 0, 45860 y: 0, 45861 upperWidth: 0, 45862 lowerWidth: 0, 45863 height: 0, 45864 isUpdateAnimationActive: !1, 45865 animationBegin: 0, 45866 animationDuration: 1500, 45867 animationEasing: "ease" 45868} 45869 , xEe = function(t) { 45870 var n = ak(ak({}, vEe), t) 45871 , r = b.useRef() 45872 , i = b.useState(-1) 45873 , o = uEe(i, 2) 45874 , a = o[0] 45875 , s = o[1]; 45876 b.useEffect(function() { 45877 if (r.current && r.current.getTotalLength) 45878 try { 45879 var w = r.current.getTotalLength(); 45880 w && s(w) 45881 } catch {} 45882 }, []); 45883 var l = n.x 45884 , c = n.y 45885 , u = n.upperWidth 45886 , d = n.lowerWidth 45887 , f = n.height 45888 , p = n.className 45889 , g = n.animationEasing 45890 , m = n.animationDuration 45891 , x = n.animationBegin 45892 , v = n.isUpdateAnimationActive; 45893 if (l !== +l || c !== +c || u !== +u || d !== +d || f !== +f || u === 0 && d === 0 || f === 0) 45894 return null; 45895 var y = Ge("recharts-trapezoid", p); 45896 return v ? k.createElement(Ea, { 45897 canBegin: a > 0, 45898 from: { 45899 upperWidth: 0, 45900 lowerWidth: 0, 45901 height: f, 45902 x: l, 45903 y: c 45904 }, 45905 to: { 45906 upperWidth: u, 45907 lowerWidth: d, 45908 height: f, 45909 x: l, 45910 y: c 45911 }, 45912 duration: m, 45913 animationEasing: g, 45914 isActive: v 45915 }, function(w) { 45916 var P = w.upperWidth 45917 , S = w.lowerWidth 45918 , _ = w.height 45919 , T = w.x 45920 , C = w.y; 45921 return k.createElement(Ea, { 45922 canBegin: a > 0, 45923 from: "0px ".concat(a === -1 ? 1 : a, "px"), 45924 to: "".concat(a, "px 0px"), 45925 attributeName: "strokeDasharray", 45926 begin: x, 45927 duration: m, 45928 easing: g 45929 }, k.createElement("path", Yg({}, Je(n, !0), { 45930 className: y, 45931 d: sk(T, C, P, S, _), 45932 ref: r 45933 }))) 45934 }) : k.createElement("g", null, k.createElement("path", Yg({}, Je(n, !0), { 45935 className: y, 45936 d: sk(l, c, u, d, f) 45937 }))) 45938} 45939 , bEe = ["option", "shapeType", "propTransformer", "activeClassName", "isActive"]; 45940function Hf(e) { 45941 "@babel/helpers - typeof"; 45942 return Hf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 45943 return typeof t 45944 } 45945 : function(t) { 45946 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 45947 } 45948 , 45949 Hf(e) 45950} 45951function wEe(e, t) { 45952 if (e == null) 45953 return {}; 45954 var n = SEe(e, t), r, i; 45955 if (Object.getOwnPropertySymbols) { 45956 var o = Object.getOwnPropertySymbols(e); 45957 for (i = 0; i < o.length; i++) 45958 r = o[i], 45959 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 45960 } 45961 return n 45962} 45963function SEe(e, t) { 45964 if (e == null) 45965 return {}; 45966 var n = {}; 45967 for (var r in e) 45968 if (Object.prototype.hasOwnProperty.call(e, r)) { 45969 if (t.indexOf(r) >= 0) 45970 continue; 45971 n[r] = e[r] 45972 } 45973 return n 45974} 45975function lk(e, t) { 45976 var n = Object.keys(e); 45977 if (Object.getOwnPropertySymbols) { 45978 var r = Object.getOwnPropertySymbols(e); 45979 t && (r = r.filter(function(i) { 45980 return Object.getOwnPropertyDescriptor(e, i).enumerable 45981 })), 45982 n.push.apply(n, r) 45983 } 45984 return n 45985} 45986function Xg(e) { 45987 for (var t = 1; t < arguments.length; t++) { 45988 var n = arguments[t] != null ? arguments[t] : {}; 45989 t % 2 ? lk(Object(n), !0).forEach(function(r) { 45990 PEe(e, r, n[r]) 45991 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lk(Object(n)).forEach(function(r) { 45992 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 45993 }) 45994 } 45995 return e 45996} 45997function PEe(e, t, n) { 45998 return t = _Ee(t), 45999 t in e ? Object.defineProperty(e, t, { 46000 value: n, 46001 enumerable: !0, 46002 configurable: !0, 46003 writable: !0 46004 }) : e[t] = n, 46005 e 46006} 46007function _Ee(e) { 46008 var t = TEe(e, "string"); 46009 return Hf(t) == "symbol" ? t : t + "" 46010} 46011function TEe(e, t) { 46012 if (Hf(e) != "object" || !e) 46013 return e; 46014 var n = e[Symbol.toPrimitive]; 46015 if (n !== void 0) { 46016 var r = n.call(e, t || "default"); 46017 if (Hf(r) != "object") 46018 return r; 46019 throw new TypeError("@@toPrimitive must return a primitive value.") 46020 } 46021 return (t === "string" ? String : Number)(e) 46022} 46023function CEe(e, t) { 46024 return Xg(Xg({}, t), e) 46025} 46026function OEe(e, t) { 46027 return e === "symbols" 46028} 46029function ck(e) { 46030 var t = e.shapeType 46031 , n = e.elementProps; 46032 switch (t) { 46033 case "rectangle": 46034 return k.createElement(cC, n); 46035 case "trapezoid": 46036 return k.createElement(xEe, n); 46037 case "sector": 46038 return k.createElement(zz, n); 46039 case "symbols": 46040 if (OEe(t)) 46041 return k.createElement(CT, n); 46042 break; 46043 default: 46044 return null 46045 } 46046} 46047function AEe(e) { 46048 return b.isValidElement(e) ? e.props : e 46049} 46050function EEe(e) { 46051 var t = e.option, n = e.shapeType, r = e.propTransformer, i = r === void 0 ? CEe : r, o = e.activeClassName, a = o === void 0 ? "recharts-active-shape" : o, s = e.isActive, l = wEe(e, bEe), c; 46052 if (b.isValidElement(t)) 46053 c = b.cloneElement(t, Xg(Xg({}, l), AEe(t))); 46054 else if (qe(t)) 46055 c = t(l); 46056 else if (rEe(t) && !cEe(t)) { 46057 var u = i(t, l); 46058 c = k.createElement(ck, { 46059 shapeType: n, 46060 elementProps: u 46061 }) 46062 } else { 46063 var d = l; 46064 c = k.createElement(ck, { 46065 shapeType: n, 46066 elementProps: d 46067 }) 46068 } 46069 return s ? k.createElement(ln, { 46070 className: a 46071 }, c) : c 46072} 46073function i0(e, t) { 46074 return t != null && "trapezoids"in e.props 46075} 46076function o0(e, t) { 46077 return t != null && "sectors"in e.props 46078} 46079function qf(e, t) { 46080 return t != null && "points"in e.props 46081} 46082function jEe(e, t) { 46083 var n, r, i = e.x === (t == null || (n = t.labelViewBox) === null || n === void 0 ? void 0 : n.x) || e.x === t.x, o = e.y === (t == null || (r = t.labelViewBox) === null || r === void 0 ? void 0 : r.y) || e.y === t.y; 46084 return i && o 46085} 46086function NEe(e, t) { 46087 var n = e.endAngle === t.endAngle 46088 , r = e.startAngle === t.startAngle; 46089 return n && r 46090} 46091function MEe(e, t) { 46092 var n = e.x === t.x 46093 , r = e.y === t.y 46094 , i = e.z === t.z; 46095 return n && r && i 46096} 46097function kEe(e, t) { 46098 var n; 46099 return i0(e, t) ? n = jEe : o0(e, t) ? n = NEe : qf(e, t) && (n = MEe), 46100 n 46101} 46102function REe(e, t) { 46103 var n; 46104 return i0(e, t) ? n = "trapezoids" : o0(e, t) ? n = "sectors" : qf(e, t) && (n = "points"), 46105 n 46106} 46107function DEe(e, t) { 46108 if (i0(e, t)) { 46109 var n; 46110 return (n = t.tooltipPayload) === null || n === void 0 || (n = n[0]) === null || n === void 0 || (n = n.payload) === null || n === void 0 ? void 0 : n.payload 46111 } 46112 if (o0(e, t)) { 46113 var r; 46114 return (r = t.tooltipPayload) === null || r === void 0 || (r = r[0]) === null || r === void 0 || (r = r.payload) === null || r === void 0 ? void 0 : r.payload 46115 } 46116 return qf(e, t) ? t.payload : {} 46117} 46118function IEe(e) { 46119 var t = e.activeTooltipItem 46120 , n = e.graphicalItem 46121 , r = e.itemData 46122 , i = REe(n, t) 46123 , o = DEe(n, t) 46124 , a = r.filter(function(l, c) { 46125 var u = oC(o, l) 46126 , d = n.props[i].filter(function(g) { 46127 var m = kEe(n, t); 46128 return m(g, t) 46129 }) 46130 , f = n.props[i].indexOf(d[d.length - 1]) 46131 , p = c === f; 46132 return u && p 46133 }) 46134 , s = r.indexOf(a[a.length - 1]); 46135 return s 46136}
46137var $Ee = Math.ceil 46138 , LEe = Math.max; 46139function FEe(e, t, n, r) { 46140 for (var i = -1, o = LEe($Ee((t - e) / (n || 1)), 0), a = Array(o); o--; ) 46141 a[r ? o : ++i] = e, 46142 e += n; 46143 return a 46144} 46145var BEe = FEe 46146 , VEe = k6 46147 , uk = 1 / 0 46148 , UEe = 17976931348623157e292; 46149function zEe(e) { 46150 if (!e) 46151 return e === 0 ? e : 0; 46152 if (e = VEe(e), 46153 e === uk || e === -uk) { 46154 var t = e < 0 ? -1 : 1; 46155 return t * UEe 46156 } 46157 return e === e ? e : 0 46158} 46159var WEe = zEe 46160 , HEe = BEe 46161 , qEe = qv 46162 , Wx = WEe; 46163function KEe(e) { 46164 return function(t, n, r) { 46165 return r && typeof r != "number" && qEe(t, n, r) && (n = r = void 0), 46166 t = Wx(t), 46167 n === void 0 ? (n = t, 46168 t = 0) : n = Wx(n), 46169 r = r === void 0 ? t < n ? 1 : -1 : Wx(r), 46170 HEe(t, n, r, e) 46171 } 46172} 46173var GEe = KEe 46174 , YEe = GEe 46175 , XEe = YEe() 46176 , QEe = XEe; 46177const Qg = lt(QEe); 46178function Kf(e) { 46179 "@babel/helpers - typeof"; 46180 return Kf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 46181 return typeof t 46182 } 46183 : function(t) { 46184 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 46185 } 46186 , 46187 Kf(e) 46188} 46189function dk(e, t) { 46190 var n = Object.keys(e); 46191 if (Object.getOwnPropertySymbols) { 46192 var r = Object.getOwnPropertySymbols(e); 46193 t && (r = r.filter(function(i) { 46194 return Object.getOwnPropertyDescriptor(e, i).enumerable 46195 })), 46196 n.push.apply(n, r) 46197 } 46198 return n 46199} 46200function fk(e) { 46201 for (var t = 1; t < arguments.length; t++) { 46202 var n = arguments[t] != null ? arguments[t] : {}; 46203 t % 2 ? dk(Object(n), !0).forEach(function(r) { 46204 rW(e, r, n[r]) 46205 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dk(Object(n)).forEach(function(r) { 46206 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 46207 }) 46208 } 46209 return e 46210} 46211function rW(e, t, n) { 46212 return t = ZEe(t), 46213 t in e ? Object.defineProperty(e, t, { 46214 value: n, 46215 enumerable: !0, 46216 configurable: !0, 46217 writable: !0 46218 }) : e[t] = n, 46219 e 46220} 46221function ZEe(e) { 46222 var t = JEe(e, "string"); 46223 return Kf(t) == "symbol" ? t : t + "" 46224} 46225function JEe(e, t) { 46226 if (Kf(e) != "object" || !e) 46227 return e; 46228 var n = e[Symbol.toPrimitive]; 46229 if (n !== void 0) { 46230 var r = n.call(e, t || "default"); 46231 if (Kf(r) != "object") 46232 return r; 46233 throw new TypeError("@@toPrimitive must return a primitive value.") 46234 } 46235 return (t === "string" ? String : Number)(e) 46236} 46237var eje = ["Webkit", "Moz", "O", "ms"] 46238 , tje = function(t, n) { 46239 var r = t.replace(/(\w)/, function(o) { 46240 return o.toUpperCase() 46241 }) 46242 , i = eje.reduce(function(o, a) { 46243 return fk(fk({}, o), {}, rW({}, a + r, n)) 46244 }, {}); 46245 return i[t] = n, 46246 i 46247}; 46248function Bc(e) { 46249 "@babel/helpers - typeof"; 46250 return Bc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 46251 return typeof t 46252 } 46253 : function(t) { 46254 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 46255 } 46256 , 46257 Bc(e) 46258} 46259function Zg() { 46260 return Zg = Object.assign ? Object.assign.bind() : function(e) { 46261 for (var t = 1; t < arguments.length; t++) { 46262 var n = arguments[t]; 46263 for (var r in n) 46264 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 46265 } 46266 return e 46267 } 46268 , 46269 Zg.apply(this, arguments) 46270} 46271function hk(e, t) { 46272 var n = Object.keys(e); 46273 if (Object.getOwnPropertySymbols) { 46274 var r = Object.getOwnPropertySymbols(e); 46275 t && (r = r.filter(function(i) { 46276 return Object.getOwnPropertyDescriptor(e, i).enumerable 46277 })), 46278 n.push.apply(n, r) 46279 } 46280 return n 46281} 46282function Hx(e) { 46283 for (var t = 1; t < arguments.length; t++) { 46284 var n = arguments[t] != null ? arguments[t] : {};
vendor: 17,795 bytes, lines 46285-46831
46285 t % 2 ? hk(Object(n), !0).forEach(function(r) { 46286 rr(e, r, n[r]) 46287 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hk(Object(n)).forEach(function(r) { 46288 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 46289 }) 46290 } 46291 return e 46292} 46293function nje(e, t) { 46294 if (!(e instanceof t)) 46295 throw new TypeError("Cannot call a class as a function") 46296} 46297function pk(e, t) { 46298 for (var n = 0; n < t.length; n++) { 46299 var r = t[n]; 46300 r.enumerable = r.enumerable || !1, 46301 r.configurable = !0, 46302 "value"in r && (r.writable = !0), 46303 Object.defineProperty(e, oW(r.key), r) 46304 } 46305} 46306function rje(e, t, n) { 46307 return t && pk(e.prototype, t), 46308 n && pk(e, n), 46309 Object.defineProperty(e, "prototype", { 46310 writable: !1 46311 }), 46312 e 46313} 46314function ije(e, t, n) { 46315 return t = Jg(t), 46316 oje(e, iW() ? Reflect.construct(t, n || [], Jg(e).constructor) : t.apply(e, n)) 46317} 46318function oje(e, t) { 46319 if (t && (Bc(t) === "object" || typeof t == "function")) 46320 return t; 46321 if (t !== void 0) 46322 throw new TypeError("Derived constructors may only return object or undefined"); 46323 return aje(e) 46324} 46325function aje(e) { 46326 if (e === void 0) 46327 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 46328 return e 46329} 46330function iW() { 46331 try { 46332 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 46333 } catch {} 46334 return (iW = function() { 46335 return !!e 46336 } 46337 )() 46338} 46339function Jg(e) { 46340 return Jg = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 46341 return n.__proto__ || Object.getPrototypeOf(n) 46342 } 46343 , 46344 Jg(e) 46345} 46346function sje(e, t) { 46347 if (typeof t != "function" && t !== null) 46348 throw new TypeError("Super expression must either be null or a function"); 46349 e.prototype = Object.create(t && t.prototype, { 46350 constructor: { 46351 value: e, 46352 writable: !0, 46353 configurable: !0 46354 } 46355 }), 46356 Object.defineProperty(e, "prototype", { 46357 writable: !1 46358 }), 46359 t && sS(e, t) 46360} 46361function sS(e, t) { 46362 return sS = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 46363 return r.__proto__ = i, 46364 r 46365 } 46366 , 46367 sS(e, t) 46368} 46369function rr(e, t, n) { 46370 return t = oW(t), 46371 t in e ? Object.defineProperty(e, t, { 46372 value: n, 46373 enumerable: !0, 46374 configurable: !0, 46375 writable: !0 46376 }) : e[t] = n, 46377 e 46378} 46379function oW(e) { 46380 var t = lje(e, "string"); 46381 return Bc(t) == "symbol" ? t : t + "" 46382} 46383function lje(e, t) { 46384 if (Bc(e) != "object" || !e) 46385 return e; 46386 var n = e[Symbol.toPrimitive]; 46387 if (n !== void 0) { 46388 var r = n.call(e, t || "default"); 46389 if (Bc(r) != "object") 46390 return r; 46391 throw new TypeError("@@toPrimitive must return a primitive value.") 46392 } 46393 return (t === "string" ? String : Number)(e) 46394} 46395var cje = function(t) { 46396 var n = t.data 46397 , r = t.startIndex 46398 , i = t.endIndex 46399 , o = t.x 46400 , a = t.width 46401 , s = t.travellerWidth; 46402 if (!n || !n.length) 46403 return {}; 46404 var l = n.length 46405 , c = Id().domain(Qg(0, l)).range([o, o + a - s]) 46406 , u = c.domain().map(function(d) { 46407 return c(d) 46408 }); 46409 return { 46410 isTextActive: !1, 46411 isSlideMoving: !1, 46412 isTravellerMoving: !1, 46413 isTravellerFocused: !1, 46414 startX: c(r), 46415 endX: c(i), 46416 scale: c, 46417 scaleValues: u 46418 } 46419} 46420 , mk = function(t) { 46421 return t.changedTouches && !!t.changedTouches.length 46422} 46423 , Vc = function(e) { 46424 function t(n) { 46425 var r; 46426 return nje(this, t), 46427 r = ije(this, t, [n]), 46428 rr(r, "handleDrag", function(i) { 46429 r.leaveTimer && (clearTimeout(r.leaveTimer), 46430 r.leaveTimer = null), 46431 r.state.isTravellerMoving ? r.handleTravellerMove(i) : r.state.isSlideMoving && r.handleSlideDrag(i) 46432 }), 46433 rr(r, "handleTouchMove", function(i) { 46434 i.changedTouches != null && i.changedTouches.length > 0 && r.handleDrag(i.changedTouches[0]) 46435 }), 46436 rr(r, "handleDragEnd", function() { 46437 r.setState({ 46438 isTravellerMoving: !1, 46439 isSlideMoving: !1 46440 }, function() { 46441 var i = r.props 46442 , o = i.endIndex 46443 , a = i.onDragEnd 46444 , s = i.startIndex; 46445 a == null || a({ 46446 endIndex: o, 46447 startIndex: s 46448 }) 46449 }), 46450 r.detachDragEndListener() 46451 }), 46452 rr(r, "handleLeaveWrapper", function() { 46453 (r.state.isTravellerMoving || r.state.isSlideMoving) && (r.leaveTimer = window.setTimeout(r.handleDragEnd, r.props.leaveTimeOut)) 46454 }), 46455 rr(r, "handleEnterSlideOrTraveller", function() { 46456 r.setState({ 46457 isTextActive: !0 46458 }) 46459 }), 46460 rr(r, "handleLeaveSlideOrTraveller", function() { 46461 r.setState({ 46462 isTextActive: !1 46463 }) 46464 }), 46465 rr(r, "handleSlideDragStart", function(i) { 46466 var o = mk(i) ? i.changedTouches[0] : i; 46467 r.setState({ 46468 isTravellerMoving: !1, 46469 isSlideMoving: !0, 46470 slideMoveStartX: o.pageX 46471 }), 46472 r.attachDragEndListener() 46473 }), 46474 r.travellerDragStartHandlers = { 46475 startX: r.handleTravellerDragStart.bind(r, "startX"), 46476 endX: r.handleTravellerDragStart.bind(r, "endX") 46477 }, 46478 r.state = {}, 46479 r 46480 } 46481 return sje(t, e), 46482 rje(t, [{ 46483 key: "componentWillUnmount", 46484 value: function() { 46485 this.leaveTimer && (clearTimeout(this.leaveTimer), 46486 this.leaveTimer = null), 46487 this.detachDragEndListener() 46488 } 46489 }, { 46490 key: "getIndex", 46491 value: function(r) { 46492 var i = r.startX 46493 , o = r.endX 46494 , a = this.state.scaleValues 46495 , s = this.props 46496 , l = s.gap 46497 , c = s.data 46498 , u = c.length - 1 46499 , d = Math.min(i, o) 46500 , f = Math.max(i, o) 46501 , p = t.getIndexInRange(a, d) 46502 , g = t.getIndexInRange(a, f); 46503 return { 46504 startIndex: p - p % l, 46505 endIndex: g === u ? u : g - g % l 46506 } 46507 } 46508 }, { 46509 key: "getTextOfTick", 46510 value: function(r) { 46511 var i = this.props 46512 , o = i.data 46513 , a = i.tickFormatter 46514 , s = i.dataKey 46515 , l = Hi(o[r], s, r); 46516 return qe(a) ? a(l, r) : l 46517 } 46518 }, { 46519 key: "attachDragEndListener", 46520 value: function() { 46521 window.addEventListener("mouseup", this.handleDragEnd, !0), 46522 window.addEventListener("touchend", this.handleDragEnd, !0), 46523 window.addEventListener("mousemove", this.handleDrag, !0) 46524 } 46525 }, { 46526 key: "detachDragEndListener", 46527 value: function() { 46528 window.removeEventListener("mouseup", this.handleDragEnd, !0), 46529 window.removeEventListener("touchend", this.handleDragEnd, !0), 46530 window.removeEventListener("mousemove", this.handleDrag, !0) 46531 } 46532 }, { 46533 key: "handleSlideDrag", 46534 value: function(r) { 46535 var i = this.state 46536 , o = i.slideMoveStartX 46537 , a = i.startX 46538 , s = i.endX 46539 , l = this.props 46540 , c = l.x 46541 , u = l.width 46542 , d = l.travellerWidth 46543 , f = l.startIndex 46544 , p = l.endIndex 46545 , g = l.onChange 46546 , m = r.pageX - o; 46547 m > 0 ? m = Math.min(m, c + u - d - s, c + u - d - a) : m < 0 && (m = Math.max(m, c - a, c - s)); 46548 var x = this.getIndex({ 46549 startX: a + m, 46550 endX: s + m 46551 }); 46552 (x.startIndex !== f || x.endIndex !== p) && g && g(x), 46553 this.setState({ 46554 startX: a + m, 46555 endX: s + m, 46556 slideMoveStartX: r.pageX 46557 }) 46558 } 46559 }, { 46560 key: "handleTravellerDragStart", 46561 value: function(r, i) { 46562 var o = mk(i) ? i.changedTouches[0] : i; 46563 this.setState({ 46564 isSlideMoving: !1, 46565 isTravellerMoving: !0, 46566 movingTravellerId: r, 46567 brushMoveStartX: o.pageX 46568 }), 46569 this.attachDragEndListener() 46570 } 46571 }, { 46572 key: "handleTravellerMove", 46573 value: function(r) { 46574 var i = this.state 46575 , o = i.brushMoveStartX 46576 , a = i.movingTravellerId 46577 , s = i.endX 46578 , l = i.startX 46579 , c = this.state[a] 46580 , u = this.props 46581 , d = u.x 46582 , f = u.width 46583 , p = u.travellerWidth 46584 , g = u.onChange 46585 , m = u.gap 46586 , x = u.data 46587 , v = { 46588 startX: this.state.startX, 46589 endX: this.state.endX 46590 } 46591 , y = r.pageX - o; 46592 y > 0 ? y = Math.min(y, d + f - p - c) : y < 0 && (y = Math.max(y, d - c)), 46593 v[a] = c + y; 46594 var w = this.getIndex(v) 46595 , P = w.startIndex 46596 , S = w.endIndex 46597 , _ = function() { 46598 var C = x.length - 1; 46599 return a === "startX" && (s > l ? P % m === 0 : S % m === 0) || s < l && S === C || a === "endX" && (s > l ? S % m === 0 : P % m === 0) || s > l && S === C 46600 }; 46601 this.setState(rr(rr({}, a, c + y), "brushMoveStartX", r.pageX), function() { 46602 g && _() && g(w) 46603 }) 46604 } 46605 }, { 46606 key: "handleTravellerMoveKeyboard", 46607 value: function(r, i) { 46608 var o = this 46609 , a = this.state 46610 , s = a.scaleValues 46611 , l = a.startX 46612 , c = a.endX 46613 , u = this.state[i] 46614 , d = s.indexOf(u); 46615 if (d !== -1) { 46616 var f = d + r; 46617 if (!(f === -1 || f >= s.length)) { 46618 var p = s[f]; 46619 i === "startX" && p >= c || i === "endX" && p <= l || this.setState(rr({}, i, p), function() { 46620 o.props.onChange(o.getIndex({ 46621 startX: o.state.startX, 46622 endX: o.state.endX 46623 })) 46624 }) 46625 } 46626 } 46627 } 46628 }, { 46629 key: "renderBackground", 46630 value: function() { 46631 var r = this.props 46632 , i = r.x 46633 , o = r.y 46634 , a = r.width 46635 , s = r.height 46636 , l = r.fill 46637 , c = r.stroke; 46638 return k.createElement("rect", { 46639 stroke: c, 46640 fill: l, 46641 x: i, 46642 y: o, 46643 width: a, 46644 height: s 46645 }) 46646 } 46647 }, { 46648 key: "renderPanorama", 46649 value: function() { 46650 var r = this.props 46651 , i = r.x 46652 , o = r.y 46653 , a = r.width 46654 , s = r.height 46655 , l = r.data 46656 , c = r.children 46657 , u = r.padding 46658 , d = b.Children.only(c); 46659 return d ? k.cloneElement(d, { 46660 x: i, 46661 y: o, 46662 width: a, 46663 height: s, 46664 margin: u, 46665 compact: !0, 46666 data: l 46667 }) : null 46668 } 46669 }, { 46670 key: "renderTravellerLayer", 46671 value: function(r, i) { 46672 var o, a, s = this, l = this.props, c = l.y, u = l.travellerWidth, d = l.height, f = l.traveller, p = l.ariaLabel, g = l.data, m = l.startIndex, x = l.endIndex, v = Math.max(r, this.props.x), y = Hx(Hx({}, Je(this.props, !1)), {}, { 46673 x: v, 46674 y: c, 46675 width: u, 46676 height: d 46677 }), w = p || "Min value: ".concat((o = g[m]) === null || o === void 0 ? void 0 : o.name, ", Max value: ").concat((a = g[x]) === null || a === void 0 ? void 0 : a.name); 46678 return k.createElement(ln, { 46679 tabIndex: 0, 46680 role: "slider", 46681 "aria-label": w, 46682 "aria-valuenow": r, 46683 className: "recharts-brush-traveller", 46684 onMouseEnter: this.handleEnterSlideOrTraveller, 46685 onMouseLeave: this.handleLeaveSlideOrTraveller, 46686 onMouseDown: this.travellerDragStartHandlers[i], 46687 onTouchStart: this.travellerDragStartHandlers[i], 46688 onKeyDown: function(S) { 46689 ["ArrowLeft", "ArrowRight"].includes(S.key) && (S.preventDefault(), 46690 S.stopPropagation(), 46691 s.handleTravellerMoveKeyboard(S.key === "ArrowRight" ? 1 : -1, i)) 46692 }, 46693 onFocus: function() { 46694 s.setState({ 46695 isTravellerFocused: !0 46696 }) 46697 }, 46698 onBlur: function() { 46699 s.setState({ 46700 isTravellerFocused: !1 46701 }) 46702 }, 46703 style: { 46704 cursor: "col-resize" 46705 } 46706 }, t.renderTraveller(f, y)) 46707 } 46708 }, { 46709 key: "renderSlide", 46710 value: function(r, i) { 46711 var o = this.props 46712 , a = o.y 46713 , s = o.height 46714 , l = o.stroke 46715 , c = o.travellerWidth 46716 , u = Math.min(r, i) + c 46717 , d = Math.max(Math.abs(i - r) - c, 0); 46718 return k.createElement("rect", { 46719 className: "recharts-brush-slide", 46720 onMouseEnter: this.handleEnterSlideOrTraveller, 46721 onMouseLeave: this.handleLeaveSlideOrTraveller, 46722 onMouseDown: this.handleSlideDragStart, 46723 onTouchStart: this.handleSlideDragStart, 46724 style: { 46725 cursor: "move" 46726 }, 46727 stroke: "none", 46728 fill: l, 46729 fillOpacity: .2, 46730 x: u, 46731 y: a, 46732 width: d, 46733 height: s 46734 }) 46735 } 46736 }, { 46737 key: "renderText", 46738 value: function() { 46739 var r = this.props 46740 , i = r.startIndex 46741 , o = r.endIndex 46742 , a = r.y 46743 , s = r.height 46744 , l = r.travellerWidth 46745 , c = r.stroke 46746 , u = this.state 46747 , d = u.startX 46748 , f = u.endX 46749 , p = 5 46750 , g = { 46751 pointerEvents: "none", 46752 fill: c 46753 }; 46754 return k.createElement(ln, { 46755 className: "recharts-brush-texts" 46756 }, k.createElement(Ag, Zg({ 46757 textAnchor: "end", 46758 verticalAnchor: "middle", 46759 x: Math.min(d, f) - p, 46760 y: a + s / 2 46761 }, g), this.getTextOfTick(i)), k.createElement(Ag, Zg({ 46762 textAnchor: "start", 46763 verticalAnchor: "middle", 46764 x: Math.max(d, f) + l + p, 46765 y: a + s / 2 46766 }, g), this.getTextOfTick(o))) 46767 } 46768 }, { 46769 key: "render", 46770 value: function() { 46771 var r = this.props 46772 , i = r.data 46773 , o = r.className 46774 , a = r.children 46775 , s = r.x 46776 , l = r.y 46777 , c = r.width 46778 , u = r.height 46779 , d = r.alwaysShowText 46780 , f = this.state 46781 , p = f.startX 46782 , g = f.endX 46783 , m = f.isTextActive 46784 , x = f.isSlideMoving 46785 , v = f.isTravellerMoving 46786 , y = f.isTravellerFocused; 46787 if (!i || !i.length || !le(s) || !le(l) || !le(c) || !le(u) || c <= 0 || u <= 0) 46788 return null; 46789 var w = Ge("recharts-brush", o) 46790 , P = k.Children.count(a) === 1 46791 , S = tje("userSelect", "none"); 46792 return k.createElement(ln, { 46793 className: w, 46794 onMouseLeave: this.handleLeaveWrapper, 46795 onTouchMove: this.handleTouchMove, 46796 style: S 46797 }, this.renderBackground(), P && this.renderPanorama(), this.renderSlide(p, g), this.renderTravellerLayer(p, "startX"), this.renderTravellerLayer(g, "endX"), (m || x || v || y || d) && this.renderText()) 46798 } 46799 }], [{ 46800 key: "renderDefaultTraveller", 46801 value: function(r) { 46802 var i = r.x 46803 , o = r.y 46804 , a = r.width 46805 , s = r.height 46806 , l = r.stroke 46807 , c = Math.floor(o + s / 2) - 1; 46808 return k.createElement(k.Fragment, null, k.createElement("rect", { 46809 x: i, 46810 y: o, 46811 width: a, 46812 height: s, 46813 fill: l, 46814 stroke: "none" 46815 }), k.createElement("line", { 46816 x1: i + 1, 46817 y1: c, 46818 x2: i + a - 1, 46819 y2: c, 46820 fill: "none", 46821 stroke: "#fff" 46822 }), k.createElement("line", { 46823 x1: i + 1, 46824 y1: c + 2, 46825 x2: i + a - 1, 46826 y2: c + 2, 46827 fill: "none", 46828 stroke: "#fff" 46829 })) 46830 } 46831 }, {
46832 key: "renderTraveller", 46833 value: function(r, i) { 46834 var o; 46835 return k.isValidElement(r) ? o = k.cloneElement(r, i) : qe(r) ? o = r(i) : o = t.renderDefaultTraveller(i), 46836 o 46837 } 46838 }, { 46839 key: "getDerivedStateFromProps", 46840 value: function(r, i) { 46841 var o = r.data 46842 , a = r.width 46843 , s = r.x 46844 , l = r.travellerWidth 46845 , c = r.updateId 46846 , u = r.startIndex 46847 , d = r.endIndex; 46848 if (o !== i.prevData || c !== i.prevUpdateId) 46849 return Hx({ 46850 prevData: o, 46851 prevTravellerWidth: l, 46852 prevUpdateId: c, 46853 prevX: s, 46854 prevWidth: a 46855 }, o && o.length ? cje({ 46856 data: o, 46857 width: a, 46858 x: s, 46859 travellerWidth: l, 46860 startIndex: u, 46861 endIndex: d 46862 }) : { 46863 scale: null, 46864 scaleValues: null 46865 }); 46866 if (i.scale && (a !== i.prevWidth || s !== i.prevX || l !== i.prevTravellerWidth)) { 46867 i.scale.range([s, s + a - l]); 46868 var f = i.scale.domain().map(function(p) { 46869 return i.scale(p) 46870 }); 46871 return { 46872 prevData: o, 46873 prevTravellerWidth: l, 46874 prevUpdateId: c, 46875 prevX: s, 46876 prevWidth: a, 46877 startX: i.scale(r.startIndex), 46878 endX: i.scale(r.endIndex), 46879 scaleValues: f 46880 } 46881 } 46882 return null 46883 } 46884 }, { 46885 key: "getIndexInRange", 46886 value: function(r, i) { 46887 for (var o = r.length, a = 0, s = o - 1; s - a > 1; ) { 46888 var l = Math.floor((a + s) / 2); 46889 r[l] > i ? s = l : a = l 46890 } 46891 return i >= r[s] ? s : a 46892 } 46893 }]) 46894}(b.PureComponent); 46895rr(Vc, "displayName", "Brush"); 46896rr(Vc, "defaultProps", { 46897 height: 40, 46898 travellerWidth: 5, 46899 gap: 1, 46900 fill: "#fff", 46901 stroke: "#666", 46902 padding: { 46903 top: 1, 46904 right: 1, 46905 bottom: 1, 46906 left: 1 46907 }, 46908 leaveTimeOut: 1e3, 46909 alwaysShowText: !1 46910}); 46911var uje = RT; 46912function dje(e, t) { 46913 var n; 46914 return uje(e, function(r, i, o) { 46915 return n = t(r, i, o), 46916 !n 46917 }), 46918 !!n 46919} 46920var fje = dje 46921 , hje = s6 46922 , pje = xu 46923 , mje = fje 46924 , gje = nr 46925 , yje = qv; 46926function vje(e, t, n) { 46927 var r = gje(e) ? hje : mje; 46928 return n && yje(e, t, n) && (t = void 0), 46929 r(e, pje(t)) 46930} 46931var xje = vje; 46932const bje = lt(xje); 46933var Bi = function(t, n) { 46934 var r = t.alwaysShow 46935 , i = t.ifOverflow; 46936 return r && (i = "extendDomain"), 46937 i === n 46938} 46939 , gk = A6; 46940function wje(e, t, n) { 46941 t == "__proto__" && gk ? gk(e, t, { 46942 configurable: !0, 46943 enumerable: !0, 46944 value: n, 46945 writable: !0 46946 }) : e[t] = n 46947} 46948var Sje = wje 46949 , Pje = Sje 46950 , _je = C6 46951 , Tje = xu; 46952function Cje(e, t) { 46953 var n = {}; 46954 return t = Tje(t), 46955 _je(e, function(r, i, o) { 46956 Pje(n, i, t(r, i, o)) 46957 }), 46958 n 46959} 46960var Oje = Cje; 46961const Aje = lt(Oje); 46962function Eje(e, t) { 46963 for (var n = -1, r = e == null ? 0 : e.length; ++n < r; ) 46964 if (!t(e[n], n, e)) 46965 return !1; 46966 return !0 46967} 46968var jje = Eje 46969 , Nje = RT; 46970function Mje(e, t) { 46971 var n = !0; 46972 return Nje(e, function(r, i, o) { 46973 return n = !!t(r, i, o), 46974 n 46975 }), 46976 n 46977} 46978var kje = Mje 46979 , Rje = jje 46980 , Dje = kje 46981 , Ije = xu 46982 , $je = nr 46983 , Lje = qv; 46984function Fje(e, t, n) { 46985 var r = $je(e) ? Rje : Dje; 46986 return n && Lje(e, t, n) && (t = void 0), 46987 r(e, Ije(t)) 46988} 46989var Bje = Fje; 46990const Vje = lt(Bje); 46991var Uje = ["x", "y"]; 46992function Gf(e) { 46993 "@babel/helpers - typeof"; 46994 return Gf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 46995 return typeof t 46996 } 46997 : function(t) { 46998 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 46999 } 47000 , 47001 Gf(e) 47002} 47003function lS() { 47004 return lS = Object.assign ? Object.assign.bind() : function(e) { 47005 for (var t = 1; t < arguments.length; t++) { 47006 var n = arguments[t]; 47007 for (var r in n) 47008 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 47009 } 47010 return e 47011 } 47012 , 47013 lS.apply(this, arguments) 47014} 47015function yk(e, t) { 47016 var n = Object.keys(e); 47017 if (Object.getOwnPropertySymbols) { 47018 var r = Object.getOwnPropertySymbols(e); 47019 t && (r = r.filter(function(i) { 47020 return Object.getOwnPropertyDescriptor(e, i).enumerable 47021 })), 47022 n.push.apply(n, r) 47023 } 47024 return n 47025} 47026function Gu(e) { 47027 for (var t = 1; t < arguments.length; t++) { 47028 var n = arguments[t] != null ? arguments[t] : {};
vendor: 130,424 bytes, lines 47029-51383
47029 t % 2 ? yk(Object(n), !0).forEach(function(r) { 47030 zje(e, r, n[r]) 47031 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yk(Object(n)).forEach(function(r) { 47032 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 47033 }) 47034 } 47035 return e 47036} 47037function zje(e, t, n) { 47038 return t = Wje(t), 47039 t in e ? Object.defineProperty(e, t, { 47040 value: n, 47041 enumerable: !0, 47042 configurable: !0, 47043 writable: !0 47044 }) : e[t] = n, 47045 e 47046} 47047function Wje(e) { 47048 var t = Hje(e, "string"); 47049 return Gf(t) == "symbol" ? t : t + "" 47050} 47051function Hje(e, t) { 47052 if (Gf(e) != "object" || !e) 47053 return e; 47054 var n = e[Symbol.toPrimitive]; 47055 if (n !== void 0) { 47056 var r = n.call(e, t || "default"); 47057 if (Gf(r) != "object") 47058 return r; 47059 throw new TypeError("@@toPrimitive must return a primitive value.") 47060 } 47061 return (t === "string" ? String : Number)(e) 47062} 47063function qje(e, t) { 47064 if (e == null) 47065 return {}; 47066 var n = Kje(e, t), r, i; 47067 if (Object.getOwnPropertySymbols) { 47068 var o = Object.getOwnPropertySymbols(e); 47069 for (i = 0; i < o.length; i++) 47070 r = o[i], 47071 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 47072 } 47073 return n 47074} 47075function Kje(e, t) { 47076 if (e == null) 47077 return {}; 47078 var n = {}; 47079 for (var r in e) 47080 if (Object.prototype.hasOwnProperty.call(e, r)) { 47081 if (t.indexOf(r) >= 0) 47082 continue; 47083 n[r] = e[r] 47084 } 47085 return n 47086} 47087function Gje(e, t) { 47088 var n = e.x 47089 , r = e.y 47090 , i = qje(e, Uje) 47091 , o = "".concat(n) 47092 , a = parseInt(o, 10) 47093 , s = "".concat(r) 47094 , l = parseInt(s, 10) 47095 , c = "".concat(t.height || i.height) 47096 , u = parseInt(c, 10) 47097 , d = "".concat(t.width || i.width) 47098 , f = parseInt(d, 10); 47099 return Gu(Gu(Gu(Gu(Gu({}, t), i), a ? { 47100 x: a 47101 } : {}), l ? { 47102 y: l 47103 } : {}), {}, { 47104 height: u, 47105 width: f, 47106 name: t.name, 47107 radius: t.radius 47108 }) 47109} 47110function vk(e) { 47111 return k.createElement(EEe, lS({ 47112 shapeType: "rectangle", 47113 propTransformer: Gje, 47114 activeClassName: "recharts-active-bar" 47115 }, e)) 47116} 47117var Yje = function(t) { 47118 var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; 47119 return function(r, i) { 47120 if (typeof t == "number") 47121 return t; 47122 var o = typeof r == "number"; 47123 return o ? t(r, i) : (o || Ks(), 47124 n) 47125 } 47126}, Xje = ["value", "background"], aW; 47127function Uc(e) { 47128 "@babel/helpers - typeof"; 47129 return Uc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 47130 return typeof t 47131 } 47132 : function(t) { 47133 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 47134 } 47135 , 47136 Uc(e) 47137} 47138function Qje(e, t) { 47139 if (e == null) 47140 return {}; 47141 var n = Zje(e, t), r, i; 47142 if (Object.getOwnPropertySymbols) { 47143 var o = Object.getOwnPropertySymbols(e); 47144 for (i = 0; i < o.length; i++) 47145 r = o[i], 47146 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 47147 } 47148 return n 47149} 47150function Zje(e, t) { 47151 if (e == null) 47152 return {}; 47153 var n = {}; 47154 for (var r in e) 47155 if (Object.prototype.hasOwnProperty.call(e, r)) { 47156 if (t.indexOf(r) >= 0) 47157 continue; 47158 n[r] = e[r] 47159 } 47160 return n 47161} 47162function ey() { 47163 return ey = Object.assign ? Object.assign.bind() : function(e) { 47164 for (var t = 1; t < arguments.length; t++) { 47165 var n = arguments[t]; 47166 for (var r in n) 47167 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 47168 } 47169 return e 47170 } 47171 , 47172 ey.apply(this, arguments) 47173} 47174function xk(e, t) { 47175 var n = Object.keys(e); 47176 if (Object.getOwnPropertySymbols) { 47177 var r = Object.getOwnPropertySymbols(e); 47178 t && (r = r.filter(function(i) { 47179 return Object.getOwnPropertyDescriptor(e, i).enumerable 47180 })), 47181 n.push.apply(n, r) 47182 } 47183 return n 47184} 47185function Ht(e) { 47186 for (var t = 1; t < arguments.length; t++) { 47187 var n = arguments[t] != null ? arguments[t] : {}; 47188 t % 2 ? xk(Object(n), !0).forEach(function(r) { 47189 ua(e, r, n[r]) 47190 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xk(Object(n)).forEach(function(r) { 47191 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 47192 }) 47193 } 47194 return e 47195} 47196function Jje(e, t) { 47197 if (!(e instanceof t)) 47198 throw new TypeError("Cannot call a class as a function") 47199} 47200function bk(e, t) { 47201 for (var n = 0; n < t.length; n++) { 47202 var r = t[n]; 47203 r.enumerable = r.enumerable || !1, 47204 r.configurable = !0, 47205 "value"in r && (r.writable = !0), 47206 Object.defineProperty(e, lW(r.key), r) 47207 } 47208} 47209function eNe(e, t, n) { 47210 return t && bk(e.prototype, t), 47211 n && bk(e, n), 47212 Object.defineProperty(e, "prototype", { 47213 writable: !1 47214 }), 47215 e 47216} 47217function tNe(e, t, n) { 47218 return t = ty(t), 47219 nNe(e, sW() ? Reflect.construct(t, n || [], ty(e).constructor) : t.apply(e, n)) 47220} 47221function nNe(e, t) { 47222 if (t && (Uc(t) === "object" || typeof t == "function")) 47223 return t; 47224 if (t !== void 0) 47225 throw new TypeError("Derived constructors may only return object or undefined"); 47226 return rNe(e) 47227} 47228function rNe(e) { 47229 if (e === void 0) 47230 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 47231 return e 47232} 47233function sW() { 47234 try { 47235 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 47236 } catch {} 47237 return (sW = function() { 47238 return !!e 47239 } 47240 )() 47241} 47242function ty(e) { 47243 return ty = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 47244 return n.__proto__ || Object.getPrototypeOf(n) 47245 } 47246 , 47247 ty(e) 47248} 47249function iNe(e, t) { 47250 if (typeof t != "function" && t !== null) 47251 throw new TypeError("Super expression must either be null or a function"); 47252 e.prototype = Object.create(t && t.prototype, { 47253 constructor: { 47254 value: e, 47255 writable: !0, 47256 configurable: !0 47257 } 47258 }), 47259 Object.defineProperty(e, "prototype", { 47260 writable: !1 47261 }), 47262 t && cS(e, t) 47263} 47264function cS(e, t) { 47265 return cS = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 47266 return r.__proto__ = i, 47267 r 47268 } 47269 , 47270 cS(e, t) 47271} 47272function ua(e, t, n) { 47273 return t = lW(t), 47274 t in e ? Object.defineProperty(e, t, { 47275 value: n, 47276 enumerable: !0, 47277 configurable: !0, 47278 writable: !0 47279 }) : e[t] = n, 47280 e 47281} 47282function lW(e) { 47283 var t = oNe(e, "string"); 47284 return Uc(t) == "symbol" ? t : t + "" 47285} 47286function oNe(e, t) { 47287 if (Uc(e) != "object" || !e) 47288 return e; 47289 var n = e[Symbol.toPrimitive]; 47290 if (n !== void 0) { 47291 var r = n.call(e, t || "default"); 47292 if (Uc(r) != "object") 47293 return r; 47294 throw new TypeError("@@toPrimitive must return a primitive value.") 47295 } 47296 return (t === "string" ? String : Number)(e) 47297} 47298var il = function(e) { 47299 function t() { 47300 var n; 47301 Jje(this, t); 47302 for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) 47303 i[o] = arguments[o]; 47304 return n = tNe(this, t, [].concat(i)), 47305 ua(n, "state", { 47306 isAnimationFinished: !1 47307 }), 47308 ua(n, "id", Fv("recharts-bar-")), 47309 ua(n, "handleAnimationEnd", function() { 47310 var a = n.props.onAnimationEnd; 47311 n.setState({ 47312 isAnimationFinished: !0 47313 }), 47314 a && a() 47315 }), 47316 ua(n, "handleAnimationStart", function() { 47317 var a = n.props.onAnimationStart; 47318 n.setState({ 47319 isAnimationFinished: !1 47320 }), 47321 a && a() 47322 }), 47323 n 47324 } 47325 return iNe(t, e), 47326 eNe(t, [{ 47327 key: "renderRectanglesStatically", 47328 value: function(r) { 47329 var i = this 47330 , o = this.props 47331 , a = o.shape 47332 , s = o.dataKey 47333 , l = o.activeIndex 47334 , c = o.activeBar 47335 , u = Je(this.props, !1); 47336 return r && r.map(function(d, f) { 47337 var p = f === l 47338 , g = p ? c : a 47339 , m = Ht(Ht(Ht({}, u), d), {}, { 47340 isActive: p, 47341 option: g, 47342 index: f, 47343 dataKey: s, 47344 onAnimationStart: i.handleAnimationStart, 47345 onAnimationEnd: i.handleAnimationEnd 47346 }); 47347 return k.createElement(ln, ey({ 47348 className: "recharts-bar-rectangle" 47349 }, pg(i.props, d, f), { 47350 key: "rectangle-".concat(d == null ? void 0 : d.x, "-").concat(d == null ? void 0 : d.y, "-").concat(d == null ? void 0 : d.value) 47351 }), k.createElement(vk, m)) 47352 }) 47353 } 47354 }, { 47355 key: "renderRectanglesWithAnimation", 47356 value: function() { 47357 var r = this 47358 , i = this.props 47359 , o = i.data 47360 , a = i.layout 47361 , s = i.isAnimationActive 47362 , l = i.animationBegin 47363 , c = i.animationDuration 47364 , u = i.animationEasing 47365 , d = i.animationId 47366 , f = this.state.prevData; 47367 return k.createElement(Ea, { 47368 begin: l, 47369 duration: c, 47370 isActive: s, 47371 easing: u, 47372 from: { 47373 t: 0 47374 }, 47375 to: { 47376 t: 1 47377 }, 47378 key: "bar-".concat(d), 47379 onAnimationEnd: this.handleAnimationEnd, 47380 onAnimationStart: this.handleAnimationStart 47381 }, function(p) { 47382 var g = p.t 47383 , m = o.map(function(x, v) { 47384 var y = f && f[v]; 47385 if (y) { 47386 var w = fl(y.x, x.x) 47387 , P = fl(y.y, x.y) 47388 , S = fl(y.width, x.width) 47389 , _ = fl(y.height, x.height); 47390 return Ht(Ht({}, x), {}, { 47391 x: w(g), 47392 y: P(g), 47393 width: S(g), 47394 height: _(g) 47395 }) 47396 } 47397 if (a === "horizontal") { 47398 var T = fl(0, x.height) 47399 , C = T(g); 47400 return Ht(Ht({}, x), {}, { 47401 y: x.y + x.height - C, 47402 height: C 47403 }) 47404 } 47405 var O = fl(0, x.width) 47406 , A = O(g); 47407 return Ht(Ht({}, x), {}, { 47408 width: A 47409 }) 47410 }); 47411 return k.createElement(ln, null, r.renderRectanglesStatically(m)) 47412 }) 47413 } 47414 }, { 47415 key: "renderRectangles", 47416 value: function() { 47417 var r = this.props 47418 , i = r.data 47419 , o = r.isAnimationActive 47420 , a = this.state.prevData; 47421 return o && i && i.length && (!a || !oC(a, i)) ? this.renderRectanglesWithAnimation() : this.renderRectanglesStatically(i) 47422 } 47423 }, { 47424 key: "renderBackground", 47425 value: function() { 47426 var r = this 47427 , i = this.props 47428 , o = i.data 47429 , a = i.dataKey 47430 , s = i.activeIndex 47431 , l = Je(this.props.background, !1); 47432 return o.map(function(c, u) { 47433 c.value; 47434 var d = c.background 47435 , f = Qje(c, Xje); 47436 if (!d) 47437 return null; 47438 var p = Ht(Ht(Ht(Ht(Ht({}, f), {}, { 47439 fill: "#eee" 47440 }, d), l), pg(r.props, c, u)), {}, { 47441 onAnimationStart: r.handleAnimationStart, 47442 onAnimationEnd: r.handleAnimationEnd, 47443 dataKey: a, 47444 index: u, 47445 className: "recharts-bar-background-rectangle" 47446 }); 47447 return k.createElement(vk, ey({ 47448 key: "background-bar-".concat(u), 47449 option: r.props.background, 47450 isActive: u === s 47451 }, p)) 47452 }) 47453 } 47454 }, { 47455 key: "renderErrorBar", 47456 value: function(r, i) { 47457 if (this.props.isAnimationActive && !this.state.isAnimationFinished) 47458 return null; 47459 var o = this.props 47460 , a = o.data 47461 , s = o.xAxis 47462 , l = o.yAxis 47463 , c = o.layout 47464 , u = o.children 47465 , d = di(u, r0); 47466 if (!d) 47467 return null; 47468 var f = c === "vertical" ? a[0].height / 2 : a[0].width / 2 47469 , p = function(x, v) { 47470 var y = Array.isArray(x.value) ? x.value[1] : x.value; 47471 return { 47472 x: x.x, 47473 y: x.y, 47474 value: y, 47475 errorVal: Hi(x, v) 47476 } 47477 } 47478 , g = { 47479 clipPath: r ? "url(#clipPath-".concat(i, ")") : null 47480 }; 47481 return k.createElement(ln, g, d.map(function(m) { 47482 return k.cloneElement(m, { 47483 key: "error-bar-".concat(i, "-").concat(m.props.dataKey), 47484 data: a, 47485 xAxis: s, 47486 yAxis: l, 47487 layout: c, 47488 offset: f, 47489 dataPointFormatter: p 47490 }) 47491 })) 47492 } 47493 }, { 47494 key: "render", 47495 value: function() { 47496 var r = this.props 47497 , i = r.hide 47498 , o = r.data 47499 , a = r.className 47500 , s = r.xAxis 47501 , l = r.yAxis 47502 , c = r.left 47503 , u = r.top 47504 , d = r.width 47505 , f = r.height 47506 , p = r.isAnimationActive 47507 , g = r.background 47508 , m = r.id; 47509 if (i || !o || !o.length) 47510 return null; 47511 var x = this.state.isAnimationFinished 47512 , v = Ge("recharts-bar", a) 47513 , y = s && s.allowDataOverflow 47514 , w = l && l.allowDataOverflow 47515 , P = y || w 47516 , S = et(m) ? this.id : m; 47517 return k.createElement(ln, { 47518 className: v 47519 }, y || w ? k.createElement("defs", null, k.createElement("clipPath", { 47520 id: "clipPath-".concat(S) 47521 }, k.createElement("rect", { 47522 x: y ? c : c - d / 2, 47523 y: w ? u : u - f / 2, 47524 width: y ? d : d * 2, 47525 height: w ? f : f * 2 47526 }))) : null, k.createElement(ln, { 47527 className: "recharts-bar-rectangles", 47528 clipPath: P ? "url(#clipPath-".concat(S, ")") : null 47529 }, g ? this.renderBackground() : null, this.renderRectangles()), this.renderErrorBar(P, S), (!p || x) && js.renderCallByParent(this.props, o)) 47530 } 47531 }], [{ 47532 key: "getDerivedStateFromProps", 47533 value: function(r, i) { 47534 return r.animationId !== i.prevAnimationId ? { 47535 prevAnimationId: r.animationId, 47536 curData: r.data, 47537 prevData: i.curData 47538 } : r.data !== i.curData ? { 47539 curData: r.data 47540 } : null 47541 } 47542 }]) 47543}(b.PureComponent); 47544aW = il; 47545ua(il, "displayName", "Bar"); 47546ua(il, "defaultProps", { 47547 xAxisId: 0, 47548 yAxisId: 0, 47549 legendType: "rect", 47550 minPointSize: 0, 47551 hide: !1, 47552 data: [], 47553 layout: "vertical", 47554 activeBar: !1, 47555 isAnimationActive: !ba.isSsr, 47556 animationBegin: 0, 47557 animationDuration: 400, 47558 animationEasing: "ease" 47559}); 47560ua(il, "getComposedData", function(e) { 47561 var t = e.props 47562 , n = e.item 47563 , r = e.barPosition 47564 , i = e.bandSize 47565 , o = e.xAxis 47566 , a = e.yAxis 47567 , s = e.xAxisTicks 47568 , l = e.yAxisTicks 47569 , c = e.stackedData 47570 , u = e.dataStartIndex 47571 , d = e.displayedData 47572 , f = e.offset 47573 , p = zTe(r, n); 47574 if (!p) 47575 return null; 47576 var g = t.layout 47577 , m = n.type.defaultProps 47578 , x = m !== void 0 ? Ht(Ht({}, m), n.props) : n.props 47579 , v = x.dataKey 47580 , y = x.children 47581 , w = x.minPointSize 47582 , P = g === "horizontal" ? a : o 47583 , S = c ? P.scale.domain() : null 47584 , _ = QTe({ 47585 numericAxis: P 47586 }) 47587 , T = di(y, D6) 47588 , C = d.map(function(O, A) { 47589 var E, j, $, R, L, B; 47590 c ? E = WTe(c[u + A], S) : (E = Hi(O, v), 47591 Array.isArray(E) || (E = [_, E])); 47592 var U = Yje(w, aW.defaultProps.minPointSize)(E[1], A); 47593 if (g === "horizontal") { 47594 var N, D = [a.scale(E[0]), a.scale(E[1])], W = D[0], K = D[1]; 47595 j = vM({ 47596 axis: o, 47597 ticks: s, 47598 bandSize: i, 47599 offset: p.offset, 47600 entry: O, 47601 index: A 47602 }), 47603 $ = (N = K ?? W) !== null && N !== void 0 ? N : void 0, 47604 R = p.size; 47605 var G = W - K; 47606 if (L = Number.isNaN(G) ? 0 : G, 47607 B = { 47608 x: j, 47609 y: a.y, 47610 width: R, 47611 height: a.height 47612 }, 47613 Math.abs(U) > 0 && Math.abs(L) < Math.abs(U)) { 47614 var ae = oi(L || U) * (Math.abs(U) - Math.abs(L)); 47615 $ -= ae, 47616 L += ae 47617 } 47618 } else { 47619 var ve = [o.scale(E[0]), o.scale(E[1])] 47620 , je = ve[0] 47621 , Oe = ve[1]; 47622 if (j = je, 47623 $ = vM({ 47624 axis: a, 47625 ticks: l, 47626 bandSize: i, 47627 offset: p.offset, 47628 entry: O, 47629 index: A 47630 }), 47631 R = Oe - je, 47632 L = p.size, 47633 B = { 47634 x: o.x, 47635 y: $, 47636 width: o.width, 47637 height: L 47638 }, 47639 Math.abs(U) > 0 && Math.abs(R) < Math.abs(U)) { 47640 var ie = oi(R || U) * (Math.abs(U) - Math.abs(R)); 47641 R += ie 47642 } 47643 } 47644 return Ht(Ht(Ht({}, O), {}, { 47645 x: j, 47646 y: $, 47647 width: R, 47648 height: L, 47649 value: c ? E : E[1], 47650 payload: O, 47651 background: B 47652 }, T && T[A] && T[A].props), {}, { 47653 tooltipPayload: [Bz(n, O)], 47654 tooltipPosition: { 47655 x: j + R / 2, 47656 y: $ + L / 2 47657 } 47658 }) 47659 }); 47660 return Ht({ 47661 data: C, 47662 layout: g 47663 }, f) 47664}); 47665function Yf(e) { 47666 "@babel/helpers - typeof"; 47667 return Yf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 47668 return typeof t 47669 } 47670 : function(t) { 47671 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 47672 } 47673 , 47674 Yf(e) 47675} 47676function aNe(e, t) { 47677 if (!(e instanceof t)) 47678 throw new TypeError("Cannot call a class as a function") 47679} 47680function wk(e, t) { 47681 for (var n = 0; n < t.length; n++) { 47682 var r = t[n]; 47683 r.enumerable = r.enumerable || !1, 47684 r.configurable = !0, 47685 "value"in r && (r.writable = !0), 47686 Object.defineProperty(e, cW(r.key), r) 47687 } 47688} 47689function sNe(e, t, n) { 47690 return t && wk(e.prototype, t), 47691 n && wk(e, n), 47692 Object.defineProperty(e, "prototype", { 47693 writable: !1 47694 }), 47695 e 47696} 47697function Sk(e, t) { 47698 var n = Object.keys(e); 47699 if (Object.getOwnPropertySymbols) { 47700 var r = Object.getOwnPropertySymbols(e); 47701 t && (r = r.filter(function(i) { 47702 return Object.getOwnPropertyDescriptor(e, i).enumerable 47703 })), 47704 n.push.apply(n, r) 47705 } 47706 return n 47707} 47708function Jr(e) { 47709 for (var t = 1; t < arguments.length; t++) { 47710 var n = arguments[t] != null ? arguments[t] : {}; 47711 t % 2 ? Sk(Object(n), !0).forEach(function(r) { 47712 a0(e, r, n[r]) 47713 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sk(Object(n)).forEach(function(r) { 47714 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 47715 }) 47716 } 47717 return e 47718} 47719function a0(e, t, n) { 47720 return t = cW(t), 47721 t in e ? Object.defineProperty(e, t, { 47722 value: n, 47723 enumerable: !0, 47724 configurable: !0, 47725 writable: !0 47726 }) : e[t] = n, 47727 e 47728} 47729function cW(e) { 47730 var t = lNe(e, "string"); 47731 return Yf(t) == "symbol" ? t : t + "" 47732} 47733function lNe(e, t) { 47734 if (Yf(e) != "object" || !e) 47735 return e; 47736 var n = e[Symbol.toPrimitive]; 47737 if (n !== void 0) { 47738 var r = n.call(e, t || "default"); 47739 if (Yf(r) != "object") 47740 return r; 47741 throw new TypeError("@@toPrimitive must return a primitive value.") 47742 } 47743 return (t === "string" ? String : Number)(e) 47744} 47745var cNe = function(t, n, r, i, o) { 47746 var a = t.width 47747 , s = t.height 47748 , l = t.layout 47749 , c = t.children 47750 , u = Object.keys(n) 47751 , d = { 47752 left: r.left, 47753 leftMirror: r.left, 47754 right: a - r.right, 47755 rightMirror: a - r.right, 47756 top: r.top, 47757 topMirror: r.top, 47758 bottom: s - r.bottom, 47759 bottomMirror: s - r.bottom 47760 } 47761 , f = !!sr(c, il); 47762 return u.reduce(function(p, g) { 47763 var m = n[g], x = m.orientation, v = m.domain, y = m.padding, w = y === void 0 ? {} : y, P = m.mirror, S = m.reversed, _ = "".concat(x).concat(P ? "Mirror" : ""), T, C, O, A, E; 47764 if (m.type === "number" && (m.padding === "gap" || m.padding === "no-gap")) { 47765 var j = v[1] - v[0] 47766 , $ = 1 / 0 47767 , R = m.categoricalDomain.sort(); 47768 if (R.forEach(function(ve, je) { 47769 je > 0 && ($ = Math.min((ve || 0) - (R[je - 1] || 0), $)) 47770 }), 47771 Number.isFinite($)) { 47772 var L = $ / j 47773 , B = m.layout === "vertical" ? r.height : r.width; 47774 if (m.padding === "gap" && (T = L * B / 2), 47775 m.padding === "no-gap") { 47776 var U = Hs(t.barCategoryGap, L * B) 47777 , N = L * B / 2; 47778 T = N - U - (N - U) / B * U 47779 } 47780 } 47781 } 47782 i === "xAxis" ? C = [r.left + (w.left || 0) + (T || 0), r.left + r.width - (w.right || 0) - (T || 0)] : i === "yAxis" ? C = l === "horizontal" ? [r.top + r.height - (w.bottom || 0), r.top + (w.top || 0)] : [r.top + (w.top || 0) + (T || 0), r.top + r.height - (w.bottom || 0) - (T || 0)] : C = m.range, 47783 S && (C = [C[1], C[0]]); 47784 var D = VTe(m, o, f) 47785 , W = D.scale 47786 , K = D.realScaleType; 47787 W.domain(v).range(C), 47788 UTe(W); 47789 var G = XTe(W, Jr(Jr({}, m), {}, { 47790 realScaleType: K 47791 })); 47792 i === "xAxis" ? (E = x === "top" && !P || x === "bottom" && P, 47793 O = r.left, 47794 A = d[_] - E * m.height) : i === "yAxis" && (E = x === "left" && !P || x === "right" && P, 47795 O = d[_] - E * m.width, 47796 A = r.top); 47797 var ae = Jr(Jr(Jr({}, m), G), {}, { 47798 realScaleType: K, 47799 x: O, 47800 y: A, 47801 scale: W, 47802 width: i === "xAxis" ? r.width : m.width, 47803 height: i === "yAxis" ? r.height : m.height 47804 }); 47805 return ae.bandSize = Ug(ae, G), 47806 !m.hide && i === "xAxis" ? d[_] += (E ? -1 : 1) * ae.height : m.hide || (d[_] += (E ? -1 : 1) * ae.width), 47807 Jr(Jr({}, p), {}, a0({}, g, ae)) 47808 }, {}) 47809} 47810 , uW = function(t, n) { 47811 var r = t.x 47812 , i = t.y 47813 , o = n.x 47814 , a = n.y; 47815 return { 47816 x: Math.min(r, o), 47817 y: Math.min(i, a), 47818 width: Math.abs(o - r), 47819 height: Math.abs(a - i) 47820 } 47821} 47822 , uNe = function(t) { 47823 var n = t.x1 47824 , r = t.y1 47825 , i = t.x2 47826 , o = t.y2; 47827 return uW({ 47828 x: n, 47829 y: r 47830 }, { 47831 x: i, 47832 y: o 47833 }) 47834} 47835 , dW = function() { 47836 function e(t) { 47837 aNe(this, e), 47838 this.scale = t 47839 } 47840 return sNe(e, [{ 47841 key: "domain", 47842 get: function() { 47843 return this.scale.domain 47844 } 47845 }, { 47846 key: "range", 47847 get: function() { 47848 return this.scale.range 47849 } 47850 }, { 47851 key: "rangeMin", 47852 get: function() { 47853 return this.range()[0] 47854 } 47855 }, { 47856 key: "rangeMax", 47857 get: function() { 47858 return this.range()[1] 47859 } 47860 }, { 47861 key: "bandwidth", 47862 get: function() { 47863 return this.scale.bandwidth 47864 } 47865 }, { 47866 key: "apply", 47867 value: function(n) { 47868 var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {} 47869 , i = r.bandAware 47870 , o = r.position; 47871 if (n !== void 0) { 47872 if (o) 47873 switch (o) { 47874 case "start": 47875 return this.scale(n); 47876 case "middle": 47877 { 47878 var a = this.bandwidth ? this.bandwidth() / 2 : 0; 47879 return this.scale(n) + a 47880 } 47881 case "end": 47882 { 47883 var s = this.bandwidth ? this.bandwidth() : 0; 47884 return this.scale(n) + s 47885 } 47886 default: 47887 return this.scale(n) 47888 } 47889 if (i) { 47890 var l = this.bandwidth ? this.bandwidth() / 2 : 0; 47891 return this.scale(n) + l 47892 } 47893 return this.scale(n) 47894 } 47895 } 47896 }, { 47897 key: "isInRange", 47898 value: function(n) { 47899 var r = this.range() 47900 , i = r[0] 47901 , o = r[r.length - 1]; 47902 return i <= o ? n >= i && n <= o : n >= o && n <= i 47903 } 47904 }], [{ 47905 key: "create", 47906 value: function(n) { 47907 return new e(n) 47908 } 47909 }]) 47910}(); 47911a0(dW, "EPS", 1e-4); 47912var uC = function(t) { 47913 var n = Object.keys(t).reduce(function(r, i) { 47914 return Jr(Jr({}, r), {}, a0({}, i, dW.create(t[i]))) 47915 }, {}); 47916 return Jr(Jr({}, n), {}, { 47917 apply: function(i) { 47918 var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {} 47919 , a = o.bandAware 47920 , s = o.position; 47921 return Aje(i, function(l, c) { 47922 return n[c].apply(l, { 47923 bandAware: a, 47924 position: s 47925 }) 47926 }) 47927 }, 47928 isInRange: function(i) { 47929 return Vje(i, function(o, a) { 47930 return n[a].isInRange(o) 47931 }) 47932 } 47933 }) 47934}; 47935function dNe(e) { 47936 return (e % 180 + 180) % 180 47937} 47938var fNe = function(t) { 47939 var n = t.width 47940 , r = t.height 47941 , i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0 47942 , o = dNe(i) 47943 , a = o * Math.PI / 180 47944 , s = Math.atan(r / n) 47945 , l = a > s && a < Math.PI - s ? r / Math.sin(a) : n / Math.cos(a); 47946 return Math.abs(l) 47947} 47948 , hNe = Tde(function(e) { 47949 return { 47950 x: e.left, 47951 y: e.top, 47952 width: e.width, 47953 height: e.height 47954 } 47955}, function(e) { 47956 return ["l", e.left, "t", e.top, "w", e.width, "h", e.height].join("") 47957}) 47958 , fW = b.createContext(void 0) 47959 , hW = b.createContext(void 0) 47960 , pW = b.createContext(void 0) 47961 , pNe = b.createContext({}) 47962 , mW = b.createContext(void 0) 47963 , gW = b.createContext(0) 47964 , yW = b.createContext(0) 47965 , Pk = function(t) { 47966 var n = t.state 47967 , r = n.xAxisMap 47968 , i = n.yAxisMap 47969 , o = n.offset 47970 , a = t.clipPathId 47971 , s = t.children 47972 , l = t.width 47973 , c = t.height 47974 , u = hNe(o); 47975 return k.createElement(fW.Provider, { 47976 value: r 47977 }, k.createElement(hW.Provider, { 47978 value: i 47979 }, k.createElement(pNe.Provider, { 47980 value: o 47981 }, k.createElement(pW.Provider, { 47982 value: u 47983 }, k.createElement(mW.Provider, { 47984 value: a 47985 }, k.createElement(gW.Provider, { 47986 value: c 47987 }, k.createElement(yW.Provider, { 47988 value: l 47989 }, s))))))) 47990} 47991 , mNe = function() { 47992 return b.useContext(mW) 47993} 47994 , vW = function(t) { 47995 var n = b.useContext(fW); 47996 n == null && Ks(); 47997 var r = n[t]; 47998 return r == null && Ks(), 47999 r 48000} 48001 , xW = function(t) { 48002 var n = b.useContext(hW); 48003 n == null && Ks(); 48004 var r = n[t]; 48005 return r == null && Ks(), 48006 r 48007} 48008 , gNe = function() { 48009 var t = b.useContext(pW); 48010 return t 48011} 48012 , bW = function() { 48013 return b.useContext(yW) 48014} 48015 , wW = function() { 48016 return b.useContext(gW) 48017}; 48018function zc(e) { 48019 "@babel/helpers - typeof"; 48020 return zc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 48021 return typeof t 48022 } 48023 : function(t) { 48024 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 48025 } 48026 , 48027 zc(e) 48028} 48029function yNe(e, t) { 48030 if (!(e instanceof t)) 48031 throw new TypeError("Cannot call a class as a function") 48032} 48033function vNe(e, t) { 48034 for (var n = 0; n < t.length; n++) { 48035 var r = t[n]; 48036 r.enumerable = r.enumerable || !1, 48037 r.configurable = !0, 48038 "value"in r && (r.writable = !0), 48039 Object.defineProperty(e, PW(r.key), r) 48040 } 48041} 48042function xNe(e, t, n) { 48043 return t && vNe(e.prototype, t), 48044 Object.defineProperty(e, "prototype", { 48045 writable: !1 48046 }), 48047 e 48048} 48049function bNe(e, t, n) { 48050 return t = ny(t), 48051 wNe(e, SW() ? Reflect.construct(t, n || [], ny(e).constructor) : t.apply(e, n)) 48052} 48053function wNe(e, t) { 48054 if (t && (zc(t) === "object" || typeof t == "function")) 48055 return t; 48056 if (t !== void 0) 48057 throw new TypeError("Derived constructors may only return object or undefined"); 48058 return SNe(e) 48059} 48060function SNe(e) { 48061 if (e === void 0) 48062 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 48063 return e 48064} 48065function SW() { 48066 try { 48067 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 48068 } catch {} 48069 return (SW = function() { 48070 return !!e 48071 } 48072 )() 48073} 48074function ny(e) { 48075 return ny = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 48076 return n.__proto__ || Object.getPrototypeOf(n) 48077 } 48078 , 48079 ny(e) 48080} 48081function PNe(e, t) { 48082 if (typeof t != "function" && t !== null) 48083 throw new TypeError("Super expression must either be null or a function"); 48084 e.prototype = Object.create(t && t.prototype, { 48085 constructor: { 48086 value: e, 48087 writable: !0, 48088 configurable: !0 48089 } 48090 }), 48091 Object.defineProperty(e, "prototype", { 48092 writable: !1 48093 }), 48094 t && uS(e, t) 48095} 48096function uS(e, t) { 48097 return uS = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 48098 return r.__proto__ = i, 48099 r 48100 } 48101 , 48102 uS(e, t) 48103} 48104function _k(e, t) { 48105 var n = Object.keys(e); 48106 if (Object.getOwnPropertySymbols) { 48107 var r = Object.getOwnPropertySymbols(e); 48108 t && (r = r.filter(function(i) { 48109 return Object.getOwnPropertyDescriptor(e, i).enumerable 48110 })), 48111 n.push.apply(n, r) 48112 } 48113 return n 48114} 48115function Tk(e) { 48116 for (var t = 1; t < arguments.length; t++) { 48117 var n = arguments[t] != null ? arguments[t] : {}; 48118 t % 2 ? _k(Object(n), !0).forEach(function(r) { 48119 dC(e, r, n[r]) 48120 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _k(Object(n)).forEach(function(r) { 48121 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 48122 }) 48123 } 48124 return e 48125} 48126function dC(e, t, n) { 48127 return t = PW(t), 48128 t in e ? Object.defineProperty(e, t, { 48129 value: n, 48130 enumerable: !0, 48131 configurable: !0, 48132 writable: !0 48133 }) : e[t] = n, 48134 e 48135} 48136function PW(e) { 48137 var t = _Ne(e, "string"); 48138 return zc(t) == "symbol" ? t : t + "" 48139} 48140function _Ne(e, t) { 48141 if (zc(e) != "object" || !e) 48142 return e; 48143 var n = e[Symbol.toPrimitive]; 48144 if (n !== void 0) { 48145 var r = n.call(e, t || "default"); 48146 if (zc(r) != "object") 48147 return r; 48148 throw new TypeError("@@toPrimitive must return a primitive value.") 48149 } 48150 return (t === "string" ? String : Number)(e) 48151} 48152function TNe(e, t) { 48153 return ENe(e) || ANe(e, t) || ONe(e, t) || CNe() 48154} 48155function CNe() { 48156 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 48157In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 48158} 48159function ONe(e, t) { 48160 if (e) { 48161 if (typeof e == "string") 48162 return Ck(e, t); 48163 var n = Object.prototype.toString.call(e).slice(8, -1); 48164 if (n === "Object" && e.constructor && (n = e.constructor.name), 48165 n === "Map" || n === "Set") 48166 return Array.from(e); 48167 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 48168 return Ck(e, t) 48169 } 48170} 48171function Ck(e, t) { 48172 (t == null || t > e.length) && (t = e.length); 48173 for (var n = 0, r = new Array(t); n < t; n++) 48174 r[n] = e[n]; 48175 return r 48176} 48177function ANe(e, t) { 48178 var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; 48179 if (n != null) { 48180 var r, i, o, a, s = [], l = !0, c = !1; 48181 try { 48182 if (o = (n = n.call(e)).next, 48183 t !== 0) 48184 for (; !(l = (r = o.call(n)).done) && (s.push(r.value), 48185 s.length !== t); l = !0) 48186 ; 48187 } catch (u) { 48188 c = !0, 48189 i = u 48190 } finally { 48191 try { 48192 if (!l && n.return != null && (a = n.return(), 48193 Object(a) !== a)) 48194 return 48195 } finally { 48196 if (c) 48197 throw i 48198 } 48199 } 48200 return s 48201 } 48202} 48203function ENe(e) { 48204 if (Array.isArray(e)) 48205 return e 48206} 48207function dS() { 48208 return dS = Object.assign ? Object.assign.bind() : function(e) { 48209 for (var t = 1; t < arguments.length; t++) { 48210 var n = arguments[t]; 48211 for (var r in n) 48212 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 48213 } 48214 return e 48215 } 48216 , 48217 dS.apply(this, arguments) 48218} 48219var jNe = function(t, n) { 48220 var r; 48221 return k.isValidElement(t) ? r = k.cloneElement(t, n) : qe(t) ? r = t(n) : r = k.createElement("line", dS({}, n, { 48222 className: "recharts-reference-line-line" 48223 })), 48224 r 48225} 48226 , NNe = function(t, n, r, i, o, a, s, l, c) { 48227 var u = o.x 48228 , d = o.y 48229 , f = o.width 48230 , p = o.height; 48231 if (r) { 48232 var g = c.y 48233 , m = t.y.apply(g, { 48234 position: a 48235 }); 48236 if (Bi(c, "discard") && !t.y.isInRange(m)) 48237 return null; 48238 var x = [{ 48239 x: u + f, 48240 y: m 48241 }, { 48242 x: u, 48243 y: m 48244 }]; 48245 return l === "left" ? x.reverse() : x 48246 } 48247 if (n) { 48248 var v = c.x 48249 , y = t.x.apply(v, { 48250 position: a 48251 }); 48252 if (Bi(c, "discard") && !t.x.isInRange(y)) 48253 return null; 48254 var w = [{ 48255 x: y, 48256 y: d + p 48257 }, { 48258 x: y, 48259 y: d 48260 }]; 48261 return s === "top" ? w.reverse() : w 48262 } 48263 if (i) { 48264 var P = c.segment 48265 , S = P.map(function(_) { 48266 return t.apply(_, { 48267 position: a 48268 }) 48269 }); 48270 return Bi(c, "discard") && bje(S, function(_) { 48271 return !t.isInRange(_) 48272 }) ? null : S 48273 } 48274 return null 48275}; 48276function MNe(e) { 48277 var t = e.x 48278 , n = e.y 48279 , r = e.segment 48280 , i = e.xAxisId 48281 , o = e.yAxisId 48282 , a = e.shape 48283 , s = e.className 48284 , l = e.alwaysShow 48285 , c = mNe() 48286 , u = vW(i) 48287 , d = xW(o) 48288 , f = gNe(); 48289 if (!c || !f) 48290 return null; 48291 Os(l === void 0, 'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'); 48292 var p = uC({ 48293 x: u.scale, 48294 y: d.scale 48295 }) 48296 , g = tn(t) 48297 , m = tn(n) 48298 , x = r && r.length === 2 48299 , v = NNe(p, g, m, x, f, e.position, u.orientation, d.orientation, e); 48300 if (!v) 48301 return null; 48302 var y = TNe(v, 2) 48303 , w = y[0] 48304 , P = w.x 48305 , S = w.y 48306 , _ = y[1] 48307 , T = _.x 48308 , C = _.y 48309 , O = Bi(e, "hidden") ? "url(#".concat(c, ")") : void 0 48310 , A = Tk(Tk({ 48311 clipPath: O 48312 }, Je(e, !0)), {}, { 48313 x1: P, 48314 y1: S, 48315 x2: T, 48316 y2: C 48317 }); 48318 return k.createElement(ln, { 48319 className: Ge("recharts-reference-line", s) 48320 }, jNe(a, A), On.renderCallByParent(e, uNe({ 48321 x1: P, 48322 y1: S, 48323 x2: T, 48324 y2: C 48325 }))) 48326} 48327var fC = function(e) { 48328 function t() { 48329 return yNe(this, t), 48330 bNe(this, t, arguments) 48331 } 48332 return PNe(t, e), 48333 xNe(t, [{ 48334 key: "render", 48335 value: function() { 48336 return k.createElement(MNe, this.props) 48337 } 48338 }]) 48339}(k.Component); 48340dC(fC, "displayName", "ReferenceLine"); 48341dC(fC, "defaultProps", { 48342 isFront: !1, 48343 ifOverflow: "discard", 48344 xAxisId: 0, 48345 yAxisId: 0, 48346 fill: "none", 48347 stroke: "#ccc", 48348 fillOpacity: 1, 48349 strokeWidth: 1, 48350 position: "middle" 48351}); 48352function fS() { 48353 return fS = Object.assign ? Object.assign.bind() : function(e) { 48354 for (var t = 1; t < arguments.length; t++) { 48355 var n = arguments[t]; 48356 for (var r in n) 48357 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 48358 } 48359 return e 48360 } 48361 , 48362 fS.apply(this, arguments) 48363} 48364function Wc(e) { 48365 "@babel/helpers - typeof"; 48366 return Wc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 48367 return typeof t 48368 } 48369 : function(t) { 48370 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 48371 } 48372 , 48373 Wc(e) 48374} 48375function Ok(e, t) { 48376 var n = Object.keys(e); 48377 if (Object.getOwnPropertySymbols) { 48378 var r = Object.getOwnPropertySymbols(e); 48379 t && (r = r.filter(function(i) { 48380 return Object.getOwnPropertyDescriptor(e, i).enumerable 48381 })), 48382 n.push.apply(n, r) 48383 } 48384 return n 48385} 48386function Ak(e) { 48387 for (var t = 1; t < arguments.length; t++) { 48388 var n = arguments[t] != null ? arguments[t] : {}; 48389 t % 2 ? Ok(Object(n), !0).forEach(function(r) { 48390 s0(e, r, n[r]) 48391 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ok(Object(n)).forEach(function(r) { 48392 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 48393 }) 48394 } 48395 return e 48396} 48397function kNe(e, t) { 48398 if (!(e instanceof t)) 48399 throw new TypeError("Cannot call a class as a function") 48400} 48401function RNe(e, t) { 48402 for (var n = 0; n < t.length; n++) { 48403 var r = t[n]; 48404 r.enumerable = r.enumerable || !1, 48405 r.configurable = !0, 48406 "value"in r && (r.writable = !0), 48407 Object.defineProperty(e, TW(r.key), r) 48408 } 48409} 48410function DNe(e, t, n) { 48411 return t && RNe(e.prototype, t), 48412 Object.defineProperty(e, "prototype", { 48413 writable: !1 48414 }), 48415 e 48416} 48417function INe(e, t, n) { 48418 return t = ry(t), 48419 $Ne(e, _W() ? Reflect.construct(t, n || [], ry(e).constructor) : t.apply(e, n)) 48420} 48421function $Ne(e, t) { 48422 if (t && (Wc(t) === "object" || typeof t == "function")) 48423 return t; 48424 if (t !== void 0) 48425 throw new TypeError("Derived constructors may only return object or undefined"); 48426 return LNe(e) 48427} 48428function LNe(e) { 48429 if (e === void 0) 48430 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 48431 return e 48432} 48433function _W() { 48434 try { 48435 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 48436 } catch {} 48437 return (_W = function() { 48438 return !!e 48439 } 48440 )() 48441} 48442function ry(e) { 48443 return ry = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 48444 return n.__proto__ || Object.getPrototypeOf(n) 48445 } 48446 , 48447 ry(e) 48448} 48449function FNe(e, t) { 48450 if (typeof t != "function" && t !== null) 48451 throw new TypeError("Super expression must either be null or a function"); 48452 e.prototype = Object.create(t && t.prototype, { 48453 constructor: { 48454 value: e, 48455 writable: !0, 48456 configurable: !0 48457 } 48458 }), 48459 Object.defineProperty(e, "prototype", { 48460 writable: !1 48461 }), 48462 t && hS(e, t) 48463} 48464function hS(e, t) { 48465 return hS = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 48466 return r.__proto__ = i, 48467 r 48468 } 48469 , 48470 hS(e, t) 48471} 48472function s0(e, t, n) { 48473 return t = TW(t), 48474 t in e ? Object.defineProperty(e, t, { 48475 value: n, 48476 enumerable: !0, 48477 configurable: !0, 48478 writable: !0 48479 }) : e[t] = n, 48480 e 48481} 48482function TW(e) { 48483 var t = BNe(e, "string"); 48484 return Wc(t) == "symbol" ? t : t + "" 48485} 48486function BNe(e, t) { 48487 if (Wc(e) != "object" || !e) 48488 return e; 48489 var n = e[Symbol.toPrimitive]; 48490 if (n !== void 0) { 48491 var r = n.call(e, t || "default"); 48492 if (Wc(r) != "object") 48493 return r; 48494 throw new TypeError("@@toPrimitive must return a primitive value.") 48495 } 48496 return (t === "string" ? String : Number)(e) 48497} 48498var VNe = function(t) { 48499 var n = t.x 48500 , r = t.y 48501 , i = t.xAxis 48502 , o = t.yAxis 48503 , a = uC({ 48504 x: i.scale, 48505 y: o.scale 48506 }) 48507 , s = a.apply({ 48508 x: n, 48509 y: r 48510 }, { 48511 bandAware: !0 48512 }); 48513 return Bi(t, "discard") && !a.isInRange(s) ? null : s 48514} 48515 , l0 = function(e) { 48516 function t() { 48517 return kNe(this, t), 48518 INe(this, t, arguments) 48519 } 48520 return FNe(t, e), 48521 DNe(t, [{ 48522 key: "render", 48523 value: function() { 48524 var r = this.props 48525 , i = r.x 48526 , o = r.y 48527 , a = r.r 48528 , s = r.alwaysShow 48529 , l = r.clipPathId 48530 , c = tn(i) 48531 , u = tn(o); 48532 if (Os(s === void 0, 'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'), 48533 !c || !u) 48534 return null; 48535 var d = VNe(this.props); 48536 if (!d) 48537 return null; 48538 var f = d.x 48539 , p = d.y 48540 , g = this.props 48541 , m = g.shape 48542 , x = g.className 48543 , v = Bi(this.props, "hidden") ? "url(#".concat(l, ")") : void 0 48544 , y = Ak(Ak({ 48545 clipPath: v 48546 }, Je(this.props, !0)), {}, { 48547 cx: f, 48548 cy: p 48549 }); 48550 return k.createElement(ln, { 48551 className: Ge("recharts-reference-dot", x) 48552 }, t.renderDot(m, y), On.renderCallByParent(this.props, { 48553 x: f - a, 48554 y: p - a, 48555 width: 2 * a, 48556 height: 2 * a 48557 })) 48558 } 48559 }]) 48560}(k.Component); 48561s0(l0, "displayName", "ReferenceDot"); 48562s0(l0, "defaultProps", { 48563 isFront: !1, 48564 ifOverflow: "discard", 48565 xAxisId: 0, 48566 yAxisId: 0, 48567 r: 10, 48568 fill: "#fff", 48569 stroke: "#ccc", 48570 fillOpacity: 1, 48571 strokeWidth: 1 48572}); 48573s0(l0, "renderDot", function(e, t) { 48574 var n; 48575 return k.isValidElement(e) ? n = k.cloneElement(e, t) : qe(e) ? n = e(t) : n = k.createElement(tW, fS({}, t, { 48576 cx: t.cx, 48577 cy: t.cy, 48578 className: "recharts-reference-dot-dot" 48579 })), 48580 n 48581}); 48582function pS() { 48583 return pS = Object.assign ? Object.assign.bind() : function(e) { 48584 for (var t = 1; t < arguments.length; t++) { 48585 var n = arguments[t]; 48586 for (var r in n) 48587 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 48588 } 48589 return e 48590 } 48591 , 48592 pS.apply(this, arguments) 48593} 48594function Hc(e) { 48595 "@babel/helpers - typeof"; 48596 return Hc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 48597 return typeof t 48598 } 48599 : function(t) { 48600 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 48601 } 48602 , 48603 Hc(e) 48604} 48605function Ek(e, t) { 48606 var n = Object.keys(e); 48607 if (Object.getOwnPropertySymbols) { 48608 var r = Object.getOwnPropertySymbols(e); 48609 t && (r = r.filter(function(i) { 48610 return Object.getOwnPropertyDescriptor(e, i).enumerable 48611 })), 48612 n.push.apply(n, r) 48613 } 48614 return n 48615} 48616function jk(e) { 48617 for (var t = 1; t < arguments.length; t++) { 48618 var n = arguments[t] != null ? arguments[t] : {}; 48619 t % 2 ? Ek(Object(n), !0).forEach(function(r) { 48620 c0(e, r, n[r]) 48621 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ek(Object(n)).forEach(function(r) { 48622 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 48623 }) 48624 } 48625 return e 48626} 48627function UNe(e, t) { 48628 if (!(e instanceof t)) 48629 throw new TypeError("Cannot call a class as a function") 48630} 48631function zNe(e, t) { 48632 for (var n = 0; n < t.length; n++) { 48633 var r = t[n]; 48634 r.enumerable = r.enumerable || !1, 48635 r.configurable = !0, 48636 "value"in r && (r.writable = !0), 48637 Object.defineProperty(e, OW(r.key), r) 48638 } 48639} 48640function WNe(e, t, n) { 48641 return t && zNe(e.prototype, t), 48642 Object.defineProperty(e, "prototype", { 48643 writable: !1 48644 }), 48645 e 48646} 48647function HNe(e, t, n) { 48648 return t = iy(t), 48649 qNe(e, CW() ? Reflect.construct(t, n || [], iy(e).constructor) : t.apply(e, n)) 48650} 48651function qNe(e, t) { 48652 if (t && (Hc(t) === "object" || typeof t == "function")) 48653 return t; 48654 if (t !== void 0) 48655 throw new TypeError("Derived constructors may only return object or undefined"); 48656 return KNe(e) 48657} 48658function KNe(e) { 48659 if (e === void 0) 48660 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 48661 return e 48662} 48663function CW() { 48664 try { 48665 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 48666 } catch {} 48667 return (CW = function() { 48668 return !!e 48669 } 48670 )() 48671} 48672function iy(e) { 48673 return iy = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 48674 return n.__proto__ || Object.getPrototypeOf(n) 48675 } 48676 , 48677 iy(e) 48678} 48679function GNe(e, t) { 48680 if (typeof t != "function" && t !== null) 48681 throw new TypeError("Super expression must either be null or a function"); 48682 e.prototype = Object.create(t && t.prototype, { 48683 constructor: { 48684 value: e, 48685 writable: !0, 48686 configurable: !0 48687 } 48688 }), 48689 Object.defineProperty(e, "prototype", { 48690 writable: !1 48691 }), 48692 t && mS(e, t) 48693} 48694function mS(e, t) { 48695 return mS = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 48696 return r.__proto__ = i, 48697 r 48698 } 48699 , 48700 mS(e, t) 48701} 48702function c0(e, t, n) { 48703 return t = OW(t), 48704 t in e ? Object.defineProperty(e, t, { 48705 value: n, 48706 enumerable: !0, 48707 configurable: !0, 48708 writable: !0 48709 }) : e[t] = n, 48710 e 48711} 48712function OW(e) { 48713 var t = YNe(e, "string"); 48714 return Hc(t) == "symbol" ? t : t + "" 48715} 48716function YNe(e, t) { 48717 if (Hc(e) != "object" || !e) 48718 return e; 48719 var n = e[Symbol.toPrimitive]; 48720 if (n !== void 0) { 48721 var r = n.call(e, t || "default"); 48722 if (Hc(r) != "object") 48723 return r; 48724 throw new TypeError("@@toPrimitive must return a primitive value.") 48725 } 48726 return (t === "string" ? String : Number)(e) 48727} 48728var XNe = function(t, n, r, i, o) { 48729 var a = o.x1 48730 , s = o.x2 48731 , l = o.y1 48732 , c = o.y2 48733 , u = o.xAxis 48734 , d = o.yAxis; 48735 if (!u || !d) 48736 return null; 48737 var f = uC({ 48738 x: u.scale, 48739 y: d.scale 48740 }) 48741 , p = { 48742 x: t ? f.x.apply(a, { 48743 position: "start" 48744 }) : f.x.rangeMin, 48745 y: r ? f.y.apply(l, { 48746 position: "start" 48747 }) : f.y.rangeMin 48748 } 48749 , g = { 48750 x: n ? f.x.apply(s, { 48751 position: "end" 48752 }) : f.x.rangeMax, 48753 y: i ? f.y.apply(c, { 48754 position: "end" 48755 }) : f.y.rangeMax 48756 }; 48757 return Bi(o, "discard") && (!f.isInRange(p) || !f.isInRange(g)) ? null : uW(p, g) 48758} 48759 , u0 = function(e) { 48760 function t() { 48761 return UNe(this, t), 48762 HNe(this, t, arguments) 48763 } 48764 return GNe(t, e), 48765 WNe(t, [{ 48766 key: "render", 48767 value: function() { 48768 var r = this.props 48769 , i = r.x1 48770 , o = r.x2 48771 , a = r.y1 48772 , s = r.y2 48773 , l = r.className 48774 , c = r.alwaysShow 48775 , u = r.clipPathId; 48776 Os(c === void 0, 'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'); 48777 var d = tn(i) 48778 , f = tn(o) 48779 , p = tn(a) 48780 , g = tn(s) 48781 , m = this.props.shape; 48782 if (!d && !f && !p && !g && !m) 48783 return null; 48784 var x = XNe(d, f, p, g, this.props); 48785 if (!x && !m) 48786 return null; 48787 var v = Bi(this.props, "hidden") ? "url(#".concat(u, ")") : void 0; 48788 return k.createElement(ln, { 48789 className: Ge("recharts-reference-area", l) 48790 }, t.renderRect(m, jk(jk({ 48791 clipPath: v 48792 }, Je(this.props, !0)), x)), On.renderCallByParent(this.props, x)) 48793 } 48794 }]) 48795}(k.Component); 48796c0(u0, "displayName", "ReferenceArea"); 48797c0(u0, "defaultProps", { 48798 isFront: !1, 48799 ifOverflow: "discard", 48800 xAxisId: 0, 48801 yAxisId: 0, 48802 r: 10, 48803 fill: "#ccc", 48804 fillOpacity: .5, 48805 stroke: "none", 48806 strokeWidth: 1 48807}); 48808c0(u0, "renderRect", function(e, t) { 48809 var n; 48810 return k.isValidElement(e) ? n = k.cloneElement(e, t) : qe(e) ? n = e(t) : n = k.createElement(cC, pS({}, t, { 48811 className: "recharts-reference-area-rect" 48812 })), 48813 n 48814}); 48815function AW(e, t, n) { 48816 if (t < 1) 48817 return []; 48818 if (t === 1 && n === void 0) 48819 return e; 48820 for (var r = [], i = 0; i < e.length; i += t) 48821 r.push(e[i]); 48822 return r 48823} 48824function QNe(e, t, n) { 48825 var r = { 48826 width: e.width + t.width, 48827 height: e.height + t.height 48828 }; 48829 return fNe(r, n) 48830} 48831function ZNe(e, t, n) { 48832 var r = n === "width" 48833 , i = e.x 48834 , o = e.y 48835 , a = e.width 48836 , s = e.height; 48837 return t === 1 ? { 48838 start: r ? i : o, 48839 end: r ? i + a : o + s 48840 } : { 48841 start: r ? i + a : o + s, 48842 end: r ? i : o 48843 } 48844} 48845function oy(e, t, n, r, i) { 48846 if (e * t < e * r || e * t > e * i) 48847 return !1; 48848 var o = n(); 48849 return e * (t - e * o / 2 - r) >= 0 && e * (t + e * o / 2 - i) <= 0 48850} 48851function JNe(e, t) { 48852 return AW(e, t + 1) 48853} 48854function eMe(e, t, n, r, i) { 48855 for (var o = (r || []).slice(), a = t.start, s = t.end, l = 0, c = 1, u = a, d = function() { 48856 var g = r == null ? void 0 : r[l]; 48857 if (g === void 0) 48858 return { 48859 v: AW(r, c) 48860 }; 48861 var m = l, x, v = function() { 48862 return x === void 0 && (x = n(g, m)), 48863 x 48864 }, y = g.coordinate, w = l === 0 || oy(e, y, v, u, s); 48865 w || (l = 0, 48866 u = a, 48867 c += 1), 48868 w && (u = y + e * (v() / 2 + i), 48869 l += c) 48870 }, f; c <= o.length; ) 48871 if (f = d(), 48872 f) 48873 return f.v; 48874 return [] 48875} 48876function Xf(e) { 48877 "@babel/helpers - typeof"; 48878 return Xf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 48879 return typeof t 48880 } 48881 : function(t) { 48882 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 48883 } 48884 , 48885 Xf(e) 48886} 48887function Nk(e, t) { 48888 var n = Object.keys(e); 48889 if (Object.getOwnPropertySymbols) { 48890 var r = Object.getOwnPropertySymbols(e); 48891 t && (r = r.filter(function(i) { 48892 return Object.getOwnPropertyDescriptor(e, i).enumerable 48893 })), 48894 n.push.apply(n, r) 48895 } 48896 return n 48897} 48898function Tn(e) { 48899 for (var t = 1; t < arguments.length; t++) { 48900 var n = arguments[t] != null ? arguments[t] : {}; 48901 t % 2 ? Nk(Object(n), !0).forEach(function(r) { 48902 tMe(e, r, n[r]) 48903 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Nk(Object(n)).forEach(function(r) { 48904 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 48905 }) 48906 } 48907 return e 48908} 48909function tMe(e, t, n) { 48910 return t = nMe(t), 48911 t in e ? Object.defineProperty(e, t, { 48912 value: n, 48913 enumerable: !0, 48914 configurable: !0, 48915 writable: !0 48916 }) : e[t] = n, 48917 e 48918} 48919function nMe(e) { 48920 var t = rMe(e, "string"); 48921 return Xf(t) == "symbol" ? t : t + "" 48922} 48923function rMe(e, t) { 48924 if (Xf(e) != "object" || !e) 48925 return e; 48926 var n = e[Symbol.toPrimitive]; 48927 if (n !== void 0) { 48928 var r = n.call(e, t || "default"); 48929 if (Xf(r) != "object") 48930 return r; 48931 throw new TypeError("@@toPrimitive must return a primitive value.") 48932 } 48933 return (t === "string" ? String : Number)(e) 48934} 48935function iMe(e, t, n, r, i) { 48936 for (var o = (r || []).slice(), a = o.length, s = t.start, l = t.end, c = function(f) { 48937 var p = o[f], g, m = function() { 48938 return g === void 0 && (g = n(p, f)), 48939 g 48940 }; 48941 if (f === a - 1) { 48942 var x = e * (p.coordinate + e * m() / 2 - l); 48943 o[f] = p = Tn(Tn({}, p), {}, { 48944 tickCoord: x > 0 ? p.coordinate - x * e : p.coordinate 48945 }) 48946 } else 48947 o[f] = p = Tn(Tn({}, p), {}, { 48948 tickCoord: p.coordinate 48949 }); 48950 var v = oy(e, p.tickCoord, m, s, l); 48951 v && (l = p.tickCoord - e * (m() / 2 + i), 48952 o[f] = Tn(Tn({}, p), {}, { 48953 isShow: !0 48954 })) 48955 }, u = a - 1; u >= 0; u--) 48956 c(u); 48957 return o 48958} 48959function oMe(e, t, n, r, i, o) { 48960 var a = (r || []).slice() 48961 , s = a.length 48962 , l = t.start 48963 , c = t.end; 48964 if (o) { 48965 var u = r[s - 1] 48966 , d = n(u, s - 1) 48967 , f = e * (u.coordinate + e * d / 2 - c); 48968 a[s - 1] = u = Tn(Tn({}, u), {}, { 48969 tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate 48970 }); 48971 var p = oy(e, u.tickCoord, function() { 48972 return d 48973 }, l, c); 48974 p && (c = u.tickCoord - e * (d / 2 + i), 48975 a[s - 1] = Tn(Tn({}, u), {}, { 48976 isShow: !0 48977 })) 48978 } 48979 for (var g = o ? s - 1 : s, m = function(y) { 48980 var w = a[y], P, S = function() { 48981 return P === void 0 && (P = n(w, y)), 48982 P 48983 }; 48984 if (y === 0) { 48985 var _ = e * (w.coordinate - e * S() / 2 - l); 48986 a[y] = w = Tn(Tn({}, w), {}, { 48987 tickCoord: _ < 0 ? w.coordinate - _ * e : w.coordinate 48988 }) 48989 } else 48990 a[y] = w = Tn(Tn({}, w), {}, { 48991 tickCoord: w.coordinate 48992 }); 48993 var T = oy(e, w.tickCoord, S, l, c); 48994 T && (l = w.tickCoord + e * (S() / 2 + i), 48995 a[y] = Tn(Tn({}, w), {}, { 48996 isShow: !0 48997 })) 48998 }, x = 0; x < g; x++) 48999 m(x); 49000 return a 49001} 49002function aMe(e, t, n) { 49003 var r = e.tick 49004 , i = e.ticks 49005 , o = e.viewBox 49006 , a = e.minTickGap 49007 , s = e.orientation 49008 , l = e.interval 49009 , c = e.tickFormatter 49010 , u = e.unit 49011 , d = e.angle; 49012 if (!i || !i.length || !r) 49013 return []; 49014 if (le(l) || ba.isSsr) 49015 return JNe(i, typeof l == "number" && le(l) ? l : 0); 49016 var f = [] 49017 , p = s === "top" || s === "bottom" ? "width" : "height" 49018 , g = u && p === "width" ? Dd(u, { 49019 fontSize: t, 49020 letterSpacing: n 49021 }) : { 49022 width: 0, 49023 height: 0 49024 } 49025 , m = function(w, P) { 49026 var S = qe(c) ? c(w.value, P) : w.value; 49027 return p === "width" ? QNe(Dd(S, { 49028 fontSize: t, 49029 letterSpacing: n 49030 }), g, d) : Dd(S, { 49031 fontSize: t, 49032 letterSpacing: n 49033 })[p] 49034 } 49035 , x = i.length >= 2 ? oi(i[1].coordinate - i[0].coordinate) : 1 49036 , v = ZNe(o, x, p); 49037 return l === "equidistantPreserveStart" ? eMe(x, v, m, i, a) : (l === "preserveStart" || l === "preserveStartEnd" ? f = oMe(x, v, m, i, a, l === "preserveStartEnd") : f = iMe(x, v, m, i, a), 49038 f.filter(function(y) { 49039 return y.isShow 49040 })) 49041} 49042var sMe = ["viewBox"] 49043 , lMe = ["viewBox"] 49044 , cMe = ["ticks"]; 49045function qc(e) { 49046 "@babel/helpers - typeof"; 49047 return qc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 49048 return typeof t 49049 } 49050 : function(t) { 49051 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 49052 } 49053 , 49054 qc(e) 49055} 49056function $l() { 49057 return $l = Object.assign ? Object.assign.bind() : function(e) { 49058 for (var t = 1; t < arguments.length; t++) { 49059 var n = arguments[t]; 49060 for (var r in n) 49061 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 49062 } 49063 return e 49064 } 49065 , 49066 $l.apply(this, arguments) 49067} 49068function Mk(e, t) { 49069 var n = Object.keys(e); 49070 if (Object.getOwnPropertySymbols) { 49071 var r = Object.getOwnPropertySymbols(e); 49072 t && (r = r.filter(function(i) { 49073 return Object.getOwnPropertyDescriptor(e, i).enumerable 49074 })), 49075 n.push.apply(n, r) 49076 } 49077 return n 49078} 49079function Nn(e) { 49080 for (var t = 1; t < arguments.length; t++) { 49081 var n = arguments[t] != null ? arguments[t] : {}; 49082 t % 2 ? Mk(Object(n), !0).forEach(function(r) { 49083 hC(e, r, n[r]) 49084 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Mk(Object(n)).forEach(function(r) { 49085 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 49086 }) 49087 } 49088 return e 49089} 49090function qx(e, t) { 49091 if (e == null) 49092 return {}; 49093 var n = uMe(e, t), r, i; 49094 if (Object.getOwnPropertySymbols) { 49095 var o = Object.getOwnPropertySymbols(e); 49096 for (i = 0; i < o.length; i++) 49097 r = o[i], 49098 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 49099 } 49100 return n 49101} 49102function uMe(e, t) { 49103 if (e == null) 49104 return {}; 49105 var n = {}; 49106 for (var r in e) 49107 if (Object.prototype.hasOwnProperty.call(e, r)) { 49108 if (t.indexOf(r) >= 0) 49109 continue; 49110 n[r] = e[r] 49111 } 49112 return n 49113} 49114function dMe(e, t) { 49115 if (!(e instanceof t)) 49116 throw new TypeError("Cannot call a class as a function") 49117} 49118function kk(e, t) { 49119 for (var n = 0; n < t.length; n++) { 49120 var r = t[n]; 49121 r.enumerable = r.enumerable || !1, 49122 r.configurable = !0, 49123 "value"in r && (r.writable = !0), 49124 Object.defineProperty(e, jW(r.key), r) 49125 } 49126} 49127function fMe(e, t, n) { 49128 return t && kk(e.prototype, t), 49129 n && kk(e, n), 49130 Object.defineProperty(e, "prototype", { 49131 writable: !1 49132 }), 49133 e 49134} 49135function hMe(e, t, n) { 49136 return t = ay(t), 49137 pMe(e, EW() ? Reflect.construct(t, n || [], ay(e).constructor) : t.apply(e, n)) 49138} 49139function pMe(e, t) { 49140 if (t && (qc(t) === "object" || typeof t == "function")) 49141 return t; 49142 if (t !== void 0) 49143 throw new TypeError("Derived constructors may only return object or undefined"); 49144 return mMe(e) 49145} 49146function mMe(e) { 49147 if (e === void 0) 49148 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 49149 return e 49150} 49151function EW() { 49152 try { 49153 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 49154 } catch {} 49155 return (EW = function() { 49156 return !!e 49157 } 49158 )() 49159} 49160function ay(e) { 49161 return ay = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 49162 return n.__proto__ || Object.getPrototypeOf(n) 49163 } 49164 , 49165 ay(e) 49166} 49167function gMe(e, t) { 49168 if (typeof t != "function" && t !== null) 49169 throw new TypeError("Super expression must either be null or a function"); 49170 e.prototype = Object.create(t && t.prototype, { 49171 constructor: { 49172 value: e, 49173 writable: !0, 49174 configurable: !0 49175 } 49176 }), 49177 Object.defineProperty(e, "prototype", { 49178 writable: !1 49179 }), 49180 t && gS(e, t) 49181} 49182function gS(e, t) { 49183 return gS = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 49184 return r.__proto__ = i, 49185 r 49186 } 49187 , 49188 gS(e, t) 49189} 49190function hC(e, t, n) { 49191 return t = jW(t), 49192 t in e ? Object.defineProperty(e, t, { 49193 value: n, 49194 enumerable: !0, 49195 configurable: !0, 49196 writable: !0 49197 }) : e[t] = n, 49198 e 49199} 49200function jW(e) { 49201 var t = yMe(e, "string"); 49202 return qc(t) == "symbol" ? t : t + "" 49203} 49204function yMe(e, t) { 49205 if (qc(e) != "object" || !e) 49206 return e; 49207 var n = e[Symbol.toPrimitive]; 49208 if (n !== void 0) { 49209 var r = n.call(e, t || "default"); 49210 if (qc(r) != "object") 49211 return r; 49212 throw new TypeError("@@toPrimitive must return a primitive value.") 49213 } 49214 return (t === "string" ? String : Number)(e) 49215} 49216var d0 = function(e) { 49217 function t(n) { 49218 var r; 49219 return dMe(this, t), 49220 r = hMe(this, t, [n]), 49221 r.state = { 49222 fontSize: "", 49223 letterSpacing: "" 49224 }, 49225 r 49226 } 49227 return gMe(t, e), 49228 fMe(t, [{ 49229 key: "shouldComponentUpdate", 49230 value: function(r, i) { 49231 var o = r.viewBox 49232 , a = qx(r, sMe) 49233 , s = this.props 49234 , l = s.viewBox 49235 , c = qx(s, lMe); 49236 return !Ql(o, l) || !Ql(a, c) || !Ql(i, this.state) 49237 } 49238 }, { 49239 key: "componentDidMount", 49240 value: function() { 49241 var r = this.layerReference; 49242 if (r) { 49243 var i = r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0]; 49244 i && this.setState({ 49245 fontSize: window.getComputedStyle(i).fontSize, 49246 letterSpacing: window.getComputedStyle(i).letterSpacing 49247 }) 49248 } 49249 } 49250 }, { 49251 key: "getTickLineCoord", 49252 value: function(r) { 49253 var i = this.props, o = i.x, a = i.y, s = i.width, l = i.height, c = i.orientation, u = i.tickSize, d = i.mirror, f = i.tickMargin, p, g, m, x, v, y, w = d ? -1 : 1, P = r.tickSize || u, S = le(r.tickCoord) ? r.tickCoord : r.coordinate; 49254 switch (c) { 49255 case "top": 49256 p = g = r.coordinate, 49257 x = a + +!d * l, 49258 m = x - w * P, 49259 y = m - w * f, 49260 v = S; 49261 break; 49262 case "left": 49263 m = x = r.coordinate, 49264 g = o + +!d * s, 49265 p = g - w * P, 49266 v = p - w * f, 49267 y = S; 49268 break; 49269 case "right": 49270 m = x = r.coordinate, 49271 g = o + +d * s, 49272 p = g + w * P, 49273 v = p + w * f, 49274 y = S; 49275 break; 49276 default: 49277 p = g = r.coordinate, 49278 x = a + +d * l, 49279 m = x + w * P, 49280 y = m + w * f, 49281 v = S; 49282 break 49283 } 49284 return { 49285 line: { 49286 x1: p, 49287 y1: m, 49288 x2: g, 49289 y2: x 49290 }, 49291 tick: { 49292 x: v, 49293 y 49294 } 49295 } 49296 } 49297 }, { 49298 key: "getTickTextAnchor", 49299 value: function() { 49300 var r = this.props, i = r.orientation, o = r.mirror, a; 49301 switch (i) { 49302 case "left": 49303 a = o ? "start" : "end"; 49304 break; 49305 case "right": 49306 a = o ? "end" : "start"; 49307 break; 49308 default: 49309 a = "middle"; 49310 break 49311 } 49312 return a 49313 } 49314 }, { 49315 key: "getTickVerticalAnchor", 49316 value: function() { 49317 var r = this.props 49318 , i = r.orientation 49319 , o = r.mirror 49320 , a = "end"; 49321 switch (i) { 49322 case "left": 49323 case "right": 49324 a = "middle"; 49325 break; 49326 case "top": 49327 a = o ? "start" : "end"; 49328 break; 49329 default: 49330 a = o ? "end" : "start"; 49331 break 49332 } 49333 return a 49334 } 49335 }, { 49336 key: "renderAxisLine", 49337 value: function() { 49338 var r = this.props 49339 , i = r.x 49340 , o = r.y 49341 , a = r.width 49342 , s = r.height 49343 , l = r.orientation 49344 , c = r.mirror 49345 , u = r.axisLine 49346 , d = Nn(Nn(Nn({}, Je(this.props, !1)), Je(u, !1)), {}, { 49347 fill: "none" 49348 }); 49349 if (l === "top" || l === "bottom") { 49350 var f = +(l === "top" && !c || l === "bottom" && c); 49351 d = Nn(Nn({}, d), {}, { 49352 x1: i, 49353 y1: o + f * s, 49354 x2: i + a, 49355 y2: o + f * s 49356 }) 49357 } else { 49358 var p = +(l === "left" && !c || l === "right" && c); 49359 d = Nn(Nn({}, d), {}, { 49360 x1: i + p * a, 49361 y1: o, 49362 x2: i + p * a, 49363 y2: o + s 49364 }) 49365 } 49366 return k.createElement("line", $l({}, d, { 49367 className: Ge("recharts-cartesian-axis-line", Lr(u, "className")) 49368 })) 49369 } 49370 }, { 49371 key: "renderTicks", 49372 value: function(r, i, o) { 49373 var a = this 49374 , s = this.props 49375 , l = s.tickLine 49376 , c = s.stroke 49377 , u = s.tick 49378 , d = s.tickFormatter 49379 , f = s.unit 49380 , p = aMe(Nn(Nn({}, this.props), {}, { 49381 ticks: r 49382 }), i, o) 49383 , g = this.getTickTextAnchor() 49384 , m = this.getTickVerticalAnchor() 49385 , x = Je(this.props, !1) 49386 , v = Je(u, !1) 49387 , y = Nn(Nn({}, x), {}, { 49388 fill: "none" 49389 }, Je(l, !1)) 49390 , w = p.map(function(P, S) { 49391 var _ = a.getTickLineCoord(P) 49392 , T = _.line 49393 , C = _.tick 49394 , O = Nn(Nn(Nn(Nn({ 49395 textAnchor: g, 49396 verticalAnchor: m 49397 }, x), {}, { 49398 stroke: "none", 49399 fill: c 49400 }, v), C), {}, { 49401 index: S, 49402 payload: P, 49403 visibleTicksCount: p.length, 49404 tickFormatter: d 49405 }); 49406 return k.createElement(ln, $l({ 49407 className: "recharts-cartesian-axis-tick", 49408 key: "tick-".concat(P.value, "-").concat(P.coordinate, "-").concat(P.tickCoord) 49409 }, pg(a.props, P, S)), l && k.createElement("line", $l({}, y, T, { 49410 className: Ge("recharts-cartesian-axis-tick-line", Lr(l, "className")) 49411 })), u && t.renderTickItem(u, O, "".concat(qe(d) ? d(P.value, S) : P.value).concat(f || ""))) 49412 }); 49413 return k.createElement("g", { 49414 className: "recharts-cartesian-axis-ticks" 49415 }, w) 49416 } 49417 }, { 49418 key: "render", 49419 value: function() { 49420 var r = this 49421 , i = this.props 49422 , o = i.axisLine 49423 , a = i.width 49424 , s = i.height 49425 , l = i.ticksGenerator 49426 , c = i.className 49427 , u = i.hide; 49428 if (u) 49429 return null; 49430 var d = this.props 49431 , f = d.ticks 49432 , p = qx(d, cMe) 49433 , g = f; 49434 return qe(l) && (g = f && f.length > 0 ? l(this.props) : l(p)), 49435 a <= 0 || s <= 0 || !g || !g.length ? null : k.createElement(ln, { 49436 className: Ge("recharts-cartesian-axis", c), 49437 ref: function(x) { 49438 r.layerReference = x 49439 } 49440 }, o && this.renderAxisLine(), this.renderTicks(g, this.state.fontSize, this.state.letterSpacing), On.renderCallByParent(this.props)) 49441 } 49442 }], [{ 49443 key: "renderTickItem", 49444 value: function(r, i, o) { 49445 var a; 49446 return k.isValidElement(r) ? a = k.cloneElement(r, i) : qe(r) ? a = r(i) : a = k.createElement(Ag, $l({}, i, { 49447 className: "recharts-cartesian-axis-tick-value" 49448 }), o), 49449 a 49450 } 49451 }]) 49452}(b.Component); 49453hC(d0, "displayName", "CartesianAxis"); 49454hC(d0, "defaultProps", { 49455 x: 0, 49456 y: 0, 49457 width: 0, 49458 height: 0, 49459 viewBox: { 49460 x: 0, 49461 y: 0, 49462 width: 0, 49463 height: 0 49464 }, 49465 orientation: "bottom", 49466 ticks: [], 49467 stroke: "#666", 49468 tickLine: !0, 49469 axisLine: !0, 49470 tick: !0, 49471 mirror: !1, 49472 minTickGap: 5, 49473 tickSize: 6, 49474 tickMargin: 2, 49475 interval: "preserveEnd" 49476}); 49477function Kc(e) { 49478 "@babel/helpers - typeof"; 49479 return Kc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 49480 return typeof t 49481 } 49482 : function(t) { 49483 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 49484 } 49485 , 49486 Kc(e) 49487} 49488function vMe(e, t) { 49489 if (!(e instanceof t)) 49490 throw new TypeError("Cannot call a class as a function") 49491} 49492function xMe(e, t) { 49493 for (var n = 0; n < t.length; n++) { 49494 var r = t[n]; 49495 r.enumerable = r.enumerable || !1, 49496 r.configurable = !0, 49497 "value"in r && (r.writable = !0), 49498 Object.defineProperty(e, kW(r.key), r) 49499 } 49500} 49501function bMe(e, t, n) { 49502 return t && xMe(e.prototype, t), 49503 Object.defineProperty(e, "prototype", { 49504 writable: !1 49505 }), 49506 e 49507} 49508function wMe(e, t, n) { 49509 return t = sy(t), 49510 SMe(e, NW() ? Reflect.construct(t, n || [], sy(e).constructor) : t.apply(e, n)) 49511} 49512function SMe(e, t) { 49513 if (t && (Kc(t) === "object" || typeof t == "function")) 49514 return t; 49515 if (t !== void 0) 49516 throw new TypeError("Derived constructors may only return object or undefined"); 49517 return PMe(e) 49518} 49519function PMe(e) { 49520 if (e === void 0) 49521 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 49522 return e 49523} 49524function NW() { 49525 try { 49526 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 49527 } catch {} 49528 return (NW = function() { 49529 return !!e 49530 } 49531 )() 49532} 49533function sy(e) { 49534 return sy = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 49535 return n.__proto__ || Object.getPrototypeOf(n) 49536 } 49537 , 49538 sy(e) 49539} 49540function _Me(e, t) { 49541 if (typeof t != "function" && t !== null) 49542 throw new TypeError("Super expression must either be null or a function"); 49543 e.prototype = Object.create(t && t.prototype, { 49544 constructor: { 49545 value: e, 49546 writable: !0, 49547 configurable: !0 49548 } 49549 }), 49550 Object.defineProperty(e, "prototype", { 49551 writable: !1 49552 }), 49553 t && yS(e, t) 49554} 49555function yS(e, t) { 49556 return yS = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 49557 return r.__proto__ = i, 49558 r 49559 } 49560 , 49561 yS(e, t) 49562} 49563function MW(e, t, n) { 49564 return t = kW(t), 49565 t in e ? Object.defineProperty(e, t, { 49566 value: n, 49567 enumerable: !0, 49568 configurable: !0, 49569 writable: !0 49570 }) : e[t] = n, 49571 e 49572} 49573function kW(e) { 49574 var t = TMe(e, "string"); 49575 return Kc(t) == "symbol" ? t : t + "" 49576} 49577function TMe(e, t) { 49578 if (Kc(e) != "object" || !e) 49579 return e; 49580 var n = e[Symbol.toPrimitive]; 49581 if (n !== void 0) { 49582 var r = n.call(e, t || "default"); 49583 if (Kc(r) != "object") 49584 return r; 49585 throw new TypeError("@@toPrimitive must return a primitive value.") 49586 } 49587 return (t === "string" ? String : Number)(e) 49588} 49589function vS() { 49590 return vS = Object.assign ? Object.assign.bind() : function(e) { 49591 for (var t = 1; t < arguments.length; t++) { 49592 var n = arguments[t]; 49593 for (var r in n) 49594 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 49595 } 49596 return e 49597 } 49598 , 49599 vS.apply(this, arguments) 49600} 49601function CMe(e) { 49602 var t = e.xAxisId 49603 , n = bW() 49604 , r = wW() 49605 , i = vW(t); 49606 return i == null ? null : k.createElement(d0, vS({}, i, { 49607 className: Ge("recharts-".concat(i.axisType, " ").concat(i.axisType), i.className), 49608 viewBox: { 49609 x: 0, 49610 y: 0, 49611 width: n, 49612 height: r 49613 }, 49614 ticksGenerator: function(a) { 49615 return ms(a, !0) 49616 } 49617 })) 49618} 49619var f0 = function(e) { 49620 function t() { 49621 return vMe(this, t), 49622 wMe(this, t, arguments) 49623 } 49624 return _Me(t, e), 49625 bMe(t, [{ 49626 key: "render", 49627 value: function() { 49628 return k.createElement(CMe, this.props) 49629 } 49630 }]) 49631}(k.Component); 49632MW(f0, "displayName", "XAxis"); 49633MW(f0, "defaultProps", { 49634 allowDecimals: !0, 49635 hide: !1, 49636 orientation: "bottom", 49637 width: 0, 49638 height: 30, 49639 mirror: !1, 49640 xAxisId: 0, 49641 tickCount: 5, 49642 type: "category", 49643 padding: { 49644 left: 0, 49645 right: 0 49646 }, 49647 allowDataOverflow: !1, 49648 scale: "auto", 49649 reversed: !1, 49650 allowDuplicatedCategory: !0 49651}); 49652function Gc(e) { 49653 "@babel/helpers - typeof"; 49654 return Gc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 49655 return typeof t 49656 } 49657 : function(t) { 49658 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 49659 } 49660 , 49661 Gc(e) 49662} 49663function OMe(e, t) { 49664 if (!(e instanceof t)) 49665 throw new TypeError("Cannot call a class as a function") 49666} 49667function AMe(e, t) { 49668 for (var n = 0; n < t.length; n++) { 49669 var r = t[n]; 49670 r.enumerable = r.enumerable || !1, 49671 r.configurable = !0, 49672 "value"in r && (r.writable = !0), 49673 Object.defineProperty(e, IW(r.key), r) 49674 } 49675} 49676function EMe(e, t, n) { 49677 return t && AMe(e.prototype, t), 49678 Object.defineProperty(e, "prototype", { 49679 writable: !1 49680 }), 49681 e 49682} 49683function jMe(e, t, n) { 49684 return t = ly(t), 49685 NMe(e, RW() ? Reflect.construct(t, n || [], ly(e).constructor) : t.apply(e, n)) 49686} 49687function NMe(e, t) { 49688 if (t && (Gc(t) === "object" || typeof t == "function")) 49689 return t; 49690 if (t !== void 0) 49691 throw new TypeError("Derived constructors may only return object or undefined"); 49692 return MMe(e) 49693} 49694function MMe(e) { 49695 if (e === void 0) 49696 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 49697 return e 49698} 49699function RW() { 49700 try { 49701 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 49702 } catch {} 49703 return (RW = function() { 49704 return !!e 49705 } 49706 )() 49707} 49708function ly(e) { 49709 return ly = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 49710 return n.__proto__ || Object.getPrototypeOf(n) 49711 } 49712 , 49713 ly(e) 49714} 49715function kMe(e, t) { 49716 if (typeof t != "function" && t !== null) 49717 throw new TypeError("Super expression must either be null or a function"); 49718 e.prototype = Object.create(t && t.prototype, { 49719 constructor: { 49720 value: e, 49721 writable: !0, 49722 configurable: !0 49723 } 49724 }), 49725 Object.defineProperty(e, "prototype", { 49726 writable: !1 49727 }), 49728 t && xS(e, t) 49729} 49730function xS(e, t) { 49731 return xS = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 49732 return r.__proto__ = i, 49733 r 49734 } 49735 , 49736 xS(e, t) 49737} 49738function DW(e, t, n) { 49739 return t = IW(t), 49740 t in e ? Object.defineProperty(e, t, { 49741 value: n, 49742 enumerable: !0, 49743 configurable: !0, 49744 writable: !0 49745 }) : e[t] = n, 49746 e 49747} 49748function IW(e) { 49749 var t = RMe(e, "string"); 49750 return Gc(t) == "symbol" ? t : t + "" 49751} 49752function RMe(e, t) { 49753 if (Gc(e) != "object" || !e) 49754 return e; 49755 var n = e[Symbol.toPrimitive]; 49756 if (n !== void 0) { 49757 var r = n.call(e, t || "default"); 49758 if (Gc(r) != "object") 49759 return r; 49760 throw new TypeError("@@toPrimitive must return a primitive value.") 49761 } 49762 return (t === "string" ? String : Number)(e) 49763} 49764function bS() { 49765 return bS = Object.assign ? Object.assign.bind() : function(e) { 49766 for (var t = 1; t < arguments.length; t++) { 49767 var n = arguments[t]; 49768 for (var r in n) 49769 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 49770 } 49771 return e 49772 } 49773 , 49774 bS.apply(this, arguments) 49775} 49776var DMe = function(t) { 49777 var n = t.yAxisId 49778 , r = bW() 49779 , i = wW() 49780 , o = xW(n); 49781 return o == null ? null : k.createElement(d0, bS({}, o, { 49782 className: Ge("recharts-".concat(o.axisType, " ").concat(o.axisType), o.className), 49783 viewBox: { 49784 x: 0, 49785 y: 0, 49786 width: r, 49787 height: i 49788 }, 49789 ticksGenerator: function(s) { 49790 return ms(s, !0) 49791 } 49792 })) 49793} 49794 , h0 = function(e) { 49795 function t() { 49796 return OMe(this, t), 49797 jMe(this, t, arguments) 49798 } 49799 return kMe(t, e), 49800 EMe(t, [{ 49801 key: "render", 49802 value: function() { 49803 return k.createElement(DMe, this.props) 49804 } 49805 }]) 49806}(k.Component); 49807DW(h0, "displayName", "YAxis"); 49808DW(h0, "defaultProps", { 49809 allowDuplicatedCategory: !0, 49810 allowDecimals: !0, 49811 hide: !1, 49812 orientation: "left", 49813 width: 60, 49814 height: 0, 49815 mirror: !1, 49816 yAxisId: 0, 49817 tickCount: 5, 49818 type: "number", 49819 padding: { 49820 top: 0, 49821 bottom: 0 49822 }, 49823 allowDataOverflow: !1, 49824 scale: "auto", 49825 reversed: !1 49826}); 49827function Rk(e) { 49828 return FMe(e) || LMe(e) || $Me(e) || IMe() 49829} 49830function IMe() { 49831 throw new TypeError(`Invalid attempt to spread non-iterable instance. 49832In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 49833} 49834function $Me(e, t) { 49835 if (e) { 49836 if (typeof e == "string") 49837 return wS(e, t); 49838 var n = Object.prototype.toString.call(e).slice(8, -1); 49839 if (n === "Object" && e.constructor && (n = e.constructor.name), 49840 n === "Map" || n === "Set") 49841 return Array.from(e); 49842 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 49843 return wS(e, t) 49844 } 49845} 49846function LMe(e) { 49847 if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) 49848 return Array.from(e) 49849} 49850function FMe(e) { 49851 if (Array.isArray(e)) 49852 return wS(e) 49853} 49854function wS(e, t) { 49855 (t == null || t > e.length) && (t = e.length); 49856 for (var n = 0, r = new Array(t); n < t; n++) 49857 r[n] = e[n]; 49858 return r 49859} 49860var SS = function(t, n, r, i, o) { 49861 var a = di(t, fC) 49862 , s = di(t, l0) 49863 , l = [].concat(Rk(a), Rk(s)) 49864 , c = di(t, u0) 49865 , u = "".concat(i, "Id") 49866 , d = i[0] 49867 , f = n; 49868 if (l.length && (f = l.reduce(function(m, x) { 49869 if (x.props[u] === r && Bi(x.props, "extendDomain") && le(x.props[d])) { 49870 var v = x.props[d]; 49871 return [Math.min(m[0], v), Math.max(m[1], v)] 49872 } 49873 return m 49874 }, f)), 49875 c.length) { 49876 var p = "".concat(d, "1") 49877 , g = "".concat(d, "2"); 49878 f = c.reduce(function(m, x) { 49879 if (x.props[u] === r && Bi(x.props, "extendDomain") && le(x.props[p]) && le(x.props[g])) { 49880 var v = x.props[p] 49881 , y = x.props[g]; 49882 return [Math.min(m[0], v, y), Math.max(m[1], v, y)] 49883 } 49884 return m 49885 }, f) 49886 } 49887 return o && o.length && (f = o.reduce(function(m, x) { 49888 return le(x) ? [Math.min(m[0], x), Math.max(m[1], x)] : m 49889 }, f)), 49890 f 49891} 49892 , $W = { 49893 exports: {} 49894}; 49895(function(e) { 49896 var t = Object.prototype.hasOwnProperty 49897 , n = "~"; 49898 function r() {} 49899 Object.create && (r.prototype = Object.create(null), 49900 new r().__proto__ || (n = !1)); 49901 function i(l, c, u) { 49902 this.fn = l, 49903 this.context = c, 49904 this.once = u || !1 49905 } 49906 function o(l, c, u, d, f) { 49907 if (typeof u != "function") 49908 throw new TypeError("The listener must be a function"); 49909 var p = new i(u,d || l,f) 49910 , g = n ? n + c : c; 49911 return l._events[g] ? l._events[g].fn ? l._events[g] = [l._events[g], p] : l._events[g].push(p) : (l._events[g] = p, 49912 l._eventsCount++), 49913 l 49914 } 49915 function a(l, c) { 49916 --l._eventsCount === 0 ? l._events = new r : delete l._events[c] 49917 } 49918 function s() { 49919 this._events = new r, 49920 this._eventsCount = 0 49921 } 49922 s.prototype.eventNames = function() { 49923 var c = [], u, d; 49924 if (this._eventsCount === 0) 49925 return c; 49926 for (d in u = this._events) 49927 t.call(u, d) && c.push(n ? d.slice(1) : d); 49928 return Object.getOwnPropertySymbols ? c.concat(Object.getOwnPropertySymbols(u)) : c 49929 } 49930 , 49931 s.prototype.listeners = function(c) { 49932 var u = n ? n + c : c 49933 , d = this._events[u]; 49934 if (!d) 49935 return []; 49936 if (d.fn) 49937 return [d.fn]; 49938 for (var f = 0, p = d.length, g = new Array(p); f < p; f++) 49939 g[f] = d[f].fn; 49940 return g 49941 } 49942 , 49943 s.prototype.listenerCount = function(c) { 49944 var u = n ? n + c : c 49945 , d = this._events[u]; 49946 return d ? d.fn ? 1 : d.length : 0 49947 } 49948 , 49949 s.prototype.emit = function(c, u, d, f, p, g) { 49950 var m = n ? n + c : c; 49951 if (!this._events[m]) 49952 return !1; 49953 var x = this._events[m], v = arguments.length, y, w; 49954 if (x.fn) { 49955 switch (x.once && this.removeListener(c, x.fn, void 0, !0), 49956 v) { 49957 case 1: 49958 return x.fn.call(x.context), 49959 !0; 49960 case 2: 49961 return x.fn.call(x.context, u), 49962 !0; 49963 case 3: 49964 return x.fn.call(x.context, u, d), 49965 !0; 49966 case 4: 49967 return x.fn.call(x.context, u, d, f), 49968 !0; 49969 case 5: 49970 return x.fn.call(x.context, u, d, f, p), 49971 !0; 49972 case 6: 49973 return x.fn.call(x.context, u, d, f, p, g), 49974 !0 49975 } 49976 for (w = 1, 49977 y = new Array(v - 1); w < v; w++) 49978 y[w - 1] = arguments[w]; 49979 x.fn.apply(x.context, y) 49980 } else { 49981 var P = x.length, S; 49982 for (w = 0; w < P; w++) 49983 switch (x[w].once && this.removeListener(c, x[w].fn, void 0, !0), 49984 v) { 49985 case 1: 49986 x[w].fn.call(x[w].context); 49987 break; 49988 case 2: 49989 x[w].fn.call(x[w].context, u); 49990 break; 49991 case 3: 49992 x[w].fn.call(x[w].context, u, d); 49993 break; 49994 case 4: 49995 x[w].fn.call(x[w].context, u, d, f); 49996 break; 49997 default: 49998 if (!y) 49999 for (S = 1, 50000 y = new Array(v - 1); S < v; S++) 50001 y[S - 1] = arguments[S]; 50002 x[w].fn.apply(x[w].context, y) 50003 } 50004 } 50005 return !0 50006 } 50007 , 50008 s.prototype.on = function(c, u, d) { 50009 return o(this, c, u, d, !1) 50010 } 50011 , 50012 s.prototype.once = function(c, u, d) { 50013 return o(this, c, u, d, !0) 50014 } 50015 , 50016 s.prototype.removeListener = function(c, u, d, f) { 50017 var p = n ? n + c : c; 50018 if (!this._events[p]) 50019 return this; 50020 if (!u) 50021 return a(this, p), 50022 this; 50023 var g = this._events[p]; 50024 if (g.fn) 50025 g.fn === u && (!f || g.once) && (!d || g.context === d) && a(this, p); 50026 else { 50027 for (var m = 0, x = [], v = g.length; m < v; m++) 50028 (g[m].fn !== u || f && !g[m].once || d && g[m].context !== d) && x.push(g[m]); 50029 x.length ? this._events[p] = x.length === 1 ? x[0] : x : a(this, p) 50030 } 50031 return this 50032 } 50033 , 50034 s.prototype.removeAllListeners = function(c) { 50035 var u; 50036 return c ? (u = n ? n + c : c, 50037 this._events[u] && a(this, u)) : (this._events = new r, 50038 this._eventsCount = 0), 50039 this 50040 } 50041 , 50042 s.prototype.off = s.prototype.removeListener, 50043 s.prototype.addListener = s.prototype.on, 50044 s.prefixed = n, 50045 s.EventEmitter = s, 50046 e.exports = s 50047} 50048)($W); 50049var BMe = $W.exports; 50050const VMe = lt(BMe); 50051var Kx = new VMe 50052 , Gx = "recharts.syncMouseEvents"; 50053function Qf(e) { 50054 "@babel/helpers - typeof"; 50055 return Qf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 50056 return typeof t 50057 } 50058 : function(t) { 50059 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 50060 } 50061 , 50062 Qf(e) 50063} 50064function UMe(e, t) { 50065 if (!(e instanceof t)) 50066 throw new TypeError("Cannot call a class as a function") 50067} 50068function zMe(e, t) { 50069 for (var n = 0; n < t.length; n++) { 50070 var r = t[n]; 50071 r.enumerable = r.enumerable || !1, 50072 r.configurable = !0, 50073 "value"in r && (r.writable = !0), 50074 Object.defineProperty(e, LW(r.key), r) 50075 } 50076} 50077function WMe(e, t, n) { 50078 return t && zMe(e.prototype, t), 50079 Object.defineProperty(e, "prototype", { 50080 writable: !1 50081 }), 50082 e 50083} 50084function Yx(e, t, n) { 50085 return t = LW(t), 50086 t in e ? Object.defineProperty(e, t, { 50087 value: n, 50088 enumerable: !0, 50089 configurable: !0, 50090 writable: !0 50091 }) : e[t] = n, 50092 e 50093} 50094function LW(e) { 50095 var t = HMe(e, "string"); 50096 return Qf(t) == "symbol" ? t : t + "" 50097} 50098function HMe(e, t) { 50099 if (Qf(e) != "object" || !e) 50100 return e; 50101 var n = e[Symbol.toPrimitive]; 50102 if (n !== void 0) { 50103 var r = n.call(e, t); 50104 if (Qf(r) != "object") 50105 return r; 50106 throw new TypeError("@@toPrimitive must return a primitive value.") 50107 } 50108 return String(e) 50109} 50110var qMe = function() { 50111 function e() { 50112 UMe(this, e), 50113 Yx(this, "activeIndex", 0), 50114 Yx(this, "coordinateList", []), 50115 Yx(this, "layout", "horizontal") 50116 } 50117 return WMe(e, [{ 50118 key: "setDetails", 50119 value: function(n) { 50120 var r, i = n.coordinateList, o = i === void 0 ? null : i, a = n.container, s = a === void 0 ? null : a, l = n.layout, c = l === void 0 ? null : l, u = n.offset, d = u === void 0 ? null : u, f = n.mouseHandlerCallback, p = f === void 0 ? null : f; 50121 this.coordinateList = (r = o ?? this.coordinateList) !== null && r !== void 0 ? r : [], 50122 this.container = s ?? this.container, 50123 this.layout = c ?? this.layout, 50124 this.offset = d ?? this.offset, 50125 this.mouseHandlerCallback = p ?? this.mouseHandlerCallback, 50126 this.activeIndex = Math.min(Math.max(this.activeIndex, 0), this.coordinateList.length - 1) 50127 } 50128 }, { 50129 key: "focus", 50130 value: function() { 50131 this.spoofMouse() 50132 } 50133 }, { 50134 key: "keyboardEvent", 50135 value: function(n) { 50136 if (this.coordinateList.length !== 0) 50137 switch (n.key) { 50138 case "ArrowRight": 50139 { 50140 if (this.layout !== "horizontal") 50141 return; 50142 this.activeIndex = Math.min(this.activeIndex + 1, this.coordinateList.length - 1), 50143 this.spoofMouse(); 50144 break 50145 } 50146 case "ArrowLeft": 50147 { 50148 if (this.layout !== "horizontal") 50149 return; 50150 this.activeIndex = Math.max(this.activeIndex - 1, 0), 50151 this.spoofMouse(); 50152 break 50153 } 50154 } 50155 } 50156 }, { 50157 key: "setIndex", 50158 value: function(n) { 50159 this.activeIndex = n 50160 } 50161 }, { 50162 key: "spoofMouse", 50163 value: function() { 50164 var n, r; 50165 if (this.layout === "horizontal" && this.coordinateList.length !== 0) { 50166 var i = this.container.getBoundingClientRect() 50167 , o = i.x 50168 , a = i.y 50169 , s = i.height 50170 , l = this.coordinateList[this.activeIndex].coordinate 50171 , c = ((n = window) === null || n === void 0 ? void 0 : n.scrollX) || 0 50172 , u = ((r = window) === null || r === void 0 ? void 0 : r.scrollY) || 0 50173 , d = o + l + c 50174 , f = a + this.offset.top + s / 2 + u; 50175 this.mouseHandlerCallback({ 50176 pageX: d, 50177 pageY: f 50178 }) 50179 } 50180 } 50181 }]) 50182}(); 50183function KMe(e, t, n) { 50184 if (n === "number" && t === !0 && Array.isArray(e)) { 50185 var r = e == null ? void 0 : e[0] 50186 , i = e == null ? void 0 : e[1]; 50187 if (r && i && le(r) && le(i)) 50188 return !0 50189 } 50190 return !1 50191} 50192function GMe(e, t, n, r) { 50193 var i = r / 2; 50194 return { 50195 stroke: "none", 50196 fill: "#ccc", 50197 x: e === "horizontal" ? t.x - i : n.left + .5, 50198 y: e === "horizontal" ? n.top + .5 : t.y - i, 50199 width: e === "horizontal" ? r : n.width - 1, 50200 height: e === "horizontal" ? n.height - 1 : r 50201 } 50202} 50203function FW(e) { 50204 var t = e.cx 50205 , n = e.cy 50206 , r = e.radius 50207 , i = e.startAngle 50208 , o = e.endAngle 50209 , a = vn(t, n, r, i) 50210 , s = vn(t, n, r, o); 50211 return { 50212 points: [a, s], 50213 cx: t, 50214 cy: n, 50215 radius: r, 50216 startAngle: i, 50217 endAngle: o 50218 } 50219} 50220function YMe(e, t, n) { 50221 var r, i, o, a; 50222 if (e === "horizontal") 50223 r = t.x, 50224 o = r, 50225 i = n.top, 50226 a = n.top + n.height; 50227 else if (e === "vertical") 50228 i = t.y, 50229 a = i, 50230 r = n.left, 50231 o = n.left + n.width; 50232 else if (t.cx != null && t.cy != null) 50233 if (e === "centric") { 50234 var s = t.cx 50235 , l = t.cy 50236 , c = t.innerRadius 50237 , u = t.outerRadius 50238 , d = t.angle 50239 , f = vn(s, l, c, d) 50240 , p = vn(s, l, u, d); 50241 r = f.x, 50242 i = f.y, 50243 o = p.x, 50244 a = p.y 50245 } else 50246 return FW(t); 50247 return [{ 50248 x: r, 50249 y: i 50250 }, { 50251 x: o, 50252 y: a 50253 }] 50254} 50255function Zf(e) { 50256 "@babel/helpers - typeof"; 50257 return Zf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 50258 return typeof t 50259 } 50260 : function(t) { 50261 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 50262 } 50263 , 50264 Zf(e) 50265} 50266function Dk(e, t) { 50267 var n = Object.keys(e); 50268 if (Object.getOwnPropertySymbols) { 50269 var r = Object.getOwnPropertySymbols(e); 50270 t && (r = r.filter(function(i) { 50271 return Object.getOwnPropertyDescriptor(e, i).enumerable 50272 })), 50273 n.push.apply(n, r) 50274 } 50275 return n 50276} 50277function Wp(e) { 50278 for (var t = 1; t < arguments.length; t++) { 50279 var n = arguments[t] != null ? arguments[t] : {}; 50280 t % 2 ? Dk(Object(n), !0).forEach(function(r) { 50281 XMe(e, r, n[r]) 50282 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Dk(Object(n)).forEach(function(r) { 50283 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 50284 }) 50285 } 50286 return e 50287} 50288function XMe(e, t, n) { 50289 return t = QMe(t), 50290 t in e ? Object.defineProperty(e, t, { 50291 value: n, 50292 enumerable: !0, 50293 configurable: !0, 50294 writable: !0 50295 }) : e[t] = n, 50296 e 50297} 50298function QMe(e) { 50299 var t = ZMe(e, "string"); 50300 return Zf(t) == "symbol" ? t : t + "" 50301} 50302function ZMe(e, t) { 50303 if (Zf(e) != "object" || !e) 50304 return e; 50305 var n = e[Symbol.toPrimitive]; 50306 if (n !== void 0) { 50307 var r = n.call(e, t || "default"); 50308 if (Zf(r) != "object") 50309 return r; 50310 throw new TypeError("@@toPrimitive must return a primitive value.") 50311 } 50312 return (t === "string" ? String : Number)(e) 50313} 50314function JMe(e) { 50315 var t, n, r = e.element, i = e.tooltipEventType, o = e.isActive, a = e.activeCoordinate, s = e.activePayload, l = e.offset, c = e.activeTooltipIndex, u = e.tooltipAxisBandSize, d = e.layout, f = e.chartName, p = (t = r.props.cursor) !== null && t !== void 0 ? t : (n = r.type.defaultProps) === null || n === void 0 ? void 0 : n.cursor; 50316 if (!r || !p || !o || !a || f !== "ScatterChart" && i !== "axis") 50317 return null; 50318 var g, m = RM; 50319 if (f === "ScatterChart") 50320 g = a, 50321 m = zAe; 50322 else if (f === "BarChart") 50323 g = GMe(d, a, l, u), 50324 m = cC; 50325 else if (d === "radial") { 50326 var x = FW(a) 50327 , v = x.cx 50328 , y = x.cy 50329 , w = x.radius 50330 , P = x.startAngle 50331 , S = x.endAngle; 50332 g = { 50333 cx: v, 50334 cy: y, 50335 startAngle: P, 50336 endAngle: S, 50337 innerRadius: w, 50338 outerRadius: w 50339 }, 50340 m = zz 50341 } else 50342 g = { 50343 points: YMe(d, a, l) 50344 }, 50345 m = RM; 50346 var _ = Wp(Wp(Wp(Wp({ 50347 stroke: "#ccc", 50348 pointerEvents: "none" 50349 }, l), g), Je(p, !1)), {}, { 50350 payload: s, 50351 payloadIndex: c, 50352 className: Ge("recharts-tooltip-cursor", p.className) 50353 }); 50354 return b.isValidElement(p) ? b.cloneElement(p, _) : b.createElement(m, _) 50355} 50356var eke = ["item"] 50357 , tke = ["children", "className", "width", "height", "style", "compact", "title", "desc"]; 50358function Yc(e) { 50359 "@babel/helpers - typeof"; 50360 return Yc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { 50361 return typeof t 50362 } 50363 : function(t) { 50364 return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 50365 } 50366 , 50367 Yc(e) 50368} 50369function Ll() { 50370 return Ll = Object.assign ? Object.assign.bind() : function(e) { 50371 for (var t = 1; t < arguments.length; t++) { 50372 var n = arguments[t]; 50373 for (var r in n) 50374 Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) 50375 } 50376 return e 50377 } 50378 , 50379 Ll.apply(this, arguments) 50380} 50381function Ik(e, t) { 50382 return ike(e) || rke(e, t) || VW(e, t) || nke() 50383} 50384function nke() { 50385 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 50386In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 50387} 50388function rke(e, t) { 50389 var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; 50390 if (n != null) { 50391 var r, i, o, a, s = [], l = !0, c = !1; 50392 try { 50393 if (o = (n = n.call(e)).next, 50394 t !== 0) 50395 for (; !(l = (r = o.call(n)).done) && (s.push(r.value), 50396 s.length !== t); l = !0) 50397 ; 50398 } catch (u) { 50399 c = !0, 50400 i = u 50401 } finally { 50402 try { 50403 if (!l && n.return != null && (a = n.return(), 50404 Object(a) !== a)) 50405 return 50406 } finally { 50407 if (c) 50408 throw i 50409 } 50410 } 50411 return s 50412 } 50413} 50414function ike(e) { 50415 if (Array.isArray(e)) 50416 return e 50417} 50418function $k(e, t) { 50419 if (e == null) 50420 return {}; 50421 var n = oke(e, t), r, i; 50422 if (Object.getOwnPropertySymbols) { 50423 var o = Object.getOwnPropertySymbols(e); 50424 for (i = 0; i < o.length; i++) 50425 r = o[i], 50426 !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]) 50427 } 50428 return n 50429} 50430function oke(e, t) { 50431 if (e == null) 50432 return {}; 50433 var n = {}; 50434 for (var r in e) 50435 if (Object.prototype.hasOwnProperty.call(e, r)) { 50436 if (t.indexOf(r) >= 0) 50437 continue; 50438 n[r] = e[r] 50439 } 50440 return n 50441} 50442function ake(e, t) { 50443 if (!(e instanceof t)) 50444 throw new TypeError("Cannot call a class as a function") 50445} 50446function ske(e, t) { 50447 for (var n = 0; n < t.length; n++) { 50448 var r = t[n]; 50449 r.enumerable = r.enumerable || !1, 50450 r.configurable = !0, 50451 "value"in r && (r.writable = !0), 50452 Object.defineProperty(e, UW(r.key), r) 50453 } 50454} 50455function lke(e, t, n) { 50456 return t && ske(e.prototype, t), 50457 Object.defineProperty(e, "prototype", { 50458 writable: !1 50459 }), 50460 e 50461} 50462function cke(e, t, n) { 50463 return t = cy(t), 50464 uke(e, BW() ? Reflect.construct(t, n || [], cy(e).constructor) : t.apply(e, n)) 50465} 50466function uke(e, t) { 50467 if (t && (Yc(t) === "object" || typeof t == "function")) 50468 return t; 50469 if (t !== void 0) 50470 throw new TypeError("Derived constructors may only return object or undefined"); 50471 return dke(e) 50472} 50473function dke(e) { 50474 if (e === void 0) 50475 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 50476 return e 50477} 50478function BW() { 50479 try { 50480 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})) 50481 } catch {} 50482 return (BW = function() { 50483 return !!e 50484 } 50485 )() 50486} 50487function cy(e) { 50488 return cy = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { 50489 return n.__proto__ || Object.getPrototypeOf(n) 50490 } 50491 , 50492 cy(e) 50493} 50494function fke(e, t) { 50495 if (typeof t != "function" && t !== null) 50496 throw new TypeError("Super expression must either be null or a function"); 50497 e.prototype = Object.create(t && t.prototype, { 50498 constructor: { 50499 value: e, 50500 writable: !0, 50501 configurable: !0 50502 } 50503 }), 50504 Object.defineProperty(e, "prototype", { 50505 writable: !1 50506 }), 50507 t && PS(e, t) 50508} 50509function PS(e, t) { 50510 return PS = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { 50511 return r.__proto__ = i, 50512 r 50513 } 50514 , 50515 PS(e, t) 50516} 50517function Xc(e) { 50518 return mke(e) || pke(e) || VW(e) || hke() 50519} 50520function hke() { 50521 throw new TypeError(`Invalid attempt to spread non-iterable instance. 50522In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) 50523} 50524function VW(e, t) { 50525 if (e) { 50526 if (typeof e == "string") 50527 return _S(e, t); 50528 var n = Object.prototype.toString.call(e).slice(8, -1); 50529 if (n === "Object" && e.constructor && (n = e.constructor.name), 50530 n === "Map" || n === "Set") 50531 return Array.from(e); 50532 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 50533 return _S(e, t) 50534 } 50535} 50536function pke(e) { 50537 if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) 50538 return Array.from(e) 50539} 50540function mke(e) { 50541 if (Array.isArray(e)) 50542 return _S(e) 50543} 50544function _S(e, t) { 50545 (t == null || t > e.length) && (t = e.length); 50546 for (var n = 0, r = new Array(t); n < t; n++) 50547 r[n] = e[n]; 50548 return r 50549} 50550function Lk(e, t) { 50551 var n = Object.keys(e); 50552 if (Object.getOwnPropertySymbols) { 50553 var r = Object.getOwnPropertySymbols(e); 50554 t && (r = r.filter(function(i) { 50555 return Object.getOwnPropertyDescriptor(e, i).enumerable 50556 })), 50557 n.push.apply(n, r) 50558 } 50559 return n 50560} 50561function q(e) { 50562 for (var t = 1; t < arguments.length; t++) { 50563 var n = arguments[t] != null ? arguments[t] : {}; 50564 t % 2 ? Lk(Object(n), !0).forEach(function(r) { 50565 _e(e, r, n[r]) 50566 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Lk(Object(n)).forEach(function(r) { 50567 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)) 50568 }) 50569 } 50570 return e 50571} 50572function _e(e, t, n) { 50573 return t = UW(t), 50574 t in e ? Object.defineProperty(e, t, { 50575 value: n, 50576 enumerable: !0, 50577 configurable: !0, 50578 writable: !0 50579 }) : e[t] = n, 50580 e 50581} 50582function UW(e) { 50583 var t = gke(e, "string"); 50584 return Yc(t) == "symbol" ? t : t + "" 50585} 50586function gke(e, t) { 50587 if (Yc(e) != "object" || !e) 50588 return e; 50589 var n = e[Symbol.toPrimitive]; 50590 if (n !== void 0) { 50591 var r = n.call(e, t || "default"); 50592 if (Yc(r) != "object") 50593 return r; 50594 throw new TypeError("@@toPrimitive must return a primitive value.") 50595 } 50596 return (t === "string" ? String : Number)(e) 50597} 50598var yke = { 50599 xAxis: ["bottom", "top"], 50600 yAxis: ["left", "right"] 50601} 50602 , vke = { 50603 width: "100%", 50604 height: "100%" 50605} 50606 , zW = { 50607 x: 0, 50608 y: 0 50609}; 50610function Hp(e) { 50611 return e 50612} 50613var xke = function(t, n) { 50614 return n === "horizontal" ? t.x : n === "vertical" ? t.y : n === "centric" ? t.angle : t.radius 50615} 50616 , bke = function(t, n, r, i) { 50617 var o = n.find(function(u) { 50618 return u && u.index === r 50619 }); 50620 if (o) { 50621 if (t === "horizontal") 50622 return { 50623 x: o.coordinate, 50624 y: i.y 50625 }; 50626 if (t === "vertical") 50627 return { 50628 x: i.x, 50629 y: o.coordinate 50630 }; 50631 if (t === "centric") { 50632 var a = o.coordinate 50633 , s = i.radius; 50634 return q(q(q({}, i), vn(i.cx, i.cy, s, a)), {}, { 50635 angle: a, 50636 radius: s 50637 }) 50638 } 50639 var l = o.coordinate 50640 , c = i.angle; 50641 return q(q(q({}, i), vn(i.cx, i.cy, l, c)), {}, { 50642 angle: c, 50643 radius: l 50644 }) 50645 } 50646 return zW 50647} 50648 , p0 = function(t, n) { 50649 var r = n.graphicalItems 50650 , i = n.dataStartIndex 50651 , o = n.dataEndIndex 50652 , a = (r ?? []).reduce(function(s, l) { 50653 var c = l.props.data; 50654 return c && c.length ? [].concat(Xc(s), Xc(c)) : s 50655 }, []); 50656 return a.length > 0 ? a : t && t.length && le(i) && le(o) ? t.slice(i, o + 1) : [] 50657}; 50658function WW(e) { 50659 return e === "number" ? [0, "auto"] : void 0 50660} 50661var TS = function(t, n, r, i) { 50662 var o = t.graphicalItems 50663 , a = t.tooltipAxis 50664 , s = p0(n, t); 50665 return r < 0 || !o || !o.length || r >= s.length ? null : o.reduce(function(l, c) { 50666 var u, d = (u = c.props.data) !== null && u !== void 0 ? u : n; 50667 d && t.dataStartIndex + t.dataEndIndex !== 0 && t.dataEndIndex - t.dataStartIndex >= r && (d = d.slice(t.dataStartIndex, t.dataEndIndex + 1)); 50668 var f; 50669 if (a.dataKey && !a.allowDuplicatedCategory) { 50670 var p = d === void 0 ? s : d; 50671 f = i1(p, a.dataKey, i) 50672 } else 50673 f = d && d[r] || s[r]; 50674 return f ? [].concat(Xc(l), [Bz(c, f)]) : l 50675 }, []) 50676} 50677 , Fk = function(t, n, r, i) { 50678 var o = i || { 50679 x: t.chartX, 50680 y: t.chartY 50681 } 50682 , a = xke(o, r) 50683 , s = t.orderedTooltipTicks 50684 , l = t.tooltipAxis 50685 , c = t.tooltipTicks 50686 , u = DTe(a, s, c, l); 50687 if (u >= 0 && c) { 50688 var d = c[u] && c[u].value 50689 , f = TS(t, n, u, d) 50690 , p = bke(r, s, u, o); 50691 return { 50692 activeTooltipIndex: u, 50693 activeLabel: d, 50694 activePayload: f, 50695 activeCoordinate: p 50696 } 50697 } 50698 return null 50699} 50700 , wke = function(t, n) { 50701 var r = n.axes 50702 , i = n.graphicalItems 50703 , o = n.axisType 50704 , a = n.axisIdKey 50705 , s = n.stackGroups 50706 , l = n.dataStartIndex 50707 , c = n.dataEndIndex 50708 , u = t.layout 50709 , d = t.children 50710 , f = t.stackOffset 50711 , p = Lz(u, o); 50712 return r.reduce(function(g, m) { 50713 var x, v = m.type.defaultProps !== void 0 ? q(q({}, m.type.defaultProps), m.props) : m.props, y = v.type, w = v.dataKey, P = v.allowDataOverflow, S = v.allowDuplicatedCategory, _ = v.scale, T = v.ticks, C = v.includeHidden, O = v[a]; 50714 if (g[O]) 50715 return g; 50716 var A = p0(t.data, { 50717 graphicalItems: i.filter(function(G) { 50718 var ae, ve = a in G.props ? G.props[a] : (ae = G.type.defaultProps) === null || ae === void 0 ? void 0 : ae[a]; 50719 return ve === O 50720 }), 50721 dataStartIndex: l, 50722 dataEndIndex: c 50723 }), E = A.length, j, $, R; 50724 KMe(v.domain, P, y) && (j = H1(v.domain, null, P), 50725 p && (y === "number" || _ !== "auto") && (R = $d(A, w, "category"))); 50726 var L = WW(y); 50727 if (!j || j.length === 0) { 50728 var B, U = (B = v.domain) !== null && B !== void 0 ? B : L; 50729 if (w) { 50730 if (j = $d(A, w, y), 50731 y === "category" && p) { 50732 var N = Sfe(j); 50733 S && N ? ($ = j, 50734 j = Qg(0, E)) : S || (j = wM(U, j, m).reduce(function(G, ae) { 50735 return G.indexOf(ae) >= 0 ? G : [].concat(Xc(G), [ae]) 50736 }, [])) 50737 } else if (y === "category") 50738 S ? j = j.filter(function(G) { 50739 return G !== "" && !et(G) 50740 }) : j = wM(U, j, m).reduce(function(G, ae) { 50741 return G.indexOf(ae) >= 0 || ae === "" || et(ae) ? G : [].concat(Xc(G), [ae]) 50742 }, []); 50743 else if (y === "number") { 50744 var D = BTe(A, i.filter(function(G) { 50745 var ae, ve, je = a in G.props ? G.props[a] : (ae = G.type.defaultProps) === null || ae === void 0 ? void 0 : ae[a], Oe = "hide"in G.props ? G.props.hide : (ve = G.type.defaultProps) === null || ve === void 0 ? void 0 : ve.hide; 50746 return je === O && (C || !Oe) 50747 }), w, o, u); 50748 D && (j = D) 50749 } 50750 p && (y === "number" || _ !== "auto") && (R = $d(A, w, "category")) 50751 } else 50752 p ? j = Qg(0, E) : s && s[O] && s[O].hasStack && y === "number" ? j = f === "expand" ? [0, 1] : Fz(s[O].stackGroups, l, c) : j = $z(A, i.filter(function(G) { 50753 var ae = a in G.props ? G.props[a] : G.type.defaultProps[a] 50754 , ve = "hide"in G.props ? G.props.hide : G.type.defaultProps.hide; 50755 return ae === O && (C || !ve) 50756 }), y, u, !0); 50757 if (y === "number") 50758 j = SS(d, j, O, o, T), 50759 U && (j = H1(U, j, P)); 50760 else if (y === "category" && U) { 50761 var W = U 50762 , K = j.every(function(G) { 50763 return W.indexOf(G) >= 0 50764 }); 50765 K && (j = W) 50766 } 50767 } 50768 return q(q({}, g), {}, _e({}, O, q(q({}, v), {}, { 50769 axisType: o, 50770 domain: j, 50771 categoricalDomain: R, 50772 duplicateDomain: $, 50773 originalDomain: (x = v.domain) !== null && x !== void 0 ? x : L, 50774 isCategorical: p, 50775 layout: u 50776 }))) 50777 }, {}) 50778} 50779 , Ske = function(t, n) { 50780 var r = n.graphicalItems 50781 , i = n.Axis 50782 , o = n.axisType 50783 , a = n.axisIdKey 50784 , s = n.stackGroups 50785 , l = n.dataStartIndex 50786 , c = n.dataEndIndex 50787 , u = t.layout 50788 , d = t.children 50789 , f = p0(t.data, { 50790 graphicalItems: r, 50791 dataStartIndex: l, 50792 dataEndIndex: c 50793 }) 50794 , p = f.length 50795 , g = Lz(u, o) 50796 , m = -1; 50797 return r.reduce(function(x, v) { 50798 var y = v.type.defaultProps !== void 0 ? q(q({}, v.type.defaultProps), v.props) : v.props 50799 , w = y[a] 50800 , P = WW("number"); 50801 if (!x[w]) { 50802 m++; 50803 var S; 50804 return g ? S = Qg(0, p) : s && s[w] && s[w].hasStack ? (S = Fz(s[w].stackGroups, l, c), 50805 S = SS(d, S, w, o)) : (S = H1(P, $z(f, r.filter(function(_) { 50806 var T, C, O = a in _.props ? _.props[a] : (T = _.type.defaultProps) === null || T === void 0 ? void 0 : T[a], A = "hide"in _.props ? _.props.hide : (C = _.type.defaultProps) === null || C === void 0 ? void 0 : C.hide; 50807 return O === w && !A 50808 }), "number", u), i.defaultProps.allowDataOverflow), 50809 S = SS(d, S, w, o)), 50810 q(q({}, x), {}, _e({}, w, q(q({ 50811 axisType: o 50812 }, i.defaultProps), {}, { 50813 hide: !0, 50814 orientation: Lr(yke, "".concat(o, ".").concat(m % 2), null), 50815 domain: S, 50816 originalDomain: P, 50817 isCategorical: g, 50818 layout: u 50819 }))) 50820 } 50821 return x 50822 }, {}) 50823} 50824 , Pke = function(t, n) { 50825 var r = n.axisType 50826 , i = r === void 0 ? "xAxis" : r 50827 , o = n.AxisComp 50828 , a = n.graphicalItems 50829 , s = n.stackGroups 50830 , l = n.dataStartIndex 50831 , c = n.dataEndIndex 50832 , u = t.children 50833 , d = "".concat(i, "Id") 50834 , f = di(u, o) 50835 , p = {}; 50836 return f && f.length ? p = wke(t, { 50837 axes: f, 50838 graphicalItems: a, 50839 axisType: i, 50840 axisIdKey: d, 50841 stackGroups: s, 50842 dataStartIndex: l, 50843 dataEndIndex: c 50844 }) : a && a.length && (p = Ske(t, { 50845 Axis: o, 50846 graphicalItems: a, 50847 axisType: i, 50848 axisIdKey: d, 50849 stackGroups: s, 50850 dataStartIndex: l, 50851 dataEndIndex: c 50852 })), 50853 p 50854} 50855 , _ke = function(t) { 50856 var n = yl(t) 50857 , r = ms(n, !1, !0); 50858 return { 50859 tooltipTicks: r, 50860 orderedTooltipTicks: DT(r, function(i) { 50861 return i.coordinate 50862 }), 50863 tooltipAxis: n, 50864 tooltipAxisBandSize: Ug(n, r) 50865 } 50866} 50867 , Bk = function(t) { 50868 var n = t.children 50869 , r = t.defaultShowTooltip 50870 , i = sr(n, Vc) 50871 , o = 0 50872 , a = 0; 50873 return t.data && t.data.length !== 0 && (a = t.data.length - 1), 50874 i && i.props && (i.props.startIndex >= 0 && (o = i.props.startIndex), 50875 i.props.endIndex >= 0 && (a = i.props.endIndex)), 50876 { 50877 chartX: 0, 50878 chartY: 0, 50879 dataStartIndex: o, 50880 dataEndIndex: a, 50881 activeTooltipIndex: -1, 50882 isTooltipActive: !!r 50883 } 50884} 50885 , Tke = function(t) { 50886 return !t || !t.length ? !1 : t.some(function(n) { 50887 var r = yo(n && n.type); 50888 return r && r.indexOf("Bar") >= 0 50889 }) 50890} 50891 , Vk = function(t) { 50892 return t === "horizontal" ? { 50893 numericAxisName: "yAxis", 50894 cateAxisName: "xAxis" 50895 } : t === "vertical" ? { 50896 numericAxisName: "xAxis", 50897 cateAxisName: "yAxis" 50898 } : t === "centric" ? { 50899 numericAxisName: "radiusAxis", 50900 cateAxisName: "angleAxis" 50901 } : { 50902 numericAxisName: "angleAxis", 50903 cateAxisName: "radiusAxis" 50904 } 50905} 50906 , Cke = function(t, n) { 50907 var r = t.props 50908 , i = t.graphicalItems 50909 , o = t.xAxisMap 50910 , a = o === void 0 ? {} : o 50911 , s = t.yAxisMap 50912 , l = s === void 0 ? {} : s 50913 , c = r.width 50914 , u = r.height 50915 , d = r.children 50916 , f = r.margin || {} 50917 , p = sr(d, Vc) 50918 , g = sr(d, Zl) 50919 , m = Object.keys(l).reduce(function(S, _) { 50920 var T = l[_] 50921 , C = T.orientation; 50922 return !T.mirror && !T.hide ? q(q({}, S), {}, _e({}, C, S[C] + T.width)) : S 50923 }, { 50924 left: f.left || 0, 50925 right: f.right || 0 50926 }) 50927 , x = Object.keys(a).reduce(function(S, _) { 50928 var T = a[_] 50929 , C = T.orientation; 50930 return !T.mirror && !T.hide ? q(q({}, S), {}, _e({}, C, Lr(S, "".concat(C)) + T.height)) : S 50931 }, { 50932 top: f.top || 0, 50933 bottom: f.bottom || 0 50934 }) 50935 , v = q(q({}, x), m) 50936 , y = v.bottom; 50937 p && (v.bottom += p.props.height || Vc.defaultProps.height), 50938 g && n && (v = LTe(v, i, r, n)); 50939 var w = c - v.left - v.right 50940 , P = u - v.top - v.bottom; 50941 return q(q({ 50942 brushBottom: y 50943 }, v), {}, { 50944 width: Math.max(w, 0), 50945 height: Math.max(P, 0) 50946 }) 50947} 50948 , Oke = function(t, n) { 50949 if (n === "xAxis") 50950 return t[n].width; 50951 if (n === "yAxis") 50952 return t[n].height 50953} 50954 , Ake = function(t) { 50955 var n = t.chartName 50956 , r = t.GraphicalChild 50957 , i = t.defaultTooltipEventType 50958 , o = i === void 0 ? "axis" : i 50959 , a = t.validateTooltipEventTypes 50960 , s = a === void 0 ? ["axis"] : a 50961 , l = t.axisComponents 50962 , c = t.legendContent 50963 , u = t.formatAxisMap 50964 , d = t.defaultProps 50965 , f = function(v, y) { 50966 var w = y.graphicalItems 50967 , P = y.stackGroups 50968 , S = y.offset 50969 , _ = y.updateId 50970 , T = y.dataStartIndex 50971 , C = y.dataEndIndex 50972 , O = v.barSize 50973 , A = v.layout 50974 , E = v.barGap 50975 , j = v.barCategoryGap 50976 , $ = v.maxBarSize 50977 , R = Vk(A) 50978 , L = R.numericAxisName 50979 , B = R.cateAxisName 50980 , U = Tke(w) 50981 , N = []; 50982 return w.forEach(function(D, W) { 50983 var K = p0(v.data, { 50984 graphicalItems: [D], 50985 dataStartIndex: T, 50986 dataEndIndex: C 50987 }) 50988 , G = D.type.defaultProps !== void 0 ? q(q({}, D.type.defaultProps), D.props) : D.props 50989 , ae = G.dataKey 50990 , ve = G.maxBarSize 50991 , je = G["".concat(L, "Id")] 50992 , Oe = G["".concat(B, "Id")] 50993 , ie = {} 50994 , ge = l.reduce(function(re, te) { 50995 var Z = y["".concat(te.axisType, "Map")] 50996 , xe = G["".concat(te.axisType, "Id")]; 50997 Z && Z[xe] || te.axisType === "zAxis" || Ks(); 50998 var Ae = Z[xe]; 50999 return q(q({}, re), {}, _e(_e({}, te.axisType, Ae), "".concat(te.axisType, "Ticks"), ms(Ae))) 51000 }, ie) 51001 , Y = ge[B] 51002 , ne = ge["".concat(B, "Ticks")] 51003 , Q = P && P[je] && P[je].hasStack && ZTe(D, P[je].stackGroups) 51004 , F = yo(D.type).indexOf("Bar") >= 0 51005 , he = Ug(Y, ne) 51006 , de = [] 51007 , Ne = U && ITe({ 51008 barSize: O, 51009 stackGroups: P, 51010 totalSize: Oke(ge, B) 51011 }); 51012 if (F) { 51013 var Be, Qe, M = et(ve) ? $ : ve, z = (Be = (Qe = Ug(Y, ne, !0)) !== null && Qe !== void 0 ? Qe : M) !== null && Be !== void 0 ? Be : 0; 51014 de = $Te({ 51015 barGap: E, 51016 barCategoryGap: j, 51017 bandSize: z !== he ? z : he, 51018 sizeList: Ne[Oe], 51019 maxBarSize: M 51020 }), 51021 z !== he && (de = de.map(function(re) { 51022 return q(q({}, re), {}, { 51023 position: q(q({}, re.position), {}, { 51024 offset: re.position.offset - z / 2 51025 }) 51026 }) 51027 })) 51028 } 51029 var H = D && D.type && D.type.getComposedData; 51030 H && N.push({ 51031 props: q(q({}, H(q(q({}, ge), {}, { 51032 displayedData: K, 51033 props: v, 51034 dataKey: ae, 51035 item: D, 51036 bandSize: he, 51037 barPosition: de, 51038 offset: S, 51039 stackedData: Q, 51040 layout: A, 51041 dataStartIndex: T, 51042 dataEndIndex: C 51043 }))), {}, _e(_e(_e({ 51044 key: D.key || "item-".concat(W) 51045 }, L, ge[L]), B, ge[B]), "animationId", _)), 51046 childIndex: kfe(D, v.children), 51047 item: D 51048 }) 51049 }), 51050 N 51051 } 51052 , p = function(v, y) { 51053 var w = v.props 51054 , P = v.dataStartIndex 51055 , S = v.dataEndIndex 51056 , _ = v.updateId; 51057 if (!mj({ 51058 props: w 51059 })) 51060 return null; 51061 var T = w.children 51062 , C = w.layout 51063 , O = w.stackOffset 51064 , A = w.data 51065 , E = w.reverseStackOrder 51066 , j = Vk(C) 51067 , $ = j.numericAxisName 51068 , R = j.cateAxisName 51069 , L = di(T, r) 51070 , B = YTe(A, L, "".concat($, "Id"), "".concat(R, "Id"), O, E) 51071 , U = l.reduce(function(G, ae) { 51072 var ve = "".concat(ae.axisType, "Map"); 51073 return q(q({}, G), {}, _e({}, ve, Pke(w, q(q({}, ae), {}, { 51074 graphicalItems: L, 51075 stackGroups: ae.axisType === $ && B, 51076 dataStartIndex: P, 51077 dataEndIndex: S 51078 })))) 51079 }, {}) 51080 , N = Cke(q(q({}, U), {}, { 51081 props: w, 51082 graphicalItems: L 51083 }), y == null ? void 0 : y.legendBBox); 51084 Object.keys(U).forEach(function(G) { 51085 U[G] = u(w, U[G], N, G.replace("Map", ""), n) 51086 }); 51087 var D = U["".concat(R, "Map")] 51088 , W = _ke(D) 51089 , K = f(w, q(q({}, U), {}, { 51090 dataStartIndex: P, 51091 dataEndIndex: S, 51092 updateId: _, 51093 graphicalItems: L, 51094 stackGroups: B, 51095 offset: N 51096 })); 51097 return q(q({ 51098 formattedGraphicalItems: K, 51099 graphicalItems: L, 51100 offset: N, 51101 stackGroups: B 51102 }, W), U) 51103 } 51104 , g = function(x) { 51105 function v(y) { 51106 var w, P, S; 51107 return ake(this, v), 51108 S = cke(this, v, [y]), 51109 _e(S, "eventEmitterSymbol", Symbol("rechartsEventEmitter")), 51110 _e(S, "accessibilityManager", new qMe), 51111 _e(S, "handleLegendBBoxUpdate", function(_) { 51112 if (_) { 51113 var T = S.state 51114 , C = T.dataStartIndex 51115 , O = T.dataEndIndex 51116 , A = T.updateId; 51117 S.setState(q({ 51118 legendBBox: _ 51119 }, p({ 51120 props: S.props, 51121 dataStartIndex: C, 51122 dataEndIndex: O, 51123 updateId: A 51124 }, q(q({}, S.state), {}, { 51125 legendBBox: _ 51126 })))) 51127 } 51128 }), 51129 _e(S, "handleReceiveSyncEvent", function(_, T, C) { 51130 if (S.props.syncId === _) { 51131 if (C === S.eventEmitterSymbol && typeof S.props.syncMethod != "function") 51132 return; 51133 S.applySyncEvent(T) 51134 } 51135 }), 51136 _e(S, "handleBrushChange", function(_) { 51137 var T = _.startIndex 51138 , C = _.endIndex; 51139 if (T !== S.state.dataStartIndex || C !== S.state.dataEndIndex) { 51140 var O = S.state.updateId; 51141 S.setState(function() { 51142 return q({ 51143 dataStartIndex: T, 51144 dataEndIndex: C 51145 }, p({ 51146 props: S.props, 51147 dataStartIndex: T, 51148 dataEndIndex: C, 51149 updateId: O 51150 }, S.state)) 51151 }), 51152 S.triggerSyncEvent({ 51153 dataStartIndex: T, 51154 dataEndIndex: C 51155 }) 51156 } 51157 }), 51158 _e(S, "handleMouseEnter", function(_) { 51159 var T = S.getMouseInfo(_); 51160 if (T) { 51161 var C = q(q({}, T), {}, { 51162 isTooltipActive: !0 51163 }); 51164 S.setState(C), 51165 S.triggerSyncEvent(C); 51166 var O = S.props.onMouseEnter; 51167 qe(O) && O(C, _) 51168 } 51169 }), 51170 _e(S, "triggeredAfterMouseMove", function(_) { 51171 var T = S.getMouseInfo(_) 51172 , C = T ? q(q({}, T), {}, { 51173 isTooltipActive: !0 51174 }) : { 51175 isTooltipActive: !1 51176 }; 51177 S.setState(C), 51178 S.triggerSyncEvent(C); 51179 var O = S.props.onMouseMove; 51180 qe(O) && O(C, _) 51181 }), 51182 _e(S, "handleItemMouseEnter", function(_) { 51183 S.setState(function() { 51184 return { 51185 isTooltipActive: !0, 51186 activeItem: _, 51187 activePayload: _.tooltipPayload, 51188 activeCoordinate: _.tooltipPosition || { 51189 x: _.cx, 51190 y: _.cy 51191 } 51192 } 51193 }) 51194 }), 51195 _e(S, "handleItemMouseLeave", function() { 51196 S.setState(function() { 51197 return { 51198 isTooltipActive: !1 51199 } 51200 }) 51201 }), 51202 _e(S, "handleMouseMove", function(_) { 51203 _.persist(), 51204 S.throttleTriggeredAfterMouseMove(_) 51205 }), 51206 _e(S, "handleMouseLeave", function(_) { 51207 S.throttleTriggeredAfterMouseMove.cancel(); 51208 var T = { 51209 isTooltipActive: !1 51210 }; 51211 S.setState(T), 51212 S.triggerSyncEvent(T); 51213 var C = S.props.onMouseLeave; 51214 qe(C) && C(T, _) 51215 }), 51216 _e(S, "handleOuterEvent", function(_) { 51217 var T = Mfe(_) 51218 , C = Lr(S.props, "".concat(T)); 51219 if (T && qe(C)) { 51220 var O, A; 51221 /.*touch.*/i.test(T) ? A = S.getMouseInfo(_.changedTouches[0]) : A = S.getMouseInfo(_), 51222 C((O = A) !== null && O !== void 0 ? O : {}, _) 51223 } 51224 }), 51225 _e(S, "handleClick", function(_) { 51226 var T = S.getMouseInfo(_); 51227 if (T) { 51228 var C = q(q({}, T), {}, { 51229 isTooltipActive: !0 51230 }); 51231 S.setState(C), 51232 S.triggerSyncEvent(C); 51233 var O = S.props.onClick; 51234 qe(O) && O(C, _) 51235 } 51236 }), 51237 _e(S, "handleMouseDown", function(_) { 51238 var T = S.props.onMouseDown; 51239 if (qe(T)) { 51240 var C = S.getMouseInfo(_); 51241 T(C, _) 51242 } 51243 }), 51244 _e(S, "handleMouseUp", function(_) { 51245 var T = S.props.onMouseUp; 51246 if (qe(T)) { 51247 var C = S.getMouseInfo(_); 51248 T(C, _) 51249 } 51250 }), 51251 _e(S, "handleTouchMove", function(_) { 51252 _.changedTouches != null && _.changedTouches.length > 0 && S.throttleTriggeredAfterMouseMove(_.changedTouches[0]) 51253 }), 51254 _e(S, "handleTouchStart", function(_) { 51255 _.changedTouches != null && _.changedTouches.length > 0 && S.handleMouseDown(_.changedTouches[0]) 51256 }), 51257 _e(S, "handleTouchEnd", function(_) { 51258 _.changedTouches != null && _.changedTouches.length > 0 && S.handleMouseUp(_.changedTouches[0]) 51259 }), 51260 _e(S, "triggerSyncEvent", function(_) { 51261 S.props.syncId !== void 0 && Kx.emit(Gx, S.props.syncId, _, S.eventEmitterSymbol) 51262 }), 51263 _e(S, "applySyncEvent", function(_) { 51264 var T = S.props 51265 , C = T.layout 51266 , O = T.syncMethod 51267 , A = S.state.updateId 51268 , E = _.dataStartIndex 51269 , j = _.dataEndIndex; 51270 if (_.dataStartIndex !== void 0 || _.dataEndIndex !== void 0) 51271 S.setState(q({ 51272 dataStartIndex: E, 51273 dataEndIndex: j 51274 }, p({ 51275 props: S.props, 51276 dataStartIndex: E, 51277 dataEndIndex: j, 51278 updateId: A 51279 }, S.state))); 51280 else if (_.activeTooltipIndex !== void 0) { 51281 var $ = _.chartX 51282 , R = _.chartY 51283 , L = _.activeTooltipIndex 51284 , B = S.state 51285 , U = B.offset 51286 , N = B.tooltipTicks; 51287 if (!U) 51288 return; 51289 if (typeof O == "function") 51290 L = O(N, _); 51291 else if (O === "value") { 51292 L = -1; 51293 for (var D = 0; D < N.length; D++) 51294 if (N[D].value === _.activeLabel) { 51295 L = D; 51296 break 51297 } 51298 } 51299 var W = q(q({}, U), {}, { 51300 x: U.left, 51301 y: U.top 51302 }) 51303 , K = Math.min($, W.x + W.width) 51304 , G = Math.min(R, W.y + W.height) 51305 , ae = N[L] && N[L].value 51306 , ve = TS(S.state, S.props.data, L) 51307 , je = N[L] ? { 51308 x: C === "horizontal" ? N[L].coordinate : K, 51309 y: C === "horizontal" ? G : N[L].coordinate 51310 } : zW; 51311 S.setState(q(q({}, _), {}, { 51312 activeLabel: ae, 51313 activeCoordinate: je, 51314 activePayload: ve, 51315 activeTooltipIndex: L 51316 })) 51317 } else 51318 S.setState(_) 51319 }), 51320 _e(S, "renderCursor", function(_) { 51321 var T, C = S.state, O = C.isTooltipActive, A = C.activeCoordinate, E = C.activePayload, j = C.offset, $ = C.activeTooltipIndex, R = C.tooltipAxisBandSize, L = S.getTooltipEventType(), B = (T = _.props.active) !== null && T !== void 0 ? T : O, U = S.props.layout, N = _.key || "_recharts-cursor"; 51322 return k.createElement(JMe, { 51323 key: N, 51324 activeCoordinate: A, 51325 activePayload: E, 51326 activeTooltipIndex: $, 51327 chartName: n, 51328 element: _, 51329 isActive: B, 51330 layout: U, 51331 offset: j, 51332 tooltipAxisBandSize: R, 51333 tooltipEventType: L 51334 }) 51335 }), 51336 _e(S, "renderPolarAxis", function(_, T, C) { 51337 var O = Lr(_, "type.axisType") 51338 , A = Lr(S.state, "".concat(O, "Map")) 51339 , E = _.type.defaultProps 51340 , j = E !== void 0 ? q(q({}, E), _.props) : _.props 51341 , $ = A && A[j["".concat(O, "Id")]]; 51342 return b.cloneElement(_, q(q({}, $), {}, { 51343 className: Ge(O, $.className), 51344 key: _.key || "".concat(T, "-").concat(C), 51345 ticks: ms($, !0) 51346 })) 51347 }), 51348 _e(S, "renderPolarGrid", function(_) { 51349 var T = _.props 51350 , C = T.radialLines 51351 , O = T.polarAngles 51352 , A = T.polarRadius 51353 , E = S.state 51354 , j = E.radiusAxisMap 51355 , $ = E.angleAxisMap 51356 , R = yl(j) 51357 , L = yl($) 51358 , B = L.cx 51359 , U = L.cy 51360 , N = L.innerRadius 51361 , D = L.outerRadius; 51362 return b.cloneElement(_, { 51363 polarAngles: Array.isArray(O) ? O : ms(L, !0).map(function(W) { 51364 return W.coordinate 51365 }), 51366 polarRadius: Array.isArray(A) ? A : ms(R, !0).map(function(W) { 51367 return W.coordinate 51368 }), 51369 cx: B, 51370 cy: U, 51371 innerRadius: N, 51372 outerRadius: D, 51373 key: _.key || "polar-grid", 51374 radialLines: C 51375 }) 51376 }), 51377 _e(S, "renderLegend", function() { 51378 var _ = S.state.formattedGraphicalItems 51379 , T = S.props 51380 , C = T.children 51381 , O = T.width 51382 , A = T.height 51383 , E = S.props.margin || {}
51384 , j = O - (E.left || 0) - (E.right || 0) 51385 , $ = Dz({ 51386 children: C, 51387 formattedGraphicalItems: _, 51388 legendWidth: j, 51389 legendContent: c 51390 }); 51391 if (!$) 51392 return null; 51393 var R = $.item 51394 , L = $k($, eke); 51395 return b.cloneElement(R, q(q({}, L), {}, { 51396 chartWidth: O, 51397 chartHeight: A, 51398 margin: E, 51399 onBBoxUpdate: S.handleLegendBBoxUpdate 51400 })) 51401 }), 51402 _e(S, "renderTooltip", function() { 51403 var _, T = S.props, C = T.children, O = T.accessibilityLayer, A = sr(C, Pi); 51404 if (!A) 51405 return null; 51406 var E = S.state 51407 , j = E.isTooltipActive 51408 , $ = E.activeCoordinate 51409 , R = E.activePayload 51410 , L = E.activeLabel 51411 , B = E.offset 51412 , U = (_ = A.props.active) !== null && _ !== void 0 ? _ : j; 51413 return b.cloneElement(A, {
vendor: 27,559 bytes, lines 51414-52109
51414 viewBox: q(q({}, B), {}, { 51415 x: B.left, 51416 y: B.top 51417 }), 51418 active: U, 51419 label: L, 51420 payload: U ? R : [], 51421 coordinate: $, 51422 accessibilityLayer: O 51423 }) 51424 }), 51425 _e(S, "renderBrush", function(_) { 51426 var T = S.props 51427 , C = T.margin 51428 , O = T.data 51429 , A = S.state 51430 , E = A.offset 51431 , j = A.dataStartIndex 51432 , $ = A.dataEndIndex 51433 , R = A.updateId; 51434 return b.cloneElement(_, { 51435 key: _.key || "_recharts-brush", 51436 onChange: Bp(S.handleBrushChange, _.props.onChange), 51437 data: O, 51438 x: le(_.props.x) ? _.props.x : E.left, 51439 y: le(_.props.y) ? _.props.y : E.top + E.height + E.brushBottom - (C.bottom || 0), 51440 width: le(_.props.width) ? _.props.width : E.width, 51441 startIndex: j, 51442 endIndex: $, 51443 updateId: "brush-".concat(R) 51444 }) 51445 }), 51446 _e(S, "renderReferenceElement", function(_, T, C) { 51447 if (!_) 51448 return null; 51449 var O = S 51450 , A = O.clipPathId 51451 , E = S.state 51452 , j = E.xAxisMap 51453 , $ = E.yAxisMap 51454 , R = E.offset 51455 , L = _.type.defaultProps || {} 51456 , B = _.props 51457 , U = B.xAxisId 51458 , N = U === void 0 ? L.xAxisId : U 51459 , D = B.yAxisId 51460 , W = D === void 0 ? L.yAxisId : D; 51461 return b.cloneElement(_, { 51462 key: _.key || "".concat(T, "-").concat(C), 51463 xAxis: j[N], 51464 yAxis: $[W], 51465 viewBox: { 51466 x: R.left, 51467 y: R.top, 51468 width: R.width, 51469 height: R.height 51470 }, 51471 clipPathId: A 51472 }) 51473 }), 51474 _e(S, "renderActivePoints", function(_) { 51475 var T = _.item 51476 , C = _.activePoint 51477 , O = _.basePoint 51478 , A = _.childIndex 51479 , E = _.isRange 51480 , j = [] 51481 , $ = T.props.key 51482 , R = T.item.type.defaultProps !== void 0 ? q(q({}, T.item.type.defaultProps), T.item.props) : T.item.props 51483 , L = R.activeDot 51484 , B = R.dataKey 51485 , U = q(q({ 51486 index: A, 51487 dataKey: B, 51488 cx: C.x, 51489 cy: C.y, 51490 r: 4, 51491 fill: lC(T.item), 51492 strokeWidth: 2, 51493 stroke: "#fff", 51494 payload: C.payload, 51495 value: C.value 51496 }, Je(L, !1)), hg(L)); 51497 return j.push(v.renderActiveDot(L, U, "".concat($, "-activePoint-").concat(A))), 51498 O ? j.push(v.renderActiveDot(L, q(q({}, U), {}, { 51499 cx: O.x, 51500 cy: O.y 51501 }), "".concat($, "-basePoint-").concat(A))) : E && j.push(null), 51502 j 51503 }), 51504 _e(S, "renderGraphicChild", function(_, T, C) { 51505 var O = S.filterFormatItem(_, T, C); 51506 if (!O) 51507 return null; 51508 var A = S.getTooltipEventType() 51509 , E = S.state 51510 , j = E.isTooltipActive 51511 , $ = E.tooltipAxis 51512 , R = E.activeTooltipIndex 51513 , L = E.activeLabel 51514 , B = S.props.children 51515 , U = sr(B, Pi) 51516 , N = O.props 51517 , D = N.points 51518 , W = N.isRange 51519 , K = N.baseLine 51520 , G = O.item.type.defaultProps !== void 0 ? q(q({}, O.item.type.defaultProps), O.item.props) : O.item.props 51521 , ae = G.activeDot 51522 , ve = G.hide 51523 , je = G.activeBar 51524 , Oe = G.activeShape 51525 , ie = !!(!ve && j && U && (ae || je || Oe)) 51526 , ge = {}; 51527 A !== "axis" && U && U.props.trigger === "click" ? ge = { 51528 onClick: Bp(S.handleItemMouseEnter, _.props.onClick) 51529 } : A !== "axis" && (ge = { 51530 onMouseLeave: Bp(S.handleItemMouseLeave, _.props.onMouseLeave), 51531 onMouseEnter: Bp(S.handleItemMouseEnter, _.props.onMouseEnter) 51532 }); 51533 var Y = b.cloneElement(_, q(q({}, O.props), ge)); 51534 function ne(te) { 51535 return typeof $.dataKey == "function" ? $.dataKey(te.payload) : null 51536 } 51537 if (ie) 51538 if (R >= 0) { 51539 var Q, F; 51540 if ($.dataKey && !$.allowDuplicatedCategory) { 51541 var he = typeof $.dataKey == "function" ? ne : "payload.".concat($.dataKey.toString()); 51542 Q = i1(D, he, L), 51543 F = W && K && i1(K, he, L) 51544 } else 51545 Q = D == null ? void 0 : D[R], 51546 F = W && K && K[R]; 51547 if (Oe || je) { 51548 var de = _.props.activeIndex !== void 0 ? _.props.activeIndex : R; 51549 return [b.cloneElement(_, q(q(q({}, O.props), ge), {}, { 51550 activeIndex: de 51551 })), null, null] 51552 } 51553 if (!et(Q)) 51554 return [Y].concat(Xc(S.renderActivePoints({ 51555 item: O, 51556 activePoint: Q, 51557 basePoint: F, 51558 childIndex: R, 51559 isRange: W 51560 }))) 51561 } else { 51562 var Ne, Be = (Ne = S.getItemByXY(S.state.activeCoordinate)) !== null && Ne !== void 0 ? Ne : { 51563 graphicalItem: Y 51564 }, Qe = Be.graphicalItem, M = Qe.item, z = M === void 0 ? _ : M, H = Qe.childIndex, re = q(q(q({}, O.props), ge), {}, { 51565 activeIndex: H 51566 }); 51567 return [b.cloneElement(z, re), null, null] 51568 } 51569 return W ? [Y, null, null] : [Y, null] 51570 }), 51571 _e(S, "renderCustomized", function(_, T, C) { 51572 return b.cloneElement(_, q(q({ 51573 key: "recharts-customized-".concat(C) 51574 }, S.props), S.state)) 51575 }), 51576 _e(S, "renderMap", { 51577 CartesianGrid: { 51578 handler: Hp, 51579 once: !0 51580 }, 51581 ReferenceArea: { 51582 handler: S.renderReferenceElement 51583 }, 51584 ReferenceLine: { 51585 handler: Hp 51586 }, 51587 ReferenceDot: { 51588 handler: S.renderReferenceElement 51589 }, 51590 XAxis: { 51591 handler: Hp 51592 }, 51593 YAxis: { 51594 handler: Hp 51595 }, 51596 Brush: { 51597 handler: S.renderBrush, 51598 once: !0 51599 }, 51600 Bar: { 51601 handler: S.renderGraphicChild 51602 }, 51603 Line: { 51604 handler: S.renderGraphicChild 51605 }, 51606 Area: { 51607 handler: S.renderGraphicChild 51608 }, 51609 Radar: { 51610 handler: S.renderGraphicChild 51611 }, 51612 RadialBar: { 51613 handler: S.renderGraphicChild 51614 }, 51615 Scatter: { 51616 handler: S.renderGraphicChild 51617 }, 51618 Pie: { 51619 handler: S.renderGraphicChild 51620 }, 51621 Funnel: { 51622 handler: S.renderGraphicChild 51623 }, 51624 Tooltip: { 51625 handler: S.renderCursor, 51626 once: !0 51627 }, 51628 PolarGrid: { 51629 handler: S.renderPolarGrid, 51630 once: !0 51631 }, 51632 PolarAngleAxis: { 51633 handler: S.renderPolarAxis 51634 }, 51635 PolarRadiusAxis: { 51636 handler: S.renderPolarAxis 51637 }, 51638 Customized: { 51639 handler: S.renderCustomized 51640 } 51641 }), 51642 S.clipPathId = "".concat((w = y.id) !== null && w !== void 0 ? w : Fv("recharts"), "-clip"), 51643 S.throttleTriggeredAfterMouseMove = R6(S.triggeredAfterMouseMove, (P = y.throttleDelay) !== null && P !== void 0 ? P : 1e3 / 60), 51644 S.state = {}, 51645 S 51646 } 51647 return fke(v, x), 51648 lke(v, [{ 51649 key: "componentDidMount", 51650 value: function() { 51651 var w, P; 51652 this.addListener(), 51653 this.accessibilityManager.setDetails({ 51654 container: this.container, 51655 offset: { 51656 left: (w = this.props.margin.left) !== null && w !== void 0 ? w : 0, 51657 top: (P = this.props.margin.top) !== null && P !== void 0 ? P : 0 51658 }, 51659 coordinateList: this.state.tooltipTicks, 51660 mouseHandlerCallback: this.triggeredAfterMouseMove, 51661 layout: this.props.layout 51662 }), 51663 this.displayDefaultTooltip() 51664 } 51665 }, { 51666 key: "displayDefaultTooltip", 51667 value: function() { 51668 var w = this.props 51669 , P = w.children 51670 , S = w.data 51671 , _ = w.height 51672 , T = w.layout 51673 , C = sr(P, Pi); 51674 if (C) { 51675 var O = C.props.defaultIndex; 51676 if (!(typeof O != "number" || O < 0 || O > this.state.tooltipTicks.length - 1)) { 51677 var A = this.state.tooltipTicks[O] && this.state.tooltipTicks[O].value 51678 , E = TS(this.state, S, O, A) 51679 , j = this.state.tooltipTicks[O].coordinate 51680 , $ = (this.state.offset.top + _) / 2 51681 , R = T === "horizontal" 51682 , L = R ? { 51683 x: j, 51684 y: $ 51685 } : { 51686 y: j, 51687 x: $ 51688 } 51689 , B = this.state.formattedGraphicalItems.find(function(N) { 51690 var D = N.item; 51691 return D.type.name === "Scatter" 51692 }); 51693 B && (L = q(q({}, L), B.props.points[O].tooltipPosition), 51694 E = B.props.points[O].tooltipPayload); 51695 var U = { 51696 activeTooltipIndex: O, 51697 isTooltipActive: !0, 51698 activeLabel: A, 51699 activePayload: E, 51700 activeCoordinate: L 51701 }; 51702 this.setState(U), 51703 this.renderCursor(C), 51704 this.accessibilityManager.setIndex(O) 51705 } 51706 } 51707 } 51708 }, { 51709 key: "getSnapshotBeforeUpdate", 51710 value: function(w, P) { 51711 if (!this.props.accessibilityLayer) 51712 return null; 51713 if (this.state.tooltipTicks !== P.tooltipTicks && this.accessibilityManager.setDetails({ 51714 coordinateList: this.state.tooltipTicks 51715 }), 51716 this.props.layout !== w.layout && this.accessibilityManager.setDetails({ 51717 layout: this.props.layout 51718 }), 51719 this.props.margin !== w.margin) { 51720 var S, _; 51721 this.accessibilityManager.setDetails({ 51722 offset: { 51723 left: (S = this.props.margin.left) !== null && S !== void 0 ? S : 0, 51724 top: (_ = this.props.margin.top) !== null && _ !== void 0 ? _ : 0 51725 } 51726 }) 51727 } 51728 return null 51729 } 51730 }, { 51731 key: "componentDidUpdate", 51732 value: function(w) { 51733 a1([sr(w.children, Pi)], [sr(this.props.children, Pi)]) || this.displayDefaultTooltip() 51734 } 51735 }, { 51736 key: "componentWillUnmount", 51737 value: function() { 51738 this.removeListener(), 51739 this.throttleTriggeredAfterMouseMove.cancel() 51740 } 51741 }, { 51742 key: "getTooltipEventType", 51743 value: function() { 51744 var w = sr(this.props.children, Pi); 51745 if (w && typeof w.props.shared == "boolean") { 51746 var P = w.props.shared ? "axis" : "item"; 51747 return s.indexOf(P) >= 0 ? P : o 51748 } 51749 return o 51750 } 51751 }, { 51752 key: "getMouseInfo", 51753 value: function(w) { 51754 if (!this.container) 51755 return null; 51756 var P = this.container 51757 , S = P.getBoundingClientRect() 51758 , _ = s1e(S) 51759 , T = { 51760 chartX: Math.round(w.pageX - _.left), 51761 chartY: Math.round(w.pageY - _.top) 51762 } 51763 , C = S.width / P.offsetWidth || 1 51764 , O = this.inRange(T.chartX, T.chartY, C); 51765 if (!O) 51766 return null; 51767 var A = this.state 51768 , E = A.xAxisMap 51769 , j = A.yAxisMap 51770 , $ = this.getTooltipEventType(); 51771 if ($ !== "axis" && E && j) { 51772 var R = yl(E).scale 51773 , L = yl(j).scale 51774 , B = R && R.invert ? R.invert(T.chartX) : null 51775 , U = L && L.invert ? L.invert(T.chartY) : null; 51776 return q(q({}, T), {}, { 51777 xValue: B, 51778 yValue: U 51779 }) 51780 } 51781 var N = Fk(this.state, this.props.data, this.props.layout, O); 51782 return N ? q(q({}, T), N) : null 51783 } 51784 }, { 51785 key: "inRange", 51786 value: function(w, P) { 51787 var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1 51788 , _ = this.props.layout 51789 , T = w / S 51790 , C = P / S; 51791 if (_ === "horizontal" || _ === "vertical") { 51792 var O = this.state.offset 51793 , A = T >= O.left && T <= O.left + O.width && C >= O.top && C <= O.top + O.height; 51794 return A ? { 51795 x: T, 51796 y: C 51797 } : null 51798 } 51799 var E = this.state 51800 , j = E.angleAxisMap 51801 , $ = E.radiusAxisMap; 51802 if (j && $) { 51803 var R = yl(j); 51804 return _M({ 51805 x: T, 51806 y: C 51807 }, R) 51808 } 51809 return null 51810 } 51811 }, { 51812 key: "parseEventsOfWrapper", 51813 value: function() { 51814 var w = this.props.children 51815 , P = this.getTooltipEventType() 51816 , S = sr(w, Pi) 51817 , _ = {}; 51818 S && P === "axis" && (S.props.trigger === "click" ? _ = { 51819 onClick: this.handleClick 51820 } : _ = { 51821 onMouseEnter: this.handleMouseEnter, 51822 onMouseMove: this.handleMouseMove, 51823 onMouseLeave: this.handleMouseLeave, 51824 onTouchMove: this.handleTouchMove, 51825 onTouchStart: this.handleTouchStart, 51826 onTouchEnd: this.handleTouchEnd 51827 }); 51828 var T = hg(this.props, this.handleOuterEvent); 51829 return q(q({}, T), _) 51830 } 51831 }, { 51832 key: "addListener", 51833 value: function() { 51834 Kx.on(Gx, this.handleReceiveSyncEvent) 51835 } 51836 }, { 51837 key: "removeListener", 51838 value: function() { 51839 Kx.removeListener(Gx, this.handleReceiveSyncEvent) 51840 } 51841 }, { 51842 key: "filterFormatItem", 51843 value: function(w, P, S) { 51844 for (var _ = this.state.formattedGraphicalItems, T = 0, C = _.length; T < C; T++) { 51845 var O = _[T]; 51846 if (O.item === w || O.props.key === w.key || P === yo(O.item.type) && S === O.childIndex) 51847 return O 51848 } 51849 return null 51850 } 51851 }, { 51852 key: "renderClipPath", 51853 value: function() { 51854 var w = this.clipPathId 51855 , P = this.state.offset 51856 , S = P.left 51857 , _ = P.top 51858 , T = P.height 51859 , C = P.width; 51860 return k.createElement("defs", null, k.createElement("clipPath", { 51861 id: w 51862 }, k.createElement("rect", { 51863 x: S, 51864 y: _, 51865 height: T, 51866 width: C 51867 }))) 51868 } 51869 }, { 51870 key: "getXScales", 51871 value: function() { 51872 var w = this.state.xAxisMap; 51873 return w ? Object.entries(w).reduce(function(P, S) { 51874 var _ = Ik(S, 2) 51875 , T = _[0] 51876 , C = _[1]; 51877 return q(q({}, P), {}, _e({}, T, C.scale)) 51878 }, {}) : null 51879 } 51880 }, { 51881 key: "getYScales", 51882 value: function() { 51883 var w = this.state.yAxisMap; 51884 return w ? Object.entries(w).reduce(function(P, S) { 51885 var _ = Ik(S, 2) 51886 , T = _[0] 51887 , C = _[1]; 51888 return q(q({}, P), {}, _e({}, T, C.scale)) 51889 }, {}) : null 51890 } 51891 }, { 51892 key: "getXScaleByAxisId", 51893 value: function(w) { 51894 var P; 51895 return (P = this.state.xAxisMap) === null || P === void 0 || (P = P[w]) === null || P === void 0 ? void 0 : P.scale 51896 } 51897 }, { 51898 key: "getYScaleByAxisId", 51899 value: function(w) { 51900 var P; 51901 return (P = this.state.yAxisMap) === null || P === void 0 || (P = P[w]) === null || P === void 0 ? void 0 : P.scale 51902 } 51903 }, { 51904 key: "getItemByXY", 51905 value: function(w) { 51906 var P = this.state 51907 , S = P.formattedGraphicalItems 51908 , _ = P.activeItem; 51909 if (S && S.length) 51910 for (var T = 0, C = S.length; T < C; T++) { 51911 var O = S[T] 51912 , A = O.props 51913 , E = O.item 51914 , j = E.type.defaultProps !== void 0 ? q(q({}, E.type.defaultProps), E.props) : E.props 51915 , $ = yo(E.type); 51916 if ($ === "Bar") { 51917 var R = (A.data || []).find(function(N) { 51918 return kAe(w, N) 51919 }); 51920 if (R) 51921 return { 51922 graphicalItem: O, 51923 payload: R 51924 } 51925 } else if ($ === "RadialBar") { 51926 var L = (A.data || []).find(function(N) { 51927 return _M(w, N) 51928 }); 51929 if (L) 51930 return { 51931 graphicalItem: O, 51932 payload: L 51933 } 51934 } else if (i0(O, _) || o0(O, _) || qf(O, _)) { 51935 var B = IEe({ 51936 graphicalItem: O, 51937 activeTooltipItem: _, 51938 itemData: j.data 51939 }) 51940 , U = j.activeIndex === void 0 ? B : j.activeIndex; 51941 return { 51942 graphicalItem: q(q({}, O), {}, { 51943 childIndex: U 51944 }), 51945 payload: qf(O, _) ? j.data[B] : O.props.data[B] 51946 } 51947 } 51948 } 51949 return null 51950 } 51951 }, { 51952 key: "render", 51953 value: function() { 51954 var w = this; 51955 if (!mj(this)) 51956 return null; 51957 var P = this.props 51958 , S = P.children 51959 , _ = P.className 51960 , T = P.width 51961 , C = P.height 51962 , O = P.style 51963 , A = P.compact 51964 , E = P.title 51965 , j = P.desc 51966 , $ = $k(P, tke) 51967 , R = Je($, !1); 51968 if (A) 51969 return k.createElement(Pk, { 51970 state: this.state, 51971 width: this.props.width, 51972 height: this.props.height, 51973 clipPathId: this.clipPathId 51974 }, k.createElement(l1, Ll({}, R, { 51975 width: T, 51976 height: C, 51977 title: E, 51978 desc: j 51979 }), this.renderClipPath(), yj(S, this.renderMap))); 51980 if (this.props.accessibilityLayer) { 51981 var L, B; 51982 R.tabIndex = (L = this.props.tabIndex) !== null && L !== void 0 ? L : 0, 51983 R.role = (B = this.props.role) !== null && B !== void 0 ? B : "application", 51984 R.onKeyDown = function(N) { 51985 w.accessibilityManager.keyboardEvent(N) 51986 } 51987 , 51988 R.onFocus = function() { 51989 w.accessibilityManager.focus() 51990 } 51991 } 51992 var U = this.parseEventsOfWrapper(); 51993 return k.createElement(Pk, { 51994 state: this.state, 51995 width: this.props.width, 51996 height: this.props.height, 51997 clipPathId: this.clipPathId 51998 }, k.createElement("div", Ll({ 51999 className: Ge("recharts-wrapper", _), 52000 style: q({ 52001 position: "relative", 52002 cursor: "default", 52003 width: T, 52004 height: C 52005 }, O) 52006 }, U, { 52007 ref: function(D) { 52008 w.container = D 52009 } 52010 }), k.createElement(l1, Ll({}, R, { 52011 width: T, 52012 height: C, 52013 title: E, 52014 desc: j, 52015 style: vke 52016 }), this.renderClipPath(), yj(S, this.renderMap)), this.renderLegend(), this.renderTooltip())) 52017 } 52018 }]) 52019 }(b.Component); 52020 _e(g, "displayName", n), 52021 _e(g, "defaultProps", q({ 52022 layout: "horizontal", 52023 stackOffset: "none", 52024 barCategoryGap: "10%", 52025 barGap: 4, 52026 margin: { 52027 top: 5, 52028 right: 5, 52029 bottom: 5, 52030 left: 5 52031 }, 52032 reverseStackOrder: !1, 52033 syncMethod: "index" 52034 }, d)), 52035 _e(g, "getDerivedStateFromProps", function(x, v) { 52036 var y = x.dataKey 52037 , w = x.data 52038 , P = x.children 52039 , S = x.width 52040 , _ = x.height 52041 , T = x.layout 52042 , C = x.stackOffset 52043 , O = x.margin 52044 , A = v.dataStartIndex 52045 , E = v.dataEndIndex; 52046 if (v.updateId === void 0) { 52047 var j = Bk(x); 52048 return q(q(q({}, j), {}, { 52049 updateId: 0 52050 }, p(q(q({ 52051 props: x 52052 }, j), {}, { 52053 updateId: 0 52054 }), v)), {}, { 52055 prevDataKey: y, 52056 prevData: w, 52057 prevWidth: S, 52058 prevHeight: _, 52059 prevLayout: T, 52060 prevStackOffset: C, 52061 prevMargin: O, 52062 prevChildren: P 52063 }) 52064 } 52065 if (y !== v.prevDataKey || w !== v.prevData || S !== v.prevWidth || _ !== v.prevHeight || T !== v.prevLayout || C !== v.prevStackOffset || !Ql(O, v.prevMargin)) { 52066 var $ = Bk(x) 52067 , R = { 52068 chartX: v.chartX, 52069 chartY: v.chartY, 52070 isTooltipActive: v.isTooltipActive 52071 } 52072 , L = q(q({}, Fk(v, w, T)), {}, { 52073 updateId: v.updateId + 1 52074 }) 52075 , B = q(q(q({}, $), R), L); 52076 return q(q(q({}, B), p(q({ 52077 props: x 52078 }, B), v)), {}, { 52079 prevDataKey: y, 52080 prevData: w, 52081 prevWidth: S, 52082 prevHeight: _, 52083 prevLayout: T, 52084 prevStackOffset: C, 52085 prevMargin: O, 52086 prevChildren: P 52087 }) 52088 } 52089 if (!a1(P, v.prevChildren)) { 52090 var U, N, D, W, K = sr(P, Vc), G = K && (U = (N = K.props) === null || N === void 0 ? void 0 : N.startIndex) !== null && U !== void 0 ? U : A, ae = K && (D = (W = K.props) === null || W === void 0 ? void 0 : W.endIndex) !== null && D !== void 0 ? D : E, ve = G !== A || ae !== E, je = !et(w), Oe = je && !ve ? v.updateId : v.updateId + 1; 52091 return q(q({ 52092 updateId: Oe 52093 }, p(q(q({ 52094 props: x 52095 }, v), {}, { 52096 updateId: Oe, 52097 dataStartIndex: G, 52098 dataEndIndex: ae 52099 }), v)), {}, { 52100 prevChildren: P, 52101 dataStartIndex: G, 52102 dataEndIndex: ae 52103 }) 52104 } 52105 return null 52106 }), 52107 _e(g, "renderActiveDot", function(x, v, y) { 52108 var w; 52109 return b.isValidElement(x) ? w = b.cloneElement(x, v) : qe(x) ? w = x(v) : w = k.createElement(tW, v),
52110 k.createElement(ln, { 52111 className: "recharts-active-dot", 52112 key: y 52113 }, w) 52114 }); 52115 var m = b.forwardRef(function(v, y) { 52116 return k.createElement(g, Ll({}, v, { 52117 ref: y 52118 })) 52119 }); 52120 return m.displayName = g.displayName, 52121 m 52122} 52123 , Eke = Ake({ 52124 chartName: "BarChart", 52125 GraphicalChild: il, 52126 defaultTooltipEventType: "axis", 52127 validateTooltipEventTypes: ["axis", "item"], 52128 axisComponents: [{ 52129 axisType: "xAxis", 52130 AxisComp: f0 52131 }, { 52132 axisType: "yAxis", 52133 AxisComp: h0 52134 }], 52135 formatAxisMap: cNe 52136}); 52137function st(e) { 52138 const t = Object.prototype.toString.call(e); 52139 return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : new Date(NaN) 52140} 52141function ja(e, t) { 52142 return e instanceof Date ? new e.constructor(t) : new Date(t) 52143} 52144const HW = 6048e5 52145 , jke = 864e5 52146 , qp = 43200 52147 , Uk = 1440; 52148let Nke = {}; 52149function Kh() { 52150 return Nke 52151} 52152function Jf(e, t) { 52153 var s, l, c, u; 52154 const n = Kh() 52155 , r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0 52156 , i = st(e) 52157 , o = i.getDay() 52158 , a = (o < r ? 7 : 0) + o - r; 52159 return i.setDate(i.getDate() - a), 52160 i.setHours(0, 0, 0, 0), 52161 i 52162} 52163function uy(e) { 52164 return Jf(e, { 52165 weekStartsOn: 1 52166 }) 52167} 52168function qW(e) { 52169 const t = st(e) 52170 , n = t.getFullYear() 52171 , r = ja(e, 0); 52172 r.setFullYear(n + 1, 0, 4), 52173 r.setHours(0, 0, 0, 0); 52174 const i = uy(r) 52175 , o = ja(e, 0); 52176 o.setFullYear(n, 0, 4), 52177 o.setHours(0, 0, 0, 0); 52178 const a = uy(o); 52179 return t.getTime() >= i.getTime() ? n + 1 : t.getTime() >= a.getTime() ? n : n - 1 52180} 52181function zk(e) { 52182 const t = st(e); 52183 return t.setHours(0, 0, 0, 0), 52184 t 52185} 52186function dy(e) { 52187 const t = st(e) 52188 , n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds())); 52189 return n.setUTCFullYear(t.getFullYear()), 52190 +e - +n 52191} 52192function Mke(e, t) { 52193 const n = zk(e) 52194 , r = zk(t) 52195 , i = +n - dy(n) 52196 , o = +r - dy(r); 52197 return Math.round((i - o) / jke) 52198} 52199function kke(e) { 52200 const t = qW(e) 52201 , n = ja(e, 0); 52202 return n.setFullYear(t, 0, 4), 52203 n.setHours(0, 0, 0, 0), 52204 uy(n) 52205} 52206function ym(e, t) { 52207 const n = st(e) 52208 , r = st(t) 52209 , i = n.getTime() - r.getTime(); 52210 return i < 0 ? -1 : i > 0 ? 1 : i 52211} 52212function Rke(e) { 52213 return ja(e, Date.now()) 52214} 52215function Dke(e) { 52216 return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]" 52217} 52218function Ike(e) { 52219 if (!Dke(e) && typeof e != "number") 52220 return !1; 52221 const t = st(e); 52222 return !isNaN(Number(t)) 52223} 52224function $ke(e, t) { 52225 const n = st(e) 52226 , r = st(t) 52227 , i = n.getFullYear() - r.getFullYear() 52228 , o = n.getMonth() - r.getMonth(); 52229 return i * 12 + o 52230} 52231function Lke(e) { 52232 return t => { 52233 const r = (e ? Math[e] : Math.trunc)(t); 52234 return r === 0 ? 0 : r 52235 } 52236} 52237function Fke(e, t) { 52238 return +st(e) - +st(t) 52239} 52240function Bke(e) { 52241 const t = st(e); 52242 return t.setHours(23, 59, 59, 999), 52243 t 52244} 52245function Vke(e) { 52246 const t = st(e) 52247 , n = t.getMonth(); 52248 return t.setFullYear(t.getFullYear(), n + 1, 0), 52249 t.setHours(23, 59, 59, 999), 52250 t 52251} 52252function Uke(e) { 52253 const t = st(e); 52254 return +Bke(t) == +Vke(t) 52255} 52256function zke(e, t) { 52257 const n = st(e) 52258 , r = st(t) 52259 , i = ym(n, r) 52260 , o = Math.abs($ke(n, r)); 52261 let a; 52262 if (o < 1) 52263 a = 0; 52264 else { 52265 n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), 52266 n.setMonth(n.getMonth() - i * o); 52267 let s = ym(n, r) === -i; 52268 Uke(st(e)) && o === 1 && ym(e, r) === 1 && (s = !1), 52269 a = i * (o - Number(s)) 52270 } 52271 return a === 0 ? 0 : a 52272} 52273function Wke(e, t, n) { 52274 const r = Fke(e, t) / 1e3; 52275 return Lke(n == null ? void 0 : n.roundingMethod)(r) 52276} 52277function Hke(e) { 52278 const t = st(e) 52279 , n = ja(e, 0); 52280 return n.setFullYear(t.getFullYear(), 0, 1), 52281 n.setHours(0, 0, 0, 0), 52282 n 52283} 52284const qke = { 52285 lessThanXSeconds: { 52286 one: "less than a second", 52287 other: "less than {{count}} seconds" 52288 }, 52289 xSeconds: { 52290 one: "1 second", 52291 other: "{{count}} seconds" 52292 }, 52293 halfAMinute: "half a minute", 52294 lessThanXMinutes: { 52295 one: "less than a minute", 52296 other: "less than {{count}} minutes" 52297 }, 52298 xMinutes: { 52299 one: "1 minute", 52300 other: "{{count}} minutes" 52301 }, 52302 aboutXHours: { 52303 one: "about 1 hour", 52304 other: "about {{count}} hours" 52305 }, 52306 xHours: { 52307 one: "1 hour", 52308 other: "{{count}} hours" 52309 }, 52310 xDays: { 52311 one: "1 day", 52312 other: "{{count}} days" 52313 }, 52314 aboutXWeeks: { 52315 one: "about 1 week", 52316 other: "about {{count}} weeks" 52317 }, 52318 xWeeks: { 52319 one: "1 week", 52320 other: "{{count}} weeks" 52321 }, 52322 aboutXMonths: { 52323 one: "about 1 month", 52324 other: "about {{count}} months" 52325 }, 52326 xMonths: { 52327 one: "1 month", 52328 other: "{{count}} months" 52329 }, 52330 aboutXYears: { 52331 one: "about 1 year", 52332 other: "about {{count}} years" 52333 }, 52334 xYears: { 52335 one: "1 year", 52336 other: "{{count}} years" 52337 }, 52338 overXYears: { 52339 one: "over 1 year", 52340 other: "over {{count}} years" 52341 }, 52342 almostXYears: { 52343 one: "almost 1 year", 52344 other: "almost {{count}} years" 52345 } 52346} 52347 , Kke = (e, t, n) => { 52348 let r; 52349 const i = qke[e]; 52350 return typeof i == "string" ? r = i : t === 1 ? r = i.one : r = i.other.replace("{{count}}", t.toString()), 52351 n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r 52352} 52353; 52354function Xx(e) { 52355 return (t={}) => { 52356 const n = t.width ? String(t.width) : e.defaultWidth; 52357 return e.formats[n] || e.formats[e.defaultWidth] 52358 } 52359} 52360const Gke = { 52361 full: "EEEE, MMMM do, y", 52362 long: "MMMM do, y", 52363 medium: "MMM d, y", 52364 short: "MM/dd/yyyy" 52365} 52366 , Yke = { 52367 full: "h:mm:ss a zzzz", 52368 long: "h:mm:ss a z", 52369 medium: "h:mm:ss a", 52370 short: "h:mm a" 52371} 52372 , Xke = { 52373 full: "{{date}} 'at' {{time}}", 52374 long: "{{date}} 'at' {{time}}", 52375 medium: "{{date}}, {{time}}", 52376 short: "{{date}}, {{time}}" 52377} 52378 , Qke = { 52379 date: Xx({ 52380 formats: Gke, 52381 defaultWidth: "full" 52382 }), 52383 time: Xx({ 52384 formats: Yke, 52385 defaultWidth: "full" 52386 }), 52387 dateTime: Xx({ 52388 formats: Xke, 52389 defaultWidth: "full" 52390 }) 52391} 52392 , Zke = { 52393 lastWeek: "'last' eeee 'at' p", 52394 yesterday: "'yesterday at' p", 52395 today: "'today at' p", 52396 tomorrow: "'tomorrow at' p", 52397 nextWeek: "eeee 'at' p", 52398 other: "P" 52399} 52400 , Jke = (e, t, n, r) => Zke[e]; 52401function Yu(e) { 52402 return (t, n) => { 52403 const r = n != null && n.context ? String(n.context) : "standalone"; 52404 let i; 52405 if (r === "formatting" && e.formattingValues) { 52406 const a = e.defaultFormattingWidth || e.defaultWidth 52407 , s = n != null && n.width ? String(n.width) : a; 52408 i = e.formattingValues[s] || e.formattingValues[a] 52409 } else { 52410 const a = e.defaultWidth 52411 , s = n != null && n.width ? String(n.width) : e.defaultWidth; 52412 i = e.values[s] || e.values[a] 52413 } 52414 const o = e.argumentCallback ? e.argumentCallback(t) : t; 52415 return i[o] 52416 } 52417} 52418const e2e = { 52419 narrow: ["B", "A"], 52420 abbreviated: ["BC", "AD"], 52421 wide: ["Before Christ", "Anno Domini"] 52422} 52423 , t2e = { 52424 narrow: ["1", "2", "3", "4"], 52425 abbreviated: ["Q1", "Q2", "Q3", "Q4"], 52426 wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] 52427} 52428 , n2e = { 52429 narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], 52430 abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], 52431 wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
vendor: 10,774 bytes, lines 52431-52846
52431November", "December"] 52432} 52433 , r2e = { 52434 narrow: ["S", "M", "T", "W", "T", "F", "S"], 52435 short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], 52436 abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], 52437 wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] 52438} 52439 , i2e = { 52440 narrow: { 52441 am: "a", 52442 pm: "p", 52443 midnight: "mi", 52444 noon: "n", 52445 morning: "morning", 52446 afternoon: "afternoon", 52447 evening: "evening", 52448 night: "night" 52449 }, 52450 abbreviated: { 52451 am: "AM", 52452 pm: "PM", 52453 midnight: "midnight", 52454 noon: "noon", 52455 morning: "morning", 52456 afternoon: "afternoon", 52457 evening: "evening", 52458 night: "night" 52459 }, 52460 wide: { 52461 am: "a.m.", 52462 pm: "p.m.", 52463 midnight: "midnight", 52464 noon: "noon", 52465 morning: "morning", 52466 afternoon: "afternoon", 52467 evening: "evening", 52468 night: "night" 52469 } 52470} 52471 , o2e = { 52472 narrow: { 52473 am: "a", 52474 pm: "p", 52475 midnight: "mi", 52476 noon: "n", 52477 morning: "in the morning", 52478 afternoon: "in the afternoon", 52479 evening: "in the evening", 52480 night: "at night" 52481 }, 52482 abbreviated: { 52483 am: "AM", 52484 pm: "PM", 52485 midnight: "midnight", 52486 noon: "noon", 52487 morning: "in the morning", 52488 afternoon: "in the afternoon", 52489 evening: "in the evening", 52490 night: "at night" 52491 }, 52492 wide: { 52493 am: "a.m.", 52494 pm: "p.m.", 52495 midnight: "midnight", 52496 noon: "noon", 52497 morning: "in the morning", 52498 afternoon: "in the afternoon", 52499 evening: "in the evening", 52500 night: "at night" 52501 } 52502} 52503 , a2e = (e, t) => { 52504 const n = Number(e) 52505 , r = n % 100; 52506 if (r > 20 || r < 10) 52507 switch (r % 10) { 52508 case 1: 52509 return n + "st"; 52510 case 2: 52511 return n + "nd"; 52512 case 3: 52513 return n + "rd" 52514 } 52515 return n + "th" 52516} 52517 , s2e = { 52518 ordinalNumber: a2e, 52519 era: Yu({ 52520 values: e2e, 52521 defaultWidth: "wide" 52522 }), 52523 quarter: Yu({ 52524 values: t2e, 52525 defaultWidth: "wide", 52526 argumentCallback: e => e - 1 52527 }), 52528 month: Yu({ 52529 values: n2e, 52530 defaultWidth: "wide" 52531 }), 52532 day: Yu({ 52533 values: r2e, 52534 defaultWidth: "wide" 52535 }), 52536 dayPeriod: Yu({ 52537 values: i2e, 52538 defaultWidth: "wide", 52539 formattingValues: o2e, 52540 defaultFormattingWidth: "wide" 52541 }) 52542}; 52543function Xu(e) { 52544 return (t, n={}) => { 52545 const r = n.width 52546 , i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth] 52547 , o = t.match(i); 52548 if (!o) 52549 return null; 52550 const a = o[0] 52551 , s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth] 52552 , l = Array.isArray(s) ? c2e(s, d => d.test(a)) : l2e(s, d => d.test(a)); 52553 let c; 52554 c = e.valueCallback ? e.valueCallback(l) : l, 52555 c = n.valueCallback ? n.valueCallback(c) : c; 52556 const u = t.slice(a.length); 52557 return { 52558 value: c, 52559 rest: u 52560 } 52561 } 52562} 52563function l2e(e, t) { 52564 for (const n in e) 52565 if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) 52566 return n 52567} 52568function c2e(e, t) { 52569 for (let n = 0; n < e.length; n++) 52570 if (t(e[n])) 52571 return n 52572} 52573function u2e(e) { 52574 return (t, n={}) => { 52575 const r = t.match(e.matchPattern); 52576 if (!r) 52577 return null; 52578 const i = r[0] 52579 , o = t.match(e.parsePattern); 52580 if (!o) 52581 return null; 52582 let a = e.valueCallback ? e.valueCallback(o[0]) : o[0]; 52583 a = n.valueCallback ? n.valueCallback(a) : a; 52584 const s = t.slice(i.length); 52585 return { 52586 value: a, 52587 rest: s 52588 } 52589 } 52590} 52591const d2e = /^(\d+)(th|st|nd|rd)?/i 52592 , f2e = /\d+/i 52593 , h2e = { 52594 narrow: /^(b|a)/i, 52595 abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, 52596 wide: /^(before christ|before common era|anno domini|common era)/i 52597} 52598 , p2e = { 52599 any: [/^b/i, /^(a|c)/i] 52600} 52601 , m2e = { 52602 narrow: /^[1234]/i, 52603 abbreviated: /^q[1234]/i, 52604 wide: /^[1234](th|st|nd|rd)? quarter/i 52605} 52606 , g2e = { 52607 any: [/1/i, /2/i, /3/i, /4/i] 52608} 52609 , y2e = { 52610 narrow: /^[jfmasond]/i, 52611 abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, 52612 wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i 52613} 52614 , v2e = { 52615 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 52616 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 52617} 52618 , x2e = { 52619 narrow: /^[smtwf]/i, 52620 short: /^(su|mo|tu|we|th|fr|sa)/i, 52621 abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, 52622 wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i 52623} 52624 , b2e = { 52625 narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], 52626 any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] 52627} 52628 , w2e = { 52629 narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, 52630 any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i 52631} 52632 , S2e = { 52633 any: { 52634 am: /^a/i, 52635 pm: /^p/i, 52636 midnight: /^mi/i, 52637 noon: /^no/i, 52638 morning: /morning/i, 52639 afternoon: /afternoon/i, 52640 evening: /evening/i, 52641 night: /night/i 52642 } 52643} 52644 , P2e = { 52645 ordinalNumber: u2e({ 52646 matchPattern: d2e, 52647 parsePattern: f2e, 52648 valueCallback: e => parseInt(e, 10) 52649 }), 52650 era: Xu({ 52651 matchPatterns: h2e, 52652 defaultMatchWidth: "wide", 52653 parsePatterns: p2e, 52654 defaultParseWidth: "any" 52655 }), 52656 quarter: Xu({ 52657 matchPatterns: m2e, 52658 defaultMatchWidth: "wide", 52659 parsePatterns: g2e, 52660 defaultParseWidth: "any", 52661 valueCallback: e => e + 1 52662 }), 52663 month: Xu({ 52664 matchPatterns: y2e, 52665 defaultMatchWidth: "wide", 52666 parsePatterns: v2e, 52667 defaultParseWidth: "any" 52668 }), 52669 day: Xu({ 52670 matchPatterns: x2e, 52671 defaultMatchWidth: "wide", 52672 parsePatterns: b2e, 52673 defaultParseWidth: "any" 52674 }), 52675 dayPeriod: Xu({ 52676 matchPatterns: w2e, 52677 defaultMatchWidth: "any", 52678 parsePatterns: S2e, 52679 defaultParseWidth: "any" 52680 }) 52681} 52682 , KW = { 52683 code: "en-US", 52684 formatDistance: Kke, 52685 formatLong: Qke, 52686 formatRelative: Jke, 52687 localize: s2e, 52688 match: P2e, 52689 options: { 52690 weekStartsOn: 0, 52691 firstWeekContainsDate: 1 52692 } 52693}; 52694function _2e(e) { 52695 const t = st(e); 52696 return Mke(t, Hke(t)) + 1 52697} 52698function T2e(e) { 52699 const t = st(e) 52700 , n = +uy(t) - +kke(t); 52701 return Math.round(n / HW) + 1 52702} 52703function GW(e, t) { 52704 var u, d, f, p; 52705 const n = st(e) 52706 , r = n.getFullYear() 52707 , i = Kh() 52708 , o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((p = (f = i.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1 52709 , a = ja(e, 0); 52710 a.setFullYear(r + 1, 0, o), 52711 a.setHours(0, 0, 0, 0); 52712 const s = Jf(a, t) 52713 , l = ja(e, 0); 52714 l.setFullYear(r, 0, o), 52715 l.setHours(0, 0, 0, 0); 52716 const c = Jf(l, t); 52717 return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= c.getTime() ? r : r - 1 52718} 52719function C2e(e, t) { 52720 var s, l, c, u; 52721 const n = Kh() 52722 , r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1 52723 , i = GW(e, t) 52724 , o = ja(e, 0); 52725 return o.setFullYear(i, 0, r), 52726 o.setHours(0, 0, 0, 0), 52727 Jf(o, t) 52728} 52729function O2e(e, t) { 52730 const n = st(e) 52731 , r = +Jf(n, t) - +C2e(n, t); 52732 return Math.round(r / HW) + 1 52733} 52734function nt(e, t) { 52735 const n = e < 0 ? "-" : "" 52736 , r = Math.abs(e).toString().padStart(t, "0"); 52737 return n + r 52738} 52739const Uo = { 52740 y(e, t) { 52741 const n = e.getFullYear() 52742 , r = n > 0 ? n : 1 - n; 52743 return nt(t === "yy" ? r % 100 : r, t.length) 52744 }, 52745 M(e, t) { 52746 const n = e.getMonth(); 52747 return t === "M" ? String(n + 1) : nt(n + 1, 2) 52748 }, 52749 d(e, t) { 52750 return nt(e.getDate(), t.length) 52751 }, 52752 a(e, t) { 52753 const n = e.getHours() / 12 >= 1 ? "pm" : "am"; 52754 switch (t) { 52755 case "a": 52756 case "aa": 52757 return n.toUpperCase(); 52758 case "aaa": 52759 return n; 52760 case "aaaaa": 52761 return n[0]; 52762 case "aaaa": 52763 default: 52764 return n === "am" ? "a.m." : "p.m." 52765 } 52766 }, 52767 h(e, t) { 52768 return nt(e.getHours() % 12 || 12, t.length) 52769 }, 52770 H(e, t) { 52771 return nt(e.getHours(), t.length) 52772 }, 52773 m(e, t) { 52774 return nt(e.getMinutes(), t.length) 52775 }, 52776 s(e, t) { 52777 return nt(e.getSeconds(), t.length) 52778 }, 52779 S(e, t) { 52780 const n = t.length 52781 , r = e.getMilliseconds() 52782 , i = Math.trunc(r * Math.pow(10, n - 3)); 52783 return nt(i, t.length) 52784 } 52785} 52786 , ml = { 52787 am: "am", 52788 pm: "pm", 52789 midnight: "midnight", 52790 noon: "noon", 52791 morning: "morning", 52792 afternoon: "afternoon", 52793 evening: "evening", 52794 night: "night" 52795} 52796 , Wk = { 52797 G: function(e, t, n) { 52798 const r = e.getFullYear() > 0 ? 1 : 0; 52799 switch (t) { 52800 case "G": 52801 case "GG": 52802 case "GGG": 52803 return n.era(r, { 52804 width: "abbreviated" 52805 }); 52806 case "GGGGG": 52807 return n.era(r, { 52808 width: "narrow" 52809 }); 52810 case "GGGG": 52811 default: 52812 return n.era(r, { 52813 width: "wide" 52814 }) 52815 } 52816 }, 52817 y: function(e, t, n) { 52818 if (t === "yo") { 52819 const r = e.getFullYear() 52820 , i = r > 0 ? r : 1 - r; 52821 return n.ordinalNumber(i, { 52822 unit: "year" 52823 }) 52824 } 52825 return Uo.y(e, t) 52826 }, 52827 Y: function(e, t, n, r) { 52828 const i = GW(e, r) 52829 , o = i > 0 ? i : 1 - i; 52830 if (t === "YY") { 52831 const a = o % 100; 52832 return nt(a, 2) 52833 } 52834 return t === "Yo" ? n.ordinalNumber(o, { 52835 unit: "year" 52836 }) : nt(o, t.length) 52837 }, 52838 R: function(e, t) { 52839 const n = qW(e); 52840 return nt(n, t.length) 52841 }, 52842 u: function(e, t) { 52843 const n = e.getFullYear(); 52844 return nt(n, t.length) 52845 }, 52846 Q: function(e, t, n) {
vendor: 4,693 bytes, lines 52847-53025
52847 const r = Math.ceil((e.getMonth() + 1) / 3); 52848 switch (t) { 52849 case "Q": 52850 return String(r); 52851 case "QQ": 52852 return nt(r, 2); 52853 case "Qo": 52854 return n.ordinalNumber(r, { 52855 unit: "quarter" 52856 }); 52857 case "QQQ": 52858 return n.quarter(r, { 52859 width: "abbreviated", 52860 context: "formatting" 52861 }); 52862 case "QQQQQ": 52863 return n.quarter(r, { 52864 width: "narrow", 52865 context: "formatting" 52866 }); 52867 case "QQQQ": 52868 default: 52869 return n.quarter(r, { 52870 width: "wide", 52871 context: "formatting" 52872 }) 52873 } 52874 }, 52875 q: function(e, t, n) { 52876 const r = Math.ceil((e.getMonth() + 1) / 3); 52877 switch (t) { 52878 case "q": 52879 return String(r); 52880 case "qq": 52881 return nt(r, 2); 52882 case "qo": 52883 return n.ordinalNumber(r, { 52884 unit: "quarter" 52885 }); 52886 case "qqq": 52887 return n.quarter(r, { 52888 width: "abbreviated", 52889 context: "standalone" 52890 }); 52891 case "qqqqq": 52892 return n.quarter(r, { 52893 width: "narrow", 52894 context: "standalone" 52895 }); 52896 case "qqqq": 52897 default: 52898 return n.quarter(r, { 52899 width: "wide", 52900 context: "standalone" 52901 }) 52902 } 52903 }, 52904 M: function(e, t, n) { 52905 const r = e.getMonth(); 52906 switch (t) { 52907 case "M": 52908 case "MM": 52909 return Uo.M(e, t); 52910 case "Mo": 52911 return n.ordinalNumber(r + 1, { 52912 unit: "month" 52913 }); 52914 case "MMM": 52915 return n.month(r, { 52916 width: "abbreviated", 52917 context: "formatting" 52918 }); 52919 case "MMMMM": 52920 return n.month(r, { 52921 width: "narrow", 52922 context: "formatting" 52923 }); 52924 case "MMMM": 52925 default: 52926 return n.month(r, { 52927 width: "wide", 52928 context: "formatting" 52929 }) 52930 } 52931 }, 52932 L: function(e, t, n) { 52933 const r = e.getMonth(); 52934 switch (t) { 52935 case "L": 52936 return String(r + 1); 52937 case "LL": 52938 return nt(r + 1, 2); 52939 case "Lo": 52940 return n.ordinalNumber(r + 1, { 52941 unit: "month" 52942 }); 52943 case "LLL": 52944 return n.month(r, { 52945 width: "abbreviated", 52946 context: "standalone" 52947 }); 52948 case "LLLLL": 52949 return n.month(r, { 52950 width: "narrow", 52951 context: "standalone" 52952 }); 52953 case "LLLL": 52954 default: 52955 return n.month(r, { 52956 width: "wide", 52957 context: "standalone" 52958 }) 52959 } 52960 }, 52961 w: function(e, t, n, r) { 52962 const i = O2e(e, r); 52963 return t === "wo" ? n.ordinalNumber(i, { 52964 unit: "week" 52965 }) : nt(i, t.length) 52966 }, 52967 I: function(e, t, n) { 52968 const r = T2e(e); 52969 return t === "Io" ? n.ordinalNumber(r, { 52970 unit: "week" 52971 }) : nt(r, t.length) 52972 }, 52973 d: function(e, t, n) { 52974 return t === "do" ? n.ordinalNumber(e.getDate(), { 52975 unit: "date" 52976 }) : Uo.d(e, t) 52977 }, 52978 D: function(e, t, n) { 52979 const r = _2e(e); 52980 return t === "Do" ? n.ordinalNumber(r, { 52981 unit: "dayOfYear" 52982 }) : nt(r, t.length) 52983 }, 52984 E: function(e, t, n) { 52985 const r = e.getDay(); 52986 switch (t) { 52987 case "E": 52988 case "EE": 52989 case "EEE": 52990 return n.day(r, { 52991 width: "abbreviated", 52992 context: "formatting" 52993 }); 52994 case "EEEEE": 52995 return n.day(r, { 52996 width: "narrow", 52997 context: "formatting" 52998 }); 52999 case "EEEEEE": 53000 return n.day(r, { 53001 width: "short", 53002 context: "formatting" 53003 }); 53004 case "EEEE": 53005 default: 53006 return n.day(r, { 53007 width: "wide", 53008 context: "formatting" 53009 }) 53010 } 53011 }, 53012 e: function(e, t, n, r) { 53013 const i = e.getDay() 53014 , o = (i - r.weekStartsOn + 8) % 7 || 7; 53015 switch (t) { 53016 case "e": 53017 return String(o); 53018 case "ee": 53019 return nt(o, 2); 53020 case "eo": 53021 return n.ordinalNumber(o, { 53022 unit: "day" 53023 }); 53024 case "eee": 53025 return n.day(i, {
vendor: 10,896 bytes, lines 53026-53455
53026 width: "abbreviated", 53027 context: "formatting" 53028 }); 53029 case "eeeee": 53030 return n.day(i, { 53031 width: "narrow", 53032 context: "formatting" 53033 }); 53034 case "eeeeee": 53035 return n.day(i, { 53036 width: "short", 53037 context: "formatting" 53038 }); 53039 case "eeee": 53040 default: 53041 return n.day(i, { 53042 width: "wide", 53043 context: "formatting" 53044 }) 53045 } 53046 }, 53047 c: function(e, t, n, r) { 53048 const i = e.getDay() 53049 , o = (i - r.weekStartsOn + 8) % 7 || 7; 53050 switch (t) { 53051 case "c": 53052 return String(o); 53053 case "cc": 53054 return nt(o, t.length); 53055 case "co": 53056 return n.ordinalNumber(o, { 53057 unit: "day" 53058 }); 53059 case "ccc": 53060 return n.day(i, { 53061 width: "abbreviated", 53062 context: "standalone" 53063 }); 53064 case "ccccc": 53065 return n.day(i, { 53066 width: "narrow", 53067 context: "standalone" 53068 }); 53069 case "cccccc": 53070 return n.day(i, { 53071 width: "short", 53072 context: "standalone" 53073 }); 53074 case "cccc": 53075 default: 53076 return n.day(i, { 53077 width: "wide", 53078 context: "standalone" 53079 }) 53080 } 53081 }, 53082 i: function(e, t, n) { 53083 const r = e.getDay() 53084 , i = r === 0 ? 7 : r; 53085 switch (t) { 53086 case "i": 53087 return String(i); 53088 case "ii": 53089 return nt(i, t.length); 53090 case "io": 53091 return n.ordinalNumber(i, { 53092 unit: "day" 53093 }); 53094 case "iii": 53095 return n.day(r, { 53096 width: "abbreviated", 53097 context: "formatting" 53098 }); 53099 case "iiiii": 53100 return n.day(r, { 53101 width: "narrow", 53102 context: "formatting" 53103 }); 53104 case "iiiiii": 53105 return n.day(r, { 53106 width: "short", 53107 context: "formatting" 53108 }); 53109 case "iiii": 53110 default: 53111 return n.day(r, { 53112 width: "wide", 53113 context: "formatting" 53114 }) 53115 } 53116 }, 53117 a: function(e, t, n) { 53118 const i = e.getHours() / 12 >= 1 ? "pm" : "am"; 53119 switch (t) { 53120 case "a": 53121 case "aa": 53122 return n.dayPeriod(i, { 53123 width: "abbreviated", 53124 context: "formatting" 53125 }); 53126 case "aaa": 53127 return n.dayPeriod(i, { 53128 width: "abbreviated", 53129 context: "formatting" 53130 }).toLowerCase(); 53131 case "aaaaa": 53132 return n.dayPeriod(i, { 53133 width: "narrow", 53134 context: "formatting" 53135 }); 53136 case "aaaa": 53137 default: 53138 return n.dayPeriod(i, { 53139 width: "wide", 53140 context: "formatting" 53141 }) 53142 } 53143 }, 53144 b: function(e, t, n) { 53145 const r = e.getHours(); 53146 let i; 53147 switch (r === 12 ? i = ml.noon : r === 0 ? i = ml.midnight : i = r / 12 >= 1 ? "pm" : "am", 53148 t) { 53149 case "b": 53150 case "bb": 53151 return n.dayPeriod(i, { 53152 width: "abbreviated", 53153 context: "formatting" 53154 }); 53155 case "bbb": 53156 return n.dayPeriod(i, { 53157 width: "abbreviated", 53158 context: "formatting" 53159 }).toLowerCase(); 53160 case "bbbbb": 53161 return n.dayPeriod(i, { 53162 width: "narrow", 53163 context: "formatting" 53164 }); 53165 case "bbbb": 53166 default: 53167 return n.dayPeriod(i, { 53168 width: "wide", 53169 context: "formatting" 53170 }) 53171 } 53172 }, 53173 B: function(e, t, n) { 53174 const r = e.getHours(); 53175 let i; 53176 switch (r >= 17 ? i = ml.evening : r >= 12 ? i = ml.afternoon : r >= 4 ? i = ml.morning : i = ml.night, 53177 t) { 53178 case "B": 53179 case "BB": 53180 case "BBB": 53181 return n.dayPeriod(i, { 53182 width: "abbreviated", 53183 context: "formatting" 53184 }); 53185 case "BBBBB": 53186 return n.dayPeriod(i, { 53187 width: "narrow", 53188 context: "formatting" 53189 }); 53190 case "BBBB": 53191 default: 53192 return n.dayPeriod(i, { 53193 width: "wide", 53194 context: "formatting" 53195 }) 53196 } 53197 }, 53198 h: function(e, t, n) { 53199 if (t === "ho") { 53200 let r = e.getHours() % 12; 53201 return r === 0 && (r = 12), 53202 n.ordinalNumber(r, { 53203 unit: "hour" 53204 }) 53205 } 53206 return Uo.h(e, t) 53207 }, 53208 H: function(e, t, n) { 53209 return t === "Ho" ? n.ordinalNumber(e.getHours(), { 53210 unit: "hour" 53211 }) : Uo.H(e, t) 53212 }, 53213 K: function(e, t, n) { 53214 const r = e.getHours() % 12; 53215 return t === "Ko" ? n.ordinalNumber(r, { 53216 unit: "hour" 53217 }) : nt(r, t.length) 53218 }, 53219 k: function(e, t, n) { 53220 let r = e.getHours(); 53221 return r === 0 && (r = 24), 53222 t === "ko" ? n.ordinalNumber(r, { 53223 unit: "hour" 53224 }) : nt(r, t.length) 53225 }, 53226 m: function(e, t, n) { 53227 return t === "mo" ? n.ordinalNumber(e.getMinutes(), { 53228 unit: "minute" 53229 }) : Uo.m(e, t) 53230 }, 53231 s: function(e, t, n) { 53232 return t === "so" ? n.ordinalNumber(e.getSeconds(), { 53233 unit: "second" 53234 }) : Uo.s(e, t) 53235 }, 53236 S: function(e, t) { 53237 return Uo.S(e, t) 53238 }, 53239 X: function(e, t, n) { 53240 const r = e.getTimezoneOffset(); 53241 if (r === 0) 53242 return "Z"; 53243 switch (t) { 53244 case "X": 53245 return qk(r); 53246 case "XXXX": 53247 case "XX": 53248 return as(r); 53249 case "XXXXX": 53250 case "XXX": 53251 default: 53252 return as(r, ":") 53253 } 53254 }, 53255 x: function(e, t, n) { 53256 const r = e.getTimezoneOffset(); 53257 switch (t) { 53258 case "x": 53259 return qk(r); 53260 case "xxxx": 53261 case "xx": 53262 return as(r); 53263 case "xxxxx": 53264 case "xxx": 53265 default: 53266 return as(r, ":") 53267 } 53268 }, 53269 O: function(e, t, n) { 53270 const r = e.getTimezoneOffset(); 53271 switch (t) { 53272 case "O": 53273 case "OO": 53274 case "OOO": 53275 return "GMT" + Hk(r, ":"); 53276 case "OOOO": 53277 default: 53278 return "GMT" + as(r, ":") 53279 } 53280 }, 53281 z: function(e, t, n) { 53282 const r = e.getTimezoneOffset(); 53283 switch (t) { 53284 case "z": 53285 case "zz": 53286 case "zzz": 53287 return "GMT" + Hk(r, ":"); 53288 case "zzzz": 53289 default: 53290 return "GMT" + as(r, ":") 53291 } 53292 }, 53293 t: function(e, t, n) { 53294 const r = Math.trunc(e.getTime() / 1e3); 53295 return nt(r, t.length) 53296 }, 53297 T: function(e, t, n) { 53298 const r = e.getTime(); 53299 return nt(r, t.length) 53300 } 53301}; 53302function Hk(e, t="") { 53303 const n = e > 0 ? "-" : "+" 53304 , r = Math.abs(e) 53305 , i = Math.trunc(r / 60) 53306 , o = r % 60; 53307 return o === 0 ? n + String(i) : n + String(i) + t + nt(o, 2) 53308} 53309function qk(e, t) { 53310 return e % 60 === 0 ? (e > 0 ? "-" : "+") + nt(Math.abs(e) / 60, 2) : as(e, t) 53311} 53312function as(e, t="") { 53313 const n = e > 0 ? "-" : "+" 53314 , r = Math.abs(e) 53315 , i = nt(Math.trunc(r / 60), 2) 53316 , o = nt(r % 60, 2); 53317 return n + i + t + o 53318} 53319const Kk = (e, t) => { 53320 switch (e) { 53321 case "P": 53322 return t.date({ 53323 width: "short" 53324 }); 53325 case "PP": 53326 return t.date({ 53327 width: "medium" 53328 }); 53329 case "PPP": 53330 return t.date({ 53331 width: "long" 53332 }); 53333 case "PPPP": 53334 default: 53335 return t.date({ 53336 width: "full" 53337 }) 53338 } 53339} 53340 , YW = (e, t) => { 53341 switch (e) { 53342 case "p": 53343 return t.time({ 53344 width: "short" 53345 }); 53346 case "pp": 53347 return t.time({ 53348 width: "medium" 53349 }); 53350 case "ppp": 53351 return t.time({ 53352 width: "long" 53353 }); 53354 case "pppp": 53355 default: 53356 return t.time({ 53357 width: "full" 53358 }) 53359 } 53360} 53361 , A2e = (e, t) => { 53362 const n = e.match(/(P+)(p+)?/) || [] 53363 , r = n[1] 53364 , i = n[2]; 53365 if (!i) 53366 return Kk(e, t); 53367 let o; 53368 switch (r) { 53369 case "P": 53370 o = t.dateTime({ 53371 width: "short" 53372 }); 53373 break; 53374 case "PP": 53375 o = t.dateTime({ 53376 width: "medium" 53377 }); 53378 break; 53379 case "PPP": 53380 o = t.dateTime({ 53381 width: "long" 53382 }); 53383 break; 53384 case "PPPP": 53385 default: 53386 o = t.dateTime({ 53387 width: "full" 53388 }); 53389 break 53390 } 53391 return o.replace("{{date}}", Kk(r, t)).replace("{{time}}", YW(i, t)) 53392} 53393 , E2e = { 53394 p: YW, 53395 P: A2e 53396} 53397 , j2e = /^D+$/ 53398 , N2e = /^Y+$/ 53399 , M2e = ["D", "DD", "YY", "YYYY"]; 53400function k2e(e) { 53401 return j2e.test(e) 53402} 53403function R2e(e) { 53404 return N2e.test(e) 53405} 53406function D2e(e, t, n) { 53407 const r = I2e(e, t, n); 53408 if (console.warn(r), 53409 M2e.includes(e)) 53410 throw new RangeError(r) 53411} 53412function I2e(e, t, n) { 53413 const r = e[0] === "Y" ? "years" : "days of the month"; 53414 return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md` 53415} 53416const $2e = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g 53417 , L2e = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g 53418 , F2e = /^'([^]*?)'?$/ 53419 , B2e = /''/g 53420 , V2e = /[a-zA-Z]/; 53421function eh(e, t, n) { 53422 var u, d, f, p; 53423 const r = Kh() 53424 , i = r.locale ?? KW 53425 , o = r.firstWeekContainsDate ?? ((d = (u = r.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1 53426 , a = r.weekStartsOn ?? ((p = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : p.weekStartsOn) ?? 0 53427 , s = st(e); 53428 if (!Ike(s)) 53429 throw new RangeError("Invalid time value"); 53430 let l = t.match(L2e).map(g => { 53431 const m = g[0]; 53432 if (m === "p" || m === "P") { 53433 const x = E2e[m]; 53434 return x(g, i.formatLong) 53435 } 53436 return g 53437 } 53438 ).join("").match($2e).map(g => { 53439 if (g === "''") 53440 return { 53441 isToken: !1, 53442 value: "'" 53443 }; 53444 const m = g[0]; 53445 if (m === "'") 53446 return { 53447 isToken: !1, 53448 value: U2e(g) 53449 }; 53450 if (Wk[m]) 53451 return { 53452 isToken: !0, 53453 value: g 53454 }; 53455 if (m.match(V2e))
53456 throw new RangeError("Format string contains an unescaped latin alphabet character `" + m + "`"); 53457 return { 53458 isToken: !1, 53459 value: g 53460 } 53461 } 53462 ); 53463 i.localize.preprocessor && (l = i.localize.preprocessor(s, l)); 53464 const c = { 53465 firstWeekContainsDate: o, 53466 weekStartsOn: a, 53467 locale: i 53468 }; 53469 return l.map(g => { 53470 if (!g.isToken) 53471 return g.value; 53472 const m = g.value; 53473 (R2e(m) || k2e(m)) && D2e(m, t, String(e)); 53474 const x = Wk[m[0]]; 53475 return x(s, m, i.localize, c) 53476 } 53477 ).join("") 53478} 53479function U2e(e) { 53480 const t = e.match(F2e); 53481 return t ? t[1].replace(B2e, "'") : e 53482} 53483function z2e(e, t, n) { 53484 const r = Kh() 53485 , i = (n == null ? void 0 : n.locale) ?? r.locale ?? KW 53486 , o = 2520 53487 , a = ym(e, t); 53488 if (isNaN(a)) 53489 throw new RangeError("Invalid time value"); 53490 const s = Object.assign({}, n, { 53491 addSuffix: n == null ? void 0 : n.addSuffix, 53492 comparison: a 53493 }); 53494 let l, c; 53495 a > 0 ? (l = st(t), 53496 c = st(e)) : (l = st(e), 53497 c = st(t)); 53498 const u = Wke(c, l) 53499 , d = (dy(c) - dy(l)) / 1e3 53500 , f = Math.round((u - d) / 60); 53501 let p; 53502 if (f < 2) 53503 return n != null && n.includeSeconds ? u < 5 ? i.formatDistance("lessThanXSeconds", 5, s) : u < 10 ? i.formatDistance("lessThanXSeconds", 10, s) : u < 20 ? i.formatDistance("lessThanXSeconds", 20, s) : u < 40 ? i.formatDistance("halfAMinute", 0, s) : u < 60 ? i.formatDistance("lessThanXMinutes", 1, s) : i.formatDistance("xMinutes", 1, s) : f === 0 ? i.formatDistance("lessThanXMinutes", 1, s) : i.formatDistance("xMinutes", f, s); 53504 if (f < 45) 53505 return i.formatDistance("xMinutes", f, s); 53506 if (f < 90) 53507 return i.formatDistance("aboutXHours", 1, s); 53508 if (f < Uk) { 53509 const g = Math.round(f / 60); 53510 return i.formatDistance("aboutXHours", g, s) 53511 } else { 53512 if (f < o) 53513 return i.formatDistance("xDays", 1, s); 53514 if (f < qp) { 53515 const g = Math.round(f / Uk); 53516 return i.formatDistance("xDays", g, s) 53517 } else if (f < qp * 2) 53518 return p = Math.round(f / qp), 53519 i.formatDistance("aboutXMonths", p, s) 53520 } 53521 if (p = zke(c, l), 53522 p < 12) { 53523 const g = Math.round(f / qp); 53524 return i.formatDistance("xMonths", g, s) 53525 } else { 53526 const g = p % 12 53527 , m = Math.trunc(p / 12); 53528 return g < 3 ? i.formatDistance("aboutXYears", m, s) : g < 9 ? i.formatDistance("overXYears", m, s) : i.formatDistance("almostXYears", m + 1, s) 53529 } 53530} 53531function pC(e, t) { 53532 return z2e(e, Rke(e), t) 53533} 53534const Qu = Ee(cn); 53535function W2e() { 53536 var S, _, T, C; 53537 const {user: e} = za() 53538 , {data: t, isLoading: n} = ni({ 53539 queryKey: ["/api/credits/balance"], 53540 enabled: !!e 53541 }) 53542 , {data: r, isLoading: i} = ni({ 53543 queryKey: ["/api/render-jobs"], 53544 enabled: !!e 53545 }) 53546 , o = (r == null ? void 0 : r.reduce( (O, A) => A.cost ? O + parseFloat(A.cost.toString()) : O, 0)) ?? 0 53547 , a = t ? parseFloat(t.balance.toString()) : 0 53548 , s = a - o 53549 , {data: l, isLoading: c} = ni({ 53550 queryKey: ["/api/keys"], 53551 enabled: !!e 53552 }) 53553 , {data: u, isLoading: d} = ni({ 53554 queryKey: ["/api/machines"], 53555 enabled: !!e 53556 }) 53557 , {data: f, isLoading: p} = ni({ 53558 queryKey: ["/api/render-jobs"], 53559 enabled: !!e 53560 }) 53561 , g = ((S = l == null ? void 0 : l.filter(O => O.isActive)) == null ? void 0 : S.length) ?? 0 53562 , m = ((_ = u == null ? void 0 : u.filter(O => !O.isRevoked)) == null ? void 0 : _.length) ?? 0 53563 , x = f == null ? void 0 : f.reduce( (O, A) => { 53564 const E = eh(new Date(A.startTime), "MMM"); 53565 if (O[E] || (O[E] = { 53566 cost: 0, 53567 renderTime: 0 53568 }), 53569 A.cost && (O[E].cost += parseFloat(A.cost.toString())), 53570 A.status === "completed" && A.endTime && A.startTime) { 53571 const j = new Date(A.endTime).getTime() - new Date(A.startTime).getTime(); 53572 O[E].renderTime += j / (1e3 * 60) 53573 } 53574 return O 53575 } 53576 , {}) 53577 , v = eh(new Date, "MMM") 53578 , y = ((T = x == null ? void 0 : x[v]) == null ? void 0 : T.renderTime) ?? 0 53579 , w = O => { 53580 if (O < 60) 53581 return `${Math.round(O)}m`; 53582 const A = Math.floor(O / 60) 53583 , E = Math.round(O % 60); 53584 return E > 0 ? `${A}h ${E}m` : `${A}h` 53585 } 53586 , P = x ? Object.entries(x).map( ([O,A]) => ({ 53587 month: O, 53588 cost: Number(A.cost.toFixed(2)), 53589 renderTime: Math.round(A.renderTime) 53590 })) : []; 53591 return h.jsxs(Ee.div, { 53592 className: "space-y-8", 53593 variants: Ac, 53594 initial: "initial", 53595 animate: "animate", 53596 children: [h.jsxs(Ee.div, { 53597 className: "grid gap-4 md:grid-cols-4", 53598 variants: Ac, 53599 children: [h.jsxs(Qu, { 53600 variants: It, 53601 children: [h.jsx(Kt, { 53602 children: h.jsxs(Gt, { 53603 className: "flex items-center gap-2", 53604 children: [h.jsx(Yy, { 53605 className: "h-6 w-6" 53606 }), "Available Credits"] 53607 }) 53608 }), h.jsxs(Ct, { 53609 children: [h.jsxs(Ee.p, { 53610 className: "text-2xl font-bold", 53611 initial: { 53612 scale: .8, 53613 opacity: 0 53614 }, 53615 animate: { 53616 scale: 1, 53617 opacity: 1 53618 }, 53619 transition: { 53620 delay: .1 53621 }, 53622 children: ["$", n || i ? "Loading..." : s.toFixed(2)] 53623 }), h.jsxs("p", { 53624 className: "text-sm text-muted-foreground", 53625 children: ["Available credits (Total: $", a.toFixed(2), " - Used: $", o.toFixed(2), ")"] 53626 })] 53627 })] 53628 }), h.jsxs(Qu, { 53629 variants: It, 53630 children: [h.jsx(Kt, { 53631 children: h.jsx(Gt, { 53632 children: "Active Studio Keys" 53633 }) 53634 }), h.jsxs(Ct, { 53635 children: [h.jsx(Ee.p, { 53636 className: "text-2xl font-bold", 53637 initial: { 53638 scale: .8, 53639 opacity: 0 53640 }, 53641 animate: { 53642 scale: 1, 53643 opacity: 1 53644 }, 53645 transition: { 53646 delay: .2 53647 }, 53648 children: c ? "Loading..." : g 53649 }), h.jsx("p", { 53650 className: "text-sm text-muted-foreground", 53651 children: g === 0 ? "Generate your first key in Studio Keys" : "Currently in use" 53652 })] 53653 })] 53654 }), h.jsxs(Qu, { 53655 variants: It, 53656 children: [h.jsx(Kt, { 53657 children: h.jsx(Gt, { 53658 children: "Active Machines" 53659 }) 53660 }), h.jsxs(Ct, { 53661 children: [h.jsx(Ee.p, { 53662 className: "text-2xl font-bold", 53663 initial: { 53664 scale: .8, 53665 opacity: 0 53666 }, 53667 animate: { 53668 scale: 1, 53669 opacity: 1 53670 }, 53671 transition: { 53672 delay: .3 53673 }, 53674 children: d ? "Loading..." : m 53675 }), h.jsx("p", { 53676 className: "text-sm text-muted-foreground", 53677 children: m === 0 ? "No machines registered yet" : "Currently online" 53678 })] 53679 })] 53680 }), h.jsxs(Qu, { 53681 variants: It, 53682 children: [h.jsx(Kt, { 53683 children: h.jsx(Gt, { 53684 children: "Total Render Time" 53685 }) 53686 }), h.jsxs(Ct, { 53687 children: [h.jsx(Ee.p, { 53688 className: "text-2xl font-bold", 53689 initial: { 53690 scale: .8, 53691 opacity: 0 53692 }, 53693 animate: { 53694 scale: 1, 53695 opacity: 1 53696 }, 53697 transition: { 53698 delay: .4 53699 }, 53700 children: p ? "Loading..." : w(y) 53701 }), h.jsxs("p", { 53702 className: "text-sm text-muted-foreground", 53703 children: ["This month's total ($", ((C = x == null ? void 0 : x[v]) == null ? void 0 : C.cost.toFixed(2)) ?? "0.00", ")"] 53704 })] 53705 })] 53706 })] 53707 }), h.jsxs(Qu, { 53708 variants: Ut, 53709 children: [h.jsx(Kt, { 53710 children: h.jsx(Gt, { 53711 children: "Monthly Usage" 53712 }) 53713 }), h.jsx(Ct, { 53714 className: "h-[400px]", 53715 children: P.length > 0 ? h.jsx(e1e, { 53716 width: "100%", 53717 height: "100%", 53718 children: h.jsxs(Eke, { 53719 data: P, 53720 children: [h.jsx(f0, { 53721 dataKey: "month" 53722 }), h.jsx(h0, {}), h.jsx(Pi, { 53723 formatter: (O, A) => A === "cost" ? [`$${O}`, "Cost"] : [w(O), "Render Time"], 53724 labelFormatter: O => `${O}` 53725 }), h.jsx(il, { 53726 dataKey: "cost", 53727 fill: "currentColor", 53728 className: "fill-primary", 53729 radius: [4, 4, 0, 0] 53730 })] 53731 }) 53732 }) : h.jsx("div", { 53733 className: "flex items-center justify-center h-full text-muted-foreground",
53734 children: "No usage data available yet" 53735 }) 53736 })] 53737 })] 53738 }) 53739} 53740const Gh = b.forwardRef( ({className: e, ...t}, n) => h.jsx("div", { 53741 className: "relative w-full overflow-auto", 53742 children: h.jsx("table", { 53743 ref: n, 53744 className: fe("w-full caption-bottom text-sm", e), 53745 ...t 53746 }) 53747})); 53748Gh.displayName = "Table"; 53749const Yh = b.forwardRef( ({className: e, ...t}, n) => h.jsx("thead", { 53750 ref: n, 53751 className: fe("[&_tr]:border-b", e), 53752 ...t 53753})); 53754Yh.displayName = "TableHeader"; 53755const Xh = b.forwardRef( ({className: e, ...t}, n) => h.jsx("tbody", { 53756 ref: n, 53757 className: fe("[&_tr:last-child]:border-0", e), 53758 ...t 53759})); 53760Xh.displayName = "TableBody"; 53761const H2e = b.forwardRef( ({className: e, ...t}, n) => h.jsx("tfoot", { 53762 ref: n, 53763 className: fe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", e), 53764 ...t 53765})); 53766H2e.displayName = "TableFooter"; 53767const Vi = b.forwardRef( ({className: e, ...t}, n) => h.jsx("tr", { 53768 ref: n, 53769 className: fe("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", e), 53770 ...t 53771})); 53772Vi.displayName = "TableRow"; 53773const mt = b.forwardRef( ({className: e, ...t}, n) => h.jsx("th", { 53774 ref: n, 53775 className: fe("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", e), 53776 ...t 53777})); 53778mt.displayName = "TableHead"; 53779const ut = b.forwardRef( ({className: e, ...t}, n) => h.jsx("td", { 53780 ref: n, 53781 className: fe("p-4 align-middle [&:has([role=checkbox])]:pr-0", e), 53782 ...t 53783})); 53784ut.displayName = "TableCell"; 53785const q2e = b.forwardRef( ({className: e, ...t}, n) => h.jsx("caption", { 53786 ref: n, 53787 className: fe("mt-4 text-sm text-muted-foreground", e), 53788 ...t 53789})); 53790q2e.displayName = "TableCaption"; 53791function K2e() { 53792 const {toast: e} = Fa() 53793 , {data: t, isLoading: n} = ni({ 53794 queryKey: ["/api/keys"] 53795 }) 53796 , r = ci({ 53797 mutationFn: async () => await (await Di("POST", "/api/keys")).json(), 53798 onSuccess: () => { 53799 hr.invalidateQueries({ 53800 queryKey: ["/api/keys"] 53801 }), 53802 e({ 53803 title: "Success", 53804 description: "New studio key generated" 53805 }) 53806 } 53807 }) 53808 , i = ci({ 53809 mutationFn: async o => { 53810 await Di("POST", `/api/keys/${o}/deactivate`) 53811 } 53812 , 53813 onSuccess: () => { 53814 hr.invalidateQueries({ 53815 queryKey: ["/api/keys"] 53816 }), 53817 e({ 53818 title: "Success", 53819 description: "Studio key deactivated" 53820 }) 53821 } 53822 }); 53823 return n ? h.jsx("div", { 53824 className: "flex items-center justify-center h-96", 53825 children: h.jsx(Xy, { 53826 className: "h-8 w-8 animate-spin" 53827 }) 53828 }) : h.jsxs(cn, { 53829 children: [h.jsxs(Kt, { 53830 className: "flex flex-row items-center justify-between", 53831 children: [h.jsx(Gt, { 53832 children: "Studio Keys" 53833 }), h.jsxs(Me, { 53834 onClick: () => r.mutate(), 53835 disabled: r.isPending, 53836 children: [h.jsx(M4, { 53837 className: "mr-2 h-4 w-4" 53838 }), "Generate New Key"] 53839 })] 53840 }), h.jsx(Ct, { 53841 children: h.jsxs(Gh, { 53842 children: [h.jsx(Yh, { 53843 children: h.jsxs(Vi, { 53844 children: [h.jsx(mt, { 53845 children: "Key" 53846 }), h.jsx(mt, { 53847 children: "Status" 53848 }), h.jsx(mt, { 53849 children: "Created" 53850 }), h.jsx(mt, { 53851 children: "Actions" 53852 })] 53853 }) 53854 }), h.jsx(Xh, { 53855 children: t == null ? void 0 : t.map(o => h.jsxs(Vi, { 53856 children: [h.jsx(ut, { 53857 className: "font-mono", 53858 children: o.key 53859 }), h.jsx(ut, { 53860 children: o.isActive ? "Active" : "Inactive" 53861 }), h.jsx(ut, { 53862 children: pC(new Date(o.createdAt), { 53863 addSuffix: !0 53864 }) 53865 }), h.jsx(ut, { 53866 children: h.jsx(Me, { 53867 variant: "destructive", 53868 size: "sm", 53869 disabled: !o.isActive || i.isPending, 53870 onClick: () => i.mutate(o.id), 53871 children: "Deactivate" 53872 }) 53873 })] 53874 }, o.id)) 53875 })] 53876 }) 53877 })] 53878 }) 53879} 53880function G2e() { 53881 const {toast: e}
53881 = Fa() 53882 , {data: t, isLoading: n} = ni({ 53883 queryKey: ["/api/machines"] 53884 }) 53885 , r = ci({ 53886 mutationFn: async i => { 53887 await Di("POST", `/api/machines/${i}/revoke`) 53888 } 53889 , 53890 onSuccess: () => { 53891 hr.invalidateQueries({ 53892 queryKey: ["/api/machines"] 53893 }), 53894 e({ 53895 title: "Success", 53896 description: "Machine access revoked" 53897 }) 53898 } 53899 }); 53900 return n ? h.jsx("div", { 53901 className: "flex items-center justify-center h-96", 53902 children: h.jsx(Xy, { 53903 className: "h-8 w-8 animate-spin" 53904 }) 53905 }) : h.jsxs(cn, { 53906 children: [h.jsx(Kt, { 53907 children: h.jsx(Gt, { 53908 children: "Registered Machines" 53909 }) 53910 }), h.jsx(Ct, { 53911 children: h.jsxs(Gh, { 53912 children: [h.jsx(Yh, { 53913 children: h.jsxs(Vi, { 53914 children: [h.jsx(mt, { 53915 children: "Machine Name" 53916 }), h.jsx(mt, { 53917 children: "Status" 53918 }), h.jsx(mt, { 53919 children: "Last Active" 53920 }), h.jsx(mt, { 53921 children: "Actions" 53922 })] 53923 }) 53924 }), h.jsx(Xh, { 53925 children: t == null ? void 0 : t.map(i => h.jsxs(Vi, { 53926 children: [h.jsx(ut, { 53927 children: i.name 53928 }), h.jsx(ut, { 53929 children: i.isRevoked ? "Revoked" : "Active" 53930 }), h.jsx(ut, { 53931 children: i.lastActive ? pC(new Date(i.lastActive), { 53932 addSuffix: !0 53933 }) : "Never" 53934 }), h.jsx(ut, { 53935 children: h.jsx(Me, { 53936 variant: "destructive", 53937 size: "sm", 53938 disabled: i.isRevoked || r.isPending, 53939 onClick: () => r.mutate(i.id), 53940 children: "Revoke Access" 53941 }) 53942 })] 53943 }, i.id)) 53944 })] 53945 }) 53946 })] 53947 }) 53948} 53949const Y2e = Ch("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", { 53950 variants: { 53951 variant: { 53952 default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80", 53953 secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80", 53954 destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80", 53955 outline: "text-foreground" 53956 } 53957 }, 53958 defaultVariants: { 53959 variant: "default" 53960 } 53961}); 53962function Gk({className: e, variant: t, ...n}) { 53963 return h.jsx("div", { 53964 className: fe(Y2e({ 53965 variant: t 53966 }), e), 53967 ...n 53968 }) 53969} 53970const Qx = Ee(cn) 53971 , X2e = [{ 53972 value: 25, 53973 label: "$25" 53974}, { 53975 value: 50, 53976 label: "$50" 53977}, { 53978 value: 100, 53979 label: "$100" 53980}]; 53981function Q2e() { 53982 const {toast: e} = Fa() 53983 , [t,n] = b.useState("") 53984 , [r,i] = b.useState("all") 53985 , {data: o, isLoading: a} = ni({ 53986 queryKey: ["/api/credits/balance"] 53987 }) 53988 , {data: s, isLoading: l} = ni({ 53989 queryKey: ["/api/render-jobs"] 53990 }) 53991 , c = (s == null ? void 0 : s.reduce( (y, w) => w.cost ? y + parseFloat(w.cost.toString()) : y, 0)) ?? 0 53992 , u = o ? parseFloat(o.balance.toString()) : 0 53993 , {data: d, isLoading: f} = ni({ 53994 queryKey: ["/api/transactions"] 53995 }) 53996 , p = ci({ 53997 mutationFn: async y => await (await Di("POST", "/api/credits/purchase", { 53998 amount: y 53999 })).json(), 54000 onSuccess: y => { 54001 hr.invalidateQueries({ 54002 queryKey: ["/api/credits/balance"] 54003 }),
54004 hr.invalidateQueries({ 54005 queryKey: ["/api/transactions"] 54006 }), 54007 e({ 54008 title: "Purchase Successful", 54009 description: `$${y.amount} purchased. Your new balance is $${y.newBalance}` 54010 }), 54011 n("") 54012 } 54013 , 54014 onError: () => { 54015 e({ 54016 title: "Purchase Failed", 54017 description: "There was an error processing your payment", 54018 variant: "destructive" 54019 }) 54020 } 54021 }) 54022 , g = y => { 54023 p.mutate(y) 54024 } 54025 , m = () => { 54026 const y = parseFloat(t); 54027 if (isNaN(y) || y <= 0) { 54028 e({ 54029 title: "Invalid Amount", 54030 description: "Please enter a valid amount", 54031 variant: "destructive" 54032 }); 54033 return 54034 } 54035 g(y) 54036 } 54037 , x = y => { 54038 const w = y.type === "credit" 54039 , P = ` 54040INVOICE 54041 54042Date: ${new Date(y.createdAt).toLocaleDateString()} 54043Transaction ID: ${y.id} 54044Type: ${w ? "Credit Purchase" : "Render Usage"} 54045Amount: ${w ? "+" : "-"}$${Math.abs(parseFloat(y.amount.toString())).toFixed(2)} 54046${!w && y.renderJobId ? `Render Job ID: ${y.renderJobId}` : ""} 54047Description: ${w ? "Credit Purchase" : "Render Usage Deduction"} 54048 54049Thank you for using HyperRender! 54050 `.trim() 54051 , S = new Blob([P],{ 54052 type: "text/plain" 54053 }) 54054 , _ = window.URL.createObjectURL(S) 54055 , T = document.createElement("a"); 54056 T.href = _, 54057 T.download = `invoice-${y.id}.txt`, 54058 document.body.appendChild(T), 54059 T.click(), 54060 window.URL.revokeObjectURL(_), 54061 document.body.removeChild(T) 54062 } 54063 , v = d == null ? void 0 : d.filter(y => r === "all" ? !0 : y.type === r); 54064 return a || f || l ? h.jsx("div", { 54065 className: "flex items-center justify-center h-96", 54066 children: h.jsx(Xy, { 54067 className: "h-8 w-8 animate-spin" 54068 }) 54069 }) : h.jsxs("div", { 54070 className: "container mx-auto py-8 px-4", 54071 children: [h.jsxs(Qx, { 54072 variants: Ut, 54073 initial: "initial", 54074 animate: "animate", 54075 className: "mb-8", 54076 children: [h.jsx(Kt, { 54077 children: h.jsxs(Gt, { 54078 className: "flex items-center gap-2", 54079 children: [h.jsx(Yy, { 54080 className: "h-6 w-6" 54081 }), "Available Credits"] 54082 }) 54083 }), h.jsxs(Ct, { 54084 children: [h.jsxs("div", { 54085 className: "text-4xl font-bold", 54086 children: ["$", (u - c).toFixed(2)] 54087 }), h.jsxs("p", { 54088 className: "text-sm text-muted-foreground mt-2", 54089 children: ["Total Credits: $", u.toFixed(2), " - Used in Renders: $", c.toFixed(2)] 54090 }), h.jsx("p", { 54091 className: "text-xs text-muted-foreground mt-1", 54092 children: "$1 = 1 Credit. You only pay for what you use." 54093 })] 54094 })] 54095 }), h.jsxs(Qx, { 54096 variants: It, 54097 initial: "initial", 54098 animate: "animate", 54099 className: "mb-8", 54100 children: [h.jsx(Kt, { 54101 children: h.jsx(Gt, { 54102 children: "Purchase Credits" 54103 }) 54104 }), h.jsx(Ct, { 54105 children: h.jsxs("div", { 54106 className: "space-y-4", 54107 children: [h.jsx("div", { 54108 className: "flex gap-4", 54109 children: X2e.map(y => h.jsx(Me, { 54110 variant: "outline", 54111 className: "flex-1", 54112 onClick: () => g(y.value), 54113 disabled: p.isPending, 54114 children: y.label 54115 }, y.value)) 54116 }), h.jsxs("div", { 54117 className: "flex gap-4", 54118 children: [h.jsx(yn, { 54119 type: "number", 54120 placeholder: "Enter custom amount", 54121 value: t, 54122 onChange: y => n(y.target.value), 54123 className: "flex-1" 54124 }), h.jsx(Me, { 54125 onClick: m, 54126 disabled: p.isPending, 54127 children: "Purchase" 54128 })] 54129 })] 54130 }) 54131 })] 54132 }), h.jsxs(Qx, { 54133 variants: It, 54134 initial: "initial", 54135 animate: "animate", 54136 children: [h.jsxs(Kt, { 54137 className: "flex flex-row items-center justify-between", 54138 children: [h.jsx(Gt, { 54139 children: "Transaction History" 54140 }), h.jsxs(gv, { 54141 value: r, 54142 onValueChange: y => i(y), 54143 children: [h.jsxs(Ih, { 54144 className: "w-[180px]", 54145 children: [h.jsx(AX, { 54146 className: "w-4 h-4 mr-2" 54147 }), h.jsx(yv, { 54148 placeholder: "Filter transactions" 54149 })] 54150 }), h.jsxs($h, { 54151 children: [h.jsx(go, { 54152 value: "all", 54153 children: "All Transactions" 54154 }), h.jsx(go, { 54155 value: "credit", 54156 children: "Credit Purchases" 54157 }), h.jsx(go, { 54158 value: "debit", 54159 children: "Render Usage" 54160 })] 54161 })] 54162 })] 54163 }), h.jsx(Ct, { 54164 children: h.jsx("div", { 54165 className: "rounded-md border", 54166 children: h.jsxs(Gh, { 54167 children: [h.jsx(Yh, { 54168 children: h.jsxs(Vi, {
54169 children: [h.jsx(mt, { 54170 children: "Date" 54171 }), h.jsx(mt, { 54172 children: "Type" 54173 }), h.jsx(mt, { 54174 children: "Amount" 54175 }), h.jsx(mt, { 54176 children: "Details" 54177 }), h.jsx(mt, { 54178 className: "text-right", 54179 children: "Invoice" 54180 })] 54181 }) 54182 }), h.jsx(Xh, { 54183 children: v != null && v.length ? v.map(y => h.jsxs(Vi, { 54184 children: [h.jsx(ut, { 54185 children: pC(new Date(y.createdAt), { 54186 addSuffix: !0 54187 }) 54188 }), h.jsx(ut, { 54189 children: h.jsx(Gk, { 54190 variant: y.type === "credit" ? "default" : "secondary", 54191 children: y.type === "credit" ? "Purchase" : "Usage" 54192 }) 54193 }), h.jsx(ut, { 54194 children: h.jsxs(Gk, { 54195 variant: "outline", 54196 className: y.type === "credit" ? "text-green-600" : "text-red-600", 54197 children: [y.type === "credit" ? "+" : "-", "$", Math.abs(parseFloat(y.amount.toString())).toFixed(2)] 54198 }) 54199 }), h.jsx(ut, { 54200 children: y.type === "credit" ? "Credit Purchase" : y.renderJobId ? `Render Job #${y.renderJobId}` : "Render Usage" 54201 }), h.jsx(ut, { 54202 className: "text-right", 54203 children: h.jsx(Me, { 54204 variant: "ghost", 54205 size: "sm", 54206 onClick: () => x(y), 54207 children: h.jsx(Oh, { 54208 className: "h-4 w-4" 54209 }) 54210 }) 54211 })] 54212 }, y.id)) : h.jsx(Vi, { 54213 children: h.jsx(ut, { 54214 colSpan: 5, 54215 className: "h-24 text-center", 54216 children: "No transactions found" 54217 }) 54218 }) 54219 })] 54220 }) 54221 }) 54222 })] 54223 })] 54224 }) 54225} 54226const Z2e = Ee(cn); 54227function J2e() { 54228 const {toast: e} = Fa() 54229 , [,t] = qy() 54230 , [n,r] = b.useState(0) 54231 , [i,o] = b.useState(null) 54232 , [a,s] = b.useState(!1) 54233 , l = ci({ 54234 mutationFn: async () => await (await Di("POST", "/api/keys")).json(), 54235 onSuccess: f => { 54236 o(f.key), 54237 hr.invalidateQueries({ 54238 queryKey: ["/api/keys"] 54239 }), 54240 e({ 54241 title: "Success", 54242 description: "Studio key generated successfully", 54243 duration: 500 54244 }), 54245 r(1) 54246 } 54247 }) 54248 , c = ci({ 54249 mutationFn: async () => { 54250 if (!i || !a) 54251 throw new Error("Please complete all steps before proceeding"); 54252 const f = await Di("POST", "/api/complete-onboarding") 54253 , p = await f.json(); 54254 if (!f.ok) 54255 throw new Error(p.message || "Failed to complete onboarding"); 54256 return p 54257 } 54258 , 54259 onSuccess: async f => {
54260 await hr.invalidateQueries({ 54261 queryKey: ["/api/user"] 54262 }), 54263 await hr.setQueryData(["/api/user"], p => ({ 54264 ...p, 54265 hasCompletedOnboarding: !0, 54266 ...f 54267 })), 54268 e({ 54269 title: "Welcome aboard!", 54270 description: "Setup completed successfully", 54271 duration: 1500 54272 }), 54273 setTimeout( () => { 54274 t("/dashboard") 54275 } 54276 , 500) 54277 } 54278 , 54279 onError: f => { 54280 e({ 54281 title: "Setup failed", 54282 description: f.message, 54283 variant: "destructive" 54284 }) 54285 } 54286 }) 54287 , u = () => { 54288 s(!0), 54289 r(2) 54290 } 54291 , d = [{ 54292 title: "Generate Studio Key", 54293 description: "Create a unique key for installing HyperRender on your studio machines", 54294 icon: gw, 54295 action: h.jsx(Me, { 54296 onClick: () => l.mutate(), 54297 disabled: l.isPending || i !== null, 54298 children: "Generate Key" 54299 }) 54300 }, { 54301 title: "Download MSI Installer", 54302 description: "Get the HyperRender MSI installer for deployment", 54303 icon: Oh, 54304 action: h.jsx(Me, { 54305 onClick: u, 54306 disabled: !i, 54307 children: "Download MSI" 54308 }) 54309 }, { 54310 title: "Installation Guide", 54311 description: "Learn how to deploy HyperRender across your studio", 54312 icon: O4, 54313 action: h.jsx(Me, { 54314 onClick: () => c.mutate(), 54315 disabled: c.isPending || !i || !a, 54316 children: "Complete Setup" 54317 }) 54318 }]; 54319 return h.jsxs(Z2e, { 54320 variants: Ut, 54321 initial: "initial", 54322 animate: "animate", 54323 className: "max-w-3xl mx-auto", 54324 children: [h.jsx(Kt, { 54325 children: h.jsx(Gt, { 54326 children: "Welcome to HyperRender" 54327 }) 54328 }), h.jsxs(Ct, { 54329 children: [h.jsx("div", { 54330 className: "mb-8 space-y-4", 54331 children: d.map( (f, p) => h.jsxs("div", { 54332 className: `flex items-center gap-4 p-4 rounded-lg transition-colors ${n === p ? "bg-primary text-primary-foreground" : !n && p > n ? "bg-muted/20" : "bg-primary/20"}`, 54333 children: [h.jsx("div", { 54334 className: "h-10 w-10 rounded-full flex items-center justify-center bg-background/20", 54335 children: h.jsx(f.icon, { 54336 className: "h-5 w-5" 54337 }) 54338 }), h.jsxs("div", { 54339 className: "flex-1", 54340 children: [h.jsx("h3", { 54341 className: "font-medium", 54342 children: f.title 54343 }), h.jsx("p", { 54344 className: "text-sm opacity-90", 54345 children: f.description 54346 })] 54347 }), h.jsx("div", { 54348 children: f.action 54349 })] 54350 }, f.title)) 54351 }), i && h.jsxs(Ee.div, { 54352 variants: It, 54353 className: "mb-8 p-4 bg-muted rounded-lg", 54354 children: [h.jsx("p", { 54355 className: "font-mono text-sm mb-2", 54356 children: "Your Studio Key:" 54357 }), h.jsx("p", { 54358 className: "font-mono break-all", 54359 children: i 54360 }), h.jsx("p", { 54361 className: "text-sm text-muted-foreground mt-2", 54362 children: "Save this key - you'll need it during the MSI installation process on each machine." 54363 })] 54364 }), h.jsx("div", { 54365 className: "space-y-4", 54366 children: h.jsxs("div", { 54367 className: "text-muted-foreground", 54368 children: [n === 0 && "Generate a studio key to begin setting up HyperRender for your team. This key will be used to authorize machines in your studio.", n === 1 && h.jsx(h.Fragment, { 54369 children: "Download the MSI installer that you'll use to deploy HyperRender across your studio machines. You can install this on multiple workstations - each installation will use the same studio key for registration." 54370 }), n === 2 && h.jsxs("div", { 54371 className: "space-y-4", 54372 children: [h.jsx("div", { 54373 children: "Follow these steps to install HyperRender on each machine:" 54374 }), h.jsxs("ol", { 54375 className: "list-decimal list-inside space-y-2 ml-4", 54376 children: [h.jsx("li", { 54377 children: "Run the MSI installer on each workstation where you want to use HyperRender" 54378 }), h.jsx("li", { 54379 children: "When prompted during installation, enter your studio key" 54380 }), h.jsx("li", { 54381 children: "The machine will automatically register with your studio account" 54382 }), h.jsx("li", { 54383 children: "Repeat this process for each workstation in your studio" 54384 })] 54385 }), h.jsx("div", { 54386 className: "mt-4", 54387 children: "You can monitor all registered machines and manage their access from your admin dashboard." 54388 })] 54389 })] 54390 }) 54391 })] 54392 }), h.jsx(q4, { 54393 className: "flex justify-end", 54394 children: d[n].action 54395 })] 54396 }) 54397} 54398function eRe() { 54399 return h.jsxs(Ee.div, { 54400 variants: Ut, 54401 initial: "initial", 54402 animate: "animate", 54403 className: "space-y-8", 54404 children: [h.jsx("h1", { 54405 className: "text-3xl font-bold", 54406 children: "Welcome to HyperRender" 54407 }), h.jsx("p", { 54408 className: "text-muted-foreground", 54409 children: "Let's get you set up with everything you need to start using HyperRender in your studio." 54410 }), h.jsx(J2e, {})] 54411 }) 54412} 54413const tRe = Ee.section; 54414function nRe() { 54415 return h.jsx(tRe, { 54416 className: "max-w-4xl mx-auto", 54417 variants: Ut, 54418 initial: "initial", 54419 animate: "animate", 54420 children: h.jsxs(Ee.div, { 54421 variants: It, 54422 children: [h.jsx("h1", { 54423 className: "text-4xl font-bold mb-6", 54424 children: "Download HyperRender MSI" 54425 }), h.jsx("p", { 54426 className: "text-muted-foreground mb-8", 54427 children: "Download our MSI installer to set up HyperRender on your workstation. This installer includes everything you need to get started with cloud rendering." 54428 }), h.jsxs("div", { 54429 className: "grid md:grid-cols-2 gap-8", 54430 children: [h.jsxs("div", { 54431 className: "bg-card rounded-lg p-6 border", 54432 children: [h.jsx(DX, {
54433 className: "h-12 w-12 text-primary mb-4" 54434 }), h.jsx("h2", { 54435 className: "text-2xl font-semibold mb-2", 54436 children: "Windows Installer" 54437 }), h.jsx("p", { 54438 className: "text-muted-foreground mb-4", 54439 children: "Compatible with Windows 10 and 11. Includes Unreal Engine plugin and standalone render client." 54440 }), h.jsxs(Me, { 54441 className: "w-full", 54442 size: "lg", 54443 children: [h.jsx(Oh, { 54444 className: "mr-2 h-4 w-4" 54445 }), "Download MSI (64-bit)"] 54446 })] 54447 }), h.jsxs("div", { 54448 className: "space-y-4", 54449 children: [h.jsx("h3", { 54450 className: "text-lg font-semibold", 54451 children: "System Requirements" 54452 }), h.jsxs("ul", { 54453 className: "space-y-2 text-muted-foreground", 54454 children: [h.jsx("li", { 54455 children: "Windows 10 or Windows 11" 54456 }), h.jsx("li", { 54457 children: "8GB RAM minimum (16GB recommended)" 54458 }), h.jsx("li", { 54459 children: "DirectX 12 compatible graphics card" 54460 }), h.jsx("li", { 54461 children: "Unreal Engine 4.26 or later" 54462 }), h.jsx("li", { 54463 children: "5GB free disk space" 54464 })] 54465 })] 54466 })] 54467 }), h.jsxs("div", { 54468 className: "mt-12 p-6 bg-muted/50 rounded-lg", 54469 children: [h.jsx("h3", { 54470 className: "text-xl font-semibold mb-4", 54471 children: "Installation Instructions" 54472 }), h.jsxs("ol", { 54473 className: "space-y-2 text-muted-foreground", 54474 children: [h.jsx("li", { 54475 children: "1. Download the MSI installer" 54476 }), h.jsx("li", { 54477 children: "2. Run the installer as administrator" 54478 }), h.jsx("li", { 54479 children: "3. Follow the installation wizard steps" 54480 }), h.jsx("li", { 54481 children: "4. Launch Unreal Engine and enable the HyperRender plugin" 54482 }), h.jsx("li", {
vendor: 46,577 bytes, lines 54483-56042
54483 children: "5. Enter your Studio Key to start rendering" 54484 })] 54485 })] 54486 })] 54487 }) 54488 }) 54489} 54490var Qh = e => e.type === "checkbox" 54491 , gs = e => e instanceof Date 54492 , In = e => e == null; 54493const XW = e => typeof e == "object"; 54494var zt = e => !In(e) && !Array.isArray(e) && XW(e) && !gs(e) 54495 , QW = e => zt(e) && e.target ? Qh(e.target) ? e.target.checked : e.target.value : e 54496 , rRe = e => e.substring(0, e.search(/\.\d+(\.|$)/)) || e 54497 , ZW = (e, t) => e.has(rRe(t)) 54498 , iRe = e => { 54499 const t = e.constructor && e.constructor.prototype; 54500 return zt(t) && t.hasOwnProperty("isPrototypeOf") 54501} 54502 , mC = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u"; 54503function Wn(e) { 54504 let t; 54505 const n = Array.isArray(e); 54506 if (e instanceof Date) 54507 t = new Date(e); 54508 else if (e instanceof Set) 54509 t = new Set(e); 54510 else if (!(mC && (e instanceof Blob || e instanceof FileList)) && (n || zt(e))) 54511 if (t = n ? [] : {}, 54512 !n && !iRe(e)) 54513 t = e; 54514 else 54515 for (const r in e) 54516 e.hasOwnProperty(r) && (t[r] = Wn(e[r])); 54517 else 54518 return e; 54519 return t 54520} 54521var m0 = e => Array.isArray(e) ? e.filter(Boolean) : [] 54522 , Rt = e => e === void 0 54523 , oe = (e, t, n) => { 54524 if (!t || !zt(e)) 54525 return n; 54526 const r = m0(t.split(/[,[\].]+?/)).reduce( (i, o) => In(i) ? i : i[o], e); 54527 return Rt(r) || r === e ? Rt(e[t]) ? n : e[t] : r 54528} 54529 , jr = e => typeof e == "boolean" 54530 , gC = e => /^\w*$/.test(e) 54531 , JW = e => m0(e.replace(/["|']|\]/g, "").split(/\.|\[/)) 54532 , Ze = (e, t, n) => { 54533 let r = -1; 54534 const i = gC(t) ? [t] : JW(t) 54535 , o = i.length 54536 , a = o - 1; 54537 for (; ++r < o; ) { 54538 const s = i[r]; 54539 let l = n; 54540 if (r !== a) { 54541 const c = e[s]; 54542 l = zt(c) || Array.isArray(c) ? c : isNaN(+i[r + 1]) ? {} : [] 54543 } 54544 if (s === "__proto__") 54545 return; 54546 e[s] = l, 54547 e = e[s] 54548 } 54549 return e 54550} 54551; 54552const fy = { 54553 BLUR: "blur", 54554 FOCUS_OUT: "focusout", 54555 CHANGE: "change" 54556} 54557 , ii = { 54558 onBlur: "onBlur", 54559 onChange: "onChange", 54560 onSubmit: "onSubmit", 54561 onTouched: "onTouched", 54562 all: "all" 54563} 54564 , to = { 54565 max: "max", 54566 min: "min", 54567 maxLength: "maxLength", 54568 minLength: "minLength", 54569 pattern: "pattern", 54570 required: "required", 54571 validate: "validate" 54572} 54573 , eH = k.createContext(null) 54574 , g0 = () => k.useContext(eH) 54575 , oRe = e => { 54576 const {children: t, ...n} = e; 54577 return k.createElement(eH.Provider, { 54578 value: n 54579 }, t) 54580} 54581; 54582var tH = (e, t, n, r=!0) => { 54583 const i = { 54584 defaultValues: t._defaultValues 54585 }; 54586 for (const o in e) 54587 Object.defineProperty(i, o, { 54588 get: () => { 54589 const a = o; 54590 return t._proxyFormState[a] !== ii.all && (t._proxyFormState[a] = !r || ii.all), 54591 n && (n[a] = !0), 54592 e[a] 54593 } 54594 }); 54595 return i 54596} 54597 , Kn = e => zt(e) && !Object.keys(e).length 54598 , nH = (e, t, n, r) => { 54599 n(e); 54600 const {name: i, ...o} = e; 54601 return Kn(o) || Object.keys(o).length >= Object.keys(t).length || Object.keys(o).find(a => t[a] === (!r || ii.all)) 54602} 54603 , Fd = e => Array.isArray(e) ? e : [e] 54604 , rH = (e, t, n) => !e || !t || e === t || Fd(e).some(r => r && (n ? r === t : r.startsWith(t) || t.startsWith(r))); 54605function yC(e) { 54606 const t = k.useRef(e); 54607 t.current = e, 54608 k.useEffect( () => { 54609 const n = !e.disabled && t.current.subject && t.current.subject.subscribe({ 54610 next: t.current.next 54611 }); 54612 return () => { 54613 n && n.unsubscribe() 54614 } 54615 } 54616 , [e.disabled]) 54617} 54618function aRe(e) { 54619 const t = g0() 54620 , {control: n=t.control, disabled: r, name: i, exact: o} = e || {} 54621 , [a,s] = k.useState(n._formState) 54622 , l = k.useRef(!0) 54623 , c = k.useRef({ 54624 isDirty: !1, 54625 isLoading: !1, 54626 dirtyFields: !1, 54627 touchedFields: !1, 54628 validatingFields: !1, 54629 isValidating: !1, 54630 isValid: !1, 54631 errors: !1 54632 }) 54633 , u = k.useRef(i); 54634 return u.current = i, 54635 yC({ 54636 disabled: r, 54637 next: d => l.current && rH(u.current, d.name, o) && nH(d, c.current, n._updateFormState) && s({ 54638 ...n._formState, 54639 ...d 54640 }), 54641 subject: n._subjects.state 54642 }), 54643 k.useEffect( () => (l.current = !0, 54644 c.current.isValid && n._updateValid(!0), 54645 () => { 54646 l.current = !1 54647 } 54648 ), [n]), 54649 tH(a, n, c.current, !1) 54650} 54651var Mi = e => typeof e == "string" 54652 , iH = (e, t, n, r, i) => Mi(e) ? (r && t.watch.add(e), 54653oe(n, e, i)) : Array.isArray(e) ? e.map(o => (r && t.watch.add(o), 54654oe(n, o))) : (r && (t.watchAll = !0), 54655n); 54656function sRe(e) { 54657 const t = g0() 54658 , {control: n=t.control, name: r, defaultValue: i, disabled: o, exact: a} = e || {} 54659 , s = k.useRef(r); 54660 s.current = r, 54661 yC({ 54662 disabled: o, 54663 subject: n._subjects.values, 54664 next: u => { 54665 rH(s.current, u.name, a) && c(Wn(iH(s.current, n._names, u.values || n._formValues, !1, i))) 54666 } 54667 }); 54668 const [l,c] = k.useState(n._getWatch(r, i)); 54669 return k.useEffect( () => n._removeUnmounted()), 54670 l 54671} 54672function lRe(e) { 54673 const t = g0() 54674 , {name: n, disabled: r, control: i=t.control, shouldUnregister: o} = e 54675 , a = ZW(i._names.array, n) 54676 , s = sRe({ 54677 control: i, 54678 name: n, 54679 defaultValue: oe(i._formValues, n, oe(i._defaultValues, n, e.defaultValue)), 54680 exact: !0 54681 }) 54682 , l = aRe({ 54683 control: i, 54684 name: n, 54685 exact: !0 54686 }) 54687 , c = k.useRef(i.register(n, { 54688 ...e.rules, 54689 value: s, 54690 ...jr(e.disabled) ? { 54691 disabled: e.disabled 54692 } : {} 54693 })); 54694 return k.useEffect( () => { 54695 const u = i._options.shouldUnregister || o 54696 , d = (f, p) => { 54697 const g = oe(i._fields, f); 54698 g && g._f && (g._f.mount = p) 54699 } 54700 ; 54701 if (d(n, !0), 54702 u) { 54703 const f = Wn(oe(i._options.defaultValues, n)); 54704 Ze(i._defaultValues, n, f), 54705 Rt(oe(i._formValues, n)) && Ze(i._formValues, n, f) 54706 } 54707 return () => { 54708 (a ? u && !i._state.action : u) ? i.unregister(n) : d(n, !1) 54709 } 54710 } 54711 , [n, i, a, o]), 54712 k.useEffect( () => { 54713 oe(i._fields, n) && i._updateDisabledField({ 54714 disabled: r, 54715 fields: i._fields, 54716 name: n, 54717 value: oe(i._fields, n)._f.value 54718 }) 54719 } 54720 , [r, n, i]), 54721 { 54722 field: { 54723 name: n, 54724 value: s, 54725 ...jr(r) || l.disabled ? { 54726 disabled: l.disabled || r 54727 } : {}, 54728 onChange: k.useCallback(u => c.current.onChange({ 54729 target: { 54730 value: QW(u), 54731 name: n 54732 }, 54733 type: fy.CHANGE 54734 }), [n]), 54735 onBlur: k.useCallback( () => c.current.onBlur({ 54736 target: { 54737 value: oe(i._formValues, n), 54738 name: n 54739 }, 54740 type: fy.BLUR 54741 }), [n, i]), 54742 ref: k.useCallback(u => { 54743 const d = oe(i._fields, n); 54744 d && u && (d._f.ref = { 54745 focus: () => u.focus(), 54746 select: () => u.select(), 54747 setCustomValidity: f => u.setCustomValidity(f), 54748 reportValidity: () => u.reportValidity() 54749 }) 54750 } 54751 , [i._fields, n]) 54752 }, 54753 formState: l, 54754 fieldState: Object.defineProperties({}, { 54755 invalid: { 54756 enumerable: !0, 54757 get: () => !!oe(l.errors, n) 54758 }, 54759 isDirty: { 54760 enumerable: !0, 54761 get: () => !!oe(l.dirtyFields, n) 54762 }, 54763 isTouched: { 54764 enumerable: !0, 54765 get: () => !!oe(l.touchedFields, n) 54766 }, 54767 isValidating: { 54768 enumerable: !0, 54769 get: () => !!oe(l.validatingFields, n) 54770 }, 54771 error: { 54772 enumerable: !0, 54773 get: () => oe(l.errors, n) 54774 } 54775 }) 54776 } 54777} 54778const cRe = e => e.render(lRe(e)); 54779var oH = (e, t, n, r, i) => t ? { 54780 ...n[e], 54781 types: { 54782 ...n[e] && n[e].types ? n[e].types : {}, 54783 [r]: i || !0 54784 } 54785} : {} 54786 , Yk = e => ({ 54787 isOnSubmit: !e || e === ii.onSubmit, 54788 isOnBlur: e === ii.onBlur, 54789 isOnChange: e === ii.onChange, 54790 isOnAll: e === ii.all, 54791 isOnTouch: e === ii.onTouched 54792}) 54793 , Xk = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some(r => e.startsWith(r) && /^\.\w+/.test(e.slice(r.length)))); 54794const Bd = (e, t, n, r) => { 54795 for (const i of n || Object.keys(e)) { 54796 const o = oe(e, i); 54797 if (o) { 54798 const {_f: a, ...s} = o; 54799 if (a) { 54800 if (a.refs && a.refs[0] && t(a.refs[0], i) && !r) 54801 return !0; 54802 if (a.ref && t(a.ref, a.name) && !r) 54803 return !0; 54804 if (Bd(s, t)) 54805 break 54806 } else if (zt(s) && Bd(s, t)) 54807 break 54808 } 54809 } 54810} 54811; 54812var uRe = (e, t, n) => { 54813 const r = Fd(oe(e, n)); 54814 return Ze(r, "root", t[n]), 54815 Ze(e, n, r), 54816 e 54817} 54818 , vC = e => e.type === "file" 54819 , fo = e => typeof e == "function" 54820 , hy = e => { 54821 if (!mC) 54822 return !1; 54823 const t = e ? e.ownerDocument : 0; 54824 return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement) 54825} 54826 , vm = e => Mi(e) 54827 , xC = e => e.type === "radio" 54828 , py = e => e instanceof RegExp; 54829const Qk = { 54830 value: !1, 54831 isValid: !1 54832} 54833 , Zk = { 54834 value: !0, 54835 isValid: !0 54836}; 54837var aH = e => { 54838 if (Array.isArray(e)) { 54839 if (e.length > 1) { 54840 const t = e.filter(n => n && n.checked && !n.disabled).map(n => n.value); 54841 return { 54842 value: t, 54843 isValid: !!t.length 54844 } 54845 } 54846 return e[0].checked && !e[0].disabled ? e[0].attributes && !Rt(e[0].attributes.value) ? Rt(e[0].value) || e[0].value === "" ? Zk : { 54847 value: e[0].value, 54848 isValid: !0 54849 } : Zk : Qk 54850 } 54851 return Qk 54852} 54853; 54854const Jk = { 54855 isValid: !1, 54856 value: null 54857}; 54858var sH = e => Array.isArray(e) ? e.reduce( (t, n) => n && n.checked && !n.disabled ? { 54859 isValid: !0, 54860 value: n.value 54861} : t, Jk) : Jk; 54862function e2(e, t, n="validate") { 54863 if (vm(e) || Array.isArray(e) && e.every(vm) || jr(e) && !e) 54864 return { 54865 type: n, 54866 message: vm(e) ? e : "", 54867 ref: t 54868 } 54869} 54870var gl = e => zt(e) && !py(e) ? e : { 54871 value: e, 54872 message: "" 54873} 54874 , t2 = async (e, t, n, r, i) => { 54875 const {ref: o, refs: a, required: s, maxLength: l, minLength: c, min: u, max: d, pattern: f, validate: p, name: g, valueAsNumber: m, mount: x, disabled: v} = e._f 54876 , y = oe(t, g); 54877 if (!x || v) 54878 return {}; 54879 const w = a ? a[0] : o 54880 , P = j => { 54881 r && w.reportValidity && (w.setCustomValidity(jr(j) ? "" : j || ""), 54882 w.reportValidity()) 54883 } 54884 , S = {} 54885 , _ = xC(o) 54886 , T = Qh(o) 54887 , C = _ || T 54888 , O = (m || vC(o)) && Rt(o.value) && Rt(y) || hy(o) && o.value === "" || y === "" || Array.isArray(y) && !y.length 54889 , A = oH.bind(null, g, n, S) 54890 , E = (j, $, R, L=to.maxLength, B=to.minLength) => { 54891 const U = j ? $ : R; 54892 S[g] = { 54893 type: j ? L : B, 54894 message: U, 54895 ref: o, 54896 ...A(j ? L : B, U) 54897 } 54898 } 54899 ; 54900 if (i ? !Array.isArray(y) || !y.length : s && (!C && (O || In(y)) || jr(y) && !y || T && !aH(a).isValid || _ && !sH(a).isValid)) { 54901 const {value: j, message: $} = vm(s) ? { 54902 value: !!s, 54903 message: s 54904 } : gl(s); 54905 if (j && (S[g] = { 54906 type: to.required, 54907 message: $, 54908 ref: w, 54909 ...A(to.required, $) 54910 }, 54911 !n)) 54912 return P($), 54913 S 54914 } 54915 if (!O && (!In(u) || !In(d))) { 54916 let j, $; 54917 const R = gl(d) 54918 , L = gl(u); 54919 if (!In(y) && !isNaN(y)) { 54920 const B = o.valueAsNumber || y && +y; 54921 In(R.value) || (j = B > R.value), 54922 In(L.value) || ($ = B < L.value) 54923 } else { 54924 const B = o.valueAsDate || new Date(y) 54925 , U = W => new Date(new Date().toDateString() + " " + W) 54926 , N = o.type == "time" 54927 , D = o.type == "week"; 54928 Mi(R.value) && y && (j = N ? U(y) > U(R.value) : D ? y > R.value : B > new Date(R.value)), 54929 Mi(L.value) && y && ($ = N ? U(y) < U(L.value) : D ? y < L.value : B < new Date(L.value)) 54930 } 54931 if ((j || $) && (E(!!j, R.message, L.message, to.max, to.min), 54932 !n)) 54933 return P(S[g].message), 54934 S 54935 } 54936 if ((l || c) && !O && (Mi(y) || i && Array.isArray(y))) { 54937 const j = gl(l) 54938 , $ = gl(c) 54939 , R = !In(j.value) && y.length > +j.value 54940 , L = !In($.value) && y.length < +$.value; 54941 if ((R || L) && (E(R, j.message, $.message), 54942 !n)) 54943 return P(S[g].message), 54944 S 54945 } 54946 if (f && !O && Mi(y)) { 54947 const {value: j, message: $} = gl(f); 54948 if (py(j) && !y.match(j) && (S[g] = { 54949 type: to.pattern, 54950 message: $, 54951 ref: o, 54952 ...A(to.pattern, $) 54953 }, 54954 !n)) 54955 return P($), 54956 S 54957 } 54958 if (p) { 54959 if (fo(p)) { 54960 const j = await p(y, t) 54961 , $ = e2(j, w); 54962 if ($ && (S[g] = { 54963 ...$, 54964 ...A(to.validate, $.message) 54965 }, 54966 !n)) 54967 return P($.message), 54968 S 54969 } else if (zt(p)) { 54970 let j = {}; 54971 for (const $ in p) { 54972 if (!Kn(j) && !n) 54973 break; 54974 const R = e2(await p[$](y, t), w, $); 54975 R && (j = { 54976 ...R, 54977 ...A($, R.message) 54978 }, 54979 P(R.message), 54980 n && (S[g] = j)) 54981 } 54982 if (!Kn(j) && (S[g] = { 54983 ref: w, 54984 ...j 54985 }, 54986 !n)) 54987 return S 54988 } 54989 } 54990 return P(!0), 54991 S 54992} 54993; 54994function dRe(e, t) { 54995 const n = t.slice(0, -1).length; 54996 let r = 0; 54997 for (; r < n; ) 54998 e = Rt(e) ? r++ : e[t[r++]]; 54999 return e 55000} 55001function fRe(e) { 55002 for (const t in e) 55003 if (e.hasOwnProperty(t) && !Rt(e[t])) 55004 return !1; 55005 return !0 55006} 55007function Qt(e, t) { 55008 const n = Array.isArray(t) ? t : gC(t) ? [t] : JW(t) 55009 , r = n.length === 1 ? e : dRe(e, n) 55010 , i = n.length - 1 55011 , o = n[i]; 55012 return r && delete r[o], 55013 i !== 0 && (zt(r) && Kn(r) || Array.isArray(r) && fRe(r)) && Qt(e, n.slice(0, -1)), 55014 e 55015} 55016var Zx = () => { 55017 let e = []; 55018 return { 55019 get observers() { 55020 return e 55021 }, 55022 next: i => { 55023 for (const o of e) 55024 o.next && o.next(i) 55025 } 55026 , 55027 subscribe: i => (e.push(i), 55028 { 55029 unsubscribe: () => { 55030 e = e.filter(o => o !== i) 55031 } 55032 }), 55033 unsubscribe: () => { 55034 e = [] 55035 } 55036 } 55037} 55038 , CS = e => In(e) || !XW(e); 55039function Qo(e, t) { 55040 if (CS(e) || CS(t)) 55041 return e === t; 55042 if (gs(e) && gs(t)) 55043 return e.getTime() === t.getTime(); 55044 const n = Object.keys(e) 55045 , r = Object.keys(t); 55046 if (n.length !== r.length) 55047 return !1; 55048 for (const i of n) { 55049 const o = e[i]; 55050 if (!r.includes(i)) 55051 return !1; 55052 if (i !== "ref") { 55053 const a = t[i]; 55054 if (gs(o) && gs(a) || zt(o) && zt(a) || Array.isArray(o) && Array.isArray(a) ? !Qo(o, a) : o !== a) 55055 return !1 55056 } 55057 } 55058 return !0 55059} 55060var lH = e => e.type === "select-multiple" 55061 , hRe = e => xC(e) || Qh(e) 55062 , Jx = e => hy(e) && e.isConnected 55063 , cH = e => { 55064 for (const t in e) 55065 if (fo(e[t])) 55066 return !0; 55067 return !1 55068} 55069; 55070function my(e, t={}) { 55071 const n = Array.isArray(e); 55072 if (zt(e) || n) 55073 for (const r in e) 55074 Array.isArray(e[r]) || zt(e[r]) && !cH(e[r]) ? (t[r] = Array.isArray(e[r]) ? [] : {}, 55075 my(e[r], t[r])) : In(e[r]) || (t[r] = !0); 55076 return t 55077} 55078function uH(e, t, n) { 55079 const r = Array.isArray(e); 55080 if (zt(e) || r) 55081 for (const i in e) 55082 Array.isArray(e[i]) || zt(e[i]) && !cH(e[i]) ? Rt(t) || CS(n[i]) ? n[i] = Array.isArray(e[i]) ? my(e[i], []) : { 55083 ...my(e[i]) 55084 } : uH(e[i], In(t) ? {} : t[i], n[i]) : n[i] = !Qo(e[i], t[i]); 55085 return n 55086} 55087var Zu = (e, t) => uH(e, t, my(t)) 55088 , dH = (e, {valueAsNumber: t, valueAsDate: n, setValueAs: r}) => Rt(e) ? e : t ? e === "" ? NaN : e && +e : n && Mi(e) ? new Date(e) : r ? r(e) : e; 55089function eb(e) { 55090 const t = e.ref; 55091 if (!(e.refs ? e.refs.every(n => n.disabled) : t.disabled)) 55092 return vC(t) ? t.files : xC(t) ? sH(e.refs).value : lH(t) ? [...t.selectedOptions].map( ({value: n}) => n) : Qh(t) ? aH(e.refs).value : dH(Rt(t.value) ? e.ref.value : t.value, e) 55093} 55094var pRe = (e, t, n, r) => { 55095 const i = {}; 55096 for (const o of e) { 55097 const a = oe(t, o); 55098 a && Ze(i, o, a._f) 55099 } 55100 return { 55101 criteriaMode: n, 55102 names: [...e], 55103 fields: i, 55104 shouldUseNativeValidation: r 55105 } 55106} 55107 , Ju = e => Rt(e) ? e : py(e) ? e.source : zt(e) ? py(e.value) ? e.value.source : e.value : e; 55108const n2 = "AsyncFunction"; 55109var mRe = e => (!e || !e.validate) && !!(fo(e.validate) && e.validate.constructor.name === n2 || zt(e.validate) && Object.values(e.validate).find(t => t.constructor.name === n2)) 55110 , gRe = e => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate); 55111function r2(e, t, n) { 55112 const r = oe(e, n); 55113 if (r || gC(n)) 55114 return { 55115 error: r, 55116 name: n 55117 }; 55118 const i = n.split("."); 55119 for (; i.length; ) { 55120 const o = i.join(".") 55121 , a = oe(t, o) 55122 , s = oe(e, o); 55123 if (a && !Array.isArray(a) && n !== o) 55124 return { 55125 name: n 55126 }; 55127 if (s && s.type) 55128 return { 55129 name: o, 55130 error: s 55131 }; 55132 i.pop() 55133 } 55134 return { 55135 name: n 55136 } 55137} 55138var yRe = (e, t, n, r, i) => i.isOnAll ? !1 : !n && i.isOnTouch ? !(t || e) : (n ? r.isOnBlur : i.isOnBlur) ? !e : (n ? r.isOnChange : i.isOnChange) ? e : !0 55139 , vRe = (e, t) => !m0(oe(e, t)).length && Qt(e, t); 55140const xRe = { 55141 mode: ii.onSubmit, 55142 reValidateMode: ii.onChange, 55143 shouldFocusError: !0 55144}; 55145function bRe(e={}) { 55146 let t = { 55147 ...xRe, 55148 ...e 55149 }, n = { 55150 submitCount: 0, 55151 isDirty: !1, 55152 isLoading: fo(t.defaultValues), 55153 isValidating: !1, 55154 isSubmitted: !1, 55155 isSubmitting: !1, 55156 isSubmitSuccessful: !1, 55157 isValid: !1, 55158 touchedFields: {}, 55159 dirtyFields: {}, 55160 validatingFields: {}, 55161 errors: t.errors || {}, 55162 disabled: t.disabled || !1 55163 }, r = {}, i = zt(t.defaultValues) || zt(t.values) ? Wn(t.defaultValues || t.values) || {} : {}, o = t.shouldUnregister ? {} : Wn(i), a = { 55164 action: !1, 55165 mount: !1, 55166 watch: !1 55167 }, s = { 55168 mount: new Set, 55169 unMount: new Set, 55170 array: new Set, 55171 watch: new Set 55172 }, l, c = 0; 55173 const u = { 55174 isDirty: !1, 55175 dirtyFields: !1, 55176 validatingFields: !1, 55177 touchedFields: !1, 55178 isValidating: !1, 55179 isValid: !1, 55180 errors: !1 55181 } 55182 , d = { 55183 values: Zx(), 55184 array: Zx(), 55185 state: Zx() 55186 } 55187 , f = Yk(t.mode) 55188 , p = Yk(t.reValidateMode) 55189 , g = t.criteriaMode === ii.all 55190 , m = M => z => { 55191 clearTimeout(c), 55192 c = setTimeout(M, z) 55193 } 55194 , x = async M => { 55195 if (!e.disabled && (u.isValid || M)) { 55196 const z = t.resolver ? Kn((await C()).errors) : await A(r, !0); 55197 z !== n.isValid && d.state.next({ 55198 isValid: z 55199 }) 55200 } 55201 } 55202 , v = (M, z) => { 55203 !e.disabled && (u.isValidating || u.validatingFields) && ((M || Array.from(s.mount)).forEach(H => { 55204 H && (z ? Ze(n.validatingFields, H, z) : Qt(n.validatingFields, H)) 55205 } 55206 ), 55207 d.state.next({ 55208 validatingFields: n.validatingFields, 55209 isValidating: !Kn(n.validatingFields) 55210 })) 55211 } 55212 , y = (M, z=[], H, re, te=!0, Z=!0) => { 55213 if (re && H && !e.disabled) { 55214 if (a.action = !0, 55215 Z && Array.isArray(oe(r, M))) { 55216 const xe = H(oe(r, M), re.argA, re.argB); 55217 te && Ze(r, M, xe) 55218 } 55219 if (Z && Array.isArray(oe(n.errors, M))) { 55220 const xe = H(oe(n.errors, M), re.argA, re.argB); 55221 te && Ze(n.errors, M, xe), 55222 vRe(n.errors, M) 55223 } 55224 if (u.touchedFields && Z && Array.isArray(oe(n.touchedFields, M))) { 55225 const xe = H(oe(n.touchedFields, M), re.argA, re.argB); 55226 te && Ze(n.touchedFields, M, xe) 55227 } 55228 u.dirtyFields && (n.dirtyFields = Zu(i, o)), 55229 d.state.next({ 55230 name: M, 55231 isDirty: j(M, z), 55232 dirtyFields: n.dirtyFields, 55233 errors: n.errors, 55234 isValid: n.isValid 55235 }) 55236 } else 55237 Ze(o, M, z) 55238 } 55239 , w = (M, z) => { 55240 Ze(n.errors, M, z), 55241 d.state.next({ 55242 errors: n.errors 55243 }) 55244 } 55245 , P = M => { 55246 n.errors = M, 55247 d.state.next({ 55248 errors: n.errors, 55249 isValid: !1 55250 }) 55251 } 55252 , S = (M, z, H, re) => { 55253 const te = oe(r, M); 55254 if (te) { 55255 const Z = oe(o, M, Rt(H) ? oe(i, M) : H); 55256 Rt(Z) || re && re.defaultChecked || z ? Ze(o, M, z ? Z : eb(te._f)) : L(M, Z), 55257 a.mount && x() 55258 } 55259 } 55260 , _ = (M, z, H, re, te) => { 55261 let Z = !1 55262 , xe = !1; 55263 const Ae = { 55264 name: M 55265 }; 55266 if (!e.disabled) { 55267 const Wt = !!(oe(r, M) && oe(r, M)._f && oe(r, M)._f.disabled); 55268 if (!H || re) { 55269 u.isDirty && (xe = n.isDirty, 55270 n.isDirty = Ae.isDirty = j(), 55271 Z = xe !== Ae.isDirty); 55272 const Lt = Wt || Qo(oe(i, M), z); 55273 xe = !!(!Wt && oe(n.dirtyFields, M)), 55274 Lt || Wt ? Qt(n.dirtyFields, M) : Ze(n.dirtyFields, M, !0), 55275 Ae.dirtyFields = n.dirtyFields, 55276 Z = Z || u.dirtyFields && xe !== !Lt 55277 } 55278 if (H) { 55279 const Lt = oe(n.touchedFields, M); 55280 Lt || (Ze(n.touchedFields, M, H), 55281 Ae.touchedFields = n.touchedFields, 55282 Z = Z || u.touchedFields && Lt !== H) 55283 } 55284 Z && te && d.state.next(Ae) 55285 } 55286 return Z ? Ae : {} 55287 } 55288 , T = (M, z, H, re) => { 55289 const te = oe(n.errors, M) 55290 , Z = u.isValid && jr(z) && n.isValid !== z; 55291 if (e.delayError && H ? (l = m( () => w(M, H)), 55292 l(e.delayError)) : (clearTimeout(c), 55293 l = null, 55294 H ? Ze(n.errors, M, H) : Qt(n.errors, M)), 55295 (H ? !Qo(te, H) : te) || !Kn(re) || Z) { 55296 const xe = { 55297 ...re, 55298 ...Z && jr(z) ? { 55299 isValid: z 55300 } : {}, 55301 errors: n.errors, 55302 name: M 55303 }; 55304 n = { 55305 ...n, 55306 ...xe 55307 }, 55308 d.state.next(xe) 55309 } 55310 } 55311 , C = async M => { 55312 v(M, !0); 55313 const z = await t.resolver(o, t.context, pRe(M || s.mount, r, t.criteriaMode, t.shouldUseNativeValidation)); 55314 return v(M), 55315 z 55316 } 55317 , O = async M => { 55318 const {errors: z} = await C(M); 55319 if (M) 55320 for (const H of M) { 55321 const re = oe(z, H); 55322 re ? Ze(n.errors, H, re) : Qt(n.errors, H) 55323 } 55324 else 55325 n.errors = z; 55326 return z 55327 } 55328 , A = async (M, z, H={ 55329 valid: !0 55330 }) => { 55331 for (const re in M) { 55332 const te = M[re]; 55333 if (te) { 55334 const {_f: Z, ...xe} = te; 55335 if (Z) { 55336 const Ae = s.array.has(Z.name) 55337 , Wt = te._f && mRe(te._f); 55338 Wt && u.validatingFields && v([re], !0); 55339 const Lt = await t2(te, o, g, t.shouldUseNativeValidation && !z, Ae); 55340 if (Wt && u.validatingFields && v([re]), 55341 Lt[Z.name] && (H.valid = !1, 55342 z)) 55343 break; 55344 !z && (oe(Lt, Z.name) ? Ae ? uRe(n.errors, Lt, Z.name) : Ze(n.errors, Z.name, Lt[Z.name]) : Qt(n.errors, Z.name)) 55345 } 55346 !Kn(xe) && await A(xe, z, H) 55347 } 55348 } 55349 return H.valid 55350 } 55351 , E = () => { 55352 for (const M of s.unMount) { 55353 const z = oe(r, M); 55354 z && (z._f.refs ? z._f.refs.every(H => !Jx(H)) : !Jx(z._f.ref)) && Oe(M) 55355 } 55356 s.unMount = new Set 55357 } 55358 , j = (M, z) => !e.disabled && (M && z && Ze(o, M, z), 55359 !Qo(K(), i)) 55360 , $ = (M, z, H) => iH(M, s, { 55361 ...a.mount ? o : Rt(z) ? i : Mi(M) ? { 55362 [M]: z 55363 } : z 55364 }, H, z) 55365 , R = M => m0(oe(a.mount ? o : i, M, e.shouldUnregister ? oe(i, M, []) : [])) 55366 , L = (M, z, H={}) => { 55367 const re = oe(r, M); 55368 let te = z; 55369 if (re) { 55370 const Z = re._f; 55371 Z && (!Z.disabled && Ze(o, M, dH(z, Z)), 55372 te = hy(Z.ref) && In(z) ? "" : z, 55373 lH(Z.ref) ? [...Z.ref.options].forEach(xe => xe.selected = te.includes(xe.value)) : Z.refs ? Qh(Z.ref) ? Z.refs.length > 1 ? Z.refs.forEach(xe => (!xe.defaultChecked || !xe.disabled) && (xe.checked = Array.isArray(te) ? !!te.find(Ae => Ae === xe.value) : te === xe.value)) : Z.refs[0] && (Z.refs[0].checked = !!te) : Z.refs.forEach(xe => xe.checked = xe.value === te) : vC(Z.ref) ? Z.ref.value = "" : (Z.ref.value = te, 55374 Z.ref.type || d.values.next({ 55375 name: M, 55376 values: { 55377 ...o 55378 } 55379 }))) 55380 } 55381 (H.shouldDirty || H.shouldTouch) && _(M, te, H.shouldTouch, H.shouldDirty, !0), 55382 H.shouldValidate && W(M) 55383 } 55384 , B = (M, z, H) => { 55385 for (const re in z) { 55386 const te = z[re] 55387 , Z = `${M}.${re}` 55388 , xe = oe(r, Z); 55389 (s.array.has(M) || zt(te) || xe && !xe._f) && !gs(te) ? B(Z, te, H) : L(Z, te, H) 55390 } 55391 } 55392 , U = (M, z, H={}) => { 55393 const re = oe(r, M) 55394 , te = s.array.has(M) 55395 , Z = Wn(z); 55396 Ze(o, M, Z), 55397 te ? (d.array.next({ 55398 name: M, 55399 values: { 55400 ...o 55401 } 55402 }), 55403 (u.isDirty || u.dirtyFields) && H.shouldDirty && d.state.next({ 55404 name: M, 55405 dirtyFields: Zu(i, o), 55406 isDirty: j(M, Z) 55407 })) : re && !re._f && !In(Z) ? B(M, Z, H) : L(M, Z, H), 55408 Xk(M, s) && d.state.next({ 55409 ...n 55410 }), 55411 d.values.next({ 55412 name: a.mount ? M : void 0, 55413 values: { 55414 ...o 55415 } 55416 }) 55417 } 55418 , N = async M => { 55419 a.mount = !0; 55420 const z = M.target; 55421 let H = z.name 55422 , re = !0; 55423 const te = oe(r, H) 55424 , Z = () => z.type ? eb(te._f) : QW(M) 55425 , xe = Ae => { 55426 re = Number.isNaN(Ae) || gs(Ae) && isNaN(Ae.getTime()) || Qo(Ae, oe(o, H, Ae)) 55427 } 55428 ; 55429 if (te) { 55430 let Ae, Wt; 55431 const Lt = Z() 55432 , Zi = M.type === fy.BLUR || M.type === fy.FOCUS_OUT 55433 , Tu = !gRe(te._f) && !t.resolver && !oe(n.errors, H) && !te._f.deps || yRe(Zi, oe(n.touchedFields, H), n.isSubmitted, p, f) 55434 , wr = Xk(H, s, Zi); 55435 Ze(o, H, Lt), 55436 Zi ? (te._f.onBlur && te._f.onBlur(M), 55437 l && l(0)) : te._f.onChange && te._f.onChange(M); 55438 const Ya = _(H, Lt, Zi, !1) 55439 , Cu = !Kn(Ya) || wr; 55440 if (!Zi && d.values.next({ 55441 name: H, 55442 type: M.type, 55443 values: { 55444 ...o 55445 } 55446 }), 55447 Tu) 55448 return u.isValid && (e.mode === "onBlur" ? Zi && x() : x()), 55449 Cu && d.state.next({ 55450 name: H, 55451 ...wr ? {} : Ya 55452 }); 55453 if (!Zi && wr && d.state.next({ 55454 ...n 55455 }), 55456 t.resolver) { 55457 const {errors: Xa} = await C([H]); 55458 if (xe(Lt), 55459 re) { 55460 const Ou = r2(n.errors, r, H) 55461 , ep = r2(Xa, r, Ou.name || H); 55462 Ae = ep.error, 55463 H = ep.name, 55464 Wt = Kn(Xa) 55465 } 55466 } else 55467 v([H], !0), 55468 Ae = (await t2(te, o, g, t.shouldUseNativeValidation))[H], 55469 v([H]), 55470 xe(Lt), 55471 re && (Ae ? Wt = !1 : u.isValid && (Wt = await A(r, !0))); 55472 re && (te._f.deps && W(te._f.deps), 55473 T(H, Wt, Ae, Ya)) 55474 } 55475 } 55476 , D = (M, z) => { 55477 if (oe(n.errors, z) && M.focus) 55478 return M.focus(), 55479 1 55480 } 55481 , W = async (M, z={}) => { 55482 let H, re; 55483 const te = Fd(M); 55484 if (t.resolver) { 55485 const Z = await O(Rt(M) ? M : te); 55486 H = Kn(Z), 55487 re = M ? !te.some(xe => oe(Z, xe)) : H 55488 } else 55489 M ? (re = (await Promise.all(te.map(async Z => { 55490 const xe = oe(r, Z); 55491 return await A(xe && xe._f ? { 55492 [Z]: xe 55493 } : xe) 55494 } 55495 ))).every(Boolean), 55496 !(!re && !n.isValid) && x()) : re = H = await A(r); 55497 return d.state.next({ 55498 ...!Mi(M) || u.isValid && H !== n.isValid ? {} : { 55499 name: M 55500 }, 55501 ...t.resolver || !M ? { 55502 isValid: H 55503 } : {}, 55504 errors: n.errors 55505 }), 55506 z.shouldFocus && !re && Bd(r, D, M ? te : s.mount), 55507 re 55508 } 55509 , K = M => { 55510 const z = { 55511 ...a.mount ? o : i 55512 }; 55513 return Rt(M) ? z : Mi(M) ? oe(z, M) : M.map(H => oe(z, H)) 55514 } 55515 , G = (M, z) => ({ 55516 invalid: !!oe((z || n).errors, M), 55517 isDirty: !!oe((z || n).dirtyFields, M), 55518 error: oe((z || n).errors, M), 55519 isValidating: !!oe(n.validatingFields, M), 55520 isTouched: !!oe((z || n).touchedFields, M) 55521 }) 55522 , ae = M => { 55523 M && Fd(M).forEach(z => Qt(n.errors, z)), 55524 d.state.next({ 55525 errors: M ? n.errors : {} 55526 }) 55527 } 55528 , ve = (M, z, H) => { 55529 const re = (oe(r, M, { 55530 _f: {} 55531 })._f || {}).ref 55532 , te = oe(n.errors, M) || {} 55533 , {ref: Z, message: xe, type: Ae, ...Wt} = te; 55534 Ze(n.errors, M, { 55535 ...Wt, 55536 ...z, 55537 ref: re 55538 }), 55539 d.state.next({ 55540 name: M, 55541 errors: n.errors, 55542 isValid: !1 55543 }), 55544 H && H.shouldFocus && re && re.focus && re.focus() 55545 } 55546 , je = (M, z) => fo(M) ? d.values.subscribe({ 55547 next: H => M($(void 0, z), H) 55548 }) : $(M, z, !0) 55549 , Oe = (M, z={}) => { 55550 for (const H of M ? Fd(M) : s.mount) 55551 s.mount.delete(H), 55552 s.array.delete(H), 55553 z.keepValue || (Qt(r, H), 55554 Qt(o, H)), 55555 !z.keepError && Qt(n.errors, H), 55556 !z.keepDirty && Qt(n.dirtyFields, H), 55557 !z.keepTouched && Qt(n.touchedFields, H), 55558 !z.keepIsValidating && Qt(n.validatingFields, H), 55559 !t.shouldUnregister && !z.keepDefaultValue && Qt(i, H); 55560 d.values.next({ 55561 values: { 55562 ...o 55563 } 55564 }), 55565 d.state.next({ 55566 ...n, 55567 ...z.keepDirty ? { 55568 isDirty: j() 55569 } : {} 55570 }), 55571 !z.keepIsValid && x() 55572 } 55573 , ie = ({disabled: M, name: z, field: H, fields: re, value: te}) => { 55574 if (jr(M) && a.mount || M) { 55575 const Z = M ? void 0 : Rt(te) ? eb(H ? H._f : oe(re, z)._f) : te; 55576 Ze(o, z, Z), 55577 _(z, Z, !1, !1, !0) 55578 } 55579 } 55580 , ge = (M, z={}) => { 55581 let H = oe(r, M); 55582 const re = jr(z.disabled) || jr(e.disabled); 55583 return Ze(r, M, { 55584 ...H || {}, 55585 _f: { 55586 ...H && H._f ? H._f : { 55587 ref: { 55588 name: M 55589 } 55590 }, 55591 name: M, 55592 mount: !0, 55593 ...z 55594 } 55595 }), 55596 s.mount.add(M), 55597 H ? ie({ 55598 field: H, 55599 disabled: jr(z.disabled) ? z.disabled : e.disabled, 55600 name: M, 55601 value: z.value 55602 }) : S(M, !0, z.value), 55603 { 55604 ...re ? { 55605 disabled: z.disabled || e.disabled 55606 } : {}, 55607 ...t.progressive ? { 55608 required: !!z.required, 55609 min: Ju(z.min), 55610 max: Ju(z.max), 55611 minLength: Ju(z.minLength), 55612 maxLength: Ju(z.maxLength), 55613 pattern: Ju(z.pattern) 55614 } : {}, 55615 name: M, 55616 onChange: N, 55617 onBlur: N, 55618 ref: te => { 55619 if (te) { 55620 ge(M, z), 55621 H = oe(r, M); 55622 const Z = Rt(te.value) && te.querySelectorAll && te.querySelectorAll("input,select,textarea")[0] || te 55623 , xe = hRe(Z) 55624 , Ae = H._f.refs || []; 55625 if (xe ? Ae.find(Wt => Wt === Z) : Z === H._f.ref) 55626 return; 55627 Ze(r, M, { 55628 _f: { 55629 ...H._f, 55630 ...xe ? { 55631 refs: [...Ae.filter(Jx), Z, ...Array.isArray(oe(i, M)) ? [{}] : []], 55632 ref: { 55633 type: Z.type, 55634 name: M 55635 } 55636 } : { 55637 ref: Z 55638 } 55639 } 55640 }), 55641 S(M, !1, void 0, Z) 55642 } else 55643 H = oe(r, M, {}), 55644 H._f && (H._f.mount = !1), 55645 (t.shouldUnregister || z.shouldUnregister) && !(ZW(s.array, M) && a.action) && s.unMount.add(M) 55646 } 55647 } 55648 } 55649 , Y = () => t.shouldFocusError && Bd(r, D, s.mount) 55650 , ne = M => { 55651 jr(M) && (d.state.next({ 55652 disabled: M 55653 }), 55654 Bd(r, (z, H) => { 55655 const re = oe(r, H); 55656 re && (z.disabled = re._f.disabled || M, 55657 Array.isArray(re._f.refs) && re._f.refs.forEach(te => { 55658 te.disabled = re._f.disabled || M 55659 } 55660 )) 55661 } 55662 , 0, !1)) 55663 } 55664 , Q = (M, z) => async H => { 55665 let re; 55666 H && (H.preventDefault && H.preventDefault(), 55667 H.persist && H.persist()); 55668 let te = Wn(o); 55669 if (d.state.next({ 55670 isSubmitting: !0 55671 }), 55672 t.resolver) { 55673 const {errors: Z, values: xe} = await C(); 55674 n.errors = Z, 55675 te = xe 55676 } else 55677 await A(r); 55678 if (Qt(n.errors, "root"), 55679 Kn(n.errors)) { 55680 d.state.next({ 55681 errors: {} 55682 }); 55683 try { 55684 await M(te, H) 55685 } catch (Z) { 55686 re = Z 55687 } 55688 } else 55689 z && await z({ 55690 ...n.errors 55691 }, H), 55692 Y(), 55693 setTimeout(Y); 55694 if (d.state.next({ 55695 isSubmitted: !0, 55696 isSubmitting: !1, 55697 isSubmitSuccessful: Kn(n.errors) && !re, 55698 submitCount: n.submitCount + 1, 55699 errors: n.errors 55700 }), 55701 re) 55702 throw re 55703 } 55704 , F = (M, z={}) => { 55705 oe(r, M) && (Rt(z.defaultValue) ? U(M, Wn(oe(i, M))) : (U(M, z.defaultValue), 55706 Ze(i, M, Wn(z.defaultValue))), 55707 z.keepTouched || Qt(n.touchedFields, M), 55708 z.keepDirty || (Qt(n.dirtyFields, M), 55709 n.isDirty = z.defaultValue ? j(M, Wn(oe(i, M))) : j()), 55710 z.keepError || (Qt(n.errors, M), 55711 u.isValid && x()), 55712 d.state.next({ 55713 ...n 55714 })) 55715 } 55716 , he = (M, z={}) => { 55717 const H = M ? Wn(M) : i 55718 , re = Wn(H) 55719 , te = Kn(M) 55720 , Z = te ? i : re; 55721 if (z.keepDefaultValues || (i = H), 55722 !z.keepValues) { 55723 if (z.keepDirtyValues) { 55724 const xe = new Set([...s.mount, ...Object.keys(Zu(i, o))]); 55725 for (const Ae of Array.from(xe)) 55726 oe(n.dirtyFields, Ae) ? Ze(Z, Ae, oe(o, Ae)) : U(Ae, oe(Z, Ae)) 55727 } else { 55728 if (mC && Rt(M)) 55729 for (const xe of s.mount) { 55730 const Ae = oe(r, xe); 55731 if (Ae && Ae._f) { 55732 const Wt = Array.isArray(Ae._f.refs) ? Ae._f.refs[0] : Ae._f.ref; 55733 if (hy(Wt)) { 55734 const Lt = Wt.closest("form"); 55735 if (Lt) { 55736 Lt.reset(); 55737 break 55738 } 55739 } 55740 } 55741 } 55742 r = {} 55743 } 55744 o = e.shouldUnregister ? z.keepDefaultValues ? Wn(i) : {} : Wn(Z), 55745 d.array.next({ 55746 values: { 55747 ...Z 55748 } 55749 }), 55750 d.values.next({ 55751 values: { 55752 ...Z 55753 } 55754 }) 55755 } 55756 s = { 55757 mount: z.keepDirtyValues ? s.mount : new Set, 55758 unMount: new Set, 55759 array: new Set, 55760 watch: new Set, 55761 watchAll: !1, 55762 focus: "" 55763 }, 55764 a.mount = !u.isValid || !!z.keepIsValid || !!z.keepDirtyValues, 55765 a.watch = !!e.shouldUnregister, 55766 d.state.next({ 55767 submitCount: z.keepSubmitCount ? n.submitCount : 0, 55768 isDirty: te ? !1 : z.keepDirty ? n.isDirty : !!(z.keepDefaultValues && !Qo(M, i)), 55769 isSubmitted: z.keepIsSubmitted ? n.isSubmitted : !1, 55770 dirtyFields: te ? {} : z.keepDirtyValues ? z.keepDefaultValues && o ? Zu(i, o) : n.dirtyFields : z.keepDefaultValues && M ? Zu(i, M) : z.keepDirty ? n.dirtyFields : {}, 55771 touchedFields: z.keepTouched ? n.touchedFields : {}, 55772 errors: z.keepErrors ? n.errors : {}, 55773 isSubmitSuccessful: z.keepIsSubmitSuccessful ? n.isSubmitSuccessful : !1, 55774 isSubmitting: !1 55775 }) 55776 } 55777 , de = (M, z) => he(fo(M) ? M(o) : M, z); 55778 return { 55779 control: { 55780 register: ge, 55781 unregister: Oe, 55782 getFieldState: G, 55783 handleSubmit: Q, 55784 setError: ve, 55785 _executeSchema: C, 55786 _getWatch: $, 55787 _getDirty: j, 55788 _updateValid: x, 55789 _removeUnmounted: E, 55790 _updateFieldArray: y, 55791 _updateDisabledField: ie, 55792 _getFieldArray: R, 55793 _reset: he, 55794 _resetDefaultValues: () => fo(t.defaultValues) && t.defaultValues().then(M => { 55795 de(M, t.resetOptions), 55796 d.state.next({ 55797 isLoading: !1 55798 }) 55799 } 55800 ), 55801 _updateFormState: M => { 55802 n = { 55803 ...n, 55804 ...M 55805 } 55806 } 55807 , 55808 _disableForm: ne, 55809 _subjects: d, 55810 _proxyFormState: u, 55811 _setErrors: P, 55812 get _fields() { 55813 return r 55814 }, 55815 get _formValues() { 55816 return o 55817 }, 55818 get _state() { 55819 return a 55820 }, 55821 set _state(M) { 55822 a = M 55823 }, 55824 get _defaultValues() { 55825 return i 55826 }, 55827 get _names() { 55828 return s 55829 }, 55830 set _names(M) { 55831 s = M 55832 }, 55833 get _formState() { 55834 return n 55835 }, 55836 set _formState(M) { 55837 n = M 55838 }, 55839 get _options() { 55840 return t 55841 }, 55842 set _options(M) { 55843 t = { 55844 ...t, 55845 ...M 55846 } 55847 } 55848 }, 55849 trigger: W, 55850 register: ge, 55851 handleSubmit: Q, 55852 watch: je, 55853 setValue: U, 55854 getValues: K, 55855 reset: de, 55856 resetField: F, 55857 clearErrors: ae, 55858 unregister: Oe, 55859 setError: ve, 55860 setFocus: (M, z={}) => { 55861 const H = oe(r, M) 55862 , re = H && H._f; 55863 if (re) { 55864 const te = re.refs ? re.refs[0] : re.ref; 55865 te.focus && (te.focus(), 55866 z.shouldSelect && te.select()) 55867 } 55868 } 55869 , 55870 getFieldState: G 55871 } 55872} 55873function xm(e={}) { 55874 const t = k.useRef() 55875 , n = k.useRef() 55876 , [r,i] = k.useState({ 55877 isDirty: !1, 55878 isValidating: !1, 55879 isLoading: fo(e.defaultValues), 55880 isSubmitted: !1, 55881 isSubmitting: !1, 55882 isSubmitSuccessful: !1, 55883 isValid: !1, 55884 submitCount: 0, 55885 dirtyFields: {}, 55886 touchedFields: {}, 55887 validatingFields: {}, 55888 errors: e.errors || {}, 55889 disabled: e.disabled || !1, 55890 defaultValues: fo(e.defaultValues) ? void 0 : e.defaultValues 55891 }); 55892 t.current || (t.current = { 55893 ...bRe(e), 55894 formState: r 55895 }); 55896 const o = t.current.control; 55897 return o._options = e, 55898 yC({ 55899 subject: o._subjects.state, 55900 next: a => { 55901 nH(a, o._proxyFormState, o._updateFormState, !0) && i({ 55902 ...o._formState 55903 }) 55904 } 55905 }), 55906 k.useEffect( () => o._disableForm(e.disabled), [o, e.disabled]), 55907 k.useEffect( () => { 55908 if (o._proxyFormState.isDirty) { 55909 const a = o._getDirty(); 55910 a !== r.isDirty && o._subjects.state.next({ 55911 isDirty: a 55912 }) 55913 } 55914 } 55915 , [o, r.isDirty]), 55916 k.useEffect( () => { 55917 e.values && !Qo(e.values, n.current) ? (o._reset(e.values, o._options.resetOptions), 55918 n.current = e.values, 55919 i(a => ({ 55920 ...a 55921 }))) : o._resetDefaultValues() 55922 } 55923 , [e.values, o]), 55924 k.useEffect( () => { 55925 e.errors && o._setErrors(e.errors) 55926 } 55927 , [e.errors, o]), 55928 k.useEffect( () => { 55929 o._state.mount || (o._updateValid(), 55930 o._state.mount = !0), 55931 o._state.watch && (o._state.watch = !1, 55932 o._subjects.state.next({ 55933 ...o._formState 55934 })), 55935 o._removeUnmounted() 55936 } 55937 ), 55938 k.useEffect( () => { 55939 e.shouldUnregister && o._subjects.values.next({ 55940 values: o._getWatch() 55941 }) 55942 } 55943 , [e.shouldUnregister, o]), 55944 k.useEffect( () => { 55945 t.current && (t.current.watch = t.current.watch.bind({})) 55946 } 55947 , [r]), 55948 t.current.formState = tH(r, o), 55949 t.current 55950} 55951const bm = oRe 55952 , fH = b.createContext({}) 55953 , ir = ({...e}) => h.jsx(fH.Provider, { 55954 value: { 55955 name: e.name 55956 }, 55957 children: h.jsx(cRe, { 55958 ...e 55959 }) 55960}) 55961 , y0 = () => { 55962 const e = b.useContext(fH) 55963 , t = b.useContext(hH) 55964 , {getFieldState: n, formState: r} = g0() 55965 , i = n(e.name, r); 55966 if (!e) 55967 throw new Error("useFormField should be used within <FormField>"); 55968 const {id: o} = t; 55969 return { 55970 id: o, 55971 name: e.name, 55972 formItemId: `${o}-form-item`, 55973 formDescriptionId: `${o}-form-item-description`, 55974 formMessageId: `${o}-form-item-message`, 55975 ...i 55976 } 55977} 55978 , hH = b.createContext({}) 55979 , Gn = b.forwardRef( ({className: e, ...t}, n) => { 55980 const r = b.useId(); 55981 return h.jsx(hH.Provider, { 55982 value: { 55983 id: r 55984 }, 55985 children: h.jsx("div", { 55986 ref: n, 55987 className: fe("space-y-2", e), 55988 ...t 55989 }) 55990 }) 55991} 55992); 55993Gn.displayName = "FormItem"; 55994const Rn = b.forwardRef( ({className: e, ...t}, n) => { 55995 const {error: r, formItemId: i} = y0(); 55996 return h.jsx(xa, { 55997 ref: n, 55998 className: fe(r && "text-destructive", e), 55999 htmlFor: i, 56000 ...t 56001 }) 56002} 56003); 56004Rn.displayName = "FormLabel"; 56005const Yn = b.forwardRef( ({...e}, t) => { 56006 const {error: n, formItemId: r, formDescriptionId: i, formMessageId: o} = y0(); 56007 return h.jsx(Bs, { 56008 ref: t, 56009 id: r, 56010 "aria-describedby": n ? `${i} ${o}` : `${i}`, 56011 "aria-invalid": !!n, 56012 ...e 56013 }) 56014} 56015); 56016Yn.displayName = "FormControl"; 56017const pd = b.forwardRef( ({className: e, ...t}, n) => { 56018 const {formDescriptionId: r} = y0(); 56019 return h.jsx("p", { 56020 ref: n, 56021 id: r, 56022 className: fe("text-sm text-muted-foreground", e), 56023 ...t 56024 }) 56025} 56026); 56027pd.displayName = "FormDescription"; 56028const Ai = b.forwardRef( ({className: e, children: t, ...n}, r) => { 56029 const {error: i, formMessageId: o} = y0() 56030 , a = i ? String(i == null ? void 0 : i.message) : t; 56031 return a ? h.jsx("p", { 56032 ref: r, 56033 id: o, 56034 className: fe("text-sm font-medium text-destructive", e), 56035 ...n, 56036 children: a 56037 }) : null 56038} 56039); 56040Ai.displayName = "FormMessage"; 56041const pH = b.forwardRef( ({className: e, ...t}, n) => h.jsx("textarea", { 56042 className: fe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
56042ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", e), 56043 ref: n, 56044 ...t 56045})); 56046pH.displayName = "Textarea"; 56047const i2 = (e, t, n) => { 56048 if (e && "reportValidity"in e) { 56049 const r = oe(n, t); 56050 e.setCustomValidity(r && r.message || ""), 56051 e.reportValidity() 56052 } 56053} 56054 , mH = (e, t) => { 56055 for (const n in t.fields) { 56056 const r = t.fields[n]; 56057 r && r.ref && "reportValidity"in r.ref ? i2(r.ref, n, e) : r.refs && r.refs.forEach(i => i2(i, n, e)) 56058 } 56059} 56060 , wRe = (e, t) => { 56061 t.shouldUseNativeValidation && mH(e, t); 56062 const n = {}; 56063 for (const r in e) { 56064 const i = oe(t.fields, r) 56065 , o = Object.assign(e[r] || {}, { 56066 ref: i && i.ref 56067 }); 56068 if (SRe(t.names || Object.keys(e), r)) { 56069 const a = Object.assign({}, oe(n, r)); 56070 Ze(a, "root", o), 56071 Ze(n, r, a) 56072 } else 56073 Ze(n, r, o) 56074 } 56075 return n 56076} 56077 , SRe = (e, t) => e.some(n => n.startsWith(t + ".")); 56078var PRe = function(e, t) { 56079 for (var n = {}; e.length; ) { 56080 var r = e[0] 56081 , i = r.code 56082 , o = r.message 56083 , a = r.path.join("."); 56084 if (!n[a]) 56085 if ("unionErrors"in r) { 56086 var s = r.unionErrors[0].errors[0]; 56087 n[a] = { 56088 message: s.message, 56089 type: s.code 56090 } 56091 } else 56092 n[a] = { 56093 message: o, 56094 type: i 56095 }; 56096 if ("unionErrors"in r && r.unionErrors.forEach(function(u) { 56097 return u.errors.forEach(function(d) { 56098 return e.push(d) 56099 }) 56100 }), 56101 t) { 56102 var l = n[a].types 56103 , c = l && l[r.code]; 56104 n[a] = oH(a, t, n, i, c ? [].concat(c, r.message) : r.message) 56105 } 56106 e.shift() 56107 } 56108 return n 56109} 56110 , wm = function(e, t, n) { 56111 return n === void 0 && (n = {}), 56112 function(r, i, o) { 56113 try { 56114 return Promise.resolve(function(a, s) { 56115 try { 56116 var l = Promise.resolve(e[n.mode === "sync" ? "parse" : "parseAsync"](r, t)).then(function(c) { 56117 return o.shouldUseNativeValidation && mH({}, o), 56118 { 56119 errors: {}, 56120 values: n.raw ? r : c 56121 } 56122 }) 56123 } catch (c) { 56124 return s(c) 56125 } 56126 return l && l.then ? l.then(void 0, s) : l 56127 }(0, function(a) { 56128 if (function(s) { 56129 return Array.isArray(s == null ? void 0 : s.errors) 56130 }(a)) 56131 return { 56132 values: {}, 56133 errors: wRe(PRe(a.errors, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) 56134 }; 56135 throw a 56136 })) 56137 } catch (a) { 56138 return Promise.reject(a) 56139 } 56140 } 56141}; 56142const X = Symbol.for("drizzle:entityKind"); 56143function mn(e, t) { 56144 if (!e || typeof e != "object") 56145 return !1; 56146 if (e instanceof t) 56147 return !0; 56148 if (!Object.prototype.hasOwnProperty.call(t, X)) 56149 throw new Error(`Class "${t.name ?? "<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`); 56150 let n = Object.getPrototypeOf(e).constructor; 56151 if (n) 56152 for (; n; ) { 56153 if (X in n && n[X] === t[X]) 56154 return !0; 56155 n = Object.getPrototypeOf(n) 56156 } 56157 return !1 56158} 56159var C2; 56160C2 = X; 56161class Qc { 56162 constructor(t, n) { 56163 V(this, "name"); 56164 V(this, "keyAsName"); 56165 V(this, "primary"); 56166 V(this, "notNull"); 56167 V(this, "default"); 56168 V(this, "defaultFn"); 56169 V(this, "onUpdateFn"); 56170 V(this, "hasDefault"); 56171 V(this, "isUnique"); 56172 V(this, "uniqueName"); 56173 V(this, "uniqueType"); 56174 V(this, "dataType"); 56175 V(this, "columnType"); 56176 V(this, "enumValues"); 56177 V(this, "generated"); 56178 V(this, "generatedIdentity"); 56179 V(this, "config"); 56180 this.table = t, 56181 this.config = n, 56182 this.name = n.name, 56183 this.keyAsName = n.keyAsName, 56184 this.notNull = n.notNull, 56185 this.default = n.default, 56186 this.defaultFn = n.defaultFn, 56187 this.onUpdateFn = n.onUpdateFn, 56188 this.hasDefault = n.hasDefault, 56189 this.primary = n.primaryKey, 56190 this.isUnique = n.isUnique, 56191 this.uniqueName = n.uniqueName, 56192 this.uniqueType = n.uniqueType, 56193 this.dataType = n.dataType, 56194 this.columnType = n.columnType, 56195 this.generated = n.generated, 56196 this.generatedIdentity = n.generatedIdentity 56197 } 56198 mapFromDriverValue(t) { 56199 return t 56200 } 56201 mapToDriverValue(t) { 56202 return t 56203 } 56204 shouldDisableInsert() { 56205 return this.config.generated !== void 0 && this.config.generated.type !== "byDefault" 56206 } 56207} 56208V(Qc, C2, "Column"); 56209var O2; 56210O2 = X; 56211class gH { 56212 constructor(t, n, r) { 56213 V(this, "config"); 56214 V(this, "$default", this.$defaultFn); 56215 V(this, "$onUpdate", this.$onUpdateFn); 56216 this.config = { 56217 name: t, 56218 keyAsName: t === "", 56219 notNull: !1, 56220 default: void 0, 56221 hasDefault: !1, 56222 primaryKey: !1, 56223 isUnique: !1, 56224 uniqueName: void 0, 56225 uniqueType: void 0, 56226 dataType: n, 56227 columnType: r, 56228 generated: void 0 56229 } 56230 } 56231 $type() { 56232 return this 56233 } 56234 notNull() { 56235 return this.config.notNull = !0, 56236 this 56237 } 56238 default(t) { 56239 return this.config.default = t, 56240 this.config.hasDefault = !0, 56241 this 56242 } 56243 $defaultFn(t) { 56244 return this.config.defaultFn = t, 56245 this.config.hasDefault = !0, 56246 this 56247 } 56248 $onUpdateFn(t) { 56249 return this.config.onUpdateFn = t, 56250 this.config.hasDefault = !0, 56251 this 56252 } 56253 primaryKey() { 56254 return this.config.primaryKey = !0, 56255 this.config.notNull = !0, 56256 this 56257 } 56258 setName(t) { 56259 this.config.name === "" && (this.config.name = t) 56260 } 56261} 56262V(gH, O2, "ColumnBuilder"); 56263const tc = Symbol.for("drizzle:Name"); 56264var A2; 56265A2 = X; 56266class yH { 56267 constructor(t, n) { 56268 V(this, "reference"); 56269 V(this, "_onUpdate", "no action"); 56270 V(this, "_onDelete", "no action"); 56271 this.reference = () => { 56272 const {name: r, columns: i, foreignColumns: o} = t(); 56273 return { 56274 name: r, 56275 columns: i, 56276 foreignTable: o[0].table, 56277 foreignColumns: o 56278 } 56279 } 56280 , 56281 n && (this._onUpdate = n.onUpdate, 56282 this._onDelete = n.onDelete) 56283 } 56284 onUpdate(t) { 56285 return this._onUpdate = t === void 0 ? "no action" : t, 56286 this 56287 } 56288 onDelete(t) { 56289 return this._onDelete = t === void 0 ? "no action" : t, 56290 this 56291 } 56292 build(t) { 56293 return new vH(t,this) 56294 } 56295} 56296V(yH, A2, "PgForeignKeyBuilder"); 56297var E2; 56298E2 = X; 56299class vH { 56300 constructor(t, n) { 56301 V(this, "reference"); 56302 V(this, "onUpdate"); 56303 V(this, "onDelete"); 56304 this.table = t, 56305 this.reference = n.reference, 56306 this.onUpdate = n._onUpdate, 56307 this.onDelete = n._onDelete 56308 } 56309 getName() { 56310 const {name: t, columns: n, foreignColumns: r} = this.reference() 56311 , i = n.map(s => s.name) 56312 , o = r.map(s => s.name) 56313 , a = [this.table[tc], ...i, r[0].table[tc], ...o]; 56314 return t ?? `${a.join("_")}_fk` 56315 } 56316} 56317V(vH, E2, "PgForeignKey"); 56318function _Re(e, ...t) { 56319 return e(...t) 56320} 56321function TRe(e, t) { 56322 return `${e[tc]}_${t.join("_")}_unique` 56323} 56324function o2(e, t, n) { 56325 for (let r = t; r < e.length; r++) { 56326 const i = e[r]; 56327 if (i === "\\") { 56328 r++; 56329 continue 56330 } 56331 if (i === '"') 56332 return [e.slice(t, r).replace(/\\/g, ""), r + 1]; 56333 if (!n && (i === "," || i === "}")) 56334 return [e.slice(t, r).replace(/\\/g, ""), r] 56335 } 56336 return [e.slice(t).replace(/\\/g, ""), e.length] 56337} 56338function xH(e, t=0) { 56339 const n = []; 56340 let r = t 56341 , i = !1; 56342 for (; r < e.length; ) { 56343 const o = e[r]; 56344 if (o === ",") { 56345 (i || r === t) && n.push(""), 56346 i = !0, 56347 r++; 56348 continue 56349 } 56350 if (i = !1, 56351 o === "\\") { 56352 r += 2; 56353 continue 56354 } 56355 if (o === '"') { 56356 const [l,c] = o2(e, r + 1, !0); 56357 n.push(l), 56358 r = c; 56359 continue 56360 } 56361 if (o === "}") 56362 return [n, r + 1]; 56363 if (o === "{") { 56364 const [l,c] = xH(e, r + 1); 56365 n.push(l), 56366 r = c; 56367 continue 56368 } 56369 const [a,s] = o2(e, r, !1); 56370 n.push(a), 56371 r = s 56372 } 56373 return [n, r] 56374} 56375function CRe(e) { 56376 const [t] = xH(e, 1); 56377 return t 56378} 56379function bH(e) { 56380 return `{${e.map(t => Array.isArray(t) ? bH(t) : typeof t == "string" ? `"${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"` : `${t}`).join(",")}}` 56381} 56382var j2, N2; 56383class He extends (N2 = gH, 56384j2 = X, 56385N2) { 56386 constructor() { 56387 super(...arguments); 56388 V(this, "foreignKeyConfigs", []) 56389 } 56390 array(n) { 56391 return new SH(this.config.name,this,n) 56392 } 56393 references(n, r={}) { 56394 return this.foreignKeyConfigs.push({ 56395 ref: n, 56396 actions: r 56397 }), 56398 this 56399 } 56400 unique(n, r) { 56401 return this.config.isUnique = !0, 56402 this.config.uniqueName = n, 56403 this.config.uniqueType = r == null ? void 0 : r.nulls, 56404 this 56405 } 56406 generatedAlwaysAs(n) { 56407 return this.config.generated = { 56408 as: n, 56409 type: "always", 56410 mode: "stored" 56411 }, 56412 this 56413 } 56414 buildForeignKeys(n, r) { 56415 return this.foreignKeyConfigs.map( ({ref: i, actions: o}) => _Re( (a, s) => { 56416 const l = new yH( () => { 56417 const c = a(); 56418 return { 56419 columns: [n], 56420 foreignColumns: [c] 56421 } 56422 } 56423 ); 56424 return s.onUpdate && l.onUpdate(s.onUpdate),
56425 s.onDelete && l.onDelete(s.onDelete), 56426 l.build(r) 56427 } 56428 , i, o)) 56429 } 56430 buildExtraConfigColumn(n) { 56431 return new wH(n,this.config) 56432 } 56433} 56434V(He, j2, "PgColumnBuilder"); 56435var M2, k2; 56436class Re extends (k2 = Qc, 56437M2 = X, 56438k2) { 56439 constructor(t, n) { 56440 n.uniqueName || (n.uniqueName = TRe(t, [n.name])), 56441 super(t, n), 56442 this.table = t 56443 } 56444} 56445V(Re, M2, "PgColumn"); 56446var R2, D2; 56447class wH extends (D2 = Re, 56448R2 = X, 56449D2) { 56450 constructor() { 56451 super(...arguments); 56452 V(this, "indexConfig", { 56453 order: this.config.order ?? "asc", 56454 nulls: this.config.nulls ?? "last", 56455 opClass: this.config.opClass 56456 }); 56457 V(this, "defaultConfig", { 56458 order: "asc", 56459 nulls: "last", 56460 opClass: void 0 56461 }) 56462 } 56463 getSQLType() { 56464 return this.getSQLType() 56465 } 56466 asc() { 56467 return this.indexConfig.order = "asc", 56468 this 56469 } 56470 desc() { 56471 return this.indexConfig.order = "desc", 56472 this 56473 } 56474 nullsFirst() { 56475 return this.indexConfig.nulls = "first", 56476 this 56477 } 56478 nullsLast() { 56479 return this.indexConfig.nulls = "last", 56480 this 56481 } 56482 op(n) { 56483 return this.indexConfig.opClass = n, 56484 this 56485 } 56486} 56487V(wH, R2, "ExtraConfigColumn"); 56488var I2, $2; 56489class SH extends ($2 = He, 56490I2 = X, 56491$2) { 56492 constructor(t, n, r) { 56493 super(t, "array", "PgArray"), 56494 this.config.baseBuilder = n, 56495 this.config.size = r 56496 } 56497 build(t) { 56498 const n = this.config.baseBuilder.build(t); 56499 return new OS(t,this.config,n) 56500 } 56501} 56502V(SH, I2, "PgArrayBuilder"); 56503var L2, F2; 56504const Ay = class Ay extends (F2 = Re, 56505L2 = X, 56506F2) { 56507 constructor(n, r, i, o) { 56508 super(n, r); 56509 V(this, "size"); 56510 this.baseColumn = i, 56511 this.range = o, 56512 this.size = r.size 56513 } 56514 getSQLType() { 56515 return `${this.baseColumn.getSQLType()}[${typeof this.size == "number" ? this.size : ""}]` 56516 } 56517 mapFromDriverValue(n) { 56518 return typeof n == "string" && (n = CRe(n)), 56519 n.map(r => this.baseColumn.mapFromDriverValue(r)) 56520 } 56521 mapToDriverValue(n, r=!1) { 56522 const i = n.map(o => o === null ? null : mn(this.baseColumn, Ay) ? this.baseColumn.mapToDriverValue(o, !0) : this.baseColumn.mapToDriverValue(o)); 56523 return r ? i : bH(i) 56524 } 56525} 56526; 56527V(Ay, L2, "PgArray"); 56528let OS = Ay; 56529const a2 = Symbol.for("drizzle:isPgEnum"); 56530function ORe(e) { 56531 return !!e && typeof e == "function" && a2 in e && e[a2] === !0 56532} 56533var B2; 56534B2 = X; 56535class bC { 56536 constructor(t, n, r, i=!1) { 56537 this._ = { 56538 brand: "Subquery", 56539 sql: t, 56540 selectedFields: n, 56541 alias: r, 56542 isWith: i 56543 } 56544 } 56545} 56546V(bC, B2, "Subquery"); 56547const ARe = { 56548 startActiveSpan(e, t) { 56549 return t() 56550 } 56551} 56552 , nc = Symbol.for("drizzle:ViewBaseConfig") 56553 , tb = Symbol.for("drizzle:Schema") 56554 , s2 = Symbol.for("drizzle:Columns") 56555 , l2 = Symbol.for("drizzle:ExtraConfigColumns") 56556 , nb = Symbol.for("drizzle:OriginalName") 56557 , rb = Symbol.for("drizzle:BaseName") 56558 , gy = Symbol.for("drizzle:IsAlias") 56559 , c2 = Symbol.for("drizzle:ExtraConfigBuilder") 56560 , PH = Symbol.for("drizzle:IsDrizzleTable"); 56561var V2, U2, z2, W2, H2, q2, K2, G2, Y2, X2; 56562X2 = X, 56563Y2 = tc, 56564G2 = nb, 56565K2 = tb, 56566q2 = s2, 56567H2 = l2, 56568W2 = rb, 56569z2 = gy, 56570U2 = PH, 56571V2 = c2; 56572class $n { 56573 constructor(t, n, r) { 56574 V(this, Y2); 56575 V(this, G2); 56576 V(this, K2); 56577 V(this, q2); 56578 V(this, H2); 56579 V(this, W2); 56580 V(this, z2, !1); 56581 V(this, U2, !0); 56582 V(this, V2); 56583 this[tc] = this[nb] = t, 56584 this[tb] = n, 56585 this[rb] = r 56586 } 56587} 56588V($n, X2, "Table"), 56589V($n, "Symbol", { 56590 Name: tc, 56591 Schema: tb, 56592 OriginalName: nb, 56593 Columns: s2, 56594 ExtraConfigColumns: l2, 56595 BaseName: rb, 56596 IsAlias: gy, 56597 ExtraConfigBuilder: c2 56598}); 56599function _H(e) { 56600 return typeof e == "object" && e !== null && PH in e 56601} 56602function ERe(e) { 56603 return e != null && typeof e.getSQL == "function" 56604} 56605function jRe(e) { 56606 var n; 56607 const t = { 56608 sql: "", 56609 params: [] 56610 }; 56611 for (const r of e) 56612 t.sql += r.sql, 56613 t.params.push(...r.params), 56614 (n = r.typings) != null && n.length && (t.typings || (t.typings = []), 56615 t.typings.push(...r.typings)); 56616 return t 56617} 56618var Q2; 56619Q2 = X; 56620class Er { 56621 constructor(t) { 56622 V(this, "value"); 56623 this.value = Array.isArray(t) ? t : [t] 56624 } 56625 getSQL() { 56626 return new nn([this]) 56627 } 56628} 56629V(Er, Q2, "StringChunk"); 56630var Z2; 56631Z2 = X; 56632const ss = class ss { 56633 constructor(t) { 56634 V(this, "decoder", TH); 56635 V(this, "shouldInlineParams", !1);
56636 this.queryChunks = t 56637 } 56638 append(t) { 56639 return this.queryChunks.push(...t.queryChunks), 56640 this 56641 } 56642 toQuery(t) { 56643 return ARe.startActiveSpan("drizzle.buildSQL", n => { 56644 const r = this.buildQueryFromSourceParams(this.queryChunks, t); 56645 return n == null || n.setAttributes({ 56646 "drizzle.query.text": r.sql, 56647 "drizzle.query.params": JSON.stringify(r.params) 56648 }), 56649 r 56650 } 56651 ) 56652 } 56653 buildQueryFromSourceParams(t, n) { 56654 const r = Object.assign({}, n, { 56655 inlineParams: n.inlineParams || this.shouldInlineParams, 56656 paramStartIndex: n.paramStartIndex || { 56657 value: 0 56658 } 56659 }) 56660 , {casing: i, escapeName: o, escapeParam: a, prepareTyping: s, inlineParams: l, paramStartIndex: c} = r; 56661 return jRe(t.map(u => { 56662 var d; 56663 if (mn(u, Er)) 56664 return { 56665 sql: u.value.join(""), 56666 params: [] 56667 }; 56668 if (mn(u, yy)) 56669 return { 56670 sql: o(u.value), 56671 params: [] 56672 }; 56673 if (u === void 0) 56674 return { 56675 sql: "", 56676 params: [] 56677 }; 56678 if (Array.isArray(u)) { 56679 const f = [new Er("(")]; 56680 for (const [p,g] of u.entries()) 56681 f.push(g), 56682 p < u.length - 1 && f.push(new Er(", ")); 56683 return f.push(new Er(")")), 56684 this.buildQueryFromSourceParams(f, r) 56685 } 56686 if (mn(u, ss)) 56687 return this.buildQueryFromSourceParams(u.queryChunks, { 56688 ...r, 56689 inlineParams: l || u.shouldInlineParams 56690 }); 56691 if (mn(u, $n)) { 56692 const f = u[$n.Symbol.Schema] 56693 , p = u[$n.Symbol.Name]; 56694 return { 56695 sql: f === void 0 || u[gy] ? o(p) : o(f) + "." + o(p), 56696 params: [] 56697 } 56698 } 56699 if (mn(u, Qc)) { 56700 const f = i.getColumnCasing(u); 56701 if (n.invokeSource === "indexes") 56702 return { 56703 sql: o(f), 56704 params: [] 56705 }; 56706 const p = u.table[$n.Symbol.Schema]; 56707 return { 56708 sql: u.table[gy] || p === void 0 ? o(u.table[$n.Symbol.Name]) + "." + o(f) : o(p) + "." + o(u.table[$n.Symbol.Name]) + "." + o(f), 56709 params: [] 56710 } 56711 } 56712 if (mn(u, AH)) { 56713 const f = u[nc].schema 56714 , p = u[nc].name; 56715 return { 56716 sql: f === void 0 || u[nc].isAlias ? o(p) : o(f) + "." + o(p), 56717 params: [] 56718 } 56719 } 56720 if (mn(u, wC)) { 56721 if (mn(u.value, xy)) 56722 return { 56723 sql: a(c.value++, u), 56724 params: [u], 56725 typings: ["none"] 56726 }; 56727 const f = u.value === null ? null : u.encoder.mapToDriverValue(u.value); 56728 if (mn(f, ss)) 56729 return this.buildQueryFromSourceParams([f], r); 56730 if (l) 56731 return { 56732 sql: this.mapInlineParam(f, r), 56733 params: [] 56734 }; 56735 let p = ["none"]; 56736 return s && (p = [s(u.encoder)]), 56737 { 56738 sql: a(c.value++, f), 56739 params: [f], 56740 typings: p 56741 } 56742 } 56743 return mn(u, xy) ? { 56744 sql: a(c.value++, u), 56745 params: [u], 56746 typings: ["none"] 56747 } : mn(u, ss.Aliased) && u.fieldAlias !== void 0 ? { 56748 sql: o(u.fieldAlias), 56749 params: [] 56750 } : mn(u, bC) ? u._.isWith ? {
56751 sql: o(u._.alias), 56752 params: [] 56753 } : this.buildQueryFromSourceParams([new Er("("), u._.sql, new Er(") "), new yy(u._.alias)], r) : ORe(u) ? u.schema ? { 56754 sql: o(u.schema) + "." + o(u.enumName), 56755 params: [] 56756 } : { 56757 sql: o(u.enumName), 56758 params: [] 56759 } : ERe(u) ? (d = u.shouldOmitSQLParens) != null && d.call(u) ? this.buildQueryFromSourceParams([u.getSQL()], r) : this.buildQueryFromSourceParams([new Er("("), u.getSQL(), new Er(")")], r) : l ? { 56760 sql: this.mapInlineParam(u, r), 56761 params: [] 56762 } : { 56763 sql: a(c.value++, u), 56764 params: [u], 56765 typings: ["none"] 56766 } 56767 } 56768 )) 56769 } 56770 mapInlineParam(t, {escapeString: n}) { 56771 if (t === null) 56772 return "null"; 56773 if (typeof t == "number" || typeof t == "boolean") 56774 return t.toString(); 56775 if (typeof t == "string") 56776 return n(t); 56777 if (typeof t == "object") { 56778 const r = t.toString(); 56779 return n(r === "[object Object]" ? JSON.stringify(t) : r) 56780 } 56781 throw new Error("Unexpected param value: " + t) 56782 } 56783 getSQL() { 56784 return this 56785 } 56786 as(t) { 56787 return t === void 0 ? this : new ss.Aliased(this,t) 56788 } 56789 mapWith(t) { 56790 return this.decoder = typeof t == "function" ? { 56791 mapFromDriverValue: t 56792 } : t, 56793 this 56794 } 56795 inlineParams() { 56796 return this.shouldInlineParams = !0, 56797 this 56798 } 56799 if(t) { 56800 return t ? this : void 0 56801 } 56802} 56803; 56804V(ss, Z2, "SQL"); 56805let nn = ss; 56806var J2; 56807J2 = X; 56808class yy { 56809 constructor(t) { 56810 V(this, "brand"); 56811 this.value = t 56812 } 56813 getSQL() { 56814 return new nn([this]) 56815 } 56816} 56817V(yy, J2, "Name"); 56818const TH = { 56819 mapFromDriverValue: e => e 56820} 56821 , CH = { 56822 mapToDriverValue: e => e 56823}; 56824({ 56825 ...TH, 56826 ...CH 56827}); 56828var eR; 56829eR = X; 56830class wC { 56831 constructor(t, n=CH) { 56832 V(this, "brand"); 56833 this.value = t, 56834 this.encoder = n 56835 } 56836 getSQL() { 56837 return new nn([this]) 56838 } 56839} 56840V(wC, eR, "Param"); 56841function vy(e, ...t) { 56842 const n = []; 56843 (t.length > 0 || e.length > 0 && e[0] !== "") && n.push(new Er(e[0])); 56844 for (const [r,i] of t.entries()) 56845 n.push(i, new Er(e[r + 1])); 56846 return new nn(n) 56847} 56848(e => { 56849 function t() { 56850 return new nn([]) 56851 } 56852 e.empty = t; 56853 function n(l) { 56854 return new nn(l) 56855 } 56856 e.fromList = n; 56857 function r(l) { 56858 return new nn([new Er(l)]) 56859 } 56860 e.raw = r; 56861 function i(l, c) { 56862 const u = []; 56863 for (const [d,f] of l.entries()) 56864 d > 0 && c !== void 0 && u.push(c), 56865 u.push(f); 56866 return new nn(u) 56867 } 56868 e.join = i; 56869 function o(l) { 56870 return new yy(l) 56871 } 56872 e.identifier = o; 56873 function a(l) { 56874 return new xy(l) 56875 } 56876 e.placeholder = a; 56877 function s(l, c) { 56878 return new wC(l,c) 56879 } 56880 e.param = s 56881} 56882)(vy || (vy = {})); 56883(e => { 56884 var n; 56885 n = X; 56886 const r = class r { 56887 constructor(o, a) { 56888 V(this, "isSelectionField", !1); 56889 this.sql = o, 56890 this.fieldAlias = a 56891 } 56892 getSQL() { 56893 return this.sql 56894 } 56895 clone() { 56896 return new r(this.sql,this.fieldAlias) 56897 } 56898 } 56899 ; 56900 V(r, n, "SQL.Aliased"); 56901 let t = r; 56902 e.Aliased = t 56903} 56904)(nn || (nn = {})); 56905var tR; 56906tR = X; 56907class xy { 56908 constructor(t) { 56909 this.name = t 56910 } 56911 getSQL() { 56912 return new nn([this]) 56913 } 56914} 56915V(xy, tR, "Placeholder"); 56916const OH = Symbol.for("drizzle:IsDrizzleView"); 56917var nR, rR, iR; 56918iR = X, 56919rR = nc, 56920nR = OH; 56921class AH { 56922 constructor({name: t, schema: n, selectedFields: r, query: i}) { 56923 V(this, rR); 56924 V(this, nR, !0); 56925 this[nc] = { 56926 name: t, 56927 originalName: t, 56928 schema: n, 56929 selectedFields: r, 56930 query: i, 56931 isExisting: !i, 56932 isAlias: !1 56933 } 56934 } 56935 getSQL() { 56936 return new nn([this]) 56937 } 56938} 56939V(AH, iR, "View"); 56940function NRe(e) { 56941 return typeof e == "object" && e !== null && OH in e 56942} 56943Qc.prototype.getSQL = function() { 56944 return new nn([this]) 56945} 56946; 56947$n.prototype.getSQL = function() { 56948 return new nn([this]) 56949} 56950; 56951bC.prototype.getSQL = function() { 56952 return new nn([this]) 56953} 56954; 56955function MRe(e) { 56956 return e[$n.Symbol.Columns] 56957} 56958function kRe(e) { 56959 return e[nc].selectedFields 56960} 56961function fn(e, t) { 56962 return { 56963 name: typeof e == "string" && e.length > 0 ? e : "", 56964 config: typeof e == "object" ? e : t 56965 } 56966} 56967var oR, aR; 56968class Zh extends (aR = He, 56969oR = X, 56970aR) { 56971 generatedAlwaysAsIdentity(t) { 56972 if (t) { 56973 const {name: n, ...r} = t; 56974 this.config.generatedIdentity = { 56975 type: "always", 56976 sequenceName: n, 56977 sequenceOptions: r 56978 } 56979 } else 56980 this.config.generatedIdentity = { 56981 type: "always" 56982 }; 56983 return this.config.hasDefault = !0, 56984 this.config.notNull = !0, 56985 this 56986 } 56987 generatedByDefaultAsIdentity(t) { 56988 if (t) { 56989 const {name: n, ...r} = t; 56990 this.config.generatedIdentity = { 56991 type: "byDefault", 56992 sequenceName: n, 56993 sequenceOptions: r 56994 } 56995 } else 56996 this.config.generatedIdentity = { 56997 type: "byDefault" 56998 }; 56999 return this.config.hasDefault = !0, 57000 this.config.notNull = !0, 57001 this 57002 } 57003} 57004V(Zh, oR, "PgIntColumnBaseBuilder"); 57005var sR, lR; 57006class EH extends (lR = Zh, 57007sR = X, 57008lR) { 57009 constructor(t) { 57010 super(t, "number", "PgBigInt53") 57011 } 57012 build(t) { 57013 return new jH(t,this.config) 57014 } 57015} 57016V(EH, sR, "PgBigInt53Builder"); 57017var cR, uR; 57018class jH extends (uR = Re, 57019cR = X, 57020uR) { 57021 getSQLType() { 57022 return "bigint" 57023 } 57024 mapFromDriverValue(t) { 57025 return typeof t == "number" ? t : Number(t) 57026 } 57027} 57028V(jH, cR, "PgBigInt53"); 57029var dR, fR; 57030class NH extends (fR = Zh, 57031dR = X, 57032fR) { 57033 constructor(t) { 57034 super(t, "bigint", "PgBigInt64") 57035 } 57036 build(t) { 57037 return new MH(t,this.config) 57038 } 57039} 57040V(NH, dR, "PgBigInt64Builder"); 57041var hR, pR; 57042class MH extends (pR = Re, 57043hR = X, 57044pR) { 57045 getSQLType() { 57046 return "bigint" 57047 } 57048 mapFromDriverValue(t) { 57049 return BigInt(t) 57050 } 57051} 57052V(MH, hR, "PgBigInt64"); 57053function RRe(e, t) { 57054 const {name: n, config: r} = fn(e, t); 57055 return r.mode === "number" ? new EH(n) : new NH(n) 57056} 57057var mR, gR; 57058class kH extends (gR = He, 57059mR = X, 57060gR) { 57061 constructor(t) {
57062 super(t, "number", "PgBigSerial53"), 57063 this.config.hasDefault = !0, 57064 this.config.notNull = !0 57065 } 57066 build(t) { 57067 return new RH(t,this.config) 57068 } 57069} 57070V(kH, mR, "PgBigSerial53Builder"); 57071var yR, vR; 57072class RH extends (vR = Re, 57073yR = X, 57074vR) { 57075 getSQLType() { 57076 return "bigserial" 57077 } 57078 mapFromDriverValue(t) { 57079 return typeof t == "number" ? t : Number(t) 57080 } 57081} 57082V(RH, yR, "PgBigSerial53"); 57083var xR, bR; 57084class DH extends (bR = He, 57085xR = X, 57086bR) { 57087 constructor(t) { 57088 super(t, "bigint", "PgBigSerial64"), 57089 this.config.hasDefault = !0 57090 } 57091 build(t) { 57092 return new IH(t,this.config) 57093 } 57094} 57095V(DH, xR, "PgBigSerial64Builder"); 57096var wR, SR; 57097class IH extends (SR = Re, 57098wR = X, 57099SR) { 57100 getSQLType() { 57101 return "bigserial" 57102 } 57103 mapFromDriverValue(t) { 57104 return BigInt(t) 57105 } 57106} 57107V(IH, wR, "PgBigSerial64"); 57108function DRe(e, t) { 57109 const {name: n, config: r} = fn(e, t); 57110 return r.mode === "number" ? new kH(n) : new DH(n) 57111} 57112var PR, _R; 57113class $H extends (_R = He, 57114PR = X, 57115_R) { 57116 constructor(t) { 57117 super(t, "boolean", "PgBoolean") 57118 } 57119 build(t) { 57120 return new LH(t,this.config) 57121 } 57122} 57123V($H, PR, "PgBooleanBuilder"); 57124var TR, CR; 57125class LH extends (CR = Re, 57126TR = X, 57127CR) { 57128 getSQLType() { 57129 return "boolean" 57130 } 57131} 57132V(LH, TR, "PgBoolean"); 57133function th(e) { 57134 return new $H(e ?? "") 57135} 57136var OR, AR; 57137class FH extends (AR = He, 57138OR = X, 57139AR) { 57140 constructor(t, n) { 57141 super(t, "string", "PgChar"), 57142 this.config.length = n.length, 57143 this.config.enumValues = n.enum 57144 } 57145 build(t) { 57146 return new BH(t,this.config) 57147 } 57148} 57149V(FH, OR, "PgCharBuilder"); 57150var ER, jR; 57151class BH extends (jR = Re, 57152ER = X, 57153jR) { 57154 constructor() { 57155 super(...arguments); 57156 V(this, "length", this.config.length); 57157 V(this, "enumValues", this.config.enumValues) 57158 } 57159 getSQLType() { 57160 return this.length === void 0 ? "char" : `char(${this.length})` 57161 } 57162} 57163V(BH, ER, "PgChar"); 57164function IRe(e, t={}) { 57165 const {name: n, config: r} = fn(e, t); 57166 return new FH(n,r) 57167} 57168var NR, MR; 57169class VH extends (MR = He, 57170NR = X, 57171MR) { 57172 constructor(t) { 57173 super(t, "string", "PgCidr") 57174 } 57175 build(t) { 57176 return new UH(t,this.config) 57177 } 57178} 57179V(VH, NR, "PgCidrBuilder"); 57180var kR, RR; 57181class UH extends (RR = Re, 57182kR = X, 57183RR) { 57184 getSQLType() { 57185 return "cidr" 57186 } 57187} 57188V(UH, kR, "PgCidr"); 57189function $Re(e) { 57190 return new VH(e ?? "") 57191} 57192var DR, IR; 57193class zH extends (IR = He, 57194DR = X, 57195IR) { 57196 constructor(t, n, r) { 57197 super(t, "custom", "PgCustomColumn"), 57198 this.config.fieldConfig = n, 57199 this.config.customTypeParams = r 57200 } 57201 build(t) { 57202 return new WH(t,this.config) 57203 } 57204} 57205V(zH, DR, "PgCustomColumnBuilder"); 57206var $R, LR; 57207class WH extends (LR = Re, 57208$R = X, 57209LR) { 57210 constructor(n, r) { 57211 super(n, r); 57212 V(this, "sqlName"); 57213 V(this, "mapTo"); 57214 V(this, "mapFrom"); 57215 this.sqlName = r.customTypeParams.dataType(r.fieldConfig), 57216 this.mapTo = r.customTypeParams.toDriver, 57217 this.mapFrom = r.customTypeParams.fromDriver 57218 } 57219 getSQLType() { 57220 return this.sqlName 57221 } 57222 mapFromDriverValue(n) { 57223 return typeof this.mapFrom == "function" ? this.mapFrom(n) : n 57224 } 57225 mapToDriverValue(n) { 57226 return typeof this.mapTo == "function" ? this.mapTo(n) : n 57227 } 57228} 57229V(WH, $R, "PgCustomColumn"); 57230function LRe(e) { 57231 return (t, n) => { 57232 const {name: r, config: i} = fn(t, n); 57233 return new zH(r,i,e) 57234 } 57235} 57236var FR, BR; 57237class _u extends (BR = He, 57238FR = X, 57239BR) { 57240 defaultNow() { 57241 return this.default(vy`now()`) 57242 } 57243} 57244V(_u, FR, "PgDateColumnBaseBuilder"); 57245var VR, UR; 57246class HH extends (UR = _u, 57247VR = X, 57248UR) { 57249 constructor(t) { 57250 super(t, "date", "PgDate") 57251 } 57252 build(t) { 57253 return new qH(t,this.config) 57254 } 57255} 57256V(HH, VR, "PgDateBuilder"); 57257var zR, WR; 57258class qH extends (WR = Re, 57259zR = X, 57260WR) { 57261 getSQLType() { 57262 return "date" 57263 } 57264 mapFromDriverValue(t) { 57265 return new Date(t) 57266 } 57267 mapToDriverValue(t) { 57268 return t.toISOString() 57269 } 57270} 57271V(qH, zR, "PgDate"); 57272var HR, qR; 57273class KH extends (qR = _u, 57274HR = X, 57275qR) { 57276 constructor(t) { 57277 super(t, "string", "PgDateString") 57278 } 57279 build(t) { 57280 return new GH(t,this.config) 57281 } 57282} 57283V(KH, HR, "PgDateStringBuilder"); 57284var KR, GR; 57285class GH extends (GR = Re, 57286KR = X, 57287GR) { 57288 getSQLType() { 57289 return "date" 57290 } 57291} 57292V(GH, KR, "PgDateString"); 57293function FRe(e, t) { 57294 const {name: n, config: r} = fn(e, t); 57295 return (r == null ? void 0 : r.mode) === "date" ? new HH(n) : new KH(n) 57296} 57297var YR, XR; 57298class YH extends (XR = He, 57299YR = X, 57300XR) { 57301 constructor(t) { 57302 super(t, "number", "PgDoublePrecision") 57303 } 57304 build(t) { 57305 return new XH(t,this.config) 57306 } 57307} 57308V(YH, YR, "PgDoublePrecisionBuilder"); 57309var QR, ZR; 57310class XH extends (ZR = Re, 57311QR = X, 57312ZR) { 57313 getSQLType() { 57314 return "double precision" 57315 } 57316 mapFromDriverValue(t) { 57317 return typeof t == "string" ? Number.parseFloat(t) : t 57318 } 57319} 57320V(XH, QR, "PgDoublePrecision"); 57321function BRe(e) { 57322 return new YH(e ?? "") 57323} 57324var JR, eD; 57325class QH extends (eD = He, 57326JR = X, 57327eD) { 57328 constructor(t) { 57329 super(t, "string", "PgInet") 57330 } 57331 build(t) { 57332 return new ZH(t,this.config) 57333 } 57334} 57335V(QH, JR, "PgInetBuilder"); 57336var tD, nD; 57337class ZH extends (nD = Re, 57338tD = X, 57339nD) { 57340 getSQLType() { 57341 return "inet" 57342 } 57343} 57344V(ZH, tD, "PgInet"); 57345function VRe(e) { 57346 return new QH(e ?? "") 57347} 57348var rD, iD; 57349class JH extends (iD = Zh, 57350rD = X, 57351iD) { 57352 constructor(t) { 57353 super(t, "number", "PgInteger") 57354 } 57355 build(t) { 57356 return new e9(t,this.config) 57357 } 57358} 57359V(JH, rD, "PgIntegerBuilder"); 57360var oD, aD; 57361class e9 extends (aD = Re, 57362oD = X, 57363aD) { 57364 getSQLType() { 57365 return "integer" 57366 } 57367 mapFromDriverValue(t) { 57368 return typeof t == "string" ? Number.parseInt(t) : t 57369 } 57370} 57371V(e9, oD, "PgInteger"); 57372function yi(e) { 57373 return new JH(e ?? "") 57374} 57375var sD, lD; 57376class t9 extends (lD = He, 57377sD = X, 57378lD) { 57379 constructor(t, n) { 57380 super(t, "string", "PgInterval"), 57381 this.config.intervalConfig = n 57382 } 57383 build(t) { 57384 return new n9(t,this.config) 57385 } 57386} 57387V(t9, sD, "PgIntervalBuilder"); 57388var cD, uD; 57389class n9 extends (uD = Re, 57390cD = X, 57391uD) { 57392 constructor() { 57393 super(...arguments); 57394 V(this, "fields", this.config.intervalConfig.fields); 57395 V(this, "precision", this.config.intervalConfig.precision) 57396 } 57397 getSQLType() { 57398 const n = this.fields ? ` ${this.fields}` : "" 57399 , r = this.precision ? `(${this.precision})` : ""; 57400 return `interval${n}${r}` 57401 } 57402} 57403V(n9, cD, "PgInterval"); 57404function URe(e, t={}) { 57405 const {name: n, config: r} = fn(e, t); 57406 return new t9(n,r) 57407} 57408var dD, fD; 57409class r9 extends (fD = He, 57410dD = X, 57411fD) { 57412 constructor(t) { 57413 super(t, "json", "PgJson") 57414 } 57415 build(t) { 57416 return new i9(t,this.config) 57417 } 57418} 57419V(r9, dD, "PgJsonBuilder"); 57420var hD, pD; 57421class i9 extends (pD = Re, 57422hD = X, 57423pD) { 57424 constructor(t, n) { 57425 super(t, n) 57426 } 57427 getSQLType() { 57428 return "json" 57429 } 57430 mapToDriverValue(t) { 57431 return JSON.stringify(t) 57432 } 57433 mapFromDriverValue(t) { 57434 if (typeof t == "string") 57435 try { 57436 return JSON.parse(t) 57437 } catch { 57438 return t 57439 } 57440 return t 57441 } 57442} 57443V(i9, hD, "PgJson"); 57444function zRe(e) { 57445 return new r9(e ?? "") 57446} 57447var mD, gD; 57448class o9 extends (gD = He, 57449mD = X, 57450gD) { 57451 constructor(t) { 57452 super(t, "json", "PgJsonb") 57453 } 57454 build(t) { 57455 return new a9(t,this.config) 57456 } 57457} 57458V(o9, mD, "PgJsonbBuilder"); 57459var yD, vD; 57460class a9 extends (vD = Re, 57461yD = X, 57462vD) { 57463 constructor(t, n) { 57464 super(t, n) 57465 } 57466 getSQLType() { 57467 return "jsonb" 57468 } 57469 mapToDriverValue(t) { 57470 return JSON.stringify(t) 57471 } 57472 mapFromDriverValue(t) { 57473 if (typeof t == "string") 57474 try { 57475 return JSON.parse(t) 57476 } catch { 57477 return t 57478 } 57479 return t 57480 } 57481} 57482V(a9, yD, "PgJsonb"); 57483function WRe(e) { 57484 return new o9(e ?? "") 57485} 57486var xD, bD; 57487class s9 extends (bD = He, 57488xD = X, 57489bD) { 57490 constructor(t) { 57491 super(t, "array", "PgLine") 57492 } 57493 build(t) { 57494 return new l9(t,this.config) 57495 } 57496}
57497V(s9, xD, "PgLineBuilder"); 57498var wD, SD; 57499class l9 extends (SD = Re, 57500wD = X, 57501SD) { 57502 getSQLType() { 57503 return "line" 57504 } 57505 mapFromDriverValue(t) { 57506 const [n,r,i] = t.slice(1, -1).split(","); 57507 return [Number.parseFloat(n), Number.parseFloat(r), Number.parseFloat(i)] 57508 } 57509 mapToDriverValue(t) { 57510 return `{${t[0]},${t[1]},${t[2]}}` 57511 } 57512} 57513V(l9, wD, "PgLine"); 57514var PD, _D; 57515class c9 extends (_D = He, 57516PD = X, 57517_D) { 57518 constructor(t) { 57519 super(t, "json", "PgLineABC") 57520 } 57521 build(t) { 57522 return new u9(t,this.config) 57523 } 57524} 57525V(c9, PD, "PgLineABCBuilder"); 57526var TD, CD; 57527class u9 extends (CD = Re, 57528TD = X, 57529CD) { 57530 getSQLType() { 57531 return "line" 57532 } 57533 mapFromDriverValue(t) { 57534 const [n,r,i] = t.slice(1, -1).split(","); 57535 return { 57536 a: Number.parseFloat(n), 57537 b: Number.parseFloat(r), 57538 c: Number.parseFloat(i) 57539 } 57540 } 57541 mapToDriverValue(t) { 57542 return `{${t.a},${t.b},${t.c}}` 57543 } 57544} 57545V(u9, TD, "PgLineABC"); 57546function HRe(e, t) { 57547 const {name: n, config: r} = fn(e, t); 57548 return !(r != null && r.mode) || r.mode === "tuple" ? new s9(n) : new c9(n) 57549} 57550var OD, AD; 57551class d9 extends (AD = He, 57552OD = X, 57553AD) { 57554 constructor(t) { 57555 super(t, "string", "PgMacaddr") 57556 } 57557 build(t) { 57558 return new f9(t,this.config) 57559 } 57560} 57561V(d9, OD, "PgMacaddrBuilder"); 57562var ED, jD; 57563class f9 extends (jD = Re, 57564ED = X, 57565jD) { 57566 getSQLType() { 57567 return "macaddr" 57568 } 57569} 57570V(f9, ED, "PgMacaddr"); 57571function qRe(e) { 57572 return new d9(e ?? "") 57573} 57574var ND, MD; 57575class h9 extends (MD = He, 57576ND = X, 57577MD) { 57578 constructor(t) { 57579 super(t, "string", "PgMacaddr8") 57580 } 57581 build(t) { 57582 return new p9(t,this.config) 57583 } 57584} 57585V(h9, ND, "PgMacaddr8Builder"); 57586var kD, RD; 57587class p9 extends (RD = Re, 57588kD = X, 57589RD) { 57590 getSQLType() { 57591 return "macaddr8" 57592 } 57593} 57594V(p9, kD, "PgMacaddr8"); 57595function KRe(e) { 57596 return new h9(e ?? "") 57597} 57598var DD, ID; 57599class m9 extends (ID = He, 57600DD = X, 57601ID) { 57602 constructor(t, n, r) { 57603 super(t, "string", "PgNumeric"), 57604 this.config.precision = n, 57605 this.config.scale = r 57606 } 57607 build(t) { 57608 return new g9(t,this.config) 57609 } 57610} 57611V(m9, DD, "PgNumericBuilder"); 57612var $D, LD; 57613class g9 extends (LD = Re, 57614$D = X, 57615LD) { 57616 constructor(n, r) { 57617 super(n, r); 57618 V(this, "precision"); 57619 V(this, "scale"); 57620 this.precision = r.precision, 57621 this.scale = r.scale 57622 } 57623 getSQLType() { 57624 return this.precision !== void 0 && this.scale !== void 0 ? `numeric(${this.precision}, ${this.scale})` : this.precision === void 0 ? "numeric" : `numeric(${this.precision})` 57625 } 57626} 57627V(g9, $D, "PgNumeric"); 57628function y9(e, t) { 57629 const {name: n, config: r} = fn(e, t); 57630 return new m9(n,r == null ? void 0 : r.precision,r == null ? void 0 : r.scale) 57631} 57632const v0 = y9; 57633var FD, BD; 57634class v9 extends (BD = He, 57635FD = X, 57636BD) { 57637 constructor(t) { 57638 super(t, "array", "PgPointTuple") 57639 } 57640 build(t) { 57641 return new x9(t,this.config) 57642 } 57643} 57644V(v9, FD, "PgPointTupleBuilder"); 57645var VD, UD; 57646class x9 extends (UD = Re, 57647VD = X, 57648UD) { 57649 getSQLType() { 57650 return "point" 57651 } 57652 mapFromDriverValue(t) { 57653 if (typeof t == "string") { 57654 const [n,r] = t.slice(1, -1).split(","); 57655 return [Number.parseFloat(n), Number.parseFloat(r)] 57656 } 57657 return [t.x, t.y] 57658 } 57659 mapToDriverValue(t) { 57660 return `(${t[0]},${t[1]})` 57661 } 57662} 57663V(x9, VD, "PgPointTuple"); 57664var zD, WD; 57665class b9 extends (WD = He, 57666zD = X, 57667WD) { 57668 constructor(t) { 57669 super(t, "json", "PgPointObject") 57670 } 57671 build(t) { 57672 return new w9(t,this.config) 57673 } 57674} 57675V(b9, zD, "PgPointObjectBuilder"); 57676var HD, qD; 57677class w9 extends (qD = Re, 57678HD = X, 57679qD) { 57680 getSQLType() { 57681 return "point" 57682 } 57683 mapFromDriverValue(t) { 57684 if (typeof t == "string") { 57685 const [n,r] = t.slice(1, -1).split(","); 57686 return { 57687 x: Number.parseFloat(n), 57688 y: Number.parseFloat(r) 57689 } 57690 } 57691 return t 57692 } 57693 mapToDriverValue(t) { 57694 return `(${t.x},${t.y})` 57695 } 57696} 57697V(w9, HD, "PgPointObject"); 57698function GRe(e, t) { 57699 const {name: n, config: r} = fn(e, t); 57700 return !(r != null && r.mode) || r.mode === "tuple" ? new v9(n) : new b9(n) 57701} 57702function YRe(e) { 57703 const t = []; 57704 for (let n = 0; n < e.length; n += 2) 57705 t.push(Number.parseInt(e.slice(n, n + 2), 16)); 57706 return new Uint8Array(t) 57707} 57708function u2(e, t) { 57709 const n = new ArrayBuffer(8) 57710 , r = new DataView(n); 57711 for (let i = 0; i < 8; i++) 57712 r.setUint8(i, e[t + i]); 57713 return r.getFloat64(0, !0) 57714} 57715function S9(e) { 57716 const t = YRe(e); 57717 let n = 0; 57718 const r = t[n]; 57719 n += 1; 57720 const i = new DataView(t.buffer) 57721 , o = i.getUint32(n, r === 1); 57722 if (n += 4, 57723 o & 536870912 && (i.getUint32(n, r === 1), 57724 n += 4), 57725 (o & 65535) === 1) { 57726 const a = u2(t, n); 57727 n += 8; 57728 const s = u2(t, n); 57729 return n += 8, 57730 [a, s] 57731 } 57732 throw new Error("Unsupported geometry type") 57733} 57734var KD, GD; 57735class P9 extends (GD = He, 57736KD = X, 57737GD) { 57738 constructor(t) { 57739 super(t, "array", "PgGeometry") 57740 } 57741 build(t) { 57742 return new _9(t,this.config) 57743 } 57744} 57745V(P9, KD, "PgGeometryBuilder"); 57746var YD, XD; 57747class _9 extends (XD = Re, 57748YD = X, 57749XD) { 57750 getSQLType() { 57751 return "geometry(point)" 57752 } 57753 mapFromDriverValue(t) { 57754 return S9(t) 57755 } 57756 mapToDriverValue(t) { 57757 return `point(${t[0]} ${t[1]})` 57758 } 57759} 57760V(_9, YD, "PgGeometry"); 57761var QD, ZD; 57762class T9 extends (ZD = He, 57763QD = X, 57764ZD) { 57765 constructor(t) { 57766 super(t, "json", "PgGeometryObject") 57767 } 57768 build(t) { 57769 return new C9(t,this.config) 57770 } 57771} 57772V(T9, QD, "PgGeometryObjectBuilder"); 57773var JD, eI; 57774class C9 extends (eI = Re, 57775JD = X, 57776eI) { 57777 getSQLType() { 57778 return "geometry(point)" 57779 } 57780 mapFromDriverValue(t) { 57781 const n = S9(t); 57782 return { 57783 x: n[0], 57784 y: n[1] 57785 } 57786 } 57787 mapToDriverValue(t) { 57788 return `point(${t.x} ${t.y})` 57789 } 57790} 57791V(C9, JD, "PgGeometryObject"); 57792function XRe(e, t) { 57793 const {name: n, config: r} = fn(e, t); 57794 return !(r != null && r.mode) || r.mode === "tuple" ? new P9(n) : new T9(n) 57795} 57796var tI, nI; 57797class O9 extends (nI = He, 57798tI = X, 57799nI) { 57800 constructor(t, n) { 57801 super(t, "number", "PgReal"), 57802 this.config.length = n 57803 } 57804 build(t) { 57805 return new A9(t,this.config) 57806 } 57807} 57808V(O9, tI, "PgRealBuilder"); 57809var rI, iI; 57810class A9 extends (iI = Re, 57811rI = X, 57812iI) { 57813 constructor(n, r) { 57814 super(n, r); 57815 V(this, "mapFromDriverValue", n =>
57815 typeof n == "string" ? Number.parseFloat(n) : n) 57816 } 57817 getSQLType() { 57818 return "real" 57819 } 57820} 57821V(A9, rI, "PgReal"); 57822function QRe(e) { 57823 return new O9(e ?? "") 57824} 57825var oI, aI; 57826class E9 extends (aI = He, 57827oI = X, 57828aI) { 57829 constructor(t) { 57830 super(t, "number", "PgSerial"), 57831 this.config.hasDefault = !0, 57832 this.config.notNull = !0 57833 } 57834 build(t) { 57835 return new j9(t,this.config) 57836 } 57837} 57838V(E9, oI, "PgSerialBuilder"); 57839var sI, lI; 57840class j9 extends (lI = Re, 57841sI = X, 57842lI) { 57843 getSQLType() { 57844 return "serial" 57845 } 57846} 57847V(j9, sI, "PgSerial"); 57848function Lo(e) { 57849 return new E9(e ?? "") 57850} 57851var cI, uI; 57852class N9 extends (uI = Zh, 57853cI = X, 57854uI) { 57855 constructor(t) { 57856 super(t, "number", "PgSmallInt") 57857 } 57858 build(t) { 57859 return new M9(t,this.config) 57860 } 57861} 57862V(N9, cI, "PgSmallIntBuilder"); 57863var dI, fI; 57864class M9 extends (fI = Re, 57865dI = X, 57866fI) { 57867 constructor() { 57868 super(...arguments); 57869 V(this, "mapFromDriverValue", n => typeof n == "string" ? Number(n) : n) 57870 } 57871 getSQLType() { 57872 return "smallint" 57873 } 57874} 57875V(M9, dI, "PgSmallInt"); 57876function ZRe(e) { 57877 return new N9(e ?? "") 57878} 57879var hI, pI; 57880class k9 extends (pI = He, 57881hI = X, 57882pI) { 57883 constructor(t) { 57884 super(t, "number", "PgSmallSerial"), 57885 this.config.hasDefault = !0, 57886 this.config.notNull = !0 57887 } 57888 build(t) { 57889 return new R9(t,this.config) 57890 } 57891} 57892V(k9, hI, "PgSmallSerialBuilder"); 57893var mI, gI; 57894class R9 extends (gI = Re, 57895mI = X, 57896gI) { 57897 getSQLType() { 57898 return "smallserial" 57899 } 57900} 57901V(R9, mI, "PgSmallSerial"); 57902function JRe(e) { 57903 return new k9(e ?? "") 57904} 57905var yI, vI; 57906class D9 extends (vI = He, 57907yI = X, 57908vI) { 57909 constructor(t, n) { 57910 super(t, "string", "PgText"), 57911 this.config.enumValues = n.enum 57912 } 57913 build(t) { 57914 return new I9(t,this.config) 57915 } 57916} 57917V(D9, yI, "PgTextBuilder"); 57918var xI, bI; 57919class I9 extends (bI = Re, 57920xI = X, 57921bI) { 57922 constructor() { 57923 super(...arguments); 57924 V(this, "enumValues", this.config.enumValues) 57925 } 57926 getSQLType() { 57927 return "text" 57928 } 57929} 57930V(I9, xI, "PgText"); 57931function St(e, t={}) { 57932 const {name: n, config: r} = fn(e, t); 57933 return new D9(n,r) 57934} 57935var wI, SI; 57936class $9 extends (SI = _u, 57937wI = X, 57938SI) { 57939 constructor(t, n, r) { 57940 super(t, "string", "PgTime"), 57941 this.withTimezone = n, 57942 this.precision = r, 57943 this.config.withTimezone = n, 57944 this.config.precision = r 57945 } 57946 build(t) { 57947 return new L9(t,this.config) 57948 } 57949} 57950V($9, wI, "PgTimeBuilder"); 57951var PI, _I; 57952class L9 extends (_I = Re, 57953PI = X, 57954_I) { 57955 constructor(n, r) { 57956 super(n, r); 57957 V(this, "withTimezone"); 57958 V(this, "precision"); 57959 this.withTimezone = r.withTimezone, 57960 this.precision = r.precision 57961 } 57962 getSQLType() { 57963 return `time${this.precision === void 0 ? "" : `(${this.precision})`}${this.withTimezone ? " with time zone" : ""}` 57964 } 57965} 57966V(L9, PI, "PgTime"); 57967function eDe(e, t={}) { 57968 const {name: n, config: r} = fn(e, t); 57969 return new $9(n,r.withTimezone ?? !1,r.precision) 57970} 57971var TI, CI; 57972class F9 extends (CI = _u, 57973TI = X, 57974CI) { 57975 constructor(t, n, r) { 57976 super(t, "date", "PgTimestamp"), 57977 this.config.withTimezone = n, 57978 this.config.precision = r 57979 } 57980 build(t) { 57981 return new B9(t,this.config) 57982 } 57983} 57984V(F9, TI, "PgTimestampBuilder"); 57985var OI, AI; 57986class B9 extends (AI = Re, 57987OI = X, 57988AI) { 57989 constructor(n, r) { 57990 super(n, r); 57991 V(this, "withTimezone"); 57992 V(this, "precision"); 57993 V(this, "mapFromDriverValue", n => new Date(this.withTimezone ? n : n + "+0000")); 57994 V(this, "mapToDriverValue", n => n.toISOString()); 57995 this.withTimezone = r.withTimezone, 57996 this.precision = r.precision 57997 } 57998 getSQLType() { 57999 return `timestamp${this.precision === void 0 ? "" : ` (${this.precision})`}${this.withTimezone ? " with time zone" : ""}` 58000 } 58001} 58002V(B9, OI, "PgTimestamp"); 58003var EI, jI; 58004class V9 extends (jI = _u, 58005EI = X, 58006jI) { 58007 constructor(t, n, r) { 58008 super(t, "string", "PgTimestampString"), 58009 this.config.withTimezone = n, 58010 this.config.precision = r 58011 } 58012 build(t) { 58013 return new U9(t,this.config) 58014 } 58015} 58016V(V9, EI, "PgTimestampStringBuilder"); 58017var NI, MI; 58018class U9 extends (MI = Re, 58019NI = X, 58020MI) { 58021 constructor(n, r) { 58022 super(n, r); 58023 V(this, "withTimezone"); 58024 V(this, "precision"); 58025 this.withTimezone = r.withTimezone, 58026 this.precision = r.precision 58027 } 58028 getSQLType() { 58029 return `timestamp${this.precision === void 0 ? "" : `(${this.precision})`}${this.withTimezone ? " with time zone" : ""}` 58030 } 58031} 58032V(U9, NI, "PgTimestampString"); 58033function Fr(e, t={}) { 58034 const {name: n, config: r} = fn(e, t); 58035 return (r == null ? void 0 : r.mode) === "string" ? new V9(n,r.withTimezone ?? !1,r.precision) : new F9(n,(r == null ? void 0 : r.withTimezone) ?? !1,r == null ? void 0 : r.precision) 58036} 58037var kI, RI; 58038class z9 extends (RI = He, 58039kI = X, 58040RI) { 58041 constructor(t) { 58042 super(t, "string", "PgUUID") 58043 } 58044 defaultRandom() { 58045 return this.default(vy`gen_random_uuid()`) 58046 } 58047 build(t) { 58048 return new W9(t,this.config) 58049 } 58050} 58051V(z9, kI, "PgUUIDBuilder"); 58052var DI, II; 58053class W9 extends (II = Re, 58054DI = X, 58055II) { 58056 getSQLType() { 58057 return "uuid" 58058 } 58059} 58060V(W9, DI, "PgUUID"); 58061function tDe(e) { 58062 return new z9(e ?? "") 58063} 58064var $I, LI; 58065class H9 extends (LI = He, 58066$I = X, 58067LI) { 58068 constructor(t, n) { 58069 super(t, "string", "PgVarchar"), 58070 this.config.length = n.length, 58071 this.config.enumValues = n.enum 58072 } 58073 build(t) { 58074 return new q9(t,this.config) 58075 } 58076} 58077V(H9, $I, "PgVarcharBuilder"); 58078var FI, BI; 58079class q9 extends (BI = Re, 58080FI = X, 58081BI) { 58082 constructor() { 58083 super(...arguments); 58084 V(this, "length", this.config.length); 58085 V(this, "enumValues", this.config.enumValues) 58086 } 58087 getSQLType() { 58088 return this.length === void 0 ? "varchar" : `varchar(${this.length})` 58089 } 58090} 58091V(q9, FI, "PgVarchar"); 58092function nDe(e, t={}) { 58093 const {name: n, config: r} = fn(e, t); 58094 return new H9(n,r) 58095} 58096var VI, UI; 58097class K9 extends (UI = He, 58098VI = X, 58099UI) { 58100 constructor(t, n) { 58101 super(t, "string", "PgBinaryVector"), 58102 this.config.dimensions = n.dimensions 58103 } 58104 build(t) { 58105 return new G9(t,this.config) 58106 } 58107} 58108V(K9, VI, "PgBinaryVectorBuilder"); 58109var zI, WI; 58110class G9 extends (WI = Re, 58111zI = X, 58112WI) { 58113 constructor() { 58114 super(...arguments); 58115 V(this, "dimensions", this.config.dimensions) 58116 } 58117 getSQLType() { 58118 return `bit(${this.dimensions})` 58119 } 58120} 58121V(G9, zI, "PgBinaryVector"); 58122function rDe(e, t) { 58123 const {name: n, config: r} = fn(e, t); 58124 return new K9(n,r) 58125} 58126var HI, qI; 58127class Y9 extends (qI = He, 58128HI = X, 58129qI) { 58130 constructor(t, n) { 58131 super(t, "array", "PgHalfVector"), 58132 this.config.dimensions = n.dimensions 58133 } 58134 build(t) { 58135 return new X9(t,this.config) 58136 } 58137} 58138V(Y9, HI, "PgHalfVectorBuilder"); 58139var KI, GI; 58140class X9 extends (GI = Re, 58141KI = X, 58142GI) { 58143 constructor() { 58144 super(...arguments); 58145 V(this, "dimensions", this.config.dimensions) 58146 } 58147 getSQLType() { 58148 return `halfvec(${this.dimensions})` 58149 } 58150 mapToDriverValue(n) { 58151 return JSON.stringify(n) 58152 } 58153 mapFromDriverValue(n) { 58154 return n.slice(1, -1).split(",").map(r => Number.parseFloat(r)) 58155 } 58156} 58157V(X9, KI, "PgHalfVector"); 58158function iDe(e, t) { 58159 const {name: n, config: r} = fn(e, t); 58160 return new Y9(n,r) 58161} 58162var YI, XI; 58163class Q9 extends (XI = He, 58164YI = X, 58165XI) { 58166 constructor(t, n) { 58167 super(t, "string", "PgSparseVector"), 58168 this.config.dimensions = n.dimensions 58169 } 58170 build(t) { 58171 return new Z9(t,this.config) 58172 } 58173} 58174V(Q9, YI, "PgSparseVectorBuilder"); 58175var QI, ZI; 58176class Z9 extends (ZI = Re, 58177QI = X, 58178ZI) { 58179 constructor() { 58180 super(...arguments); 58181 V(this, "dimensions", this.config.dimensions) 58182 } 58183 getSQLType() { 58184 return `sparsevec(${this.dimensions})` 58185 } 58186} 58187V(Z9, QI, "PgSparseVector"); 58188function oDe(e, t) { 58189 const {name: n, config: r} = fn(e, t); 58190 return new Q9(n,r) 58191} 58192var JI, e$; 58193class J9 extends (e$ = He,
58194JI = X, 58195e$) { 58196 constructor(t, n) { 58197 super(t, "array", "PgVector"), 58198 this.config.dimensions = n.dimensions 58199 } 58200 build(t) { 58201 return new e7(t,this.config) 58202 } 58203} 58204V(J9, JI, "PgVectorBuilder"); 58205var t$, n$; 58206class e7 extends (n$ = Re, 58207t$ = X, 58208n$) { 58209 constructor() { 58210 super(...arguments); 58211 V(this, "dimensions", this.config.dimensions) 58212 } 58213 getSQLType() { 58214 return `vector(${this.dimensions})` 58215 } 58216 mapToDriverValue(n) { 58217 return JSON.stringify(n) 58218 } 58219 mapFromDriverValue(n) { 58220 return n.slice(1, -1).split(",").map(r => Number.parseFloat(r)) 58221 } 58222} 58223V(e7, t$, "PgVector"); 58224function aDe(e, t) { 58225 const {name: n, config: r} = fn(e, t); 58226 return new J9(n,r) 58227} 58228function sDe() { 58229 return { 58230 bigint: RRe, 58231 bigserial: DRe, 58232 boolean: th, 58233 char: IRe, 58234 cidr: $Re, 58235 customType: LRe, 58236 date: FRe, 58237 doublePrecision: BRe, 58238 inet: VRe, 58239 integer: yi, 58240 interval: URe, 58241 json: zRe, 58242 jsonb: WRe, 58243 line: HRe, 58244 macaddr: qRe, 58245 macaddr8: KRe, 58246 numeric: y9, 58247 point: GRe, 58248 geometry: XRe, 58249 real: QRe, 58250 serial: Lo, 58251 smallint: ZRe, 58252 smallserial: JRe, 58253 text: St, 58254 time: eDe, 58255 timestamp: Fr, 58256 uuid: tDe, 58257 varchar: nDe, 58258 bit: rDe, 58259 halfvec: iDe, 58260 sparsevec: oDe, 58261 vector: aDe 58262 } 58263} 58264const AS = Symbol.for("drizzle:PgInlineForeignKeys") 58265 , d2 = Symbol.for("drizzle:EnableRLS"); 58266var r$, i$, o$, a$, s$; 58267class by extends (s$ = $n, 58268a$ = X, 58269o$ = AS, 58270i$ = d2, 58271r$ = $n.Symbol.ExtraConfigBuilder, 58272s$) { 58273 constructor() { 58274 super(...arguments); 58275 V(this, o$, []); 58276 V(this, i$, !1); 58277 V(this, r$) 58278 } 58279} 58280V(by, a$, "PgTable"), 58281V(by, "Symbol", Object.assign({}, $n.Symbol, { 58282 InlineForeignKeys: AS, 58283 EnableRLS: d2 58284})); 58285function lDe(e, t, n, r, i=e) { 58286 const o = new by(e,r,i) 58287 , a = typeof t == "function" ? t(sDe()) : t 58288 , s = Object.fromEntries(Object.entries(a).map( ([u,d]) => { 58289 const f = d; 58290 f.setName(u); 58291 const p = f.build(o); 58292 return o[AS].push(...f.buildForeignKeys(p, o)), 58293 [u, p] 58294 } 58295 )) 58296 , l = Object.fromEntries(Object.entries(a).map( ([u,d]) => { 58297 const f = d; 58298 f.setName(u); 58299 const p = f.buildExtraConfigColumn(o); 58300 return [u, p] 58301 } 58302 )) 58303 , c = Object.assign(o, s); 58304 return c[$n.Symbol.Columns] = s, 58305 c[$n.Symbol.ExtraConfigColumns] = l, 58306 Object.assign(c, { 58307 enableRLS: () => (c[by.Symbol.EnableRLS] = !0, 58308 c) 58309 }) 58310} 58311const Ga = (e, t, n) => lDe(e, t, n, void 0); 58312var We; 58313(function(e) { 58314 e.assertEqual = i => i; 58315 function t(i) {} 58316 e.assertIs = t; 58317 function n(i) { 58318 throw new Error 58319 } 58320 e.assertNever = n, 58321 e.arrayToEnum = i => { 58322 const o = {}; 58323 for (const a of i) 58324 o[a] = a; 58325 return o 58326 } 58327 , 58328 e.getValidEnumValues = i => { 58329 const o = e.objectKeys(i).filter(s => typeof i[i[s]] != "number") 58330 , a = {}; 58331 for (const s of o) 58332 a[s] = i[s]; 58333 return e.objectValues(a) 58334 } 58335 , 58336 e.objectValues = i => e.objectKeys(i).map(function(o) { 58337 return i[o] 58338 }), 58339 e.objectKeys = typeof Object.keys == "function" ? i => Object.keys(i) : i => { 58340 const o = []; 58341 for (const a in i) 58342 Object.prototype.hasOwnProperty.call(i, a) && o.push(a); 58343 return o 58344 } 58345 , 58346 e.find = (i, o) => { 58347 for (const a of i) 58348 if (o(a)) 58349 return a 58350 } 58351 , 58352 e.isInteger = typeof Number.isInteger == "function" ? i => Number.isInteger(i) : i => typeof i == "number" && isFinite(i) && Math.floor(i) === i; 58353 function r(i, o=" | ") { 58354 return i.map(a => typeof a == "string" ? `'${a}'` : a).join(o) 58355 } 58356 e.joinValues = r, 58357 e.jsonStringifyReplacer = (i, o) => typeof o == "bigint" ? o.toString() : o 58358} 58359)(We || (We = {})); 58360var ES; 58361(function(e) { 58362 e.mergeShapes = (t, n) => ({ 58363 ...t, 58364 ...n 58365 }) 58366} 58367)(ES || (ES = {})); 58368const ue = We.arrayToEnum(["string", "nan", "number", "integer", "float", "boolean", "date", "bigint", "symbol", "function", "undefined", "null", "array", "object", "unknown", "promise", "void", "never", "map", "set"]) 58369 , Zo = e => { 58370 switch (typeof e) { 58371 case "undefined": 58372 return ue.undefined; 58373 case "string": 58374 return ue.string; 58375 case "number": 58376 return isNaN(e) ? ue.nan : ue.number; 58377 case "boolean": 58378 return ue.boolean; 58379 case "function": 58380 return ue.function; 58381 case "bigint": 58382 return ue.bigint; 58383 case "symbol": 58384 return ue.symbol; 58385 case "object": 58386 return Array.isArray(e) ? ue.array : e === null ? ue.null : e.then && typeof e.then == "function" && e.catch && typeof e.catch == "function" ? ue.promise : typeof Map < "u" && e instanceof Map ? ue.map : typeof Set < "u" && e instanceof Set ? ue.set : typeof Date < "u" && e instanceof Date ? ue.date : ue.object; 58387 default: 58388 return ue.unknown 58389 } 58390} 58391 , ee = We.arrayToEnum(["invalid_type", "invalid_literal", "custom", "invalid_union", "invalid_union_discriminator", "invalid_enum_value", "unrecognized_keys", "invalid_arguments", "invalid_return_type", "invalid_date", "invalid_string", "too_small", "too_big", "invalid_intersection_types", "not_multiple_of", "not_finite"]) 58392 , cDe = e => JSON.stringify(e, null, 2).replace(/"([^"]+)":/g, "$1:");
vendor: 5,631 bytes, lines 58393-58521
58393class gr extends Error { 58394 constructor(t) { 58395 super(), 58396 this.issues = [], 58397 this.addIssue = r => { 58398 this.issues = [...this.issues, r] 58399 } 58400 , 58401 this.addIssues = (r=[]) => { 58402 this.issues = [...this.issues, ...r] 58403 } 58404 ; 58405 const n = new.target.prototype; 58406 Object.setPrototypeOf ? Object.setPrototypeOf(this, n) : this.__proto__ = n, 58407 this.name = "ZodError", 58408 this.issues = t 58409 } 58410 get errors() { 58411 return this.issues 58412 } 58413 format(t) { 58414 const n = t || function(o) { 58415 return o.message 58416 } 58417 , r = { 58418 _errors: [] 58419 } 58420 , i = o => { 58421 for (const a of o.issues) 58422 if (a.code === "invalid_union") 58423 a.unionErrors.map(i); 58424 else if (a.code === "invalid_return_type") 58425 i(a.returnTypeError); 58426 else if (a.code === "invalid_arguments") 58427 i(a.argumentsError); 58428 else if (a.path.length === 0) 58429 r._errors.push(n(a)); 58430 else { 58431 let s = r 58432 , l = 0; 58433 for (; l < a.path.length; ) { 58434 const c = a.path[l]; 58435 l === a.path.length - 1 ? (s[c] = s[c] || { 58436 _errors: [] 58437 }, 58438 s[c]._errors.push(n(a))) : s[c] = s[c] || { 58439 _errors: [] 58440 }, 58441 s = s[c], 58442 l++ 58443 } 58444 } 58445 } 58446 ; 58447 return i(this), 58448 r 58449 } 58450 static assert(t) { 58451 if (!(t instanceof gr)) 58452 throw new Error(`Not a ZodError: ${t}`) 58453 } 58454 toString() { 58455 return this.message 58456 } 58457 get message() { 58458 return JSON.stringify(this.issues, We.jsonStringifyReplacer, 2) 58459 } 58460 get isEmpty() { 58461 return this.issues.length === 0 58462 } 58463 flatten(t=n => n.message) { 58464 const n = {} 58465 , r = []; 58466 for (const i of this.issues) 58467 i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], 58468 n[i.path[0]].push(t(i))) : r.push(t(i)); 58469 return { 58470 formErrors: r, 58471 fieldErrors: n 58472 } 58473 } 58474 get formErrors() { 58475 return this.flatten() 58476 } 58477} 58478gr.create = e => new gr(e); 58479const Zc = (e, t) => { 58480 let n; 58481 switch (e.code) { 58482 case ee.invalid_type: 58483 e.received === ue.undefined ? n = "Required" : n = `Expected ${e.expected}, received ${e.received}`; 58484 break; 58485 case ee.invalid_literal: 58486 n = `Invalid literal value, expected ${JSON.stringify(e.expected, We.jsonStringifyReplacer)}`; 58487 break; 58488 case ee.unrecognized_keys: 58489 n = `Unrecognized key(s) in object: ${We.joinValues(e.keys, ", ")}`; 58490 break; 58491 case ee.invalid_union: 58492 n = "Invalid input"; 58493 break; 58494 case ee.invalid_union_discriminator: 58495 n = `Invalid discriminator value. Expected ${We.joinValues(e.options)}`; 58496 break; 58497 case ee.invalid_enum_value: 58498 n = `Invalid enum value. Expected ${We.joinValues(e.options)}, received '${e.received}'`; 58499 break; 58500 case ee.invalid_arguments: 58501 n = "Invalid function arguments"; 58502 break; 58503 case ee.invalid_return_type: 58504 n = "Invalid function return type"; 58505 break; 58506 case ee.invalid_date: 58507 n = "Invalid date"; 58508 break; 58509 case ee.invalid_string: 58510 typeof e.validation == "object" ? "includes"in e.validation ? (n = `Invalid input: must include "${e.validation.includes}"`, 58511 typeof e.validation.position == "number" && (n = `${n} at one or more positions greater than or equal to ${e.validation.position}`)) : "startsWith"in e.validation ? n = `Invalid input: must start with "${e.validation.startsWith}"` : "endsWith"in e.validation ? n = `Invalid input: must end with "${e.validation.endsWith}"` : We.assertNever(e.validation) : e.validation !== "regex" ? n = `Invalid ${e.validation}` : n = "Invalid"; 58512 break; 58513 case ee.too_small: 58514 e.type === "array" ? n = `Array must contain ${e.exact ? "exactly" : e.inclusive ? "at least" : "more than"} ${e.minimum} element(s)` : e.type === "string" ? n = `String must contain ${e.exact ? "exactly" : e.inclusive ? "at least" : "over"} ${e.minimum} character(s)` : e.type === "number" ? n = `Number must be ${e.exact ? "exactly equal to " : e.inclusive ? "greater than or equal to " : "greater than "}${e.minimum}` : e.type === "date" ? n = `Date must be ${e.exact ? "exactly equal to " : e.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(e.minimum))}` : n = "Invalid input"; 58515 break; 58516 case ee.too_big: 58517 e.type === "array" ? n = `Array must contain ${e.exact ? "exactly" : e.inclusive ? "at most" : "less than"} ${e.maximum} element(s)` : e.type === "string" ? n = `String must contain ${e.exact ? "exactly" : e.inclusive ? "at most" : "under"} ${e.maximum} character(s)` : e.type === "number" ? n = `Number must be ${e.exact ? "exactly" : e.inclusive ? "less than or equal to" : "less than"} ${e.maximum}` : e.type === "bigint" ? n = `BigInt must be ${e.exact ? "exactly" : e.inclusive ? "less than or equal to" : "less than"} ${e.maximum}` : e.type === "date" ? n = `Date must be ${e.exact ? "exactly" : e.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(e.maximum))}` : n = "Invalid input"; 58518 break; 58519 case ee.custom: 58520 n = "Invalid input"; 58521 break;
vendor: 4,951 bytes, lines 58522-58715
58522 case ee.invalid_intersection_types: 58523 n = "Intersection results could not be merged"; 58524 break; 58525 case ee.not_multiple_of: 58526 n = `Number must be a multiple of ${e.multipleOf}`; 58527 break; 58528 case ee.not_finite: 58529 n = "Number must be finite"; 58530 break; 58531 default: 58532 n = t.defaultError, 58533 We.assertNever(e) 58534 } 58535 return { 58536 message: n 58537 } 58538} 58539; 58540let t7 = Zc; 58541function uDe(e) { 58542 t7 = e 58543} 58544function wy() { 58545 return t7 58546} 58547const Sy = e => { 58548 const {data: t, path: n, errorMaps: r, issueData: i} = e 58549 , o = [...n, ...i.path || []] 58550 , a = { 58551 ...i, 58552 path: o 58553 }; 58554 if (i.message !== void 0) 58555 return { 58556 ...i, 58557 path: o, 58558 message: i.message 58559 }; 58560 let s = ""; 58561 const l = r.filter(c => !!c).slice().reverse(); 58562 for (const c of l) 58563 s = c(a, { 58564 data: t, 58565 defaultError: s 58566 }).message; 58567 return { 58568 ...i, 58569 path: o, 58570 message: s 58571 } 58572} 58573 , dDe = []; 58574function se(e, t) { 58575 const n = wy() 58576 , r = Sy({ 58577 issueData: t, 58578 data: e.data, 58579 path: e.path, 58580 errorMaps: [e.common.contextualErrorMap, e.schemaErrorMap, n, n === Zc ? void 0 : Zc].filter(i => !!i) 58581 }); 58582 e.common.issues.push(r) 58583} 58584class jn { 58585 constructor() { 58586 this.value = "valid" 58587 } 58588 dirty() { 58589 this.value === "valid" && (this.value = "dirty") 58590 } 58591 abort() { 58592 this.value !== "aborted" && (this.value = "aborted") 58593 } 58594 static mergeArray(t, n) { 58595 const r = []; 58596 for (const i of n) { 58597 if (i.status === "aborted") 58598 return Te; 58599 i.status === "dirty" && t.dirty(), 58600 r.push(i.value) 58601 } 58602 return { 58603 status: t.value, 58604 value: r 58605 } 58606 } 58607 static async mergeObjectAsync(t, n) { 58608 const r = []; 58609 for (const i of n) { 58610 const o = await i.key 58611 , a = await i.value; 58612 r.push({ 58613 key: o, 58614 value: a 58615 }) 58616 } 58617 return jn.mergeObjectSync(t, r) 58618 } 58619 static mergeObjectSync(t, n) { 58620 const r = {}; 58621 for (const i of n) { 58622 const {key: o, value: a} = i; 58623 if (o.status === "aborted" || a.status === "aborted") 58624 return Te; 58625 o.status === "dirty" && t.dirty(), 58626 a.status === "dirty" && t.dirty(), 58627 o.value !== "__proto__" && (typeof a.value < "u" || i.alwaysSet) && (r[o.value] = a.value) 58628 } 58629 return { 58630 status: t.value, 58631 value: r 58632 } 58633 } 58634} 58635const Te = Object.freeze({ 58636 status: "aborted" 58637}) 58638 , Fl = e => ({ 58639 status: "dirty", 58640 value: e 58641}) 58642 , Bn = e => ({ 58643 status: "valid", 58644 value: e 58645}) 58646 , jS = e => e.status === "aborted" 58647 , NS = e => e.status === "dirty" 58648 , nh = e => e.status === "valid" 58649 , rh = e => typeof Promise < "u" && e instanceof Promise; 58650function Py(e, t, n, r) { 58651 if (typeof t == "function" ? e !== t || !r : !t.has(e)) 58652 throw new TypeError("Cannot read private member from an object whose class did not declare it"); 58653 return t.get(e) 58654} 58655function n7(e, t, n, r, i) { 58656 if (typeof t == "function" ? e !== t || !i : !t.has(e)) 58657 throw new TypeError("Cannot write private member to an object whose class did not declare it"); 58658 return t.set(e, n), 58659 n 58660} 58661var be; 58662(function(e) { 58663 e.errToObj = t => typeof t == "string" ? { 58664 message: t 58665 } : t || {}, 58666 e.toString = t => typeof t == "string" ? t : t == null ? void 0 : t.message 58667} 58668)(be || (be = {})); 58669var md, gd; 58670class qi { 58671 constructor(t, n, r, i) { 58672 this._cachedPath = [], 58673 this.parent = t, 58674 this.data = n, 58675 this._path = r, 58676 this._key = i 58677 } 58678 get path() { 58679 return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), 58680 this._cachedPath 58681 } 58682} 58683const f2 = (e, t) => { 58684 if (nh(t)) 58685 return { 58686 success: !0, 58687 data: t.value 58688 }; 58689 if (!e.common.issues.length) 58690 throw new Error("Validation failed but no issues detected."); 58691 return { 58692 success: !1, 58693 get error() { 58694 if (this._error) 58695 return this._error; 58696 const n = new gr(e.common.issues); 58697 return this._error = n, 58698 this._error 58699 } 58700 } 58701} 58702; 58703function ke(e) { 58704 if (!e) 58705 return {}; 58706 const {errorMap: t, invalid_type_error: n, required_error: r, description: i} = e; 58707 if (t && (n || r)) 58708 throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`); 58709 return t ? { 58710 errorMap: t, 58711 description: i 58712 } : { 58713 errorMap: (a, s) => { 58714 var l, c; 58715 const {message: u} = e;
vendor: 11,185 bytes, lines 58716-59055
58716 return a.code === "invalid_enum_value" ? { 58717 message: u ?? s.defaultError 58718 } : typeof s.data > "u" ? { 58719 message: (l = u ?? r) !== null && l !== void 0 ? l : s.defaultError 58720 } : a.code !== "invalid_type" ? { 58721 message: s.defaultError 58722 } : { 58723 message: (c = u ?? n) !== null && c !== void 0 ? c : s.defaultError 58724 } 58725 } 58726 , 58727 description: i 58728 } 58729} 58730class Le { 58731 constructor(t) { 58732 this.spa = this.safeParseAsync, 58733 this._def = t, 58734 this.parse = this.parse.bind(this), 58735 this.safeParse = this.safeParse.bind(this), 58736 this.parseAsync = this.parseAsync.bind(this), 58737 this.safeParseAsync = this.safeParseAsync.bind(this), 58738 this.spa = this.spa.bind(this), 58739 this.refine = this.refine.bind(this), 58740 this.refinement = this.refinement.bind(this), 58741 this.superRefine = this.superRefine.bind(this), 58742 this.optional = this.optional.bind(this), 58743 this.nullable = this.nullable.bind(this), 58744 this.nullish = this.nullish.bind(this), 58745 this.array = this.array.bind(this), 58746 this.promise = this.promise.bind(this), 58747 this.or = this.or.bind(this), 58748 this.and = this.and.bind(this), 58749 this.transform = this.transform.bind(this), 58750 this.brand = this.brand.bind(this), 58751 this.default = this.default.bind(this), 58752 this.catch = this.catch.bind(this), 58753 this.describe = this.describe.bind(this), 58754 this.pipe = this.pipe.bind(this), 58755 this.readonly = this.readonly.bind(this), 58756 this.isNullable = this.isNullable.bind(this), 58757 this.isOptional = this.isOptional.bind(this) 58758 } 58759 get description() { 58760 return this._def.description 58761 } 58762 _getType(t) { 58763 return Zo(t.data) 58764 } 58765 _getOrReturnCtx(t, n) { 58766 return n || { 58767 common: t.parent.common, 58768 data: t.data, 58769 parsedType: Zo(t.data), 58770 schemaErrorMap: this._def.errorMap, 58771 path: t.path, 58772 parent: t.parent 58773 } 58774 } 58775 _processInputParams(t) { 58776 return { 58777 status: new jn, 58778 ctx: { 58779 common: t.parent.common, 58780 data: t.data, 58781 parsedType: Zo(t.data), 58782 schemaErrorMap: this._def.errorMap, 58783 path: t.path, 58784 parent: t.parent 58785 } 58786 } 58787 } 58788 _parseSync(t) { 58789 const n = this._parse(t); 58790 if (rh(n)) 58791 throw new Error("Synchronous parse encountered promise."); 58792 return n 58793 } 58794 _parseAsync(t) { 58795 const n = this._parse(t); 58796 return Promise.resolve(n) 58797 } 58798 parse(t, n) { 58799 const r = this.safeParse(t, n); 58800 if (r.success) 58801 return r.data; 58802 throw r.error 58803 } 58804 safeParse(t, n) { 58805 var r; 58806 const i = { 58807 common: { 58808 issues: [], 58809 async: (r = n == null ? void 0 : n.async) !== null && r !== void 0 ? r : !1, 58810 contextualErrorMap: n == null ? void 0 : n.errorMap 58811 }, 58812 path: (n == null ? void 0 : n.path) || [], 58813 schemaErrorMap: this._def.errorMap, 58814 parent: null, 58815 data: t, 58816 parsedType: Zo(t) 58817 } 58818 , o = this._parseSync({ 58819 data: t, 58820 path: i.path, 58821 parent: i 58822 }); 58823 return f2(i, o) 58824 } 58825 async parseAsync(t, n) { 58826 const r = await this.safeParseAsync(t, n); 58827 if (r.success) 58828 return r.data; 58829 throw r.error 58830 } 58831 async safeParseAsync(t, n) { 58832 const r = { 58833 common: { 58834 issues: [], 58835 contextualErrorMap: n == null ? void 0 : n.errorMap, 58836 async: !0 58837 }, 58838 path: (n == null ? void 0 : n.path) || [], 58839 schemaErrorMap: this._def.errorMap, 58840 parent: null, 58841 data: t, 58842 parsedType: Zo(t) 58843 } 58844 , i = this._parse({ 58845 data: t, 58846 path: r.path, 58847 parent: r 58848 }) 58849 , o = await (rh(i) ? i : Promise.resolve(i)); 58850 return f2(r, o) 58851 } 58852 refine(t, n) { 58853 const r = i => typeof n == "string" || typeof n > "u" ? { 58854 message: n 58855 } : typeof n == "function" ? n(i) : n; 58856 return this._refinement( (i, o) => { 58857 const a = t(i) 58858 , s = () => o.addIssue({ 58859 code: ee.custom, 58860 ...r(i) 58861 }); 58862 return typeof Promise < "u" && a instanceof Promise ? a.then(l => l ? !0 : (s(), 58863 !1)) : a ? !0 : (s(), 58864 !1) 58865 } 58866 ) 58867 } 58868 refinement(t, n) { 58869 return this._refinement( (r, i) => t(r) ? !0 : (i.addIssue(typeof n == "function" ? n(r, i) : n), 58870 !1)) 58871 } 58872 _refinement(t) { 58873 return new vi({ 58874 schema: this, 58875 typeName: Pe.ZodEffects, 58876 effect: { 58877 type: "refinement", 58878 refinement: t 58879 } 58880 }) 58881 } 58882 superRefine(t) { 58883 return this._refinement(t) 58884 } 58885 optional() { 58886 return Ui.create(this, this._def) 58887 } 58888 nullable() { 58889 return Ra.create(this, this._def) 58890 } 58891 nullish() { 58892 return this.nullable().optional() 58893 } 58894 array() { 58895 return fi.create(this, this._def) 58896 } 58897 promise() { 58898 return eu.create(this, this._def) 58899 } 58900 or(t) { 58901 return sh.create([this, t], this._def) 58902 } 58903 and(t) { 58904 return lh.create(this, t, this._def) 58905 } 58906 transform(t) { 58907 return new vi({ 58908 ...ke(this._def), 58909 schema: this, 58910 typeName: Pe.ZodEffects, 58911 effect: { 58912 type: "transform", 58913 transform: t 58914 } 58915 }) 58916 } 58917 default(t) { 58918 const n = typeof t == "function" ? t : () => t; 58919 return new hh({ 58920 ...ke(this._def), 58921 innerType: this, 58922 defaultValue: n, 58923 typeName: Pe.ZodDefault 58924 }) 58925 } 58926 brand() { 58927 return new SC({ 58928 typeName: Pe.ZodBranded, 58929 type: this, 58930 ...ke(this._def) 58931 }) 58932 } 58933 catch(t) { 58934 const n = typeof t == "function" ? t : () => t; 58935 return new ph({ 58936 ...ke(this._def), 58937 innerType: this, 58938 catchValue: n, 58939 typeName: Pe.ZodCatch 58940 }) 58941 } 58942 describe(t) { 58943 const n = this.constructor; 58944 return new n({ 58945 ...this._def, 58946 description: t 58947 }) 58948 } 58949 pipe(t) { 58950 return Jh.create(this, t) 58951 } 58952 readonly() { 58953 return mh.create(this) 58954 } 58955 isOptional() { 58956 return this.safeParse(void 0).success 58957 } 58958 isNullable() { 58959 return this.safeParse(null).success 58960 } 58961} 58962const fDe = /^c[^\s-]{8,}$/i 58963 , hDe = /^[0-9a-z]+$/ 58964 , pDe = /^[0-9A-HJKMNP-TV-Z]{26}$/ 58965 , mDe = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i 58966 , gDe = /^[a-z0-9_-]{21}$/i 58967 , yDe = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/ 58968 , vDe = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i 58969 , xDe = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"; 58970let ib; 58971const bDe = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/ 58972 , wDe = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/ 58973 , SDe = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/ 58974 , r7 = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))" 58975 , PDe = new RegExp(`^${r7}$`); 58976function i7(e) { 58977 let t = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d"; 58978 return e.precision ? t = `${t}\\.\\d{${e.precision}}` : e.precision == null && (t = `${t}(\\.\\d+)?`), 58979 t 58980} 58981function _De(e) { 58982 return new RegExp(`^${i7(e)}$`) 58983} 58984function o7(e) { 58985 let t = `${r7}T${i7(e)}`; 58986 const n = []; 58987 return n.push(e.local ? "Z?" : "Z"), 58988 e.offset && n.push("([+-]\\d{2}:?\\d{2})"), 58989 t = `${t}(${n.join("|")})`, 58990 new RegExp(`^${t}$`) 58991} 58992function TDe(e, t) { 58993 return !!((t === "v4" || !t) && bDe.test(e) || (t === "v6" || !t) && wDe.test(e)) 58994} 58995class ai extends Le { 58996 _parse(t) { 58997 if (this._def.coerce && (t.data = String(t.data)), 58998 this._getType(t) !== ue.string) { 58999 const o = this._getOrReturnCtx(t); 59000 return se(o, { 59001 code: ee.invalid_type, 59002 expected: ue.string, 59003 received: o.parsedType 59004 }), 59005 Te 59006 } 59007 const r = new jn; 59008 let i; 59009 for (const o of this._def.checks) 59010 if (o.kind === "min") 59011 t.data.length < o.value && (i = this._getOrReturnCtx(t, i), 59012 se(i, { 59013 code: ee.too_small, 59014 minimum: o.value, 59015 type: "string", 59016 inclusive: !0, 59017 exact: !1, 59018 message: o.message 59019 }), 59020 r.dirty()); 59021 else if (o.kind === "max") 59022 t.data.length > o.value && (i = this._getOrReturnCtx(t, i), 59023 se(i, { 59024 code: ee.too_big, 59025 maximum: o.value, 59026 type: "string", 59027 inclusive: !0, 59028 exact: !1, 59029 message: o.message 59030 }), 59031 r.dirty()); 59032 else if (o.kind === "length") { 59033 const a = t.data.length > o.value 59034 , s = t.data.length < o.value; 59035 (a || s) && (i = this._getOrReturnCtx(t, i), 59036 a ? se(i, { 59037 code: ee.too_big, 59038 maximum: o.value, 59039 type: "string", 59040 inclusive: !0, 59041 exact: !0, 59042 message: o.message 59043 }) : s && se(i, { 59044 code: ee.too_small, 59045 minimum: o.value, 59046 type: "string", 59047 inclusive: !0, 59048 exact: !0, 59049 message: o.message 59050 }), 59051 r.dirty()) 59052 } else if (o.kind === "email") 59053 vDe.test(t.data) || (i = this._getOrReturnCtx(t, i), 59054 se(i, { 59055 validation: "email",
59056 code: ee.invalid_string, 59057 message: o.message 59058 }), 59059 r.dirty()); 59060 else if (o.kind === "emoji") 59061 ib || (ib = new RegExp(xDe,"u")), 59062 ib.test(t.data) || (i = this._getOrReturnCtx(t, i), 59063 se(i, { 59064 validation: "emoji", 59065 code: ee.invalid_string, 59066 message: o.message 59067 }), 59068 r.dirty()); 59069 else if (o.kind === "uuid") 59070 mDe.test(t.data) || (i = this._getOrReturnCtx(t, i), 59071 se(i, { 59072 validation: "uuid", 59073 code: ee.invalid_string, 59074 message: o.message 59075 }), 59076 r.dirty()); 59077 else if (o.kind === "nanoid") 59078 gDe.test(t.data) || (i = this._getOrReturnCtx(t, i), 59079 se(i, { 59080 validation: "nanoid", 59081 code: ee.invalid_string, 59082 message: o.message 59083 }), 59084 r.dirty()); 59085 else if (o.kind === "cuid") 59086 fDe.test(t.data) || (i = this._getOrReturnCtx(t, i), 59087 se(i, { 59088 validation: "cuid",
59089 code: ee.invalid_string, 59090 message: o.message 59091 }), 59092 r.dirty()); 59093 else if (o.kind === "cuid2") 59094 hDe.test(t.data) || (i = this._getOrReturnCtx(t, i), 59095 se(i, { 59096 validation: "cuid2", 59097 code: ee.invalid_string, 59098 message: o.message 59099 }), 59100 r.dirty()); 59101 else if (o.kind === "ulid") 59102 pDe.test(t.data) || (i = this._getOrReturnCtx(t, i), 59103 se(i, { 59104 validation: "ulid", 59105 code: ee.invalid_string, 59106 message: o.message 59107 }), 59108 r.dirty()); 59109 else if (o.kind === "url") 59110 try { 59111 new URL(t.data) 59112 } catch { 59113 i = this._getOrReturnCtx(t, i), 59114 se(i, { 59115 validation: "url", 59116 code: ee.invalid_string, 59117 message: o.message 59118 }), 59119 r.dirty() 59120 } 59121 else 59122 o.kind === "regex" ? (o.regex.lastIndex = 0, 59123 o.regex.test(t.data) || (i = this._getOrReturnCtx(t, i), 59124 se(i, { 59125 validation: "regex",
vendor: 1,152 bytes, lines 59126-59147
59126 code: ee.invalid_string, 59127 message: o.message 59128 }), 59129 r.dirty())) : o.kind === "trim" ? t.data = t.data.trim() : o.kind === "includes" ? t.data.includes(o.value, o.position) || (i = this._getOrReturnCtx(t, i), 59130 se(i, { 59131 code: ee.invalid_string, 59132 validation: { 59133 includes: o.value, 59134 position: o.position 59135 }, 59136 message: o.message 59137 }), 59138 r.dirty()) : o.kind === "toLowerCase" ? t.data = t.data.toLowerCase() : o.kind === "toUpperCase" ? t.data = t.data.toUpperCase() : o.kind === "startsWith" ? t.data.startsWith(o.value) || (i = this._getOrReturnCtx(t, i), 59139 se(i, { 59140 code: ee.invalid_string, 59141 validation: { 59142 startsWith: o.value 59143 }, 59144 message: o.message 59145 }), 59146 r.dirty()) : o.kind === "endsWith" ? t.data.endsWith(o.value) || (i = this._getOrReturnCtx(t, i), 59147 se(i, {
59148 code: ee.invalid_string, 59149 validation: { 59150 endsWith: o.value 59151 }, 59152 message: o.message 59153 }), 59154 r.dirty()) : o.kind === "datetime" ? o7(o).test(t.data) || (i = this._getOrReturnCtx(t, i), 59155 se(i, { 59156 code: ee.invalid_string, 59157 validation: "datetime", 59158 message: o.message 59159 }), 59160 r.dirty()) : o.kind === "date" ? PDe.test(t.data) || (i = this._getOrReturnCtx(t, i), 59161 se(i, { 59162 code: ee.invalid_string, 59163 validation: "date", 59164 message: o.message 59165 }), 59166 r.dirty()) : o.kind === "time" ? _De(o).test(t.data) || (i = this._getOrReturnCtx(t, i), 59167 se(i, { 59168 code: ee.invalid_string, 59169 validation: "time", 59170 message: o.message 59171 }), 59172 r.dirty()) : o.kind === "duration" ? yDe.test(t.data) || (i = this._getOrReturnCtx(t, i), 59173 se(i, { 59174 validation: "duration",
vendor: 19,974 bytes, lines 59175-59894
59175 code: ee.invalid_string, 59176 message: o.message 59177 }), 59178 r.dirty()) : o.kind === "ip" ? TDe(t.data, o.version) || (i = this._getOrReturnCtx(t, i), 59179 se(i, { 59180 validation: "ip", 59181 code: ee.invalid_string, 59182 message: o.message 59183 }), 59184 r.dirty()) : o.kind === "base64" ? SDe.test(t.data) || (i = this._getOrReturnCtx(t, i), 59185 se(i, { 59186 validation: "base64", 59187 code: ee.invalid_string, 59188 message: o.message 59189 }), 59190 r.dirty()) : We.assertNever(o); 59191 return { 59192 status: r.value, 59193 value: t.data 59194 } 59195 } 59196 _regex(t, n, r) { 59197 return this.refinement(i => t.test(i), { 59198 validation: n, 59199 code: ee.invalid_string, 59200 ...be.errToObj(r) 59201 }) 59202 } 59203 _addCheck(t) { 59204 return new ai({ 59205 ...this._def, 59206 checks: [...this._def.checks, t] 59207 }) 59208 } 59209 email(t) { 59210 return this._addCheck({ 59211 kind: "email", 59212 ...be.errToObj(t) 59213 }) 59214 } 59215 url(t) { 59216 return this._addCheck({ 59217 kind: "url", 59218 ...be.errToObj(t) 59219 }) 59220 } 59221 emoji(t) { 59222 return this._addCheck({ 59223 kind: "emoji", 59224 ...be.errToObj(t) 59225 }) 59226 } 59227 uuid(t) { 59228 return this._addCheck({ 59229 kind: "uuid", 59230 ...be.errToObj(t) 59231 }) 59232 } 59233 nanoid(t) { 59234 return this._addCheck({ 59235 kind: "nanoid", 59236 ...be.errToObj(t) 59237 }) 59238 } 59239 cuid(t) { 59240 return this._addCheck({ 59241 kind: "cuid", 59242 ...be.errToObj(t) 59243 }) 59244 } 59245 cuid2(t) { 59246 return this._addCheck({ 59247 kind: "cuid2", 59248 ...be.errToObj(t) 59249 }) 59250 } 59251 ulid(t) { 59252 return this._addCheck({ 59253 kind: "ulid", 59254 ...be.errToObj(t) 59255 }) 59256 } 59257 base64(t) { 59258 return this._addCheck({ 59259 kind: "base64", 59260 ...be.errToObj(t) 59261 }) 59262 } 59263 ip(t) { 59264 return this._addCheck({ 59265 kind: "ip", 59266 ...be.errToObj(t) 59267 }) 59268 } 59269 datetime(t) { 59270 var n, r; 59271 return typeof t == "string" ? this._addCheck({ 59272 kind: "datetime", 59273 precision: null, 59274 offset: !1, 59275 local: !1, 59276 message: t 59277 }) : this._addCheck({ 59278 kind: "datetime", 59279 precision: typeof (t == null ? void 0 : t.precision) > "u" ? null : t == null ? void 0 : t.precision, 59280 offset: (n = t == null ? void 0 : t.offset) !== null && n !== void 0 ? n : !1, 59281 local: (r = t == null ? void 0 : t.local) !== null && r !== void 0 ? r : !1, 59282 ...be.errToObj(t == null ? void 0 : t.message) 59283 }) 59284 } 59285 date(t) { 59286 return this._addCheck({ 59287 kind: "date", 59288 message: t 59289 }) 59290 } 59291 time(t) { 59292 return typeof t == "string" ? this._addCheck({ 59293 kind: "time", 59294 precision: null, 59295 message: t 59296 }) : this._addCheck({ 59297 kind: "time", 59298 precision: typeof (t == null ? void 0 : t.precision) > "u" ? null : t == null ? void 0 : t.precision, 59299 ...be.errToObj(t == null ? void 0 : t.message) 59300 }) 59301 } 59302 duration(t) { 59303 return this._addCheck({ 59304 kind: "duration", 59305 ...be.errToObj(t) 59306 }) 59307 } 59308 regex(t, n) { 59309 return this._addCheck({ 59310 kind: "regex", 59311 regex: t, 59312 ...be.errToObj(n) 59313 }) 59314 } 59315 includes(t, n) { 59316 return this._addCheck({ 59317 kind: "includes", 59318 value: t, 59319 position: n == null ? void 0 : n.position, 59320 ...be.errToObj(n == null ? void 0 : n.message) 59321 }) 59322 } 59323 startsWith(t, n) { 59324 return this._addCheck({ 59325 kind: "startsWith", 59326 value: t, 59327 ...be.errToObj(n) 59328 }) 59329 } 59330 endsWith(t, n) { 59331 return this._addCheck({ 59332 kind: "endsWith", 59333 value: t, 59334 ...be.errToObj(n) 59335 }) 59336 } 59337 min(t, n) { 59338 return this._addCheck({ 59339 kind: "min", 59340 value: t, 59341 ...be.errToObj(n) 59342 }) 59343 } 59344 max(t, n) { 59345 return this._addCheck({ 59346 kind: "max", 59347 value: t, 59348 ...be.errToObj(n) 59349 }) 59350 } 59351 length(t, n) { 59352 return this._addCheck({ 59353 kind: "length", 59354 value: t, 59355 ...be.errToObj(n) 59356 }) 59357 } 59358 nonempty(t) { 59359 return this.min(1, be.errToObj(t)) 59360 } 59361 trim() { 59362 return new ai({ 59363 ...this._def, 59364 checks: [...this._def.checks, { 59365 kind: "trim" 59366 }] 59367 }) 59368 } 59369 toLowerCase() { 59370 return new ai({ 59371 ...this._def, 59372 checks: [...this._def.checks, { 59373 kind: "toLowerCase" 59374 }] 59375 }) 59376 } 59377 toUpperCase() { 59378 return new ai({ 59379 ...this._def, 59380 checks: [...this._def.checks, { 59381 kind: "toUpperCase" 59382 }] 59383 }) 59384 } 59385 get isDatetime() { 59386 return !!this._def.checks.find(t => t.kind === "datetime") 59387 } 59388 get isDate() { 59389 return !!this._def.checks.find(t => t.kind === "date") 59390 } 59391 get isTime() { 59392 return !!this._def.checks.find(t => t.kind === "time") 59393 } 59394 get isDuration() { 59395 return !!this._def.checks.find(t => t.kind === "duration") 59396 } 59397 get isEmail() { 59398 return !!this._def.checks.find(t => t.kind === "email") 59399 } 59400 get isURL() { 59401 return !!this._def.checks.find(t => t.kind === "url") 59402 } 59403 get isEmoji() { 59404 return !!this._def.checks.find(t => t.kind === "emoji") 59405 } 59406 get isUUID() { 59407 return !!this._def.checks.find(t => t.kind === "uuid") 59408 } 59409 get isNANOID() { 59410 return !!this._def.checks.find(t => t.kind === "nanoid") 59411 } 59412 get isCUID() { 59413 return !!this._def.checks.find(t => t.kind === "cuid") 59414 } 59415 get isCUID2() { 59416 return !!this._def.checks.find(t => t.kind === "cuid2") 59417 } 59418 get isULID() { 59419 return !!this._def.checks.find(t => t.kind === "ulid") 59420 } 59421 get isIP() { 59422 return !!this._def.checks.find(t => t.kind === "ip") 59423 } 59424 get isBase64() { 59425 return !!this._def.checks.find(t => t.kind === "base64") 59426 } 59427 get minLength() { 59428 let t = null; 59429 for (const n of this._def.checks) 59430 n.kind === "min" && (t === null || n.value > t) && (t = n.value); 59431 return t 59432 } 59433 get maxLength() { 59434 let t = null; 59435 for (const n of this._def.checks) 59436 n.kind === "max" && (t === null || n.value < t) && (t = n.value); 59437 return t 59438 } 59439} 59440ai.create = e => { 59441 var t; 59442 return new ai({ 59443 checks: [], 59444 typeName: Pe.ZodString, 59445 coerce: (t = e == null ? void 0 : e.coerce) !== null && t !== void 0 ? t : !1, 59446 ...ke(e) 59447 }) 59448} 59449; 59450function CDe(e, t) { 59451 const n = (e.toString().split(".")[1] || "").length 59452 , r = (t.toString().split(".")[1] || "").length 59453 , i = n > r ? n : r 59454 , o = parseInt(e.toFixed(i).replace(".", "")) 59455 , a = parseInt(t.toFixed(i).replace(".", "")); 59456 return o % a / Math.pow(10, i) 59457} 59458class Na extends Le { 59459 constructor() { 59460 super(...arguments), 59461 this.min = this.gte, 59462 this.max = this.lte, 59463 this.step = this.multipleOf 59464 } 59465 _parse(t) { 59466 if (this._def.coerce && (t.data = Number(t.data)), 59467 this._getType(t) !== ue.number) { 59468 const o = this._getOrReturnCtx(t); 59469 return se(o, { 59470 code: ee.invalid_type, 59471 expected: ue.number, 59472 received: o.parsedType 59473 }), 59474 Te 59475 } 59476 let r; 59477 const i = new jn; 59478 for (const o of this._def.checks) 59479 o.kind === "int" ? We.isInteger(t.data) || (r = this._getOrReturnCtx(t, r), 59480 se(r, { 59481 code: ee.invalid_type, 59482 expected: "integer", 59483 received: "float", 59484 message: o.message 59485 }), 59486 i.dirty()) : o.kind === "min" ? (o.inclusive ? t.data < o.value : t.data <= o.value) && (r = this._getOrReturnCtx(t, r), 59487 se(r, { 59488 code: ee.too_small, 59489 minimum: o.value, 59490 type: "number", 59491 inclusive: o.inclusive, 59492 exact: !1, 59493 message: o.message 59494 }), 59495 i.dirty()) : o.kind === "max" ? (o.inclusive ? t.data > o.value : t.data >= o.value) && (r = this._getOrReturnCtx(t, r), 59496 se(r, { 59497 code: ee.too_big, 59498 maximum: o.value, 59499 type: "number", 59500 inclusive: o.inclusive, 59501 exact: !1, 59502 message: o.message 59503 }), 59504 i.dirty()) : o.kind === "multipleOf" ? CDe(t.data, o.value) !== 0 && (r = this._getOrReturnCtx(t, r), 59505 se(r, { 59506 code: ee.not_multiple_of, 59507 multipleOf: o.value, 59508 message: o.message 59509 }), 59510 i.dirty()) : o.kind === "finite" ? Number.isFinite(t.data) || (r = this._getOrReturnCtx(t, r), 59511 se(r, { 59512 code: ee.not_finite, 59513 message: o.message 59514 }), 59515 i.dirty()) : We.assertNever(o); 59516 return { 59517 status: i.value, 59518 value: t.data 59519 } 59520 } 59521 gte(t, n) { 59522 return this.setLimit("min", t, !0, be.toString(n)) 59523 } 59524 gt(t, n) { 59525 return this.setLimit("min", t, !1, be.toString(n)) 59526 } 59527 lte(t, n) { 59528 return this.setLimit("max", t, !0, be.toString(n)) 59529 } 59530 lt(t, n) { 59531 return this.setLimit("max", t, !1, be.toString(n)) 59532 } 59533 setLimit(t, n, r, i) { 59534 return new Na({ 59535 ...this._def, 59536 checks: [...this._def.checks, { 59537 kind: t, 59538 value: n, 59539 inclusive: r, 59540 message: be.toString(i) 59541 }] 59542 }) 59543 } 59544 _addCheck(t) { 59545 return new Na({ 59546 ...this._def, 59547 checks: [...this._def.checks, t] 59548 }) 59549 } 59550 int(t) { 59551 return this._addCheck({ 59552 kind: "int", 59553 message: be.toString(t) 59554 }) 59555 } 59556 positive(t) { 59557 return this._addCheck({ 59558 kind: "min", 59559 value: 0, 59560 inclusive: !1, 59561 message: be.toString(t) 59562 }) 59563 } 59564 negative(t) { 59565 return this._addCheck({ 59566 kind: "max", 59567 value: 0, 59568 inclusive: !1, 59569 message: be.toString(t) 59570 }) 59571 } 59572 nonpositive(t) { 59573 return this._addCheck({ 59574 kind: "max", 59575 value: 0, 59576 inclusive: !0, 59577 message: be.toString(t) 59578 }) 59579 } 59580 nonnegative(t) { 59581 return this._addCheck({ 59582 kind: "min", 59583 value: 0, 59584 inclusive: !0, 59585 message: be.toString(t) 59586 }) 59587 } 59588 multipleOf(t, n) { 59589 return this._addCheck({ 59590 kind: "multipleOf", 59591 value: t, 59592 message: be.toString(n) 59593 }) 59594 } 59595 finite(t) { 59596 return this._addCheck({ 59597 kind: "finite", 59598 message: be.toString(t) 59599 }) 59600 } 59601 safe(t) { 59602 return this._addCheck({ 59603 kind: "min", 59604 inclusive: !0, 59605 value: Number.MIN_SAFE_INTEGER, 59606 message: be.toString(t) 59607 })._addCheck({ 59608 kind: "max", 59609 inclusive: !0, 59610 value: Number.MAX_SAFE_INTEGER, 59611 message: be.toString(t) 59612 }) 59613 } 59614 get minValue() { 59615 let t = null; 59616 for (const n of this._def.checks) 59617 n.kind === "min" && (t === null || n.value > t) && (t = n.value); 59618 return t 59619 } 59620 get maxValue() { 59621 let t = null; 59622 for (const n of this._def.checks) 59623 n.kind === "max" && (t === null || n.value < t) && (t = n.value); 59624 return t 59625 } 59626 get isInt() { 59627 return !!this._def.checks.find(t => t.kind === "int" || t.kind === "multipleOf" && We.isInteger(t.value)) 59628 } 59629 get isFinite() { 59630 let t = null 59631 , n = null; 59632 for (const r of this._def.checks) { 59633 if (r.kind === "finite" || r.kind === "int" || r.kind === "multipleOf") 59634 return !0; 59635 r.kind === "min" ? (n === null || r.value > n) && (n = r.value) : r.kind === "max" && (t === null || r.value < t) && (t = r.value) 59636 } 59637 return Number.isFinite(n) && Number.isFinite(t) 59638 } 59639} 59640Na.create = e => new Na({ 59641 checks: [], 59642 typeName: Pe.ZodNumber, 59643 coerce: (e == null ? void 0 : e.coerce) || !1, 59644 ...ke(e) 59645}); 59646class Ma extends Le { 59647 constructor() { 59648 super(...arguments), 59649 this.min = this.gte, 59650 this.max = this.lte 59651 } 59652 _parse(t) { 59653 if (this._def.coerce && (t.data = BigInt(t.data)), 59654 this._getType(t) !== ue.bigint) { 59655 const o = this._getOrReturnCtx(t); 59656 return se(o, { 59657 code: ee.invalid_type, 59658 expected: ue.bigint, 59659 received: o.parsedType 59660 }), 59661 Te 59662 } 59663 let r; 59664 const i = new jn; 59665 for (const o of this._def.checks) 59666 o.kind === "min" ? (o.inclusive ? t.data < o.value : t.data <= o.value) && (r = this._getOrReturnCtx(t, r), 59667 se(r, { 59668 code: ee.too_small, 59669 type: "bigint", 59670 minimum: o.value, 59671 inclusive: o.inclusive, 59672 message: o.message 59673 }), 59674 i.dirty()) : o.kind === "max" ? (o.inclusive ? t.data > o.value : t.data >= o.value) && (r = this._getOrReturnCtx(t, r), 59675 se(r, { 59676 code: ee.too_big, 59677 type: "bigint", 59678 maximum: o.value, 59679 inclusive: o.inclusive, 59680 message: o.message 59681 }), 59682 i.dirty()) : o.kind === "multipleOf" ? t.data % o.value !== BigInt(0) && (r = this._getOrReturnCtx(t, r), 59683 se(r, { 59684 code: ee.not_multiple_of, 59685 multipleOf: o.value, 59686 message: o.message 59687 }), 59688 i.dirty()) : We.assertNever(o); 59689 return { 59690 status: i.value, 59691 value: t.data 59692 } 59693 } 59694 gte(t, n) { 59695 return this.setLimit("min", t, !0, be.toString(n)) 59696 } 59697 gt(t, n) { 59698 return this.setLimit("min", t, !1, be.toString(n)) 59699 } 59700 lte(t, n) { 59701 return this.setLimit("max", t, !0, be.toString(n)) 59702 } 59703 lt(t, n) { 59704 return this.setLimit("max", t, !1, be.toString(n)) 59705 } 59706 setLimit(t, n, r, i) { 59707 return new Ma({ 59708 ...this._def, 59709 checks: [...this._def.checks, { 59710 kind: t, 59711 value: n, 59712 inclusive: r, 59713 message: be.toString(i) 59714 }] 59715 }) 59716 } 59717 _addCheck(t) { 59718 return new Ma({ 59719 ...this._def, 59720 checks: [...this._def.checks, t] 59721 }) 59722 } 59723 positive(t) { 59724 return this._addCheck({ 59725 kind: "min", 59726 value: BigInt(0), 59727 inclusive: !1, 59728 message: be.toString(t) 59729 }) 59730 } 59731 negative(t) { 59732 return this._addCheck({ 59733 kind: "max", 59734 value: BigInt(0), 59735 inclusive: !1, 59736 message: be.toString(t) 59737 }) 59738 } 59739 nonpositive(t) { 59740 return this._addCheck({ 59741 kind: "max", 59742 value: BigInt(0), 59743 inclusive: !0, 59744 message: be.toString(t) 59745 }) 59746 } 59747 nonnegative(t) { 59748 return this._addCheck({ 59749 kind: "min", 59750 value: BigInt(0), 59751 inclusive: !0, 59752 message: be.toString(t) 59753 }) 59754 } 59755 multipleOf(t, n) { 59756 return this._addCheck({ 59757 kind: "multipleOf", 59758 value: t, 59759 message: be.toString(n) 59760 }) 59761 } 59762 get minValue() { 59763 let t = null; 59764 for (const n of this._def.checks) 59765 n.kind === "min" && (t === null || n.value > t) && (t = n.value); 59766 return t 59767 } 59768 get maxValue() { 59769 let t = null; 59770 for (const n of this._def.checks) 59771 n.kind === "max" && (t === null || n.value < t) && (t = n.value); 59772 return t 59773 } 59774} 59775Ma.create = e => { 59776 var t; 59777 return new Ma({ 59778 checks: [], 59779 typeName: Pe.ZodBigInt, 59780 coerce: (t = e == null ? void 0 : e.coerce) !== null && t !== void 0 ? t : !1, 59781 ...ke(e) 59782 }) 59783} 59784; 59785class ih extends Le { 59786 _parse(t) { 59787 if (this._def.coerce && (t.data = !!t.data), 59788 this._getType(t) !== ue.boolean) { 59789 const r = this._getOrReturnCtx(t); 59790 return se(r, { 59791 code: ee.invalid_type, 59792 expected: ue.boolean, 59793 received: r.parsedType 59794 }), 59795 Te 59796 } 59797 return Bn(t.data) 59798 } 59799} 59800ih.create = e => new ih({ 59801 typeName: Pe.ZodBoolean, 59802 coerce: (e == null ? void 0 : e.coerce) || !1, 59803 ...ke(e) 59804}); 59805class Gs extends Le { 59806 _parse(t) { 59807 if (this._def.coerce && (t.data = new Date(t.data)), 59808 this._getType(t) !== ue.date) { 59809 const o = this._getOrReturnCtx(t); 59810 return se(o, { 59811 code: ee.invalid_type, 59812 expected: ue.date, 59813 received: o.parsedType 59814 }), 59815 Te 59816 } 59817 if (isNaN(t.data.getTime())) { 59818 const o = this._getOrReturnCtx(t); 59819 return se(o, { 59820 code: ee.invalid_date 59821 }), 59822 Te 59823 } 59824 const r = new jn; 59825 let i; 59826 for (const o of this._def.checks) 59827 o.kind === "min" ? t.data.getTime() < o.value && (i = this._getOrReturnCtx(t, i), 59828 se(i, { 59829 code: ee.too_small, 59830 message: o.message, 59831 inclusive: !0, 59832 exact: !1, 59833 minimum: o.value, 59834 type: "date" 59835 }), 59836 r.dirty()) : o.kind === "max" ? t.data.getTime() > o.value && (i = this._getOrReturnCtx(t, i), 59837 se(i, { 59838 code: ee.too_big, 59839 message: o.message, 59840 inclusive: !0, 59841 exact: !1, 59842 maximum: o.value, 59843 type: "date" 59844 }), 59845 r.dirty()) : We.assertNever(o); 59846 return { 59847 status: r.value, 59848 value: new Date(t.data.getTime()) 59849 } 59850 } 59851 _addCheck(t) { 59852 return new Gs({ 59853 ...this._def, 59854 checks: [...this._def.checks, t] 59855 }) 59856 } 59857 min(t, n) { 59858 return this._addCheck({ 59859 kind: "min", 59860 value: t.getTime(), 59861 message: be.toString(n) 59862 }) 59863 } 59864 max(t, n) { 59865 return this._addCheck({ 59866 kind: "max", 59867 value: t.getTime(), 59868 message: be.toString(n) 59869 }) 59870 } 59871 get minDate() { 59872 let t = null; 59873 for (const n of this._def.checks) 59874 n.kind === "min" && (t === null || n.value > t) && (t = n.value); 59875 return t != null ? new Date(t) : null 59876 } 59877 get maxDate() { 59878 let t = null; 59879 for (const n of this._def.checks) 59880 n.kind === "max" && (t === null || n.value < t) && (t = n.value); 59881 return t != null ? new Date(t) : null 59882 } 59883} 59884Gs.create = e => new Gs({ 59885 checks: [], 59886 coerce: (e == null ? void 0 : e.coerce) || !1, 59887 typeName: Pe.ZodDate, 59888 ...ke(e) 59889}); 59890class _y extends Le { 59891 _parse(t) { 59892 if (this._getType(t) !== ue.symbol) { 59893 const r = this._getOrReturnCtx(t); 59894 return se(r, {
vendor: 1,650 bytes, lines 59895-59973
59895 code: ee.invalid_type, 59896 expected: ue.symbol, 59897 received: r.parsedType 59898 }), 59899 Te 59900 } 59901 return Bn(t.data) 59902 } 59903} 59904_y.create = e => new _y({ 59905 typeName: Pe.ZodSymbol, 59906 ...ke(e) 59907}); 59908class oh extends Le { 59909 _parse(t) { 59910 if (this._getType(t) !== ue.undefined) { 59911 const r = this._getOrReturnCtx(t); 59912 return se(r, { 59913 code: ee.invalid_type, 59914 expected: ue.undefined, 59915 received: r.parsedType 59916 }), 59917 Te 59918 } 59919 return Bn(t.data) 59920 } 59921} 59922oh.create = e => new oh({ 59923 typeName: Pe.ZodUndefined, 59924 ...ke(e) 59925}); 59926class ah extends Le { 59927 _parse(t) { 59928 if (this._getType(t) !== ue.null) { 59929 const r = this._getOrReturnCtx(t); 59930 return se(r, { 59931 code: ee.invalid_type, 59932 expected: ue.null, 59933 received: r.parsedType 59934 }), 59935 Te 59936 } 59937 return Bn(t.data) 59938 } 59939} 59940ah.create = e => new ah({ 59941 typeName: Pe.ZodNull, 59942 ...ke(e) 59943}); 59944class Jc extends Le { 59945 constructor() { 59946 super(...arguments), 59947 this._any = !0 59948 } 59949 _parse(t) { 59950 return Bn(t.data) 59951 } 59952} 59953Jc.create = e => new Jc({ 59954 typeName: Pe.ZodAny, 59955 ...ke(e) 59956}); 59957class Ns extends Le { 59958 constructor() { 59959 super(...arguments), 59960 this._unknown = !0 59961 } 59962 _parse(t) { 59963 return Bn(t.data) 59964 } 59965} 59966Ns.create = e => new Ns({ 59967 typeName: Pe.ZodUnknown, 59968 ...ke(e) 59969}); 59970class jo extends Le { 59971 _parse(t) { 59972 const n = this._getOrReturnCtx(t); 59973 return se(n, {
vendor: 46,343 bytes, lines 59974-61677
59974 code: ee.invalid_type, 59975 expected: ue.never, 59976 received: n.parsedType 59977 }), 59978 Te 59979 } 59980} 59981jo.create = e => new jo({ 59982 typeName: Pe.ZodNever, 59983 ...ke(e) 59984}); 59985class Ty extends Le { 59986 _parse(t) { 59987 if (this._getType(t) !== ue.undefined) { 59988 const r = this._getOrReturnCtx(t); 59989 return se(r, { 59990 code: ee.invalid_type, 59991 expected: ue.void, 59992 received: r.parsedType 59993 }), 59994 Te 59995 } 59996 return Bn(t.data) 59997 } 59998} 59999Ty.create = e => new Ty({ 60000 typeName: Pe.ZodVoid, 60001 ...ke(e) 60002}); 60003class fi extends Le { 60004 _parse(t) { 60005 const {ctx: n, status: r} = this._processInputParams(t) 60006 , i = this._def; 60007 if (n.parsedType !== ue.array) 60008 return se(n, { 60009 code: ee.invalid_type, 60010 expected: ue.array, 60011 received: n.parsedType 60012 }), 60013 Te; 60014 if (i.exactLength !== null) { 60015 const a = n.data.length > i.exactLength.value 60016 , s = n.data.length < i.exactLength.value; 60017 (a || s) && (se(n, { 60018 code: a ? ee.too_big : ee.too_small, 60019 minimum: s ? i.exactLength.value : void 0, 60020 maximum: a ? i.exactLength.value : void 0, 60021 type: "array", 60022 inclusive: !0, 60023 exact: !0, 60024 message: i.exactLength.message 60025 }), 60026 r.dirty()) 60027 } 60028 if (i.minLength !== null && n.data.length < i.minLength.value && (se(n, { 60029 code: ee.too_small, 60030 minimum: i.minLength.value, 60031 type: "array", 60032 inclusive: !0, 60033 exact: !1, 60034 message: i.minLength.message 60035 }), 60036 r.dirty()), 60037 i.maxLength !== null && n.data.length > i.maxLength.value && (se(n, { 60038 code: ee.too_big, 60039 maximum: i.maxLength.value, 60040 type: "array", 60041 inclusive: !0, 60042 exact: !1, 60043 message: i.maxLength.message 60044 }), 60045 r.dirty()), 60046 n.common.async) 60047 return Promise.all([...n.data].map( (a, s) => i.type._parseAsync(new qi(n,a,n.path,s)))).then(a => jn.mergeArray(r, a)); 60048 const o = [...n.data].map( (a, s) => i.type._parseSync(new qi(n,a,n.path,s))); 60049 return jn.mergeArray(r, o) 60050 } 60051 get element() { 60052 return this._def.type 60053 } 60054 min(t, n) { 60055 return new fi({ 60056 ...this._def, 60057 minLength: { 60058 value: t, 60059 message: be.toString(n) 60060 } 60061 }) 60062 } 60063 max(t, n) { 60064 return new fi({ 60065 ...this._def, 60066 maxLength: { 60067 value: t, 60068 message: be.toString(n) 60069 } 60070 }) 60071 } 60072 length(t, n) { 60073 return new fi({ 60074 ...this._def, 60075 exactLength: { 60076 value: t, 60077 message: be.toString(n) 60078 } 60079 }) 60080 } 60081 nonempty(t) { 60082 return this.min(1, t) 60083 } 60084} 60085fi.create = (e, t) => new fi({ 60086 type: e, 60087 minLength: null, 60088 maxLength: null, 60089 exactLength: null, 60090 typeName: Pe.ZodArray, 60091 ...ke(t) 60092}); 60093function vl(e) { 60094 if (e instanceof Pt) { 60095 const t = {}; 60096 for (const n in e.shape) { 60097 const r = e.shape[n]; 60098 t[n] = Ui.create(vl(r)) 60099 } 60100 return new Pt({ 60101 ...e._def, 60102 shape: () => t 60103 }) 60104 } else 60105 return e instanceof fi ? new fi({ 60106 ...e._def, 60107 type: vl(e.element) 60108 }) : e instanceof Ui ? Ui.create(vl(e.unwrap())) : e instanceof Ra ? Ra.create(vl(e.unwrap())) : e instanceof Ki ? Ki.create(e.items.map(t => vl(t))) : e 60109} 60110class Pt extends Le { 60111 constructor() { 60112 super(...arguments), 60113 this._cached = null, 60114 this.nonstrict = this.passthrough, 60115 this.augment = this.extend 60116 } 60117 _getCached() { 60118 if (this._cached !== null) 60119 return this._cached; 60120 const t = this._def.shape() 60121 , n = We.objectKeys(t); 60122 return this._cached = { 60123 shape: t, 60124 keys: n 60125 } 60126 } 60127 _parse(t) { 60128 if (this._getType(t) !== ue.object) { 60129 const c = this._getOrReturnCtx(t); 60130 return se(c, { 60131 code: ee.invalid_type, 60132 expected: ue.object, 60133 received: c.parsedType 60134 }), 60135 Te 60136 } 60137 const {status: r, ctx: i} = this._processInputParams(t) 60138 , {shape: o, keys: a} = this._getCached() 60139 , s = []; 60140 if (!(this._def.catchall instanceof jo && this._def.unknownKeys === "strip")) 60141 for (const c in i.data) 60142 a.includes(c) || s.push(c); 60143 const l = []; 60144 for (const c of a) { 60145 const u = o[c] 60146 , d = i.data[c]; 60147 l.push({ 60148 key: { 60149 status: "valid", 60150 value: c 60151 }, 60152 value: u._parse(new qi(i,d,i.path,c)), 60153 alwaysSet: c in i.data 60154 }) 60155 } 60156 if (this._def.catchall instanceof jo) { 60157 const c = this._def.unknownKeys; 60158 if (c === "passthrough") 60159 for (const u of s) 60160 l.push({ 60161 key: { 60162 status: "valid", 60163 value: u 60164 }, 60165 value: { 60166 status: "valid", 60167 value: i.data[u] 60168 } 60169 }); 60170 else if (c === "strict") 60171 s.length > 0 && (se(i, { 60172 code: ee.unrecognized_keys, 60173 keys: s 60174 }), 60175 r.dirty()); 60176 else if (c !== "strip") 60177 throw new Error("Internal ZodObject error: invalid unknownKeys value.") 60178 } else { 60179 const c = this._def.catchall; 60180 for (const u of s) { 60181 const d = i.data[u]; 60182 l.push({ 60183 key: { 60184 status: "valid", 60185 value: u 60186 }, 60187 value: c._parse(new qi(i,d,i.path,u)), 60188 alwaysSet: u in i.data 60189 }) 60190 } 60191 } 60192 return i.common.async ? Promise.resolve().then(async () => { 60193 const c = []; 60194 for (const u of l) { 60195 const d = await u.key 60196 , f = await u.value; 60197 c.push({ 60198 key: d, 60199 value: f, 60200 alwaysSet: u.alwaysSet 60201 }) 60202 } 60203 return c 60204 } 60205 ).then(c => jn.mergeObjectSync(r, c)) : jn.mergeObjectSync(r, l) 60206 } 60207 get shape() { 60208 return this._def.shape() 60209 } 60210 strict(t) { 60211 return be.errToObj, 60212 new Pt({ 60213 ...this._def, 60214 unknownKeys: "strict", 60215 ...t !== void 0 ? { 60216 errorMap: (n, r) => { 60217 var i, o, a, s; 60218 const l = (a = (o = (i = this._def).errorMap) === null || o === void 0 ? void 0 : o.call(i, n, r).message) !== null && a !== void 0 ? a : r.defaultError; 60219 return n.code === "unrecognized_keys" ? { 60220 message: (s = be.errToObj(t).message) !== null && s !== void 0 ? s : l 60221 } : { 60222 message: l 60223 } 60224 } 60225 } : {} 60226 }) 60227 } 60228 strip() { 60229 return new Pt({ 60230 ...this._def, 60231 unknownKeys: "strip" 60232 }) 60233 } 60234 passthrough() { 60235 return new Pt({ 60236 ...this._def, 60237 unknownKeys: "passthrough" 60238 }) 60239 } 60240 extend(t) { 60241 return new Pt({ 60242 ...this._def, 60243 shape: () => ({ 60244 ...this._def.shape(), 60245 ...t 60246 }) 60247 }) 60248 } 60249 merge(t) { 60250 return new Pt({ 60251 unknownKeys: t._def.unknownKeys, 60252 catchall: t._def.catchall, 60253 shape: () => ({ 60254 ...this._def.shape(), 60255 ...t._def.shape() 60256 }), 60257 typeName: Pe.ZodObject 60258 }) 60259 } 60260 setKey(t, n) { 60261 return this.augment({ 60262 [t]: n 60263 }) 60264 } 60265 catchall(t) { 60266 return new Pt({ 60267 ...this._def, 60268 catchall: t 60269 }) 60270 } 60271 pick(t) { 60272 const n = {}; 60273 return We.objectKeys(t).forEach(r => { 60274 t[r] && this.shape[r] && (n[r] = this.shape[r]) 60275 } 60276 ), 60277 new Pt({ 60278 ...this._def, 60279 shape: () => n 60280 }) 60281 } 60282 omit(t) { 60283 const n = {}; 60284 return We.objectKeys(this.shape).forEach(r => { 60285 t[r] || (n[r] = this.shape[r]) 60286 } 60287 ), 60288 new Pt({ 60289 ...this._def, 60290 shape: () => n 60291 }) 60292 } 60293 deepPartial() { 60294 return vl(this) 60295 } 60296 partial(t) { 60297 const n = {}; 60298 return We.objectKeys(this.shape).forEach(r => { 60299 const i = this.shape[r]; 60300 t && !t[r] ? n[r] = i : n[r] = i.optional() 60301 } 60302 ), 60303 new Pt({ 60304 ...this._def, 60305 shape: () => n 60306 }) 60307 } 60308 required(t) { 60309 const n = {}; 60310 return We.objectKeys(this.shape).forEach(r => { 60311 if (t && !t[r]) 60312 n[r] = this.shape[r]; 60313 else { 60314 let o = this.shape[r]; 60315 for (; o instanceof Ui; ) 60316 o = o._def.innerType; 60317 n[r] = o 60318 } 60319 } 60320 ), 60321 new Pt({ 60322 ...this._def, 60323 shape: () => n 60324 }) 60325 } 60326 keyof() { 60327 return a7(We.objectKeys(this.shape)) 60328 } 60329} 60330Pt.create = (e, t) => new Pt({ 60331 shape: () => e, 60332 unknownKeys: "strip", 60333 catchall: jo.create(), 60334 typeName: Pe.ZodObject, 60335 ...ke(t) 60336}); 60337Pt.strictCreate = (e, t) => new Pt({ 60338 shape: () => e, 60339 unknownKeys: "strict", 60340 catchall: jo.create(), 60341 typeName: Pe.ZodObject, 60342 ...ke(t) 60343}); 60344Pt.lazycreate = (e, t) => new Pt({ 60345 shape: e, 60346 unknownKeys: "strip", 60347 catchall: jo.create(), 60348 typeName: Pe.ZodObject, 60349 ...ke(t) 60350}); 60351class sh extends Le { 60352 _parse(t) { 60353 const {ctx: n} = this._processInputParams(t) 60354 , r = this._def.options; 60355 function i(o) { 60356 for (const s of o) 60357 if (s.result.status === "valid") 60358 return s.result; 60359 for (const s of o) 60360 if (s.result.status === "dirty") 60361 return n.common.issues.push(...s.ctx.common.issues), 60362 s.result; 60363 const a = o.map(s => new gr(s.ctx.common.issues)); 60364 return se(n, { 60365 code: ee.invalid_union, 60366 unionErrors: a 60367 }), 60368 Te 60369 } 60370 if (n.common.async) 60371 return Promise.all(r.map(async o => { 60372 const a = { 60373 ...n, 60374 common: { 60375 ...n.common, 60376 issues: [] 60377 }, 60378 parent: null 60379 }; 60380 return { 60381 result: await o._parseAsync({ 60382 data: n.data, 60383 path: n.path, 60384 parent: a 60385 }), 60386 ctx: a 60387 } 60388 } 60389 )).then(i); 60390 { 60391 let o; 60392 const a = []; 60393 for (const l of r) { 60394 const c = { 60395 ...n, 60396 common: { 60397 ...n.common, 60398 issues: [] 60399 }, 60400 parent: null 60401 } 60402 , u = l._parseSync({ 60403 data: n.data, 60404 path: n.path, 60405 parent: c 60406 }); 60407 if (u.status === "valid") 60408 return u; 60409 u.status === "dirty" && !o && (o = { 60410 result: u, 60411 ctx: c 60412 }), 60413 c.common.issues.length && a.push(c.common.issues) 60414 } 60415 if (o) 60416 return n.common.issues.push(...o.ctx.common.issues), 60417 o.result; 60418 const s = a.map(l => new gr(l)); 60419 return se(n, { 60420 code: ee.invalid_union, 60421 unionErrors: s 60422 }), 60423 Te 60424 } 60425 } 60426 get options() { 60427 return this._def.options 60428 } 60429} 60430sh.create = (e, t) => new sh({ 60431 options: e, 60432 typeName: Pe.ZodUnion, 60433 ...ke(t) 60434}); 60435const ro = e => e instanceof uh ? ro(e.schema) : e instanceof vi ? ro(e.innerType()) : e instanceof dh ? [e.value] : e instanceof ka ? e.options : e instanceof fh ? We.objectValues(e.enum) : e instanceof hh ? ro(e._def.innerType) : e instanceof oh ? [void 0] : e instanceof ah ? [null] : e instanceof Ui ? [void 0, ...ro(e.unwrap())] : e instanceof Ra ? [null, ...ro(e.unwrap())] : e instanceof SC || e instanceof mh ? ro(e.unwrap()) : e instanceof ph ? ro(e._def.innerType) : []; 60436class x0 extends Le { 60437 _parse(t) { 60438 const {ctx: n} = this._processInputParams(t); 60439 if (n.parsedType !== ue.object) 60440 return se(n, { 60441 code: ee.invalid_type, 60442 expected: ue.object, 60443 received: n.parsedType 60444 }), 60445 Te; 60446 const r = this.discriminator 60447 , i = n.data[r] 60448 , o = this.optionsMap.get(i); 60449 return o ? n.common.async ? o._parseAsync({ 60450 data: n.data, 60451 path: n.path, 60452 parent: n 60453 }) : o._parseSync({ 60454 data: n.data, 60455 path: n.path, 60456 parent: n 60457 }) : (se(n, { 60458 code: ee.invalid_union_discriminator, 60459 options: Array.from(this.optionsMap.keys()), 60460 path: [r] 60461 }), 60462 Te) 60463 } 60464 get discriminator() { 60465 return this._def.discriminator 60466 } 60467 get options() { 60468 return this._def.options 60469 } 60470 get optionsMap() { 60471 return this._def.optionsMap 60472 } 60473 static create(t, n, r) { 60474 const i = new Map; 60475 for (const o of n) { 60476 const a = ro(o.shape[t]); 60477 if (!a.length) 60478 throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`); 60479 for (const s of a) { 60480 if (i.has(s)) 60481 throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`); 60482 i.set(s, o) 60483 } 60484 } 60485 return new x0({ 60486 typeName: Pe.ZodDiscriminatedUnion, 60487 discriminator: t, 60488 options: n, 60489 optionsMap: i, 60490 ...ke(r) 60491 }) 60492 } 60493} 60494function MS(e, t) { 60495 const n = Zo(e) 60496 , r = Zo(t); 60497 if (e === t) 60498 return { 60499 valid: !0, 60500 data: e 60501 }; 60502 if (n === ue.object && r === ue.object) { 60503 const i = We.objectKeys(t) 60504 , o = We.objectKeys(e).filter(s => i.indexOf(s) !== -1) 60505 , a = { 60506 ...e, 60507 ...t 60508 }; 60509 for (const s of o) { 60510 const l = MS(e[s], t[s]); 60511 if (!l.valid) 60512 return { 60513 valid: !1 60514 }; 60515 a[s] = l.data 60516 } 60517 return { 60518 valid: !0, 60519 data: a 60520 } 60521 } else if (n === ue.array && r === ue.array) { 60522 if (e.length !== t.length) 60523 return { 60524 valid: !1 60525 }; 60526 const i = []; 60527 for (let o = 0; o < e.length; o++) { 60528 const a = e[o] 60529 , s = t[o] 60530 , l = MS(a, s); 60531 if (!l.valid) 60532 return { 60533 valid: !1 60534 }; 60535 i.push(l.data) 60536 } 60537 return { 60538 valid: !0, 60539 data: i 60540 } 60541 } else 60542 return n === ue.date && r === ue.date && +e == +t ? { 60543 valid: !0, 60544 data: e 60545 } : { 60546 valid: !1 60547 } 60548} 60549class lh extends Le { 60550 _parse(t) { 60551 const {status: n, ctx: r} = this._processInputParams(t) 60552 , i = (o, a) => { 60553 if (jS(o) || jS(a)) 60554 return Te; 60555 const s = MS(o.value, a.value); 60556 return s.valid ? ((NS(o) || NS(a)) && n.dirty(), 60557 { 60558 status: n.value, 60559 value: s.data 60560 }) : (se(r, { 60561 code: ee.invalid_intersection_types 60562 }), 60563 Te) 60564 } 60565 ; 60566 return r.common.async ? Promise.all([this._def.left._parseAsync({ 60567 data: r.data, 60568 path: r.path, 60569 parent: r 60570 }), this._def.right._parseAsync({ 60571 data: r.data, 60572 path: r.path, 60573 parent: r 60574 })]).then( ([o,a]) => i(o, a)) : i(this._def.left._parseSync({ 60575 data: r.data, 60576 path: r.path, 60577 parent: r 60578 }), this._def.right._parseSync({ 60579 data: r.data, 60580 path: r.path, 60581 parent: r 60582 })) 60583 } 60584} 60585lh.create = (e, t, n) => new lh({ 60586 left: e, 60587 right: t, 60588 typeName: Pe.ZodIntersection, 60589 ...ke(n) 60590}); 60591class Ki extends Le { 60592 _parse(t) { 60593 const {status: n, ctx: r} = this._processInputParams(t); 60594 if (r.parsedType !== ue.array) 60595 return se(r, { 60596 code: ee.invalid_type, 60597 expected: ue.array, 60598 received: r.parsedType 60599 }), 60600 Te; 60601 if (r.data.length < this._def.items.length) 60602 return se(r, { 60603 code: ee.too_small, 60604 minimum: this._def.items.length, 60605 inclusive: !0, 60606 exact: !1, 60607 type: "array" 60608 }), 60609 Te; 60610 !this._def.rest && r.data.length > this._def.items.length && (se(r, { 60611 code: ee.too_big, 60612 maximum: this._def.items.length, 60613 inclusive: !0, 60614 exact: !1, 60615 type: "array" 60616 }), 60617 n.dirty()); 60618 const o = [...r.data].map( (a, s) => { 60619 const l = this._def.items[s] || this._def.rest; 60620 return l ? l._parse(new qi(r,a,r.path,s)) : null 60621 } 60622 ).filter(a => !!a); 60623 return r.common.async ? Promise.all(o).then(a => jn.mergeArray(n, a)) : jn.mergeArray(n, o) 60624 } 60625 get items() { 60626 return this._def.items 60627 } 60628 rest(t) { 60629 return new Ki({ 60630 ...this._def, 60631 rest: t 60632 }) 60633 } 60634} 60635Ki.create = (e, t) => { 60636 if (!Array.isArray(e)) 60637 throw new Error("You must pass an array of schemas to z.tuple([ ... ])"); 60638 return new Ki({ 60639 items: e, 60640 typeName: Pe.ZodTuple, 60641 rest: null, 60642 ...ke(t) 60643 }) 60644} 60645; 60646class ch extends Le { 60647 get keySchema() { 60648 return this._def.keyType 60649 } 60650 get valueSchema() { 60651 return this._def.valueType 60652 } 60653 _parse(t) { 60654 const {status: n, ctx: r} = this._processInputParams(t); 60655 if (r.parsedType !== ue.object) 60656 return se(r, { 60657 code: ee.invalid_type, 60658 expected: ue.object, 60659 received: r.parsedType 60660 }), 60661 Te; 60662 const i = [] 60663 , o = this._def.keyType 60664 , a = this._def.valueType; 60665 for (const s in r.data) 60666 i.push({ 60667 key: o._parse(new qi(r,s,r.path,s)), 60668 value: a._parse(new qi(r,r.data[s],r.path,s)), 60669 alwaysSet: s in r.data 60670 }); 60671 return r.common.async ? jn.mergeObjectAsync(n, i) : jn.mergeObjectSync(n, i) 60672 } 60673 get element() { 60674 return this._def.valueType 60675 } 60676 static create(t, n, r) { 60677 return n instanceof Le ? new ch({ 60678 keyType: t, 60679 valueType: n, 60680 typeName: Pe.ZodRecord, 60681 ...ke(r) 60682 }) : new ch({ 60683 keyType: ai.create(), 60684 valueType: t, 60685 typeName: Pe.ZodRecord, 60686 ...ke(n) 60687 }) 60688 } 60689} 60690class Cy extends Le { 60691 get keySchema() { 60692 return this._def.keyType 60693 } 60694 get valueSchema() { 60695 return this._def.valueType 60696 } 60697 _parse(t) { 60698 const {status: n, ctx: r} = this._processInputParams(t); 60699 if (r.parsedType !== ue.map) 60700 return se(r, { 60701 code: ee.invalid_type, 60702 expected: ue.map, 60703 received: r.parsedType 60704 }), 60705 Te; 60706 const i = this._def.keyType 60707 , o = this._def.valueType 60708 , a = [...r.data.entries()].map( ([s,l], c) => ({ 60709 key: i._parse(new qi(r,s,r.path,[c, "key"])), 60710 value: o._parse(new qi(r,l,r.path,[c, "value"])) 60711 })); 60712 if (r.common.async) { 60713 const s = new Map; 60714 return Promise.resolve().then(async () => { 60715 for (const l of a) { 60716 const c = await l.key 60717 , u = await l.value; 60718 if (c.status === "aborted" || u.status === "aborted") 60719 return Te; 60720 (c.status === "dirty" || u.status === "dirty") && n.dirty(), 60721 s.set(c.value, u.value) 60722 } 60723 return { 60724 status: n.value, 60725 value: s 60726 } 60727 } 60728 ) 60729 } else { 60730 const s = new Map; 60731 for (const l of a) { 60732 const c = l.key 60733 , u = l.value; 60734 if (c.status === "aborted" || u.status === "aborted") 60735 return Te; 60736 (c.status === "dirty" || u.status === "dirty") && n.dirty(), 60737 s.set(c.value, u.value) 60738 } 60739 return { 60740 status: n.value, 60741 value: s 60742 } 60743 } 60744 } 60745} 60746Cy.create = (e, t, n) => new Cy({ 60747 valueType: t, 60748 keyType: e, 60749 typeName: Pe.ZodMap, 60750 ...ke(n) 60751}); 60752class Ys extends Le { 60753 _parse(t) { 60754 const {status: n, ctx: r} = this._processInputParams(t); 60755 if (r.parsedType !== ue.set) 60756 return se(r, { 60757 code: ee.invalid_type, 60758 expected: ue.set, 60759 received: r.parsedType 60760 }), 60761 Te; 60762 const i = this._def; 60763 i.minSize !== null && r.data.size < i.minSize.value && (se(r, { 60764 code: ee.too_small, 60765 minimum: i.minSize.value, 60766 type: "set", 60767 inclusive: !0, 60768 exact: !1, 60769 message: i.minSize.message 60770 }), 60771 n.dirty()), 60772 i.maxSize !== null && r.data.size > i.maxSize.value && (se(r, { 60773 code: ee.too_big, 60774 maximum: i.maxSize.value, 60775 type: "set", 60776 inclusive: !0, 60777 exact: !1, 60778 message: i.maxSize.message 60779 }), 60780 n.dirty()); 60781 const o = this._def.valueType; 60782 function a(l) { 60783 const c = new Set; 60784 for (const u of l) { 60785 if (u.status === "aborted") 60786 return Te; 60787 u.status === "dirty" && n.dirty(), 60788 c.add(u.value) 60789 } 60790 return { 60791 status: n.value, 60792 value: c 60793 } 60794 } 60795 const s = [...r.data.values()].map( (l, c) => o._parse(new qi(r,l,r.path,c))); 60796 return r.common.async ? Promise.all(s).then(l => a(l)) : a(s) 60797 } 60798 min(t, n) { 60799 return new Ys({ 60800 ...this._def, 60801 minSize: { 60802 value: t, 60803 message: be.toString(n) 60804 } 60805 }) 60806 } 60807 max(t, n) { 60808 return new Ys({ 60809 ...this._def, 60810 maxSize: { 60811 value: t, 60812 message: be.toString(n) 60813 } 60814 }) 60815 } 60816 size(t, n) { 60817 return this.min(t, n).max(t, n) 60818 } 60819 nonempty(t) { 60820 return this.min(1, t) 60821 } 60822} 60823Ys.create = (e, t) => new Ys({ 60824 valueType: e, 60825 minSize: null, 60826 maxSize: null, 60827 typeName: Pe.ZodSet, 60828 ...ke(t) 60829}); 60830class rc extends Le { 60831 constructor() { 60832 super(...arguments), 60833 this.validate = this.implement 60834 } 60835 _parse(t) { 60836 const {ctx: n} = this._processInputParams(t); 60837 if (n.parsedType !== ue.function) 60838 return se(n, { 60839 code: ee.invalid_type, 60840 expected: ue.function, 60841 received: n.parsedType 60842 }), 60843 Te; 60844 function r(s, l) { 60845 return Sy({ 60846 data: s, 60847 path: n.path, 60848 errorMaps: [n.common.contextualErrorMap, n.schemaErrorMap, wy(), Zc].filter(c => !!c), 60849 issueData: { 60850 code: ee.invalid_arguments, 60851 argumentsError: l 60852 } 60853 }) 60854 } 60855 function i(s, l) { 60856 return Sy({ 60857 data: s, 60858 path: n.path, 60859 errorMaps: [n.common.contextualErrorMap, n.schemaErrorMap, wy(), Zc].filter(c => !!c), 60860 issueData: { 60861 code: ee.invalid_return_type, 60862 returnTypeError: l 60863 } 60864 }) 60865 } 60866 const o = { 60867 errorMap: n.common.contextualErrorMap 60868 } 60869 , a = n.data; 60870 if (this._def.returns instanceof eu) { 60871 const s = this; 60872 return Bn(async function(...l) { 60873 const c = new gr([]) 60874 , u = await s._def.args.parseAsync(l, o).catch(p => { 60875 throw c.addIssue(r(l, p)), 60876 c 60877 } 60878 ) 60879 , d = await Reflect.apply(a, this, u); 60880 return await s._def.returns._def.type.parseAsync(d, o).catch(p => { 60881 throw c.addIssue(i(d, p)), 60882 c 60883 } 60884 ) 60885 }) 60886 } else { 60887 const s = this; 60888 return Bn(function(...l) { 60889 const c = s._def.args.safeParse(l, o); 60890 if (!c.success) 60891 throw new gr([r(l, c.error)]); 60892 const u = Reflect.apply(a, this, c.data) 60893 , d = s._def.returns.safeParse(u, o); 60894 if (!d.success) 60895 throw new gr([i(u, d.error)]); 60896 return d.data 60897 }) 60898 } 60899 } 60900 parameters() { 60901 return this._def.args 60902 } 60903 returnType() { 60904 return this._def.returns 60905 } 60906 args(...t) { 60907 return new rc({ 60908 ...this._def, 60909 args: Ki.create(t).rest(Ns.create()) 60910 }) 60911 } 60912 returns(t) { 60913 return new rc({ 60914 ...this._def, 60915 returns: t 60916 }) 60917 } 60918 implement(t) { 60919 return this.parse(t) 60920 } 60921 strictImplement(t) { 60922 return this.parse(t) 60923 } 60924 static create(t, n, r) { 60925 return new rc({ 60926 args: t || Ki.create([]).rest(Ns.create()), 60927 returns: n || Ns.create(), 60928 typeName: Pe.ZodFunction, 60929 ...ke(r) 60930 }) 60931 } 60932} 60933class uh extends Le { 60934 get schema() { 60935 return this._def.getter() 60936 } 60937 _parse(t) { 60938 const {ctx: n} = this._processInputParams(t); 60939 return this._def.getter()._parse({ 60940 data: n.data, 60941 path: n.path, 60942 parent: n 60943 }) 60944 } 60945} 60946uh.create = (e, t) => new uh({ 60947 getter: e, 60948 typeName: Pe.ZodLazy, 60949 ...ke(t) 60950}); 60951class dh extends Le { 60952 _parse(t) { 60953 if (t.data !== this._def.value) { 60954 const n = this._getOrReturnCtx(t); 60955 return se(n, { 60956 received: n.data, 60957 code: ee.invalid_literal, 60958 expected: this._def.value 60959 }), 60960 Te 60961 } 60962 return { 60963 status: "valid", 60964 value: t.data 60965 } 60966 } 60967 get value() { 60968 return this._def.value 60969 } 60970} 60971dh.create = (e, t) => new dh({ 60972 value: e, 60973 typeName: Pe.ZodLiteral, 60974 ...ke(t) 60975}); 60976function a7(e, t) { 60977 return new ka({ 60978 values: e, 60979 typeName: Pe.ZodEnum, 60980 ...ke(t) 60981 }) 60982} 60983class ka extends Le { 60984 constructor() { 60985 super(...arguments), 60986 md.set(this, void 0) 60987 } 60988 _parse(t) { 60989 if (typeof t.data != "string") { 60990 const n = this._getOrReturnCtx(t) 60991 , r = this._def.values; 60992 return se(n, { 60993 expected: We.joinValues(r), 60994 received: n.parsedType, 60995 code: ee.invalid_type 60996 }), 60997 Te 60998 } 60999 if (Py(this, md) || n7(this, md, new Set(this._def.values)), 61000 !Py(this, md).has(t.data)) { 61001 const n = this._getOrReturnCtx(t) 61002 , r = this._def.values; 61003 return se(n, { 61004 received: n.data, 61005 code: ee.invalid_enum_value, 61006 options: r 61007 }), 61008 Te 61009 } 61010 return Bn(t.data) 61011 } 61012 get options() { 61013 return this._def.values 61014 } 61015 get enum() { 61016 const t = {}; 61017 for (const n of this._def.values) 61018 t[n] = n; 61019 return t 61020 } 61021 get Values() { 61022 const t = {}; 61023 for (const n of this._def.values) 61024 t[n] = n; 61025 return t 61026 } 61027 get Enum() { 61028 const t = {}; 61029 for (const n of this._def.values) 61030 t[n] = n; 61031 return t 61032 } 61033 extract(t, n=this._def) { 61034 return ka.create(t, { 61035 ...this._def, 61036 ...n 61037 }) 61038 } 61039 exclude(t, n=this._def) { 61040 return ka.create(this.options.filter(r => !t.includes(r)), { 61041 ...this._def, 61042 ...n 61043 }) 61044 } 61045} 61046md = new WeakMap; 61047ka.create = a7; 61048class fh extends Le { 61049 constructor() { 61050 super(...arguments), 61051 gd.set(this, void 0) 61052 } 61053 _parse(t) { 61054 const n = We.getValidEnumValues(this._def.values) 61055 , r = this._getOrReturnCtx(t); 61056 if (r.parsedType !== ue.string && r.parsedType !== ue.number) { 61057 const i = We.objectValues(n); 61058 return se(r, { 61059 expected: We.joinValues(i), 61060 received: r.parsedType, 61061 code: ee.invalid_type 61062 }), 61063 Te 61064 } 61065 if (Py(this, gd) || n7(this, gd, new Set(We.getValidEnumValues(this._def.values))), 61066 !Py(this, gd).has(t.data)) { 61067 const i = We.objectValues(n); 61068 return se(r, { 61069 received: r.data, 61070 code: ee.invalid_enum_value, 61071 options: i 61072 }), 61073 Te 61074 } 61075 return Bn(t.data) 61076 } 61077 get enum() { 61078 return this._def.values 61079 } 61080} 61081gd = new WeakMap; 61082fh.create = (e, t) => new fh({ 61083 values: e, 61084 typeName: Pe.ZodNativeEnum, 61085 ...ke(t) 61086}); 61087class eu extends Le { 61088 unwrap() { 61089 return this._def.type 61090 } 61091 _parse(t) { 61092 const {ctx: n} = this._processInputParams(t); 61093 if (n.parsedType !== ue.promise && n.common.async === !1) 61094 return se(n, { 61095 code: ee.invalid_type, 61096 expected: ue.promise, 61097 received: n.parsedType 61098 }), 61099 Te; 61100 const r = n.parsedType === ue.promise ? n.data : Promise.resolve(n.data); 61101 return Bn(r.then(i => this._def.type.parseAsync(i, { 61102 path: n.path, 61103 errorMap: n.common.contextualErrorMap 61104 }))) 61105 } 61106} 61107eu.create = (e, t) => new eu({ 61108 type: e, 61109 typeName: Pe.ZodPromise, 61110 ...ke(t) 61111}); 61112class vi extends Le { 61113 innerType() { 61114 return this._def.schema 61115 } 61116 sourceType() { 61117 return this._def.schema._def.typeName === Pe.ZodEffects ? this._def.schema.sourceType() : this._def.schema 61118 } 61119 _parse(t) { 61120 const {status: n, ctx: r} = this._processInputParams(t) 61121 , i = this._def.effect || null 61122 , o = { 61123 addIssue: a => { 61124 se(r, a), 61125 a.fatal ? n.abort() : n.dirty() 61126 } 61127 , 61128 get path() { 61129 return r.path 61130 } 61131 }; 61132 if (o.addIssue = o.addIssue.bind(o), 61133 i.type === "preprocess") { 61134 const a = i.transform(r.data, o); 61135 if (r.common.async) 61136 return Promise.resolve(a).then(async s => { 61137 if (n.value === "aborted") 61138 return Te; 61139 const l = await this._def.schema._parseAsync({ 61140 data: s, 61141 path: r.path, 61142 parent: r 61143 }); 61144 return l.status === "aborted" ? Te : l.status === "dirty" || n.value === "dirty" ? Fl(l.value) : l 61145 } 61146 ); 61147 { 61148 if (n.value === "aborted") 61149 return Te; 61150 const s = this._def.schema._parseSync({ 61151 data: a, 61152 path: r.path, 61153 parent: r 61154 }); 61155 return s.status === "aborted" ? Te : s.status === "dirty" || n.value === "dirty" ? Fl(s.value) : s 61156 } 61157 } 61158 if (i.type === "refinement") { 61159 const a = s => { 61160 const l = i.refinement(s, o); 61161 if (r.common.async) 61162 return Promise.resolve(l); 61163 if (l instanceof Promise) 61164 throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead."); 61165 return s 61166 } 61167 ; 61168 if (r.common.async === !1) { 61169 const s = this._def.schema._parseSync({ 61170 data: r.data, 61171 path: r.path, 61172 parent: r 61173 }); 61174 return s.status === "aborted" ? Te : (s.status === "dirty" && n.dirty(), 61175 a(s.value), 61176 { 61177 status: n.value, 61178 value: s.value 61179 }) 61180 } else 61181 return this._def.schema._parseAsync({ 61182 data: r.data, 61183 path: r.path, 61184 parent: r 61185 }).then(s => s.status === "aborted" ? Te : (s.status === "dirty" && n.dirty(), 61186 a(s.value).then( () => ({ 61187 status: n.value, 61188 value: s.value 61189 })))) 61190 } 61191 if (i.type === "transform") 61192 if (r.common.async === !1) { 61193 const a = this._def.schema._parseSync({ 61194 data: r.data, 61195 path: r.path, 61196 parent: r 61197 }); 61198 if (!nh(a)) 61199 return a; 61200 const s = i.transform(a.value, o); 61201 if (s instanceof Promise) 61202 throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead."); 61203 return { 61204 status: n.value, 61205 value: s 61206 } 61207 } else 61208 return this._def.schema._parseAsync({ 61209 data: r.data, 61210 path: r.path, 61211 parent: r 61212 }).then(a => nh(a) ? Promise.resolve(i.transform(a.value, o)).then(s => ({ 61213 status: n.value, 61214 value: s 61215 })) : a); 61216 We.assertNever(i) 61217 } 61218} 61219vi.create = (e, t, n) => new vi({ 61220 schema: e, 61221 typeName: Pe.ZodEffects, 61222 effect: t, 61223 ...ke(n) 61224}); 61225vi.createWithPreprocess = (e, t, n) => new vi({ 61226 schema: t, 61227 effect: { 61228 type: "preprocess", 61229 transform: e 61230 }, 61231 typeName: Pe.ZodEffects, 61232 ...ke(n) 61233}); 61234class Ui extends Le { 61235 _parse(t) { 61236 return this._getType(t) === ue.undefined ? Bn(void 0) : this._def.innerType._parse(t) 61237 } 61238 unwrap() { 61239 return this._def.innerType 61240 } 61241} 61242Ui.create = (e, t) => new Ui({ 61243 innerType: e, 61244 typeName: Pe.ZodOptional, 61245 ...ke(t) 61246}); 61247class Ra extends Le { 61248 _parse(t) { 61249 return this._getType(t) === ue.null ? Bn(null) : this._def.innerType._parse(t) 61250 } 61251 unwrap() { 61252 return this._def.innerType 61253 } 61254} 61255Ra.create = (e, t) => new Ra({ 61256 innerType: e, 61257 typeName: Pe.ZodNullable, 61258 ...ke(t) 61259}); 61260class hh extends Le { 61261 _parse(t) { 61262 const {ctx: n} = this._processInputParams(t); 61263 let r = n.data; 61264 return n.parsedType === ue.undefined && (r = this._def.defaultValue()), 61265 this._def.innerType._parse({ 61266 data: r, 61267 path: n.path, 61268 parent: n 61269 }) 61270 } 61271 removeDefault() { 61272 return this._def.innerType 61273 } 61274} 61275hh.create = (e, t) => new hh({ 61276 innerType: e, 61277 typeName: Pe.ZodDefault, 61278 defaultValue: typeof t.default == "function" ? t.default : () => t.default, 61279 ...ke(t) 61280}); 61281class ph extends Le { 61282 _parse(t) { 61283 const {ctx: n} = this._processInputParams(t) 61284 , r = { 61285 ...n, 61286 common: { 61287 ...n.common, 61288 issues: [] 61289 } 61290 } 61291 , i = this._def.innerType._parse({ 61292 data: r.data, 61293 path: r.path, 61294 parent: { 61295 ...r 61296 } 61297 }); 61298 return rh(i) ? i.then(o => ({ 61299 status: "valid", 61300 value: o.status === "valid" ? o.value : this._def.catchValue({ 61301 get error() { 61302 return new gr(r.common.issues) 61303 }, 61304 input: r.data 61305 }) 61306 })) : { 61307 status: "valid", 61308 value: i.status === "valid" ? i.value : this._def.catchValue({ 61309 get error() { 61310 return new gr(r.common.issues) 61311 }, 61312 input: r.data 61313 }) 61314 } 61315 } 61316 removeCatch() { 61317 return this._def.innerType 61318 } 61319} 61320ph.create = (e, t) => new ph({ 61321 innerType: e, 61322 typeName: Pe.ZodCatch, 61323 catchValue: typeof t.catch == "function" ? t.catch : () => t.catch, 61324 ...ke(t) 61325}); 61326class Oy extends Le { 61327 _parse(t) { 61328 if (this._getType(t) !== ue.nan) { 61329 const r = this._getOrReturnCtx(t); 61330 return se(r, { 61331 code: ee.invalid_type, 61332 expected: ue.nan, 61333 received: r.parsedType 61334 }), 61335 Te 61336 } 61337 return { 61338 status: "valid", 61339 value: t.data 61340 } 61341 } 61342} 61343Oy.create = e => new Oy({ 61344 typeName: Pe.ZodNaN, 61345 ...ke(e) 61346}); 61347const ODe = Symbol("zod_brand"); 61348class SC extends Le { 61349 _parse(t) { 61350 const {ctx: n} = this._processInputParams(t) 61351 , r = n.data; 61352 return this._def.type._parse({ 61353 data: r, 61354 path: n.path, 61355 parent: n 61356 }) 61357 } 61358 unwrap() { 61359 return this._def.type 61360 } 61361} 61362class Jh extends Le { 61363 _parse(t) { 61364 const {status: n, ctx: r} = this._processInputParams(t); 61365 if (r.common.async) 61366 return (async () => { 61367 const o = await this._def.in._parseAsync({ 61368 data: r.data, 61369 path: r.path, 61370 parent: r 61371 }); 61372 return o.status === "aborted" ? Te : o.status === "dirty" ? (n.dirty(), 61373 Fl(o.value)) : this._def.out._parseAsync({ 61374 data: o.value, 61375 path: r.path, 61376 parent: r 61377 }) 61378 } 61379 )(); 61380 { 61381 const i = this._def.in._parseSync({ 61382 data: r.data, 61383 path: r.path, 61384 parent: r 61385 }); 61386 return i.status === "aborted" ? Te : i.status === "dirty" ? (n.dirty(), 61387 { 61388 status: "dirty", 61389 value: i.value 61390 }) : this._def.out._parseSync({ 61391 data: i.value, 61392 path: r.path, 61393 parent: r 61394 }) 61395 } 61396 } 61397 static create(t, n) { 61398 return new Jh({ 61399 in: t, 61400 out: n, 61401 typeName: Pe.ZodPipeline 61402 }) 61403 } 61404} 61405class mh extends Le { 61406 _parse(t) { 61407 const n = this._def.innerType._parse(t) 61408 , r = i => (nh(i) && (i.value = Object.freeze(i.value)), 61409 i); 61410 return rh(n) ? n.then(i => r(i)) : r(n) 61411 } 61412 unwrap() { 61413 return this._def.innerType 61414 } 61415} 61416mh.create = (e, t) => new mh({ 61417 innerType: e, 61418 typeName: Pe.ZodReadonly, 61419 ...ke(t) 61420}); 61421function s7(e, t={}, n) { 61422 return e ? Jc.create().superRefine( (r, i) => { 61423 var o, a; 61424 if (!e(r)) { 61425 const s = typeof t == "function" ? t(r) : typeof t == "string" ? { 61426 message: t 61427 } : t 61428 , l = (a = (o = s.fatal) !== null && o !== void 0 ? o : n) !== null && a !== void 0 ? a : !0 61429 , c = typeof s == "string" ? { 61430 message: s 61431 } : s; 61432 i.addIssue({ 61433 code: "custom", 61434 ...c, 61435 fatal: l 61436 }) 61437 } 61438 } 61439 ) : Jc.create() 61440} 61441const ADe = { 61442 object: Pt.lazycreate 61443}; 61444var Pe; 61445(function(e) { 61446 e.ZodString = "ZodString", 61447 e.ZodNumber = "ZodNumber", 61448 e.ZodNaN = "ZodNaN", 61449 e.ZodBigInt = "ZodBigInt", 61450 e.ZodBoolean = "ZodBoolean", 61451 e.ZodDate = "ZodDate", 61452 e.ZodSymbol = "ZodSymbol", 61453 e.ZodUndefined = "ZodUndefined", 61454 e.ZodNull = "ZodNull", 61455 e.ZodAny = "ZodAny", 61456 e.ZodUnknown = "ZodUnknown", 61457 e.ZodNever = "ZodNever", 61458 e.ZodVoid = "ZodVoid", 61459 e.ZodArray = "ZodArray", 61460 e.ZodObject = "ZodObject", 61461 e.ZodUnion = "ZodUnion", 61462 e.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", 61463 e.ZodIntersection = "ZodIntersection", 61464 e.ZodTuple = "ZodTuple", 61465 e.ZodRecord = "ZodRecord", 61466 e.ZodMap = "ZodMap", 61467 e.ZodSet = "ZodSet", 61468 e.ZodFunction = "ZodFunction", 61469 e.ZodLazy = "ZodLazy", 61470 e.ZodLiteral = "ZodLiteral", 61471 e.ZodEnum = "ZodEnum", 61472 e.ZodEffects = "ZodEffects", 61473 e.ZodNativeEnum = "ZodNativeEnum", 61474 e.ZodOptional = "ZodOptional", 61475 e.ZodNullable = "ZodNullable", 61476 e.ZodDefault = "ZodDefault", 61477 e.ZodCatch = "ZodCatch", 61478 e.ZodPromise = "ZodPromise", 61479 e.ZodBranded = "ZodBranded", 61480 e.ZodPipeline = "ZodPipeline", 61481 e.ZodReadonly = "ZodReadonly" 61482} 61483)(Pe || (Pe = {})); 61484const EDe = (e, t={ 61485 message: `Input not instance of ${e.name}` 61486}) => s7(n => n instanceof e, t) 61487 , l7 = ai.create 61488 , c7 = Na.create 61489 , jDe = Oy.create 61490 , NDe = Ma.create 61491 , u7 = ih.create 61492 , MDe = Gs.create 61493 , kDe = _y.create 61494 , RDe = oh.create 61495 , DDe = ah.create 61496 , IDe = Jc.create 61497 , $De = Ns.create 61498 , LDe = jo.create 61499 , FDe = Ty.create 61500 , BDe = fi.create 61501 , VDe = Pt.create 61502 , UDe = Pt.strictCreate 61503 , zDe = sh.create 61504 , WDe = x0.create 61505 , HDe = lh.create 61506 , qDe = Ki.create 61507 , KDe = ch.create 61508 , GDe = Cy.create 61509 , YDe = Ys.create 61510 , XDe = rc.create 61511 , QDe = uh.create 61512 , ZDe = dh.create 61513 , JDe = ka.create 61514 , eIe = fh.create 61515 , tIe = eu.create 61516 , h2 = vi.create 61517 , nIe = Ui.create 61518 , rIe = Ra.create 61519 , iIe = vi.createWithPreprocess 61520 , oIe = Jh.create 61521 , aIe = () => l7().optional() 61522 , sIe = () => c7().optional() 61523 , lIe = () => u7().optional() 61524 , cIe = { 61525 string: e => ai.create({ 61526 ...e, 61527 coerce: !0 61528 }), 61529 number: e => Na.create({ 61530 ...e, 61531 coerce: !0 61532 }), 61533 boolean: e => ih.create({ 61534 ...e, 61535 coerce: !0 61536 }), 61537 bigint: e => Ma.create({ 61538 ...e, 61539 coerce: !0 61540 }), 61541 date: e => Gs.create({ 61542 ...e, 61543 coerce: !0 61544 }) 61545} 61546 , uIe = Te; 61547var Ve = Object.freeze({ 61548 __proto__: null, 61549 defaultErrorMap: Zc, 61550 setErrorMap: uDe, 61551 getErrorMap: wy, 61552 makeIssue: Sy, 61553 EMPTY_PATH: dDe, 61554 addIssueToContext: se, 61555 ParseStatus: jn, 61556 INVALID: Te, 61557 DIRTY: Fl, 61558 OK: Bn, 61559 isAborted: jS, 61560 isDirty: NS, 61561 isValid: nh, 61562 isAsync: rh, 61563 get util() { 61564 return We 61565 }, 61566 get objectUtil() { 61567 return ES 61568 }, 61569 ZodParsedType: ue, 61570 getParsedType: Zo, 61571 ZodType: Le, 61572 datetimeRegex: o7, 61573 ZodString: ai, 61574 ZodNumber: Na, 61575 ZodBigInt: Ma, 61576 ZodBoolean: ih, 61577 ZodDate: Gs, 61578 ZodSymbol: _y, 61579 ZodUndefined: oh, 61580 ZodNull: ah, 61581 ZodAny: Jc, 61582 ZodUnknown: Ns, 61583 ZodNever: jo, 61584 ZodVoid: Ty, 61585 ZodArray: fi, 61586 ZodObject: Pt, 61587 ZodUnion: sh, 61588 ZodDiscriminatedUnion: x0, 61589 ZodIntersection: lh, 61590 ZodTuple: Ki, 61591 ZodRecord: ch, 61592 ZodMap: Cy, 61593 ZodSet: Ys, 61594 ZodFunction: rc, 61595 ZodLazy: uh, 61596 ZodLiteral: dh, 61597 ZodEnum: ka, 61598 ZodNativeEnum: fh, 61599 ZodPromise: eu, 61600 ZodEffects: vi, 61601 ZodTransformer: vi, 61602 ZodOptional: Ui, 61603 ZodNullable: Ra, 61604 ZodDefault: hh, 61605 ZodCatch: ph, 61606 ZodNaN: Oy, 61607 BRAND: ODe, 61608 ZodBranded: SC, 61609 ZodPipeline: Jh, 61610 ZodReadonly: mh, 61611 custom: s7, 61612 Schema: Le, 61613 ZodSchema: Le, 61614 late: ADe, 61615 get ZodFirstPartyTypeKind() { 61616 return Pe 61617 }, 61618 coerce: cIe, 61619 any: IDe, 61620 array: BDe, 61621 bigint: NDe, 61622 boolean: u7, 61623 date: MDe, 61624 discriminatedUnion: WDe, 61625 effect: h2, 61626 enum: JDe, 61627 function: XDe, 61628 instanceof: EDe, 61629 intersection: HDe, 61630 lazy: QDe, 61631 literal: ZDe, 61632 map: GDe, 61633 nan: jDe, 61634 nativeEnum: eIe, 61635 never: LDe, 61636 null: DDe, 61637 nullable: rIe, 61638 number: c7, 61639 object: VDe, 61640 oboolean: lIe, 61641 onumber: sIe, 61642 optional: nIe, 61643 ostring: aIe, 61644 pipeline: oIe, 61645 preprocess: iIe, 61646 promise: tIe, 61647 record: KDe, 61648 set: YDe, 61649 strictObject: UDe, 61650 string: l7, 61651 symbol: kDe, 61652 transformer: h2, 61653 tuple: qDe, 61654 undefined: RDe, 61655 union: zDe, 61656 unknown: $De, 61657 void: FDe, 61658 NEVER: uIe, 61659 ZodIssueCode: ee, 61660 quotelessJson: cDe, 61661 ZodError: gr 61662}); 61663const wt = { 61664 INT8_MIN: -128, 61665 INT8_MAX: 127, 61666 INT8_UNSIGNED_MAX: 255, 61667 INT16_MIN: -32768, 61668 INT16_MAX: 32767, 61669 INT16_UNSIGNED_MAX: 65535, 61670 INT24_MIN: -8388608, 61671 INT24_MAX: 8388607, 61672 INT24_UNSIGNED_MAX: 16777215, 61673 INT32_MIN: -2147483648, 61674 INT32_MAX: 2147483647, 61675 INT32_UNSIGNED_MAX: 4294967295, 61676 INT48_MIN: -0x800000000000, 61677 INT48_MAX: 0x7fffffffffff,
61678 INT48_UNSIGNED_MAX: 0xffffffffffff, 61679 INT64_MIN: -9223372036854775808n, 61680 INT64_MAX: 9223372036854775807n, 61681 INT64_UNSIGNED_MAX: 18446744073709551615n 61682}; 61683function Bt(e, t) { 61684 return t.includes(e.columnType) 61685} 61686function dIe(e) { 61687 return "enumValues"in e && Array.isArray(e.enumValues) && e.enumValues.length > 0 61688} 61689const fIe = Ve.union([Ve.string(), Ve.number(), Ve.boolean(), Ve.null()]) 61690 , hIe = Ve.union([fIe, Ve.record(Ve.any()), Ve.array(Ve.any())]) 61691 , pIe = Ve.custom(e => e instanceof Buffer); 61692function d7(e, t) { 61693 const n = (t == null ? void 0 : t.zodInstance) ?? Ve 61694 , r = (t == null ? void 0 : t.coerce) ?? {}; 61695 let i; 61696 return dIe(e) && (i = e.enumValues.length ? n.enum(e.enumValues) : n.string()), 61697 i || (Bt(e, ["PgGeometry", "PgPointTuple"]) ? i = n.tuple([n.number(), n.number()]) : Bt(e, ["PgGeometryObject", "PgPointObject"]) ? i = n.object({ 61698 x: n.number(), 61699 y: n.number() 61700 }) : Bt(e, ["PgHalfVector", "PgVector"]) ? (i = n.array(n.number()), 61701 i = e.dimensions ? i.length(e.dimensions) : i) : Bt(e, ["PgLine"]) ? i = n.tuple([n.number(), n.number(), n.number()]) : Bt(e, ["PgLineABC"]) ? i = n.object({ 61702 a: n.number(), 61703 b: n.number(), 61704 c: n.number() 61705 }) : Bt(e, ["PgArray"]) ? (i = n.array(d7(e.baseColumn, n)), 61706 i = e.size ? i.length(e.size) : i) : e.dataType === "array" ? i = n.array(n.any()) : e.dataType === "number" ? i = mIe(e, n, r) : e.dataType === "bigint" ? i = gIe(e, n, r) : e.dataType === "boolean" ? i = r === !0 || r.boolean ? n.coerce.boolean() : n.boolean() : e.dataType === "date" ? i = r === !0 || r.date ? n.coerce.date() : n.date() : e.dataType === "string" ? i = yIe(e, n, r) : e.dataType === "json" ? i = hIe : e.dataType === "custom" ? i = n.any() : e.dataType === "buffer" && (i = pIe)), 61707 i || (i = n.any()), 61708 i 61709} 61710function mIe(e, t, n) { 61711 let r = e.getSQLType().includes("unsigned"), i, o, a = !1; 61712 Bt(e, ["MySqlTinyInt", "SingleStoreTinyInt"]) ? (i = r ? 0 : wt.INT8_MIN, 61713 o = r ? wt.INT8_UNSIGNED_MAX : wt.INT8_MAX, 61714 a = !0) : Bt(e, ["PgSmallInt", "PgSmallSerial", "MySqlSmallInt", "SingleStoreSmallInt"]) ? (i = r ? 0 : wt.INT16_MIN, 61715 o = r ? wt.INT16_UNSIGNED_MAX : wt.INT16_MAX, 61716 a = !0) : Bt(e, ["PgReal", "MySqlFloat", "MySqlMediumInt", "SingleStoreMediumInt", "SingleStoreFloat"]) ? (i = r ? 0 : wt.INT24_MIN, 61717 o = r ? wt.INT24_UNSIGNED_MAX : wt.INT24_MAX, 61718 a = Bt(e, ["MySqlMediumInt", "SingleStoreMediumInt"])) : Bt(e, ["PgInteger", "PgSerial", "MySqlInt", "SingleStoreInt"]) ? (i = r ? 0 : wt.INT32_MIN, 61719 o = r ? wt.INT32_UNSIGNED_MAX : wt.INT32_MAX, 61720 a = !0) : Bt(e, ["PgDoublePrecision", "MySqlReal", "MySqlDouble", "SingleStoreReal", "SingleStoreDouble", "SQLiteReal"]) ? (i = r ? 0 : wt.INT48_MIN, 61721 o = r ? wt.INT48_UNSIGNED_MAX : wt.INT48_MAX) : Bt(e, ["PgBigInt53", "PgBigSerial53", "MySqlBigInt53", "MySqlSerial", "SingleStoreBigInt53", "SingleStoreSerial", "SQLiteInteger"]) ? (r = r || Bt(e, ["MySqlSerial", "SingleStoreSerial"]), 61722 i = r ? 0 : Number.MIN_SAFE_INTEGER, 61723 o = Number.MAX_SAFE_INTEGER, 61724 a = !0) : Bt(e, ["MySqlYear", "SingleStoreYear"]) ? (i = 1901, 61725 o = 2155, 61726 a = !0) : (i = Number.MIN_SAFE_INTEGER, 61727 o = Number.MAX_SAFE_INTEGER); 61728 let s = n === !0 || n != null && n.number ? t.coerce.number() : t.number(); 61729 return s = s.min(i).max(o), 61730 a ? s.int() : s 61731} 61732function gIe(e, t, n) { 61733 const r = e.getSQLType().includes("unsigned") 61734 , i = r ? 0n : wt.INT64_MIN 61735 , o = r ? wt.INT64_UNSIGNED_MAX : wt.INT64_MAX; 61736 return (n === !0 || n != null && n.bigint ? t.coerce.bigint() : t.bigint()).min(i).max(o) 61737} 61738function yIe(e, t, n) { 61739 if (Bt(e, ["PgUUID"])) 61740 return t.string().uuid(); 61741 let r, i, o = !1; 61742 Bt(e, ["PgVarchar", "SQLiteText"]) ? r = e.length : Bt(e, ["MySqlVarChar", "SingleStoreVarChar"]) ? r = e.length ?? wt.INT16_UNSIGNED_MAX : Bt(e, ["MySqlText", "SingleStoreText"]) && (e.textType === "longtext" ? r = wt.INT32_UNSIGNED_MAX : e.textType === "mediumtext" ? r = wt.INT24_UNSIGNED_MAX : e.textType === "text" ? r = wt.INT16_UNSIGNED_MAX : r = wt.INT8_UNSIGNED_MAX), 61743 Bt(e, ["PgChar", "MySqlChar", "SingleStoreChar"]) && (r = e.length, 61744 o = !0), 61745 Bt(e, ["PgBinaryVector"]) && (i = /^[01]+$/, 61746 r = e.dimensions); 61747 let a = n === !0 || n != null && n.string ? t.coerce.string() : t.string(); 61748 return a = i ? a.regex(i) : a, 61749 r && o ? a.length(r) : r ? a.max(r) : a 61750} 61751function f7(e) { 61752 return _H(e) ? MRe(e) : kRe(e) 61753} 61754function h7(e, t, n, r) { 61755 const i = {}; 61756 for (const [o,a] of Object.entries(e)) { 61757 if (!mn(a, Qc) && !mn(a, nn) && !mn(a, nn.Aliased) && typeof a == "object") { 61758 const d = _H(a) || NRe(a) ? f7(a) : a; 61759 i[o] = h7(d, t[o] ?? {}, n, r); 61760 continue 61761 } 61762 const s = t[o]; 61763 if (s !== void 0 && typeof s != "function") { 61764 i[o] = s; 61765 continue 61766 } 61767 const l = mn(a, Qc) ? a : void 0 61768 , c = l ? d7(l, r) : Ve.any() 61769 , u = typeof s == "function" ? s(c) : c; 61770 n.never(l) || (i[o] = u, 61771 l && (n.nullable(l) && (i[o] = i[o].nullable()), 61772 n.optional(l) && (i[o] = i[o].optional()))) 61773 } 61774 return Ve.object(i) 61775} 61776const vIe = { 61777 never: e => { 61778 var t, n; 61779 return ((t = e == null ? void 0 : e.generated) == null ? void 0 : t.type) === "always" || ((n = e == null ? void 0 : e.generatedIdentity) == null ? void 0 : n.type) === "always" 61780 } 61781 , 61782 optional: e => !e.notNull || e.notNull && e.hasDefault, 61783 nullable: e => !e.notNull 61784} 61785 , ol = (e, t) => { 61786 const n = f7(e); 61787 return h7(n, {}, vIe) 61788} 61789 , al = Ga("users", { 61790 id: Lo("id").primaryKey(), 61791 username: St("username").notNull().unique(), 61792 password: St("password").notNull(), 61793 companyName: St("company_name").notNull(), 61794 name: St("name"), 61795 email: St("email"), 61796 phone: St("phone"), 61797 address: St("address"), 61798 website: St("website"), 61799 studioName: St("studio_name"), 61800 role: St("role").notNull().default("admin"), 61801 isVerified: th("is_verified").notNull().default(!1), 61802 verificationToken: St("verification_token"), 61803 verificationTokenExpiry: Fr("verification_token_expiry"), 61804 hasCompletedOnboarding: th("has_completed_onboarding").notNull().default(!1) 61805}) 61806 , p7 = Ga("studio_keys", { 61807 id: Lo("id").primaryKey(), 61808 key: St("key").notNull().unique(), 61809 isActive: th("is_active").notNull().default(!0), 61810 createdAt: Fr("created_at").notNull().defaultNow(), 61811 createdBy: yi("created_by").references( () => al.id) 61812}) 61813 , m7 = Ga("machines", { 61814 id: Lo("id").primaryKey(), 61815 name: St("name").notNull(), 61816 studioKeyId: yi("studio_key_id").references( () => p7.id), 61817 lastActive: Fr("last_active"), 61818 isRevoked: th("is_revoked").notNull().default(!1), 61819 hourlyRate: v0("hourly_rate").notNull().default("2.00") 61820}); 61821Ga("credit_balances", { 61822 id: Lo("id").primaryKey(), 61823 userId: yi("user_id").references( () => al.id).notNull().unique(), 61824 balance: v0("balance").notNull().default("0.00"), 61825 updatedAt: Fr("updated_at").notNull().defaultNow() 61826}
61826); 61827const xIe = Ga("transactions", { 61828 id: Lo("id").primaryKey(), 61829 userId: yi("user_id").references( () => al.id).notNull(), 61830 amount: v0("amount").notNull(), 61831 type: St("type").notNull(), 61832 description: St("description").notNull(), 61833 createdAt: Fr("created_at").notNull().defaultNow(), 61834 renderJobId: yi("render_job_id").references( () => g7.id) 61835}) 61836 , g7 = Ga("render_jobs", { 61837 id: Lo("id").primaryKey(), 61838 userId: yi("user_id").references( () => al.id).notNull(), 61839 machineId: yi("machine_id").references( () => m7.id).notNull(), 61840 startTime: Fr("start_time").notNull(), 61841 endTime: Fr("end_time"), 61842 status: St("status").notNull().default("running"), 61843 cost: v0("cost"), 61844 createdAt: Fr("created_at").notNull().defaultNow() 61845}) 61846 , y7 = Ga("support_tickets", { 61847 id: Lo("id").primaryKey(), 61848 userId: yi("user_id").references( () => al.id).notNull(), 61849 title: St("title").notNull(), 61850 description: St("description").notNull(), 61851 status: St("status").notNull().default("open"), 61852 priority: St("priority").notNull().default("medium"), 61853 attachments: St("attachments").array(), 61854 createdAt: Fr("created_at").notNull().defaultNow(), 61855 updatedAt: Fr("updated_at").notNull().defaultNow() 61856}) 61857 , bIe = Ga("ticket_responses", { 61858 id: Lo("id").primaryKey(), 61859 ticketId: yi("ticket_id").references( () => y7.id).notNull(), 61860 userId: yi("user_id").references( () => al.id).notNull(), 61861 message: St("message").notNull(), 61862 createdAt: Fr("created_at").notNull().defaultNow() 61863}); 61864ol(al).pick({ 61865 username: !0, 61866 password: !0, 61867 companyName: !0 61868}).extend({ 61869 username: Ve.string().email("Please enter a valid business email"), 61870 companyName: Ve.string().min(1, "Company name is required"), 61871 password: Ve.string().min(8, "Password must be at least 8 characters") 61872}); 61873ol(p7).pick({ 61874 key: !0, 61875 createdBy: !0 61876}); 61877ol(m7).pick({ 61878 name: !0, 61879 studioKeyId: !0, 61880 hourlyRate: !0 61881}); 61882ol(xIe).pick({ 61883 userId: !0, 61884 amount: !0, 61885 type: !0, 61886 description: !0, 61887 renderJobId: !0 61888}); 61889ol(g7).pick({ 61890 userId: !0, 61891 machineId: !0, 61892 startTime: !0 61893}); 61894const wIe = ol(y7).pick({ 61895 userId: !0, 61896 title: !0, 61897 description: !0, 61898 priority: !0, 61899 attachments: !0 61900}).extend({ 61901 title: Ve.string().min(5, "Title must be at least 5 characters"), 61902 description: Ve.string().min(20, "Description must be at least 20 characters"), 61903 priority: Ve.enum(["low", "medium", "high"]), 61904 attachments: Ve.array(Ve.string()).optional() 61905}); 61906ol(bIe).pick({ 61907 ticketId: !0, 61908 userId: !0, 61909 message: !0 61910}).extend({ 61911 message: Ve.string().min(1, "Response cannot be empty") 61912}); 61913const SIe = Ee.section 61914 , PIe = 5 * 1024 * 1024 61915 , p2 = ["image/jpeg", "image/png", "image/gif", "video/mp4", "video/quicktime"]; 61916function _Ie() { 61917 za(); 61918 const {toast: e} = Fa() 61919 , [t,n] = b.useState([]) 61920 , [r,i] = b.useState([]) 61921 , o = xm({ 61922 resolver: wm(wIe.omit({ 61923 userId: !0 61924 })), 61925 defaultValues: { 61926 title: "", 61927 description: "", 61928 priority: "medium", 61929 attachments: [] 61930 } 61931 }) 61932 , a = u => { 61933 const f = Array.from(u.target.files || []).filter(p => p.size > PIe ? (e({ 61934 title: "File too large", 61935 description: `${p.name} exceeds 5MB limit`, 61936 variant: "destructive" 61937 }), 61938 !1) : p2.includes(p.type) ? !0 : (e({ 61939 title: "Invalid file type", 61940 description: `${p.name} is not a supported file type`, 61941 variant: "destructive" 61942 }), 61943 !1)); 61944 n(p => [...p, ...f]), 61945 f.forEach(p => { 61946 if (p.type.startsWith("image/")) { 61947 const g = new FileReader; 61948 g.onloadend = () => { 61949 i(m => [...m, g.result]) 61950 } 61951 , 61952 g.readAsDataURL(p) 61953 } else 61954 i(g => [...g, `Video: ${p.name}`]) 61955 } 61956 ) 61957 } 61958 , s = u => { 61959 n(d => d.filter( (f, p) => p !== u)), 61960 i(d => d.filter( (f, p) => p !== u)) 61961 } 61962 , {data: l=[]} = ni({ 61963 queryKey: ["/api/tickets"], 61964 queryFn: async () => { 61965 const u = await fetch("/api/tickets"); 61966 if (!u.ok) 61967 throw new Error("Failed to fetch tickets"); 61968 return u.json() 61969 } 61970 }) 61971 , c = ci({ 61972 mutationFn: async u => { 61973 const d = new FormData;
61974 d.append("title", u.title), 61975 d.append("description", u.description), 61976 d.append("priority", u.priority), 61977 t.forEach( (p, g) => { 61978 d.append("attachments", p) 61979 } 61980 ); 61981 const f = await fetch("/api/tickets", { 61982 method: "POST", 61983 body: d 61984 }); 61985 if (!f.ok) { 61986 const p = await f.json(); 61987 throw new Error(p.message || "Failed to create ticket") 61988 } 61989 return f.json() 61990 } 61991 , 61992 onSuccess: () => { 61993 e({ 61994 title: "Ticket created", 61995 description: "We'll get back to you soon!" 61996 }), 61997 o.reset(), 61998 n([]), 61999 i([]), 62000 hr.invalidateQueries({ 62001 queryKey: ["/api/tickets"] 62002 }), 62003 hr.prefetchQuery({ 62004 queryKey: ["/api/tickets"] 62005 }) 62006 } 62007 , 62008 onError: u => { 62009 e({ 62010 title: "Failed to create ticket", 62011 description: u.message, 62012 variant: "destructive" 62013 }) 62014 } 62015 }); 62016 return h.jsx(SIe, { 62017 className: "max-w-4xl mx-auto", 62018 variants: Ut, 62019 initial: "initial", 62020 animate: "animate", 62021 children: h.jsxs(Ee.div, { 62022 variants: It, 62023 children: [h.jsx("h1", { 62024 className: "text-4xl font-bold mb-6", 62025 children: "Support & FAQ" 62026 }), h.jsxs("div", { 62027 className: "flex gap-2 mb-8", 62028 children: [h.jsx(yn, { 62029 placeholder: "Search documentation and FAQs..." 62030 }), h.jsx(Me, { 62031 children: h.jsx(kX, { 62032 className: "h-4 w-4" 62033 }) 62034 })] 62035 }), h.jsxs(cn, { 62036 className: "p-6 mb-8", 62037 children: [h.jsxs("h2", { 62038 className: "text-2xl font-semibold mb-4 flex items-center gap-2", 62039 children: [h.jsx(M4, { 62040 className: "h-5 w-5" 62041 }), "Create Support Ticket"] 62042 }), h.jsx(bm, { 62043 ...o, 62044 children: h.jsxs("form", { 62045 onSubmit: o.handleSubmit(u => c.mutate(u)), 62046 className: "space-y-4", 62047 children: [h.jsx(ir, { 62048 control: o.control, 62049 name: "title", 62050 render: ({field: u}) => h.jsxs(Gn, { 62051 children: [h.jsx(Rn, { 62052 children: "Title" 62053 }), h.jsx(Yn, { 62054 children: h.jsx(yn, { 62055 ...u, 62056 placeholder: "Brief description of your issue" 62057 }) 62058 }), h.jsx(Ai, {})] 62059 }) 62060 }), h.jsx(ir, { 62061 control: o.control, 62062 name: "description", 62063 render: ({field: u}) => h.jsxs(Gn, { 62064 children: [h.jsx(Rn, { 62065 children: "Description" 62066 }), h.jsx(Yn, { 62067 children: h.jsx(pH, { 62068 ...u, 62069 placeholder: "Detailed explanation of your issue", 62070 className: "min-h-[100px]" 62071 }) 62072 }), h.jsx(Ai, {})] 62073 }) 62074 }), h.jsx(ir, { 62075 control: o.control, 62076 name: "priority", 62077 render: ({field: u}) => h.jsxs(Gn, { 62078 children: [h.jsx(Rn, { 62079 children: "Priority" 62080 }), h.jsxs(gv, { 62081 onValueChange: u.onChange, 62082 defaultValue: u.value, 62083 children: [h.jsx(Yn, { 62084 children: h.jsx(Ih, { 62085 children: h.jsx(yv, { 62086 placeholder: "Select priority" 62087 }) 62088 }) 62089 }), h.jsxs($h, { 62090 children: [h.jsx(go, { 62091 value: "low", 62092 children: "Low" 62093 }), h.jsx(go, { 62094 value: "medium", 62095 children: "Medium" 62096 }), h.jsx(go, { 62097 value: "high", 62098 children: "High" 62099 })] 62100 })] 62101 }), h.jsx(Ai, {})] 62102 }) 62103 }), h.jsxs("div", { 62104 className: "space-y-4", 62105 children: [h.jsx(Rn, { 62106 children: "Attachments" 62107 }), h.jsxs("div", { 62108 className: "border-2 border-dashed rounded-lg p-4 text-center", 62109 children: [h.jsx("input", { 62110 type: "file", 62111 onChange: a, 62112 multiple: !0, 62113 accept: p2.join(","), 62114 className: "hidden", 62115 id: "file-upload" 62116 }), h.jsxs("label", { 62117 htmlFor: "file-upload", 62118 className: "cursor-pointer flex flex-col items-center gap-2", 62119 children: [h.jsx(cA, { 62120 className: "h-6 w-6 text-muted-foreground" 62121 }), h.jsx("span", { 62122 className: "text-sm text-muted-foreground", 62123 children: "Click to upload images or videos (max 5MB each)" 62124 })] 62125 })] 62126 }), r.length > 0 && h.jsx("div", { 62127 className: "grid grid-cols-2 gap-4 mt-4", 62128 children: r.map( (u, d) => h.jsxs("div", { 62129 className: "relative", 62130 children: [u.startsWith("data:image") ? h.jsx("img", { 62131 src: u, 62132 alt: `Preview ${d}`, 62133 className: "w-full h-32 object-cover rounded-lg" 62134 }) : h.jsx("div", { 62135 className: "w-full h-32 bg-muted rounded-lg flex items-center justify-center", 62136 children: h.jsx("span", { 62137 className: "text-sm text-muted-foreground", 62138 children: u 62139 }) 62140 }), h.jsx(Me, { 62141 variant: "destructive", 62142 size: "icon", 62143 className: "absolute top-2 right-2 h-6 w-6", 62144 onClick: () => s(d), 62145 children: h.jsx(R4, { 62146 className: "h-4 w-4" 62147 }) 62148 })] 62149 }, d)) 62150 })] 62151 }), h.jsx(Me, { 62152 type: "submit", 62153 className: "w-full", 62154 disabled: c.isPending, 62155 children: "Submit Ticket" 62156 })] 62157 }) 62158 })] 62159 }), h.jsxs(cn, { 62160 className: "p-6 mb-8", 62161 children: [h.jsxs("h2", { 62162 className: "text-2xl font-semibold mb-4 flex items-center gap-2", 62163 children: [h.jsx(jX, { 62164 className: "h-5 w-5" 62165 }), "Your Tickets"] 62166 }), h.jsx("div", { 62167 className: "space-y-4", 62168 children: l.length === 0 ? h.jsx("p", { 62169 className: "text-muted-foreground text-center py-4",
62170 children: "No tickets yet. Create one above!" 62171 }) : l.map(u => h.jsxs(cn, { 62172 className: "p-4", 62173 children: [h.jsxs("div", { 62174 className: "flex justify-between items-start mb-2", 62175 children: [h.jsx("h3", { 62176 className: "font-semibold", 62177 children: u.title 62178 }), h.jsx("span", { 62179 className: `text-sm px-2 py-1 rounded-full ${u.status === "open" ? "bg-green-100 text-green-800" : u.status === "closed" ? "bg-gray-100 text-gray-800" : "bg-yellow-100 text-yellow-800"}`, 62180 children: u.status 62181 })] 62182 }), h.jsx("p", { 62183 className: "text-sm text-muted-foreground mb-2", 62184 children: u.description 62185 }), h.jsxs("div", { 62186 className: "text-xs text-muted-foreground flex justify-between", 62187 children: [h.jsxs("span", { 62188 children: ["Priority: ", u.priority] 62189 }), h.jsx("span", { 62190 children: eh(new Date(u.createdAt), "MMM d, yyyy") 62191 })] 62192 }), u.attachments && u.attachments.length > 0 && h.jsxs("div", { 62193 className: "mt-2 flex gap-2", 62194 children: [h.jsx(cA, { 62195 className: "h-4 w-4 text-muted-foreground" 62196 }), h.jsxs("span", { 62197 className: "text-xs text-muted-foreground", 62198 children: [u.attachments.length, " attachment(s)"] 62199 })] 62200 })] 62201 }, u.id)) 62202 })] 62203 }), h.jsxs(cn, { 62204 className: "p-4 hover:bg-accent/50 transition-colors cursor-pointer mb-8", 62205 children: [h.jsx(O4, { 62206 className: "h-6 w-6 text-primary mb-2" 62207 }), h.jsx("h3", { 62208 className: "font-semibold", 62209 children: "Documentation" 62210 }), h.jsx("p", { 62211 className: "text-sm text-muted-foreground", 62212 children: "Browse our guides" 62213 })] 62214 }), h.jsxs("div", { 62215 className: "space-y-6", 62216 children: [h.jsxs("h2", { 62217 className: "text-2xl font-bold flex items-center gap-2", 62218 children: [h.jsx(C4, { 62219 className: "h-6 w-6" 62220 }), "Frequently Asked Questions"] 62221 }), h.jsx(Ee.div, { 62222 className: "space-y-4", 62223 variants: Ac, 62224 children: TIe.map( (u, d) => h.jsxs(Ee.div, { 62225 className: "border rounded-lg p-4", 62226 variants: Ut, 62227 children: [h.jsx("h3", { 62228 className: "font-semibold mb-2", 62229 children: u.question 62230 }), h.jsx("p", { 62231 className: "text-muted-foreground", 62232 children: u.answer 62233 })] 62234 }, d)) 62235 })] 62236 })] 62237 }) 62238 }) 62239} 62240const TIe = [{ 62241 question: "What is HyperRender?", 62242 answer: "HyperRender is a cloud-based rendering platform designed specifically for Unreal Engine. It allows artists and studios to offload heavy render jobs to our scalable cloud GPU clusters—reducing local hardware costs while delivering faster, high-quality renders." 62243}, { 62244 question: "How does HyperRender integrate with Unreal Engine?", 62245 answer: "HyperRender integrates seamlessly into your existing Unreal Engine workflow. By installing our MSI, the HyperRender plugin appears in your Unreal project. Instead of using the traditional local Movie Render Queue (MRQ), you simply select 'Render Remote' to offload rendering tasks to the cloud." 62246}, { 62247 question: "How secure is my data on HyperRender?", 62248 answer: "Security is our top priority. All communications are encrypted via HTTPS. User passwords are hashed, and sensitive data like studio keys are encrypted. We use JWT for secure authentication, and regular security audits are performed to ensure data integrity." 62249}, { 62250 question: "What is the MSI installer and how do I use it?", 62251 answer: "Download the MSI installer from our website and install it on your workstation. When prompted, enter your Studio Key, which unlocks the HyperRender plugin in your Unreal Engine project. Once installed, the plugin integrates with your MRQ to enable remote cloud rendering." 62252}, { 62253 question: "What is a Studio Key and how do I use it?", 62254 answer: "A Studio Key is a unique identifier linking your local installations to your HyperRender account. You enter it during the MSI installation. It authenticates your machine(s) so that only authorized devices can access your cloud rendering resources." 62255}, { 62256 question: "Can I use multiple machines simultaneously?", 62257 answer: "Yes. Your Studio Key can be used across multiple machines within your organization, allowing you to install the MSI and run HyperRender on several workstations concurrently." 62258}, { 62259 question: "How does the billing system work?", 62260 answer: "HyperRender uses a prepaid credit system where 1 Credit = $1. You purchase credits upfront, and each render job deducts credits based on its duration and GPU tier (e.g., $2/hour for a standard GPU, $5/hour for a high-end GPU). This ensures you only pay for the render time you use." 62261}, { 62262 question: "How do I purchase credits and monitor my balance?", 62263 answer: "Navigate to the Billing page and use the 'Buy Credits' form to select a preset amount (or enter a custom value) and complete your purchase via our secure payment gateway. Your current credit balance is prominently displayed on your Dashboard and updates in real time." 62264}, { 62265 question: "What is Project Sync and how does it work?", 62266 answer: "Project Sync is an automated process that scans your Unreal Engine project to detect all necessary assets and dependencies and uploads only the changed files to the cloud. When you initiate a remote render, Project Sync ensures that only new or modified assets are updated, reducing upload times and bandwidth usage." 62267}, { 62268 question: "What happens if a render job fails or is canceled?", 62269 answer: "If a render job fails or you cancel it (using the MSI's cancel feature), only the credits corresponding to the completed portion of the render are deducted. This way, you only pay for the actual render time used." 62270}]; 62271function m2({children: e}) { 62272 const {user: t, isLoading: n} = za() 62273 , [r,i] = qy(); 62274 return b.useEffect( () => { 62275 !n && !t && i("/auth") 62276 } 62277 , [t, n, i]), 62278 n ? h.jsx("div", { 62279 className: "flex items-center justify-center min-h-screen", 62280 children: h.jsx(Xy, { 62281 className: "h-8 w-8 animate-spin text-primary" 62282 }) 62283 }) : !n && !t ? null : h.jsx(h.Fragment, { 62284 children: typeof e == "function" ? e({ 62285 user: t 62286 }) : e 62287 }) 62288} 62289const CIe = [{ 62290 id: "cf49f1a533fecb5d7de8ecc57ad383af", 62291 transactionType: "DEBIT", 62292 studioName: "MetaDesk", 62293 machineName: "Ming", 62294 projectName: "CitySubwayTrainModular", 62295 shotName: "NewLevelSequence", 62296 startTime: "2025-02-19T21:33:43", 62297 endTime: "2025-02-19T21:45:55", 62298 duration: .2033, 62299 rate: 96, 62300 subtotal: 19.52 62301}, { 62302 id: "0f3068471414cc84c3f94174f5d1de11a", 62303 transactionType: "DEBIT", 62304 studioName: "MetaDesk", 62305 machineName: "Ming", 62306 projectName: "CitySubwayTrainModular", 62307 shotName: "NewLevelSequence", 62308 startTime: "2025-02-19T21:05:09", 62309 endTime: "2025-02-19T21:31:54", 62310 duration: .4458, 62311 rate: 96, 62312 subtotal: 42.8 62313}, { 62314 id: "a3bdf60ee0afd9a8e2bd9e870633573", 62315 transactionType: "DEBIT", 62316 studioName: "MetaDesk", 62317 machineName: "Ming", 62318 projectName: "CitySubwayTrainModular", 62319 shotName: "NewLevelSequence", 62320 startTime: "2025-02-19T20:56:28", 62321 endTime: "2025-02-19T21:15:45", 62322 duration: .3214, 62323 rate: 96, 62324 subtotal: 30.85 62325}]; 62326function OIe() { 62327 const e = CIe 62328 , t = e.reduce( (n, r) => n + r.subtotal, 0); 62329 return h.jsxs(cn, { 62330 children: [h.jsxs(Kt, { 62331 className: "flex flex-row items-center justify-between", 62332 children: [h.jsx(Gt, { 62333 children: "Render Jobs History" 62334 }), h.jsxs("div", { 62335 className: "flex items-center gap-2 text-lg", 62336 children: [h.jsx(Yy, { 62337 className: "h-5 w-5" 62338 }), h.jsxs("span", { 62339 children: ["Total Cost: $", t.toFixed(2)] 62340 })] 62341 })] 62342 }), h.jsx(Ct, { 62343 children: h.jsxs(Gh, { 62344 children: [h.jsx(Yh, { 62345 children: h.jsxs(Vi, {
62346 children: [h.jsx(mt, { 62347 children: "Render ID" 62348 }), h.jsx(mt, { 62349 children: "Transaction Type" 62350 }), h.jsx(mt, { 62351 children: "Studio Name" 62352 }), h.jsx(mt, { 62353 children: "Machine Name" 62354 }), h.jsx(mt, { 62355 children: "Project Name" 62356 }), h.jsx(mt, { 62357 children: "Shot Name" 62358 }), h.jsx(mt, { 62359 children: "Start Time" 62360 }), h.jsx(mt, { 62361 children: "End Time" 62362 }), h.jsx(mt, { 62363 children: "Duration (hrs)" 62364 }), h.jsx(mt, { 62365 children: "Rate" 62366 }), h.jsx(mt, { 62367 children: "Subtotal" 62368 })] 62369 }) 62370 }), h.jsx(Xh, { 62371 children: e.map(n => h.jsxs(Vi, { 62372 children: [h.jsx(ut, { 62373 className: "font-mono", 62374 children: n.id 62375 }), h.jsx(ut, { 62376 children: n.transactionType 62377 }), h.jsx(ut, { 62378 children: n.studioName 62379 }), h.jsx(ut, { 62380 children: n.machineName 62381 }), h.jsx(ut, { 62382 children: n.projectName 62383 }), h.jsx(ut, { 62384 children: n.shotName 62385 }), h.jsx(ut, { 62386 children: eh(new Date(n.startTime), "yyyy-MM-dd HH:mm:ss") 62387 }), h.jsx(ut, { 62388 children: eh(new Date(n.endTime), "yyyy-MM-dd HH:mm:ss") 62389 }), h.jsx(ut, { 62390 children: n.duration.toFixed(4) 62391 }), h.jsxs(ut, { 62392 children: ["$", n.rate] 62393 }), h.jsxs(ut, { 62394 children: ["$", n.subtotal.toFixed(2)] 62395 })] 62396 }, n.id)) 62397 })] 62398 }) 62399 })] 62400 }) 62401} 62402const AIe = Ee(cn) 62403 , Kp = [{ 62404 id: "a5000", 62405 name: "Nvidia A5000 (24GB VRAM)", 62406 rate: 1.4, 62407 details: "12 vCPUs | 48GB RAM" 62408}, { 62409 id: "a6000", 62410 name: "Nvidia A6000 (48GB VRAM)", 62411 rate: 2.0, 62412 details: "16 vCPUs | 64GB RAM" 62413}, { 62414 id: "a6000-pro", 62415 name: "Nvidia A6000 Pro (48GB VRAM)", 62416 rate: 2.95, 62417 details: "32 vCPUs | 128GB RAM" 62418}, { 62419 id: "l40s", 62420 name: "Nvidia L40S (48GB VRAM)", 62421 rate: 4.1, 62422 details: "16 vCPUs | 64GB RAM" 62423}, { 62424 id: "l40s-pro", 62425 name: "Nvidia L40S Pro (48GB VRAM)", 62426 rate: 7.45, 62427 details: "48 vCPUs | 196GB RAM" 62428}]; 62429function EIe() { 62430 const [e,t] = b.useState(Kp[0]) 62431 , [n,r] = b.useState("") 62432 , [i,o] = b.useState("") 62433 , a = () => { 62434 const d = parseFloat(n) 62435 , f = parseInt(i); 62436 return isNaN(d) || isNaN(f) ? 0 : d * f / 60 62437 } 62438 , s = () => { 62439 const d = a(); 62440 return isNaN(d) ? 0 : e.rate * d 62441 } 62442 , l = a() 62443 , c = s() 62444 , u = d => { 62445 if (d < 1 / 60) 62446 return `${Math.round(d * 3600)} seconds`; 62447 if (d < 1) 62448 return `${Math.round(d * 60)} minutes`; 62449 const f = Math.floor(d) 62450 , p = Math.round((d - f) * 60); 62451 return p > 0 ? `${f}h ${p}m` : `${f}h` 62452 } 62453 ; 62454 return h.jsx("div", { 62455 className: "container mx-auto py-8", 62456 children: h.jsx(Ee.div, { 62457 variants: Ut, 62458 initial: "initial", 62459 animate: "animate", 62460 className: "max-w-2xl mx-auto", 62461 children: h.jsxs(AIe, { 62462 variants: It, 62463 children: [h.jsx(Kt, { 62464 children: h.jsxs(Gt, { 62465 className: "flex items-center gap-2", 62466 children: [h.jsx($P, { 62467 className: "h-6 w-6" 62468 }), "Render Cost Calculator"] 62469 }) 62470 }), h.jsxs(Ct, { 62471 className: "space-y-6", 62472 children: [h.jsxs("div", { 62473 className: "space-y-2", 62474 children: [h.jsx(xa, { 62475 children: "GPU Tier" 62476 }), h.jsxs(gv, { 62477 value: e.id, 62478 onValueChange: d => t(Kp.find(f => f.id === d) || Kp[0]), 62479 children: [h.jsx(Ih, { 62480 children: h.jsx(yv, {}) 62481 }), h.jsx($h, { 62482 children: Kp.map(d => h.jsxs(go, { 62483 value: d.id, 62484 children: [d.name, " ($", d.rate, "/hour)"] 62485 }, d.id)) 62486 })] 62487 })] 62488 }), h.jsxs("div", { 62489 className: "space-y-2", 62490 children: [h.jsx(xa, { 62491 children: "Estimated Time per Frame (minutes)" 62492 }), h.jsx(yn, { 62493 type: "number", 62494 min: "0.1", 62495 step: "0.1", 62496 placeholder: "Enter minutes per frame", 62497 value: n, 62498 onChange: d => r(d.target.value) 62499 })] 62500 }), h.jsxs("div", { 62501 className: "space-y-2", 62502 children: [h.jsx(xa, { 62503 children: "Total Number of Frames" 62504 }), h.jsx(yn, { 62505 type: "number", 62506 min: "1", 62507 step: "1", 62508 placeholder: "Enter total frames", 62509 value: i, 62510 onChange: d => o(d.target.value) 62511 })] 62512 }), h.jsx(cn, { 62513 className: "bg-muted/50", 62514 children: h.jsxs(Ct, { 62515 className: "pt-6", 62516 children: [h.jsxs("div", { 62517 className: "grid grid-cols-2 gap-4", 62518 children: [h.jsxs("div", { 62519 children: [h.jsx("p", { 62520 className: "text-sm text-muted-foreground", 62521 children: "Rate" 62522 }), h.jsxs("p", { 62523 className: "text-2xl font-bold", 62524 children: ["$", e.rate, "/hour"] 62525 })] 62526 }), h.jsxs("div", { 62527 children: [h.jsx("p", { 62528 className: "text-sm text-muted-foreground", 62529 children: "Total Time" 62530 }), h.jsx("p", { 62531 className: "text-2xl font-bold", 62532 children: u(l) 62533 })] 62534 }), h.jsxs("div", { 62535 className: "col-span-2", 62536 children: [h.jsx("p", { 62537 className: "text-sm text-muted-foreground", 62538 children: "Total Cost" 62539 }), h.jsxs("p", { 62540 className: "text-2xl font-bold", 62541 children: ["$", c.toFixed(2)] 62542 })] 62543 })] 62544 }), h.jsx("p", { 62545 className: "text-sm text-muted-foreground mt-4",
vendor: 6,720 bytes, lines 62546-62778
62546 children: "Note: 1 Credit = $1. Actual render time may vary based on scene complexity and resource availability." 62547 })] 62548 }) 62549 })] 62550 })] 62551 }) 62552 }) 62553 }) 62554} 62555var PC = "Tabs" 62556 , [jIe,t$e] = zr(PC, [wv]) 62557 , v7 = wv() 62558 , [NIe,_C] = jIe(PC) 62559 , x7 = b.forwardRef( (e, t) => { 62560 const {__scopeTabs: n, value: r, onValueChange: i, defaultValue: o, orientation: a="horizontal", dir: s, activationMode: l="automatic", ...c} = e 62561 , u = kh(s) 62562 , [d,f] = pi({ 62563 prop: r, 62564 onChange: i, 62565 defaultProp: o 62566 }); 62567 return h.jsx(NIe, { 62568 scope: n, 62569 baseId: Ir(), 62570 value: d, 62571 onValueChange: f, 62572 orientation: a, 62573 dir: u, 62574 activationMode: l, 62575 children: h.jsx(Ce.div, { 62576 dir: u, 62577 "data-orientation": a, 62578 ...c, 62579 ref: t 62580 }) 62581 }) 62582} 62583); 62584x7.displayName = PC; 62585var b7 = "TabsList" 62586 , w7 = b.forwardRef( (e, t) => { 62587 const {__scopeTabs: n, loop: r=!0, ...i} = e 62588 , o = _C(b7, n) 62589 , a = v7(n); 62590 return h.jsx(wU, { 62591 asChild: !0, 62592 ...a, 62593 orientation: o.orientation, 62594 dir: o.dir, 62595 loop: r, 62596 children: h.jsx(Ce.div, { 62597 role: "tablist", 62598 "aria-orientation": o.orientation, 62599 ...i, 62600 ref: t 62601 }) 62602 }) 62603} 62604); 62605w7.displayName = b7; 62606var S7 = "TabsTrigger" 62607 , P7 = b.forwardRef( (e, t) => { 62608 const {__scopeTabs: n, value: r, disabled: i=!1, ...o} = e 62609 , a = _C(S7, n) 62610 , s = v7(n) 62611 , l = C7(a.baseId, r) 62612 , c = O7(a.baseId, r) 62613 , u = r === a.value; 62614 return h.jsx(SU, { 62615 asChild: !0, 62616 ...s, 62617 focusable: !i, 62618 active: u, 62619 children: h.jsx(Ce.button, { 62620 type: "button", 62621 role: "tab", 62622 "aria-selected": u, 62623 "aria-controls": c, 62624 "data-state": u ? "active" : "inactive", 62625 "data-disabled": i ? "" : void 0, 62626 disabled: i, 62627 id: l, 62628 ...o, 62629 ref: t, 62630 onMouseDown: ye(e.onMouseDown, d => { 62631 !i && d.button === 0 && d.ctrlKey === !1 ? a.onValueChange(r) : d.preventDefault() 62632 } 62633 ), 62634 onKeyDown: ye(e.onKeyDown, d => { 62635 [" ", "Enter"].includes(d.key) && a.onValueChange(r) 62636 } 62637 ), 62638 onFocus: ye(e.onFocus, () => { 62639 const d = a.activationMode !== "manual"; 62640 !u && !i && d && a.onValueChange(r) 62641 } 62642 ) 62643 }) 62644 }) 62645} 62646); 62647P7.displayName = S7; 62648var _7 = "TabsContent" 62649 , T7 = b.forwardRef( (e, t) => { 62650 const {__scopeTabs: n, value: r, forceMount: i, children: o, ...a} = e 62651 , s = _C(_7, n) 62652 , l = C7(s.baseId, r) 62653 , c = O7(s.baseId, r) 62654 , u = r === s.value 62655 , d = b.useRef(u); 62656 return b.useEffect( () => { 62657 const f = requestAnimationFrame( () => d.current = !1); 62658 return () => cancelAnimationFrame(f) 62659 } 62660 , []), 62661 h.jsx(Xi, { 62662 present: i || u, 62663 children: ({present: f}) => h.jsx(Ce.div, { 62664 "data-state": u ? "active" : "inactive", 62665 "data-orientation": s.orientation, 62666 role: "tabpanel", 62667 "aria-labelledby": l, 62668 hidden: !f, 62669 id: c, 62670 tabIndex: 0, 62671 ...a, 62672 ref: t, 62673 style: { 62674 ...e.style, 62675 animationDuration: d.current ? "0s" : void 0 62676 }, 62677 children: f && o 62678 }) 62679 }) 62680} 62681); 62682T7.displayName = _7; 62683function C7(e, t) { 62684 return `${e}-trigger-${t}` 62685} 62686function O7(e, t) { 62687 return `${e}-content-${t}` 62688} 62689var MIe = x7 62690 , A7 = w7 62691 , E7 = P7 62692 , j7 = T7; 62693const kIe = MIe 62694 , N7 = b.forwardRef( ({className: e, ...t}, n) => h.jsx(A7, { 62695 ref: n, 62696 className: fe("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", e), 62697 ...t 62698})); 62699N7.displayName = A7.displayName; 62700const yd = b.forwardRef( ({className: e, ...t}, n) => h.jsx(E7, { 62701 ref: n, 62702 className: fe("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", e), 62703 ...t 62704})); 62705yd.displayName = E7.displayName; 62706const vd = b.forwardRef( ({className: e, ...t}, n) => h.jsx(j7, { 62707 ref: n, 62708 className: fe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", e), 62709 ...t 62710})); 62711vd.displayName = j7.displayName; 62712var TC = "Switch" 62713 , [RIe,n$e] = zr(TC) 62714 , [DIe,IIe] = RIe(TC) 62715 , M7 = b.forwardRef( (e, t) => { 62716 const {__scopeSwitch: n, name: r, checked: i, defaultChecked: o, required: a, disabled: s, value: l="on", onCheckedChange: c, form: u, ...d} = e 62717 , [f,p] = b.useState(null) 62718 , g = Ye(t, w => p(w)) 62719 , m = b.useRef(!1) 62720 , x = f ? u || !!f.closest("form") : !0 62721 , [v=!1,y] = pi({ 62722 prop: i, 62723 defaultProp: o, 62724 onChange: c 62725 }); 62726 return h.jsxs(DIe, { 62727 scope: n, 62728 checked: v, 62729 disabled: s, 62730 children: [h.jsx(Ce.button, { 62731 type: "button", 62732 role: "switch", 62733 "aria-checked": v, 62734 "aria-required": a, 62735 "data-state": D7(v), 62736 "data-disabled": s ? "" : void 0, 62737 disabled: s, 62738 value: l, 62739 ...d, 62740 ref: g, 62741 onClick: ye(e.onClick, w => { 62742 y(P => !P), 62743 x && (m.current = w.isPropagationStopped(), 62744 m.current || w.stopPropagation()) 62745 } 62746 ) 62747 }), x && h.jsx($Ie, { 62748 control: f, 62749 bubbles: !m.current, 62750 name: r, 62751 value: l, 62752 checked: v, 62753 required: a, 62754 disabled: s, 62755 form: u, 62756 style: { 62757 transform: "translateX(-100%)" 62758 } 62759 })] 62760 }) 62761} 62762); 62763M7.displayName = TC; 62764var k7 = "SwitchThumb" 62765 , R7 = b.forwardRef( (e, t) => { 62766 const {__scopeSwitch: n, ...r} = e 62767 , i = IIe(k7, n); 62768 return h.jsx(Ce.span, { 62769 "data-state": D7(i.checked), 62770 "data-disabled": i.disabled ? "" : void 0, 62771 ...r, 62772 ref: t 62773 }) 62774} 62775); 62776R7.displayName = k7; 62777var $Ie = e => { 62778 const {control: t, checked: n, bubbles: r=!0, ...i} = e
62779 , o = b.useRef(null) 62780 , a = rV(n) 62781 , s = U3(t); 62782 return b.useEffect( () => { 62783 const l = o.current 62784 , c = window.HTMLInputElement.prototype 62785 , d = Object.getOwnPropertyDescriptor(c, "checked").set; 62786 if (a !== n && d) { 62787 const f = new Event("click",{ 62788 bubbles: r 62789 }); 62790 d.call(l, n), 62791 l.dispatchEvent(f) 62792 } 62793 } 62794 , [a, n, r]), 62795 h.jsx("input", { 62796 type: "checkbox", 62797 "aria-hidden": !0, 62798 defaultChecked: n, 62799 ...i, 62800 tabIndex: -1, 62801 ref: o, 62802 style: { 62803 ...e.style, 62804 ...s, 62805 position: "absolute", 62806 pointerEvents: "none", 62807 opacity: 0, 62808 margin: 0 62809 } 62810 }) 62811} 62812; 62813function D7(e) { 62814 return e ? "checked" : "unchecked" 62815} 62816var I7 = M7 62817 , LIe = R7; 62818const xd = b.forwardRef( ({className: e, ...t}, n) => h.jsx(I7, { 62819 className: fe("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", e), 62820 ...t, 62821 ref: n, 62822 children: h.jsx(LIe, { 62823 className: fe("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") 62824 }) 62825})); 62826xd.displayName = I7.displayName; 62827const FIe = Ve.object({ 62828 name: Ve.string().min(2, "Name must be at least 2 characters").optional(), 62829 email: Ve.string().email("Invalid email address").optional(), 62830 phone: Ve.string().optional() 62831}) 62832 , BIe = Ve.object({ 62833 studioName: Ve.string().min(2, "Studio name must be at least 2 characters").optional(), 62834 address: Ve.string().optional(), 62835 website: Ve.string().url("Invalid website URL").optional().or(Ve.literal("")) 62836}) 62837 , VIe = Ve.object({ 62838 renderComplete: Ve.boolean(), 62839 renderError: Ve.boolean(), 62840 lowCredits: Ve.boolean(), 62841 newsletter: Ve.boolean() 62842}) 62843 , Gp = Ee(cn); 62844function UIe() { 62845 const {user: e} = za() 62846 , {toast: t} = Fa() 62847 , n = xm({ 62848 resolver: wm(FIe), 62849 defaultValues: { 62850 name: (e == null ? void 0 : e.name) || "", 62851 email: (e == null ? void 0 : e.email) || (e == null ? void 0 : e.username) || "", 62852 phone: (e == null ? void 0 : e.phone) || "" 62853 } 62854 }) 62855 , r = xm({ 62856 resolver: wm(BIe), 62857 defaultValues: { 62858 studioName: (e == null ? void 0 : e.studioName) || (e == null ? void 0 : e.companyName) || "", 62859 address: (e == null ? void 0 : e.address) || "", 62860 website: (e == null ? void 0 : e.website) || "" 62861 } 62862 }) 62863 , i = xm({ 62864 resolver: wm(VIe), 62865 defaultValues: { 62866 renderComplete: !0, 62867 renderError: !0, 62868 lowCredits: !0, 62869 newsletter: !1 62870 } 62871 }) 62872 , o = ci({ 62873 mutationFn: async l => (await Di("PATCH", "/api/user/profile", l)).json(), 62874 onSuccess: () => { 62875 hr.invalidateQueries({ 62876 queryKey: ["/api/user"] 62877 }), 62878 t({ 62879 title: "Profile Updated", 62880 description: "Your profile has been successfully updated." 62881 }) 62882 } 62883 , 62884 onError: () => { 62885 t({ 62886 title: "Update Failed", 62887 description: "Failed to update profile. Please try again.", 62888 variant: "destructive" 62889 }) 62890 } 62891 }) 62892 , a = ci({ 62893 mutationFn: async l => (await Di("PATCH", "/api/user/studio", l)).json(), 62894 onSuccess: () => { 62895 hr.invalidateQueries({ 62896 queryKey: ["/api/user"] 62897 }), 62898 t({
62899 title: "Studio Settings Updated", 62900 description: "Your studio settings have been successfully updated." 62901 }) 62902 } 62903 , 62904 onError: () => { 62905 t({ 62906 title: "Update Failed", 62907 description: "Failed to update studio settings. Please try again.", 62908 variant: "destructive" 62909 }) 62910 } 62911 }) 62912 , s = ci({ 62913 mutationFn: async l => (await Di("PATCH", "/api/user/notifications", l)).json(), 62914 onSuccess: () => { 62915 t({ 62916 title: "Notifications Updated", 62917 description: "Your notification preferences have been updated." 62918 }) 62919 } 62920 , 62921 onError: () => { 62922 t({ 62923 title: "Update Failed", 62924 description: "Failed to update notification preferences. Please try again.", 62925 variant: "destructive" 62926 }) 62927 } 62928 }); 62929 return h.jsxs("div", { 62930 className: "container mx-auto py-8 px-4 max-w-4xl", 62931 children: [h.jsx(Ee.h1, { 62932 className: "text-4xl font-bold mb-8", 62933 variants: Ut, 62934 initial: "initial", 62935 animate: "animate", 62936 children: "Settings" 62937 }), h.jsxs(kIe, { 62938 defaultValue: "profile", 62939 className: "space-y-8", 62940 children: [h.jsxs(N7, { 62941 className: "grid w-full grid-cols-4", 62942 children: [h.jsxs(yd, { 62943 value: "profile", 62944 className: "flex items-center gap-2", 62945 children: [h.jsx(TX, { 62946 className: "h-4 w-4" 62947 }), "Profile"] 62948 }), h.jsxs(yd, { 62949 value: "studio", 62950 className: "flex items-center gap-2", 62951 children: [h.jsx(SX, { 62952 className: "h-4 w-4" 62953 }), "Studio"] 62954 }), h.jsxs(yd, { 62955 value: "notifications", 62956 className: "flex items-center gap-2", 62957 children: [h.jsx(bX, { 62958 className: "h-4 w-4" 62959 }), "Notifications"] 62960 }), h.jsxs(yd, { 62961 value: "security", 62962 className: "flex items-center gap-2", 62963 children: [h.jsx(E4, { 62964 className: "h-4 w-4" 62965 }), "Security"] 62966 })] 62967 }), h.jsx(vd, { 62968 value: "profile", 62969 children: h.jsxs(Gp, { 62970 variants: It, 62971 children: [h.jsxs(Kt, { 62972 children: [h.jsx(Gt, { 62973 children: "Profile Settings" 62974 }), h.jsx(od, { 62975 children: "Manage your personal information and contact details." 62976 })] 62977 }), h.jsx(Ct, { 62978 children: h.jsx(bm, { 62979 ...n, 62980 children: h.jsxs("form", { 62981 onSubmit: n.handleSubmit(l => o.mutate(l)), 62982 className: "space-y-4", 62983 children: [h.jsx(ir, { 62984 control: n.control, 62985 name: "name", 62986 render: ({field: l}) => h.jsxs(Gn, { 62987 children: [h.jsx(Rn, { 62988 children: "Name" 62989 }), h.jsx(Yn, { 62990 children: h.jsx(yn, { 62991 ...l 62992 }) 62993 }), h.jsx(Ai, {})] 62994 }) 62995 }), h.jsx(ir, { 62996 control: n.control, 62997 name: "email", 62998 render: ({field: l}) => h.jsxs(Gn, { 62999 children: [h.jsx(Rn, { 63000 children: "Email" 63001 }), h.jsx(Yn, { 63002 children: h.jsx(yn, { 63003 ...l, 63004 type: "email" 63005 }) 63006 }), h.jsx(Ai, {})] 63007 }) 63008 }), h.jsx(ir, { 63009 control: n.control, 63010 name: "phone", 63011 render: ({field: l}) => h.jsxs(Gn, { 63012 children: [h.jsx(Rn, { 63013 children: "Phone (Optional)" 63014 }), h.jsx(Yn, { 63015 children: h.jsx(yn, { 63016 ...l, 63017 type: "tel" 63018 }) 63019 }), h.jsx(Ai, {})] 63020 }) 63021 }), h.jsx(Me, { 63022 type: "submit", 63023 disabled: o.isPending, 63024 children: o.isPending ? "Saving..." : "Save Changes" 63025 })] 63026 }) 63027 }) 63028 })] 63029 }) 63030 }), h.jsx(vd, { 63031 value: "studio", 63032 children: h.jsxs(Gp, { 63033 variants: It, 63034 children: [h.jsxs(Kt, { 63035 children: [h.jsx(Gt, {
63036 children: "Studio Settings" 63037 }), h.jsx(od, { 63038 children: "Manage your studio's information and business details." 63039 })] 63040 }), h.jsx(Ct, { 63041 children: h.jsx(bm, { 63042 ...r, 63043 children: h.jsxs("form", { 63044 onSubmit: r.handleSubmit(l => a.mutate(l)), 63045 className: "space-y-4", 63046 children: [h.jsx(ir, { 63047 control: r.control, 63048 name: "studioName", 63049 render: ({field: l}) => h.jsxs(Gn, { 63050 children: [h.jsx(Rn, { 63051 children: "Studio Name" 63052 }), h.jsx(Yn, { 63053 children: h.jsx(yn, { 63054 ...l 63055 }) 63056 }), h.jsx(Ai, {})] 63057 }) 63058 }), h.jsx(ir, { 63059 control: r.control, 63060 name: "address", 63061 render: ({field: l}) => h.jsxs(Gn, { 63062 children: [h.jsx(Rn, { 63063 children: "Address (Optional)" 63064 }), h.jsx(Yn, { 63065 children: h.jsx(yn, { 63066 ...l 63067 }) 63068 }), h.jsx(Ai, {})] 63069 }) 63070 }), h.jsx(ir, { 63071 control: r.control, 63072 name: "website", 63073 render: ({field: l}) => h.jsxs(Gn, { 63074 children: [h.jsx(Rn, { 63075 children: "Website (Optional)" 63076 }), h.jsx(Yn, { 63077 children: h.jsx(yn, { 63078 ...l, 63079 type: "url", 63080 placeholder: "https://" 63081 }) 63082 }), h.jsx(Ai, {})] 63083 }) 63084 }), h.jsx(Me, { 63085 type: "submit", 63086 disabled: a.isPending, 63087 children: a.isPending ? "Saving..." : "Save Changes" 63088 })] 63089 }) 63090 }) 63091 })] 63092 }) 63093 }), h.jsx(vd, { 63094 value: "notifications", 63095 children: h.jsxs(Gp, { 63096 variants: It, 63097 children: [h.jsxs(Kt, { 63098 children: [h.jsx(Gt, { 63099 children: "Notification Preferences" 63100 }), h.jsx(od, { 63101 children: "Choose which notifications you'd like to receive." 63102 })] 63103 }), h.jsx(Ct, { 63104 children: h.jsx(bm, { 63105 ...i, 63106 children: h.jsxs("form", { 63107 onSubmit: i.handleSubmit(l => s.mutate(l)), 63108 className: "space-y-6", 63109 children: [h.jsx(ir, { 63110 control: i.control, 63111 name: "renderComplete", 63112 render: ({field: l}) => h.jsxs(Gn, { 63113 className: "flex items-center justify-between", 63114 children: [h.jsxs("div", { 63115 children: [h.jsx(Rn, { 63116 children: "Render Complete" 63117 }), h.jsx(pd, { 63118 children: "Get notified when your renders are complete" 63119 })] 63120 }), h.jsx(Yn, { 63121 children: h.jsx(xd, { 63122 checked: l.value, 63123 onCheckedChange: l.onChange 63124 }) 63125 })] 63126 }) 63127 }), h.jsx(ir, { 63128 control: i.control, 63129 name: "renderError", 63130 render: ({field: l}) => h.jsxs(Gn, { 63131 className: "flex items-center justify-between", 63132 children: [h.jsxs("div", { 63133 children: [h.jsx(Rn, { 63134 children: "Render Errors" 63135 }), h.jsx(pd, { 63136 children: "Get notified about render failures" 63137 })] 63138 }), h.jsx(Yn, { 63139 children: h.jsx(xd, { 63140 checked: l.value, 63141 onCheckedChange: l.onChange 63142 }) 63143 })] 63144 }) 63145 }), h.jsx(ir, { 63146 control: i.control, 63147 name: "lowCredits", 63148 render: ({field: l}) => h.jsxs(Gn, { 63149 className: "flex items-center justify-between", 63150 children: [h.jsxs("div", { 63151 children: [h.jsx(Rn, { 63152 children: "Low Credits" 63153 }), h.jsx(pd, { 63154 children: "Get notified when your credits are running low" 63155 })] 63156 }), h.jsx(Yn, { 63157 children: h.jsx(xd, { 63158 checked: l.value, 63159 onCheckedChange: l.onChange 63160 }) 63161 })] 63162 }) 63163 }), h.jsx(ir, { 63164 control: i.control, 63165 name: "newsletter", 63166 render: ({field: l}) => h.jsxs(Gn, { 63167 className: "flex items-center justify-between", 63168 children: [h.jsxs("div", { 63169 children: [h.jsx(Rn, { 63170 children: "Newsletter" 63171 }), h.jsx(pd, { 63172 children: "Receive updates about new features and improvements" 63173 })] 63174 }), h.jsx(Yn, { 63175 children: h.jsx(xd, { 63176 checked: l.value, 63177 onCheckedChange: l.onChange 63178 }) 63179 })] 63180 }) 63181 }), h.jsx(Me, { 63182 type: "submit", 63183 disabled: s.isPending, 63184 children: s.isPending ? "Saving..." : "Save Preferences" 63185 })] 63186 }) 63187 }) 63188 })] 63189 }) 63190 }), h.jsx(vd, { 63191 value: "security", 63192 children: h.jsxs(Gp, { 63193 variants: It, 63194 children: [h.jsxs(Kt, { 63195 children: [h.jsx(Gt, { 63196 children: "Security Settings" 63197 }), h.jsx(od, { 63198 children: "Manage your account security and authentication settings." 63199 })] 63200 }), h.jsxs(Ct, { 63201 className: "space-y-4", 63202 children: [h.jsxs("div", { 63203 className: "space-y-4", 63204 children: [h.jsx("h3", { 63205 className: "font-medium", 63206 children: "Change Password" 63207 }), h.jsxs("div", { 63208 className: "grid gap-4", 63209 children: [h.jsx(yn, { 63210 type: "password", 63211 placeholder: "Current password" 63212 }), h.jsx(yn, { 63213 type: "password", 63214 placeholder: "New password" 63215 }), h.jsx(yn, { 63216 type: "password", 63217 placeholder: "Confirm new password" 63218 }), h.jsx(Me, { 63219 className: "w-fit", 63220 children: "Update Password" 63221 })] 63222 })] 63223 }), h.jsxs("div", { 63224 className: "space-y-4 pt-6", 63225 children: [h.jsx("h3", { 63226 className: "font-medium", 63227 children: "Two-Factor Authentication" 63228 }), h.jsx("p", { 63229 className: "text-sm text-muted-foreground", 63230 children: "Add an extra layer of security to your account by enabling two-factor authentication." 63231 }), h.jsx(Me, { 63232 variant: "outline", 63233 children: "Enable 2FA" 63234 })] 63235 })] 63236 })] 63237 }) 63238 })] 63239 })] 63240 }) 63241} 63242function zIe() { 63243 return h.jsxs(dY, { 63244 client: hr, 63245 children: [h.jsxs(HG, { 63246 children: [h.jsx(ll, { 63247 path: "/", 63248 component: Lne 63249 }), h.jsx(ll, { 63250 path: "/pricing", 63251 component: Yoe 63252 }), h.jsx(ll, { 63253 path: "/faq", 63254 component: xae 63255 }), h.jsx(ll, { 63256 path: "/welcome", 63257 children: () => h.jsx(m2, { 63258 children: ({user: e}) => h.jsx(tj, { 63259 activePath: "/welcome", 63260 children: h.jsx(eRe, {}) 63261 }) 63262 }) 63263 }), [{ 63264 path: "/dashboard", 63265 component: W2e 63266 }, { 63267 path: "/keys", 63268 component: K2e 63269 }, { 63270 path: "/machines", 63271 component: G2e 63272 }, { 63273 path: "/billing", 63274 component: Q2e 63275 }, { 63276 path: "/renders", 63277 component: OIe 63278 }, { 63279 path: "/calculator", 63280 component: EIe 63281 }, { 63282 path: "/download", 63283 component: nRe 63284 }, { 63285 path: "/support", 63286 component: _Ie 63287 }, { 63288 path: "/settings", 63289 component: UIe 63290 }].map( ({path: e, component: t}) => h.jsx(ll, { 63291 path: e, 63292 children: () => h.jsx(m2, { 63293 children: ({user: n}) => h.jsx(tj, { 63294 activePath: e, 63295 children: h.jsx(t, {}) 63296 }) 63297 }) 63298 }, e)), h.jsx(ll, { 63299 component: wQ 63300 })] 63301 }), h.jsx(bQ, {})] 63302 }) 63303} 63304SF(document.getElementById("root")).render(h.jsx(zIe, {})); 63305
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.