PageSourceSearch

https://nolongerneedit.com/assets/index-B0Eayvez.js

js nolongerneedit.com collected 2026-10-04 18:03:08 UTC 817,426 bytes, 420 lines download raw bytes

vendor: 6,679 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MapView-BXSMDvG0.js","assets/MapView-25t4MxmA.css"])))=>i.map(i=>d[i]);
2var rN=Object.defineProperty;var aw=e=>{throw TypeError(e)};var sN=(e,t,n)=>t in e?rN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var st=(e,t,n)=>sN(e,typeof t!="symbol"?t+"":t,n),xp=(e,t,n)=>t.has(e)||aw("Cannot "+n);var L=(e,t,n)=>(xp(e,t,"read from private field"),n?n.call(e):t.get(e)),Re=(e,t,n)=>t.has(e)?aw("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),pe=(e,t,n,r)=>(xp(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ze=(e,t,n)=>(xp(e,t,"access private method"),n);var Du=(e,t,n,r)=>({set _(i){pe(e,t,i,n)},get _(){return L(e,t,r)}});function iN(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function Pg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z7(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var wp={exports:{}},gl={},bp={exports:{}},Be={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var lw;function oN(){if(lw)return Be;lw=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function v(P){return P===null||typeof P!="object"?null:(P=g&&P[g]||P["@@iterator"],typeof P=="function"?P:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,_={};function k(P,W,ce){this.props=P,this.context=W,this.refs=_,this.updater=ce||b}k.prototype.isReactComponent={},k.prototype.setState=function(P,W){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,W,"setState")},k.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function S(){}S.prototype=k.prototype;function R(P,W,ce){this.props=P,this.context=W,this.refs=_,this.updater=ce||b}var C=R.prototype=new S;C.constructor=R,E(C,k.prototype),C.isPureReactComponent=!0;var T=Array.isArray,N=Object.prototype.hasOwnProperty,O={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function M(P,W,ce){var de,ge={},ae=null,ie=null;if(W!=null)for(de in W.ref!==void 0&&(ie=W.ref),W.key!==void 0&&(ae=""+W.key),W)N.call(W,de)&&!B.hasOwnProperty(de)&&(ge[de]=W[de]);var be=arguments.length-2;if(be===1)ge.children=ce;else if(1<be){for(var Se=Array(be),Me=0;Me<be;Me++)Se[Me]=arguments[Me+2];ge.children=Se}if(P&&P.defaultProps)for(de in be=P.defaultProps,be)ge[de]===void 0&&(ge[de]=be[de]);return{$$typeof:e,type:P,key:ae,ref:ie,props:ge,_owner:O.current}}function Y(P,W){return{$$typeof:e,type:P.type,key:W,ref:P.ref,props:P.props,_owner:P._owner}}function G(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function K(P){var W={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(ce){return W[ce]})}var q=/\/+/g;function Q(P,W){return typeof P=="object"&&P!==null&&P.key!=null?K(""+P.key):W.toString(36)}function Z(P,W,ce,de,ge){var ae=typeof P;(ae==="undefined"||ae==="boolean")&&(P=null);var ie=!1;if(P===null)ie=!0;else switch(ae){case"string":case"number":ie=!0;break;case"object":switch(P.$$typeof){case e:case t:ie=!0}}if(ie)return ie=P,ge=ge(ie),P=de===""?"."+Q(ie,0):de,T(ge)?(ce="",P!=null&&(ce=P.replace(q,"$&/")+"/"),Z(ge,W,ce,"",function(Me){return Me})):ge!=null&&(G(ge)&&(ge=Y(ge,ce+(!ge.key||ie&&ie.key===ge.key?"":(""+ge.key).replace(q,"$&/")+"/")+P)),W.push(ge)),1;if(ie=0,de=de===""?".":de+":",T(P))for(var be=0;be<P.length;be++){ae=P[be];var Se=de+Q(ae,be);ie+=Z(ae,W,ce,Se,ge)}else if(Se=v(P),typeof Se=="function")for(P=Se.call(P),be=0;!(ae=P.next()).done;)ae=ae.value,Se=de+Q(ae,be++),ie+=Z(ae,W,ce,Se,ge);else if(ae==="object")throw W=String(P),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return ie}function he(P,W,ce){if(P==null)return P;var de=[],ge=0;return Z(P,de,"","",function(ae){return W.call(ce,ae,ge++)}),de}function X(P){if(P._status===-1){var W=P._result;W=W(),W.then(function(ce){(P._status===0||P._status===-1)&&(P._status=1,P._result=ce)},function(ce){(P._status===0||P._status===-1)&&(P._status=2,P._result=ce)}),P._status===-1&&(P._status=0,P._result=W)}if(P._status===1)return P._result.default;throw P._result}var re={current:null},V={transition:null},te={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:V,ReactCurrentOwner:O};function $(){throw Error("act(...) is not supported in production builds of React.")}return Be.Children={map:he,forEach:function(P,W,ce){he(P,function(){W.apply(this,arguments)},ce)}
vendor: 7,827 bytes, lines 10-26
10,count:function(P){var W=0;return he(P,function(){W++}),W},toArray:function(P){return he(P,function(W){return W})||[]},only:function(P){if(!G(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Be.Component=k,Be.Fragment=n,Be.Profiler=i,Be.PureComponent=R,Be.StrictMode=r,Be.Suspense=f,Be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,Be.act=$,Be.cloneElement=function(P,W,ce){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var de=E({},P.props),ge=P.key,ae=P.ref,ie=P._owner;if(W!=null){if(W.ref!==void 0&&(ae=W.ref,ie=O.current),W.key!==void 0&&(ge=""+W.key),P.type&&P.type.defaultProps)var be=P.type.defaultProps;for(Se in W)N.call(W,Se)&&!B.hasOwnProperty(Se)&&(de[Se]=W[Se]===void 0&&be!==void 0?be[Se]:W[Se])}var Se=arguments.length-2;if(Se===1)de.children=ce;else if(1<Se){be=Array(Se);for(var Me=0;Me<Se;Me++)be[Me]=arguments[Me+2];de.children=be}return{$$typeof:e,type:P.type,key:ge,ref:ae,props:de,_owner:ie}},Be.createContext=function(P){return P={$$typeof:l,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:a,_context:P},P.Consumer=P},Be.createElement=M,Be.createFactory=function(P){var W=M.bind(null,P);return W.type=P,W},Be.createRef=function(){return{current:null}},Be.forwardRef=function(P){return{$$typeof:u,render:P}},Be.isValidElement=G,Be.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:X}},Be.memo=function(P,W){return{$$typeof:p,type:P,compare:W===void 0?null:W}},Be.startTransition=function(P){var W=V.transition;V.transition={};try{P()}finally{V.transition=W}},Be.unstable_act=$,Be.useCallback=function(P,W){return re.current.useCallback(P,W)},Be.useContext=function(P){return re.current.useContext(P)},Be.useDebugValue=function(){},Be.useDeferredValue=function(P){return re.current.useDeferredValue(P)},Be.useEffect=function(P,W){return re.current.useEffect(P,W)},Be.useId=function(){return re.current.useId()},Be.useImperativeHandle=function(P,W,ce){return re.current.useImperativeHandle(P,W,ce)},Be.useInsertionEffect=function(P,W){return re.current.useInsertionEffect(P,W)},Be.useLayoutEffect=function(P,W){return re.current.useLayoutEffect(P,W)},Be.useMemo=function(P,W){return re.current.useMemo(P,W)},Be.useReducer=function(P,W,ce){return re.current.useReducer(P,W,ce)},Be.useRef=function(P){return re.current.useRef(P)},Be.useState=function(P){return re.current.useState(P)},Be.useSyncExternalStore=function(P,W,ce){return re.current.useSyncExternalStore(P,W,ce)},Be.useTransition=function(){return re.current.useTransition()},Be.version="18.3.1",Be}var cw;function Ag(){return cw||(cw=1,bp.exports=oN()),bp.exports}/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var uw;function aN(){if(uw)return gl;uw=1;var e=Ag(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(u,f,p){var m,g={},v=null,b=null;p!==void 0&&(v=""+p),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(b=f.ref);for(m in f)r.call(f,m)&&!a.hasOwnProperty(m)&&(g[m]=f[m]);if(u&&u.defaultProps)for(m in f=u.defaultProps,f)g[m]===void 0&&(g[m]=f[m]);return{$$typeof:t,type:u,key:v,ref:b,props:g,_owner:i.current}}return gl.Fragment=n,gl.jsx=l,gl.jsxs=l,gl}var dw;function lN(){return dw||(dw=1,wp.exports=aN()),wp.exports}var d=lN(),w=Ag();const Tn=Pg(w),Gd=iN({__proto__:null,default:Tn},[w]);var Lu={},Sp={exports:{}},gn={},_p={exports:{}},kp={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */var fw;function cN(){return fw||(fw=1,(function(e){function t(V,te){var $=V.length;V.push(te);e:for(;0<$;){var P=$-1>>>1,W=V[P];if(0<i(W,te))V[P]=te,V[$]=W,$=P;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var te=V[0],$=V.pop();if($!==te){V[0]=$;e:for(var P=0,W=V.length,ce=W>>>1;P<ce;){var de=2*(P+1)-1,ge=V[de],ae=de+1,ie=V[ae];if(0>i(ge,$))ae<W&&0>i(ie,ge)?(V[P]=ie,V[ae]=$,P=ae):(V[P]=ge,V[de]=$,P=de);else if(ae<W&&0>i(ie,$))V[P]=ie,V[ae]=$,P=ae;else break e}}return te}function i(V,te){var $=V.sortIndex-te.sortIndex;return $!==0?$:V.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var f=[],p=[],m=1,g=null,v=3,b=!1,E=!1,_=!1,k=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(V){for(var te=n(p);te!==null;){if(te.callback===null)r(p);else if(te.startTime<=V)r(p),te.sortIndex=te.expirationTime,t(f,te);else break;te=n(p)}}function T(V){if(_=!1,C(V),!E)if(n(f)!==null)E=!0,X(N);else{var te=n(p);te!==null&&re(T,te.startTime-V)}}function N(V,te){E=!1,_&&(_=!1,S(M),M=-1),b=!0;var $=v;try{for(C(te),g=n(f);g!==null&&(!(g.expirationTime>te)||V&&!K());){var P=g.callback;if(typeof P=="function"){g.callback=null,v=g.priorityLevel;var W=P(g.expirationTime<=te);te=e.unstable_now(),typeof W=="function"?g.callback=W:g===n(f)&&r(f),C(te)}else r(f);g=n(f)}if(g!==null)var ce=!0;else{var de=n(p);de!==null&&re(T,de.startTime-te),ce=!1}return ce}finally{g=null,v=$,b=!1}}var O=!1,B=null,M=-1,Y=5,G=-1;function K(){return!(e.unstable_now()-G<Y)}function q(){if(B!==null){var V=e.unstable_now();G=V;var te=!0;try{te=B(!0,V)}finally{te?Q():(O=!1,B=null)}}else O=!1}var Q;if(typeof R=="function")Q=function(){R(q)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,he=Z.port2;Z.port1.onmessage=q,Q=function(){he.postMessage(null)}}else Q=function(){k(q,0)};function X(V){B=V,O||(O=!0,Q())}function re(V,te){M=k(function(){V(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_continueExecution=function(){E||b||(E=!0,X(N))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(V){switch(v){case 1:case 2:case 3:var te=3;break;default:te=v}var $=v;v=te;try{return V()}finally{v=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,te){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var $=v;v=V;try{return te()}finally{v=$}},e.unstable_scheduleCallback=function(V,te,$){var P=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?P+$:P):$=P,V){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=$+W,V={id:m++,callback:te,priorityLevel:V,startTime:$,expirationTime:W,sortIndex:-1},$>P?(V.sortIndex=$,t(p,V),n(f)===null&&V===n(p)&&(_?(S(M),M=-1):_=!0,re(T,$-P))):(V.sortIndex=W,t(f,V),E||b||(E=!0,X(N))
vendor: 4,441 bytes, lines 26-34
26),V},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(V){var te=v;return function(){var $=v;v=te;try{return V.apply(this,arguments)}finally{v=$}}}})(kp)),kp}var hw;function uN(){return hw||(hw=1,_p.exports=cN()),_p.exports}/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var pw;function dN(){if(pw)return gn;pw=1;var e=Ag(),t=uN();function n(s){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+s,c=1;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+s+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function a(s,o){l(s,o),l(s+"Capture",o)}function l(s,o){for(i[s]=o,s=0;s<o.length;s++)r.add(o[s])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,m={},g={};function v(s){return f.call(g,s)?!0:f.call(m,s)?!1:p.test(s)?g[s]=!0:(m[s]=!0,!1)}function b(s,o,c,h){if(c!==null&&c.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return h?!1:c!==null?!c.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function E(s,o,c,h){if(o===null||typeof o>"u"||b(s,o,c,h))return!0;if(h)return!1;if(c!==null)switch(c.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function _(s,o,c,h,y,x,j){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=c,this.propertyName=s,this.type=o,this.sanitizeURL=x,this.removeEmptyString=j}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){k[s]=new _(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var o=s[0];k[o]=new _(o,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){k[s]=new _(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){k[s]=new _(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){k[s]=new _(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){k[s]=new _(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){k[s]=new _(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){k[s]=new _(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){k[s]=new _(s,5,!1,s.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function R(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
34-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(s){var o=s.replace(S,R);k[o]=new _(o,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var o=s.replace(S,R);k[o]=new _(o,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var o=s.replace(S,R);k[o]=new _(o,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){k[s]=new _(s,1,!1,s.toLowerCase(),null,!1,!1)}),k.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){k[s]=new _(s,1,!1,s.toLowerCase(),null,!0,!0)});function C(s,o,c,h){var y=k.hasOwnProperty(o)?k[o]:null;(y!==null?y.type!==0:h||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(E(o,c,y,h)&&(c=null),h||y===null?v(o)&&(c===null?s.removeAttribute(o):s.setAttribute(o,""+c)):y.mustUseProperty?s[y.propertyName]=c===null?y.type===3?!1:"":c:(o=y.attributeName,h=y.attributeNamespace,c===null?s.removeAttribute(o):(y=y.type,c=y===3||y===4&&c===!0?"":""+c,h?s.setAttributeNS(h,o,c):s.setAttribute(o,c))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=Symbol.for("react.element"),O=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),K=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),he=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),V=Symbol.iterator;function te(s){return s===null||typeof s!="object"?null:(s=V&&s[V]||s["@@iterator"],typeof s=="function"?s:null)}var $=Object.assign,P;function W(s){if(P===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);P=o&&o[1]||""}return`
35`+P+s}var ce=!1;function de(s,o){if(!s||ce)return"";ce=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(H){var h=H}Reflect.construct(s,[],o)}else{try{o.call()}catch(H){h=H}s.call(o.prototype)}else{try{throw Error()}catch(H){h=H}s()}}catch(H){if(H&&h&&typeof H.stack=="string"){for(var y=H.stack.split(`
36`),x=h.stack.split(`
37`),j=y.length-1,A=x.length-1;1<=j&&0<=A&&y[j]!==x[A];)A--;for(;1<=j&&0<=A;j--,A--)if(y[j]!==x[A]){if(j!==1||A!==1)do if(j--,A--,0>A||y[j]!==x[A]){var D=`
38`+y[j].replace(" at new "," at ");return s.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",s.displayName)),D}while(1<=j&&0<=A);break}}}finally{ce=!1,Error.prepareStackTrace=c}return(s=s?s.displayName||s.name:"")?W(s):""}function ge(s){switch(s.tag){case 5:return W(s.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return s=de(s.type,!1),s;case 11:return s=de(s.type.render,!1),s;case 1:return s=de(s.type,!0),s;default:return""}}function ae(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case B:return"Fragment";case O:return"Portal";case Y:return"Profiler";case M:return"StrictMode";case Q:return"Suspense";case Z:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case K:return(s.displayName||"Context")+".Consumer";case G:return(s._context.displayName||"Context")+".Provider";case q:var o=s.render;return s=s.displayName,s||(s=o.displayName||o.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case he:return o=s.displayName||null,o!==null?o:ae(s.type)||"Memo";case X:o=s._payload,s=s._init;try{return ae(s(o))}catch{}}return null}function ie(s){var o=s.type;switch(s.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=o.render,s=s.displayName||s.name||"",o.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ae(o);case 8:return o===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;
vendor: 20,420 bytes, line 38
38if(typeof o=="string")return o}return null}function be(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Se(s){var o=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Me(s){var o=Se(s)?"checked":"value",c=Object.getOwnPropertyDescriptor(s.constructor.prototype,o),h=""+s[o];if(!s.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var y=c.get,x=c.set;return Object.defineProperty(s,o,{configurable:!0,get:function(){return y.call(this)},set:function(j){h=""+j,x.call(this,j)}}),Object.defineProperty(s,o,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(j){h=""+j},stopTracking:function(){s._valueTracker=null,delete s[o]}}}}function Le(s){s._valueTracker||(s._valueTracker=Me(s))}function Oe(s){if(!s)return!1;var o=s._valueTracker;if(!o)return!0;var c=o.getValue(),h="";return s&&(h=Se(s)?s.checked?"true":"false":s.value),s=h,s!==c?(o.setValue(s),!0):!1}function it(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function ht(s,o){var c=o.checked;return $({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??s._wrapperState.initialChecked})}function Lt(s,o){var c=o.defaultValue==null?"":o.defaultValue,h=o.checked!=null?o.checked:o.defaultChecked;c=be(o.value!=null?o.value:c),s._wrapperState={initialChecked:h,initialValue:c,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Ne(s,o){o=o.checked,o!=null&&C(s,"checked",o,!1)}function pt(s,o){Ne(s,o);var c=be(o.value),h=o.type;if(c!=null)h==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+c):s.value!==""+c&&(s.value=""+c);else if(h==="submit"||h==="reset"){s.removeAttribute("value");return}o.hasOwnProperty("value")?qt(s,o.type,c):o.hasOwnProperty("defaultValue")&&qt(s,o.type,be(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(s.defaultChecked=!!o.defaultChecked)}function Sn(s,o,c){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var h=o.type;if(!(h!=="submit"&&h!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+s._wrapperState.initialValue,c||o===s.value||(s.value=o),s.defaultValue=o}c=s.name,c!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,c!==""&&(s.name=c)}function qt(s,o,c){(o!=="number"||it(s.ownerDocument)!==s)&&(c==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+c&&(s.defaultValue=""+c))}var fs=Array.isArray;function hs(s,o,c,h){if(s=s.options,o){o={};for(var y=0;y<c.length;y++)o["$"+c[y]]=!0;for(c=0;c<s.length;c++)y=o.hasOwnProperty("$"+s[c].value),s[c].selected!==y&&(s[c].selected=y),y&&h&&(s[c].defaultSelected=!0)}else{for(c=""+be(c),o=null,y=0;y<s.length;y++){if(s[y].value===c){s[y].selected=!0,h&&(s[y].defaultSelected=!0);return}o!==null||s[y].disabled||(o=s[y])}o!==null&&(o.selected=!0)}}function Ir(s,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return $({},o,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function y0(s,o){var c=o.value;if(c==null){if(c=o.children,o=o.defaultValue,c!=null){if(o!=null)throw Error(n(92));if(fs(c)){if(1<c.length)throw Error(n(93));c=c[0]}o=c}o==null&&(o=""),c=o}s._wrapperState={initialValue:be(c)}}function v0(s,o){var c=be(o.value),h=be(o.defaultValue);c!=null&&(c=""+c,c!==s.value&&(s.value=c),o.defaultValue==null&&s.defaultValue!==c&&(s.defaultValue=c)),h!=null&&(s.defaultValue=""+h)}function x0(s){var o=s.textContent;o===s._wrapperState.initialValue&&o!==""&&o!==null&&(s.value=o)}function w0(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Nf(s,o){return s==null||s==="http://www.w3.org/1999/xhtml"?w0(o):s==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Tc,b0=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,c,h,y){MSApp.execUnsafeLocalFunction(function(){return s(o,c,h,y)})}:s})(function(s,o){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=o;else{for(Tc=Tc||document.createElement("div"),Tc.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Tc.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;o.firstChild;)s.appendChild(o.firstChild)}});function Aa(s,o){if(o){var c=s.firstChild;if(c&&c===s.lastChild&&c.nodeType===3){c.nodeValue=o;return}}s.textContent=o}var Oa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},aj=["Webkit","ms","Moz","O"];Object.keys(Oa).forEach(function(s){aj.forEach(function(o){o=o+s.charAt(0).toUpperCase()+s.substring(1),Oa[o]=Oa[s]})});function S0(s,o,c){return o==null||typeof o=="boolean"||o===""?"":c||typeof o!="number"||o===0||Oa.hasOwnProperty(s)&&Oa[s]?(""+o).trim():o+"px"}function _0(s,o){s=s.style;for(var c in o)if(o.hasOwnProperty(c)){var h=c.indexOf("--")===0,y=S0(c,o[c],h);c==="float"&&(c="cssFloat"),h?s.setProperty(c,y):s[c]=y}}var lj=$({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pf(s,o){if(o){if(lj[s]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Af(s,o){if(s.indexOf("-")===-1)return typeof o.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Of=null;function Mf(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Df=null,oo=null,ao=null;function k0(s){if(s=tl(s)){if(typeof Df!="function")throw Error(n(280));var o=s.stateNode;o&&(o=Qc(o),Df(s.stateNode,s.type,o))}}function E0(s){oo?ao?ao.push(s):ao=[s]:oo=s}function C0(){if(oo){var s=oo,o=ao;if(ao=oo=null,k0(s),o)for(s=0;s<o.length;s++)k0(o[s])}}function T0(s,o){return s(o)}function j0(){}var Lf=!1;function R0(s,o,c){if(Lf)return s(o,c);Lf=!0;try{return T0(s,o,c)}finally{Lf=!1,(oo!==null||ao!==null)&&(j0(),C0())}}function Ma(s,o){var c=s.stateNode;if(c===null)return null;var h=Qc(c);if(h===null)return null;c=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(s=s.type,h=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!h;break e;default:s=!1}if(s)return null;if(c&&typeof c!="function")throw Error(n(231,o,typeof c));return c}var If=!1;if(u)try{var Da={};Object.defineProperty(Da,"passive",{get:function(){If=!0}}),window.addEventListener("test",Da,Da),window.removeEventListener("test",Da,Da)}catch{If=!1}function cj(s,o,c,h,y,x,j,A,D){var H=Array.prototype.slice.call(arguments,3);try{o.apply(c,H)}catch(ee){this.onError(ee)}}var La=!1,jc=null,Rc=!1,Ff=null,uj={onError:function(s){La=!0,jc=s}};function dj(s,o,c,h,y,x,j,A,D){La=!1,jc=null,cj.apply(uj,arguments)}function fj(s,o,c,h,y,x,j,A,D){if(dj.apply(this,arguments),La){if(La){var H=jc;La=!1,jc=null}else throw Error(n(198));Rc||(Rc=!0,Ff=H)}}function di(s){var o=s,c=s;if(s.alternate)for(;o.return;)o=o.return;else{s=o;do o=s,(o.flags&4098)!==0&&(c=o.return),s=o.return;while(s)}return o.tag===3?c:null}function N0(s){if(s.tag===13){var o=s.memoizedState;if(o===null&&(s=s.alternate,s!==null&&(o=s.memoizedState)),o!==null)return o.dehydrated}return null}function P0(s){if(di(s)!==s)throw Error(n(188))}function hj(s){var o=s.alternate;if(!o){if(o=di(s),o===null)throw Error(n(188));return o!==s?null:s}for(var c=s,h=o;;){var y=c.return;if(y===null)break;var x=y.alternate;if(x===null){if(h=y.return,h!==null){c=h;continue}break}if(y.child===x.child){for(x=y.child;x;){if(x===c)return P0(y),s;if(x===h)return P0(y),o;x=x.sibling}throw Error(n(188))}if(c.return!==h.return)c=y,h=x;else{for(var j=!1,A=y.child;A;){if(A===c){j=!0,c=y,h=x;break}if(A===h){j=!0,h=y,c=x;break}A=A.sibling}if(!j){for(A=x.child;A;){if(A===c){j=!0,c=x,h=y;break}if(A===h){j=!0,h=x,c=y;break}A=A.sibling}if(!j)throw Error(n(189))}}if(c.alternate!==h)throw Error(n(190))}if(c.tag!==3)throw Error(n(188));return c.stateNode.current===c?s:o}function A0(s){return s=hj(s),s!==null?O0(s):null}function O0(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var o=O0(s);if(o!==null)return o;s=s.sibling}return null}var M0=t.unstable_scheduleCallback,D0=t.unstable_cancelCallback,pj=t.unstable_shouldYield,mj=t.unstable_requestPaint,St=t.unstable_now,gj=t.unstable_getCurrentPriorityLevel,Bf=t.unstable_ImmediatePriority,L0=t.unstable_UserBlockingPriority,Nc=t.unstable_NormalPriority,yj=t.unstable_LowPriority,I0=t.unstable_IdlePriority,Pc=null,pr=null;function vj(s){if(pr&&typeof pr.onCommitFiberRoot=="function")try{pr.onCommitFiberRoot(Pc,s,void 0,(s.current.flags&128)===128)}catch{}}var Qn=Math.clz32?Math.clz32:bj,xj=Math.log,wj=Math.LN2;function bj(s){return s>>>=0,s===0?32:31-(xj(s)/wj|0)|0}var Ac=64,Oc=4194304;function Ia(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Mc(s,o){var c=s.pendingLanes;if(c===0)return 0;var h=0,y=s.suspendedLanes,x=s.pingedLanes,j=c&268435455;if(j!==0){var A=j&~y;A!==0?h=Ia(A):(x&=j,x!==0&&(h=Ia(x)))}else j=c&~y,j!==0?h=Ia(j):x!==0&&(h=Ia(x));if(h===0)return 0;if(o!==0&&o!==h&&(o&y)===0&&(y=h&-h,x=o&-o,y>=x||y===16&&(x&4194240)!==0))return o;if((h&4)!==0&&(h|=c&16),o=s.entangledLanes,o!==0)for(s=s.entanglements,o&=h;0<o;)c=31-Qn(o),y=1<<c,h|=s[c],o&=~y;return h}function Sj(s,o){switch(s){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _j(s,o){for(var c=s.suspendedLanes,h=s.pingedLanes,y=s.expirationTimes,x=s.pendingLanes;0<x;){var j=31-Qn(x),A=1<<j,D=y[j];D===-1?((A&c)===0||(A&h)!==0)&&(y[j]=Sj(A,o)):D<=o&&(s.expiredLanes|=A),x&=~A}}function Uf(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function F0(){var s=Ac;return Ac<<=1,(Ac&4194240)===0&&(Ac=64),s}function Vf(s){for(var o=[],c=0;31>c;c++)o.push(s);return o}function Fa(s,o,c){s.pendingLanes|=o,o!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,o=31-Qn(o),s[o]=c}function kj(s,o){var c=s.pendingLanes&~o;s.pendingLanes=o,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=o,s.mutableReadLanes&=o,s.entangledLanes&=o,o=s.entanglements;var h=s.eventTimes;for(s=s.expirationTimes;0<c;){var y=31-Qn(c),x=1<<y;o[y]=0,h[y]=-1,s[y]=-1,c&=~x}}function zf(s,o){var c=s.entangledLanes|=o;for(s=s.entanglements;c;){var h=31-Qn(c),y=1<<h;y&o|s[h]&o&&(s[h]|=o),c&=~y}}var Ze=0;function B0(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var U0,Wf,V0,z0,W0,$f=!1,Dc=[],ps=null,ms=null,gs=null,Ba=new Map,Ua=new Map,ys=[],Ej="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function $0(s,o){switch(s){case"focusin":case"focusout":ps=null;break;case"dragenter":case"dragleave":ms=null;break;case"mouseover":case"mouseout":gs=null;break;case"pointerover":case"pointerout":Ba.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ua.delete(o.pointerId)}}function Va(s,o,c,h,y,x){return s===null||s.nativeEvent!==x?(s={blockedOn:o,domEventName:c,eventSystemFlags:h,nativeEvent:x,targetContainers:[y]},o!==null&&(o=tl(o),o!==null&&Wf(o)),s):(s.eventSystemFlags|=h,o=s.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),s)}function Cj(s,o,c,h,y){switch(o){case"focusin":return ps=Va(ps,s,o,c,h,y),!0;case"dragenter":return ms=Va(ms,s,o,c,h,y),!0;case"mouseover":return gs=Va(gs,s,o,c,h,y),!0;case"pointerover":var x=y.pointerId;return Ba.set(x,Va(Ba.get(x)||null,s,o,c,h,y)),!0;case"gotpointercapture":return x=y.pointerId,Ua.set(x,Va(Ua.get(x)||null,s,o,c,h,y)),!0}return!1}function H0(s){var o=fi(s.target);if(o!==null){var c=di(o);if(c!==null){if(o=c.tag,o===13){if(o=N0(c),o!==null){s.blockedOn=o,W0(s.priority,function(){V0(c)});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){s.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Lc(s){if(s.blockedOn!==null)return!1;for(var o=s.targetContainers;0<o.length;){var c=Yf(s.domEventName,s.eventSystemFlags,o[0],s.nativeEvent);if(c===null){c=s.nativeEvent;var h=new c.constructor(c.type,c);Of=h,c.target.dispatchEvent(h),Of=null}else return o=tl(c),o!==null&&Wf(o),s.blockedOn=c,!1;o.shift()}return!0}function Y0(s,o,c){Lc(s)&&c.delete(o)}function Tj(){$f=!1,ps!==null&&Lc(ps)&&(ps=null),ms!==null&&Lc(ms)&&(ms=null),gs!==null&&Lc(gs)&&(gs=null),Ba.forEach(Y0),Ua.forEach(Y0)}function za(s,o){s.blockedOn===o&&(s.blockedOn=null,$f||($f=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Tj)))}function Wa(s){function o(y){return za(y,s)}if(0<Dc.length){za(Dc[0],s);for(var c=1;c<Dc.length;c++){var h=Dc[c];h.blockedOn===s&&(h.blockedOn=null)}}for(ps!==null&&za(ps,s),ms!==null&&za(ms,s),gs!==null&&za(gs,s),Ba.forEach(o),Ua.forEach(o),c=0;c<ys.length;c++)h=ys[c],h.blockedOn===s&&(h.blockedOn=null);for(;0<ys.length&&(c=ys[0],c.blockedOn===null);)H0(c),c.blockedOn===null&&ys.shift()}var lo=T.ReactCurrentBatchConfig,Ic=!0;function jj(s,o,c,h){var y=Ze,x=lo.transition;lo.transition=null;try{Ze=1,Hf(s,o,c,h)}finally{Ze=y,lo.transition=x}}function Rj(s,o,c,h){var y=Ze,x=lo.transition;lo.transition=null;try{Ze=4,Hf(s,o,c,h)}finally{Ze=y,lo.transition=x}}function Hf(s,o,c,h){if(Ic){var y=Yf(s,o,c,h);if(y===null)ch(s,o,h,Fc,c),$0(s,h);else if(Cj(y,s,o,c,h))h.stopPropagation();else if($0(s,h),o&4&&-1<Ej.indexOf(s)){for(;y!==null;){var x=tl(y);if(x!==null&&U0(x),x=Yf(s,o,c,h),x===null&&ch(s,o,h,Fc,c),x===y)break;y=x}y!==null&&h.stopPropagation()}else ch(s,o,h,null,c)}}var Fc=null;function Yf(s,o,c,h){if(Fc=null,s=Mf(h),s=fi(s),s!==null)if(o=di(s),o===null)s=null;else if(c=o.tag,c===13){if(s=N0(o),s!==null)return s;s=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null);return Fc=s,null}function q0(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(gj()){case Bf:return 1;case L0:return 4;case Nc:case yj:return 16;case I0:return 536870912;default:return 16}default:return 16}}var vs=null,qf=null,Bc=null;function G0(){if(Bc)return Bc;var s,o=qf,c=o.length,h,y="value"in vs?vs.value:vs.textContent,x=y.length;for(s=0;s<c&&o[s]===y[s];s++);var j=c-s;for(h=1;h<=j&&o[c-h]===y[x-h];h++);return Bc=y.slice(s,1<h?1-h:void 0)}function Uc(s){var o=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&o===13&&(s=13)):s=o,s===10&&(s=13),32<=s||s===13?s:0}function Vc(){return!0}function K0(){return!1}function _n(s){function o(c,h,y,x,j){this._reactName=c,this._targetInst=y,this.type=h,this.nativeEvent=x,this.target=j,this.currentTarget=null;for(var A in s)s.hasOwnProperty(A)&&(c=s[A],this[A]=c?c(x):x[A]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Vc:K0,this.isPropagationStopped=K0,this}return $(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Vc)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Vc)},persist:function(){},isPersistent:Vc}),o}var co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gf=_n(co),$a=$({},co,{view:0,detail:0}),Nj=_n($a),Kf,Qf,Ha,zc=$({},$a,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zf,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Ha&&(Ha&&s.type==="mousemove"?(Kf=s.screenX-Ha.screenX,Qf=s.screenY-Ha.screenY):Qf=Kf=0,Ha=s),Kf)},movementY:function(s){return"movementY"in s?s.movementY:Qf}}),Q0=_n(zc),Pj=$({},zc,{dataTransfer:0}),Aj=_n(Pj),Oj=$({},$a,{relatedTarget:0}),Xf=_n(Oj),Mj=$({},co,{animationName:0,elapsedTime:0,pseudoElement:0}),Dj=_n(Mj),Lj=$({},co,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),Ij=_n(Lj),Fj=$({},co,{data:0}),X0=_n(Fj),Bj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Uj={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Vj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zj(s){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(s):(s=Vj[s])?!!o[s]:!1}function Zf(){return zj}var Wj=$({},$a,{key:function(s){if(s.key){var o=Bj[s.key]||s.key;if(o!=="Unidentified")return o}return s.type==="keypress"?(s=Uc(s),s===13?"Enter":String.fromCharCode(s)):s.type==="
38keydown"||s.type==="keyup"?Uj[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zf,charCode:function(s){return s.type==="keypress"?Uc(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Uc(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),$j=_n(Wj),Hj=$({},zc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Z0=_n(Hj),Yj=$({},$a,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zf}),qj=_n(Yj),Gj=$({},co,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kj=_n(Gj),Qj=$({},zc,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),Xj=_n(Qj),Zj=[9,13,27,32],Jf=u&&"CompositionEvent"in window,Ya=null;u&&"documentMode"in document&&(Ya=document.documentMode);var Jj=u&&"TextEvent"in window&&!Ya,J0=u&&(!Jf||Ya&&8<Ya&&11>=Ya),ev=" ",tv=!1;function nv(s,o){switch(s){case"keyup":return Zj.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rv(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var uo=!1;function eR(s,o){switch(s){case"compositionend":return rv(o);case"keypress":return o.which!==32?null:(tv=!0,ev);case"textInput":return s=o.data,s===ev&&tv?null:s;default:return null}}function tR(s,o){if(uo)return s==="compositionend"||!Jf&&nv(s,o)?(s=G0(),Bc=qf=vs=null,uo=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return J0&&o.locale!=="ko"?null:o.data;default:return null}}var nR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sv(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o==="input"?!!nR[s.type]:o==="textarea"}function iv(s,o,c,h){E0(h),o=qc(o,"onChange"),0<o.length&&(c=new Gf("onChange","change",null,c,h),s.push({event:c,listeners:o}))}var qa=null,Ga=null;function rR(s){_v(s,0)}function Wc(s){var o=go(s);if(Oe(o))return s}function sR(s,o){if(s==="change")return o}var ov=!1;if(u){var eh;if(u){var th="oninput"in document;if(!th){var av=document.createElement("div");av.setAttribute("oninput","return;"),th=typeof av.oninput=="function"}eh=th}else eh=!1;ov=eh&&(!document.documentMode||9<document.documentMode)}function lv(){qa&&(qa.detachEvent("onpropertychange",cv),Ga=qa=null)}function cv(s){if(s.propertyName==="value"&&Wc(Ga)){var o=[];iv(o,Ga,s,Mf(s)),R0(rR,o)}}function iR(s,o,c){s==="focusin"?(lv(),qa=o,Ga=c,qa.attachEvent("onpropertychange",cv)):s==="focusout"&&lv()}function oR(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Wc(Ga)}function aR(s,o){if(s==="click")return Wc(o)}function lR(s,o){if(s==="input"||s==="change")return Wc(o)}function cR(s,o){return s===o&&(s!==0||1/s===1/o)||s!==s&&o!==o}var Xn=typeof Object.is=="function"?Object.is:cR;function Ka(s,o){if(Xn(s,o))return!0;if(typeof s!="object"||s===null||typeof o!="object"||o===null)return!1;var c=Object.keys(s),h=Object.keys(o);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var y=c[h];if(!f.call(o,y)||!Xn(s[y],o[y]))return!1}return!0}function uv(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function dv(s,o){var c=uv(s);s=0;for(var h;c;){if(c.nodeType===3){if(h=s+c.textContent.length,s<=o&&h>=o)return{node:c,offset:o-s};s=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=uv(c)}}function fv(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?fv(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function hv(){for(var s=window,o=it();o instanceof s.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)s=o.contentWindow;else break;o=it(s.document)}return o}function nh(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}function uR(s){var o=hv(),c=s.focusedElem,h=s.selectionRange;if(o!==c&&c&&c.ownerDocument&&fv(c.ownerDocument.documentElement,c)){if(h!==null&&nh(c)){if(o=h.start,s=h.end,s===void 0&&(s=o),"selectionStart"in c)c.selectionStart=o,c.selectionEnd=Math.min(s,c.value.length);else if(s=(o=c.ownerDocument||document)&&o.defaultView||window,s.getSelection){s=s.getSelection();var y=c.textContent.length,x=Math.min(h.start,y);h=h.end===void 0?x:Math.min(h.end,y),!s.extend&&x>h&&(y=h,h=x,x=y),y=dv(c,x);var j=dv(c,h);y&&j&&(s.rangeCount!==1||s.anchorNode!==y.node||s.anchorOffset!==y.offset||s.focusNode!==j.node||s.focusOffset!==j.offset)&&(o=o.createRange(),o.setStart(y.node,y.offset),s.removeAllRanges(),x>h?(s.addRange(o),s.extend(j.node,j.offset)):(o.setEnd(j.node,j.offset),s.addRange(o)))}}for(o=[],s=c;s=s.parentNode;)s.nodeType===1&&o.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<o.length;c++)s=o[c],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var dR=u&&"documentMode"in document&&11>=document.documentMode,fo=null,rh=null,Qa=null,sh=!1;function pv(s,o,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;sh||fo==null||fo!==it(h)||(h=fo,"selectionStart"in h&&nh(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focu
vendor: 12,613 bytes, lines 38-39
38sNode:h.focusNode,focusOffset:h.focusOffset}),Qa&&Ka(Qa,h)||(Qa=h,h=qc(rh,"onSelect"),0<h.length&&(o=new Gf("onSelect","select",null,o,c),s.push({event:o,listeners:h}),o.target=fo)))}function $c(s,o){var c={};return c[s.toLowerCase()]=o.toLowerCase(),c["Webkit"+s]="webkit"+o,c["Moz"+s]="moz"+o,c}var ho={animationend:$c("Animation","AnimationEnd"),animationiteration:$c("Animation","AnimationIteration"),animationstart:$c("Animation","AnimationStart"),transitionend:$c("Transition","TransitionEnd")},ih={},mv={};u&&(mv=document.createElement("div").style,"AnimationEvent"in window||(delete ho.animationend.animation,delete ho.animationiteration.animation,delete ho.animationstart.animation),"TransitionEvent"in window||delete ho.transitionend.transition);function Hc(s){if(ih[s])return ih[s];if(!ho[s])return s;var o=ho[s],c;for(c in o)if(o.hasOwnProperty(c)&&c in mv)return ih[s]=o[c];return s}var gv=Hc("animationend"),yv=Hc("animationiteration"),vv=Hc("animationstart"),xv=Hc("transitionend"),wv=new Map,bv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function xs(s,o){wv.set(s,o),a(o,[s])}for(var oh=0;oh<bv.length;oh++){var ah=bv[oh],fR=ah.toLowerCase(),hR=ah[0].toUpperCase()+ah.slice(1);xs(fR,"on"+hR)}xs(gv,"onAnimationEnd"),xs(yv,"onAnimationIteration"),xs(vv,"onAnimationStart"),xs("dblclick","onDoubleClick"),xs("focusin","onFocus"),xs("focusout","onBlur"),xs(xv,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xa="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(" "),pR=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xa));function Sv(s,o,c){var h=s.type||"unknown-event";s.currentTarget=c,fj(h,o,void 0,s),s.currentTarget=null}function _v(s,o){o=(o&4)!==0;for(var c=0;c<s.length;c++){var h=s[c],y=h.event;h=h.listeners;e:{var x=void 0;if(o)for(var j=h.length-1;0<=j;j--){var A=h[j],D=A.instance,H=A.currentTarget;if(A=A.listener,D!==x&&y.isPropagationStopped())break e;Sv(y,A,H),x=D}else for(j=0;j<h.length;j++){if(A=h[j],D=A.instance,H=A.currentTarget,A=A.listener,D!==x&&y.isPropagationStopped())break e;Sv(y,A,H),x=D}}}if(Rc)throw s=Ff,Rc=!1,Ff=null,s}function ot(s,o){var c=o[mh];c===void 0&&(c=o[mh]=new Set);var h=s+"__bubble";c.has(h)||(kv(o,s,2,!1),c.add(h))}function lh(s,o,c){var h=0;o&&(h|=4),kv(c,s,h,o)}var Yc="_reactListening"+Math.random().toString(36).slice(2);function Za(s){if(!s[Yc]){s[Yc]=!0,r.forEach(function(c){c!=="selectionchange"&&(pR.has(c)||lh(c,!1,s),lh(c,!0,s))});var o=s.nodeType===9?s:s.ownerDocument;o===null||o[Yc]||(o[Yc]=!0,lh("selectionchange",!1,o))}}function kv(s,o,c,h){switch(q0(o)){case 1:var y=jj;break;case 4:y=Rj;break;default:y=Hf}c=y.bind(null,o,c,s),y=void 0,!If||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),h?y!==void 0?s.addEventListener(o,c,{capture:!0,passive:y}):s.addEventListener(o,c,!0):y!==void 0?s.addEventListener(o,c,{passive:y}):s.addEventListener(o,c,!1)}function ch(s,o,c,h,y){var x=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var j=h.tag;if(j===3||j===4){var A=h.stateNode.containerInfo;if(A===y||A.nodeType===8&&A.parentNode===y)break;if(j===4)for(j=h.return;j!==null;){var D=j.tag;if((D===3||D===4)&&(D=j.stateNode.containerInfo,D===y||D.nodeType===8&&D.parentNode===y))return;j=j.return}for(;A!==null;){if(j=fi(A),j===null)return;if(D=j.tag,D===5||D===6){h=x=j;continue e}A=A.parentNode}}h=h.return}R0(function(){var H=x,ee=Mf(c),ne=[];e:{var J=wv.get(s);if(J!==void 0){var fe=Gf,xe=s;switch(s){case"keypress":if(Uc(c)===0)break e;case"keydown":case"keyup":fe=$j;break;case"focusin":xe="focus",fe=Xf;break;case"focusout":xe="blur",fe=Xf;break;case"beforeblur":case"afterblur":fe=Xf;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=Q0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=Aj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=qj;break;case gv:case yv:case vv:fe=Dj;break;case xv:fe=Kj;break;case"scroll":fe=Nj;break;case"wheel":fe=Xj;break;case"copy":case"cut":case"paste":fe=Ij;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=Z0}var ke=(o&4)!==0,_t=!ke&&s==="scroll",U=ke?J!==null?J+"Capture":null:J;ke=[];for(var F=H,z;F!==null;){z=F;var oe=z.stateNode;if(z.tag===5&&oe!==null&&(z=oe,U!==null&&(oe=Ma(F,U),oe!=null&&ke.push(Ja(F,oe,z)))),_t)break;F=F.return}0<ke.length&&(J=new fe(J,xe,null,c,ee),ne.push({event:J,listeners:ke}))}}if((o&7)===0){e:{if(J=s==="mouseover"||s==="pointerover",fe=s==="mouseout"||s==="pointerout",J&&c!==Of&&(xe=c.relatedTarget||c.fromElement)&&(fi(xe)||xe[Fr]))break e;if((fe||J)&&(J=ee.window===ee?ee:(J=ee.ownerDocument)?J.defaultView||J.parentWindow:window,fe?(xe=c.relatedTarget||c.toElement,fe=H,xe=xe?fi(xe):null,xe!==null&&(_t=di(xe),xe!==_t||xe.tag!==5&&xe.tag!==6)&&(xe=null)):(fe=null,xe=H),fe!==xe)){if(ke=Q0,oe="onMouseLeave",U="onMouseEnter",F="mouse",(s==="pointerout"||s==="pointerover")&&(ke=Z0,oe="onPointerLeave",U="onPointerEnter",F="pointer"),_t=fe==null?J:go(fe),z=xe==null?J:go(xe),J=new ke(oe,F+"leave",fe,c,ee),J.target=_t,J.relatedTarget=z,oe=null,fi(ee)===H&&(ke=new ke(U,F+"enter",xe,c,ee),ke.target=z,ke.relatedTarget=_t,oe=ke),_t=oe,fe&&xe)t:{for(ke=fe,U=xe,F=0,z=ke;z;z=po(z))F++;for(z=0,oe=U;oe;oe=po(oe))z++;for(;0<F-z;)ke=po(ke),F--;for(;0<z-F;)U=po(U),z--;for(;F--;){if(ke===U||U!==null&&ke===U.alternate)break t;ke=po(ke),U=po(U)}ke=null}else ke=null;fe!==null&&Ev(ne,J,fe,ke,!1),xe!==null&&_t!==null&&Ev(ne,_t,xe,ke,!0)}}e:{if(J=H?go(H):window,fe=J.nodeName&&J.nodeName.toLowerCase(),fe==="select"||fe==="input"&&J.type==="file")var Ee=sR;else if(sv(J))if(ov)Ee=lR;else{Ee=oR;var Te=iR}else(fe=J.nodeName)&&fe.toLowerCase()==="input"&&(J.type==="checkbox"||J.type==="radio")&&(Ee=aR);if(Ee&&(Ee=Ee(s,H))){iv(ne,Ee,c,ee);break e}Te&&Te(s,J,H),s==="focusout"&&(Te=J._wrapperState)&&Te.controlled&&J.type==="number"&&qt(J,"number",J.value)}switch(Te=H?go(H):window,s){case"focusin":(sv(Te)||Te.contentEditable==="true")&&(fo=Te,rh=H,Qa=null);break;case"focusout":Qa=rh=fo=null;break;case"mousedown":sh=!0;break;case"contextmenu":case"mouseup":case"dragend":sh=!1,pv(ne,c,ee);break;case"selectionchange":if(dR)break;case"keydown":case"keyup":pv(ne,c,ee)}var je;if(Jf)e:{switch(s){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else uo?nv(s,c)&&(Ae="onCompositionEnd"):s==="keydown"&&c.keyCode===229&&(Ae="onCompositionStart");Ae&&(J0&&c.locale!=="ko"&&(uo||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&uo&&(je=G0()):(vs=ee,qf="value"in vs?vs.value:vs.textContent,uo=!0)),Te=qc(H,Ae),0<Te.length&&(Ae=new X0(Ae,s,null,c,ee),ne.push({event:Ae,listeners:Te}),je?Ae.data=je:(je=rv(c),je!==null&&(Ae.data=je)))),(je=Jj?eR(s,c):tR(s,c))&&(H=qc(H,"onBeforeInput"),0<H.length&&(ee=new X0("onBeforeInput","beforeinput",null,c,ee),ne.push({event:ee,listeners:H}),ee.data=je))}_v(ne,o)})}function Ja(s,o,c){return{instance:s,listener:o,currentTarget:c}}function qc(s,o){for(var c=o+"Capture",h=[];s!==null;){var y=s,x=y.stateNode;y.tag===5&&x!==null&&(y=x,x=Ma(s,c),x!=null&&h.unshift(Ja(s,x,y)),x=Ma(s,o),x!=null&&h.push(Ja(s,x,y))),s=s.return}return h}function po(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Ev(s,o,c,h,y){for(var x=o._reactName,j=[];c!==null&&c!==h;){var A=c,D=A.alternate,H=A.stateNode;if(D!==null&&D===h)break;A.tag===5&&H!==null&&(A=H,y?(D=Ma(c,x),D!=null&&j.unshift(Ja(c,D,A))):y||(D=Ma(c,x),D!=null&&j.push(Ja(c,D,A)))),c=c.return}j.length!==0&&s.push({event:o,listeners:j})}var mR=/\r\n?/g,gR=/\u0000|\uFFFD/g;function Cv(s){return(typeof s=="string"?s:""+s).replace(mR,`
39`).replace(gR,"")}function Gc(s,o,c){if(o=Cv(o),Cv(s)!==o&&c)throw Error(n(425))}function Kc(){}var uh=null,dh=null;function fh(s,o){return s==="textarea"||s==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var hh=typeof setTimeout=="function"?setTimeout:void 0,yR=typeof clearTimeout=="function"?clearTimeout:void 0,Tv=typeof Promise=="function"?Promise:void 0,vR=typeof queueMicrotask=="function"?queueMicrotask:typeof Tv<"u"?function(s){return Tv.resolve(null).then(s).catch(xR)}:hh;function xR(s){setTimeout(function(){throw s})}function ph(s,o){var c=o,h=0;do{var y=c.nextSibling;if(s.removeChild(c),y&&y.nodeType===8)if(c=y.data,c==="/$"){if(h===0){s.removeChild(y),Wa(o);return}h--}else c!=="$"&&c!=="$?"&&c!=="$!"||h++;c=y}while(c);Wa(o)}function ws(s){for(;s!=null;s=s.nextSibling){var o=s.nodeType;if(o===1||o===3)break;if(o===8){if(o=s.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return s}function jv(s){s=s.previousSibling;for(var o=0;s;){if(s.nodeType===8){var c=s.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return s;o--}else c==="/$"&&o++}s=s.previousSibling}return null}var mo=Math.random().toString(36).slice(2),mr="__reactFiber$"+mo,el="__reactProps$"+mo,Fr="__reactContainer$"+mo,mh="__reactEvents$"+mo,wR="__reactListeners$"+mo,bR="__reactHandles$"+mo;function fi(s){var o=s[mr];if(o)return o;for(var c=s.parentNode;c;){if(o=c[Fr]||c[mr]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(s=jv(s);s!==null;){if(c=s[mr])return c;s=jv(s)}return o}s=c,c=s.parentNode}return null}function tl(s){return s=s[mr]||s[Fr],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function go(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function Qc(s){return s[el]||null}var gh=[],yo=-1;function bs(s){return{current:s}}function at(s){0>yo||(s.current=gh[yo],gh[yo]=null,yo--)}function rt(s,o){yo++,gh[yo]=s.current,s.current=o}var Ss={},Gt=bs(Ss),dn=bs(!1),hi=Ss;function vo(s,o){var c=s.type.contextTypes;if(!c)return Ss;var h=s.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===o)return h.__reactInternalMemoizedMaskedChildContext;var y={},x;for(x in c)y[x]=o[x];return h&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=o,s.__reactInternalMemoizedMaskedChildContext=y),y}function fn(s){return s=s.childContextTypes,s!=null}function Xc(){at(dn),at(Gt)}function Rv(s,o,c){if(Gt.current!==Ss)throw Error(n(168));rt(Gt,o),rt(dn,c)}function Nv(s,o,c){var h=s.stateNode;if(o=o.childContextTypes,typeof h.getChildContext!="function")return c;h=h.getChildContext();for(var y in h)if(!(y in o))throw Error(n(108,ie(s)||"Unknown",y));return $({},c,h)}function Zc(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Ss,hi=Gt.current,rt(Gt,s),rt(dn,dn.current),!0}function Pv(s,o,c){var h=s.stateNode;if(!h)throw Error(n(169));c?(s=Nv(s,o,hi),h.__reactInternalMemoizedMergedChildContext=s,at(dn),at(Gt),rt(Gt,s)):at(dn),rt(dn,c)}var Br=null,Jc=!1,yh=!1;function Av(s){Br===null?Br=[s]:Br.push(s)}function SR(s){Jc=!0,Av(s)}function _s(){if(!yh&&Br!==null){yh=!0;var s=0,o=Ze;try{var c=Br;
vendor: 7,532 bytes, line 39
39for(Ze=1;s<c.length;s++){var h=c[s];do h=h(!0);while(h!==null)}Br=null,Jc=!1}catch(y){throw Br!==null&&(Br=Br.slice(s+1)),M0(Bf,_s),y}finally{Ze=o,yh=!1}}return null}var xo=[],wo=0,eu=null,tu=0,On=[],Mn=0,pi=null,Ur=1,Vr="";function mi(s,o){xo[wo++]=tu,xo[wo++]=eu,eu=s,tu=o}function Ov(s,o,c){On[Mn++]=Ur,On[Mn++]=Vr,On[Mn++]=pi,pi=s;var h=Ur;s=Vr;var y=32-Qn(h)-1;h&=~(1<<y),c+=1;var x=32-Qn(o)+y;if(30<x){var j=y-y%5;x=(h&(1<<j)-1).toString(32),h>>=j,y-=j,Ur=1<<32-Qn(o)+y|c<<y|h,Vr=x+s}else Ur=1<<x|c<<y|h,Vr=s}function vh(s){s.return!==null&&(mi(s,1),Ov(s,1,0))}function xh(s){for(;s===eu;)eu=xo[--wo],xo[wo]=null,tu=xo[--wo],xo[wo]=null;for(;s===pi;)pi=On[--Mn],On[Mn]=null,Vr=On[--Mn],On[Mn]=null,Ur=On[--Mn],On[Mn]=null}var kn=null,En=null,dt=!1,Zn=null;function Mv(s,o){var c=Fn(5,null,null,0);c.elementType="DELETED",c.stateNode=o,c.return=s,o=s.deletions,o===null?(s.deletions=[c],s.flags|=16):o.push(c)}function Dv(s,o){switch(s.tag){case 5:var c=s.type;return o=o.nodeType!==1||c.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(s.stateNode=o,kn=s,En=ws(o.firstChild),!0):!1;case 6:return o=s.pendingProps===""||o.nodeType!==3?null:o,o!==null?(s.stateNode=o,kn=s,En=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(c=pi!==null?{id:Ur,overflow:Vr}:null,s.memoizedState={dehydrated:o,treeContext:c,retryLane:1073741824},c=Fn(18,null,null,0),c.stateNode=o,c.return=s,s.child=c,kn=s,En=null,!0):!1;default:return!1}}function wh(s){return(s.mode&1)!==0&&(s.flags&128)===0}function bh(s){if(dt){var o=En;if(o){var c=o;if(!Dv(s,o)){if(wh(s))throw Error(n(418));o=ws(c.nextSibling);var h=kn;o&&Dv(s,o)?Mv(h,c):(s.flags=s.flags&-4097|2,dt=!1,kn=s)}}else{if(wh(s))throw Error(n(418));s.flags=s.flags&-4097|2,dt=!1,kn=s}}}function Lv(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;kn=s}function nu(s){if(s!==kn)return!1;if(!dt)return Lv(s),dt=!0,!1;var o;if((o=s.tag!==3)&&!(o=s.tag!==5)&&(o=s.type,o=o!=="head"&&o!=="body"&&!fh(s.type,s.memoizedProps)),o&&(o=En)){if(wh(s))throw Iv(),Error(n(418));for(;o;)Mv(s,o),o=ws(o.nextSibling)}if(Lv(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,o=0;s;){if(s.nodeType===8){var c=s.data;if(c==="/$"){if(o===0){En=ws(s.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++}s=s.nextSibling}En=null}}else En=kn?ws(s.stateNode.nextSibling):null;return!0}function Iv(){for(var s=En;s;)s=ws(s.nextSibling)}function bo(){En=kn=null,dt=!1}function Sh(s){Zn===null?Zn=[s]:Zn.push(s)}var _R=T.ReactCurrentBatchConfig;function nl(s,o,c){if(s=c.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(n(309));var h=c.stateNode}if(!h)throw Error(n(147,s));var y=h,x=""+s;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===x?o.ref:(o=function(j){var A=y.refs;j===null?delete A[x]:A[x]=j},o._stringRef=x,o)}if(typeof s!="string")throw Error(n(284));if(!c._owner)throw Error(n(290,s))}return s}function ru(s,o){throw s=Object.prototype.toString.call(o),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":s))}function Fv(s){var o=s._init;return o(s._payload)}function Bv(s){function o(U,F){if(s){var z=U.deletions;z===null?(U.deletions=[F],U.flags|=16):z.push(F)}}function c(U,F){if(!s)return null;for(;F!==null;)o(U,F),F=F.sibling;return null}function h(U,F){for(U=new Map;F!==null;)F.key!==null?U.set(F.key,F):U.set(F.index,F),F=F.sibling;return U}function y(U,F){return U=Ps(U,F),U.index=0,U.sibling=null,U}function x(U,F,z){return U.index=z,s?(z=U.alternate,z!==null?(z=z.index,z<F?(U.flags|=2,F):z):(U.flags|=2,F)):(U.flags|=1048576,F)}function j(U){return s&&U.alternate===null&&(U.flags|=2),U}function A(U,F,z,oe){return F===null||F.tag!==6?(F=hp(z,U.mode,oe),F.return=U,F):(F=y(F,z),F.return=U,F)}function D(U,F,z,oe){var Ee=z.type;return Ee===B?ee(U,F,z.props.children,oe,z.key):F!==null&&(F.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===X&&Fv(Ee)===F.type)?(oe=y(F,z.props),oe.ref=nl(U,F,z),oe.return=U,oe):(oe=Tu(z.type,z.key,z.props,null,U.mode,oe),oe.ref=nl(U,F,z),oe.return=U,oe)}function H(U,F,z,oe){return F===null||F.tag!==4||F.stateNode.containerInfo!==z.containerInfo||F.stateNode.implementation!==z.implementation?(F=pp(z,U.mode,oe),F.return=U,F):(F=y(F,z.children||[]),F.return=U,F)}function ee(U,F,z,oe,Ee){return F===null||F.tag!==7?(F=_i(z,U.mode,oe,Ee),F.return=U,F):(F=y(F,z),F.return=U,F)}function ne(U,F,z){if(typeof F=="string"&&F!==""||typeof F=="number")return F=hp(""+F,U.mode,z),F.return=U,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case N:return z=Tu(F.type,F.key,F.props,null,U.mode,z),z.ref=nl(U,null,F),z.return=U,z;case O:return F=pp(F,U.mode,z),F.return=U,F;case X:var oe=F._init;return ne(U,oe(F._payload),z)}if(fs(F)||te(F))return F=_i(F,U.mode,z,null),F.return=U,F;ru(U,F)}return null}function J(U,F,z,oe){var Ee=F!==null?F.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return Ee!==null?null:A(U,F,""+z,oe);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case N:return z.key===Ee?D(U,F,z,oe):null;case O:return z.key===Ee?H(U,F,z,oe):null;case X:return Ee=z._init,J(U,F,Ee(z._payload),oe)}if(fs(z)||te(z))return Ee!==null?null:ee(U,F,z,oe,null);ru(U,z)}return null}function fe(U,F,z,oe,Ee){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return U=U.get(z)||null,A(F,U,""+oe,Ee);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case N:return U=U.get(oe.key===null?z:oe.key)||null,D(F,U,oe,Ee);case O:return U=U.get(oe.key===null?z:oe.key)||null,H(F,U,oe,Ee);case X:var Te=oe._init;return fe(U,F,z,Te(oe._payload),Ee)}if(fs(oe)||te(oe))return U=U.get(z)||null,ee(F,U,oe,Ee,null);ru(F,oe)}return null}function xe(U,F,z,oe){for(var Ee=null,Te=null,je=F,Ae=F=0,Bt=null;je!==null&&Ae<z.length;Ae++){je.index>Ae?(Bt=je,je=null):Bt=je.sibling;var qe=J(U,je,z[Ae],oe);if(qe===null){je===null&&(je=Bt);break}s&&je&&qe.alternate===null&&o(U,je),F=x(qe,F,Ae),Te===null?Ee=qe:Te.sibling=qe,Te=qe,je=Bt}if(Ae===z.length)return c(U,je),dt&&mi(U,Ae),Ee;if(je===null){for(;Ae<z.length;Ae++)je=ne(U,z[Ae],oe),je!==null&&(F=x(je,F,Ae),Te===null?Ee=je:Te.sibling=je,Te=je);return dt&&mi(U,Ae),Ee}for(je=h(U,je);Ae<z.length;Ae++)Bt=fe(je,U,Ae,z[Ae],oe),Bt!==null&&(s&&Bt.alternate!==null&&je.delete(Bt.key===null?Ae:Bt.key),F=x(Bt,F,Ae),Te===null?Ee=Bt:Te.sibling=Bt,Te=Bt);return s&&je.forEach(function(As){return o(U,As)}),dt&&mi(U,Ae),Ee}function ke(U,F,z,oe){var Ee=te(z);if(typeof Ee!="function")throw Error(n(150));if(z=Ee.call(z),z==null)throw Error(n(151));for(var Te=Ee=null,je=F,Ae=F=0,Bt=null,qe=z.next();je!==null&&!qe.done;Ae++,qe=z.next()){je.index>Ae?(Bt=je,je=null):Bt=je.sibling;var As=J(U,je,qe.value,oe);if(As===null){je===null&&(je=Bt);break}s&&je&&As.alternate===null&&o(U,je),F=x(As,F,Ae),Te===null?Ee=As:Te.sibling=As,Te=As,je=Bt}if(qe.done)return c(U,je),dt&&mi(U,Ae),Ee;if(je===null){for(;!qe.done;Ae++,qe=z.next())qe=ne(U,qe.value,oe),qe!==null&&(F=x(qe,F,Ae),Te===null?Ee=qe:Te.sibling=qe,Te=qe);return dt&&mi(U,Ae),Ee}for(je=h(U,je);!qe.done;Ae++,qe=z.next())qe=fe(je,U,Ae,qe.value,oe),qe!==null&&(s&&qe.alternate!==null&&je.delete(qe.key===null?Ae:qe.key),F=x(qe,F,Ae),Te===null?Ee=qe:Te.sibling=qe,Te=qe);return s&&je.forEach(function(nN){return o(U,nN)}),dt&&mi(U,Ae),Ee}function _t(U,F,z,oe){if(typeof z=="object"&&z!==null&&z.type===B&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case N:e:{for(var Ee=z.key,Te=F;Te!==null;
vendor: 7,990 bytes, line 39
39){if(Te.key===Ee){if(Ee=z.type,Ee===B){if(Te.tag===7){c(U,Te.sibling),F=y(Te,z.props.children),F.return=U,U=F;break e}}else if(Te.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===X&&Fv(Ee)===Te.type){c(U,Te.sibling),F=y(Te,z.props),F.ref=nl(U,Te,z),F.return=U,U=F;break e}c(U,Te);break}else o(U,Te);Te=Te.sibling}z.type===B?(F=_i(z.props.children,U.mode,oe,z.key),F.return=U,U=F):(oe=Tu(z.type,z.key,z.props,null,U.mode,oe),oe.ref=nl(U,F,z),oe.return=U,U=oe)}return j(U);case O:e:{for(Te=z.key;F!==null;){if(F.key===Te)if(F.tag===4&&F.stateNode.containerInfo===z.containerInfo&&F.stateNode.implementation===z.implementation){c(U,F.sibling),F=y(F,z.children||[]),F.return=U,U=F;break e}else{c(U,F);break}else o(U,F);F=F.sibling}F=pp(z,U.mode,oe),F.return=U,U=F}return j(U);case X:return Te=z._init,_t(U,F,Te(z._payload),oe)}if(fs(z))return xe(U,F,z,oe);if(te(z))return ke(U,F,z,oe);ru(U,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,F!==null&&F.tag===6?(c(U,F.sibling),F=y(F,z),F.return=U,U=F):(c(U,F),F=hp(z,U.mode,oe),F.return=U,U=F),j(U)):c(U,F)}return _t}var So=Bv(!0),Uv=Bv(!1),su=bs(null),iu=null,_o=null,_h=null;function kh(){_h=_o=iu=null}function Eh(s){var o=su.current;at(su),s._currentValue=o}function Ch(s,o,c){for(;s!==null;){var h=s.alternate;if((s.childLanes&o)!==o?(s.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),s===c)break;s=s.return}}function ko(s,o){iu=s,_h=_o=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&o)!==0&&(hn=!0),s.firstContext=null)}function Dn(s){var o=s._currentValue;if(_h!==s)if(s={context:s,memoizedValue:o,next:null},_o===null){if(iu===null)throw Error(n(308));_o=s,iu.dependencies={lanes:0,firstContext:s}}else _o=_o.next=s;return o}var gi=null;function Th(s){gi===null?gi=[s]:gi.push(s)}function Vv(s,o,c,h){var y=o.interleaved;return y===null?(c.next=c,Th(o)):(c.next=y.next,y.next=c),o.interleaved=c,zr(s,h)}function zr(s,o){s.lanes|=o;var c=s.alternate;for(c!==null&&(c.lanes|=o),c=s,s=s.return;s!==null;)s.childLanes|=o,c=s.alternate,c!==null&&(c.childLanes|=o),c=s,s=s.return;return c.tag===3?c.stateNode:null}var ks=!1;function jh(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zv(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Wr(s,o){return{eventTime:s,lane:o,tag:0,payload:null,callback:null,next:null}}function Es(s,o,c){var h=s.updateQueue;if(h===null)return null;if(h=h.shared,(Ye&2)!==0){var y=h.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),h.pending=o,zr(s,c)}return y=h.interleaved,y===null?(o.next=o,Th(h)):(o.next=y.next,y.next=o),h.interleaved=o,zr(s,c)}function ou(s,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194240)!==0)){var h=o.lanes;h&=s.pendingLanes,c|=h,o.lanes=c,zf(s,c)}}function Wv(s,o){var c=s.updateQueue,h=s.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var y=null,x=null;if(c=c.firstBaseUpdate,c!==null){do{var j={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};x===null?y=x=j:x=x.next=j,c=c.next}while(c!==null);x===null?y=x=o:x=x.next=o}else y=x=o;c={baseState:h.baseState,firstBaseUpdate:y,lastBaseUpdate:x,shared:h.shared,effects:h.effects},s.updateQueue=c;return}s=c.lastBaseUpdate,s===null?c.firstBaseUpdate=o:s.next=o,c.lastBaseUpdate=o}function au(s,o,c,h){var y=s.updateQueue;ks=!1;var x=y.firstBaseUpdate,j=y.lastBaseUpdate,A=y.shared.pending;if(A!==null){y.shared.pending=null;var D=A,H=D.next;D.next=null,j===null?x=H:j.next=H,j=D;var ee=s.alternate;ee!==null&&(ee=ee.updateQueue,A=ee.lastBaseUpdate,A!==j&&(A===null?ee.firstBaseUpdate=H:A.next=H,ee.lastBaseUpdate=D))}if(x!==null){var ne=y.baseState;j=0,ee=H=D=null,A=x;do{var J=A.lane,fe=A.eventTime;if((h&J)===J){ee!==null&&(ee=ee.next={eventTime:fe,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});e:{var xe=s,ke=A;switch(J=o,fe=c,ke.tag){case 1:if(xe=ke.payload,typeof xe=="function"){ne=xe.call(fe,ne,J);break e}ne=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=ke.payload,J=typeof xe=="function"?xe.call(fe,ne,J):xe,J==null)break e;ne=$({},ne,J);break e;case 2:ks=!0}}A.callback!==null&&A.lane!==0&&(s.flags|=64,J=y.effects,J===null?y.effects=[A]:J.push(A))}else fe={eventTime:fe,lane:J,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ee===null?(H=ee=fe,D=ne):ee=ee.next=fe,j|=J;if(A=A.next,A===null){if(A=y.shared.pending,A===null)break;J=A,A=J.next,J.next=null,y.lastBaseUpdate=J,y.shared.pending=null}}while(!0);if(ee===null&&(D=ne),y.baseState=D,y.firstBaseUpdate=H,y.lastBaseUpdate=ee,o=y.shared.interleaved,o!==null){y=o;do j|=y.lane,y=y.next;while(y!==o)}else x===null&&(y.shared.lanes=0);xi|=j,s.lanes=j,s.memoizedState=ne}}function $v(s,o,c){if(s=o.effects,o.effects=null,s!==null)for(o=0;o<s.length;o++){var h=s[o],y=h.callback;if(y!==null){if(h.callback=null,h=c,typeof y!="function")throw Error(n(191,y));y.call(h)}}}var rl={},gr=bs(rl),sl=bs(rl),il=bs(rl);function yi(s){if(s===rl)throw Error(n(174));return s}function Rh(s,o){switch(rt(il,o),rt(sl,s),rt(gr,rl),s=o.nodeType,s){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Nf(null,"");break;default:s=s===8?o.parentNode:o,o=s.namespaceURI||null,s=s.tagName,o=Nf(o,s)}at(gr),rt(gr,o)}function Eo(){at(gr),at(sl),at(il)}function Hv(s){yi(il.current);var o=yi(gr.current),c=Nf(o,s.type);o!==c&&(rt(sl,s),rt(gr,c))}function Nh(s){sl.current===s&&(at(gr),at(sl))}var mt=bs(0);function lu(s){for(var o=s;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Ph=[];function Ah(){for(var s=0;s<Ph.length;s++)Ph[s]._workInProgressVersionPrimary=null;Ph.length=0}var cu=T.ReactCurrentDispatcher,Oh=T.ReactCurrentBatchConfig,vi=0,gt=null,Nt=null,It=null,uu=!1,ol=!1,al=0,kR=0;function Kt(){throw Error(n(321))}function Mh(s,o){if(o===null)return!1;for(var c=0;c<o.length&&c<s.length;c++)if(!Xn(s[c],o[c]))return!1;return!0}function Dh(s,o,c,h,y,x){if(vi=x,gt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,cu.current=s===null||s.memoizedState===null?jR:RR,s=c(h,y),ol){x=0;do{if(ol=!1,al=0,25<=x)throw Error(n(301));x+=1,It=Nt=null,o.updateQueue=null,cu.current=NR,s=c(h,y)}while(ol)}if(cu.current=hu,o=Nt!==null&&Nt.next!==null,vi=0,It=Nt=gt=null,uu=!1,o)throw Error(n(300));return s}function Lh(){var s=al!==0;return al=0,s}function yr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?gt.memoizedState=It=s:It=It.next=s,It}function Ln(){if(Nt===null){var s=gt.alternate;s=s!==null?s.memoizedState:null}else s=Nt.next;var o=It===null?gt.memoizedState:It.next;if(o!==null)It=o,Nt=s;else{if(s===null)throw Error(n(310));Nt=s,s={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},It===null?gt.memoizedState=It=s:It=It.next=s}return It}function ll(s,o){return typeof o=="function"?o(s):o}function Ih(s){var o=Ln(),c=o.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=s;var h=Nt,y=h.baseQueue,x=c.pending;if(x!==null){if(y!==null){var j=y.next;y.next=x.next,x.next=j}h.baseQueue=y=x,c.pending=null}if(y!==null){x=y.next,h=h.baseState;var A=j=null,D=null,H=x;do{var ee=H.lane;if((vi&ee)===ee)D!==null&&(D=D.next={lane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),h=H.hasEagerState?H.eagerState:s(h,H.action);else{var ne={lane:ee,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null};
vendor: 6,704 bytes, line 39
39D===null?(A=D=ne,j=h):D=D.next=ne,gt.lanes|=ee,xi|=ee}H=H.next}while(H!==null&&H!==x);D===null?j=h:D.next=A,Xn(h,o.memoizedState)||(hn=!0),o.memoizedState=h,o.baseState=j,o.baseQueue=D,c.lastRenderedState=h}if(s=c.interleaved,s!==null){y=s;do x=y.lane,gt.lanes|=x,xi|=x,y=y.next;while(y!==s)}else y===null&&(c.lanes=0);return[o.memoizedState,c.dispatch]}function Fh(s){var o=Ln(),c=o.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=s;var h=c.dispatch,y=c.pending,x=o.memoizedState;if(y!==null){c.pending=null;var j=y=y.next;do x=s(x,j.action),j=j.next;while(j!==y);Xn(x,o.memoizedState)||(hn=!0),o.memoizedState=x,o.baseQueue===null&&(o.baseState=x),c.lastRenderedState=x}return[x,h]}function Yv(){}function qv(s,o){var c=gt,h=Ln(),y=o(),x=!Xn(h.memoizedState,y);if(x&&(h.memoizedState=y,hn=!0),h=h.queue,Bh(Qv.bind(null,c,h,s),[s]),h.getSnapshot!==o||x||It!==null&&It.memoizedState.tag&1){if(c.flags|=2048,cl(9,Kv.bind(null,c,h,y,o),void 0,null),Ft===null)throw Error(n(349));(vi&30)!==0||Gv(c,o,y)}return y}function Gv(s,o,c){s.flags|=16384,s={getSnapshot:o,value:c},o=gt.updateQueue,o===null?(o={lastEffect:null,stores:null},gt.updateQueue=o,o.stores=[s]):(c=o.stores,c===null?o.stores=[s]:c.push(s))}function Kv(s,o,c,h){o.value=c,o.getSnapshot=h,Xv(o)&&Zv(s)}function Qv(s,o,c){return c(function(){Xv(o)&&Zv(s)})}function Xv(s){var o=s.getSnapshot;s=s.value;try{var c=o();return!Xn(s,c)}catch{return!0}}function Zv(s){var o=zr(s,1);o!==null&&nr(o,s,1,-1)}function Jv(s){var o=yr();return typeof s=="function"&&(s=s()),o.memoizedState=o.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:s},o.queue=s,s=s.dispatch=TR.bind(null,gt,s),[o.memoizedState,s]}function cl(s,o,c,h){return s={tag:s,create:o,destroy:c,deps:h,next:null},o=gt.updateQueue,o===null?(o={lastEffect:null,stores:null},gt.updateQueue=o,o.lastEffect=s.next=s):(c=o.lastEffect,c===null?o.lastEffect=s.next=s:(h=c.next,c.next=s,s.next=h,o.lastEffect=s)),s}function ex(){return Ln().memoizedState}function du(s,o,c,h){var y=yr();gt.flags|=s,y.memoizedState=cl(1|o,c,void 0,h===void 0?null:h)}function fu(s,o,c,h){var y=Ln();h=h===void 0?null:h;var x=void 0;if(Nt!==null){var j=Nt.memoizedState;if(x=j.destroy,h!==null&&Mh(h,j.deps)){y.memoizedState=cl(o,c,x,h);return}}gt.flags|=s,y.memoizedState=cl(1|o,c,x,h)}function tx(s,o){return du(8390656,8,s,o)}function Bh(s,o){return fu(2048,8,s,o)}function nx(s,o){return fu(4,2,s,o)}function rx(s,o){return fu(4,4,s,o)}function sx(s,o){if(typeof o=="function")return s=s(),o(s),function(){o(null)};if(o!=null)return s=s(),o.current=s,function(){o.current=null}}function ix(s,o,c){return c=c!=null?c.concat([s]):null,fu(4,4,sx.bind(null,o,s),c)}function Uh(){}function ox(s,o){var c=Ln();o=o===void 0?null:o;var h=c.memoizedState;return h!==null&&o!==null&&Mh(o,h[1])?h[0]:(c.memoizedState=[s,o],s)}function ax(s,o){var c=Ln();o=o===void 0?null:o;var h=c.memoizedState;return h!==null&&o!==null&&Mh(o,h[1])?h[0]:(s=s(),c.memoizedState=[s,o],s)}function lx(s,o,c){return(vi&21)===0?(s.baseState&&(s.baseState=!1,hn=!0),s.memoizedState=c):(Xn(c,o)||(c=F0(),gt.lanes|=c,xi|=c,s.baseState=!0),o)}function ER(s,o){var c=Ze;Ze=c!==0&&4>c?c:4,s(!0);var h=Oh.transition;Oh.transition={};try{s(!1),o()}finally{Ze=c,Oh.transition=h}}function cx(){return Ln().memoizedState}function CR(s,o,c){var h=Rs(s);if(c={lane:h,action:c,hasEagerState:!1,eagerState:null,next:null},ux(s))dx(o,c);else if(c=Vv(s,o,c,h),c!==null){var y=ln();nr(c,s,h,y),fx(c,o,h)}}function TR(s,o,c){var h=Rs(s),y={lane:h,action:c,hasEagerState:!1,eagerState:null,next:null};if(ux(s))dx(o,y);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=o.lastRenderedReducer,x!==null))try{var j=o.lastRenderedState,A=x(j,c);if(y.hasEagerState=!0,y.eagerState=A,Xn(A,j)){var D=o.interleaved;D===null?(y.next=y,Th(o)):(y.next=D.next,D.next=y),o.interleaved=y;return}}catch{}finally{}c=Vv(s,o,y,h),c!==null&&(y=ln(),nr(c,s,h,y),fx(c,o,h))}}function ux(s){var o=s.alternate;return s===gt||o!==null&&o===gt}function dx(s,o){ol=uu=!0;var c=s.pending;c===null?o.next=o:(o.next=c.next,c.next=o),s.pending=o}function fx(s,o,c){if((c&4194240)!==0){var h=o.lanes;h&=s.pendingLanes,c|=h,o.lanes=c,zf(s,c)}}var hu={readContext:Dn,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useInsertionEffect:Kt,useLayoutEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useMutableSource:Kt,useSyncExternalStore:Kt,useId:Kt,unstable_isNewReconciler:!1},jR={readContext:Dn,useCallback:function(s,o){return yr().memoizedState=[s,o===void 0?null:o],s},useContext:Dn,useEffect:tx,useImperativeHandle:function(s,o,c){return c=c!=null?c.concat([s]):null,du(4194308,4,sx.bind(null,o,s),c)},useLayoutEffect:function(s,o){return du(4194308,4,s,o)},useInsertionEffect:function(s,o){return du(4,2,s,o)},useMemo:function(s,o){var c=yr();return o=o===void 0?null:o,s=s(),c.memoizedState=[s,o],s},useReducer:function(s,o,c){var h=yr();return o=c!==void 0?c(o):o,h.memoizedState=h.baseState=o,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:o},h.queue=s,s=s.dispatch=CR.bind(null,gt,s),[h.memoizedState,s]},useRef:function(s){var o=yr();return s={current:s},o.memoizedState=s},useState:Jv,useDebugValue:Uh,useDeferredValue:function(s){return yr().memoizedState=s},useTransition:function(){var s=Jv(!1),o=s[0];return s=ER.bind(null,s[1]),yr().memoizedState=s,[o,s]},useMutableSource:function(){},useSyncExternalStore:function(s,o,c){var h=gt,y=yr();if(dt){if(c===void 0)throw Error(n(407));c=c()}else{if(c=o(),Ft===null)throw Error(n(349));(vi&30)!==0||Gv(h,o,c)}y.memoizedState=c;var x={value:c,getSnapshot:o};return y.queue=x,tx(Qv.bind(null,h,x,s),[s]),h.flags|=2048,cl(9,Kv.bind(null,h,x,c,o),void 0,null),c},useId:function(){var s=yr(),o=Ft.identifierPrefix;if(dt){var c=Vr,h=Ur;c=(h&~(1<<32-Qn(h)-1)).toString(32)+c,o=":"+o+"R"+c,c=al++,0<c&&(o+="H"+c.toString(32)),o+=":"}else c=kR++,o=":"+o+"r"+c.toString(32)+":";return s.memoizedState=o},unstable_isNewReconciler:!1},RR={readContext:Dn,useCallback:ox,useContext:Dn,useEffect:Bh,useImperativeHandle:ix,useInsertionEffect:nx,useLayoutEffect:rx,useMemo:ax,useReducer:Ih,useRef:ex,useState:function(){return Ih(ll)},useDebugValue:Uh,useDeferredValue:function(s){var o=Ln();return lx(o,Nt.memoizedState,s)},useTransition:function(){var s=Ih(ll)[0],o=Ln().memoizedState;return[s,o]},useMutableSource:Yv,useSyncExternalStore:qv,useId:cx,unstable_isNewReconciler:!1},NR={readContext:Dn,useCallback:ox,useContext:Dn,useEffect:Bh,useImperativeHandle:ix,useInsertionEffect:nx,useLayoutEffect:rx,useMemo:ax,useReducer:Fh,useRef
vendor: 5,986 bytes, lines 39-41
39:ex,useState:function(){return Fh(ll)},useDebugValue:Uh,useDeferredValue:function(s){var o=Ln();return Nt===null?o.memoizedState=s:lx(o,Nt.memoizedState,s)},useTransition:function(){var s=Fh(ll)[0],o=Ln().memoizedState;return[s,o]},useMutableSource:Yv,useSyncExternalStore:qv,useId:cx,unstable_isNewReconciler:!1};function Jn(s,o){if(s&&s.defaultProps){o=$({},o),s=s.defaultProps;for(var c in s)o[c]===void 0&&(o[c]=s[c]);return o}return o}function Vh(s,o,c,h){o=s.memoizedState,c=c(h,o),c=c==null?o:$({},o,c),s.memoizedState=c,s.lanes===0&&(s.updateQueue.baseState=c)}var pu={isMounted:function(s){return(s=s._reactInternals)?di(s)===s:!1},enqueueSetState:function(s,o,c){s=s._reactInternals;var h=ln(),y=Rs(s),x=Wr(h,y);x.payload=o,c!=null&&(x.callback=c),o=Es(s,x,y),o!==null&&(nr(o,s,y,h),ou(o,s,y))},enqueueReplaceState:function(s,o,c){s=s._reactInternals;var h=ln(),y=Rs(s),x=Wr(h,y);x.tag=1,x.payload=o,c!=null&&(x.callback=c),o=Es(s,x,y),o!==null&&(nr(o,s,y,h),ou(o,s,y))},enqueueForceUpdate:function(s,o){s=s._reactInternals;var c=ln(),h=Rs(s),y=Wr(c,h);y.tag=2,o!=null&&(y.callback=o),o=Es(s,y,h),o!==null&&(nr(o,s,h,c),ou(o,s,h))}};function hx(s,o,c,h,y,x,j){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(h,x,j):o.prototype&&o.prototype.isPureReactComponent?!Ka(c,h)||!Ka(y,x):!0}function px(s,o,c){var h=!1,y=Ss,x=o.contextType;return typeof x=="object"&&x!==null?x=Dn(x):(y=fn(o)?hi:Gt.current,h=o.contextTypes,x=(h=h!=null)?vo(s,y):Ss),o=new o(c,x),s.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=pu,s.stateNode=o,o._reactInternals=s,h&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=y,s.__reactInternalMemoizedMaskedChildContext=x),o}function mx(s,o,c,h){s=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,h),o.state!==s&&pu.enqueueReplaceState(o,o.state,null)}function zh(s,o,c,h){var y=s.stateNode;y.props=c,y.state=s.memoizedState,y.refs={},jh(s);var x=o.contextType;typeof x=="object"&&x!==null?y.context=Dn(x):(x=fn(o)?hi:Gt.current,y.context=vo(s,x)),y.state=s.memoizedState,x=o.getDerivedStateFromProps,typeof x=="function"&&(Vh(s,o,x,c),y.state=s.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(o=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),o!==y.state&&pu.enqueueReplaceState(y,y.state,null),au(s,c,y,h),y.state=s.memoizedState),typeof y.componentDidMount=="function"&&(s.flags|=4194308)}function Co(s,o){try{var c="",h=o;do c+=ge(h),h=h.return;while(h);var y=c}catch(x){y=`
40Error generating stack: `+x.message+`
41`+x.stack}return{value:s,source:o,stack:y,digest:null}}function Wh(s,o,c){return{value:s,source:null,stack:c??null,digest:o??null}}function $h(s,o){try{console.error(o.value)}catch(c){setTimeout(function(){throw c})}}var PR=typeof WeakMap=="function"?WeakMap:Map;function gx(s,o,c){c=Wr(-1,c),c.tag=3,c.payload={element:null};var h=o.value;return c.callback=function(){bu||(bu=!0,ip=h),$h(s,o)},c}function yx(s,o,c){c=Wr(-1,c),c.tag=3;var h=s.type.getDerivedStateFromError;if(typeof h=="function"){var y=o.value;c.payload=function(){return h(y)},c.callback=function(){$h(s,o)}}var x=s.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(c.callback=function(){$h(s,o),typeof h!="function"&&(Ts===null?Ts=new Set([this]):Ts.add(this));var j=o.stack;this.componentDidCatch(o.value,{componentStack:j!==null?j:""})}),c}function vx(s,o,c){var h=s.pingCache;if(h===null){h=s.pingCache=new PR;var y=new Set;h.set(o,y)}else y=h.get(o),y===void 0&&(y=new Set,h.set(o,y));y.has(c)||(y.add(c),s=HR.bind(null,s,o,c),o.then(s,s))}function xx(s){do{var o;if((o=s.tag===13)&&(o=s.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return s;s=s.return}while(s!==null);return null}function wx(s,o,c,h,y){return(s.mode&1)===0?(s===o?s.flags|=65536:(s.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(o=Wr(-1,1),o.tag=2,Es(c,o,1))),c.lanes|=1),s):(s.flags|=65536,s.lanes=y,s)}var AR=T.ReactCurrentOwner,hn=!1;function an(s,o,c,h){o.child=s===null?Uv(o,null,c,h):So(o,s.child,c,h)}function bx(s,o,c,h,y){c=c.render;var x=o.ref;return ko(o,y),h=Dh(s,o,c,h,x,y),c=Lh(),s!==null&&!hn?(o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~y,$r(s,o,y)):(dt&&c&&vh(o),o.flags|=1,an(s,o,h,y),o.child)}function Sx(s,o,c,h,y){if(s===null){var x=c.type;return typeof x=="function"&&!fp(x)&&x.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(o.tag=15,o.type=x,_x(s,o,x,h,y)):(s=Tu(c.type,null,h,o,o.mode,y),s.ref=o.ref,s.return=o,o.child=s)}if(x=s.child,(s.lanes&y)===0){var j=x.memoizedProps;if(c=c.compare,c=c!==null?c:Ka,c(j,h)&&s.ref===o.ref)return $r(s,o,y)}return o.flags|=1,s=Ps(x,h),s.ref=o.ref,s.return=o,o.child=s}function _x(s,o,c,h,y){if(s!==null){var x=s.memoizedProps;if(Ka(x,h)&&s.ref===o.ref)if(hn=!1,o.pendingProps=h=x,(s.lanes&y)!==0)(s.flags&131072)!==0&&(hn=!0);else return o.lanes=s.lanes,$r(s,o,y)}return Hh(s,o,c,h,y)}function kx(s,o,c){var h=o.pendingProps,y=h.children,x=s!==null?s.memoizedState:null;if(h.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},rt(jo,Cn),Cn|=c;else{if((c&1073741824)===0)return s=x!==null?x.baseLanes|c:c,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:s,cachePool:null,transitions:null},o.updateQueue=null,rt(jo,Cn),Cn|=s,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=x!==null?x.baseLanes:c,rt(jo,Cn),Cn|=h}else x!==null?(h=x.baseLanes|c,o.memoizedState=null):h=c,rt(jo,Cn),Cn|=h;return an(s,o,y,c),o.child}function Ex(s,o){var c=o.ref;(s===null&&c!==null||s!==null&&s.ref!==c)&&(o.flags|=512,o.flags|=2097152)}
vendor: 13,714 bytes, line 41
41function Hh(s,o,c,h,y){var x=fn(c)?hi:Gt.current;return x=vo(o,x),ko(o,y),c=Dh(s,o,c,h,x,y),h=Lh(),s!==null&&!hn?(o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~y,$r(s,o,y)):(dt&&h&&vh(o),o.flags|=1,an(s,o,c,y),o.child)}function Cx(s,o,c,h,y){if(fn(c)){var x=!0;Zc(o)}else x=!1;if(ko(o,y),o.stateNode===null)gu(s,o),px(o,c,h),zh(o,c,h,y),h=!0;else if(s===null){var j=o.stateNode,A=o.memoizedProps;j.props=A;var D=j.context,H=c.contextType;typeof H=="object"&&H!==null?H=Dn(H):(H=fn(c)?hi:Gt.current,H=vo(o,H));var ee=c.getDerivedStateFromProps,ne=typeof ee=="function"||typeof j.getSnapshotBeforeUpdate=="function";ne||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(A!==h||D!==H)&&mx(o,j,h,H),ks=!1;var J=o.memoizedState;j.state=J,au(o,h,j,y),D=o.memoizedState,A!==h||J!==D||dn.current||ks?(typeof ee=="function"&&(Vh(o,c,ee,h),D=o.memoizedState),(A=ks||hx(o,c,A,h,J,D,H))?(ne||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(o.flags|=4194308)):(typeof j.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=D),j.props=h,j.state=D,j.context=H,h=A):(typeof j.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{j=o.stateNode,zv(s,o),A=o.memoizedProps,H=o.type===o.elementType?A:Jn(o.type,A),j.props=H,ne=o.pendingProps,J=j.context,D=c.contextType,typeof D=="object"&&D!==null?D=Dn(D):(D=fn(c)?hi:Gt.current,D=vo(o,D));var fe=c.getDerivedStateFromProps;(ee=typeof fe=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(A!==ne||J!==D)&&mx(o,j,h,D),ks=!1,J=o.memoizedState,j.state=J,au(o,h,j,y);var xe=o.memoizedState;A!==ne||J!==xe||dn.current||ks?(typeof fe=="function"&&(Vh(o,c,fe,h),xe=o.memoizedState),(H=ks||hx(o,c,H,h,J,xe,D)||!1)?(ee||typeof j.UNSAFE_componentWillUpdate!="function"&&typeof j.componentWillUpdate!="function"||(typeof j.componentWillUpdate=="function"&&j.componentWillUpdate(h,xe,D),typeof j.UNSAFE_componentWillUpdate=="function"&&j.UNSAFE_componentWillUpdate(h,xe,D)),typeof j.componentDidUpdate=="function"&&(o.flags|=4),typeof j.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof j.componentDidUpdate!="function"||A===s.memoizedProps&&J===s.memoizedState||(o.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&J===s.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=xe),j.props=h,j.state=xe,j.context=D,h=H):(typeof j.componentDidUpdate!="function"||A===s.memoizedProps&&J===s.memoizedState||(o.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&J===s.memoizedState||(o.flags|=1024),h=!1)}return Yh(s,o,c,h,x,y)}function Yh(s,o,c,h,y,x){Ex(s,o);var j=(o.flags&128)!==0;if(!h&&!j)return y&&Pv(o,c,!1),$r(s,o,x);h=o.stateNode,AR.current=o;var A=j&&typeof c.getDerivedStateFromError!="function"?null:h.render();return o.flags|=1,s!==null&&j?(o.child=So(o,s.child,null,x),o.child=So(o,null,A,x)):an(s,o,A,x),o.memoizedState=h.state,y&&Pv(o,c,!0),o.child}function Tx(s){var o=s.stateNode;o.pendingContext?Rv(s,o.pendingContext,o.pendingContext!==o.context):o.context&&Rv(s,o.context,!1),Rh(s,o.containerInfo)}function jx(s,o,c,h,y){return bo(),Sh(y),o.flags|=256,an(s,o,c,h),o.child}var qh={dehydrated:null,treeContext:null,retryLane:0};function Gh(s){return{baseLanes:s,cachePool:null,transitions:null}}function Rx(s,o,c){var h=o.pendingProps,y=mt.current,x=!1,j=(o.flags&128)!==0,A;if((A=j)||(A=s!==null&&s.memoizedState===null?!1:(y&2)!==0),A?(x=!0,o.flags&=-129):(s===null||s.memoizedState!==null)&&(y|=1),rt(mt,y&1),s===null)return bh(o),s=o.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((o.mode&1)===0?o.lanes=1:s.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(j=h.children,s=h.fallback,x?(h=o.mode,x=o.child,j={mode:"hidden",children:j},(h&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=j):x=ju(j,h,0,null),s=_i(s,h,c,null),x.return=o,s.return=o,x.sibling=s,o.child=x,o.child.memoizedState=Gh(c),o.memoizedState=qh,s):Kh(o,j));if(y=s.memoizedState,y!==null&&(A=y.dehydrated,A!==null))return OR(s,o,j,h,A,y,c);if(x){x=h.fallback,j=o.mode,y=s.child,A=y.sibling;var D={mode:"hidden",children:h.children};return(j&1)===0&&o.child!==y?(h=o.child,h.childLanes=0,h.pendingProps=D,o.deletions=null):(h=Ps(y,D),h.subtreeFlags=y.subtreeFlags&14680064),A!==null?x=Ps(A,x):(x=_i(x,j,c,null),x.flags|=2),x.return=o,h.return=o,h.sibling=x,o.child=h,h=x,x=o.child,j=s.child.memoizedState,j=j===null?Gh(c):{baseLanes:j.baseLanes|c,cachePool:null,transitions:j.transitions},x.memoizedState=j,x.childLanes=s.childLanes&~c,o.memoizedState=qh,h}return x=s.child,s=x.sibling,h=Ps(x,{mode:"visible",children:h.children}),(o.mode&1)===0&&(h.lanes=c),h.return=o,h.sibling=null,s!==null&&(c=o.deletions,c===null?(o.deletions=[s],o.flags|=16):c.push(s)),o.child=h,o.memoizedState=null,h}function Kh(s,o){return o=ju({mode:"visible",children:o},s.mode,0,null),o.return=s,s.child=o}function mu(s,o,c,h){return h!==null&&Sh(h),So(o,s.child,null,c),s=Kh(o,o.pendingProps.children),s.flags|=2,o.memoizedState=null,s}function OR(s,o,c,h,y,x,j){if(c)return o.flags&256?(o.flags&=-257,h=Wh(Error(n(422))),mu(s,o,j,h)):o.memoizedState!==null?(o.child=s.child,o.flags|=128,null):(x=h.fallback,y=o.mode,h=ju({mode:"visible",children:h.children},y,0,null),x=_i(x,y,j,null),x.flags|=2,h.return=o,x.return=o,h.sibling=x,o.child=h,(o.mode&1)!==0&&So(o,s.child,null,j),o.child.memoizedState=Gh(j),o.memoizedState=qh,x);if((o.mode&1)===0)return mu(s,o,j,null);if(y.data==="$!"){if(h=y.nextSibling&&y.nextSibling.dataset,h)var A=h.dgst;return h=A,x=Error(n(419)),h=Wh(x,h,void 0),mu(s,o,j,h)}if(A=(j&s.childLanes)!==0,hn||A){if(h=Ft,h!==null){switch(j&-j){case 4:y=2;break;case 16:y=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:y=32;break;case 536870912:y=268435456;break;default:y=0}y=(y&(h.suspendedLanes|j))!==0?0:y,y!==0&&y!==x.retryLane&&(x.retryLane=y,zr(s,y),nr(h,s,y,-1))}return dp(),h=Wh(Error(n(421))),mu(s,o,j,h)}return y.data==="$?"?(o.flags|=128,o.child=s.child,o=YR.bind(null,s),y._reactRetry=o,null):(s=x.treeContext,En=ws(y.nextSibling),kn=o,dt=!0,Zn=null,s!==null&&(On[Mn++]=Ur,On[Mn++]=Vr,On[Mn++]=pi,Ur=s.id,Vr=s.overflow,pi=o),o=Kh(o,h.children),o.flags|=4096,o)}function Nx(s,o,c){s.lanes|=o;var h=s.alternate;h!==null&&(h.lanes|=o),Ch(s.return,o,c)}function Qh(s,o,c,h,y){var x=s.memoizedState;x===null?s.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:y}:(x.isBackwards=o,x.rendering=null,x.renderingStartTime=0,x.last=h,x.tail=c,x.tailMode=y)}function Px(s,o,c){var h=o.pendingProps,y=h.revealOrder,x=h.tail;if(an(s,o,h.children,c),h=mt.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=o.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Nx(s,c,o);else if(s.tag===19)Nx(s,c,o);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}h&=1}if(rt(mt,h),(o.mode&1)===0)o.memoizedState=null;else switch(y){case"forwards":for(c=o.child,y=null;c!==null;)s=c.alternate,s!==null&&lu(s)===null&&(y=c),c=c.sibling;c=y,c===null?(y=o.child,o.child=null):(y=c.sibling,c.sibling=null),Qh(o,!1,y,c,x);break;case"backwards":for(c=null,y=o.child,o.child=null;y!==null;){if(s=y.alternate,s!==null&&lu(s)===null){o.child=y;break}s=y.sibling,y.sibling=c,c=y,y=s}Qh(o,!0,c,null,x);break;case"together":Qh(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function gu(s,o){(o.mode&1)===0&&s!==null&&(s.alternate=null,o.alternate=null,o.flags|=2)}function $r(s,o,c){if(s!==null&&(o.dependencies=s.dependencies),xi|=o.lanes,(c&o.childLanes)===0)return null;if(s!==null&&o.child!==s.child)throw Error(n(153));if(o.child!==null){for(s=o.child,c=Ps(s,s.pendingProps),o.child=c,c.return=o;s.sibling!==null;)s=s.sibling,c=c.sibling=Ps(s,s.pendingProps),c.return=o;c.sibling=null}return o.child}function MR(s,o,c){switch(o.tag){case 3:Tx(o),bo();break;case 5:Hv(o);break;case 1:fn(o.type)&&Zc(o);break;case 4:Rh(o,o.stateNode.containerInfo);break;case 10:var h=o.type._context,y=o.memoizedProps.value;rt(su,h._currentValue),h._currentValue=y;break;case 13:if(h=o.memoizedState,h!==null)return h.dehydrated!==null?(rt(mt,mt.current&1),o.flags|=128,null):(c&o.child.childLanes)!==0?Rx(s,o,c):(rt(mt,mt.current&1),s=$r(s,o,c),s!==null?s.sibling:null);rt(mt,mt.current&1);break;case 19:if(h=(c&o.childLanes)!==0,(s.flags&128)!==0){if(h)return Px(s,o,c);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),rt(mt,mt.current),h)break;return null;case 22:case 23:return o.lanes=0,kx(s,o,c)}return $r(s,o,c)}var Ax,Xh,Ox,Mx;Ax=function(s,o){for(var c=o.child;c!==null;){if(c.tag===5||c.tag===6)s.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===o)break;for(;c.sibling===null;){if(c.return===null||c.return===o)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},Xh=function(){},Ox=function(s,o,c,h){var y=s.memoizedProps;if(y!==h){s=o.stateNode,yi(gr.current);var x=null;switch(c){case"input":y=ht(s,y),h=ht(s,h),x=[];break;case"select":y=$({},y,{value:void 0}),h=$({},h,{value:void 0}),x=[];break;case"textarea":y=Ir(s,y),h=Ir(s,h),x=[];break;default:typeof y.onClick!="function"&&typeof h.onClick=="function"&&(s.onclick=Kc)}Pf(c,h);var j;c=null;for(H in y)if(!h.hasOwnProperty(H)&&y.hasOwnProperty(H)&&y[H]!=null)if(H==="style"){var A=y[H];for(j in A)A.hasOwnProperty(j)&&(c||(c={}),c[j]="")}else H!=="dangerouslySetInnerHTML"&&H!=="children"&&H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&H!=="autoFocus"&&(i.hasOwnProperty(H)?x||(x=[]):(x=x||[]).push(H,null));for(H in h){var D=h[H];if(A=y!=null?y[H]:void 0,h.hasOwnProperty(H)&&D!==A&&(D!=null||A!=null))if(H==="style")if(A){for(j in A)!A.hasOwnProperty(j)||D&&D.hasOwnProperty(j)||(c||(c={}),c[j]="");for(j in D)D.hasOwnProperty(j)&&A[j]!==D[j]&&(c||(c={}),c[j]=D[j])}else c||(x||(x=[]),x.push(H,c)),c=D;else H==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,A=A?A.__html:void 0,D!=null&&A!==D&&(x=x||[]).push(H,D)):H==="children"?typeof D!="string"&&typeof D!="number"||(x=x||[]).push(H,""+D):H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&(i.hasOwnProperty(H)?(D!=null&&H==="onScroll"&&ot("scroll",s),x||A===D||(x=[])):(x=x||[]).push(H,D))}c&&(x=x||[]).push("style",c);var H=x;(o.updateQueue=H)&&(o.flags|=4)}},Mx=function(s,o,c,h){c!==h&&(o.flags|=4)};function ul(s,o){if(!dt)switch(s.tailMode){case"hidden":o=s.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?s.tail=null:c.sibling=null;break;case"collapsed":c=s.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?o||s.tail===null?s.tail=null:s.tail.sibling=null:h.sibling=null}}function Qt(s){var o=s.alternate!==null&&s.alternate.child===s.child,c=0,h=0;if(o)for(var y=s.child;y!==null;)c|=y.lanes|y.childLanes,h|=y.subtreeFlags&14680064,h|=y.flags&14680064,y.return=s,y=y.sibling;else for(y=s.child;y!==null;)c|=y.lanes|y.childLanes,h|=y.subtreeFlags,h|=y.flags,y.return=s,y=y.sibling;return s.subtreeFlags|=h,s.childLanes=c,o}function DR(s,o,c){var h=o.pendingProps;switch(xh(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(o),null;case 1:return fn(o.type)&&Xc(),Qt(o),null;case 3:return h=o.stateNode,Eo(),at(dn),at(Gt),Ah(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(s===null||s.child===null)&&(nu(o)?o.flags|=4:s===null||s.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Zn!==null&&(lp(Zn),Zn=null))),Xh(s,o),Qt(o),null;case 5:Nh(o);var y=yi(il.current);if(c=o.type,s!==null&&o.stateNode!=null)Ox(s,o,c,h,y),s.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!h){if(o.stateNode===null)throw Error(n(166));return Qt(o),null}if(s=yi(gr.current),nu(o)){h=o.stateNode,c=o.type;var x=o.memoizedProps;switch(h[mr]=o,h[el]=x,s=(o.mode&1)!==0,c){case"dialog":ot("cancel",h),ot("close",h);break;case"iframe":case"object":case"embed":ot("load",h);break;case"video":case"audio":for(y=0;y<Xa.length;y++)ot(Xa[y],h);break;case"source":ot("error",h);break;case"img":case"image":case"link":ot("error",h),ot("load",h);break;case"details":ot("toggle",h);break;case"input":Lt(h,x),ot("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!x.multiple},ot("invalid",h);break;case"textarea":y0(h,x),ot("invalid",h)}Pf(c,x),y=null;for(var j in x)if(x.hasOwnProperty(j)){var A=x[j];j==="children"?typeof A=="string"?h.textContent!==A&&(x.suppressHydrationWarning!==!0&&Gc(h.textContent,A,s),y=["children",A]):typeof A=="number"&&h.textContent!==""+A&&(x.suppressHydrationWarning!==!0&&Gc(h.textContent,A,s),y=["children",""+A]):i.hasOwnProperty(j)&&A!=null&&j==="onScroll"&&ot("scroll",h)}switch(c){case"input":Le(h),Sn(h,x,!0);break;case"textarea":Le(h),x0(h);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(h.onclick=Kc)}h=y,o.updateQueue=h,h!==null&&(o.flags|=4)}else{j=y.nodeType===9?y:y.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=w0(c)),s==="http://www.w3.org/1999/xhtml"?c==="script"?(s=j.createElement("div"),s.innerHTML="<script><\/script>
41",s=s.removeChild(s.firstChild)):typeof h.is=="string"?s=j.createElement(c,{is:h.is}):(s=j.createElement(c),c==="select"&&(j=s,h.multiple?j.multiple=!0:h.size&&(j.size=h.size))):s=j.createElementNS(s,c),s[mr]=o,s[el]=h,Ax(s,o,!1,!1),o.stateNode=s;e:{switch(j=Af(c,h),c){case"dialog":ot("cancel",s),ot("close",s),y=h;break;case"iframe":case"object":case"embed":ot("load",s),y=h;break;case"video":case"audio":for(y=0;y<Xa.length;y++)ot(Xa[y],s);y=h;break;case"source":ot("error",s),y=h;break;case"img":case"image":case"link":ot("error",s),ot("load",s),y=h;break;case"details":ot("toggle",s),y=h;break;case"input":Lt(s,h),y=ht(s,h),ot("invalid",s);break;case"option":y=h;break;case"select":s._wrapperState={wasMultiple:!!h.multiple},y=$({},h,{value:void 0}),ot("invalid",s);break;case"textarea":y0(s,h),y=Ir(s,h),ot("invalid",s);break;default:y=h}Pf(c,y),A=y;for(x in A)if(A.hasOwnProperty(x)){var D=A[x];x==="style"?_0(s,D):x==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,D!=null&&b0(s,D)):x==="children"?typeof D=="string"?(c!=="textarea"||D!=="")&&Aa(s,D):typeof D=="number"&&Aa(s,""+D):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(i.hasOwnProperty(x)?D!=null&&x==="onScroll"&&ot("scroll",s):D!=null&&C(s,x,D,j))}switch(c){case"input":Le(s),Sn(s,h,!1);break;case"textarea":Le(s),x0(s);break;case"option":h.value!=null&&s.setAttribute("value",""+be(h.value));break;case"select":s.multiple=!!h.multiple,x=h.value,x!=null?hs(s,!!h.multiple,x,!1):h.defaultValue!=null&&hs(s,!!h.multiple,h.defaultValue,!0);break;default:typeof y.onClick=="function"&&(s.onclick=Kc)}switch(c){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Qt(o),null;case 6:if(s&&o.stateNode!=null)Mx(s,o,s.memoizedProps,h);else{if(typeof h!="string"&&o.stateNode===null)throw Error(n(166));if(c=yi(il.current),yi(gr.current),nu(o)){if(h=o.stateNode,c=o.memoizedProps,h[mr]=o,(x=h.nodeValue!==c)&&(s=kn,s!==null))switch(s.tag){case 3:Gc(h.nodeValue,c,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&Gc(h.nodeValue,c,(s.mode&1)!==0)}x&&(o.flags|=4)}else h=(c.nodeType===9?c:c.ownerDocument).createTextNode(h),h[mr]=o,o.stateNode=h}return Qt(o),null;case 13:if(at(mt),h=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(dt&&En!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Iv(),bo(),o.flags|=98560,x=!1;else if(x=nu(o),h!==null&&h.dehydrated!==null){if(s===null){if(!x)throw Error(n(318));if(x=o.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(n(317));x[mr]=o}else bo(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Qt(o),x=!1}else Zn!==null&&(lp(Zn),Zn=null),x=!0;if(!x)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=c,o):(h=h!==null,h!==(s!==null&&s.memoizedState!==null)&&h&&(o.child.flags|=8192,(o.mode&1)!==0&&(s===null||(mt.current&1)!==0?Pt===0&&(Pt=3):dp())),o.updateQueue!==null&&(o.flags|=4),Qt(o),null);case 4:return Eo(),Xh(s,o),s===null&&Za(o.stateNode.containerInfo),Qt(o),null;case 10:return Eh(o.type._context),Qt(o),null;case 17:return fn(o.type)&&Xc(),Qt(o),null;case 19:if(at(mt),x=o.memoizedState,x===null)return Qt(o),null;if(h=(o.flags&128)!==0,j=x.rendering,j===null)if(h)ul(x,!1);else{if(Pt!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(j=lu(s),j!==null){for(o.flags|=128,ul(x,!1),h=j.updateQueue,h!==null&&(o.updateQueue=h,o.flags|=4),o.subtreeFlags=0,h=c,c=o.child;c!==null;)x=c,s=h,x.flags&=14680066,j=x.alternate,j===null?(x.childLanes=0,x.lanes=s,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=j.childLanes,x.lanes=j.lanes,x.child=j.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=j.memoizedProps,x.memoizedState=j.memoizedState,x.updateQueue=j.updateQueue,x.type=j.type,s=j.dependencies,x.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),c=c.sibling;return rt(mt,mt.current&1|2),o.child}s=s.sibling}x.tail!==null&&St()>Ro&&(o.flags|=128,h=!0,ul(x,!1),o.lanes=4194304)}else{if(!h)if(s=lu(j),s!==null){if(o.flags|=128,h=!0,c=s.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),ul(x,!0),x.tail===null&&x.tailMode==="hidden"&&!j.alternate&&!dt)return Qt(o),null}else 2*St()-x.renderingStartTime>Ro&&c!==1073741824&&(o.flags|=128,h=!0,ul(x,!1),o.lanes=4194304);x.isBackwards?(j.sibling=o.child,o.child=j):(c=x.last,c!==null?c.sibling=j:o.child=j,x.last=j)}return x.tail!==null?(o=x.tail,x.rendering=o,x.tail=o.sibling,x.renderingStartTime=St(),o.sibling=null,c=mt.current,rt(mt,h?c&1|2
vendor: 20,162 bytes, line 41
41:c&1),o):(Qt(o),null);case 22:case 23:return up(),h=o.memoizedState!==null,s!==null&&s.memoizedState!==null!==h&&(o.flags|=8192),h&&(o.mode&1)!==0?(Cn&1073741824)!==0&&(Qt(o),o.subtreeFlags&6&&(o.flags|=8192)):Qt(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function LR(s,o){switch(xh(o),o.tag){case 1:return fn(o.type)&&Xc(),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return Eo(),at(dn),at(Gt),Ah(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 5:return Nh(o),null;case 13:if(at(mt),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(n(340));bo()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return at(mt),null;case 4:return Eo(),null;case 10:return Eh(o.type._context),null;case 22:case 23:return up(),null;case 24:return null;default:return null}}var yu=!1,Xt=!1,IR=typeof WeakSet=="function"?WeakSet:Set,ye=null;function To(s,o){var c=s.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(h){vt(s,o,h)}else c.current=null}function Zh(s,o,c){try{c()}catch(h){vt(s,o,h)}}var Dx=!1;function FR(s,o){if(uh=Ic,s=hv(),nh(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{c=(c=s.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var y=h.anchorOffset,x=h.focusNode;h=h.focusOffset;try{c.nodeType,x.nodeType}catch{c=null;break e}var j=0,A=-1,D=-1,H=0,ee=0,ne=s,J=null;t:for(;;){for(var fe;ne!==c||y!==0&&ne.nodeType!==3||(A=j+y),ne!==x||h!==0&&ne.nodeType!==3||(D=j+h),ne.nodeType===3&&(j+=ne.nodeValue.length),(fe=ne.firstChild)!==null;)J=ne,ne=fe;for(;;){if(ne===s)break t;if(J===c&&++H===y&&(A=j),J===x&&++ee===h&&(D=j),(fe=ne.nextSibling)!==null)break;ne=J,J=ne.parentNode}ne=fe}c=A===-1||D===-1?null:{start:A,end:D}}else c=null}c=c||{start:0,end:0}}else c=null;for(dh={focusedElem:s,selectionRange:c},Ic=!1,ye=o;ye!==null;)if(o=ye,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,ye=s;else for(;ye!==null;){o=ye;try{var xe=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(xe!==null){var ke=xe.memoizedProps,_t=xe.memoizedState,U=o.stateNode,F=U.getSnapshotBeforeUpdate(o.elementType===o.type?ke:Jn(o.type,ke),_t);U.__reactInternalSnapshotBeforeUpdate=F}break;case 3:var z=o.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(oe){vt(o,o.return,oe)}if(s=o.sibling,s!==null){s.return=o.return,ye=s;break}ye=o.return}return xe=Dx,Dx=!1,xe}function dl(s,o,c){var h=o.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var y=h=h.next;do{if((y.tag&s)===s){var x=y.destroy;y.destroy=void 0,x!==void 0&&Zh(o,c,x)}y=y.next}while(y!==h)}}function vu(s,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var c=o=o.next;do{if((c.tag&s)===s){var h=c.create;c.destroy=h()}c=c.next}while(c!==o)}}function Jh(s){var o=s.ref;if(o!==null){var c=s.stateNode;switch(s.tag){case 5:s=c;break;default:s=c}typeof o=="function"?o(s):o.current=s}}function Lx(s){var o=s.alternate;o!==null&&(s.alternate=null,Lx(o)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(o=s.stateNode,o!==null&&(delete o[mr],delete o[el],delete o[mh],delete o[wR],delete o[bR])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function Ix(s){return s.tag===5||s.tag===3||s.tag===4}function Fx(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Ix(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function ep(s,o,c){var h=s.tag;if(h===5||h===6)s=s.stateNode,o?c.nodeType===8?c.parentNode.insertBefore(s,o):c.insertBefore(s,o):(c.nodeType===8?(o=c.parentNode,o.insertBefore(s,c)):(o=c,o.appendChild(s)),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=Kc));else if(h!==4&&(s=s.child,s!==null))for(ep(s,o,c),s=s.sibling;s!==null;)ep(s,o,c),s=s.sibling}function tp(s,o,c){var h=s.tag;if(h===5||h===6)s=s.stateNode,o?c.insertBefore(s,o):c.appendChild(s);else if(h!==4&&(s=s.child,s!==null))for(tp(s,o,c),s=s.sibling;s!==null;)tp(s,o,c),s=s.sibling}var Vt=null,er=!1;function Cs(s,o,c){for(c=c.child;c!==null;)Bx(s,o,c),c=c.sibling}function Bx(s,o,c){if(pr&&typeof pr.onCommitFiberUnmount=="function")try{pr.onCommitFiberUnmount(Pc,c)}catch{}switch(c.tag){case 5:Xt||To(c,o);case 6:var h=Vt,y=er;Vt=null,Cs(s,o,c),Vt=h,er=y,Vt!==null&&(er?(s=Vt,c=c.stateNode,s.nodeType===8?s.parentNode.removeChild(c):s.removeChild(c)):Vt.removeChild(c.stateNode));break;case 18:Vt!==null&&(er?(s=Vt,c=c.stateNode,s.nodeType===8?ph(s.parentNode,c):s.nodeType===1&&ph(s,c),Wa(s)):ph(Vt,c.stateNode));break;case 4:h=Vt,y=er,Vt=c.stateNode.containerInfo,er=!0,Cs(s,o,c),Vt=h,er=y;break;case 0:case 11:case 14:case 15:if(!Xt&&(h=c.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){y=h=h.next;do{var x=y,j=x.destroy;x=x.tag,j!==void 0&&((x&2)!==0||(x&4)!==0)&&Zh(c,o,j),y=y.next}while(y!==h)}Cs(s,o,c);break;case 1:if(!Xt&&(To(c,o),h=c.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=c.memoizedProps,h.state=c.memoizedState,h.componentWillUnmount()}catch(A){vt(c,o,A)}Cs(s,o,c);break;case 21:Cs(s,o,c);break;case 22:c.mode&1?(Xt=(h=Xt)||c.memoizedState!==null,Cs(s,o,c),Xt=h):Cs(s,o,c);break;default:Cs(s,o,c)}}function Ux(s){var o=s.updateQueue;if(o!==null){s.updateQueue=null;var c=s.stateNode;c===null&&(c=s.stateNode=new IR),o.forEach(function(h){var y=qR.bind(null,s,h);c.has(h)||(c.add(h),h.then(y,y))})}}function tr(s,o){var c=o.deletions;if(c!==null)for(var h=0;h<c.length;h++){var y=c[h];try{var x=s,j=o,A=j;e:for(;A!==null;){switch(A.tag){case 5:Vt=A.stateNode,er=!1;break e;case 3:Vt=A.stateNode.containerInfo,er=!0;break e;case 4:Vt=A.stateNode.containerInfo,er=!0;break e}A=A.return}if(Vt===null)throw Error(n(160));Bx(x,j,y),Vt=null,er=!1;var D=y.alternate;D!==null&&(D.return=null),y.return=null}catch(H){vt(y,o,H)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Vx(o,s),o=o.sibling}function Vx(s,o){var c=s.alternate,h=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(tr(o,s),vr(s),h&4){try{dl(3,s,s.return),vu(3,s)}catch(ke){vt(s,s.return,ke)}try{dl(5,s,s.return)}catch(ke){vt(s,s.return,ke)}}break;case 1:tr(o,s),vr(s),h&512&&c!==null&&To(c,c.return);break;case 5:if(tr(o,s),vr(s),h&512&&c!==null&&To(c,c.return),s.flags&32){var y=s.stateNode;try{Aa(y,"")}catch(ke){vt(s,s.return,ke)}}if(h&4&&(y=s.stateNode,y!=null)){var x=s.memoizedProps,j=c!==null?c.memoizedProps:x,A=s.type,D=s.updateQueue;if(s.updateQueue=null,D!==null)try{A==="input"&&x.type==="radio"&&x.name!=null&&Ne(y,x),Af(A,j);var H=Af(A,x);for(j=0;j<D.length;j+=2){var ee=D[j],ne=D[j+1];ee==="style"?_0(y,ne):ee==="dangerouslySetInnerHTML"?b0(y,ne):ee==="children"?Aa(y,ne):C(y,ee,ne,H)}switch(A){case"input":pt(y,x);break;case"textarea":v0(y,x);break;case"select":var J=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!x.multiple;var fe=x.value;fe!=null?hs(y,!!x.multiple,fe,!1):J!==!!x.multiple&&(x.defaultValue!=null?hs(y,!!x.multiple,x.defaultValue,!0):hs(y,!!x.multiple,x.multiple?[]:"",!1))}y[el]=x}catch(ke){vt(s,s.return,ke)}}break;case 6:if(tr(o,s),vr(s),h&4){if(s.stateNode===null)throw Error(n(162));y=s.stateNode,x=s.memoizedProps;try{y.nodeValue=x}catch(ke){vt(s,s.return,ke)}}break;case 3:if(tr(o,s),vr(s),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Wa(o.containerInfo)}catch(ke){vt(s,s.return,ke)}break;case 4:tr(o,s),vr(s);break;case 13:tr(o,s),vr(s),y=s.child,y.flags&8192&&(x=y.memoizedState!==null,y.stateNode.isHidden=x,!x||y.alternate!==null&&y.alternate.memoizedState!==null||(sp=St())),h&4&&Ux(s);break;case 22:if(ee=c!==null&&c.memoizedState!==null,s.mode&1?(Xt=(H=Xt)||ee,tr(o,s),Xt=H):tr(o,s),vr(s),h&8192){if(H=s.memoizedState!==null,(s.stateNode.isHidden=H)&&!ee&&(s.mode&1)!==0)for(ye=s,ee=s.child;ee!==null;){for(ne=ye=ee;ye!==null;){switch(J=ye,fe=J.child,J.tag){case 0:case 11:case 14:case 15:dl(4,J,J.return);break;case 1:To(J,J.return);var xe=J.stateNode;if(typeof xe.componentWillUnmount=="function"){h=J,c=J.return;try{o=h,xe.props=o.memoizedProps,xe.state=o.memoizedState,xe.componentWillUnmount()}catch(ke){vt(h,c,ke)}}break;case 5:To(J,J.return);break;case 22:if(J.memoizedState!==null){$x(ne);continue}}fe!==null?(fe.return=J,ye=fe):$x(ne)}ee=ee.sibling}e:for(ee=null,ne=s;;){if(ne.tag===5){if(ee===null){ee=ne;try{y=ne.stateNode,H?(x=y.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(A=ne.stateNode,D=ne.memoizedProps.style,j=D!=null&&D.hasOwnProperty("display")?D.display:null,A.style.display=S0("display",j))}catch(ke){vt(s,s.return,ke)}}}else if(ne.tag===6){if(ee===null)try{ne.stateNode.nodeValue=H?"":ne.memoizedProps}catch(ke){vt(s,s.return,ke)}}else if((ne.tag!==22&&ne.tag!==23||ne.memoizedState===null||ne===s)&&ne.child!==null){ne.child.return=ne,ne=ne.child;continue}if(ne===s)break e;for(;ne.sibling===null;){if(ne.return===null||ne.return===s)break e;ee===ne&&(ee=null),ne=ne.return}ee===ne&&(ee=null),ne.sibling.return=ne.return,ne=ne.sibling}}break;case 19:tr(o,s),vr(s),h&4&&Ux(s);break;case 21:break;default:tr(o,s),vr(s)}}function vr(s){var o=s.flags;if(o&2){try{e:{for(var c=s.return;c!==null;){if(Ix(c)){var h=c;break e}c=c.return}throw Error(n(160))}switch(h.tag){case 5:var y=h.stateNode;h.flags&32&&(Aa(y,""),h.flags&=-33);var x=Fx(s);tp(s,x,y);break;case 3:case 4:var j=h.stateNode.containerInfo,A=Fx(s);ep(s,A,j);break;default:throw Error(n(161))}}catch(D){vt(s,s.return,D)}s.flags&=-3}o&4096&&(s.flags&=-4097)}function BR(s,o,c){ye=s,zx(s)}function zx(s,o,c){for(var h=(s.mode&1)!==0;ye!==null;){var y=ye,x=y.child;if(y.tag===22&&h){var j=y.memoizedState!==null||yu;if(!j){var A=y.alternate,D=A!==null&&A.memoizedState!==null||Xt;A=yu;var H=Xt;if(yu=j,(Xt=D)&&!H)for(ye=y;ye!==null;)j=ye,D=j.child,j.tag===22&&j.memoizedState!==null?Hx(y):D!==null?(D.return=j,ye=D):Hx(y);for(;x!==null;)ye=x,zx(x),x=x.sibling;ye=y,yu=A,Xt=H}Wx(s)}else(y.subtreeFlags&8772)!==0&&x!==null?(x.return=y,ye=x):Wx(s)}}function Wx(s){for(;ye!==null;){var o=ye;if((o.flags&8772)!==0){var c=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:Xt||vu(5,o);break;case 1:var h=o.stateNode;if(o.flags&4&&!Xt)if(c===null)h.componentDidMount();else{var y=o.elementType===o.type?c.memoizedProps:Jn(o.type,c.memoizedProps);h.componentDidUpdate(y,c.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var x=o.updateQueue;x!==null&&$v(o,x,h);break;case 3:var j=o.updateQueue;if(j!==null){if(c=null,o.child!==null)switch(o.child.tag){case 5:c=o.child.stateNode;break;case 1:c=o.child.stateNode}$v(o,j,c)}break;case 5:var A=o.stateNode;if(c===null&&o.flags&4){c=A;var D=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":D.autoFocus&&c.focus();break;case"img":D.src&&(c.src=D.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var H=o.alternate;if(H!==null){var ee=H.memoizedState;if(ee!==null){var ne=ee.dehydrated;ne!==null&&Wa(ne)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Xt||o.flags&512&&Jh(o)}catch(J){vt(o,o.return,J)}}if(o===s){ye=null;break}if(c=o.sibling,c!==null){c.return=o.return,ye=c;break}ye=o.return}}function $x(s){for(;ye!==null;){var o=ye;if(o===s){ye=null;break}var c=o.sibling;if(c!==null){c.return=o.return,ye=c;break}ye=o.return}}function Hx(s){for(;ye!==null;){var o=ye;try{switch(o.tag){case 0:case 11:case 15:var c=o.return;try{vu(4,o)}catch(D){vt(o,c,D)}break;case 1:var h=o.stateNode;if(typeof h.componentDidMount=="function"){var y=o.return;try{h.componentDidMount()}catch(D){vt(o,y,D)}}var x=o.return;try{Jh(o)}catch(D){vt(o,x,D)}break;case 5:var j=o.return;try{Jh(o)}catch(D){vt(o,j,D)}}}catch(D){vt(o,o.return,D)}if(o===s){ye=null;break}var A=o.sibling;if(A!==null){A.return=o.return,ye=A;break}ye=o.return}}var UR=Math.ceil,xu=T.ReactCurrentDispatcher,np=T.ReactCurrentOwner,In=T.ReactCurrentBatchConfig,Ye=0,Ft=null,Tt=null,zt=0,Cn=0,jo=bs(0),Pt=0,fl=null,xi=0,wu=0,rp=0,hl=null,pn=null,sp=0,Ro=1/0,Hr=null,bu=!1,ip=null,Ts=null,Su=!1,js=null,_u=0,pl=0,op=null,ku=-1,Eu=0;function ln(){return(Ye&6)!==0?St():ku!==-1?ku:ku=St()}function Rs(s){return(s.mode&1)===0?1:(Ye&2)!==0&&zt!==0?zt&-zt:_R.transition!==null?(Eu===0&&(Eu=F0()),Eu):(s=Ze,s!==0||(s=window.event,s=s===void 0?16:q0(s.type)),s)}function nr(s,o,c,h){if(50<pl)throw pl=0,op=null,Error(n(185));Fa(s,c,h),((Ye&2)===0||s!==Ft)&&(s===Ft&&((Ye&2)===0&&(wu|=c),Pt===4&&Ns(s,zt)),mn(s,h),c===1&&Ye===0&&(o.mode&1)===0&&(Ro=St()+500,Jc&&_s()))}function mn(s,o){var c=s.callbackNode;_j(s,o);var h=Mc(s,s===Ft?zt:0);if(h===0)c!==null&&D0(c),s.callbackNode=null,s.callbackPriority=0;else if(o=h&-h,s.callbackPriority!==o){if(c!=null&&D0(c),o===1)s.tag===0?SR(qx.bind(null,s)):Av(qx.bind(null,s)),vR(function(){(Ye&6)===0&&_s()}),c=null;else{switch(B0(h)){case 1:c=Bf;break;case 4:c=L0;break;case 16:c=Nc;break;case 536870912:c=I0;break;default:c=Nc}c=tw(c,Yx.bind(null,s))}s.callbackPriority=o,s.callbackNode=c}}function Yx(s,o){if(ku=-1,Eu=0,(Ye&6)!==0)throw Error(n(327));var c=s.callbackNode;if(No()&&s.callbackNode!==c)return null;var h=Mc(s,s===Ft?zt:0);if(h===0)return null;if((h&30)!==0||(h&s.expiredLanes)!==0||o)o=Cu(s,h);else{o=h;var y=Ye;Ye|=2;var x=Kx();(Ft!==s||zt!==o)&&(Hr=null,Ro=St()+500,bi(s,o));do try{WR();break}catch(A){Gx(s,A)}while(!0);kh(),xu.current=x,Ye=y,Tt!==null?o=0:(Ft=null,zt=0,o=Pt)}if(o!==0){if(o===2&&(y=Uf(s),y!==0&&(h=y,o=ap(s,y))),o===1)throw c=fl,bi(s,0),Ns(s,h),mn(s,St()),c;if(o===6)Ns(s,h);else{if(y=s.current.alternate,(h&30)===0&&!VR(y)&&(o=Cu(s,h),o===2&&(x=Uf(s),x!==0&&(h=x,o=ap(s,x))),o===1))throw c=fl,bi(s,0),Ns(s,h),mn(s,St()),c;switch(s.finishedWork=y,s.finishedLanes=h,o){case 0:case 1:throw Error(n(345));case 2:Si(s,pn,Hr);break;case 3:if(Ns(s,h),(h&130023424)===h&&(o=sp+500-St(),10<o)){if(Mc(s,0)!==0)break;if(y=s.suspendedLanes,(y&h)!==h){ln(),s.pingedLanes|=s.suspendedLanes&y;break}s.timeoutHandle=hh(Si.bind(null,s,pn,Hr),o);break}Si(s,pn,Hr);break;case 4:if(Ns(s,h),(h&4194240)===h)break;for(o=s.eventTimes,y=-1;0<h;){var j=31-Qn(h);x=1<<j,j=o[j],j>y&&(y=j),h&=~x}if(h=y,h=St()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*UR(h/1960))-h,10<h){s.timeoutHandle=hh(Si.bind(null,s,pn,Hr),h);break}Si(s,pn,Hr);break;case 5:Si(s,pn,Hr);break;default:throw Error(n(329))}}}return mn(s,St()),s.callbackNode===c?Yx.bind(null,s):null}function ap(s,o){var c=hl;return s.current.memoizedState.isDehydrated&&(bi(s,o).flags|=256),s=Cu(s,o),s!==2&&(o=pn,pn=c,o!==null&&lp(o)),s}function lp(s){pn===null?pn=s:pn.push.apply(pn,s)}function VR(s){for(var o=s;;){if(o.flags&16384){var c=o.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var h=0;h<c.length;h++){var y=c[h],x=y.getSnapshot;y=y.value;try{if(!Xn(x(),y))return!1}catch{return!1}}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Ns(s,o){for(o&=~rp,o&=~wu,s.suspendedLanes|=o,s.pingedLanes&=~o,s=s.expirationTimes;0<o;){var c=31-Qn(o),h=1<<c;s[c]=-1,o&=~h}}function qx(s){if((Ye&6)!==0)throw Error(n(327));No();var o=Mc(s,0);if((o&1)===0)return mn(s,St()),null;var c=Cu(s,o);if(s.tag!==0&&c===2){var h=Uf(s);h!==0&&(o=h,c=ap(s,h))}if(c===1)throw c=fl,bi(s,0),Ns(s,o),mn(s,St()),c;if(c===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=o,Si(s,pn,Hr),mn(s,St()),null}function cp(s,o){var c=Ye;Ye|=1;try{return s(o)}finally{Ye=c,Ye===0&&(Ro=St()+500,Jc&&_s())}}function wi(s){js!==null&&js.tag===0&&(Ye&6)===0&&No();var o=Ye;Ye|=1;var c=In.transition,h=Ze;try{if(In.transition=null,Ze=1,s)return s()}finally{Ze=h,In.transition=c,Ye=o,(Ye&6)===0&&_s()}}function up(){Cn=jo.current,at(jo)}function bi(s,o){s.finishedWork=null,s.finishedLanes=0;var c=s.timeoutHandle;if(c!==-1&&(s.timeoutHandle=-1,yR(c)),Tt!==null)for(c=Tt.return;c!==null;){var h=c;switch(xh(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&Xc();break;case 3:Eo(),at(dn),at(Gt),Ah();break;case 5:Nh(h);break;case 4:Eo();break;case 13:at(mt);break;case 19:at(mt);break;case 10:Eh(h.type._context);break;case 22:case 23:up()}c=c.return}if(Ft=s,Tt=s=Ps(s.current,null),zt=Cn=o,Pt=0,fl=null,rp=wu=xi=0,pn=hl=null,gi!==null){for(o=0;o<gi.length;o++)if(c=gi[o],h=c.interleaved,h!==null){c.interleaved=null;var y=h.next,x=c.pending;if(x!==null){var j=x.next;x.next=y,h.next=j}c.pending=h}gi=null}return s}function Gx(s,o){do{var c=Tt;try{if(kh(),cu.current=hu,uu){for(var h=gt.memoizedState;h!==null;){var y=h.queue;y!==null&&(y.pending=null),h=h.next}uu=!1}if(vi=0,It=Nt=gt=null,ol=!1,al=0,np.current=null,c===null||c.return===null){Pt=1,fl=o,Tt=null;break}e:{var x=s,j=c.return,A=c,D=o;if(o=zt,A.flags|=32768,D!==null&&typeof D=="object"&&typeof D.then=="function"){var H=D,ee=A,ne=ee.tag;if((ee.mode&1)===0&&(ne===0||ne===11||ne===15)){var J=ee.alternate;J?(ee.updateQueue=J.updateQueue,ee.memoizedState=J.memoizedState,ee.lanes=J.lanes):(ee.updateQueue=null,ee.memoizedState=null)}var fe=xx(j);if(fe!==null){fe.flags&=-257,wx(fe,j,A,x,o),fe.mode&1&&vx(x,H,o),o=fe,D=H;var xe=o.updateQueue;if(xe===null){var ke=new Set;ke.add(D),o.updateQueue=ke}else xe.add(D);break e}else{if((o&1)===0){vx(x,H,o),dp();break e}D=Error(n(426))}}else if(dt&&A.mode&1){var _t=xx(j);if(_t!==null){(_t.flags&65536)===0&&(_t.flags|=256),wx(_t,j,A,x,o),Sh(Co(D,A));break e}}x=D=Co(D,A),Pt!==4&&(Pt=2),hl===null?hl=[x]:hl.push(x),x=j;do{switch(x.tag){case 3:x.flags|=65536,o&=-o,x.lanes|=o;var U=gx(x,D,o);Wv(x,U);break e;case 1:A=D;var F=x.type,z=x.stateNode;if((x.flags&128)===0&&(typeof F.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(Ts===null||!Ts.has(z)))){x.flags|=65536,o&=-o,x.lanes|=o;var oe=yx(x,A,o);Wv(x,oe);break e}}x=x.return}while(x!==null)}Xx(c)}catch(Ee){o=Ee,Tt===c&&c!==null&&(Tt=c=c.return);continue}break}while(!0)}function Kx(){var s=xu.current;return xu.current=hu,s===null?hu:s}function dp(){(Pt===0||Pt===3||Pt===2)&&(Pt=4),Ft===null||(xi&268435455)===0&&(wu&268435455)===0||Ns(Ft,zt)}function Cu(s,o){var c=Ye;Ye|=2;var h=Kx();(Ft!==s||zt!==o)&&(Hr=null,bi(s,o));do try{zR();break}catch(y){Gx(s,y)}while(!0);if(kh(),Ye=c,xu.current=h,Tt!==null)throw Error(n(261));return Ft=null,zt=0,Pt}function zR(){for(;Tt!==null;)Qx(Tt)}function WR(){for(;Tt!==null&&!pj();)Qx(Tt)}function Qx(s){var o=ew(s.alternate,s,Cn);s.memoizedProps=s.pendingProps,o===null?Xx(s):Tt=o,np.current=null}function Xx(s){var o=s;do{var c=o.alternate;if(s=o.return,(o.flags&32768)===0){if(c=DR(c,o,Cn),c!==null){Tt=c;return}}else{if(c=LR(c,o),c!==null){c.flags&=32767,Tt=c;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Pt=6,Tt=null;return}}if(o=o.sibling,o!==null){Tt=o;return}Tt=o=s}while(o!==null);Pt===0&&(Pt=5)}function Si(s,o,c){var h=Ze,y=In.transition;try{In.transition=null,Ze=1,$R(s,o,c,h)}finally{In.transition=y,Ze=h}return null}function $R(s,o,c,h){do No();while(js!==null);if((Ye&6)!==0)throw Error(n(327));c=s.finishedWork;var y=s.finishedLanes;if(c===null)return null;if(s.finishedWork=null,s.finishedLanes=0,c===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var x=c.lanes|c.childLanes;if(kj(s,x),s===Ft&&(Tt=Ft=null,zt=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||Su||(Su=!0,tw(Nc,function(){return No(),null})),x=(c.flags&15990)!==0,(c.subtreeFlags&15990)!==0||x){x=In.transition,In.transition=null;var j=Ze;Ze=1;var A=Ye;Ye|=4,np.current=null,FR(s,c),Vx(c,s),uR(dh),Ic=!!uh,dh=uh=null,s.current=c,BR(c),mj(),Ye=A,Ze=j,In.transition=x}else s.current=c;if(Su&&(Su=!1,js=s,_u=y),x=s.pendingLanes,x===0&&(Ts=null),vj(c.stateNode),mn(s,St()),o!==null)for(h=s.onRecoverableError,c=0;c<o.length;c++)y=o[c],h(y.value,{componentStack:y.stack,digest:y.digest});if(bu)throw bu=!1,s=ip,ip=null,s;
vendor: 5,537 bytes, line 41
41return(_u&1)!==0&&s.tag!==0&&No(),x=s.pendingLanes,(x&1)!==0?s===op?pl++:(pl=0,op=s):pl=0,_s(),null}function No(){if(js!==null){var s=B0(_u),o=In.transition,c=Ze;try{if(In.transition=null,Ze=16>s?16:s,js===null)var h=!1;else{if(s=js,js=null,_u=0,(Ye&6)!==0)throw Error(n(331));var y=Ye;for(Ye|=4,ye=s.current;ye!==null;){var x=ye,j=x.child;if((ye.flags&16)!==0){var A=x.deletions;if(A!==null){for(var D=0;D<A.length;D++){var H=A[D];for(ye=H;ye!==null;){var ee=ye;switch(ee.tag){case 0:case 11:case 15:dl(8,ee,x)}var ne=ee.child;if(ne!==null)ne.return=ee,ye=ne;else for(;ye!==null;){ee=ye;var J=ee.sibling,fe=ee.return;if(Lx(ee),ee===H){ye=null;break}if(J!==null){J.return=fe,ye=J;break}ye=fe}}}var xe=x.alternate;if(xe!==null){var ke=xe.child;if(ke!==null){xe.child=null;do{var _t=ke.sibling;ke.sibling=null,ke=_t}while(ke!==null)}}ye=x}}if((x.subtreeFlags&2064)!==0&&j!==null)j.return=x,ye=j;else e:for(;ye!==null;){if(x=ye,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:dl(9,x,x.return)}var U=x.sibling;if(U!==null){U.return=x.return,ye=U;break e}ye=x.return}}var F=s.current;for(ye=F;ye!==null;){j=ye;var z=j.child;if((j.subtreeFlags&2064)!==0&&z!==null)z.return=j,ye=z;else e:for(j=F;ye!==null;){if(A=ye,(A.flags&2048)!==0)try{switch(A.tag){case 0:case 11:case 15:vu(9,A)}}catch(Ee){vt(A,A.return,Ee)}if(A===j){ye=null;break e}var oe=A.sibling;if(oe!==null){oe.return=A.return,ye=oe;break e}ye=A.return}}if(Ye=y,_s(),pr&&typeof pr.onPostCommitFiberRoot=="function")try{pr.onPostCommitFiberRoot(Pc,s)}catch{}h=!0}return h}finally{Ze=c,In.transition=o}}return!1}function Zx(s,o,c){o=Co(c,o),o=gx(s,o,1),s=Es(s,o,1),o=ln(),s!==null&&(Fa(s,1,o),mn(s,o))}function vt(s,o,c){if(s.tag===3)Zx(s,s,c);else for(;o!==null;){if(o.tag===3){Zx(o,s,c);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Ts===null||!Ts.has(h))){s=Co(c,s),s=yx(o,s,1),o=Es(o,s,1),s=ln(),o!==null&&(Fa(o,1,s),mn(o,s));break}}o=o.return}}function HR(s,o,c){var h=s.pingCache;h!==null&&h.delete(o),o=ln(),s.pingedLanes|=s.suspendedLanes&c,Ft===s&&(zt&c)===c&&(Pt===4||Pt===3&&(zt&130023424)===zt&&500>St()-sp?bi(s,0):rp|=c),mn(s,o)}function Jx(s,o){o===0&&((s.mode&1)===0?o=1:(o=Oc,Oc<<=1,(Oc&130023424)===0&&(Oc=4194304)));var c=ln();s=zr(s,o),s!==null&&(Fa(s,o,c),mn(s,c))}function YR(s){var o=s.memoizedState,c=0;o!==null&&(c=o.retryLane),Jx(s,c)}function qR(s,o){var c=0;switch(s.tag){case 13:var h=s.stateNode,y=s.memoizedState;y!==null&&(c=y.retryLane);break;case 19:h=s.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(o),Jx(s,c)}var ew;ew=function(s,o,c){if(s!==null)if(s.memoizedProps!==o.pendingProps||dn.current)hn=!0;else{if((s.lanes&c)===0&&(o.flags&128)===0)return hn=!1,MR(s,o,c);hn=(s.flags&131072)!==0}else hn=!1,dt&&(o.flags&1048576)!==0&&Ov(o,tu,o.index);switch(o.lanes=0,o.tag){case 2:var h=o.type;gu(s,o),s=o.pendingProps;var y=vo(o,Gt.current);ko(o,c),y=Dh(null,o,h,s,y,c);var x=Lh();return o.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,fn(h)?(x=!0,Zc(o)):x=!1,o.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,jh(o),y.updater=pu,o.stateNode=y,y._reactInternals=o,zh(o,h,s,c),o=Yh(null,o,h,!0,x,c)):(o.tag=0,dt&&x&&vh(o),an(null,o,y,c),o=o.child),o;case 16:h=o.elementType;e:{switch(gu(s,o),s=o.pendingProps,y=h._init,h=y(h._payload),o.type=h,y=o.tag=KR(h),s=Jn(h,s),y){case 0:o=Hh(null,o,h,s,c);break e;case 1:o=Cx(null,o,h,s,c);break e;case 11:o=bx(null,o,h,s,c);break e;case 14:o=Sx(null,o,h,Jn(h.type,s),c);break e}throw Error(n(306,h,""))}return o;case 0:return h=o.type,y=o.pendingProps,y=o.elementType===h?y:Jn(h,y),Hh(s,o,h,y,c);case 1:return h=o.type,y=o.pendingProps,y=o.elementType===h?y:Jn(h,y),Cx(s,o,h,y,c);case 3:e:{if(Tx(o),s===null)throw Error(n(387));h=o.pendingProps,x=o.memoizedState,y=x.element,zv(s,o),au(o,h,null,c);var j=o.memoizedState;if(h=j.element,x.isDehydrated)if(x={element:h,isDehydrated:!1,cache:j.cache,pendingSuspenseBoundaries:j.pendingSuspenseBoundaries,transitions:j.transitions},o.updateQueue.baseState=x,o.memoizedState=x,o.flags&256){y=Co(Error(n(423)),o),o=jx(s,o,h,c,y);break e}else if(h!==y){y=Co(Error(n(424)),o),o=jx(s,o,h,c,y);break e}else for(En=ws(o.stateNode.containerInfo.firstChild),kn=o,dt=!0,Zn=null,c=Uv(o,null,h,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(bo(),h===y){o=$r(s,o,c);break e}an(s,o,h,c)}o=o.child}return o;case 5:return Hv(o),s===null&&bh(o),h=o.type,y=o.pendingProps,x=s!==null?s.memoizedProps:null,j=y.children,fh(h,y)?j=null:x!==null&&fh(h,x)&&(o.flags|=32),Ex(s,o),an(s,o,j,c),o.child;case 6:return s===null&&bh(o),null;case 13:return Rx(s,o,c);case 4:return Rh(o,o.stateNode.containerInfo),h=o.pendingProps,s===null?o.child=So(o,null,h,c):an(s,o,h,c),o.child;case 11:return h=o.type,y=o.pendingProps,y=o.elementType===h?y:Jn(h,y),bx(s,o,h,y,c);case 7:return an(s,o,o.pendingProps,c),o.child;case 8:return an(s,o,o.pendingProps.children,c),o.child;case 12:return an(s,o,o.pendingProps.children,c),o.child;case 10:e:{if(h=o.type._context,y=o.pendingProps,x=o.memoizedProps,j=y.value,rt(su,h._currentValue),h._currentValue=j,x!==null)if(Xn(x.value,j)){if(x.children===y.children&&!dn.current){o=$r(s,o,c);break e}}else for(x=o.child,x!==null&&(x.return=o);x!==null;){var A=x.dependencies;if(A!==null){j=x.child;for(var D=A.firstContext;D!==null;){if(D.context===h){if(x.tag===1){D=Wr(-1,c&-c),D.tag=2;var H=x.updateQueue;if(H!==null){H=H.shared;
vendor: 6,666 bytes, line 41
41var ee=H.pending;ee===null?D.next=D:(D.next=ee.next,ee.next=D),H.pending=D}}x.lanes|=c,D=x.alternate,D!==null&&(D.lanes|=c),Ch(x.return,c,o),A.lanes|=c;break}D=D.next}}else if(x.tag===10)j=x.type===o.type?null:x.child;else if(x.tag===18){if(j=x.return,j===null)throw Error(n(341));j.lanes|=c,A=j.alternate,A!==null&&(A.lanes|=c),Ch(j,c,o),j=x.sibling}else j=x.child;if(j!==null)j.return=x;else for(j=x;j!==null;){if(j===o){j=null;break}if(x=j.sibling,x!==null){x.return=j.return,j=x;break}j=j.return}x=j}an(s,o,y.children,c),o=o.child}return o;case 9:return y=o.type,h=o.pendingProps.children,ko(o,c),y=Dn(y),h=h(y),o.flags|=1,an(s,o,h,c),o.child;case 14:return h=o.type,y=Jn(h,o.pendingProps),y=Jn(h.type,y),Sx(s,o,h,y,c);case 15:return _x(s,o,o.type,o.pendingProps,c);case 17:return h=o.type,y=o.pendingProps,y=o.elementType===h?y:Jn(h,y),gu(s,o),o.tag=1,fn(h)?(s=!0,Zc(o)):s=!1,ko(o,c),px(o,h,y),zh(o,h,y,c),Yh(null,o,h,!0,s,c);case 19:return Px(s,o,c);case 22:return kx(s,o,c)}throw Error(n(156,o.tag))};function tw(s,o){return M0(s,o)}function GR(s,o,c,h){this.tag=s,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fn(s,o,c,h){return new GR(s,o,c,h)}function fp(s){return s=s.prototype,!(!s||!s.isReactComponent)}function KR(s){if(typeof s=="function")return fp(s)?1:0;if(s!=null){if(s=s.$$typeof,s===q)return 11;if(s===he)return 14}return 2}function Ps(s,o){var c=s.alternate;return c===null?(c=Fn(s.tag,o,s.key,s.mode),c.elementType=s.elementType,c.type=s.type,c.stateNode=s.stateNode,c.alternate=s,s.alternate=c):(c.pendingProps=o,c.type=s.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=s.flags&14680064,c.childLanes=s.childLanes,c.lanes=s.lanes,c.child=s.child,c.memoizedProps=s.memoizedProps,c.memoizedState=s.memoizedState,c.updateQueue=s.updateQueue,o=s.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=s.sibling,c.index=s.index,c.ref=s.ref,c}function Tu(s,o,c,h,y,x){var j=2;if(h=s,typeof s=="function")fp(s)&&(j=1);else if(typeof s=="string")j=5;else e:switch(s){case B:return _i(c.children,y,x,o);case M:j=8,y|=8;break;case Y:return s=Fn(12,c,o,y|2),s.elementType=Y,s.lanes=x,s;case Q:return s=Fn(13,c,o,y),s.elementType=Q,s.lanes=x,s;case Z:return s=Fn(19,c,o,y),s.elementType=Z,s.lanes=x,s;case re:return ju(c,y,x,o);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case G:j=10;break e;case K:j=9;break e;case q:j=11;break e;case he:j=14;break e;case X:j=16,h=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return o=Fn(j,c,o,y),o.elementType=s,o.type=h,o.lanes=x,o}function _i(s,o,c,h){return s=Fn(7,s,h,o),s.lanes=c,s}function ju(s,o,c,h){return s=Fn(22,s,h,o),s.elementType=re,s.lanes=c,s.stateNode={isHidden:!1},s}function hp(s,o,c){return s=Fn(6,s,null,o),s.lanes=c,s}function pp(s,o,c){return o=Fn(4,s.children!==null?s.children:[],s.key,o),o.lanes=c,o.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},o}function QR(s,o,c,h,y){this.tag=o,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vf(0),this.expirationTimes=Vf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vf(0),this.identifierPrefix=h,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function mp(s,o,c,h,y,x,j,A,D){return s=new QR(s,o,c,A,D),o===1?(o=1,x===!0&&(o|=8)):o=0,x=Fn(3,null,null,o),s.current=x,x.stateNode=s,x.memoizedState={element:h,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},jh(x),s}function XR(s,o,c){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:h==null?null:""+h,children:s,containerInfo:o,implementation:c}}function nw(s){if(!s)return Ss;s=s._reactInternals;e:{if(di(s)!==s||s.tag!==1)throw Error(n(170));var o=s;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(fn(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(s.tag===1){var c=s.type;if(fn(c))return Nv(s,c,o)}return o}function rw(s,o,c,h,y,x,j,A,D){return s=mp(c,h,!0,s,y,x,j,A,D),s.context=nw(null),c=s.current,h=ln(),y=Rs(c),x=Wr(h,y),x.callback=o??null,Es(c,x,y),s.current.lanes=y,Fa(s,y,h),mn(s,h),s}function Ru(s,o,c,h){var y=o.current,x=ln(),j=Rs(y);return c=nw(c),o.context===null?o.context=c:o.pendingContext=c,o=Wr(x,j),o.payload={element:s},h=h===void 0?null:h,h!==null&&(o.callback=h),s=Es(y,o,j),s!==null&&(nr(s,y,j,x),ou(s,y,j)),j}function Nu(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function sw(s,o){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var c=s.retryLane;s.retryLane=c!==0&&c<o?c:o}}function gp(s,o){sw(s,o),(s=s.alternate)&&sw(s,o)}function ZR(){return null}var iw=typeof reportError=="function"?reportError:function(s){console.error(s)};function yp(s){this._internalRoot=s}Pu.prototype.render=yp.prototype.render=function(s){var o=this._internalRoot;if(o===null)throw Error(n(409));Ru(s,o,null,null)},Pu.prototype.unmount=yp.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var o=s.containerInfo;wi(function(){Ru(null,s,null,null)}),o[Fr]=null}};function Pu(s){this._internalRoot=s}Pu.prototype.unstable_scheduleHydration=function(s){if(s){var o=z0();s={blockedOn:null,target:s,priority:o};for(var c=0;c<ys.length&&o!==0&&o<ys[c].priority;c++);ys.splice(c,0,s),c===0&&H0(s)}};function vp(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Au(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function ow(){}function JR(s,o,c,h,y){if(y){if(typeof h=="function"){var x=h;h=function(){var H=Nu(j);x.call(H)}}var j=rw(o,h,s,0,null,!1,!1,"",ow);return s._reactRootContainer=j,s[Fr]=j.current,Za(s.nodeType===8?s.parentNode:s),wi(),j}for(;y=s.lastChild;)s.removeChild(y);if(typeof h=="function"){var A=h;h=function(){var H=Nu(D);A.call(H)}}var D=mp(s,0,!1,null,null,!1,!1,"",ow);return s._reactRootContainer=D,s[Fr]=D.current,Za(s.nodeType===8?s.parentNode:s),wi(function(){Ru(o,D,c,h)}),D}
vendor: 5,153 bytes, line 41
41function Ou(s,o,c,h,y){var x=c._reactRootContainer;if(x){var j=x;if(typeof y=="function"){var A=y;y=function(){var D=Nu(j);A.call(D)}}Ru(o,j,s,y)}else j=JR(c,o,s,y,h);return Nu(j)}U0=function(s){switch(s.tag){case 3:var o=s.stateNode;if(o.current.memoizedState.isDehydrated){var c=Ia(o.pendingLanes);c!==0&&(zf(o,c|1),mn(o,St()),(Ye&6)===0&&(Ro=St()+500,_s()))}break;case 13:wi(function(){var h=zr(s,1);if(h!==null){var y=ln();nr(h,s,1,y)}}),gp(s,1)}},Wf=function(s){if(s.tag===13){var o=zr(s,134217728);if(o!==null){var c=ln();nr(o,s,134217728,c)}gp(s,134217728)}},V0=function(s){if(s.tag===13){var o=Rs(s),c=zr(s,o);if(c!==null){var h=ln();nr(c,s,o,h)}gp(s,o)}},z0=function(){return Ze},W0=function(s,o){var c=Ze;try{return Ze=s,o()}finally{Ze=c}},Df=function(s,o,c){switch(o){case"input":if(pt(s,c),o=c.name,c.type==="radio"&&o!=null){for(c=s;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<c.length;o++){var h=c[o];if(h!==s&&h.form===s.form){var y=Qc(h);if(!y)throw Error(n(90));Oe(h),pt(h,y)}}}break;case"textarea":v0(s,c);break;case"select":o=c.value,o!=null&&hs(s,!!c.multiple,o,!1)}},T0=cp,j0=wi;var eN={usingClientEntryPoint:!1,Events:[tl,go,Qc,E0,C0,cp]},ml={findFiberByHostInstance:fi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tN={bundleType:ml.bundleType,version:ml.version,rendererPackageName:ml.rendererPackageName,rendererConfig:ml.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=A0(s),s===null?null:s.stateNode},findFiberByHostInstance:ml.findFiberByHostInstance||ZR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mu.isDisabled&&Mu.supportsFiber)try{Pc=Mu.inject(tN),pr=Mu}catch{}}return gn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eN,gn.createPortal=function(s,o){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vp(o))throw Error(n(200));return XR(s,o,null,c)},gn.createRoot=function(s,o){if(!vp(s))throw Error(n(299));var c=!1,h="",y=iw;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(y=o.onRecoverableError)),o=mp(s,1,!1,null,null,c,!1,h,y),s[Fr]=o.current,Za(s.nodeType===8?s.parentNode:s),new yp(o)},gn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var o=s._reactInternals;if(o===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=A0(o),s=s===null?null:s.stateNode,s},gn.flushSync=function(s){return wi(s)},gn.hydrate=function(s,o,c){if(!Au(o))throw Error(n(200));return Ou(null,s,o,!0,c)},gn.hydrateRoot=function(s,o,c){if(!vp(s))throw Error(n(405));var h=c!=null&&c.hydratedSources||null,y=!1,x="",j=iw;if(c!=null&&(c.unstable_strictMode===!0&&(y=!0),c.identifierPrefix!==void 0&&(x=c.identifierPrefix),c.onRecoverableError!==void 0&&(j=c.onRecoverableError)),o=rw(o,null,s,1,c??null,y,!1,x,j),s[Fr]=o.current,Za(s),h)for(s=0;s<h.length;s++)c=h[s],y=c._getVersion,y=y(c._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[c,y]:o.mutableSourceEagerHydrationData.push(c,y);return new Pu(o)},gn.render=function(s,o,c){if(!Au(o))throw Error(n(200));return Ou(null,s,o,!1,c)},gn.unmountComponentAtNode=function(s){if(!Au(s))throw Error(n(40));return s._reactRootContainer?(wi(function(){Ou(null,null,s,!1,function(){s._reactRootContainer=null,s[Fr]=null})}),!0):!1},gn.unstable_batchedUpdates=cp,gn.unstable_renderSubtreeIntoContainer=function(s,o,c,h){if(!Au(c))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return Ou(s,o,c,!1,h)},gn.version="18.3.1-next-f1338f8080-20240426",gn}var mw;function GS(){if(mw)return Sp.exports;mw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Sp.exports=dN(),Sp.exports}var gw;function fN(){if(gw)return Lu;gw=1;var e=GS();return Lu.createRoot=e.createRoot,Lu.hydrateRoot=e.hydrateRoot,Lu}var hN=fN();const pN=Pg(hN),mN=20,gN=1e6,Zr={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Ep=0;function yN(){return Ep=(Ep+1)%Number.MAX_VALUE,Ep.toString()}const Cp=new Map,yw=e=>{if(Cp.has(e))return;const t=setTimeout(()=>{Cp.delete(e),Al({type:Zr.REMOVE_TOAST,toastId:e})},gN);Cp.set(e,t)},vN=(e,t)=>{switch(t.type){case Zr.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,mN)};case Zr.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case Zr.DISMISS_TOAST:{const{toastId:n}=t;
vendor: 21,493 bytes, lines 41-281
41return n?yw(n):e.toasts.forEach(r=>{yw(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case Zr.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},sd=[];let id={toasts:[]};function Al(e){id=vN(id,e),sd.forEach(t=>{t(id)})}function xN({...e}){const t=yN(),n=i=>Al({type:Zr.UPDATE_TOAST,toast:{...i,id:t}}),r=()=>Al({type:Zr.DISMISS_TOAST,toastId:t});return Al({type:Zr.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function wN(){const[e,t]=w.useState(id);return w.useEffect(()=>(sd.push(t),()=>{const n=sd.indexOf(t);n>-1&&sd.splice(n,1)}),[e]),{...e,toast:xN,dismiss:n=>Al({type:Zr.DISMISS_TOAST,toastId:n})}}function KS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=KS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function QS(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=KS(e))&&(r&&(r+=" "),r+=t);return r}const vw=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,xw=QS,XS=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return xw(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,l=Object.keys(i).map(p=>{const m=n==null?void 0:n[p],g=a==null?void 0:a[p];if(m===null)return null;const v=vw(m)||vw(g);return i[p][v]}),u=n&&Object.entries(n).reduce((p,m)=>{let[g,v]=m;return v===void 0||(p[g]=v),p},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((p,m)=>{let{class:g,className:v,...b}=m;return Object.entries(b).every(E=>{let[_,k]=E;return Array.isArray(k)?k.includes({...a,...u}[_]):{...a,...u}[_]===k})?[...p,g,v]:p},[]);return xw(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)};/**
42 * @license lucide-react v0.475.0 - ISC
43 *
44 * This source code is licensed under the ISC license.
45 * See the LICENSE file in the root directory of this source tree.
46 */const bN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ZS=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
47 * @license lucide-react v0.475.0 - ISC
48 *
49 * This source code is licensed under the ISC license.
50 * See the LICENSE file in the root directory of this source tree.
51 */var SN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
52 * @license lucide-react v0.475.0 - ISC
53 *
54 * This source code is licensed under the ISC license.
55 * See the LICENSE file in the root directory of this source tree.
56 */const _N=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:l,...u},f)=>w.createElement("svg",{ref:f,...SN,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ZS("lucide",i),...u},[...l.map(([p,m])=>w.createElement(p,m)),...Array.isArray(a)?a:[a]]));/**
57 * @license lucide-react v0.475.0 - ISC
58 *
59 * This source code is licensed under the ISC license.
60 * See the LICENSE file in the root directory of this source tree.
61 */const De=(e,t)=>{const n=w.forwardRef(({className:r,...i},a)=>w.createElement(_N,{ref:a,iconNode:t,className:ZS(`lucide-${bN(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
62 * @license lucide-react v0.475.0 - ISC
63 *
64 * This source code is licensed under the ISC license.
65 * See the LICENSE file in the root directory of this source tree.
66 */const kN=[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]],Yn=De("ArrowLeftRight",kN);/**
67 * @license lucide-react v0.475.0 - ISC
68 *
69 * This source code is licensed under the ISC license.
70 * See the LICENSE file in the root directory of this source tree.
71 */const EN=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],JS=De("ArrowLeft",EN);/**
72 * @license lucide-react v0.475.0 - ISC
73 *
74 * This source code is licensed under the ISC license.
75 * See the LICENSE file in the root directory of this source tree.
76 */const CN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],e_=De("ArrowRight",CN);/**
77 * @license lucide-react v0.475.0 - ISC
78 *
79 * This source code is licensed under the ISC license.
80 * See the LICENSE file in the root directory of this source tree.
81 */const TN=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],jN=De("Award",TN);/**
82 * @license lucide-react v0.475.0 - ISC
83 *
84 * This source code is licensed under the ISC license.
85 * See the LICENSE file in the root directory of this source tree.
86 */const RN=[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],Er=De("Camera",RN);/**
87 * @license lucide-react v0.475.0 - ISC
88 *
89 * This source code is licensed under the ISC license.
90 * See the LICENSE file in the root directory of this source tree.
91 */const NN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],t_=De("Check",NN);/**
92 * @license lucide-react v0.475.0 - ISC
93 *
94 * This source code is licensed under the ISC license.
95 * See the LICENSE file in the root directory of this source tree.
96 */const PN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Og=De("ChevronDown",PN);/**
97 * @license lucide-react v0.475.0 - ISC
98 *
99 * This source code is licensed under the ISC license.
100 * See the LICENSE file in the root directory of this source tree.
101 */const AN=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ON=De("ChevronLeft",AN);/**
102 * @license lucide-react v0.475.0 - ISC
103 *
104 * This source code is licensed under the ISC license.
105 * See the LICENSE file in the root directory of this source tree.
106 */const MN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],n_=De("ChevronRight",MN);/**
107 * @license lucide-react v0.475.0 - ISC
108 *
109 * This source code is licensed under the ISC license.
110 * See the LICENSE file in the root directory of this source tree.
111 */const DN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],LN=De("ChevronUp",DN);/**
112 * @license lucide-react v0.475.0 - ISC
113 *
114 * This source code is licensed under the ISC license.
115 * See the LICENSE file in the root directory of this source tree.
116 */const IN=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Mg=De("CircleCheckBig",IN);/**
117 * @license lucide-react v0.475.0 - ISC
118 *
119 * This source code is licensed under the ISC license.
120 * See the LICENSE file in the root directory of this source tree.
121 */const FN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],pm=De("CirclePlus",FN);/**
122 * @license lucide-react v0.475.0 - ISC
123 *
124 * This source code is licensed under the ISC license.
125 * See the LICENSE file in the root directory of this source tree.
126 */const BN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],r_=De("CircleX",BN);/**
127 * @license lucide-react v0.475.0 - ISC
128 *
129 * This source code is licensed under the ISC license.
130 * See the LICENSE file in the root directory of this source tree.
131 */const UN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],s_=De("Clock",UN);/**
132 * @license lucide-react v0.475.0 - ISC
133 *
134 * This source code is licensed under the ISC license.
135 * See the LICENSE file in the root directory of this source tree.
136 */const VN=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],mm=De("DollarSign",VN);/**
137 * @license lucide-react v0.475.0 - ISC
138 *
139 * This source code is licensed under the ISC license.
140 * See the LICENSE file in the root directory of this source tree.
141 */const zN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],WN=De("Globe",zN);/**
142 * @license lucide-react v0.475.0 - ISC
143 *
144 * This source code is licensed under the ISC license.
145 * See the LICENSE file in the root directory of this source tree.
146 */const $N=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{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",key:"1d0kgt"}]],HN=De("House",$N);/**
147 * @license lucide-react v0.475.0 - ISC
148 *
149 * This source code is licensed under the ISC license.
150 * See the LICENSE file in the root directory of this source tree.
151 */const YN=[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]],qN=De("ImageOff",YN);/**
152 * @license lucide-react v0.475.0 - ISC
153 *
154 * This source code is licensed under the ISC license.
155 * See the LICENSE file in the root directory of this source tree.
156 */const GN=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],Kd=De("Leaf",GN);/**
157 * @license lucide-react v0.475.0 - ISC
158 *
159 * This source code is licensed under the ISC license.
160 * See the LICENSE file in the root directory of this source tree.
161 */const KN=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],i_=De("List",KN);/**
162 * @license lucide-react v0.475.0 - ISC
163 *
164 * This source code is licensed under the ISC license.
165 * See the LICENSE file in the root directory of this source tree.
166 */const QN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],o_=De("LoaderCircle",QN);/**
167 * @license lucide-react v0.475.0 - ISC
168 *
169 * This source code is licensed under the ISC license.
170 * See the LICENSE file in the root directory of this source tree.
171 */const XN=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],ZN=De("LogOut",XN);/**
172 * @license lucide-react v0.475.0 - ISC
173 *
174 * This source code is licensed under the ISC license.
175 * See the LICENSE file in the root directory of this source tree.
176 */const JN=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Nr=De("MapPin",JN);/**
177 * @license lucide-react v0.475.0 - ISC
178 *
179 * This source code is licensed under the ISC license.
180 * See the LICENSE file in the root directory of this source tree.
181 */const eP=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],a_=De("Map",eP);/**
182 * @license lucide-react v0.475.0 - ISC
183 *
184 * This source code is licensed under the ISC license.
185 * See the LICENSE file in the root directory of this source tree.
186 */const tP=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],nP=De("Menu",tP);/**
187 * @license lucide-react v0.475.0 - ISC
188 *
189 * This source code is licensed under the ISC license.
190 * See the LICENSE file in the root directory of this source tree.
191 */const rP=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],da=De("MessageCircle",rP);/**
192 * @license lucide-react v0.475.0 - ISC
193 *
194 * This source code is licensed under the ISC license.
195 * See the LICENSE file in the root directory of this source tree.
196 */const sP=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],iP=De("Navigation",sP);/**
197 * @license lucide-react v0.475.0 - ISC
198 *
199 * This source code is licensed under the ISC license.
200 * See the LICENSE file in the root directory of this source tree.
201 */const oP=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],l_=De("Package",oP);/**
202 * @license lucide-react v0.475.0 - ISC
203 *
204 * This source code is licensed under the ISC license.
205 * See the LICENSE file in the root directory of this source tree.
206 */const aP=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],lP=De("Pen",aP);/**
207 * @license lucide-react v0.475.0 - ISC
208 *
209 * This source code is licensed under the ISC license.
210 * See the LICENSE file in the root directory of this source tree.
211 */const cP=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],c_=De("Plus",cP);/**
212 * @license lucide-react v0.475.0 - ISC
213 *
214 * This source code is licensed under the ISC license.
215 * See the LICENSE file in the root directory of this source tree.
216 */const uP=[["path",{d:"M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5",key:"x6z5xu"}],["path",{d:"M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12",key:"1x4zh5"}],["path",{d:"m14 16-3 3 3 3",key:"f6jyew"}],["path",{d:"M8.293 13.596 7.196 9.5 3.1 10.598",key:"wf1obh"}],["path",{d:"m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843",key:"9tzpgr"}],["path",{d:"m13.378 9.633 4.096 1.098 1.097-4.096",key:"1oe83g"}]],ww=De("Recycle",uP);/**
217 * @license lucide-react v0.475.0 - ISC
218 *
219 * This source code is licensed under the ISC license.
220 * See the LICENSE file in the root directory of this source tree.
221 */const dP=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],fP=De("RefreshCw",dP);/**
222 * @license lucide-react v0.475.0 - ISC
223 *
224 * This source code is licensed under the ISC license.
225 * See the LICENSE file in the root directory of this source tree.
226 */const hP=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],fa=De("Search",hP);/**
227 * @license lucide-react v0.475.0 - ISC
228 *
229 * This source code is licensed under the ISC license.
230 * See the LICENSE file in the root directory of this source tree.
231 */const pP=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],mP=De("Send",pP);/**
232 * @license lucide-react v0.475.0 - ISC
233 *
234 * This source code is licensed under the ISC license.
235 * See the LICENSE file in the root directory of this source tree.
236 */const gP=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],yP=De("Share2",gP);/**
237 * @license lucide-react v0.475.0 - ISC
238 *
239 * This source code is licensed under the ISC license.
240 * See the LICENSE file in the root directory of this source tree.
241 */const vP=[["path",{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",key:"oel41y"}]],Qd=De("Shield",vP);/**
242 * @license lucide-react v0.475.0 - ISC
243 *
244 * This source code is licensed under the ISC license.
245 * See the LICENSE file in the root directory of this source tree.
246 */const xP=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],wP=De("SlidersHorizontal",xP);/**
247 * @license lucide-react v0.475.0 - ISC
248 *
249 * This source code is licensed under the ISC license.
250 * See the LICENSE file in the root directory of this source tree.
251 */const bP=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],qi=De("Sparkles",bP);/**
252 * @license lucide-react v0.475.0 - ISC
253 *
254 * This source code is licensed under the ISC license.
255 * See the LICENSE file in the root directory of this source tree.
256 */const SP=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],va=De("Star",SP);/**
257 * @license lucide-react v0.475.0 - ISC
258 *
259 * This source code is licensed under the ISC license.
260 * See the LICENSE file in the root directory of this source tree.
261 */const _P=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],u_=De("Trophy",_P);/**
262 * @license lucide-react v0.475.0 - ISC
263 *
264 * This source code is licensed under the ISC license.
265 * See the LICENSE file in the root directory of this source tree.
266 */const kP=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],d_=De("Upload",kP);/**
267 * @license lucide-react v0.475.0 - ISC
268 *
269 * This source code is licensed under the ISC license.
270 * See the LICENSE file in the root directory of this source tree.
271 */const EP=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],CP=De("Users",EP);/**
272 * @license lucide-react v0.475.0 - ISC
273 *
274 * This source code is licensed under the ISC license.
275 * See the LICENSE file in the root directory of this source tree.
276 */const TP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],un=De("X",TP);/**
277 * @license lucide-react v0.475.0 - ISC
278 *
279 * This source code is licensed under the ISC license.
280 * See the LICENSE file in the root directory of this source tree.
281 */const jP=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],RP=De("Zap",jP),NP=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},PP=(e,t)=>({classGroupId:e,validator:t}),f_=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Sd="-",bw=[],AP="arbitrary..",OP=e=>{const t=DP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return MP(l);const u=l.split(Sd),f=u[0]===""&&u.length>1?1:0;return h_(u,f,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const f=r[l],p=n[l];return f?p?NP(p,f):f:p||bw}return n[l]||bw}}},h_=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const p=h_(e,t+1,a);if(p)return p}const l=n.validators;if(l===null)return;const u=t===0?e.join(Sd):e.slice(t).join(Sd),f=l.length;for(let p=0;p<f;p++){const m=l[p];if(m.validator(u))return m.classGroupId}},MP=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?AP+r:void 0})(),DP=e=>{const{theme:t,classGroups:n}=e;return LP(n,t)},LP=(e,t)=>
vendor: 7,239 bytes, line 281
281{const n=f_();for(const r in e){const i=e[r];Dg(i,n,r,t)}return n},Dg=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const l=e[a];IP(l,t,n,r)}},IP=(e,t,n,r)=>{if(typeof e=="string"){FP(e,t,n);return}if(typeof e=="function"){BP(e,t,n,r);return}UP(e,t,n,r)},FP=(e,t,n)=>{const r=e===""?t:p_(t,e);r.classGroupId=n},BP=(e,t,n,r)=>{if(VP(e)){Dg(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(PP(n,e))},UP=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let l=0;l<a;l++){const[u,f]=i[l];Dg(f,p_(t,u),n,r)}},p_=(e,t)=>{let n=e;const r=t.split(Sd),i=r.length;for(let a=0;a<i;a++){const l=r[a];let u=n.nextPart.get(l);u||(u=f_(),n.nextPart.set(l,u)),n=u}return n},VP=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,zP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,l)=>{n[a]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let l=n[a];if(l!==void 0)return l;if((l=r[a])!==void 0)return i(a,l),l},set(a,l){a in n?n[a]=l:i(a,l)}}},gm="!",Sw=":",WP=[],_w=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),$P=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let l=0,u=0,f=0,p;const m=i.length;for(let _=0;_<m;_++){const k=i[_];if(l===0&&u===0){if(k===Sw){a.push(i.slice(f,_)),f=_+1;continue}if(k==="/"){p=_;continue}}k==="["?l++:k==="]"?l--:k==="("?u++:k===")"&&u--}const g=a.length===0?i:i.slice(f);let v=g,b=!1;g.endsWith(gm)?(v=g.slice(0,-1),b=!0):g.startsWith(gm)&&(v=g.slice(1),b=!0);const E=p&&p>f?p-f:void 0;return _w(a,b,v,E)};if(t){const i=t+Sw,a=r;r=l=>l.startsWith(i)?a(l.slice(i.length)):_w(WP,!1,l,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},HP=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const l=n[a],u=l[0]==="[",f=t.has(l);u||f?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},YP=e=>({cache:zP(e.cacheSize),parseClassName:$P(e),sortModifiers:HP(e),...OP(e)}),qP=/\s+/,GP=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,l=[],u=e.trim().split(qP);let f="";for(let p=u.length-1;p>=0;p-=1){const m=u[p],{isExternal:g,modifiers:v,hasImportantModifier:b,baseClassName:E,maybePostfixModifierPosition:_}=n(m);if(g){f=m+(f.length>0?" "+f:f);continue}let k=!!_,S=r(k?E.substring(0,_):E);if(!S){if(!k){f=m+(f.length>0?" "+f:f);continue}if(S=r(E),!S){f=m+(f.length>0?" "+f:f);continue}k=!1}const R=v.length===0?"":v.length===1?v[0]:a(v).join(":"),C=b?R+gm:R,T=C+S;if(l.indexOf(T)>-1)continue;l.push(T);const N=i(S,k);for(let O=0;O<N.length;++O){const B=N[O];l.push(C+B)}f=m+(f.length>0?" "+f:f)}return f},KP=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=m_(n))&&(i&&(i+=" "),i+=r);return i},m_=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=m_(e[r]))&&(n&&(n+=" "),n+=t);return n},QP=(e,...t)=>{let n,r,i,a;const l=f=>{const p=t.reduce((m,g)=>g(m),e());return n=YP(p),r=n.cache.get,i=n.cache.set,a=u,u(f)},u=f=>{const p=r(f);if(p)return p;const m=GP(f,n);return i(f,m),m};return a=l,(...f)=>a(KP(...f))},XP=[],At=e=>{const t=n=>n[e]||XP;return t.isThemeGetter=!0,t},g_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ZP=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,JP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eA=/\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$/,tA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Os=e=>ZP.test(e),Fe=e=>!!e&&!Number.isNaN(Number(e)),Ms=e=>!!e&&Number.isInteger(Number(e)),Tp=e=>e.endsWith("%")&&Fe(e.slice(0,-1)),Yr=e=>JP.test(e),v_=()=>!0,sA=e=>eA.test(e)&&!tA.test(e),Lg=()=>!1,iA=e=>nA.test(e),oA=e=>rA.test(e),aA=e=>!we(e)&&!_e(e),lA=e=>oi(e,b_,Lg),we=e=>g_.test(e),ki=e=>oi(e,S_,sA),kw=e=>oi(e,gA,Fe),cA=e=>oi(e,k_,v_),uA=e=>oi(e,__,Lg),Ew=e=>oi(e,x_,Lg),dA=e=>oi(e,w_,oA),Iu=e=>oi(e,E_,iA),_e=e=>y_.test(e),yl=e=>no(e,S_),fA=e=>no(e,__),Cw=e=>no(e,x_),hA=e=>no(e,b_),pA=e=>no(e,w_),Fu=e=>no(e,E_,!0),mA=e=>no(e,k_,!0),oi=(e,t,n)=>{const r=g_.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},no=(e,t,n=!1)=>{const r=y_.exec(e);return r?r[1]?t(r[1]):n:!1},x_=e=>e==="position"||e==="percentage",w_=e=>e==="image"||e==="url",b_=e=>e==="length"||e==="size"||e==="bg-size",S_=e=>e==="length",gA=e=>e==="number",__=e=>e==="family-name",k_=e=>e==="number"||e==="weight",E_=e=>e==="shadow",yA=()=>{const e=At("color"),t=At("font"),n=At("text"),r=At("font-weight"),i=At("tracking"),a=At("leading"),l=At("breakpoint"),u=At("container"),f=At("spacing"),p=At("radius"),m=At("shadow"),g=At("inset-shadow"),v=At("text-shadow"),b=At("drop-shadow"),E=At("blur"),_=At("perspective"),k=At("aspect"),S=At("ease"),R=At("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...T(),_e,we],O=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],M=()=>[_e,we,f],Y=()=>[Os,"full","auto",...M()],G=()=>[Ms,"none","subgrid",_e,we],K=()=>["auto",{span:["full",Ms,_e,we]},Ms,_e,we],q=()=>[Ms,"auto",_e,we],Q=()=>["auto","min","max","fr",_e,we],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],X=()=>["auto",...M()],re=()=>[Os,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],V=()=>[Os,"screen","full","dvw","lvw","svw","min","max","fit",...M()],te=()=>[Os,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],$=()=>[e,_e,we],P=()=>[...T(),Cw,Ew,{position:[_e,we]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ce=()=>["auto","cover","contain",hA,lA,{size:[_e,we]}],de=()=>[Tp,yl,ki],ge=()=>["","none","full",p,_e,we],ae=()=>["",Fe,yl,ki],ie=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[Fe,Tp,Cw,Ew],Me=()=>["","none",E,_e,we],Le=()=>["none",Fe,_e,we],Oe=()=>["none",Fe,_e,we],it=()=>[Fe,_e,we],ht=()=>[Os,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Yr],breakpoint:[Yr],color:[v_],container:[Yr],"drop-shadow":[Yr],ease:["in","out","in-out"],font:[aA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Yr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Yr],shadow:[Yr],spacing:["px",Fe],text:[Yr],"text-shadow":[Yr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Os,we,_e,k]}
vendor: 6,075 bytes, line 281
281],container:["container"],columns:[{columns:[Fe,we,_e,u]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],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"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{"inset-s":Y(),start:Y()}],end:[{"inset-e":Y(),end:Y()}],"inset-bs":[{"inset-bs":Y()}],"inset-be":[{"inset-be":Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[Ms,"auto",_e,we]}],basis:[{basis:[Os,"full","auto",u,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Fe,Os,"auto","initial","none",we]}],grow:[{grow:["",Fe,_e,we]}],shrink:[{shrink:["",Fe,_e,we]}],order:[{order:[Ms,"first","last","none",_e,we]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:X()}],mx:[{mx:X()}],my:[{my:X()}],ms:[{ms:X()}],me:[{me:X()}],mbs:[{mbs:X()}],mbe:[{mbe:X()}],mt:[{mt:X()}],mr:[{mr:X()}],mb:[{mb:X()}],ml:[{ml:X()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...te()]}],"min-block-size":[{"min-block":["auto",...te()]}],"max-block-size":[{"max-block":["none",...te()]}],w:[{w:[u,"screen",...re()]}],"min-w":[{"min-w":[u,"screen","none",...re()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,yl,ki]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,mA,cA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tp,we]}],"font-family":[{font:[fA,uA,t]}],"font-features":[{"font-features":[we]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,_e,we]}],"line-clamp":[{"line-clamp":[Fe,"none",_e,kw]}],leading:[{leading:[a,...M()]}],"list-image":[{"list-image":["none",_e,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_e,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[Fe,"from-font","auto",_e,ki]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[Fe,"auto",_e,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_e,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ms,_e,we],radial:["",_e,we],conic:[Ms,_e,we]},pA,dA]}],"bg-color":[{bg:$()}
vendor: 7,437 bytes, line 281
281],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:ge()}],"rounded-s":[{"rounded-s":ge()}],"rounded-e":[{"rounded-e":ge()}],"rounded-t":[{"rounded-t":ge()}],"rounded-r":[{"rounded-r":ge()}],"rounded-b":[{"rounded-b":ge()}],"rounded-l":[{"rounded-l":ge()}],"rounded-ss":[{"rounded-ss":ge()}],"rounded-se":[{"rounded-se":ge()}],"rounded-ee":[{"rounded-ee":ge()}],"rounded-es":[{"rounded-es":ge()}],"rounded-tl":[{"rounded-tl":ge()}],"rounded-tr":[{"rounded-tr":ge()}],"rounded-br":[{"rounded-br":ge()}],"rounded-bl":[{"rounded-bl":ge()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-bs":[{"border-bs":$()}],"border-color-be":[{"border-be":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Fe,_e,we]}],"outline-w":[{outline:["",Fe,yl,ki]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",m,Fu,Iu]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",g,Fu,Iu]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[Fe,ki]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",v,Fu,Iu]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[Fe,_e,we]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[_e,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[Fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_e,we]}],filter:[{filter:["","none",_e,we]}],blur:[{blur:Me()}],brightness:[{brightness:[Fe,_e,we]}],contrast:[{contrast:[Fe,_e,we]}],"drop-shadow":[{"drop-shadow":["","none",b,Fu,Iu]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",Fe,_e,we]}],"hue-rotate":[{"hue-rotate":[Fe,_e,we]}],invert:[{invert:["",Fe,_e,we]}],saturate:[{saturate:[Fe,_e,we]}],sepia:[{sepia:["",Fe,_e,we]}],"backdrop-filter":[{"backdrop-filter":["","none",_e,we]}],"backdrop-blur":[{"backdrop-blur":Me()}],"backdrop-brightness":[{"backdrop-brightness":[Fe,_e,we]}],"backdrop-contrast":[{"backdrop-contrast":[Fe,_e,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Fe,_e,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fe,_e,we]}],"backdrop-invert":[{"backdrop-invert":["",Fe,_e,we]}],"backdrop-opacity":[{"backdrop-opacity":[Fe,_e,we]}],"backdrop-saturate":[{"backdrop-saturate":[Fe,_e,we]}],"backdrop-sepia":[{"backdrop-sepia":["",Fe,_e,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_e,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Fe,"initial",_e,we]}],ease:[{ease:["linear","initial",S,_e,we]}],delay:[{delay:[Fe,_e,we]}],animate:[{animate:["none",R,_e,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,_e,we]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Le()}],"rotate-x":[{"rotate-x":Le()}],"rotate-y":[{"rotate-y":Le()}],"rotate-z":[{"rotate-z":Le()}],scale:[{scale:Oe()}],"scale-x":[{"scale-x":Oe()}],"scale-y":[{"scale-y":Oe()}],"scale-z":[{"scale-z":Oe()}],"scale-3d":["scale-3d"],skew:[{skew:it()}],"skew-x":[{"skew-x":it()}],"skew-y":[{"skew-y":it()}],transform:[{transform:[_e,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ht()}],"translate-x":[{"translate-x":ht()}],"translate-y":[{"translate-y":ht()}],"translate-z":[{"translate-z":ht()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}
vendor: 6,162 bytes, line 281
281],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{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",_e,we]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_e,we]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[Fe,yl,ki,kw]}],stroke:[{stroke:["none",...$()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],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"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},vA=QP(yA);function Mt(...e){return vA(QS(e))}const C_=w.forwardRef(({...e},t)=>d.jsx("div",{ref:t,className:"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}));C_.displayName="ToastProvider";const T_=w.forwardRef(({...e},t)=>d.jsx("div",{ref:t,className:"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}));T_.displayName="ToastViewport";const xA=XS("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",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),j_=w.forwardRef(({className:e,variant:t,...n},r)=>d.jsx("div",{ref:r,className:Mt(xA({variant:t}),e),...n}));
281j_.displayName="Toast";const wA=w.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:Mt("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),...t}));wA.displayName="ToastAction";const R_=w.forwardRef(({className:e,...t},n)=>d.jsx("button",{ref:n,className:Mt("absolute right-2 top-2 rounded-md p-1 text-foreground/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),"toast-close":"",...t,children:d.jsx(un,{className:"h-4 w-4"})}));R_.displayName="ToastClose";const N_=w.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:Mt("text-sm font-semibold",e),...t}));N_.displayName="ToastTitle";const P_=w.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:Mt("text-sm opacity-90",e),...t}));P_.displayName="ToastDescription";function bA(){const{toasts:e}=wN();return d.jsxs(C_,{children:[e.map(function({id:t,title:n,description:r,action:i,...a}){return d.jsxs(j_,{...a,children:[d.jsxs("div",{className:"grid gap-1",children:[n&&d.jsx(N_,{children:n}),r&&d.jsx(P_,{children:r})]}),i,d.jsx(R_,{})]},t)}),d.jsx(T_,{})]})}var oc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},SA={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Bs,Ng,IS,_A=(IS=class{constructor(){Re(this,Bs,SA);Re(this,Ng,!1)}setTimeoutProvider(e){pe(this,Bs,e)}setTimeout(e,t){return L(this,Bs).setTimeout(e,t)}clearTimeout(e){L(this,Bs).clearTimeout(e)}setInterval(e,t){return L(this,Bs).setInterval(e,t)}clearInterval(e){L(this,Bs).clearInterval(e)}},Bs=new WeakMap,Ng=new WeakMap,IS),Pi=new _A;function kA(e){setTimeout(e,0)}var Gi=typeof window>"u"||"Deno"in globalThis;function xn(){}function EA(e,t){return typeof e=="function"?e(t):e}function ym(e){return typeof e=="number"&&e>=0&&e!==1/0}function A_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xs(e,t){return typeof e=="function"?e(t):e}function Wn(e,t){return typeof e=="function"?e(t):e}function Tw(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==Ig(l,t.options))return!1}else if(!Ul(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||a&&!a(t))}function jw(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Bl(t.options.mutationKey)!==Bl(a))return!1}else if(!Ul(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ig(e,t){return((t==null?void 0:t.queryKeyHashFn)||Bl)(e)}function Bl(e){return JSON.stringify(e,(t,n)=>xm(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ul(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ul(e[n],t[n])):!1}var CA=Object.prototype.hasOwnProperty;function O_(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Rw(e)&&Rw(t);if(!r&&!(xm(e)&&xm(t)))return t;const a=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),u=l.length,f=r?new Array(u):{};let p=0;for(let m=0;m<u;m++){const g=r?m:l[m],v=e[g],b=t[g];if(v===b){f[g]=v,(r?m<a:CA.call(e,g))&&p++;continue}if(v===null||b===null||typeof v!="object"||typeof b!="object"){f[g]=b;continue}const E=O_(v,b,n+1);f[g]=E,E===v&&p++}return a===u&&p===a?e:f}function vm(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Rw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xm(e){if(!Nw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Nw(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Nw(e){return Object.prototype.toString.call(e)==="[object Object]"}function TA(e){return new Promise(t=>{Pi.setTimeout(t,e)})}function wm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?O_(e,t):t}function jA(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function RA(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Fg=Symbol();function M_(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Fg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function D_(e,t){return typeof e=="function"?e(...t):!!e}function NA(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var Di,Us,Jo,FS,PA=(FS=class extends oc{constructor(){super();Re(this,Di);Re(this,Us);Re(this,Jo);pe(this,Jo,t=>{if(!Gi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){L(this,Us)||this.setEventListener(L(this,Jo))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,Us))==null||t.call(this),pe(this,Us,void 0))}setEventListener(t){var n;pe(this,Jo,t),(n=L(this,Us))==null||n.call(this),pe(this,Us,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){L(this,Di)!==t&&(pe(this,Di,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 2,453 bytes, line 281
281this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof L(this,Di)=="boolean"?L(this,Di):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Di=new WeakMap,Us=new WeakMap,Jo=new WeakMap,FS),Bg=new PA;function bm(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var AA=kA;function OA(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=AA;const a=u=>{t?e.push(u):i(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||l()}return f},batchCalls:u=>(...f)=>{a(()=>{u(...f)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var Ht=OA(),ea,Vs,ta,BS,MA=(BS=class extends oc{constructor(){super();Re(this,ea,!0);Re(this,Vs);Re(this,ta);pe(this,ta,t=>{if(!Gi&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){L(this,Vs)||this.setEventListener(L(this,ta))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,Vs))==null||t.call(this),pe(this,Vs,void 0))}setEventListener(t){var n;pe(this,ta,t),(n=L(this,Vs))==null||n.call(this),pe(this,Vs,t(this.setOnline.bind(this)))}setOnline(t){L(this,ea)!==t&&(pe(this,ea,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return L(this,ea)}},ea=new WeakMap,Vs=new WeakMap,ta=new WeakMap,BS),_d=new MA;function DA(e){return Math.min(1e3*2**e,3e4)}function L_(e){return(e??"online")==="online"?_d.isOnline():!0}var Sm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function I_(e){let t=!1,n=0,r;const i=bm(),a=()=>i.status!=="pending",l=_=>{var k;if(!a()){const S=new Sm(_);v(S),(k=e.onCancel)==null||k.call(e,S)}},u=()=>{t=!0},f=()=>{t=!1},p=()=>Bg.isFocused()&&(e.networkMode==="always"||_d.isOnline())&&e.canRun(),m=()=>L_(e.networkMode)&&e.canRun(),g=_=>{a()||(r==null||r(),i.resolve(_))},v=_=>{a()||(r==null||r(),i.reject(_))},b=()=>new Promise(_=>{var k;r=S=>{(a()||p())&&_(S)},(k=e.onPause)==null||k.call(e)}).then(()=>{var _;r=void 0,a()||(_=e.onContinue)==null||_.call(e)}),E=()=>
vendor: 4,359 bytes, line 281
281{if(a())return;let _;const k=n===0?e.initialPromise:void 0;try{_=k??e.fn()}catch(S){_=Promise.reject(S)}Promise.resolve(_).then(g).catch(S=>{var O;if(a())return;const R=e.retry??(Gi?0:3),C=e.retryDelay??DA,T=typeof C=="function"?C(n,S):C,N=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,S);if(t||!N){v(S);return}n++,(O=e.onFail)==null||O.call(e,n,S),TA(T).then(()=>p()?void 0:b()).then(()=>{t?v(S):E()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r==null||r(),i),cancelRetry:u,continueRetry:f,canStart:m,start:()=>(m()?E():b().then(E),i)}}var Li,US,F_=(US=class{constructor(){Re(this,Li)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ym(this.gcTime)&&pe(this,Li,Pi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gi?1/0:300*1e3))}clearGcTimeout(){L(this,Li)&&(Pi.clearTimeout(L(this,Li)),pe(this,Li,void 0))}},Li=new WeakMap,US),Ii,na,zn,Fi,Ut,tc,Bi,ir,Gr,VS,LA=(VS=class extends F_{constructor(t){super();Re(this,ir);Re(this,Ii);Re(this,na);Re(this,zn);Re(this,Fi);Re(this,Ut);Re(this,tc);Re(this,Bi);pe(this,Bi,!1),pe(this,tc,t.defaultOptions),this.setOptions(t.options),this.observers=[],pe(this,Fi,t.client),pe(this,zn,L(this,Fi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,pe(this,Ii,Aw(this.options)),this.state=t.state??L(this,Ii),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=L(this,Ut))==null?void 0:t.promise}setOptions(t){if(this.options={...L(this,tc),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Aw(this.options);n.data!==void 0&&(this.setState(Pw(n.data,n.dataUpdatedAt)),pe(this,Ii,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&L(this,zn).remove(this)}setData(t,n){const r=wm(this.state.data,t,this.options);return ze(this,ir,Gr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ze(this,ir,Gr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=L(this,Ut))==null?void 0:r.promise;return(i=L(this,Ut))==null||i.cancel(t),n?n.then(xn).catch(xn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(L(this,Ii))}isActive(){return this.observers.some(t=>Wn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Fg||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Xs(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!A_(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=L(this,Ut))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=L(this,Ut))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),L(this,zn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(L(this,Ut)&&(L(this,Bi)?L(this,Ut).cancel({revert:!0}):L(this,Ut).cancelRetry()),this.scheduleGc()),L(this,zn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ze(this,ir,Gr).call(this,{type:"invalidate"})}async fetch(t,n){var f,p,m,g,v,b,E,_,k,S,R,C;if(this.state.fetchStatus!=="idle"&&((f=L(this,Ut))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(L(this,Ut))return L(this,Ut).continueRetry(),L(this,Ut).promise}if(t&&this.setOptions(t),!this.options.queryFn){const T=this.observers.find(N=>N.options.queryFn);T&&this.setOptions(T.options)}const r=new AbortController,i=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(pe(this,Bi,!0),r.signal)}
281)},a=()=>{const T=M_(this.options,n),O=(()=>{const B={client:L(this,Fi),queryKey:this.queryKey,meta:this.meta};return i(B),B})();return pe(this,Bi,!1),this.options.persister?this.options.persister(T,O,this):T(O)},u=(()=>{const T={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:L(this,Fi),state:this.state,fetchFn:a};return i(T),T})();(p=this.options.behavior)==null||p.onFetch(u,this),pe(this,na,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=u.fetchOptions)==null?void 0:m.meta))&&ze(this,ir,Gr).call(this,{type:"fetch",meta:(g=u.fetchOptions)==null?void 0:g.meta}),pe(this,Ut,I_({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:T=>{T instanceof Sm&&T.revert&&this.setState({...L(this,na),fetchStatus:"idle"}),r.abort()},onFail:(T,N)=>{ze(this,ir,Gr).call(this,{type:"failed",failureCount:T,error:N})},onPause:()=>{ze(this,ir,Gr).call(this,{type:"pause"})},onContinue:()=>{ze(this,ir,Gr).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const T=await L(this,Ut).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(b=(v=L(this,zn).config).onSuccess)==null||b.call(v,T,this),(_=(E=L(this,zn).config).onSettled)==null||_.call(E,T,this.state.error,this),T}catch(T){if(T instanceof Sm){if(T.silent)return L(this,Ut).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw ze(this,ir,Gr).call(this,{type:"error",error:T}),(S=(k=L(this,zn).config).onError)==null||S.call(k,T,this),(C=(R=L(this,zn).config).onSettled)==null||C.call(R,this.state.data,T,this),T}finally{this.scheduleGc()}}},Ii=new WeakMap,na=new WeakMap,zn=new WeakMap,Fi=new WeakMap,Ut=new WeakMap,tc=new WeakMap,Bi=new WeakMap,ir=new WeakSet,Gr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...B_(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...Pw(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return pe(this,na,t.manual?i:void 0),i;case"error":const a=t.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ht.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),L(this,zn).notify({query:this,type:"updated",action:t})})},VS);function B_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:L_(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Pw(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Aw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var vn,We,nc,cn,Ui,ra,Qr,zs,rc,sa,ia,Vi,zi,Ws,oa,Xe,kl,_m,km,Em,Cm,Tm,jm,Rm,U_,zS,IA=(zS=class extends oc{constructor(t,n){super();Re(this,Xe);Re(this,vn);Re(this,We);Re(this,nc);Re(this,cn);Re(this,Ui);Re(this,ra);Re(this,Qr);Re(this,zs);Re(this,rc);Re(this,sa);Re(this,ia);Re(this,Vi);Re(this,zi);Re(this,Ws);Re(this,oa,new Set);this.options=n,pe(this,vn,t),pe(this,zs,null),pe(this,Qr,bm()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(L(this,We).addObserver(this),Ow(L(this,We),this.options)?ze(this,Xe,kl).call(this):this.updateResult(),ze(this,Xe,Cm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Nm(L(this,We),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Nm(L(this,We),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ze(this,Xe,Tm).call(this),ze(this,Xe,jm).call(this),L(this,We).removeObserver(this)}setOptions(t){const n=this.options,r=L(this,We);if(this.options=L(this,vn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Wn(this.options.enabled,L(this,We))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ze(this,Xe,Rm).call(this),L(this,We).setOptions(this.options),n._defaulted&&!vm(this.options,n)&&L(this,vn).getQueryCache().notify({type:"observerOptionsUpdated",query:L(this,We),observer:this});const i=this.hasListeners();i&&Mw(L(this,We),r,this.options,n)&&ze(this,Xe,kl).call(this),this.updateResult(),i&&(L(this,We)!==r||Wn(this.options.enabled,L(this,We))!==Wn(n.enabled,L(this,We))||Xs(this.options.staleTime,L(this,We))!==Xs(n.staleTime,L(this,We)))&&ze(this,Xe,_m).call(this);const a=ze(this,Xe,km).call(this);i&&(L(this,We)!==r||Wn(this.options.enabled,L(this,We))!==Wn(n.enabled,L(this,We))||a!==L(this,Ws))&&ze(this,Xe,Em).
281call(this,a)}getOptimisticResult(t){const n=L(this,vn).getQueryCache().build(L(this,vn),t),r=this.createResult(n,t);return BA(this,r)&&(pe(this,cn,r),pe(this,ra,this.options),pe(this,Ui,L(this,We).state)),r}getCurrentResult(){return L(this,cn)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&L(this,Qr).status==="pending"&&L(this,Qr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){L(this,oa).add(t)}getCurrentQuery(){return L(this,We)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=L(this,vn).defaultQueryOptions(t),r=L(this,vn).getQueryCache().build(L(this,vn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ze(this,Xe,kl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),L(this,cn)))}createResult(t,n){var Y;const r=L(this,We),i=this.options,a=L(this,cn),l=L(this,Ui),u=L(this,ra),p=t!==r?t.state:L(this,nc),{state:m}=t;let g={...m},v=!1,b;if(n._optimisticResults){const G=this.hasListeners(),K=!G&&Ow(t,n),q=G&&Mw(t,r,n,i);(K||q)&&(g={...g,...B_(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:E,errorUpdatedAt:_,status:k}=g;b=g.data;let S=!1;if(n.placeholderData!==void 0&&b===void 0&&k==="pending"){let G;a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(G=a.data,S=!0):G=typeof n.placeholderData=="function"?n.placeholderData((Y=L(this,ia))==null?void 0:Y.state.data,L(this,ia)):n.placeholderData,G!==void 0&&(k="success",b=wm(a==null?void 0:a.data,G,n),v=!0)}if(n.select&&b!==void 0&&!S)if(a&&b===(l==null?void 0:l.data)&&n.select===L(this,rc))b=L(this,sa);else try{pe(this,rc,n.select),b=n.select(b),b=wm(a==null?void 0:a.data,b,n),pe(this,sa,b),pe(this,zs,null)}catch(G){pe(this,zs,G)}L(this,zs)&&(E=L(this,zs),b=L(this,sa),_=Date.now(),k="error");const R=g.fetchStatus==="fetching",C=k==="pending",T=k==="error",N=C&&R,O=b!==void 0,M={status:k,fetchStatus:g.fetchStatus,isPending:C,isSuccess:k==="success",isError:T,isInitialLoading:N,isLoading:N,data:b,dataUpdatedAt:g.dataUpdatedAt,error:E,errorUpdatedAt:_,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:R,isRefetching:R&&!C,isLoadingError:T&&!O,isPaused:g.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:T&&O,isStale:Ug(t,n),refetch:this.refetch,promise:L(this,Qr),isEnabled:Wn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const G=M.data!==void 0,K=M.status==="error"&&!G,q=he=>{K?he.reject(M.error):G&&he.resolve(M.data)},Q=()=>{const he=pe(this,Qr,M.promise=bm());q(he)},Z=L(this,Qr);switch(Z.status){case"pending":t.queryHash===r.queryHash&&q(Z);break;case"fulfilled":(K||M.data!==Z.value)&&Q();break;case"rejected":(!K||M.error!==Z.reason)&&Q();break}}return M}updateResult(){const t=L(this,cn),n=this.createResult(L(this,We),this.options);if(pe(this,Ui,L(this,We).state),pe(this,ra,this.options),L(this,Ui).data!==void 0&&pe(this,ia,L(this,We)),vm(n,t))return;pe(this,cn,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!L(this,oa).size)return!0;const l=new Set(a??L(this,oa));return this.options.throwOnError&&l.add("error"),Object.keys(L(this,cn)).some(u=>{const f=u;return L(this,cn)[f]!==t[f]&&l.has(f)})};ze(this,Xe,U_).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ze(this,Xe,Cm).call(this)}},vn=new WeakMap,We=new WeakMap,nc=new WeakMap,cn=new WeakMap,Ui=new WeakMap,ra=new WeakMap,Qr=new WeakMap,zs=new WeakMap,rc=new WeakMap,sa=new WeakMap,ia=new WeakMap,Vi=new WeakMap,zi=new WeakMap,Ws=new WeakMap,oa=new WeakMap,Xe=new WeakSet,kl=function(t){ze(this,Xe,Rm).call(this);let n=L(this,We).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(xn)),n},_m=function(){ze(this,Xe,Tm).call(this);const t=Xs(this.options.staleTime,L(this,We));if(Gi||L(this,cn).isStale||!ym(t))return;const r=A_(L(this,cn).dataUpdatedAt,t)+1;pe(this,Vi,Pi.setTimeout(()=>{L(this,cn).isStale||this.updateResult()},r))},km=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(L(this,We)):this.options.refetchInterval)??!1},Em=function(t){ze(this,Xe,jm).call(this),pe(this,Ws,t),!(Gi||Wn(this.options.enabled,L(this,We))===!1||!ym(L(this,Ws))||L(this,Ws)===0)&&pe(this,zi,Pi.setInterval(()=>
vendor: 6,057 bytes, line 281
281{(this.options.refetchIntervalInBackground||Bg.isFocused())&&ze(this,Xe,kl).call(this)},L(this,Ws)))},Cm=function(){ze(this,Xe,_m).call(this),ze(this,Xe,Em).call(this,ze(this,Xe,km).call(this))},Tm=function(){L(this,Vi)&&(Pi.clearTimeout(L(this,Vi)),pe(this,Vi,void 0))},jm=function(){L(this,zi)&&(Pi.clearInterval(L(this,zi)),pe(this,zi,void 0))},Rm=function(){const t=L(this,vn).getQueryCache().build(L(this,vn),this.options);if(t===L(this,We))return;const n=L(this,We);pe(this,We,t),pe(this,nc,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},U_=function(t){Ht.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(L(this,cn))}),L(this,vn).getQueryCache().notify({query:L(this,We),type:"observerResultsUpdated"})})},zS);function FA(e,t){return Wn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ow(e,t){return FA(e,t)||e.state.data!==void 0&&Nm(e,t,t.refetchOnMount)}function Nm(e,t,n){if(Wn(t.enabled,e)!==!1&&Xs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ug(e,t)}return!1}function Mw(e,t,n,r){return(e!==t||Wn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ug(e,n)}function Ug(e,t){return Wn(t.enabled,e)!==!1&&e.isStaleByTime(Xs(t.staleTime,e))}function BA(e,t){return!vm(e.getCurrentResult(),t)}function Dw(e){return{onFetch:(t,n)=>{var m,g,v,b,E;const r=t.options,i=(v=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:v.direction,a=((b=t.state.data)==null?void 0:b.pages)||[],l=((E=t.state.data)==null?void 0:E.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const p=async()=>{let _=!1;const k=C=>{NA(C,()=>t.signal,()=>_=!0)},S=M_(t.options,t.fetchOptions),R=async(C,T,N)=>{if(_)return Promise.reject();if(T==null&&C.pages.length)return Promise.resolve(C);const B=(()=>{const K={client:t.client,queryKey:t.queryKey,pageParam:T,direction:N?"backward":"forward",meta:t.options.meta};return k(K),K})(),M=await S(B),{maxPages:Y}=t.options,G=N?RA:jA;return{pages:G(C.pages,M,Y),pageParams:G(C.pageParams,T,Y)}};if(i&&a.length){const C=i==="backward",T=C?UA:Lw,N={pages:a,pageParams:l},O=T(r,N);u=await R(N,O,C)}else{const C=e??a.length;do{const T=f===0?l[0]??r.initialPageParam:Lw(r,u);if(f>0&&T==null)break;u=await R(u,T),f++}while(f<C)}return u};t.options.persister?t.fetchFn=()=>{var _,k;return(k=(_=t.options).persister)==null?void 0:k.call(_,p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=p}}}function Lw(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function UA(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var sc,xr,en,Wi,wr,Ds,WS,VA=(WS=class extends F_{constructor(t){super();Re(this,wr);Re(this,sc);Re(this,xr);Re(this,en);Re(this,Wi);pe(this,sc,t.client),this.mutationId=t.mutationId,pe(this,en,t.mutationCache),pe(this,xr,[]),this.state=t.state||zA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){L(this,xr).includes(t)||(L(this,xr).push(t),this.clearGcTimeout(),L(this,en).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){pe(this,xr,L(this,xr).filter(n=>n!==t)),this.scheduleGc(),L(this,en).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){L(this,xr).length||(this.state.status==="pending"?this.scheduleGc():L(this,en).remove(this))}continue(){var t;return((t=L(this,Wi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,u,f,p,m,g,v,b,E,_,k,S,R,C,T,N,O,B;const n=()=>{ze(this,wr,Ds).call(this,{type:"continue"})},r={client:L(this,sc),meta:this.options.meta,mutationKey:this.options.mutationKey};pe(this,Wi,I_({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(M,Y)=>{ze(this,wr,Ds).call(this,{type:"failed",failureCount:M,error:Y})},onPause:()=>{ze(this,wr,Ds).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>L(this,en).canRun(this)}));const i=this.state.status==="pending",a=!L(this,Wi).canStart();try{if(i)n();else{ze(this,wr,Ds).call(this,{type:"pending",variables:t,isPaused:a}),L(this,en).config.onMutate&&await L(this,en).config.onMutate(t,this,r);const Y=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t,r));Y!==this.state.context&&ze(this,wr,Ds).call(this,{type:"pending",context:Y,variables:t,isPaused:a})}const M=await L(this,Wi).start();return await((p=(f=L(this,en).config).onSuccess)==null?void 0:p.call(f,M,t,this.state.context,this,r)),await((g=(m=this.options).onSuccess)==null?void 0:g.call(m,M,t,this.state.context,r)),await((b=(v=L(this,en).config).onSettled)==null?void 0:b.call(v,M,null,this.state.variables,this.state.context,this,r)),await((_=(E=this.options).onSettled)==null?void 0:_.call(E,M,null,t,this.state.context,r)),ze(this,wr,Ds).call(this,{type:"success",data:M}),M}catch(M){try{await((S=(k=L(this,en).config).onError)==null?void 0:S.call(k,M,t,this.state.context,this,r))}catch(Y){Promise.reject(Y)}try{await((C=(R=this.options).onError)==null?void 0:C.call(R,M,t,this.state.context,r))}catch(Y){Promise.reject(Y)}try{await((N=(T=L(this,en).config).onSettled)==null?void 0:N.call(T,void 0,M,this.state.variables,this.state.context,this,r))}catch(Y){Promise.reject(Y)}try{await((B=(O=this.options).onSettled)==null?void 0:B.call(O,void 0,M,t,this.state.context,r))}catch(Y){Promise.reject(Y)}throw ze(this,wr,Ds).call(this,{type:"error",error:M}),M}finally{L(this,en).runNext(this)}}},sc=new WeakMap,xr=new WeakMap,en=new WeakMap,Wi=new WeakMap,wr=new WeakSet,Ds=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};
281case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ht.batch(()=>{L(this,xr).forEach(r=>{r.onMutationUpdate(t)}),L(this,en).notify({mutation:this,type:"updated",action:t})})},WS);function zA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xr,or,ic,$S,WA=($S=class extends oc{constructor(t={}){super();Re(this,Xr);Re(this,or);Re(this,ic);this.config=t,pe(this,Xr,new Set),pe(this,or,new Map),pe(this,ic,0)}build(t,n,r){const i=new VA({client:t,mutationCache:this,mutationId:++Du(this,ic)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){L(this,Xr).add(t);const n=Bu(t);if(typeof n=="string"){const r=L(this,or).get(n);r?r.push(t):L(this,or).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(L(this,Xr).delete(t)){const n=Bu(t);if(typeof n=="string"){const r=L(this,or).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&L(this,or).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Bu(t);if(typeof n=="string"){const r=L(this,or).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Bu(t);if(typeof n=="string"){const i=(r=L(this,or).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ht.batch(()=>{L(this,Xr).forEach(t=>{this.notify({type:"removed",mutation:t})}),L(this,Xr).clear(),L(this,or).clear()})}getAll(){return Array.from(L(this,Xr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>jw(n,r))}findAll(t={}){return this.getAll().filter(n=>jw(t,n))}notify(t){Ht.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ht.batch(()=>Promise.all(t.map(n=>n.continue().catch(xn))))}},Xr=new WeakMap,or=new WeakMap,ic=new WeakMap,$S);function Bu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var br,HS,$A=(HS=class extends oc{constructor(t={}){super();Re(this,br);this.config=t,pe(this,br,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??Ig(i,n);let l=this.get(a);return l||(l=new LA({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){L(this,br).has(t.queryHash)||(L(this,br).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=L(this,br).get(t.queryHash);n&&(t.destroy(),n===t&&L(this,br).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ht.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return L(this,br).get(t)}getAll(){return[...L(this,br).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Tw(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Tw(t,r)):n}notify(t){Ht.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ht.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ht.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},br=new WeakMap,HS),xt,$s,Hs,aa,la,Ys,ca,ua,YS,HA=(YS=class{constructor(e={}){Re(this,xt);Re(this,$s);Re(this,Hs);Re(this,aa);Re(this,la);Re(this,Ys);Re(this,ca);Re(this,ua);pe(this,xt,e.queryCache||new $A),pe(this,$s,e.mutationCache||new WA),pe(this,Hs,e.defaultOptions||{}),pe(this,aa,new Map),pe(this,la,new Map),pe(this,Ys,0)}mount(){Du(this,Ys)._++,L(this,Ys)===1&&(pe(this,ca,Bg.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,xt).onFocus())})),pe(this,ua,_d.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,xt).onOnline())})))}unmount(){var e,t;Du(this,Ys)._--,L(this,Ys)===0&&((e=L(this,ca))==null||e.call(this),pe(this,ca,void 0),(t=L(this,ua))==null||t.call(this),pe(this,ua,void 0))}isFetching(e){return L(this,xt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return L(this,$s).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=L(this,xt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=L(this,xt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Xs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return L(this,xt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=L(this,xt).get(r.queryHash),a=i==null?void 0:i.state.data,l=EA(t,a);if(l!==void 0)return L(this,xt).build(this,r).setData(l,{...n,manual:!0})}
281setQueriesData(e,t,n){return Ht.batch(()=>L(this,xt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=L(this,xt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=L(this,xt);Ht.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=L(this,xt);return Ht.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ht.batch(()=>L(this,xt).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(xn).catch(xn)}invalidateQueries(e,t={}){return Ht.batch(()=>(L(this,xt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ht.batch(()=>L(this,xt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(xn)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(xn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=L(this,xt).build(this,t);return n.isStaleByTime(Xs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xn).catch(xn)}fetchInfiniteQuery(e){return e.behavior=Dw(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xn).catch(xn)}ensureInfiniteQueryData(e){return e.behavior=Dw(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _d.isOnline()?L(this,$s).resumePausedMutations():Promise.resolve()}getQueryCache(){return L(this,xt)}getMutationCache(){return L(this,$s)}getDefaultOptions(){return L(this,Hs)}setDefaultOptions(e){pe(this,Hs,e)}setQueryDefaults(e,t){L(this,aa).set(Bl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...L(this,aa).values()],n={};return t.forEach(r=>{Ul(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){L(this,la).set(Bl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...L(this,la).values()],n={};return t.forEach(r=>{Ul(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...L(this,Hs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ig(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Fg&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...L(this,Hs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){L(this,xt).clear(),L(this,$s).clear()}},xt=new WeakMap,$s=new WeakMap,Hs=new WeakMap,aa=new WeakMap,la=new WeakMap,Ys=new WeakMap,ca=new WeakMap,ua=new WeakMap,YS),V_=w.createContext(void 0),YA=e=>{const t=w.useContext(V_);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},qA=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(V_.Provider,{value:e,children:t})),z_=w.createContext(!1),GA=()=>w.useContext(z_);z_.Provider;function KA(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var QA=w.createContext(KA()),XA=()=>w.useContext(QA),ZA=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?D_(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},JA=e=>{w.useEffect(()=>{e.clearReset()},[e])},eO=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||D_(n,[e.error,r])),tO=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},nO=(e,t)=>
281e.isLoading&&e.isFetching&&!t,rO=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Iw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function sO(e,t,n){var v,b,E,_;const r=GA(),i=XA(),a=YA(),l=a.defaultQueryOptions(e);(b=(v=a.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||b.call(v,l);const u=a.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",tO(l),ZA(l,i,u),JA(i);const f=!a.getQueryCache().get(l.queryHash),[p]=w.useState(()=>new t(a,l)),m=p.getOptimisticResult(l),g=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(k=>{const S=g?p.subscribe(Ht.batchCalls(k)):xn;return p.updateResult(),S},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),w.useEffect(()=>{p.setOptions(l)},[l,p]),rO(l,m))throw Iw(l,p,i);if(eO({result:m,errorResetBoundary:i,throwOnError:l.throwOnError,query:u,suspense:l.suspense}))throw m.error;if((_=(E=a.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||_.call(E,l,m),l.experimental_prefetchInRender&&!Gi&&nO(m,r)){const k=f?Iw(l,p,i):u==null?void 0:u.promise;k==null||k.catch(xn).finally(()=>{p.updateResult()})}return l.notifyOnChangeProps?m:p.trackResult(m)}function iO(e,t){return sO(e,IA)}const oO=new HA({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var ac=GS();const aO=Pg(ac);/**
282 * @remix-run/router v1.23.2
283 *
284 * Copyright (c) Remix Software Inc.
285 *
286 * This source code is licensed under the MIT license found in the
287 * LICENSE.md file in the root directory of this source tree.
288 *
289 * @license MIT
290 */function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vl.apply(this,arguments)}var qs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(qs||(qs={}));const Fw="popstate";function lO(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:l,hash:u}=r.location;return Pm("",{pathname:a,search:l,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:kd(i)}return uO(t,n,null,e)}function Rt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Vg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cO(){return Math.random().toString(36).substr(2,8)}function Bw(e,t){return{usr:e.state,key:e.key,idx:t}}function Pm(e,t,n,r){return n===void 0&&(n=null),Vl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?xa(t):t,{state:n,key:t&&t.key||r||cO()})}function kd(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function xa(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function uO(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,l=i.history,u=qs.Pop,f=null,p=m();p==null&&(p=0,l.replaceState(Vl({},l.state,{idx:p}),""));function m(){return(l.state||{idx:null}).idx}function g(){u=qs.Pop;let k=m(),S=k==null?null:k-p;p=k,f&&f({action:u,location:_.location,delta:S})}function v(k,S){u=qs.Push;let R=Pm(_.location,k,S);p=m()+1;let C=Bw(R,p),T=_.createHref(R);try{l.pushState(C,"",T)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;i.location.assign(T)}a&&f&&f({action:u,location:_.location,delta:1})}function b(k,S){u=qs.Replace;let R=Pm(_.location,k,S);p=m();let C=Bw(R,p),T=_.createHref(R);l.replaceState(C,"",T),a&&f&&f({action:u,location:_.location,delta:0})}function E(k){let S=i.location.origin!=="null"?i.location.origin:i.location.href,R=typeof k=="string"?k:kd(k);return R=R.replace(/ $/,"%20"),Rt(S,"No window.location.(origin|href) available to create URL for href: "+R),new URL(R,S)}let _={get action(){return u},get location(){return e(i,l)},listen(k){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(Fw,g),f=k,()=>{i.removeEventListener(Fw,g),f=null}},createHref(k){return t(i,k)},createURL:E,encodeLocation(k){let S=E(k);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:v,replace:b,go(k){return l.go(k)}};return _}var Uw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Uw||(Uw={}));function dO(e,t,n){return n===void 0&&(n="/"),fO(e,t,n)}function fO(e,t,n,r){let i=typeof t=="string"?xa(t):t,a=zg(i.pathname||"/",n);if(a==null)return null;let l=W_(e);hO(l);let u=null;for(let f=0;u==null&&f<l.length;++f){let p=EO(a);u=SO(l[f],p)}return u}function W_(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,l,u)=>{let f={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};f.relativePath.startsWith("/")&&(Rt(f.relativePath.startsWith(r),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+r+'" is not val
290id. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(r.length));let p=Zs([r,f.relativePath]),m=n.concat(f);a.children&&a.children.length>0&&(Rt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),W_(a.children,t,m,p)),!(a.path==null&&!a.index)&&t.push({path:p,score:wO(p,a.index),routesMeta:m})};return e.forEach((a,l)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))i(a,l);else for(let f of $_(a.path))i(a,l,f)}),t}function $_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let l=$_(r.join("/")),u=[];return u.push(...l.map(f=>f===""?a:[a,f].join("/"))),i&&u.push(...l),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function hO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const pO=/^:[\w-]+$/,mO=3,gO=2,yO=1,vO=10,xO=-2,Vw=e=>e==="*";function wO(e,t){let n=e.split("/"),r=n.length;return n.some(Vw)&&(r+=xO),t&&(r+=gO),n.filter(i=>!Vw(i)).reduce((i,a)=>i+(pO.test(a)?mO:a===""?yO:vO),r)}function bO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function SO(e,t,n){let{routesMeta:r}=e,i={},a="/",l=[];for(let u=0;u<r.length;++u){let f=r[u],p=u===r.length-1,m=a==="/"?t:t.slice(a.length)||"/",g=_O({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},m),v=f.route;if(!g)return null;
vendor: 7,297 bytes, lines 290-299
290Object.assign(i,g.params),l.push({params:i,pathname:Zs([a,g.pathname]),pathnameBase:NO(Zs([a,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(a=Zs([a,g.pathnameBase]))}return l}function _O(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=kO(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],l=a.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((p,m,g)=>{let{paramName:v,isOptional:b}=m;if(v==="*"){let _=u[g]||"";l=a.slice(0,a.length-_.length).replace(/(.)\/+$/,"$1")}const E=u[g];return b&&!E?p[v]=void 0:p[v]=(E||"").replace(/%2F/g,"/"),p},{}),pathname:a,pathnameBase:l,pattern:e}}function kO(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Vg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,f)=>(r.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function EO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Vg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function zg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const CO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,TO=e=>CO.test(e);function jO(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?xa(e):e,a;if(n)if(TO(n))a=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),Vg(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?a=zw(n.substring(1),"/"):a=zw(n,t)}else a=t;return{pathname:a,search:PO(r),hash:AO(i)}}function zw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function jp(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function RO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function H_(e,t){let n=RO(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Y_(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=xa(e):(i=Vl({},e),Rt(!i.pathname||!i.pathname.includes("?"),jp("?","pathname","search",i)),Rt(!i.pathname||!i.pathname.includes("#"),jp("#","pathname","hash",i)),Rt(!i.search||!i.search.includes("#"),jp("#","search","hash",i)));let a=e===""||i.pathname==="",l=a?"/":i.pathname,u;if(l==null)u=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),g-=1;i.pathname=v.join("/")}u=g>=0?t[g]:"/"}let f=jO(i,u),p=l&&l!=="/"&&l.endsWith("/"),m=(a||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(p||m)&&(f.pathname+="/"),f}const Zs=e=>e.join("/").replace(/\/\/+/g,"/"),NO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function OO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const q_=["post","put","patch","delete"];new Set(q_);const MO=["get",...q_];new Set(MO);/**
291 * React Router v6.30.3
292 *
293 * Copyright (c) Remix Software Inc.
294 *
295 * This source code is licensed under the MIT license found in the
296 * LICENSE.md file in the root directory of this source tree.
297 *
298 * @license MIT
299 */function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zl.apply(this,arguments)}const Wg=w.createContext(null),DO=w.createContext(null),ro=w.createContext(null),Xd=w.createContext(null),cs=w.createContext({outlet:null,matches:[],isDataRoute:!1}),G_=w.createContext(null);function LO(e,t){let{relative:n}=t===void 0?{}:t;lc()||Rt(!1);let{basename:r,navigator:i}=w.useContext(ro),{hash:a,pathname:l,search:u}=X_(e,{relative:n}),f=l;return r!=="/"&&(f=l==="/"?r:Zs([r,l])),i.createHref({pathname:f,search:u,hash:a})}function lc(){return w.useContext(Xd)!=null}function ai(){return lc()||Rt(!1),w.useContext(Xd).location}function K_(e){w.useContext(ro).static||w.useLayoutEffect(e)}function wa(){let{isDataRoute:e}=w.useContext(cs);return e?XO():IO()}function IO(){lc()||Rt(!1);let e=w.useContext(Wg),{basename:t,future:n,navigator:r}=w.useContext(ro),{matches:i}=w.useContext(cs),{pathname:a}=ai(),l=JSON.stringify(H_(i,n.v7_relativeSplatPath)),u=w.useRef(!1);return K_(()=>{u.current=!0}),w.useCallback(function(p,m){if(m===void 0&&(m={}),!u.current)return;if(typeof p=="number"){r.go(p);return}let g=Y_(p,JSON.parse(l),a,m.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Zs([t,g.pathname])),(m.replace?r.replace:r.push)(g,m.state,m)},[t,r,l,a,e])}const FO=w.createContext(null);function BO(e){let t=w.useContext(cs).outlet;return t&&w.createElement(FO.Provider,{value:e},t)}function Q_(){let{matches:e}=w.useContext(cs),t=e[e.length-1];return t?t.params:{}}function X_(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(ro),{matches:i}=w.useContext(cs),{pathname:a}=ai(),l=JSON.stringify(H_(i,r.v7_relativeSplatPath));return w.useMemo(()=>Y_(e,JSON.parse(l),a,n==="path"),[e,l,a,n])}function UO(e,t){return VO(e,t)}function VO(e,t,n,r){lc()||Rt(!1);let{navigator:i}=w.useContext(ro),{matches:a}=w.useContext(cs),l=a[a.length-1],u=l?l.params:{};l&&l.pathname;let f=l?l.pathnameBase:"/";l&&l.route;let p=ai(),m;if(t){var g;let k=typeof t=="string"?xa(t):t;f==="/"||(g=k.pathname)!=null&&g.startsWith(f)||Rt(!1),m=k}else m=p;let v=m.pathname||"/",b=v;if(f!=="/"){let k=f.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(k.length).join("/")}let E=dO(e,{pathname:b}),_=YO(E&&E.map(k=>Object.assign({},k,{params:Object.assign({},u,k.params),pathname:Zs([f,i.encodeLocation?i.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?f:Zs([f,i.encodeLocation?i.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),a,n,r);return t&&_?w.createElement(Xd.Provider,{value:{location:zl({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:qs.Pop}},_):_}function zO(){let e=QO(),t=OO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application 
299Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,null)}const WO=w.createElement(zO,null);class $O extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(cs.Provider,{value:this.props.routeContext},w.createElement(G_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function HO(e){let{routeContext:t,match:n,children:r}=e,i=w.useContext(Wg);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(cs.Provider,{value:t},r)}function YO(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,u=(i=n)==null?void 0:i.errors;if(u!=null){let m=l.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);m>=0||Rt(!1),l=l.slice(0,Math.min(l.length,m+1))}let f=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let m=0;m<l.length;m++){let g=l[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(p=m),g.route.id){let{loaderData:v,errors:b}=n,E=g.route.loader&&v[g.route.id]===void 0&&(!b||b[g.route.id]===void 0);if(g.route.lazy||E){f=!0,p>=0?l=l.slice(0,p+1):l=[l[0]];break}}}return l.reduceRight((m,g,v)=>{let b,E=!1,_=null,k=null;n&&(b=u&&g.route.id?u[g.route.id]:void 0,_=g.route.errorElement||WO,f&&(p<0&&v===0?(ZO("route-fallback"),E=!0,k=null):p===v&&(E=!0,k=g.route.hydrateFallbackElement||null)));let S=t.concat(l.slice(0,v+1)),R=()=>{let C;return b?C=_:E?C=k:g.route.Component?C=w.createElement(g.route.Component,null):g.route.element?C=g.route.element:C=m,w.createElement(HO,{match:g,routeContext:{outlet:m,matches:S,isDataRoute:n!=null},children:C})};return n&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?w.createElement($O,{location:n.location,revalidation:n.revalidation,component:_,error:b,children:R(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):R()},null)}var Z_=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Z_||{}),J_=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(J_||{});function qO(e){let t=w.useContext(Wg);return t||Rt(!1),t}function GO(e){let t=w.useContext(DO);return t||Rt(!1),t}function KO(e){let t=w.useContext(cs);return t||Rt(!1),t}function ek(e){let t=KO(),n=t.matches[t.matches.length-1];return n.route.id||Rt(!1),n.route.id}function QO(){var e;let t=w.useContext(G_),n=GO(),r=ek();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function XO(){let{router:e}=qO(Z_.UseNavigateStable),t=ek(J_.UseNavigateStable),n=w.useRef(!1);return K_(()=>{n.current=!0}),w.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,zl({fromRouteId:t},a)))},[e,t])}const Ww={};function ZO(e,t,n){Ww[e]||(Ww[e]=!0)}function JO(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function eM(e){return BO(e.context)}function Jt(e){Rt(!1)}function tM(e){let{basename:t="/",children:n=null,location:r,navigationType:i=qs.Pop,navigator:a,static:l=!1,future:u}=e;lc()&&Rt(!1);let f=t.replace(/^\/*/,"/"),p=w.useMemo(()=>({basename:f,navigator:a,static:l,future:zl({v7_relativeSplatPath:!1},u)}),[f,u,a,l]);typeof r=="string"&&(r=xa(r));
299let{pathname:m="/",search:g="",hash:v="",state:b=null,key:E="default"}=r,_=w.useMemo(()=>{let k=zg(m,f);return k==null?null:{location:{pathname:k,search:g,hash:v,state:b,key:E},navigationType:i}},[f,m,g,v,b,E,i]);return _==null?null:w.createElement(ro.Provider,{value:p},w.createElement(Xd.Provider,{children:n,value:_}))}function nM(e){let{children:t,location:n}=e;return UO(Am(t),n)}new Promise(()=>{});function Am(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,i)=>{if(!w.isValidElement(r))return;let a=[...t,i];if(r.type===w.Fragment){n.push.apply(n,Am(r.props.children,a));return}r.type!==Jt&&Rt(!1),!r.props.index||!r.props.children||Rt(!1);let l={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Am(r.props.children,a)),n.push(l)}),n}/**
300 * React Router DOM v6.30.3
301 *
302 * Copyright (c) Remix Software Inc.
303 *
304 * This source code is licensed under the MIT license found in the
305 * LICENSE.md file in the root directory of this source tree.
306 *
307 * @license MIT
308 */function Om(){return Om=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Om.apply(this,arguments)}function rM(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function sM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iM(e,t){return e.button===0&&(!t||t==="_self")&&!sM(e)}const oM=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],aM="6";try{window.__reactRouterVersion=aM}catch{}const lM="startTransition",$w=Gd[lM];function cM(e){let{basename:t,children:n,future:r,window:i}=e,a=w.useRef();a.current==null&&(a.current=lO({window:i,v5Compat:!0}));let l=a.current,[u,f]=w.useState({action:l.action,location:l.location}),{v7_startTransition:p}=r||{},m=w.useCallback(g=>{p&&$w?$w(()=>f(g)):f(g)},[f,p]);return w.useLayoutEffect(()=>l.listen(m),[l,m]),w.useEffect(()=>JO(r),[r]),w.createElement(tM,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:r})}const uM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ue=w.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:l,state:u,target:f,to:p,preventScrollReset:m,viewTransition:g}=t,v=rM(t,oM),{basename:b}=w.useContext(ro),E,_=!1;if(typeof p=="string"&&dM.test(p)&&(E=p,uM))try{let C=new URL(window.location.href),T=p.startsWith("//")?new URL(C.protocol+p):new URL(p),N=zg(T.pathname,b);T.origin===C.origin&&N!=null?p=N+T.search+T.hash:_=!0}catch{}let k=LO(p,{relative:i}),S=fM(p,{replace:l,state:u,target:f,preventScrollReset:m,relative:i,viewTransition:g});function R(C){r&&r(C),C.defaultPrevented||S(C)}return w.createElement("a",Om({},v,{href:E||k,onClick:_||a?r:R,ref:n,target:f}))});var Hw;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hw||(Hw={}));var Yw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yw||(Yw={}));function fM(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:l,viewTransition:u}=t===void 0?{}:t,f=wa(),p=ai(),m=X_(e,{relative:l});return w.useCallback(g=>{if(iM(g,n)){g.preventDefault();let v=r!==void 0?r:kd(p)===kd(m);f(e,{replace:v,state:i,preventScrollReset:a,relative:l,viewTransition:u})}},[p,f,m,r,i,n,e,a,l,u])}function tk(e,t){return function(){return e.apply(t,arguments)}}const{toString:hM}=Object.prototype,{getPrototypeOf:ha}=Object,{iterator:cc,toStringTag:nk}=Symbol,Ed=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Wl=(e,t)=>
vendor: 4,073 bytes, line 308
308{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Ed(n,t))return!0;n=ha(n)}return!1},pM=(e,t)=>e!=null&&Wl(e,t)?e[t]:void 0,$g=(e=>t=>{const n=hM.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qn=e=>(e=e.toLowerCase(),t=>$g(t)===e),Zd=e=>t=>typeof t===e,{isArray:Ki}=Array,Qi=Zd("undefined");function ba(e){return e!==null&&!Qi(e)&&e.constructor!==null&&!Qi(e.constructor)&&bn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rk=qn("ArrayBuffer");function mM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rk(e.buffer),t}const gM=Zd("string"),bn=Zd("function"),sk=Zd("number"),Sa=e=>e!==null&&typeof e=="object",yM=e=>e===!0||e===!1,od=e=>{if(!Sa(e))return!1;const t=ha(e);return(t===null||t===Object.prototype||ha(t)===null)&&!Wl(e,nk)&&!Wl(e,cc)},vM=e=>{if(!Sa(e)||ba(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},xM=qn("Date"),wM=qn("File"),bM=e=>!!(e&&typeof e.uri<"u"),SM=e=>e&&typeof e.getParts<"u",_M=qn("Blob"),kM=qn("FileList"),EM=qn("Set"),CM=e=>Sa(e)&&bn(e.pipe);function TM(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const qw=TM(),Gw=typeof qw.FormData<"u"?qw.FormData:void 0,jM=e=>{if(!e)return!1;if(Gw&&e instanceof Gw)return!0;const t=ha(e);if(!t||t===Object.prototype||!bn(e.append))return!1;const n=$g(e);return n==="formdata"||n==="object"&&bn(e.toString)&&e.toString()==="[object FormData]"},RM=qn("URLSearchParams"),[NM,PM,AM,OM]=["ReadableStream","Request","Response","Headers"].map(qn),MM=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function uc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ki(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(ba(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),l=a.length;let u;for(r=0;r<l;r++)u=a[r],t.call(null,e[u],u,e)}}function ik(e,t){if(ba(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ai=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ok=e=>!Qi(e)&&e!==Ai;function Mm(...e){const{caseless:t,skipUndefined:n}=ok(this)&&this||{},r={},i=(a,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const u=t&&typeof l=="string"&&ik(r,l)||l,f=Ed(r,u)?r[u]:void 0;od(f)&&od(a)?r[u]=Mm(f,a):od(a)?r[u]=Mm({},a):Ki(a)?r[u]=a.slice():(!n||!Qi(a))&&(r[u]=a)};for(let a=0,l=e.length;a<l;a++){const u=e[a];if(!u||ba(u)||(uc(u,i),typeof u!="object"||Ki(u)))continue;const f=Object.getOwnPropertySymbols(u);for(let p=0;p<f.length;p++){const m=f[p];YM.call(u,m)&&i(u[m],m)}}return r}const DM=(e,t,n,{allOwnKeys:r}={})=>(uc(t,(i,a)=>{n&&bn(i)?Object.defineProperty(e,a,{__proto__:null,value:tk(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),LM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IM=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},FM=(e,t,n,r)=>{let i,a,l;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)l=i[a],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&ha(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},BM=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},UM=e=>{if(!e)return null;if(Ki(e))return e;let t=e.length;if(!sk(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ha(Uint8Array)),zM=(e,t)=>{const r=(e&&e[cc]).call(e);let i;for(;
308(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},WM=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$M=qn("HTMLFormElement"),HM=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:YM}=Object.prototype,qM=qn("RegExp"),ak=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};uc(n,(i,a)=>{let l;(l=t(i,a,e))!==!1&&(r[a]=l||i)}),Object.defineProperties(e,r)},GM=e=>{ak(e,(t,n)=>{if(bn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(bn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},KM=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Ki(e)?r(e):r(String(e).split(t)),n},QM=()=>{},XM=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ZM(e){return!!(e&&bn(e.append)&&e[nk]==="FormData"&&e[cc])}const JM=e=>{const t=new WeakSet,n=r=>{if(Sa(r)){if(t.has(r))return;if(ba(r))return r;if(!("toJSON"in r)){t.add(r);let i;if(EM(r)){i=[];for(const a of r){const l=n(a);!Qi(l)&&i.push(l)}}else i=Ki(r)?[]:{},uc(r,(a,l)=>{const u=n(a);!Qi(u)&&(i[l]=u)});return t.delete(r),i}}return r};return n(e)},eD=qn("AsyncFunction"),tD=e=>e&&(Sa(e)||bn(e))&&bn(e.then)&&bn(e.catch),lk=((e,t)=>e?setImmediate:t?((n,r)=>(Ai.addEventListener("message",({source:i,data:a})=>{i===Ai&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ai.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",bn(Ai.postMessage)),nD=typeof queueMicrotask<"u"?queueMicrotask.bind(Ai):typeof process<"u"&&process.nextTick||lk,ck=e=>e!=null&&bn(e[cc]),rD=e=>e!=null&&Wl(e,cc)&&ck(e),I={isArray:Ki,isArrayBuffer:rk,isBuffer:ba,isFormData:jM,isArrayBufferView:mM,isString:gM,isNumber:sk,isBoolean:yM,isObject:Sa,isPlainObject:od,isEmptyObject:vM,isReadableStream:NM,isRequest:PM,isResponse:AM,isHeaders:OM,isUndefined:Qi,isDate:xM,isFile:wM,isReactNativeBlob:bM,isReactNative:SM,isBlob:_M,isRegExp:qM,isFunction:bn,isStream:CM,isURLSearchParams:RM,isTypedArray:VM,isFileList:kM,forEach:uc,merge:Mm,extend:DM,trim:MM,stripBOM:LM,inherits:IM,toFlatObject:FM,kindOf:$g,kindOfTest:qn,endsWith:BM,toArray:UM,forEachEntry:zM,matchAll:WM,isHTMLForm:$M,hasOwnProperty:Ed,hasOwnProp:Ed,hasOwnInPrototypeChain:Wl,getSafeProp:pM,reduceDescriptors:ak,freezeMethods:GM,toObjectSet:KM,toCamelCase:HM,noop:QM,toFiniteNumber:XM,findKey:ik,global:Ai,isContextDefined:ok,isSpecCompliantForm:ZM,toJSONObject:JM,isAsyncFn:eD,isThenable:tD,setImmediate:lk,asap:nD,isIterable:ck,isSafeIterable:rD},sD=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iD=e=>{const t={};let n,r,i;return e&&e.split(`
309`).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim();const u=I.hasOwnProp(t,n);!n||u&&I.hasOwnProp(sD,n)||(n==="set-cookie"?u?t[n].push(r):t[n]=[r]:t[n]=u?t[n]+", "+r:r)}),t};function oD(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const aD=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),lD=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Hg(e,t){return I.isArray(e)?e.map(n=>Hg(n,t)):oD(String(e).replace(t,""))}const cD=e=>Hg(e,aD),uD=e=>Hg(e,lD);function uk(e){const t=Object.create(null);return I.forEach(e.toJSON(),(n,r)=>{t[r]=uD(n)}),t}const Kw=Symbol("internals");function vl(e){return e&&String(e).trim().toLowerCase()}function ad(e){return e===!1||e==null?e:I.isArray(e)?e.map(ad):cD(String(e))}function dD(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const fD=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Rp(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function hD(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function pD(e){const t=Object.create(null),n=String(e);let r=0,i=!1,a=!1;function l(u){const f=Rp(n.slice(r,u)),p=f.indexOf("=");if(p<1)return;const m=Rp(f.slice(0,p));if(!fD.test(m))return;const g=m.toLowerCase();if(g==="__proto__"||g==="constructor"||g==="prototype")return;const v=Rp(f.slice(p+1));t[g]=hD(v)}for(let u=0;u<n.length;u++){const f=n.charCodeAt(u);i?a?a=!1:f===92?a=!0:f===34&&(i=!1):f===34?i=!0:(f===44||f===59)&&(l(u),r=u+1)}return l(n.length),t}const mD=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Np(e,t,n,r,i){if(I.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function gD(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function yD(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,a,l){return this[r].call(this,t,i,a,l)},configurable:!0})})}let rn=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(u,f,p){const m=vl(f);if(!m)return;const g=I.findKey(i,m);(!g||i[g]===void 0||p===!0||p===void 0&&i[g]!==!1)&&(i[g||f]=ad(u))}const l=(u,f)=>
vendor: 3,316 bytes, lines 309-310
309I.forEach(u,(p,m)=>a(p,m,f));if(I.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(I.isString(t)&&(t=t.trim())&&!mD(t))l(iD(t),n);else if(I.isObject(t)&&I.isSafeIterable(t)){let u=Object.create(null),f,p;for(const m of t){if(!I.isArray(m))throw new TypeError("Object iterator must return a key-value pair");p=m[0],I.hasOwnProp(u,p)?(f=u[p],u[p]=I.isArray(f)?[...f,m[1]]:[f,m[1]]):u[p]=m[1]}l(u,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=vl(t),t){const r=I.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return dD(i);if(I.isFunction(n))return n.call(this,i,r);if(I.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=vl(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Np(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(l){if(l=vl(l),l){const u=I.findKey(r,l);u&&(!n||Np(r,r[u],u,n))&&(delete r[u],i=!0)}}return I.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||Np(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return I.forEach(this,(i,a)=>{const l=I.findKey(r,a);if(l){n[l]=ad(i),delete n[a];return}const u=t?gD(a):String(a).trim();u!==a&&delete n[a],n[u]=ad(i),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return I.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&I.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
310`)}getSetCookie(){const t=this.get("set-cookie");return I.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return pD(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Kw]=this[Kw]={accessors:{}}).accessors,i=this.prototype;function a(l){const u=vl(l);r[u]||(yD(i,l),r[u]=!0)}return I.isArray(t)?t.forEach(a):a(t),this}};rn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(rn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(rn);const Cd="[REDACTED ****]";function vD(e){if(I.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(I.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function xD(e,t){const n=new Set(t.map(a=>String(a).toLowerCase())),r=[],i=a=>{if(a===null||typeof a!="object"||I.isBuffer(a))return a;if(r.indexOf(a)!==-1)return;a instanceof rn&&(a=a.toJSON()),r.push(a);let l;if(I.isArray(a))l=[],a.forEach((u,f)=>{const p=i(u);I.isUndefined(p)||(l[f]=p)});else{if(!I.isPlainObject(a)&&vD(a))return r.pop(),a;l=Object.create(null);for(const[u,f]of Object.entries(a)){const p=n.has(u.toLowerCase())?Cd:i(f);I.isUndefined(p)||(l[u]=p)}}return r.pop(),l};return i(e)}function Qw(e){try{return String(e)}catch{return""}}function wD(e){return e.errors.map(n=>{try{return n&&n.message?Qw(n.message):Qw(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}
vendor: 5,439 bytes, line 310
310let ue=class dk extends Error{static from(t,n,r,i,a,l){let u=t.message;!u&&I.isArray(t.errors)&&t.errors.length&&(u=wD(t));const f=new dk(u,n||t.code,r,i,a);return Object.defineProperty(f,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),f.name=t.name,t.status!=null&&f.status==null&&(f.status=t.status),l&&Object.assign(f,l),f}constructor(t,n,r,i,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){const t=this.config,n=t&&I.hasOwnProp(t,"redact")?t.redact:void 0,r=I.isArray(n)&&n.length>0?xD(t,n):I.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};ue.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ue.ERR_BAD_OPTION="ERR_BAD_OPTION";ue.ECONNABORTED="ECONNABORTED";ue.ETIMEDOUT="ETIMEDOUT";ue.ECONNREFUSED="ECONNREFUSED";ue.ERR_NETWORK="ERR_NETWORK";ue.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ue.ERR_DEPRECATED="ERR_DEPRECATED";ue.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ue.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ue.ERR_CANCELED="ERR_CANCELED";ue.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ue.ERR_INVALID_URL="ERR_INVALID_URL";ue.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const bD=null,fk=100;function Dm(e){return I.isPlainObject(e)||I.isArray(e)}function hk(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function Pp(e,t,n){return e?e.concat(t).map(function(i,a){return i=hk(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function SD(e){return I.isArray(e)&&!e.some(Dm)}const _D=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Jd(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,C){return!I.isUndefined(C[R])});const r=n.metaTokens,i=n.visitor||E,a=n.dots,l=n.indexes,u=n.Blob||typeof Blob<"u"&&Blob,f=n.maxDepth===void 0?fk:n.maxDepth,p=u&&I.isSpecCompliantForm(t),m=[];if(!I.isFunction(i))throw new TypeError("visitor must be a function");function g(S){if(S===null)return"";if(I.isDate(S))return S.toISOString();if(I.isBoolean(S))return S.toString();if(!p&&I.isBlob(S))throw new ue("Blob is not supported. Use a Buffer instead.");if(I.isArrayBuffer(S)||I.isTypedArray(S)){if(p&&typeof u=="function")return new u([S]);throw new ue("Blob is not supported. Use a Buffer instead.",ue.ERR_NOT_SUPPORT)}return S}function v(S){if(S>f)throw new ue("Object is too deeply nested ("+S+" levels). Max depth: "+f,ue.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b(S,R){if(f===1/0)return JSON.stringify(S);const C=[];return JSON.stringify(S,function(N,O){if(!I.isObject(O))return O;for(;C.length&&C[C.length-1]!==this;)C.pop();return C.push(O),v(R+C.length-1),O})}function E(S,R,C){let T=S;if(I.isReactNative(t)&&I.isReactNativeBlob(S))return t.append(Pp(C,R,a),g(S)),!1;if(S&&!C&&typeof S=="object"){if(I.endsWith(R,"{}"))R=r?R:R.slice(0,-2),S=b(S,1);else if(I.isArray(S)&&SD(S)||(I.isFileList(S)||I.endsWith(R,"[]"))&&(T=I.toArray(S)))return R=hk(R),T.forEach(function(O,B){!(I.isUndefined(O)||O===null)&&t.append(l===!0?Pp([R],B,a):l===null?R:R+"[]",g(O))}),!1}return Dm(S)?!0:(t.append(Pp(C,R,a),g(S)),!1)}const _=Object.assign(_D,{defaultVisitor:E,convertValue:g,isVisitable:Dm});function k(S,R,C=0){if(!I.isUndefined(S)){if(v(C),m.indexOf(S)!==-1)throw new Error("Circular reference detected in "+R.join("."));m.push(S),I.forEach(S,function(N,O){(!(I.isUndefined(N)||N===null)&&i.call(t,N,I.isString(O)?O.trim():O,R,_))===!0&&k(N,R?R.concat(O):[O],C+1)}),m.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return k(e),t}function Xw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Yg(e,t){this._pairs=[],e&&Jd(e,this,t)}const pk=Yg.prototype;pk.append=function(t,n){this._pairs.push([t,n])};pk.toString=function(t){const n=t?r=>t.call(this,r,Xw):Xw;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function kD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function mk(e,t,n){if(!t)return e;e=e||"";const r=I.isFunction(n)?{serialize:n}:n,i=I.getSafeProp(r,"encode")||kD,a=I.getSafeProp(r,"serialize");let l;if(a?l=a(t,r):l=I.isURLSearchParams(t)?t.toString():new Yg(t,r).toString(i),l){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class Zw{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const qg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ED=typeof URLSearchParams<"u"?URLSearchParams:Yg,CD=typeof FormData<"u"?FormData:null,TD=typeof Blob<"u"?Blob:null,jD={isBrowser:!0,classes:{
vendor: 2,437 bytes, line 310
310URLSearchParams:ED,FormData:CD,Blob:TD},protocols:["http","https","file","blob","url","data"]},Gg=typeof window<"u"&&typeof document<"u",Lm=typeof navigator=="object"&&navigator||void 0,RD=Gg&&(!Lm||["ReactNative","NativeScript","NS"].indexOf(Lm.product)<0),ND=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",PD=Gg&&window.location.href||"http://localhost",AD=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gg,hasStandardBrowserEnv:RD,hasStandardBrowserWebWorkerEnv:ND,navigator:Lm,origin:PD},Symbol.toStringTag,{value:"Module"})),Yt={...AD,...jD};function OD(e,t){return Jd(e,new Yt.classes.URLSearchParams,{visitor:function(n,r,i,a){return Yt.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}const Jw=fk;function gk(e){if(e>Jw)throw new ue("FormData field is too deeply nested ("+e+" levels). Max depth: "+Jw,ue.ERR_FORM_DATA_DEPTH_EXCEEDED)}function MD(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)gk(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function DD(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function yk(e){function t(n,r,i,a){gk(a);let l=n[a++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),f=a>=n.length;return l=!l&&I.isArray(i)?i.length:l,f?(I.hasOwnProp(i,l)?i[l]=I.isArray(i[l])?i[l].concat(r):[i[l],r]:i[l]=r,!u):((!I.hasOwnProp(i,l)||!I.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],a)&&I.isArray(i[l])&&(i[l]=DD(i[l])),!u)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,i)=>{t(MD(r),i,n,0)}),n}return null}const Po=(e,t)=>e!=null&&I.hasOwnProp(e,t)?e[t]:void 0;function LD(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const dc={transitional:qg,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=I.isObject(t);if(a&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return i?JSON.stringify(yk(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;
vendor: 5,222 bytes, line 310
310if(a){const f=Po(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return OD(t,f).toString();if((u=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=Po(this,"env"),m=p&&p.FormData;return Jd(u?{"files[]":t}:t,m&&new m,f)}}return a||i?(n.setContentType("application/json",!1),LD(t)):t}],transformResponse:[function(t){const n=Po(this,"transitional")||dc.transitional,r=n&&n.forcedJSONParsing,i=Po(this,"responseType"),a=i==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!i||a)){const u=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,Po(this,"parseReviver"))}catch(f){if(u)throw f.name==="SyntaxError"?ue.from(f,ue.ERR_BAD_RESPONSE,this,null,Po(this,"response")):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Yt.classes.FormData,Blob:Yt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch","query"],e=>{dc.headers[e]={}});function Ap(e,t){const n=this||dc,r=t||n,i=rn.from(r.headers);let a=r.data;return I.forEach(e,function(u){a=u.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function vk(e){return!!(e&&e.__CANCEL__)}let fc=class extends ue{constructor(t,n,r){super(t??"canceled",ue.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function xk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ue("Request failed with status code "+n.status,n.status>=400&&n.status<500?ue.ERR_BAD_REQUEST:ue.ERR_BAD_RESPONSE,n.config,n.request,n))}function ID(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function FD(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,l;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),m=r[a];l||(l=p),n[i]=f,r[i]=p;let g=a,v=0;for(;g!==i;)v+=n[g++],g=g%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),p-l<t)return;const b=m&&p-m;return b?Math.round(v*1e3/b):void 0}}function BD(e,t){let n=0,r=1e3/t,i,a;const l=(p,m=Date.now())=>{n=m,i=null,a&&(clearTimeout(a),a=null),e(...p)};return[(...p)=>{const m=Date.now(),g=m-n;g>=r?l(p,m):(i=p,a||(a=setTimeout(()=>{a=null,l(i)},r-g)))},()=>i&&l(i)]}const Td=(e,t,n=3)=>{let r=0;const i=FD(50,250);return BD(a=>{if(!a||typeof a.loaded!="number")return;const l=a.loaded,u=a.lengthComputable?a.total:void 0,f=Math.max(0,u!=null?Math.min(l,u):l),p=Math.max(0,f-r),m=i(p);r=Math.max(r,f);const g={loaded:f,total:u,progress:u?f/u:void 0,bytes:p,rate:m||void 0,estimated:m&&u?(u-f)/m:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(g)},n)},eb=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tb=(e,t=I.asap)=>(...n)=>t(()=>e(...n)),UD=Yt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Yt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Yt.origin),Yt.navigator&&/(msie|trident)/i.test(Yt.navigator.userAgent)):()=>!0,VD=Yt.hasStandardBrowserEnv?{write(e,t,n,r,i,a,l){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];I.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),I.isString(r)&&u.push(`path=${r}`),I.isString(i)&&u.push(`domain=${i}`),a===!0&&u.push("secure"),I.isString(l)&&u.push(`SameSite=${l}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function zD(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function WD(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const $D=/^https?:(?!\/\/)/i,HD=/[\t\n\r]/g;function YD(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function qD(e){return YD(e).replace(HD,"")}function GD(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${Cd}`)}function KD(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Cd}@`),n=t.indexOf("#"),i=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Cd}`);return n===-1?i:`${i}#${GD(t.slice(n+1))}`}function nb(e,t){if(typeof e=="string"){const n=qD(e);if($D.test(n))throw new ue(`Invalid URL ${JSON.stringify(KD(n))}: missing "//" after protocol`,ue.ERR_INVALID_URL,t)}}function wk(e,t,n,r){nb(t,r);let i=!zD(t);return e&&(i||n===!1)?(nb(e,r),WD(e,t)):t}const rb=e=>e instanceof rn?{...e}:e,QD=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function Xi(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(m,g,v,b){return I.isPlainObject(m)&&I.isPlainObject(g)?I.merge.call({caseless:b}
vendor: 1,634 bytes, line 310
310,m,g):I.isPlainObject(g)?I.merge({},g):I.isArray(g)?g.slice():g}function i(m,g,v,b){if(I.isUndefined(g)){if(!I.isUndefined(m))return r(void 0,m,v,b)}else return r(m,g,v,b)}function a(m,g){if(!I.isUndefined(g))return r(void 0,g)}function l(m,g){if(I.isUndefined(g)){if(!I.isUndefined(m))return r(void 0,m)}else return r(void 0,g)}function u(m){const g=I.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!I.isUndefined(g))if(I.isPlainObject(g)){if(I.hasOwnProp(g,m))return g[m]}else return;const v=I.hasOwnProp(e,"transitional")?e.transitional:void 0;if(I.isPlainObject(v)&&I.hasOwnProp(v,m))return v[m]}function f(m,g,v){if(I.hasOwnProp(t,v))return r(m,g);if(I.hasOwnProp(e,v))return r(void 0,m)}const p={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:f,headers:(m,g,v)=>i(rb(m),rb(g),v,!0)};return I.forEach(QD({...e,...t}),function(g){if(g==="__proto__"||g==="constructor"||g==="prototype")return;const v=I.hasOwnProp(p,g)?p[g]:i,b=I.hasOwnProp(e,g)?e[g]:void 0,E=I.hasOwnProp(t,g)?t[g]:void 0,_=v(b,E,g);I.isUndefined(_)&&v!==f||(n[g]=_)}),I.hasOwnProp(t,"validateStatus")&&I.isUndefined(t.validateStatus)&&u("validateStatusUndefinedResolves")===!1&&(I.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.val
vendor: 15,530 bytes, lines 310-316
310idateStatus),n}const XD=["content-type","content-length"];function ZD(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{XD.includes(r.toLowerCase())&&e.set(r,i)})}const JD=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function bk(e){const t=Xi({},e),n=v=>I.hasOwnProp(t,v)?t[v]:void 0,r=n("data");let i=n("withXSRFToken");const a=n("xsrfHeaderName"),l=n("xsrfCookieName");let u=n("headers");const f=n("auth"),p=n("baseURL"),m=n("allowAbsoluteUrls"),g=n("url");if(t.headers=u=rn.from(u),t.url=mk(wk(p,g,m,t),n("params"),n("paramsSerializer")),f){const v=I.getSafeProp(f,"username")||"",b=I.getSafeProp(f,"password")||"";try{u.set("Authorization","Basic "+btoa(v+":"+(b?JD(b):"")))}catch(E){throw ue.from(E,ue.ERR_BAD_OPTION_VALUE,e)}}if(I.isFormData(r)&&(Yt.hasStandardBrowserEnv||Yt.hasStandardBrowserWebWorkerEnv||I.isReactNative(r)?u.setContentType(void 0):I.isFunction(r.getHeaders)&&ZD(u,r.getHeaders(),n("formDataHeaderPolicy"))),Yt.hasStandardBrowserEnv&&(I.isFunction(i)&&(i=i(t)),i===!0||i==null&&UD(t.url))){const b=a&&l&&VD.read(l);b&&u.set(a,b)}return t}const eL=typeof XMLHttpRequest<"u",tL=eL&&function(e){return new Promise(function(n,r){const i=bk(e);let a=i.data;const l=rn.from(i.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:p}=i,m,g,v,b,E;function _(){b&&b(),E&&E(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let k=new XMLHttpRequest;k.open(i.method.toUpperCase(),i.url,!0),k.timeout=i.timeout;function S(){if(!k)return;const C=rn.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),N={data:!u||u==="text"||u==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:C,config:e,request:k};xk(function(B){n(B),_()},function(B){r(B),_()},N),k=null}"onloadend"in k?k.onloadend=S:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.startsWith("file:"))||setTimeout(S)},k.onabort=function(){k&&(r(new ue("Request aborted",ue.ECONNABORTED,e,k)),_(),k=null)},k.onerror=function(T){const N=T&&T.message?T.message:"Network Error",O=new ue(N,ue.ERR_NETWORK,e,k);O.event=T||null,r(O),_(),k=null},k.ontimeout=function(){let T=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const N=i.transitional||qg;i.timeoutErrorMessage&&(T=i.timeoutErrorMessage),r(new ue(T,N.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,e,k)),_(),k=null},a===void 0&&l.setContentType(null),"setRequestHeader"in k&&I.forEach(uk(l),function(T,N){k.setRequestHeader(N,T)}),I.isUndefined(i.withCredentials)||(k.withCredentials=!!i.withCredentials),u&&u!=="json"&&(k.responseType=i.responseType),p&&([v,E]=Td(p,!0),k.addEventListener("progress",v)),f&&k.upload&&([g,b]=Td(f),k.upload.addEventListener("progress",g),k.upload.addEventListener("loadend",b)),(i.cancelToken||i.signal)&&(m=C=>{k&&(r(!C||C.type?new fc(null,e,k):C),k.abort(),_(),k=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const R=ID(i.url);if(R&&!Yt.protocols.includes(R)){r(new ue("Unsupported protocol "+R+":",ue.ERR_BAD_REQUEST,e)),_();return}k.send(a||null)})},nL=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(f){if(!r){r=!0,l();const p=f instanceof Error?f:this.reason;n.abort(p instanceof ue?p:new fc(p instanceof Error?p.message:p))}};let a=t&&setTimeout(()=>{a=null,i(new ue(`timeout of ${t}ms exceeded`,ue.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>{if(!r){if(f.aborted){i.call(f);return}f.addEventListener("abort",i,{once:!0})}});const{signal:u}=n;return u.unsubscribe=()=>I.asap(l),u},rL=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},sL=async function*(e,t){for await(const n of iL(e))yield*rL(n,t)},iL=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},sb=(e,t,n,r)=>{const i=sL(e,t);let a=0,l,u=f=>{l||(l=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:p,value:m}=await i.next();if(p){u(),f.close();return}let g=m.byteLength;if(n){let v=a+=g;n(v)}f.enqueue(new Uint8Array(m))}catch(p){throw u(p),p}},cancel(f){return u(f),i.return()}},{highWaterMark:2})},ib=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Sk=(e,t,n)=>t+2<n&&ib(e.charCodeAt(t+1))&&ib(e.charCodeAt(t+2)),ob=e=>e<=57?e-48:(e&223)-55,oL=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,aL=e=>e===9||e===10||e===12||e===13||e===32,lL=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},cL=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},uL=e=>{const t=e.length;let n=0,r=0,i=!1;for(let a=0;a<t;a++){let l=e.charCodeAt(a);if(l===37&&Sk(e,a,t)&&(l=ob(e.charCodeAt(a+1))*16+ob(e.charCodeAt(a+2)),a+=2),!aL(l)){if(l===61){r++;continue}if(!oL(l)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!==0||n%4===1?cL(e):lL(n)},dL=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let l=0;for(let u=0,f=i.length;u<f;u++){const p=i.charCodeAt(u);if(p===37&&Sk(i,u,f))l+=1,u+=2;else if(p<128)l+=1;else if(p<2048)l+=2;else if(p>=55296&&p<=56319&&u+1<f){const m=i.charCodeAt(u+1);m>=56320&&m<=57343?(l+=4,u++):l+=3}else l+=3}return l};function fL(e){const t=typeof e=="string"?e.indexOf("#"):-1;return dL(t===-1?e:e.slice(0,t),uL)}const Kg="1.19.0",ab=64*1024,{isFunction:Uu}=I,hL=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),lb=e=>{if(!I.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},cb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},pL=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},mL=e=>{const t=I.global!==void 0&&I.global!==null?I.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=I.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:a,Response:l}=e,u=i?Uu(i):typeof fetch=="function",f=Uu(a),p=Uu(l);if(!u)return!1;const m=u&&Uu(n),g=u&&(typeof r=="function"?(S=>R=>S.encode(R))(new r):async S=>new Uint8Array(await new a(S).arrayBuffer())),v=f&&m&&cb(()=>{let S=!1;const R=new a(Yt.origin,{body:new n,method:"POST",get duplex(){return S=!0,"half"}}),C=R.headers.has("Content-Type");return R.body!=null&&R.body.cancel(),S&&!C}),b=p&&m&&cb(()=>I.isReadableStream(new l("").body)),E={stream:b&&(S=>S.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!E[S]&&(E[S]=(R,C)=>{let T=R&&R[S];if(T)return T.call(R);throw new ue(`Response type '${S}' is not supported`,ue.ERR_NOT_SUPPORT,C)})});const _=async S=>{if(S==null)return 0;if(I.isBlob(S))return S.size;if(I.isSpecCompliantForm(S))return(await new a(Yt.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(I.isArrayBufferView(S)||I.isArrayBuffer(S))return S.byteLength;if(I.isURLSearchParams(S)&&(S=S+""),I.isString(S))return(await g(S)).byteLength},k=async(S,R)=>{const C=I.toFiniteNumber(S.getContentLength());return C??_(R)};return async S=>{let{url:R,method:C,data:T,signal:N,cancelToken:O,timeout:B,onDownloadProgress:M,onUploadProgress:Y,responseType:G,headers:K,withCredentials:q="same-origin",fetchOptions:Q,maxContentLength:Z,maxBodyLength:he}=bk(S);const X=I.isNumber(Z)&&Z>-1,re=I.isNumber(he)&&he>-1,V=ae=>I.hasOwnProp(S,ae)?S[ae]:void 0;let te=i||fetch;G=G?(G+"").toLowerCase():"text";let $=nL([N,O&&O.toAbortSignal()],B),P=null;const W=$&&$.unsubscribe&&(()=>{$.unsubscribe()});let ce,de=null;const ge=()=>new ue("Request body larger than maxBodyLength limit",ue.ERR_BAD_REQUEST,S,P);try{let ae;const ie=V("auth");if(ie){const Ne=I.getSafeProp(ie,"username")||"",pt=I.getSafeProp(ie,"password")||"";ae={username:Ne,password:pt}}if(pL(R)){const Ne=new URL(R,Yt.origin);if(!ae&&(Ne.username||Ne.password)){const pt=lb(Ne.username),Sn=lb(Ne.password);ae={username:pt,password:Sn}}(Ne.username||Ne.password)&&(Ne.username="",Ne.password="",R=Ne.href)}if(ae&&(K.delete("authorization"),K.set("Authorization","Basic "+btoa(hL((ae.username||"")+":"+(ae.password||""))))),X&&typeof R=="string"&&R.startsWith("data:")&&fL(R)>Z)throw new ue("maxContentLength size of "+Z+" exceeded",ue.ERR_BAD_RESPONSE,S,P);if(re&&C!=="get"&&C!=="head"){const Ne=await _(T);if(typeof Ne=="number"&&isFinite(Ne)&&(ce=Ne,Ne>he))throw ge()}const be=re&&(I.isReadableStream(T)||I.isStream(T)),Se=(Ne,pt,Sn)=>sb(Ne,ab,qt=>{if(re&&qt>he)throw de=ge();pt&&pt(qt)},Sn);if(v&&C!=="get"&&C!=="head"&&(Y||be)){if(ce=ce??await k(K,T),ce!==0||be){let Ne=new a(R,{method:"POST",body:T,duplex:"half"}),pt;if(I.isFormData(T)&&(pt=Ne.headers.get("content-type"))&&K.setContentType(pt),Ne.body){const[Sn,qt]=Y&&eb(ce,Td(tb(Y)))||[];T=Se(Ne.body,Sn,qt)}}}else if(be&&!f&&m&&C!=="get"&&C!=="head")T=Se(T);else if(be&&f&&!v&&C!=="get"&&C!=="head")throw new ue("Stream request bodies are not supported by the current fetch implementation",ue.ERR_NOT_SUPPORT,S,P);I.isString(q)||(q=q?"include":"omit");const Me=f&&"credentials"in a.prototype;if(I.isFormData(T)){const Ne=K.getContentType();Ne&&/^multipart\/form-data/i.test(Ne)&&!/boundary=/i.test(Ne)&&K.delete("content-type")}K.set("User-Agent","axios/"+Kg,!1);const Le={...Q,signal:$,method:C.toUpperCase(),headers:uk(K.normalize()),body:T,duplex:"half",credentials:Me?q:void 0};P=f&&new a(R,Le);let Oe=await(f?te(P,Q):te(R,Le));const it=rn.from(Oe.headers);if(X){const Ne=I.toFiniteNumber(it.getContentLength());if(Ne!=null&&Ne>Z)throw new ue("maxContentLength size of "+Z+" exceeded",ue.ERR_BAD_RESPONSE,S,P)}const ht=b&&(G==="stream"||G==="response");if(b&&Oe.body&&(M||X||ht&&W)){const Ne={};["status","statusText","headers"].forEach(Ir=>{Ne[Ir]=Oe[Ir]});const pt=I.toFiniteNumber(it.getContentLength()),[Sn,qt]=M&&eb(pt,Td(tb(M),!0))||[];let fs=0;const hs=Ir=>{if(X&&(fs=Ir,fs>Z))throw new ue("maxContentLength size of "+Z+" exceeded",ue.ERR_BAD_RESPONSE,S,P);Sn&&Sn(Ir)};Oe=new l(sb(Oe.body,ab,hs,()=>{qt&&qt(),W&&W()}),Ne)}G=G||"text";let Lt=await E[I.findKey(E,G)||"text"](Oe,S);if(X&&!b&&!ht){let Ne;if(Lt!=null&&(typeof Lt.byteLength=="number"?Ne=Lt.byteLength:typeof Lt.size=="number"?Ne=Lt.size:typeof Lt=="string"&&(Ne=typeof r=="function"?new r().encode(Lt).byteLength:Lt.length)),typeof Ne=="number"&&Ne>Z)throw new ue("maxContentLength size of "+Z+" exceeded",ue.ERR_BAD_RESPONSE,S,P)}return!ht&&W&&W(),await new Promise((Ne,pt)=>{xk(Ne,pt,{data:Lt,headers:rn.from(Oe.headers),status:Oe.status,statusText:Oe.statusText,config:S,request:P})})}catch(ae){if(W&&W(),$&&$.aborted&&$.reason instanceof ue){const ie=$.reason;throw ie.config=S,P&&(ie.request=P),ae!==ie&&Object.defineProperty(ie,"cause",{__proto__:null,value:ae,writable:!0,enumerable:!1,configurable:!0}),ie}if(de)throw P&&!de.request&&(de.request=P),de;if(ae instanceof ue)throw P&&!ae.request&&(ae.request=P),ae;if(ae&&ae.name==="TypeError"&&/Load failed|fetch/i.test(ae.message)){const ie=new ue("Network Error",ue.ERR_NETWORK,S,P,ae&&ae.response);throw Object.defineProperty(ie,"cause",{__proto__:null,value:ae.cause||ae,writable:!0,enumerable:!1,configurable:!0}),ie}throw ue.from(ae,ae&&ae.code,S,P,ae&&ae.response)}}},gL=new Map,_k=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let l=a.length,u=l,f,p,m=gL;for(;u--;)f=a[u],p=m.get(f),p===void 0&&m.set(f,p=u?new Map:mL(t)),m=p;return p};_k();const Qg={http:bD,xhr:tL,fetch:{get:_k}};I.forEach(Qg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const ub=e=>`- ${e}`,yL=e=>I.isFunction(e)||e===null||e===!1;function vL(e,t){e=I.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let l=0;l<n;l++){r=e[l];let u;if(i=r,!yL(r)&&(i=Qg[(u=String(r)).toLowerCase()],i===void 0))throw new ue(`Unknown adapter '${u}'`);if(i&&(I.isFunction(i)||(i=i.get(t))))break;a[u||"#"+l]=i}if(!i){const l=Object.entries(a).map(([f,p])=>`adapter ${f} `+(p===!1?"is not supported by the environment":"is not available in the build"));let u=n?l.length>1?`since :
311`+l.map(ub).join(`
312`):" "+ub(l[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+u,ue.ERR_NOT_SUPPORT)}return i}const kk={getAdapter:vL,adapters:Qg};function Op(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fc(null,e)}function Mp(e){return Op(e),e.headers=rn.from(e.headers),e.data=Ap.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kk.getAdapter(e.adapter||dc.adapter,e)(e).then(function(r){Op(e),e.response=r;try{r.data=Ap.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=rn.from(r.headers),r},function(r){if(!vk(r)&&(Op(e),r&&r.response)){e.response=r.response;try{r.response.data=Ap.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=rn.from(r.response.headers)}return Promise.reject(r)})}const ef={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ef[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const db={};ef.transitional=function(t,n,r){function i(a,l){return"[Axios v"+Kg+"] Transitional option '"+a+"'"+l+(r?". "+r:"")}return(a,l,u)=>{if(t===!1)throw new ue(i(l," has been removed"+(n?" in "+n:"")),ue.ERR_DEPRECATED);return n&&!db[l]&&(db[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,l,u):!0}};ef.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function xL(e,t,n){if(typeof e!="object"||e===null)throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],l=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(l){const u=e[a],f=u===void 0||l(u,a,e);if(f!==!0)throw new ue("option "+a+" must be "+f,ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ue("Unknown option "+a,ue.ERR_BAD_OPTION)}}const ld={assertOptions:xL,validators:ef},Zt=ld.validators;let $i=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Zw,response:new Zw}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=(()=>{if(!i.stack)return"";const l=i.stack.indexOf(`
313`);return l===-1?"":i.stack.slice(l+1)})();try{if(!r.stack)r.stack=a;else if(a){const l=a.indexOf(`
314`),u=l===-1?-1:a.indexOf(`
315`,l+1),f=u===-1?"":a.slice(u+1);String(r.stack).endsWith(f)||(r.stack+=`
316`+a)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Xi(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&ld.assertOptions(r,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean),legacyInterceptorReqResOrdering:Zt.transitional(Zt.boolean),advertiseZstdAcceptEncoding:Zt.transitional(Zt.boolean),validateStatusUndefinedResolves:Zt.transitional(Zt.boolean)}
vendor: 3,310 bytes, line 316
316,!1),i!=null&&(I.isFunction(i)?n.paramsSerializer={serialize:i}:ld.assertOptions(i,{encode:Zt.function,serialize:Zt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ld.assertOptions(n,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=a&&I.merge(a.common,a[n.method]);a&&I.forEach(["delete","get","head","post","put","patch","query","common"],E=>{delete a[E]}),n.headers=rn.concat(l,a);const u=[];let f=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(n)===!1)return;f=f&&_.synchronous;const k=n.transitional||qg;k&&k.legacyInterceptorReqResOrdering?u.unshift(_.fulfilled,_.rejected):u.push(_.fulfilled,_.rejected)});const p=[];this.interceptors.response.forEach(function(_){p.push(_.fulfilled,_.rejected)});let m,g=0,v;if(!f){const E=[Mp.bind(this),void 0];for(E.unshift(...u),E.push(...p),v=E.length,m=Promise.resolve(n);g<v;)m=m.then(E[g++],E[g++]);return m}v=u.length;let b=n;for(;g<v;){const E=u[g++],_=u[g++];try{b=E?E(b):b}catch(k){if(!_){m=Promise.reject(k);break}try{const S=_.call(this,k);I.isThenable(S)&&(m=Promise.resolve(S).then(()=>Mp.call(this,b)))}catch(S){m=Promise.reject(S)}break}}if(!m)try{m=Mp.call(this,b)}catch(E){m=Promise.reject(E)}for(g=0,v=p.length;g<v;)m=m.then(p[g++],p[g++]);return m}getUri(t){t=Xi(this.defaults,t);const n=wk(t.baseURL,t.url,t.allowAbsoluteUrls,t);return mk(n,t.params,t.paramsSerializer)}};I.forEach(["delete","get","head","options"],function(t){$i.prototype[t]=function(n,r){return this.request(Xi(r||{},{method:t,url:n,data:r&&I.hasOwnProp(r,"data")?r.data:void 0}))}});I.forEach(["post","put","patch","query"],function(t){function n(r){return function(a,l,u){return this.request(Xi(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}$i.prototype[t]=n(),t!=="query"&&($i.prototype[t+"Form"]=n(!0))});let wL=class Ek{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const l=new Promise(u=>{r.subscribe(u),a=u}).then(i);return l.cancel=function(){r.unsubscribe(a)},l},t(function(a,l,u){r.reason||(r.reason=new fc(a,l,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ek(function(i){t=i}),cancel:t}}};function bL(e){return function(n){return e.apply(null,n)}}function SL(e){return I.isObject(e)&&e.isAxiosError===!0}const Im={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
316alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Im).forEach(([e,t])=>{Im[t]=e});function Ck(e){const t=new $i(e),n=tk($i.prototype.request,t);return I.extend(n,$i.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Ck(Xi(e,i))},n}const Ct=Ck(dc);Ct.Axios=$i;Ct.CanceledError=fc;Ct.CancelToken=wL;Ct.isCancel=vk;Ct.VERSION=Kg;Ct.toFormData=Jd;Ct.AxiosError=ue;Ct.Cancel=Ct.CanceledError;Ct.all=function(t){return Promise.all(t)};Ct.spread=bL;Ct.isAxiosError=SL;Ct.mergeConfig=Xi;Ct.AxiosHeaders=rn;Ct.formToJSON=e=>yk(I.isHTMLForm(e)?new FormData(e):e);Ct.getAdapter=kk.getAdapter;Ct.HttpStatusCode=Im;Ct.default=Ct;const{Axios:nH,AxiosError:rH,CanceledError:sH,isCancel:iH,CancelToken:oH,VERSION:aH,all:lH,Cancel:cH,isAxiosError:uH,spread:dH,toFormData:fH,AxiosHeaders:hH,HttpStatusCode:pH,formToJSON:mH,getAdapter:gH,mergeConfig:yH,create:vH}=Ct,Tk=typeof window>"u",fb=!Tk&&window.self!==window.top,_L=!Tk&&typeof document>"u",jk=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Wt=[];for(let e=0;e<256;++e)Wt.push((e+256).toString(16).slice(1));function kL(e,t=0){return(Wt[e[t+0]]+Wt[e[t+1]]+Wt[e[t+2]]+Wt[e[t+3]]+"-"+Wt[e[t+4]]+Wt[e[t+5]]+"-"+Wt[e[t+6]]+Wt[e[t+7]]+"-"+Wt[e[t+8]]+Wt[e[t+9]]+"-"+Wt[e[t+10]]+Wt[e[t+11]]+Wt[e[t+12]]+Wt[e[t+13]]+Wt[e[t+14]]+Wt[e[t+15]]).toLowerCase()}let Dp;const EL=new Uint8Array(16);function CL(){if(!Dp){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Dp=crypto.getRandomValues.bind(crypto)}return Dp(EL)}const TL=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),hb={randomUUID:TL};function jL(e,t,n){var i;e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??CL();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,kL(r)}function RL(e,t,n){return hb.randomUUID&&!e?hb.randomUUID():jL(e)}const xl=typeof window<"u"?window:{base44SharedInstances:{}};function NL(e,t){return xl.base44SharedInstances||(xl.base44SharedInstances={}),xl.base44SharedInstances[e]||(xl.base44SharedInstances[e]={instance:t()}),xl.base44SharedInstances[e].instance}const PL="__user_heartbeat_event__",AL="__initialization_event__",OL="__session_duration_event__",pb="analytics-enable",mb="base44_analytics_session_id",ML={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},DL="analytics",Qe=NL(DL,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...ML,...WL()}})),LL=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r,enabled:i})=>{var a;const{maxQueueSize:l,throttleTime:u,batchSize:f}=Qe.config;if(!i||!(!((a=Qe.config)===null||a===void 0)&&a.enabled)||_L)return{track:()=>{},cleanup:()=>{}};let p;const m=`${t}/api/apps/${n}/analytics/track/batch`,g=async T=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:T}})},v=T=>{try{const N=JSON.stringify({events:T}),O=new Blob([N],{type:"application/json"});return typeof navigator>"u"||N.length>6e4||!navigator.sendBeacon(m,O)}catch{return!1}}
316,b=async(T,N={})=>{if(T.length===0)return;const O=await zL(r),B=T.map(VL(O));try{(!N.isBeacon||!v(B))&&await g(B)}catch{}},E=()=>{yb(b,{throttleTime:u,batchSize:f})},_=T=>{if(Qe.requestsQueue.length>=l)return;const N=UL();Qe.requestsQueue.push({...T,...N}),E()},k=()=>{yb(b,{throttleTime:u,batchSize:f}),p=vb(_),FL()},S=()=>{gb(),p==null||p(),BL(_);const T=Qe.requestsQueue.splice(0);b(T,{isBeacon:!0})},R=()=>{typeof window>"u"||(document.visibilityState==="hidden"?S():document.visibilityState==="visible"&&k())},C=()=>{gb(),p==null||p(),typeof window<"u"&&window.removeEventListener("visibilitychange",R)};return E(),p=vb(_),IL(_),typeof window<"u"&&window.addEventListener("visibilitychange",R),{track:_,cleanup:C}};function gb(){Qe.isProcessing=!1}async function yb(e,t){if(Qe.isProcessing)return;Qe.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;Qe.isProcessing&&Qe.requestsQueue.length>0;){const i=Qe.requestsQueue.splice(0,r);i.length&&await e(i),await new Promise(a=>setTimeout(a,n))}Qe.isProcessing=!1}function vb(e){var t;if(typeof window>"u"||Qe.isHeartBeatProcessing||((t=Qe.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};Qe.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:PL})},Qe.config.heartBeatInterval);return()=>{clearInterval(n),Qe.isHeartBeatProcessing=!1}}function IL(e){typeof window>"u"||Qe.wasInitializationTracked||(Qe.wasInitializationTracked=!0,e({eventName:AL,properties:{referrer:document==null?void 0:document.referrer}}))}function FL(){typeof window>"u"||Qe.sessionStartTime!==null||(Qe.sessionStartTime=new Date().toISOString())}function BL(e){if(typeof window>"u"||Qe.sessionStartTime===null)return;const t=new Date().getTime()-new Date(Qe.sessionStartTime).getTime();Qe.sessionStartTime=null,e({eventName:OL,properties:{sessionDuration:t}})}function UL(){var e,t;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(t=(e=window.location)===null||e===void 0?void 0:e.pathname)!==null&&t!==void 0?t:null}}function VL(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let El=null;function xb(){Qe.sessionContext=null,El=null}async function zL(e){if(!Qe.sessionContext){if(!e.hasToken())return{user_id:null,session_id:jd()};if(!El){const r=jd();El=e.me().then(i=>({user_id:i.id,session_id:r})).catch(()=>({user_id:null,session_id:r}))}const t=El,n=await t;return El===t&&(Qe.sessionContext=n),n}return Qe.sessionContext}function WL(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(pb);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(pb);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function wb(){var e;return(e=Qe.fallbackSessionId)!==null&&e!==void 0?e:Qe.fallbackSessionId=jk()}function jd(){if(typeof window>"u")return wb();try{const e=localStorage.getItem(mb);if(!e){const t=jk();return localStorage.setItem(mb,t),t}return e}catch{return wb()}}class $L extends Error{constructor(t,n,r,i,a){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=i,this.originalError=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Io({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:i}){const a=Ct.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(a.defaults.headers.common.Authorization=`Bearer ${n}`),a.interceptors.request.use(l=>{typeof window<"u"&&(window.location&&l.headers.set("X-Origin-URL",window.location.href),l.headers.get("Authorization")||l.headers.set("X-Base44-Anonymous-Id",jd()));const u=RL();if(l.requestId=u,fb)try{window.parent.postMessage({type:"api-request-start",requestId:u,data:{url:e+l.url,method:l.method,body:l.data instanceof FormData?"[FormData object]":l.data}},"*")}catch{}return l}),r&&a.interceptors.response.use(l=>{var u;const f=(u=l.config)===null||u===void 0?void 0:u.requestId;try{fb&&f&&window.parent.postMessage({type:"api-request-end",requestId:f,data:{statusCode:l.status,response:l.data}},"*")}catch{}return l.data},l=>{var u,f,p,m,g,v,b,E,_,k,S,R,C,T,N;const O=((f=(u=l.response)===null||u===void 0?void 0:u.data)===null||f===void 0?void 0:f.message)||((m=(p=l.response)===null||p===void 0?void 0:p.data)===null||m===void 0?void 0:m.detail)||l.message,B=new $L(O,(g=l.response)===null||g===void 0?void 0:g.status,(R=(E=(b=(v=l.response)===null||v===void 0?void 0:v.data)===null||b===void 0?void 0:b.code)!==null&&E!==void 0?E:(S=(k=(_=l.response)===null||_===void 0?void 0:_.headers)===null||k===void 0?void 0:k.get)===null||S===void 0?void 0:S.call(k,"x-base44-connector-error"))!==null&&R!==void 0?R:(T=(C=l.response)===null||C===void 0?void 0:C.headers)===null||T===void 0?void 0:T["x-base44-connector-error"],(N=l.response)===null||N===void 0?void 0:N.data,l);return i==null||i(B),Promise.reject(B)}),a}function bb(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return YL(t,n,a,r)}})}function HL(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}function YL(e,t,n,r){const i=`/apps/${t}/entities/${n}`;return{async list(a,l,u,f){const p={};
316return a&&(p.sort=a),l&&(p.limit=l),u&&(p.skip=u),f&&(p.fields=Array.isArray(f)?f.join(","):f),e.get(i,{params:p})},async filter(a,l,u,f,p){const m={q:JSON.stringify(a)};return l&&(m.sort=l),u&&(m.limit=u),f&&(m.skip=f),p&&(m.fields=Array.isArray(p)?p.join(","):p),e.get(i,{params:m})},async get(a){return e.get(`${i}/${a}`)},async create(a){return e.post(i,a)},async update(a,l){return e.put(`${i}/${a}`,l)},async delete(a){return e.delete(`${i}/${a}`)},async deleteMany(a){return e.delete(i,{data:a})},async bulkCreate(a){return e.post(`${i}/bulk`,a)},async updateMany(a,l){return e.patch(`${i}/update-many`,{query:a,data:l})},async bulkUpdate(a){return e.put(`${i}/bulk`,a)},async importEntities(a){const l=new FormData;return l.append("file",a,a.name),e.post(`${i}/import`,l,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(a){const l=`entities:${t}:${n}`;return r().subscribeToRoom(l,{update_model:p=>{var m;const g=HL(p.data);if(g){g.type!=="delete"&&(!((m=g.data)===null||m===void 0)&&m._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${g.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${g.id}")\` to fetch the full record.`);try{a(g)}catch(v){console.error("[Base44 SDK] Subscription callback error:",v)}}}})}}}function qL(e,t){return{async call(n,r,i){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:a,queryParams:l,...u}=i??{},f={...u,...a&&{path_params:a},...l&&{query_params:l}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,f)}}}function Sb(e,t){const n=qL(e,t);return new Proxy({},{get(r,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return i==="custom"?n:new Proxy({},{get(a,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return async u=>{if(typeof u=="string")throw new Error(`Integration ${l} must receive an object with named parameters, received: ${u}`);let f,p;return u instanceof FormData||u&&Object.values(u).some(m=>m instanceof File)?(f=new FormData,Object.keys(u).forEach(m=>{u[m]instanceof File?f.append(m,u[m],u[m].name):typeof u[m]=="object"&&u[m]!==null?f.append(m,JSON.stringify(u[m])):f.append(m,u[m])}),p="multipart/form-data"):(f=u,p="application/json"),i==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${l}`,f||u,{headers:{"Content-Type":p}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${l}`,f||u,{headers:{"Content-Type":p}})}}})}})}function GL(){return typeof window>"u"?!1:window!==window.parent}function KL(e,t,n){const a=Math.round(window.screenX+(window.outerWidth-500)/2),l=Math.round(window.screenY+(window.outerHeight-600)/2),u=window.open(e,"base44_auth",`width=500,height=600,left=${a},top=${l},resizable=yes,scrollbars=yes`);if(!u)return;const f=()=>{window.removeEventListener("message",p),clearInterval(m),u.closed||u.close()},p=g=>{var v;if(g.origin!==n||g.source!==u||!(!((v=g.data)===null||v===void 0)&&v.access_token))return;f();const b=new URL(t),{access_token:E,is_new_user:_}=g.data;b.searchParams.set("access_token",E),_!=null&&b.searchParams.set("is_new_user",String(_)),window.location.href=b.toString()},m=setInterval(()=>{u.closed&&f()},500);window.addEventListener("message",p)}function QL(e,t,n,r){let i=null;const a=()=>{i=null};let l=!!r.token;return{hasToken(){return l},async me(){const u=i??e.get(`/apps/${n}/entities/User/me`).finally(()=>{i===u&&(i=null)});return i=u,u},async updateMe(u){return e.put(`/apps/${n}/entities/User/me`,u)},redirectToLogin(u){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const f=u?new URL(u,window.location.origin).toString():window.location.href,p=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(f)}`;window.location.href=p},loginWithProvider(u,f="/"){const p=new URL(f,window.location.origin).toString(),m=`app_id=${n}&from_url=${encodeURIComponent(p)}`;let g;u==="sso"?g=`/apps/${n}/auth/sso/login`:g=`/apps/auth${u==="google"?"":`/${u}`}/login`;const v=`${r.appBaseUrl}/api${g}?${m}`;if(GL()){const b=`${v}&popup_origin=${encodeURIComponent(window.location.origin)}`;return KL(b,p,window.location.origin)}window.location.href=v},logout(u){if(delete e.defaults.headers.common.Authorization,a(),xb(),l=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(m){console.error("Failed to remove token from localStorage:",m)}const f=u||window.location.href,p=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(f)}`;window.location.href=p}},setToken(u,f=!0){if(u&&(a(),xb(),l=!0,e.defaults.headers.common.Authorization=`Bearer ${u}`,t.defaults.headers.common.Authorization=`Bearer ${u}`,f&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",u),window.localStorage.setItem("token",u)}catch(p){console.error("Failed to save token to localStorage:",p)}},async loginViaEmailPassword(u,f,p){var m;try{const g=await e.post(`/apps/${n}/auth/login`,{email:u,password:f,...p&&{turnstile_token:p}}),{access_token:v,user:b}=g;return v&&this.setToken(v),{access_token:v,user:b}}catch(g){throw((m=g.response)===null||m===void 0?void 0:m.status)===401&&await this.logout(),g}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(u,f){return e.post(`/apps/${n}/users/invite-user`,{user_email:u,role:f})},register(u){return e.post(`/apps/${n}/auth/register`,u)},verifyOtp({email:u,otpCode:f}){return e.post(`/apps/${n}/auth/verify-otp`,{email:u,otp_code:f})},resendOtp(u){return e.post(`/apps/${n}/auth/resend-otp`,{email:u})},resetPasswordRequest(u){return e.post(`/apps/${n}/auth/reset-password-request`,{email:u})},resetPassword({resetToken:u,newPassword:f}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:u,new_password:f})},changePassword({userId:u,currentPassword:f,newPassword:p}){return e.post(`/apps/${n}/auth/change-password`,{user_id:u,current_password:f,new_password:p})}}}function XL(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)},async getIdToken(n){const r=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(r)}}}const ZL=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
316function JL(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var r;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async getWorkspaceConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async callApi(n,r){return Rk(n,"Integration type"),e5(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,r)}}}function Rk(e,t){if(!e||typeof e!="string")throw new Error(`${t} is required and must be a string`)}async function e5(e,t,n){var r,i,a,l,u,f,p,m,g;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");Rk(n.path,"Request path");const v=(r=n.method)!==null&&r!==void 0?r:"GET";if(!ZL.has(v))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const E=await e.post(t,{method:v,...n.host==null?{}:{host:n.host},path:n.path,query:(i=n.query)!==null&&i!==void 0?i:{},headers:(a=n.headers)!==null&&a!==void 0?a:{},body:(l=n.body)!==null&&l!==void 0?l:null});return{success:E.success,phase:E.phase,status:(u=E.status_code)!==null&&u!==void 0?u:null,data:E.data,dataBase64:(f=E.data_base64)!==null&&f!==void 0?f:null,contentType:(p=E.content_type)!==null&&p!==void 0?p:null,headers:(m=E.headers)!==null&&m!==void 0?m:{},creditsCharged:(g=E.credits_charged)!==null&&g!==void 0?g:0}}function t5(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function Gs(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:i=!0}=e;let a=null;if(typeof window<"u"&&window.location)try{const l=new URLSearchParams(window.location.search);if(a=l.get(n),a){if(r&&n5(a,{storageKey:t}),i){l.delete(n);const u=`${window.location.pathname}${l.toString()?`?${l.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,u)}return a}}catch(l){console.error("Error retrieving token from URL:",l)}if(typeof window<"u"&&window.localStorage)try{return a=window.localStorage.getItem(t),a}catch(l){console.error("Error retrieving token from local storage:",l)}return null}function n5(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(r){return console.error("Error saving token to local storage:",r),!1}}function r5({axios:e,serviceRoleAxios:t,appId:n,serverUrl:r,functionsVersion:i,platformHeaders:a}){const l=new Headers(a),u=f=>{const p=f.defaults.headers.common.Authorization;return typeof p=="string"&&p.startsWith("Bearer ")?p:null};return async function(p,m={}){s5(p);const{fetch:g=fetch,...v}=m,b=new Headers(m.headers),E=(_,k)=>{k&&!b.has(_)&&b.set(_,k)};return E("Authorization",u(e)),E("Base44-Service-Authorization",u(t)),E("Base44-App-Id",n),E("Base44-Api-Url",r),E("Base44-Functions-Version",i),E("Base44-State",l.get("Base44-State")),E("X-Data-Env",l.get("X-Data-Env")),g(p,{...v,headers:b})}}function s5(e){if(typeof e!="string"||e==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!t.startsWith("/")||t.startsWith("//")||t.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${e}" is not a path on it — pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function _b(e,t,n){const r=(a,l)=>a?`${String(a).replace(/\/$/,"")}${l}`:l,i=a=>{const l=new Headers;if(n!=null&&n.getAuthHeaders){const u=n.getAuthHeaders();Object.entries(u).forEach(([f,p])=>{p!=null&&l.set(f,String(p))})}
316return a&&new Headers(a).forEach((u,f)=>{l.set(f,u)}),l};return{async invoke(a,l){if(typeof l=="string")throw new Error(`Function ${a} must receive an object with named parameters, received: ${l}`);let u,f;return l instanceof FormData||l&&Object.values(l).some(p=>p instanceof File)?(u=new FormData,Object.keys(l).forEach(p=>{l[p]instanceof File?u.append(p,l[p],l[p].name):typeof l[p]=="object"&&l[p]!==null?u.append(p,JSON.stringify(l[p])):u.append(p,l[p])}),f="multipart/form-data"):(u=l,f="application/json"),e.post(`/apps/${t}/functions/${a}`,u||l,{headers:{"Content-Type":f}})},async fetch(a,l={}){const f=`/functions${a.startsWith("/")?a:`/${a}`}`,p=i(l.headers),m={...l,headers:p};return await fetch(r(n==null?void 0:n.baseURL,f),m)}}}function kb({axios:e,getSocket:t,appId:n,serverUrl:r,token:i}){const a=`/apps/${n}/agents`,l={},u=()=>e.get(`${a}/conversations`),f=_=>e.get(`${a}/conversations/${_}`);return{getConversations:u,getConversation:f,listConversations:_=>e.get(`${a}/conversations`,{params:_}),createConversation:_=>e.post(`${a}/conversations`,_),addMessage:async(_,k)=>e.post(`${a}/conversations/v2/${_.id}/messages`,k),subscribeToConversation:(_,k)=>{const S=`/agent-conversations/${_}`,R=t(),C=f(_).then(T=>(l[_]=T,T));return R.subscribeToRoom(S,{connect:()=>{},update_model:async({data:T})=>{const N=JSON.parse(T);if(N._message){await C;const O=N._message,B=l[_];if(B){const M=B.messages||[],Y=M.findIndex(K=>K.id===O.id),G=Y!==-1?M.map((K,q)=>q===Y?O:K):[...M,O];l[_]={...B,messages:G},k==null||k(l[_])}}}})},getWhatsAppConnectURL:_=>{const k=`${r}/api/apps/${n}/agents/${encodeURIComponent(_)}/whatsapp`,S=i??Gs();return S?`${k}?token=${S}`:k},getTelegramConnectURL:_=>{const k=`${r}/api/apps/${n}/agents/${encodeURIComponent(_)}/telegram`,S=i??Gs();return S?`${k}?token=${S}`:k}}}function Eb({serverUrl:e,token:t,appId:n}){return{connection:()=>{var i;return{baseURL:`${e}/api/apps/${n}/ai/openai/v1`,token:(i=t??Gs())!==null&&i!==void 0?i:""}}}}function Cb(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function i5(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function o5(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}const Pr=Object.create(null);Pr.open="0";Pr.close="1";Pr.ping="2";Pr.pong="3";Pr.message="4";Pr.upgrade="5";Pr.noop="6";const cd=Object.create(null);Object.keys(Pr).forEach(e=>{cd[Pr[e]]=e});const Fm={type:"error",data:"parser error"},Nk=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Pk=typeof ArrayBuffer=="function",Ak=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Xg=({type:e,data:t},n,r)=>Nk&&t instanceof Blob?n?r(t):Tb(t,r):Pk&&(t instanceof ArrayBuffer||Ak(t))?n?r(t):Tb(new Blob([t]),r):r(Pr[e]+(t||"")),Tb=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function jb(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Lp;function a5(e,t){if(Nk&&e.data instanceof Blob)return e.data.arrayBuffer().then(jb).then(t);if(Pk&&(e.data instanceof ArrayBuffer||Ak(e.data)))return t(jb(e.data));Xg(e,!1,n=>{Lp||(Lp=new TextEncoder),t(Lp.encode(n))})}const Rb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Rb.length;e++)Cl[Rb.charCodeAt(e)]=e;const l5=e=>{let t=e.length*.75,n=e.length,r,i=0,a,l,u,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const p=new ArrayBuffer(t),m=new Uint8Array(p);for(r=0;r<n;r+=4)a=Cl[e.charCodeAt(r)],l=Cl[e.charCodeAt(r+1)],u=Cl[e.charCodeAt(r+2)],f=Cl[e.charCodeAt(r+3)],m[i++]=a<<2|l>>4,m[i++]=(l&15)<<4|u>>2,m[i++]=(u&3)<<6|f&63;return p},c5=typeof ArrayBuffer=="function",Zg=(e,t)=>
vendor: 4,460 bytes, line 316
316{if(typeof e!="string")return{type:"message",data:Ok(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:u5(e.substring(1),t)}:cd[n]?e.length>1?{type:cd[n],data:e.substring(1)}:{type:cd[n]}:Fm},u5=(e,t)=>{if(c5){const n=l5(e);return Ok(n,t)}else return{base64:!0,data:e}},Ok=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Mk="�",d5=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((a,l)=>{Xg(a,!1,u=>{r[l]=u,++i===n&&t(r.join(Mk))})})},f5=(e,t)=>{const n=e.split(Mk),r=[];for(let i=0;i<n.length;i++){const a=Zg(n[i],t);if(r.push(a),a.type==="error")break}return r};function h5(){return new TransformStream({transform(e,t){a5(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const a=new DataView(i.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{i=new Uint8Array(9);const a=new DataView(i.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Ip;function Vu(e){return e.reduce((t,n)=>t+n.length,0)}function zu(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function p5(e,t){Ip||(Ip=new TextDecoder);const n=[];let r=0,i=-1,a=!1;return new TransformStream({transform(l,u){for(n.push(l);;){if(r===0){if(Vu(n)<1)break;const f=zu(n,1);a=(f[0]&128)===128,i=f[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Vu(n)<2)break;const f=zu(n,2);i=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),r=3}else if(r===2){if(Vu(n)<8)break;const f=zu(n,8),p=new DataView(f.buffer,f.byteOffset,f.length),m=p.getUint32(0);if(m>Math.pow(2,21)-1){u.enqueue(Fm);break}i=m*Math.pow(2,32)+p.getUint32(4),r=3}else{if(Vu(n)<i)break;const f=zu(n,i);u.enqueue(Zg(a?f:Ip.decode(f),t)),r=0}if(i===0||i>e){u.enqueue(Fm);break}}}})}const Dk=4;function jt(e){if(e)return m5(e)}function m5(e){for(var t in jt.prototype)e[t]=jt.prototype[t];return e}jt.prototype.on=jt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};jt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};jt.prototype.off=jt.prototype.removeListener=jt.prototype.removeAllListeners=jt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};jt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};jt.prototype.emitReserved=jt.prototype.emit;jt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};jt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const tf=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),$n=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),g5="arraybuffer";function Lk(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const y5=$n.setTimeout,v5=$n.clearTimeout;function nf(e,t){t.useNativeTimers?(e.setTimeoutFn=y5.bind($n),e.clearTimeoutFn=v5.bind($n)):(e.setTimeoutFn=$n.setTimeout.bind($n),e.clearTimeoutFn=$n.clearTimeout.bind($n))}const x5=1.33;function w5(e){return typeof e=="string"?b5(e):Math.ceil((e.byteLength||e.size)*x5)}function b5(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Ik(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function S5(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function _5(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let a=n[r].split("=");
vendor: 5,388 bytes, line 316
316t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class k5 extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Jg extends jt{constructor(t){super(),this.writable=!1,nf(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new k5(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Zg(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=S5(t);return n.length?"?"+n:""}}class E5 extends Jg{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};f5(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,d5(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Ik()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let Fk=!1;try{Fk=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const C5=Fk;function T5(){}class j5 extends E5{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,a)=>{this.onError("xhr post error",i,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Cr extends jt{constructor(t,n,r){super(),this.createRequest=t,nf(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=Lk(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Cr.requestsCount++,Cr.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=T5,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Cr.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Cr.requestsCount=0;Cr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Nb);else if(typeof addEventListener=="function"){const e="onpagehide"in $n?"pagehide":"unload";addEventListener(e,Nb,!1)}}function Nb(){for(let e in Cr.requests)Cr.requests.hasOwnProperty(e)&&Cr.requests[e].abort()}const R5=(function(){const e=Bk({xdomain:!1});return e&&e.responseType!==null})();class N5 extends j5{constructor(t){super(t);const n=t&&t.forceBase64;
vendor: 16,862 bytes, line 316
316this.supportsBinary=R5&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Cr(Bk,this.uri(),t)}}function Bk(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||C5))return new XMLHttpRequest}catch{}if(!t)try{return new $n[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Uk=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class P5 extends Jg{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=Uk?{}:Lk(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;Xg(r,this.supportsBinary,a=>{try{this.doWrite(r,a)}catch{}i&&tf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Ik()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Fp=$n.WebSocket||$n.MozWebSocket;class A5 extends P5{createSocket(t,n,r){return Uk?new Fp(t,n,r):n?new Fp(t,n):new Fp(t)}doWrite(t,n){this.ws.send(n)}}class O5 extends Jg{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=p5(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=h5();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const a=()=>{r.read().then(({done:u,value:f})=>{u||(this.onPacket(f),a())}).catch(u=>{})};a();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&tf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const M5={websocket:A5,webtransport:O5,polling:N5},D5=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,L5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Bm(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=D5.exec(e||""),a={},l=14;for(;l--;)a[L5[l]]=i[l]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=I5(a,a.path),a.queryKey=F5(a,a.query),a}function I5(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function F5(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,a){i&&(n[i]=a)}),n}const Um=typeof addEventListener=="function"&&typeof removeEventListener=="function",ud=[];Um&&addEventListener("offline",()=>{ud.forEach(e=>e())},!1);class Js extends jt{constructor(t,n){if(super(),this.binaryType=g5,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Bm(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Bm(n.host).host);nf(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=_5(this.opts.query)),Um&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ud.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Dk,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Js.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Js.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=w5(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,tf(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Js.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Um&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=ud.indexOf(this._offlineEventListener);r!==-1&&ud.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Js.protocol=Dk;class B5 extends Js{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Js.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!r)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Js.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(m(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=n.name,this.emitReserved("upgradeError",v)}}))};function a(){r||(r=!0,m(),n.close(),n=null)}const l=g=>{const v=new Error("probe error: "+g);v.transport=n.name,a(),this.emitReserved("upgradeError",v)};function u(){l("transport closed")}function f(){l("socket closed")}function p(g){n&&g.name!==n.name&&a()}const m=()=>{n.removeListener("open",i),n.removeListener("error",l),n.removeListener("close",u),this.off("close",f),this.off("upgrading",p)};n.once("open",i),n.once("error",l),n.once("close",u),this.once("close",f),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let U5=class extends B5{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>M5[i]).filter(i=>!!i)),super(t,r)}};function V5(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Bm(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const z5=typeof ArrayBuffer=="function",W5=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Vk=Object.prototype.toString,$5=typeof Blob=="function"||typeof Blob<"u"&&Vk.call(Blob)==="[object BlobConstructor]",H5=typeof File=="function"||typeof File<"u"&&Vk.call(File)==="[object FileConstructor]";function ey(e){return z5&&(e instanceof ArrayBuffer||W5(e))||$5&&e instanceof Blob||H5&&e instanceof File}function dd(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(dd(e[n]))return!0;return!1}if(ey(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return dd(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&dd(e[n]))return!0;return!1}function Y5(e){const t=[],n=e.data,r=e;return r.data=Vm(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Vm(e,t){if(!e)return e;if(ey(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Vm(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Vm(e[r],t));return n}return e}function q5(e,t){return e.data=zm(e.data,t),delete e.attachments,e}function zm(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=zm(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=zm(e[n],t));return e}const G5=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var $e;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})($e||($e={}));class K5{constructor(t){this.replacer=t}encode(t){return(t.type===$e.EVENT||t.type===$e.ACK)&&dd(t)?this.encodeAsBinary({type:t.type===$e.EVENT?$e.BINARY_EVENT:$e.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===$e.BINARY_EVENT||t.type===$e.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Y5(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class ty extends jt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===$e.BINARY_EVENT;r||n.type===$e.BINARY_ACK?(n.type=r?$e.EVENT:$e.ACK,this.reconstructor=new Q5(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(ey(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if($e[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===$e.BINARY_EVENT||r.type===$e.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(a,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(l)}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const a=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}
vendor: 4,501 bytes, line 316
316if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(ty.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case $e.CONNECT:return Pb(n);case $e.DISCONNECT:return n===void 0;case $e.CONNECT_ERROR:return typeof n=="string"||Pb(n);case $e.EVENT:case $e.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&G5.indexOf(n[0])===-1);case $e.ACK:case $e.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Q5{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=q5(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Pb(e){return Object.prototype.toString.call(e)==="[object Object]"}const X5=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ty,Encoder:K5,get PacketType(){return $e}},Symbol.toStringTag,{value:"Module"}));function ar(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Z5=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class zk extends jt{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[ar(t,"open",this.onopen.bind(this)),ar(t,"packet",this.onpacket.bind(this)),ar(t,"error",this.onerror.bind(this)),ar(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,a;if(Z5.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const l={type:$e.EVENT,data:n};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const m=this.ids++,g=n.pop();this._registerAckCallback(m,g),l.id=m}const u=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,f=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!u||(f?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let u=0;u<this.sendBuffer.length;u++)this.sendBuffer[u].id===t&&this.sendBuffer.splice(u,1);n.call(this,new Error("operation has timed out"))},i),l=(...u)=>{this.io.clearTimeoutFn(a),n.apply(this,u)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((r,i)=>{const a=(l,u)=>l?i(l):r(u);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...a)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:$e.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,087 bytes, line 316
316_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case $e.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case $e.EVENT:case $e.BINARY_EVENT:this.onevent(t);break;case $e.ACK:case $e.BINARY_ACK:this.onack(t);break;case $e.DISCONNECT:this.ondisconnect();break;case $e.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:$e.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:$e.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function _a(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}_a.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};_a.prototype.reset=function(){this.attempts=0};_a.prototype.setMin=function(e){this.ms=e};_a.prototype.setMax=function(e){this.max=e};_a.prototype.setJitter=function(e){this.jitter=e};class Wm extends jt{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,nf(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new _a({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||X5;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new U5(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=ar(n,"open",function(){r.onopen(),t&&t()}),a=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},l=ar(n,"error",a);if(this._timeout!==!1){const u=this._timeout,f=this.setTimeoutFn(()=>{i(),a(new Error("timeout")),n.close()},u);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(i),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(ar(t,"ping",this.onping.bind(this)),ar(t,"data",this.ondata.bind(this)),ar(t,"error",this.onerror.bind(this)),ar(t,"close",this.onclose.bind(this)),ar(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){tf(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new zk(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
316cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const wl={};function fd(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=V5(e,t.path||"/socket.io"),r=n.source,i=n.id,a=n.path,l=wl[i]&&a in wl[i].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let f;return u?f=new Wm(r,t):(wl[i]||(wl[i]=new Wm(r,t)),f=wl[i]),n.query&&!t.query&&(t.query=n.queryKey),f.socket(n.path,t)}Object.assign(fd,{Manager:Wm,Socket:zk,io:fd,connect:fd});const J5=250;function Ab(e,t){var n;const r=(n=e.token)!==null&&n!==void 0?n:Gs(),i={app_id:e.appId,token:r};r||(i.anonymous_id=jd());const a=fd(e.serverUrl,{path:e.mountPath,transports:e.transports,query:i});return a.on("connect",async()=>{var l;return console.log("connect",a.id),(l=t.connect)===null||l===void 0?void 0:l.call(t)}),a.on("update_model",async l=>{var u;return(u=t.update_model)===null||u===void 0?void 0:u.call(t,l)}),a.on("error",async l=>{var u;return(u=t.error)===null||u===void 0?void 0:u.call(t,l)}),a.on("connect_error",async l=>{var u;return console.error("connect_error",l),(u=t.error)===null||u===void 0?void 0:u.call(t,l)}),a}function e4({config:e}){let t={...e};const n={},r={},i={connect:async()=>{const S=[];Object.keys(n).forEach(R=>{const C=v(R);C.length!==0&&(p(R),C.forEach(({connect:T})=>{const N=async()=>T==null?void 0:T();S.push(N())}))}),await Promise.all(S)},update_model:async S=>{const C=v(S.room).map(T=>{var N;return(N=T.update_model)===null||N===void 0?void 0:N.call(T,S)});await Promise.all(C)},error:async S=>{console.error("error",S);const R=Object.values(n).flat().map(C=>{var T;return(T=C.error)===null||T===void 0?void 0:T.call(C,S)});await Promise.all(R)}};let a=Ab(e,i);function l(){u()}function u(){E(),a&&a.disconnect()}function f(S){l(),t={...t,...S},a=Ab(t,i)}function p(S){a.emit("join",S)}function m(S){a.emit("leave",S)}async function g(S,R){var C;const T=JSON.stringify(R);return(C=i.update_model)===null||C===void 0?void 0:C.call(i,{room:S,data:T})}function v(S){var R;return(R=n[S])!==null&&R!==void 0?R:[]}function b(S){const R=r[S];R&&(clearTimeout(R),delete r[S])}function E(){Object.keys(r).forEach(S=>{var R,C;clearTimeout(r[S]),delete r[S],((C=(R=n[S])===null||R===void 0?void 0:R.length)!==null&&C!==void 0?C:0)===0&&delete n[S]})}function _(S){b(S),r[S]=setTimeout(()=>{var R,C;delete r[S],!(((C=(R=n[S])===null||R===void 0?void 0:R.length)!==null&&C!==void 0?C:0)>0)&&(m(S),delete n[S])},J5)}return{socket:a,subscribeToRoom:(S,R)=>{n[S]?b(S):(p(S),n[S]=[]),n[S].push(R);let C=!1;return()=>{var T,N;C||(C=!0,n[S]=(N=(T=n[S])===null||T===void 0?void 0:T.filter(O=>O!==R))!==null&&N!==void 0?N:[],n[S].length===0&&_(S))}},updateConfig:f,updateModel:g,disconnect:u}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
317  PartySocket requires a global 'EventTarget' class to be available!
318  You can polyfill this global by adding this to your code before any partysocket imports: 
319  
320  \`\`\`
321  import 'partysocket/event-target-polyfill';
322  \`\`\`
323  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
324`);
vendor: 5,074 bytes, line 324
324var Wk=class extends Event{constructor(t,n){super("error",n);st(this,"message");st(this,"error");this.message=t.message,this.error=t}},$k=class extends Event{constructor(t=1e3,n="",r){super("close",r);st(this,"code");st(this,"reason");st(this,"wasClean",!0);this.code=t,this.reason=n}},Bp={Event,ErrorEvent:Wk,CloseEvent:$k};function t4(e,t){if(!e)throw new Error(t)}function n4(e){return new e.constructor(e.type,e)}function r4(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new $k(e.code||1999,e.reason||"unknown reason",e):"error"in e?new Wk(e.error,e):new Event(e.type,e)}var qS,s4=typeof process<"u"&&typeof((qS=process.versions)==null?void 0:qS.node)<"u"&&typeof document>"u",Wu=s4?r4:n4,Ei={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Ob=!1,i4=class ji extends EventTarget{constructor(n,r,i={}){super();st(this,"_ws");st(this,"_retryCount",-1);st(this,"_uptimeTimeout");st(this,"_connectTimeout");st(this,"_shouldReconnect",!0);st(this,"_connectLock",!1);st(this,"_binaryType","blob");st(this,"_closeCalled",!1);st(this,"_messageQueue",[]);st(this,"_url");st(this,"_protocols");st(this,"_options");st(this,"onclose",null);st(this,"onerror",null);st(this,"onmessage",null);st(this,"onopen",null);st(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:r=Ei.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),r),t4(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(i=>{var a;return(a=this._ws)==null?void 0:a.send(i)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(Wu(n))});st(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(Wu(n))});st(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(Wu(n)),this._connect()});st(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(Wu(n))});this._url=n,this._protocols=r,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return ji.CONNECTING}get OPEN(){return ji.OPEN}get CLOSING(){return ji.CLOSING}get CLOSED(){return ji.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((r,i)=>(typeof i=="string"?r+=i.length:i instanceof Blob?r+=i.size:r+=i.byteLength,r),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?ji.CLOSED:ji.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,r){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,r)}reconnect(n,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,r),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:r=Ei.maxEnqueuedMessages}=this._options;this._messageQueue.length<r&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=Ei.reconnectionDelayGrowFactor,minReconnectionDelay:r=Ei.minReconnectionDelay,maxReconnectionDelay:i=Ei.maxReconnectionDelay}=this._options;let a=0;return this._retryCount>0&&(a=r*Math.pow(n,this._retryCount-1),a>i&&(a=i)),this._debug("next delay",a),a}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const r=n();if(!r)return Promise.resolve(null);if(typeof r=="string"||Array.isArray(r))return Promise.resolve(r);if(r.then)return r}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const r=n();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
324const{maxRetries:n=Ei.maxRetries,connectionTimeout:r=Ei.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([i,a])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!Ob&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
325
326For example, if you're using node.js, run \`npm install ws\`, and then in your code:
327
328import PartySocket from 'partysocket';
329import WS from 'ws';
330
331const partysocket = new PartySocket({
332  host: "127.0.0.1:1999",
333  room: "test-room",
334  WebSocket: WS
335});
336
337`),Ob=!0);const l=this._options.WebSocket||WebSocket;this._debug("connect",{url:i,protocols:a}),this._ws=a?new l(i,a):new l(i),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),r)}).catch(i=>{this._connectLock=!1,this._handleError(new Bp.ErrorEvent(Error(i.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new Bp.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,r){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,r),this._handleClose(new Bp.CloseEvent(n,r,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*!
338 * Reconnecting WebSocket
339 * by Pedro Ladaria <[email protected]>
340 * https://github.com/pladaria/reconnecting-websocket
341 * License MIT
342 */const o4=1e3,a4=3e3,l4=new Set([405,409,422,503]),c4=new Set([400,403,404]);function u4(e){const t=e&&typeof e=="object"?e.status:void 0;return typeof t=="number"?t:void 0}function d4(e){return e instanceof Error?e:new Error(String(e))}class f4{constructor(t,n,r,i,a){var l;this.onClose=a,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(l=i==null?void 0:i.id)!==null&&l!==void 0?l:crypto.randomUUID();let u=r.transport==="proxy";const f=async()=>{var v;if(this.closed)throw new Error("Actor connection is closed");if(!u)try{const{websocket_url:b,token:E}=await r.mintConnectionToken(t,n,this.id),_=b.includes("?")?"&":"?";return`${b}${_}token=${encodeURIComponent(E)}`}catch(b){const E=u4(b);if(!(r.transport!=="direct"&&E!==void 0&&l4.has(E))){E!==void 0&&c4.has(E)&&this.close();try{(v=r.onMintError)===null||v===void 0||v.call(r,d4(b))}catch{}throw b}u=!0}return p4(r.host,t,n,this.id,r.appId,r.getAuthToken(),r.functionsVersion)},p=new i4(f);this.ws=p;let m=Date.now();const g=()=>{m=Date.now()};p.addEventListener("open",g),p.addEventListener("message",v=>{g();let b;try{b=JSON.parse(v.data)}catch{return}if((b&&typeof b=="object"?b.type:void 0)!=="__pong")for(const _ of this.listeners)_(b)}),this.heartbeat=setInterval(()=>{if(Date.now()-m>a4){g(),p.readyState===p.OPEN&&p.reconnect();return}try{p.send(JSON.stringify({type:"__ping"}))}catch{}},o4)}subscribe(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}send(t){this.closed||this.ws.send(JSON.stringify(t))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function h4(e,t,n,r){let i=null;return{connect(a){if(i)return i;const l=new f4(e,t,n,a,()=>{r.delete(l),i===l&&(i=null)});return i=l,r.add(l),l}}}function p4(e,t,n,r,i,a,l){let u=e.replace(/^(http|https|ws|wss):\/\//,"");u.endsWith("/")&&(u=u.slice(0,-1));const f=u.startsWith("localhost:")||u.startsWith("127.0.0.1:")||u.startsWith("192.168.")||u.startsWith("10.")||u.startsWith("172.")&&u.split(".")[1]>="16"&&u.split(".")[1]<="31"||u.startsWith("[::ffff:7f00:1]:"),p=new URLSearchParams([["_pk",r],["app_id",i],["handler",t]]);return a&&p.append("token",a),l&&p.append("fv",l),`${f?"ws":"wss"}://${u}/parties/${t}/${n}?${p}`}function m4(e,t){return e&&!e.startsWith("/")?e:t??e}function g4(e){const t=new Set;return{module:new Proxy({}
342,{get(r,i){if(!(typeof i!="string"||i==="then"))return a=>h4(i,a,e,t)}}),closeAll:()=>{for(const r of[...t])r.close()}}}function y4(e){var t,n,r,i;const{serverUrl:a="https://base44.app",appId:l,analytics:u,token:f,serviceToken:p,requiresAuth:m=!1,appBaseUrl:g,options:v,functionsVersion:b,headers:E}=e,_=typeof g=="string"?g:"",k={serverUrl:a,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:l,token:f};let S=null;const R=()=>(S||(S=e4({config:k})),S),C={...E,"X-App-Id":String(l)},T=b?{...C,"Base44-Functions-Version":b}:C,N=Io({baseURL:`${a}/api`,headers:C,token:f,onError:v==null?void 0:v.onError}),O=Io({baseURL:`${a}/api`,headers:T,token:f,interceptResponses:!1,onError:v==null?void 0:v.onError}),B={...C,...f?{"on-behalf-of":`Bearer ${f}`}:{}},M=Io({baseURL:`${a}/api`,headers:B,token:p,onError:v==null?void 0:v.onError}),Y=Io({baseURL:`${a}/api`,headers:T,token:p,interceptResponses:!1}),G=Io({baseURL:`${a}/api`,headers:C}),K=QL(N,O,l,{appBaseUrl:_,token:f});if(typeof window<"u"){const X=f||Gs();X&&K.setToken(X)}const q=g4({appId:l,host:m4(a,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:b,getAuthToken:()=>f||Gs(),mintConnectionToken:async(X,re,V)=>{const te=f||Gs();return await G.post(`/apps/${l}/actors/${encodeURIComponent(X)}/connection-token`,{room:re,connection_id:V},{headers:{...te?{Authorization:`Bearer ${te}`}:{},...b?{"Base44-Functions-Version":b}:{}}})},transport:v==null?void 0:v.actorsTransport,onMintError:v==null?void 0:v.onError}),Q={entities:bb({axios:N,appId:l,getSocket:R}),integrations:Sb(N,l),connectors:t5(N,l),auth:K,functions:_b(O,l,{getAuthHeaders:()=>{const X={},re=f||Gs();return re&&(X.Authorization=`Bearer ${re}`),X},baseURL:(n=O.defaults)===null||n===void 0?void 0:n.baseURL}),agents:kb({axios:N,getSocket:R,appId:l,serverUrl:a,token:f}),aiGateway:Eb({serverUrl:a,token:f,appId:l}),appLogs:Cb(N,l),app:i5(N,l),users:o5(N,l),analytics:LL({axiosClient:N,serverUrl:a,appId:l,userAuthModule:K,enabled:(r=u==null?void 0:u.enabled)!==null&&r!==void 0?r:!0}),actors:q.module,cleanup:()=>{Q.analytics.cleanup(),q.closeAll(),S&&S.disconnect()}},Z={entities:bb({axios:M,appId:l,getSocket:R}),integrations:Sb(M,l),sso:XL(M,l),connectors:JL(M,l),functions:_b(Y,l,{getAuthHeaders:()=>{const X={};return p&&(X.Authorization=`Bearer ${p}`),X},baseURL:(i=Y.defaults)===null||i===void 0?void 0:i.baseURL}),agents:kb({axios:M,getSocket:R,appId:l,serverUrl:a,token:f}),aiGateway:Eb({serverUrl:a,token:p,appId:l}),appLogs:Cb(M,l),cleanup:()=>{S&&S.disconnect()}};return m&&typeof window<"u"&&setTimeout(async()=>{try{await Q.auth.isAuthenticated()||Q.auth.redirectToLogin(window.location.href)}catch(X){console.error("Authentication check failed:",X),Q.auth.redirectToLogin(window.location.href)}},0),{...Q,fetchWithAuth:r5({axios:N,serviceRoleAxios:M,appId:String(l),serverUrl:a,functionsVersion:b,platformHeaders:E}),setToken(X){Q.auth.setToken(X),S&&S.updateConfig({token:X}),k.token=X},getConfig(){return{serverUrl:a,appId:l,requiresAuth:m}},get asServiceRole(){if(!p)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return Z}}}const Hk=typeof window>"u",v4=Hk?{localStorage:new Map}:window,Ol=v4.localStorage,x4=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Ao=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(Hk)return t;const r=`base44_${x4(e)}`,i=new URLSearchParams(window.location.search),a=i.get(e);if(n){i.delete(e);const u=`${window.location.pathname}${i.toString()?`?${i.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,u)}if(a)return Ol.setItem(r,a),a;if(t)return Ol.setItem(r,t),t;const l=Ol.getItem(r);return l||null},w4=()=>(Ao("clear_access_token")==="true"&&(Ol.removeItem("base44_access_token"),Ol.removeItem("token")),{appId:Ao("app_id",{defaultValue:"69d030c3a2cac86938327d41"}),token:Ao("access_token",{removeFromUrl:!0}),fromUrl:Ao("from_url",{defaultValue:window.location.href}),functionsVersion:Ao("functions_version",{defaultValue:"prod"}),appBaseUrl:Ao("app_base_url",{defaultValue:void 0})}),Tl={...w4()},{appId:b4,token:S4,functionsVersion:_4,appBaseUrl:k4}=Tl,ve=y4({appId:b4,token:S4,functionsVersion:_4,serverUrl:"",requiresAuth:!1,appBaseUrl:k4});function E4({}){var i;const t=ai().pathname.substring(1),{data:n,isFetched:r}=iO({queryKey:["user"],queryFn:async()=>{try{return{user:await ve.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return d.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:d.jsx("div",{className:"max-w-md w-full",children:d.jsxs("div",{className:"text-center space-y-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),d.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),d.jsxs("div",{className:"space-y-3",children:[d.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),d.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",d.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),r&&n.isAuthenticated&&((i=n.user)==null?void 0:i.role)==="admin"&&d.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:d.jsxs("div",{className:"flex items-start space-x-3",children:[d.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:d.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),d.jsxs("div",{className:"text-left space-y-1",children:[d.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),d.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),d.jsx("div",{className:"pt-6",children:d.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[d.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const Yk=w.createContext(),C4=({children:e})=>{const[t,n]=w.useState(null),[r,i]=w.useState(!1),[a,l]=w.useState(!0),[u,f]=w.useState(!0),[p,m]=w.useState(null),[g,v]=w.useState(null);w.useEffect(()=>{b()},[]);const b=async()=>{var S,R;try{f(!0),m(null);const C=Io({baseURL:"/api/apps/public",headers:{"X-App-Id":Tl.appId},token:Tl.token,interceptResponses:!0});try{const T=await C.get(`/prod/public-settings/by-id/${Tl.appId}`);v(T),Tl.token?await E():(l(!1),i(!1)),f(!1)}catch(T){if(console.error("App state check failed:",T),T.status===403&&((R=(S=T.data)==null?void 0:S.extra_data)!=null&&R.reason)){const N=T.data.extra_data.reason;m(N==="auth_required"?{type:"auth_required",message:"Authentication required"}:N==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:N,message:T.message})}else m({type:"unknown",message:T.message||"Failed to load app"});f(!1),l(!1)}}catch(C){console.error("Unexpected error:",C),m({type:"unknown",message:C.message||"An unexpected error occurred"}),f(!1),l(!1)}},E=async()=>{try{l(!0);const S=await ve.auth.me();n(S),i(!0),l(!1)}catch(S){console.error("User auth check failed:",S),l(!1),i(!1),(S.status===401||S.status===403)&&m({type:"auth_required",message:"Authentication required"})}},_=(S=!0)=>{n(null),i(!1),S?ve.auth.logout(window.location.href):ve.auth.logout()},k=()=>{ve.auth.redirectToLogin(window.location.href)};return d.jsx(Yk.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:a,isLoadingPublicSettings:u,authError:p,appPublicSettings:g,logout:_,navigateToLogin:k,checkAppState:b},children:e})},qk=()=>{const e=w.useContext(Yk);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},T4=()=>d.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:d.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:d.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),d.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),d.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),d.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[d.jsx("p",{children:"If you believe this is an error, you can:"}),d.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[d.jsx("li",{children:"Verify you are logged in with the correct account"}),d.jsx("li",{children:"Contact the app administrator for access"}),d.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),j4=[{to:"/",label:"Home",icon:HN,exact:!0},{to:"/browse",label:"Browse",icon:fa},{to:"/create",label:"Post",icon:pm,highlight:!0},{to:"/messages",label:"Chat",icon:da},{to:"/trade-offers",label:"Trades",icon:Yn}];function R4({user:e}){const t=ai(),n=r=>r.exact?t.pathname===r.to:t.pathname.startsWith(r.to);return d.jsx("nav",{className:"md:hidden fixed bottom-0 left-0 right-0 z-50 bg-white/97 backdrop-blur-md border-t border-earth-200",children:d.jsx("div",{className:"flex items-center justify-around h-16 px-2",children:j4.map(r=>{const i=n(r),a=r.icon;return r.highlight?d.jsx(Ue,{to:r.to,className:"flex flex-col items-center -mt-5",children:d.jsx("div",{className:"w-14 h-14 roun
342ded-2xl bg-terracotta-500 shadow-lg shadow-terracotta-500/30 flex items-center justify-center border-4 border-background",children:d.jsx(a,{className:"w-6 h-6 text-white"})})},r.to):d.jsxs(Ue,{to:r.to,className:"flex flex-col items-center gap-0.5 flex-1 py-2",children:[d.jsx(a,{className:`w-5 h-5 transition-colors ${i?"text-sage-700":"text-muted-foreground"}`}),d.jsx("span",{className:`text-[10px] font-medium transition-colors ${i?"text-sage-700":"text-muted-foreground"}`,children:r.label})]},r.to)})})})}const Mb=[{to:"/browse",label:"Browse"},{to:"/matches",label:"Matches"},{to:"/messages",label:"Messages"},{to:"/trade-offers",label:"Trades"}];function N4(){var l,u;const[e,t]=w.useState(null),[n,r]=w.useState(!1),i=ai();w.useEffect(()=>{ve.auth.me().then(t).catch(()=>{})},[]),w.useEffect(()=>{r(!1)},[i.pathname]);const a=f=>i.pathname===f||i.pathname.startsWith(f+"/");return d.jsxs("div",{style:{minHeight:"100vh",display:"flex",flexDirection:"column",fontFamily:"'Inter',system-ui,sans-serif",background:"#F7F3EF"},children:[d.jsxs("header",{style:{position:"sticky",top:0,zIndex:100,background:"#fff",borderBottom:"1.5px solid #EEEBE5",boxShadow:"0 2px 12px rgba(0,0,0,0.06)"},children:[d.jsxs("div",{style:{maxWidth:1200,margin:"0 auto",padding:"0 24px",display:"flex",alignItems:"center",justifyContent:"space-between",height:66},children:[d.jsxs(Ue,{to:"/",style:{textDecoration:"none",display:"flex",alignItems:"center",gap:10},children:[d.jsx("div",{style:{width:38,height:38,borderRadius:12,background:"#FF6B35",display:"flex",alignItems:"center",justifyContent:"center",fontSize:20,boxShadow:"0 4px 12px rgba(255,107,53,0.4)"},children:"♻️"}),d.jsxs("div",{children:[d.jsx("div",{style:{fontWeight:900,fontSize:15,color:"#111",letterSpacing:"-0.03em",lineHeight:1},children:"No Longer Need It"}),d.jsx("div",{style:{fontSize:9,color:"#aaa",fontWeight:700,letterSpacing:"0.08em",marginTop:1},children:"NATIONWIDE MARKETPLACE"})]})]}),d.jsxs("nav",{style:{display:"flex",gap:4,alignItems:"center"},className:"nlni-nav",children:[d.jsx("style",{children:"@media(max-width:768px){.nlni-nav{display:none!important}}"}),Mb.map(({to:f,label:p})=>d.jsx(Ue,{to:f,style:{padding:"7px 16px",borderRadius:99,fontSize:14,fontWeight:600,textDecoration:"none",color:a(f)?"#fff":"#555",background:a(f)?"#FF6B35":"transparent"},children:p},f))]}),d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e?d.jsxs(d.Fragment,{children:[d.jsxs("button",{onClick:()=>ve.auth.logout("/"),title:"Log out",style:{fontSize:13,fontWeight:700,padding:"8px 16px",borderRadius:99,border:"1.5px solid #E5E7EB",background:"#fff",color:"#555",cursor:"pointer"},className:"nlni-logout",children:[d.jsx("style",{children:"@media(max-width:560px){.nlni-logout{display:none!important}}"}),"Log out"]}),d.jsx(Ue,{to:"/profile",title:"My Listings",style:{textDecoration:"none"},children:d.jsx("div",{style:{width:38,height:38,borderRadius:12,background:"#00D9C5",display:"flex",alignItems:"center",justifyContent:"center",color:"#111",fontWeight:900,fontSize:15,boxShadow:"0 2px 8px rgba(0,217,197,0.4)"},children:((u=(l=e.full_name)==null?void 0:l[0])==null?void 0:u.toUpperCase())||"U"})})]}):d.jsxs("button",{onClick:()=>ve.auth.redirectToLogin(window.location.href),style:{fontSize:13,fontWeight:700,padding:"8px 18px",borderRadius:99,border:"1.5px solid #E5E7EB",background:"#fff",color:"#333",cursor:"pointer"},className:"nlni-signin",children:[d.jsx("style",{children:"@media(max-width:560px){.nlni-signin{display:none!important}}"}),"Sign in"]}),d.jsxs(Ue,{to:"/create",style:{display:"flex",alignItems:"center",gap:7,padding:"9px 20px",borderRadius:99,background:"#FF6B35",color:"#fff",fontSize:13,fontWeight:800,textDecoration:"none",boxShadow:"0 3px 14px rgba(255,107,53,0.45)"},className:"nlni-post",children:[d.jsx("style",{children:"@media(max-width:480px){.nlni-post{display:none!important}}"}),d.jsx(pm,{style:{width:15,height:15}})," Post Free"]}),d.jsxs("button",{onClick:()=>r(!n),style:{padding:8,border:"1.5px solid #E5E7EB",background:"#fff",borderRadius:10,cursor:"pointer",display:"none"},className:"nlni-hamburger",children:[d.jsx("style",{children:".nlni-hamburger{display:flex!important} @media(min-width:769px){.nlni-hamburger{display:none!important}}"}),n?d.jsx(un,{style:{width:20,height:20}}):d.jsx(nP,{style:{width:20,height:20}})]})]})]}),n&&d.jsxs("div",{style:{borderTop:"1.5px solid #EEEBE5",background:"#fff",padding:"12px 20px",display:"flex",flexDirection:"column",gap:4},children:[Mb.map(({to:f,label:p})=>d.jsx(Ue,{to:f,style:{display:"block",padding:"11px 16px",borderRadius:12,fontSize:15,fontWeight:600,color:a(f)?"#F
342F6B35":"#333",background:a(f)?"#FFF0EB":"transparent",textDecoration:"none"},children:p},f)),d.jsxs(Ue,{to:"/create",style:{display:"flex",alignItems:"center",gap:8,padding:"11px 16px",borderRadius:12,fontSize:15,fontWeight:800,color:"#FF6B35",background:"#FFF0EB",textDecoration:"none"},children:[d.jsx(pm,{style:{width:15,height:15}})," Post for Free"]}),!e&&d.jsx("button",{onClick:()=>ve.auth.redirectToLogin(window.location.href),style:{textAlign:"left",padding:"11px 16px",borderRadius:12,fontSize:15,fontWeight:700,color:"#111",background:"#F7F3EF",border:"none",cursor:"pointer"},children:"Sign in / Register"}),e&&d.jsx(Ue,{to:"/profile",style:{display:"block",padding:"11px 16px",borderRadius:12,fontSize:15,fontWeight:700,color:"#111",background:"#F7F3EF",textDecoration:"none"},children:"My Listings"}),e&&d.jsx("button",{onClick:()=>ve.auth.logout("/"),style:{textAlign:"left",padding:"11px 16px",borderRadius:12,fontSize:15,fontWeight:700,color:"#FF6B35",background:"#FFF0EB",border:"none",cursor:"pointer"},children:"Log out"})]})]}),d.jsx("main",{style:{flex:1},children:d.jsx(eM,{})}),d.jsx(R4,{user:e})]})}const P4="modulepreload",A4=function(e){return"/"+e},Db={},Gk=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(p){return Promise.all(p.map(m=>Promise.resolve(m).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));i=l(n.map(p=>{if(p=A4(p),p in Db)return;Db[p]=!0;const m=p.endsWith(".css"),g=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=m?"stylesheet":P4,m||(v.as="script"),v.crossOrigin="",v.href=p,f&&v.setAttribute("nonce",f),document.head.appendChild(v),m)return new Promise((b,E)=>{v.addEventListener("load",b),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${p}`)))})}))}function a(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return i.then(l=>{for(const u of l||[])u.status==="rejected"&&a(u.reason);return t().catch(a)})},ny=w.createContext({});function ry(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const rf=w.createContext(null),sy=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class O4 extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function M4({children:e,isPresent:t}){const n=w.useId(),r=w.useRef(null),i=w.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=w.useContext(sy);return w.useInsertionEffect(()=>{const{width:l,height:u,top:f,left:p}=i.current;if(t||!r.current||!l||!u)return;r.current.dataset.motionPopId=n;const m=document.createElement("style");return a&&(m.nonce=a),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`
343          [data-motion-pop-id="${n}"] {
344            position: absolute !important;
345            width: ${l}px !important;
346            height: ${u}px !important;
347            top: ${f}px !important;
348            left: ${p}px !important;
349          }
350        `),()=>{document.head.removeChild(m)}},[t]),d.jsx(O4,{isPresent:t,childRef:r,sizeRef:i,children:w.cloneElement(e,{ref:r})})}const D4=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:l})=>{const u=ry(L4),f=w.useId(),p=w.useCallback(g=>{u.set(g,!0);for(const v of u.values())if(!v)return;r&&r()},[u,r]),m=w.useMemo(()=>({id:f,initial:t,isPresent:n,custom:i,onExitComplete:p,register:g=>(u.set(g,!1),()=>u.delete(g))}),a?[Math.random(),p]:[n,p]);return w.useMemo(()=>{u.forEach((g,v)=>u.set(v,!1))},[n]),w.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),l==="popLayout"&&(e=d.jsx(M4,{isPresent:n,children:e})),d.jsx(rf.Provider,{value:m,children:e})};function L4(){return new Map}function Kk(e=!0){const t=w.useContext(rf);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=w.useId();w.useEffect(()=>{e&&i(a)},[e]);const l=w.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,l]:[!0]}const $u=e=>e.key||"";
vendor: 6,857 bytes, line 350
350function Lb(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const iy=typeof window<"u",Qk=iy?w.useLayoutEffect:w.useEffect,$l=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:l=!1})=>{const[u,f]=Kk(l),p=w.useMemo(()=>Lb(e),[e]),m=l&&!u?[]:p.map($u),g=w.useRef(!0),v=w.useRef(p),b=ry(()=>new Map),[E,_]=w.useState(p),[k,S]=w.useState(p);Qk(()=>{g.current=!1,v.current=p;for(let T=0;T<k.length;T++){const N=$u(k[T]);m.includes(N)?b.delete(N):b.get(N)!==!0&&b.set(N,!1)}},[k,m.length,m.join("-")]);const R=[];if(p!==E){let T=[...p];for(let N=0;N<k.length;N++){const O=k[N],B=$u(O);m.includes(B)||(T.splice(N,0,O),R.push(O))}a==="wait"&&R.length&&(T=R),S(Lb(T)),_(p);return}const{forceRender:C}=w.useContext(ny);return d.jsx(d.Fragment,{children:k.map(T=>{const N=$u(T),O=l&&!u?!1:p===k||m.includes(N),B=()=>{if(b.has(N))b.set(N,!0);else return;let M=!0;b.forEach(Y=>{Y||(M=!1)}),M&&(C==null||C(),S(v.current),l&&(f==null||f()),r&&r())};return d.jsx(D4,{isPresent:O,initial:!g.current||n?void 0:!1,custom:O?void 0:t,presenceAffectsLayout:i,mode:a,onExitComplete:O?void 0:B,children:T},N)})})},Rn=e=>e;let Xk=Rn;function oy(e){let t;return()=>(t===void 0&&(t=e()),t)}const pa=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ts=e=>e*1e3,ns=e=>e/1e3,I4={useManualTiming:!1};function F4(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function u(p){a.has(p)&&(f.schedule(p),e()),p(l)}const f={schedule:(p,m=!1,g=!1)=>{const b=g&&r?t:n;return m&&a.add(p),b.has(p)||b.add(p),p},cancel:p=>{n.delete(p),a.delete(p)},process:p=>{if(l=p,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,f.process(p))}};return f}const Hu=["read","resolveKeyframes","update","preRender","render","postRender"],B4=40;function Zk(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,l=Hu.reduce((S,R)=>(S[R]=F4(a),S),{}),{read:u,resolveKeyframes:f,update:p,preRender:m,render:g,postRender:v}=l,b=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,B4),1),i.timestamp=S,i.isProcessing=!0,u.process(i),f.process(i),p.process(i),m.process(i),g.process(i),v.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(b))},E=()=>{n=!0,r=!0,i.isProcessing||e(b)};return{schedule:Hu.reduce((S,R)=>{const C=l[R];return S[R]=(T,N=!1,O=!1)=>(n||E(),C.schedule(T,N,O)),S},{}),cancel:S=>{for(let R=0;R<Hu.length;R++)l[Hu[R]].cancel(S)},state:i,steps:l}}const{schedule:lt,cancel:ti,state:$t,steps:Up}=Zk(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rn,!0),Jk=w.createContext({strict:!1}),Ib={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ma={};for(const e in Ib)ma[e]={isEnabled:t=>Ib[e].some(n=>!!t[n])};function U4(e){for(const t in e)ma[t]={...ma[t],...e[t]}}const V4=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"]);function Rd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||V4.has(e)}let eE=e=>!Rd(e);function z4(e){e&&(eE=t=>t.startsWith("on")?!Rd(t):e(t))}try{z4(require("@emotion/is-prop-valid").default)}catch{}function W4(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(eE(i)||n===!0&&Rd(i)||!t&&!Rd(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function $4(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const sf=w.createContext({});function Hl(e){return typeof e=="string"||Array.isArray(e)}function of(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ay=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ly=["initial",...ay];function af(e){return of(e.animate)||ly.some(t=>Hl(e[t]))}function tE(e){return!!(af(e)||e.variants)}function H4(e,t){if(af(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Hl(n)?n:void 0,animate:Hl(r)?r:void 0}}return e.inherit!==!1?t:{}}function Y4(e){const{initial:t,animate:n}=H4(e,w.useContext(sf));return w.useMemo(()=>({initial:t,animate:n}),[Fb(t),Fb(n)])}function Fb(e){return Array.isArray(e)?e.join(" "):e}const q4=Symbol.for("motionComponentSymbol");function Bo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function G4(e,t,n){return w.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Bo(n)&&(n.current=r))},[t])}const cy=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),K4="framerAppearId",nE="data-"+cy(K4),{schedule:uy}=Zk(queueMicrotask,!1),rE=w.createContext({});function Q4(e,t,n,r,i){var a,l;const{visualElement:u}=w.useContext(sf),f=w.useContext(Jk),p=w.useContext(rf),m=w.useContext(sy).reducedMotion,g=w.useRef(null);r=r||f.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:u,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:m}));const v=g.current,b=w.useContext(rE);v&&!v.projection&&i&&(v.type==="html"||v.type==="svg")&&X4(g.current,n,i,b);const E=w.useRef(!1);w.useInsertionEffect(()=>{v&&E.current&&v.update(n,p)});const _=n[nE],k=w.useRef(!!_&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,_))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,_)));return Qk(()=>{v&&(E.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),uy.render(v.render),k.current&&v.animationState&&v.animationState.animateChanges())}),w.useEffect(()=>{v&&(!k.current&&v.animationState&&v.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,_)}),k.current=!1))}),v}function X4(e,t,n,r){const{layoutId:i,layout:a,drag:l,dragConstraints:u,layoutScroll:f,layoutRoot:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:sE(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!l||u&&Bo(u),visualElement:e,animationType:typeof a=="str
350ing"?a:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:p})}function sE(e){if(e)return e.options.allowProjection!==!1?e.projection:sE(e.parent)}function Z4({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,l;e&&U4(e);function u(p,m){let g;const v={...w.useContext(sy),...p,layoutId:J4(p)},{isStatic:b}=v,E=Y4(p),_=r(p,b);if(!b&&iy){eI();const k=tI(v);g=k.MeasureLayout,E.visualElement=Q4(i,_,v,t,k.ProjectionNode)}return d.jsxs(sf.Provider,{value:E,children:[g&&E.visualElement?d.jsx(g,{visualElement:E.visualElement,...v}):null,n(i,p,G4(_,E.visualElement,m),_,b,E.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(l=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&l!==void 0?l:""})`}`;const f=w.forwardRef(u);return f[q4]=i,f}function J4({layoutId:e}){const t=w.useContext(ny).id;return t&&e!==void 0?t+"-"+e:e}function eI(e,t){w.useContext(Jk).strict}function tI(e){const{drag:t,layout:n}=ma;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const nI=["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"];function dy(e){return typeof e!="string"||e.includes("-")?!1:!!(nI.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bb(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function fy(e,t,n,r){if(typeof t=="function"){const[i,a]=Bb(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Bb(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const $m=e=>Array.isArray(e),rI=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),sI=e=>$m(e)?e[e.length-1]||0:e,nn=e=>!!(e&&e.getVelocity);function hd(e){const t=nn(e)?e.get():e;return rI(t)?t.toValue():t}function iI({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const l={latestValues:oI(r,i,a,e),renderState:t()};return n&&(l.onMount=u=>n({props:r,current:u,...l}),l.onUpdate=u=>n(u)),l}const iE=e=>(t,n)=>{const r=w.useContext(sf),i=w.useContext(rf),a=()=>iI(e,t,r,i);return n?a():ry(a)};function oI(e,t,n,r){const i={},a=r(e,{});for(const v in a)i[v]=hd(a[v]);let{initial:l,animate:u}=e;const f=af(e),p=tE(e);t&&p&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const g=m?u:l;if(g&&typeof g!="boolean"&&!of(g)){const v=Array.isArray(g)?g:[g];for(let b=0;b<v.length;b++){const E=fy(e,v[b]);if(E){const{transitionEnd:_,transition:k,...S}=E;for(const R in S){let C=S[R];if(Array.isArray(C)){const T=m?C.length-1:0;C=C[T]}C!==null&&(i[R]=C)}for(const R in _)i[R]=_[R]}}}return i}const ka=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],so=new Set(ka),oE=e=>t=>typeof t=="string"&&t.startsWith(e),aE=oE("--"),aI=oE("var(--"),hy=e=>aI(e)?lI.test(e.split("/*")[0].trim()):!1,lI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,lE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,is=(e,t,n)=>n>t?t:n<e?e:n,Ea={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Yl={...Ea,transform:e=>is(0,1,e)},Yu={...Ea,default:1},hc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ls=hc("deg"),Tr=hc("%"),Pe=hc("px"),cI=hc("vh"),uI=hc("vw"),Ub={...Tr,parse:e=>Tr.parse(e)/100,transform:e=>Tr.transform(e*100)},dI={borderWidth:Pe,borderTopWidth:Pe,borderRightWidth:Pe,borderBottomWidth:Pe,borderLeftWidth:Pe,borderRadius:Pe,radius:Pe,borderTopLeftRadius:Pe,borderTopRightRadius:Pe,borderBottomRightRadius:Pe,borderBottomLeftRadius:Pe,width:Pe,maxWidth:Pe,height:Pe,maxHeight:Pe,top:Pe,right:Pe,bottom:Pe,left:Pe,padding:Pe,paddingTop:Pe,paddingRight:Pe,paddingBottom:Pe,paddingLeft:Pe,margin:Pe,marginTop:Pe,marginRight:Pe,marginBottom:Pe,marginLeft:Pe,backgroundPositionX:Pe,backgroundPositionY:Pe},fI={rotate:Ls,rotateX:Ls,rotateY:Ls,rotateZ:Ls,scale:Yu,scaleX:Yu,scaleY:Yu,scaleZ:Yu,skew:Ls,skewX:Ls,skewY:Ls,distance:Pe,translateX:Pe,translateY:Pe,translateZ:Pe,x:Pe,y:Pe,z:Pe,perspective:Pe,transformPerspective:Pe,opacity:Yl,originX:Ub,originY:Ub,originZ:Pe},Vb={...Ea,transform:Math.round},py={...dI,...fI,zIndex:Vb,size:Pe,fillOpacity:Yl,strokeOpacity:Yl,numOctaves:Vb},hI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pI=ka.length;function mI(e,t,n){let r="",i=!0;for(let a=0;a<pI;a++){const l=ka[a],u=e[l];if(u===void 0)continue;let f=!0;if(typeof u=="number"?f=u===(l.startsWith("scale")?1:0):f=parseFloat(u)===0,!f||n){const p=lE(u,py[l]);if(!f){i=!1;const m=hI[l]||l;r+=`${m}(${p}) `}n&&(t[l]=p)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}
vendor: 18,614 bytes, line 350
350function my(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let l=!1,u=!1;for(const f in t){const p=t[f];if(so.has(f)){l=!0;continue}else if(aE(f)){i[f]=p;continue}else{const m=lE(p,py[f]);f.startsWith("origin")?(u=!0,a[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=mI(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:f="50%",originY:p="50%",originZ:m=0}=a;r.transformOrigin=`${f} ${p} ${m}`}}const gI={offset:"stroke-dashoffset",array:"stroke-dasharray"},yI={offset:"strokeDashoffset",array:"strokeDasharray"};function vI(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?gI:yI;e[a.offset]=Pe.transform(-r);const l=Pe.transform(t),u=Pe.transform(n);e[a.array]=`${l} ${u}`}function zb(e,t,n){return typeof e=="string"?e:Pe.transform(t+n*e)}function xI(e,t,n){const r=zb(t,e.x,e.width),i=zb(n,e.y,e.height);return`${r} ${i}`}function gy(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:l,pathSpacing:u=1,pathOffset:f=0,...p},m,g){if(my(e,p,g),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:b,dimensions:E}=e;v.transform&&(E&&(b.transform=v.transform),delete v.transform),E&&(i!==void 0||a!==void 0||b.transform)&&(b.transformOrigin=xI(E,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),l!==void 0&&vI(v,l,u,f,!1)}const yy=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),cE=()=>({...yy(),attrs:{}}),vy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function uE(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const dE=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"]);function fE(e,t,n,r){uE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(dE.has(i)?i:cy(i),t.attrs[i])}const Nd={};function wI(e){Object.assign(Nd,e)}function hE(e,{layout:t,layoutId:n}){return so.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Nd[e]||e==="opacity")}function xy(e,t,n){var r;const{style:i}=e,a={};for(const l in i)(nn(i[l])||t.style&&nn(t.style[l])||hE(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[l]=i[l]);return a}function pE(e,t,n){const r=xy(e,t,n);for(const i in e)if(nn(e[i])||nn(t[i])){const a=ka.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function bI(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Wb=["x","y","width","height","cx","cy","r"],SI={useVisualState:iE({scrapeMotionValuesFromProps:pE,createRenderState:cE,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const u in i)if(so.has(u)){a=!0;break}}if(!a)return;let l=!t;if(t)for(let u=0;u<Wb.length;u++){const f=Wb[u];e[f]!==t[f]&&(l=!0)}l&&lt.read(()=>{bI(n,r),lt.render(()=>{gy(r,i,vy(n.tagName),e.transformTemplate),fE(n,r)})})}})},_I={useVisualState:iE({scrapeMotionValuesFromProps:xy,createRenderState:yy})};function mE(e,t,n){for(const r in t)!nn(t[r])&&!hE(r,n)&&(e[r]=t[r])}function kI({transformTemplate:e},t){return w.useMemo(()=>{const n=yy();return my(n,t,e),Object.assign({},n.vars,n.style)},[t])}function EI(e,t){const n=e.style||{},r={};return mE(r,n,e),Object.assign(r,kI(e,t)),r}function CI(e,t){const n={},r=EI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function TI(e,t,n,r){const i=w.useMemo(()=>{const a=cE();return gy(a,t,vy(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};mE(a,e.style,e),i.style={...a,...i.style}}return i}function jI(e=!1){return(n,r,i,{latestValues:a},l)=>{const f=(dy(n)?TI:CI)(r,a,l,n),p=W4(r,typeof n=="string",e),m=n!==w.Fragment?{...p,...f,ref:i}:{},{children:g}=r,v=w.useMemo(()=>nn(g)?g.get():g,[g]);return w.createElement(n,{...m,children:v})}}function RI(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const l={...dy(r)?SI:_I,preloadedFeatures:e,useRender:jI(i),createVisualElement:t,Component:r};return Z4(l)}}function gE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function lf(e,t,n){const r=e.getProps();return fy(r,t,n!==void 0?n:r.custom,e)}const NI=oy(()=>window.ScrollTimeline!==void 0);class PI{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(NI()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class AI extends PI{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function wy(e,t){return e?e[t]||e.default||e:void 0}const Hm=2e4;function yE(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Hm;)t+=n,r=e.next(t);return t>=Hm?1/0:t}function by(e){return typeof e=="function"}function $b(e,t){e.timeline=t,e.onfinish=null}const Sy=e=>Array.isArray(e)&&typeof e[0]=="number",OI={linearEasing:void 0};function MI(e,t){const n=oy(e);return()=>{var r;return(r=OI[t])!==null&&r!==void 0?r:n()}}const Pd=MI(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),vE=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(pa(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function xE(e){return!!(typeof e=="function"&&Pd()||!e||typeof e=="string"&&(e in Ym||Pd())||Sy(e)||Array.isArray(e)&&e.every(xE))}const jl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ym={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jl([0,.65,.55,1]),circOut:jl([.55,0,1,.45]),backIn:jl([.31,.01,.66,-.59]),backOut:jl([.33,1.53,.69,.99])};function wE(e,t){if(e)return typeof e=="function"&&Pd()?vE(e,t):Sy(e)?jl(e):Array.isArray(e)?e.map(n=>wE(n,t)||Ym.easeOut):Ym[e]}const rr={x:!1,y:!1};function bE(){return rr.x||rr.y}function DI(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function SE(e,t){const n=DI(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Hb(e){return t=>{t.pointerType==="touch"||bE()||e(t)}}function LI(e,t,n={}){const[r,i,a]=SE(e,n),l=Hb(u=>{const{target:f}=u,p=t(u);if(typeof p!="function"||!f)return;const m=Hb(g=>{p(g),f.removeEventListener("pointerleave",m)});f.addEventListener("pointerleave",m,i)});return r.forEach(u=>{u.addEventListener("pointerenter",l,i)}),a}const _E=(e,t)=>t?e===t?!0:_E(e,t.parentElement):!1,_y=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,II=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function FI(e){return II.has(e.tagName)||e.tabIndex!==-1}const Rl=new WeakSet;function Yb(e){return t=>{t.key==="Enter"&&e(t)}}function Vp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const BI=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Yb(()=>{if(Rl.has(n))return;Vp(n,"down");const i=Yb(()=>{Vp(n,"up")}),a=()=>Vp(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function qb(e){return _y(e)&&!bE()}function UI(e,t,n={}){const[r,i,a]=SE(e,n),l=u=>{const f=u.currentTarget;if(!qb(u)||Rl.has(f))return;Rl.add(f);const p=t(u),m=(b,E)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),!(!qb(b)||!Rl.has(f))&&(Rl.delete(f),typeof p=="function"&&p(b,{success:E}))},g=b=>{m(b,n.useGlobalTarget||_E(f,b.target))},v=b=>{m(b,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",v,i)};return r.forEach(u=>{!FI(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,i),u.addEventListener("focus",p=>BI(p,i),i)}),a}function VI(e){return e==="x"||e==="y"?rr[e]?null:(rr[e]=!0,()=>{rr[e]=!1}):rr.x||rr.y?null:(rr.x=rr.y=!0,()=>{rr.x=rr.y=!1})}const kE=new Set(["width","height","top","left","right","bottom",...ka]);let pd;function zI(){pd=void 0}const jr={now:()=>(pd===void 0&&jr.set($t.isProcessing||I4.useManualTiming?$t.timestamp:performance.now()),pd),set:e=>{pd=e,queueMicrotask(zI)}};function ky(e,t){e.indexOf(t)===-1&&e.push(t)}function Ey(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Cy{constructor(){this.subscriptions=[]}add(t){return ky(this.subscriptions,t),()=>Ey(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const l=this.subscriptions[a];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function EE(e,t){return t?e*(1e3/t):0}const Gb=30,WI=e=>!isNaN(parseFloat(e));class $I{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=jr.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=jr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=WI(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Cy);const r=this.events[t].add(n);return t==="change"?()=>{r(),lt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=jr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Gb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Gb);return EE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ql(e,t){return new $I(e,t)}function HI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ql(n))}function YI(e,t){const n=lf(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const l in a){const u=sI(a[l]);HI(e,l,u)}}function qI(e){return!!(nn(e)&&e.add)}function qm(e,t){const n=e.getValue("willChange");if(qI(n))return n.add(t)}function CE(e){return e.props[nE]}const TE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,GI=1e-7,KI=12;function QI(e,t,n,r,i){let a,l,u=0;do l=t+(n-t)/2,a=TE(l,r,i)-e,a>0?n=l:t=l;while(Math.abs(a)>GI&&++u<KI);return l}function pc(e,t,n,r){if(e===t&&n===r)return Rn;const i=a=>QI(a,0,1,e,n);return a=>a===0||a===1?a:TE(i(a),t,r)}const jE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,RE=e=>t=>1-e(1-t),NE=pc(.33,1.53,.69,.99),Ty=RE(NE),PE=jE(Ty),AE=e=>(e*=2)<1?.5*Ty(e):.5*(2-Math.pow(2,-10*(e-1))),jy=e=>1-Math.sin(Math.acos(e)),OE=RE(jy),ME=jE(jy),DE=e=>/^0[^.\s]+$/u.test(e);function XI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||DE(e):!0}const Ml=e=>Math.round(e*1e5)/1e5,Ry=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ZI(e){return e==null}const JI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ny=(e,t)=>n=>!!(typeof n=="string"&&JI.test(n)&&n.startsWith(e)||t&&!ZI(n)&&Object.prototype.hasOwnProperty.call(n,t)),LE=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,l,u]=r.match(Ry);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},eF=e=>is(0,255,e),zp={...Ea,transform:e=>Math.round(eF(e))},Oi={test:Ny("rgb","red"),parse:LE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+zp.transform(e)+", "+zp.transform(t)+", "+zp.transform(n)+", "+Ml(Yl.transform(r))+")"};function tF(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Gm={test:Ny("#"),parse:tF,transform:Oi.transform},Uo={test:Ny("hsl","hue"),parse:LE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Tr.transform(Ml(t))+", "+Tr.transform(Ml(n))+", "+Ml(Yl.transform(r))+")"},tn={test:e=>Oi.test(e)||Gm.test(e)||Uo.test(e),parse:e=>Oi.test(e)?Oi.parse(e):Uo.test(e)?Uo.parse(e):Gm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Oi.transform(e):Uo.transform(e)},nF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rF(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ry))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(nF))===null||n===void 0?void 0:n.length)||0)>0}const IE="number",FE="color",sF="var",iF="var(",Kb="${}",oF=/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;function Gl(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(oF,f=>(tn.test(f)?(r.color.push(a),i.push(FE),n.push(tn.parse(f))):f.startsWith(iF)?(r.var.push(a),i.push(sF),n.push(f)):(r.number.push(a),i.push(IE),n.push(parseFloat(f))),++a,Kb)).split(Kb);return{values:n,split:u,indexes:r,types:i}}function BE(e){return Gl(e).values}function UE(e){const{split:t,types:n}=Gl(e),r=t.length;return i=>{let a="";for(let l=0;l<r;l++)if(a+=t[l],i[l]!==void 0){const u=n[l];u===IE?a+=Ml(i[l]):u===FE?a+=tn.transform(i[l]):a+=i[l]}return a}}const aF=e=>typeof e=="number"?0:e;function lF(e){const t=BE(e);return UE(e)(t.map(aF))}const ni={test:rF,parse:BE,createTransformer:UE,getAnimatableNone:lF},cF=new Set(["brightness","contrast","saturate","opacity"]);function uF(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ry)||[];if(!r)return e;const i=n.replace(r,"");let a=cF.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const dF=/\b([a-z-]*)\(.*?\)/gu,Km={...ni,getAnimatableNone:e=>{const t=e.match(dF);return t?t.map(uF).join(" "):e}},fF={...py,color:tn,backgroundColor:tn,outlineColor:tn,fill:tn,stroke:tn,borderColor:tn,borderTopColor:tn,borderRightColor:tn,borderBottomColor:tn,borderLeftColor:tn,filter:Km,WebkitFilter:Km},Py=e=>fF[e];function VE(e,t){let n=Py(e);return n!==Km&&(n=ni),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const hF=new Set(["auto","none","0"]);function pF(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!hF.has(a)&&Gl(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=VE(n,i)}const Qb=e=>e===Ea||e===Pe,Xb=(e,t)=>parseFloat(e.split(", ")[t]),Zb=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Xb(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?Xb(a[1],e):0}},mF=new Set(["x","y","z"]),gF=ka.filter(e=>!mF.has(e));function yF(e){const t=[];return gF.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ga={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Zb(4,13),y:Zb(5,14)};ga.translateX=ga.x;ga.translateY=ga.y;const Hi=new Set;let Qm=!1,Xm=!1;function zE(){if(Xm){const e=Array.from(Hi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=yF(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,l])=>{var u;(u=r.getValue(a))===null||u===void 0||u.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}
vendor: 4,905 bytes, line 350
350Xm=!1,Qm=!1,Hi.forEach(e=>e.complete()),Hi.clear()}function WE(){Hi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Xm=!0)})}function vF(){WE(),zE()}class Ay{constructor(t,n,r,i,a,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Hi.add(this),Qm||(Qm=!0,lt.read(WE),lt.resolveKeyframes(zE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const l=i==null?void 0:i.get(),u=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const f=r.readValue(n,u);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=u),i&&l===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Hi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Hi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const $E=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),xF=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wF(e){const t=xF.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function HE(e,t,n=1){const[r,i]=wF(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const l=a.trim();return $E(l)?parseFloat(l):l}return hy(i)?HE(i,t,n+1):i}const YE=e=>t=>t.test(e),bF={test:e=>e==="auto",parse:e=>e},qE=[Ea,Pe,Tr,Ls,uI,cI,bF],Jb=e=>qE.find(YE(e));class GE extends Ay{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let p=t[f];if(typeof p=="string"&&(p=p.trim(),hy(p))){const m=HE(p,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!kE.has(r)||t.length!==2)return;const[i,a]=t,l=Jb(i),u=Jb(a);if(l!==u)if(Qb(l)&&Qb(u))for(let f=0;f<t.length;f++){const p=t[f];typeof p=="string"&&(t[f]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)XI(t[i])&&r.push(i);r.length&&pF(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ga[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const l=i.length-1,u=i[l];i[l]=ga[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,p])=>{n.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const e1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ni.test(e)||e==="0")&&!e.startsWith("url("));function SF(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function _F(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],l=e1(i,t),u=e1(a,t);return!l||!u?!1:SF(e)||(n==="spring"||by(n))&&r}const kF=e=>e!==null;function cf(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(kF),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const EF=40;class KE{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:l="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=jr.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:l,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>EF?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&vF(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=jr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:l,onComplete:u,onUpdate:f,isGenerator:p}=this.options;if(!p&&!_F(t,r,i,a))if(l)this.options.duration=0;else{f&&f(cf(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}
vendor: 4,086 bytes, line 350
350const yt=(e,t,n)=>e+(t-e)*n;function Wp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function CF({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,l=0;if(!t)i=a=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;i=Wp(f,u,e+1/3),a=Wp(f,u,e),l=Wp(f,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(l*255),alpha:r}}function Ad(e,t){return n=>n>0?t:e}const $p=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},TF=[Gm,Oi,Uo],jF=e=>TF.find(t=>t.test(e));function t1(e){const t=jF(e);if(!t)return!1;let n=t.parse(e);return t===Uo&&(n=CF(n)),n}const n1=(e,t)=>{const n=t1(e),r=t1(t);if(!n||!r)return Ad(e,t);const i={...n};return a=>(i.red=$p(n.red,r.red,a),i.green=$p(n.green,r.green,a),i.blue=$p(n.blue,r.blue,a),i.alpha=yt(n.alpha,r.alpha,a),Oi.transform(i))},RF=(e,t)=>n=>t(e(n)),mc=(...e)=>e.reduce(RF),Zm=new Set(["none","hidden"]);function NF(e,t){return Zm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function PF(e,t){return n=>yt(e,t,n)}function Oy(e){return typeof e=="number"?PF:typeof e=="string"?hy(e)?Ad:tn.test(e)?n1:MF:Array.isArray(e)?QE:typeof e=="object"?tn.test(e)?n1:AF:Ad}function QE(e,t){const n=[...e],r=n.length,i=e.map((a,l)=>Oy(a)(a,t[l]));return a=>{for(let l=0;l<r;l++)n[l]=i[l](a);return n}}function AF(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Oy(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function OF(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],u=e.indexes[l][i[l]],f=(n=e.values[u])!==null&&n!==void 0?n:0;r[a]=f,i[l]++}return r}const MF=(e,t)=>{const n=ni.createTransformer(t),r=Gl(e),i=Gl(t);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?Zm.has(e)&&!i.values.length||Zm.has(t)&&!r.values.length?NF(e,t):mc(QE(OF(r,i),i.values),n):Ad(e,t)};function XE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?yt(e,t,n):Oy(e)(e,t)}const DF=5;function ZE(e,t,n){const r=Math.max(t-DF,0);return EE(n-e(r),t-r)}const wt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Hp=.001;function LF({duration:e=wt.duration,bounce:t=wt.bounce,velocity:n=wt.velocity,mass:r=wt.mass}){let i,a,l=1-t;l=is(wt.minDamping,wt.maxDamping,l),e=is(wt.minDuration,wt.maxDuration,ns(e)),l<1?(i=p=>{const m=p*l,g=m*e,v=m-n,b=Jm(p,l),E=Math.exp(-g);return Hp-v/b*E},a=p=>{const g=p*l*e,v=g*n+n,b=Math.pow(l,2)*Math.pow(p,2)*e,E=Math.exp(-g),_=Jm(Math.pow(p,2),l);return(-i(p)+Hp>0?-1:1)*((v-b)*E)/_}):(i=p=>{const m=Math.exp(-p*e),g=(p-n)*e+1;return-Hp+m*g},a=p=>{const m=Math.exp(-p*e),g=(n-p)*(e*e);return m*g});const u=5/e,f=FF(i,a,u);if(e=ts(e),isNaN(f))return{stiffness:wt.stiffness,damping:wt.damping,duration:e};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:l*2*Math.sqrt(r*p),duration:e}}}const IF=12;function FF(e,t,n){let r=n;for(let i=1;i<IF;i++)r=r-e(r)/t(r);return r}function Jm(e,t){return e*Math.sqrt(1-t*t)}const BF=["duration","bounce"],UF=["stiffness","damping","mass"];function r1(e,t){return t.some(n=>e[n]!==void 0)}function VF(e){let t={velocity:wt.velocity,stiffness:wt.stiffness,damping:wt.damping,mass:wt.mass,isResolvedFromDuration:!1,...e};if(!r1(e,UF)&&r1(e,BF))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*is(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:wt.mass,stiffness:i,damping:a}}else{const n=LF(e);t={...t,...n,mass:wt.mass},t.isResolvedFromDuration=!0}return t}function JE(e=wt.visualDuration,t=wt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:f,damping:p,mass:m,duration:g,velocity:v,isResolvedFromDuration:b}=VF({...n,velocity:-ns(n.velocity||0)}
vendor: 5,965 bytes, line 350
350),E=v||0,_=p/(2*Math.sqrt(f*m)),k=l-a,S=ns(Math.sqrt(f/m)),R=Math.abs(k)<5;r||(r=R?wt.restSpeed.granular:wt.restSpeed.default),i||(i=R?wt.restDelta.granular:wt.restDelta.default);let C;if(_<1){const N=Jm(S,_);C=O=>{const B=Math.exp(-_*S*O);return l-B*((E+_*S*k)/N*Math.sin(N*O)+k*Math.cos(N*O))}}else if(_===1)C=N=>l-Math.exp(-S*N)*(k+(E+S*k)*N);else{const N=S*Math.sqrt(_*_-1);C=O=>{const B=Math.exp(-_*S*O),M=Math.min(N*O,300);return l-B*((E+_*S*k)*Math.sinh(M)+N*k*Math.cosh(M))/N}}const T={calculatedDuration:b&&g||null,next:N=>{const O=C(N);if(b)u.done=N>=g;else{let B=0;_<1&&(B=N===0?ts(E):ZE(C,N,O));const M=Math.abs(B)<=r,Y=Math.abs(l-O)<=i;u.done=M&&Y}return u.value=u.done?l:O,u},toString:()=>{const N=Math.min(yE(T),Hm),O=vE(B=>T.next(N*B).value,N,30);return N+"ms "+O}};return T}function s1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:l,min:u,max:f,restDelta:p=.5,restSpeed:m}){const g=e[0],v={done:!1,value:g},b=M=>u!==void 0&&M<u||f!==void 0&&M>f,E=M=>u===void 0?f:f===void 0||Math.abs(u-M)<Math.abs(f-M)?u:f;let _=n*t;const k=g+_,S=l===void 0?k:l(k);S!==k&&(_=S-g);const R=M=>-_*Math.exp(-M/r),C=M=>S+R(M),T=M=>{const Y=R(M),G=C(M);v.done=Math.abs(Y)<=p,v.value=v.done?S:G};let N,O;const B=M=>{b(v.value)&&(N=M,O=JE({keyframes:[v.value,E(v.value)],velocity:ZE(C,M,v.value),damping:i,stiffness:a,restDelta:p,restSpeed:m}))};return B(0),{calculatedDuration:null,next:M=>{let Y=!1;return!O&&N===void 0&&(Y=!0,T(M),B(M)),N!==void 0&&M>=N?O.next(M-N):(!Y&&T(M),v)}}}const zF=pc(.42,0,1,1),WF=pc(0,0,.58,1),eC=pc(.42,0,.58,1),$F=e=>Array.isArray(e)&&typeof e[0]!="number",HF={linear:Rn,easeIn:zF,easeInOut:eC,easeOut:WF,circIn:jy,circInOut:ME,circOut:OE,backIn:Ty,backInOut:PE,backOut:NE,anticipate:AE},i1=e=>{if(Sy(e)){Xk(e.length===4);const[t,n,r,i]=e;return pc(t,n,r,i)}else if(typeof e=="string")return HF[e];return e};function YF(e,t,n){const r=[],i=n||XE,a=e.length-1;for(let l=0;l<a;l++){let u=i(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Rn:t;u=mc(f,u)}r.push(u)}return r}function qF(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Xk(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=YF(t,r,i),f=u.length,p=m=>{if(l&&m<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(m<e[g+1]);g++);const v=pa(e[g],e[g+1],m);return u[g](v)};return n?m=>p(is(e[0],e[a-1],m)):p}function GF(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=pa(0,t,r);e.push(yt(n,1,i))}}function KF(e){const t=[0];return GF(t,e.length-1),t}function QF(e,t){return e.map(n=>n*t)}function XF(e,t){return e.map(()=>t||eC).splice(0,e.length-1)}function Od({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=$F(r)?r.map(i1):i1(r),a={done:!1,value:t[0]},l=QF(n&&n.length===t.length?n:KF(t),e),u=qF(l,t,{ease:Array.isArray(i)?i:XF(t,i)});return{calculatedDuration:e,next:f=>(a.value=u(f),a.done=f>=e,a)}}const ZF=e=>{const t=({timestamp:n})=>e(n);return{start:()=>lt.update(t,!0),stop:()=>ti(t),now:()=>$t.isProcessing?$t.timestamp:jr.now()}},JF={decay:s1,inertia:s1,tween:Od,keyframes:Od,spring:JE},e3=e=>e/100;class My extends KE{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,l=(i==null?void 0:i.KeyframeResolver)||Ay,u=(f,p)=>this.onKeyframesResolved(f,p);this.resolver=new l(a,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:l=0}=this.options,u=by(n)?n:JF[n]||Od;let f,p;u!==Od&&typeof t[0]!="number"&&(f=mc(e3,XE(t[0],t[1])),t=[0,100]);const m=u({...this.options,keyframes:t});a==="mirror"&&(p=u({...this.options,keyframes:[...t].reverse(),velocity:-l})),m.calculatedDuration===null&&(m.calculatedDuration=yE(m));const{calculatedDuration:g}=m,v=g+i,b=v*(r+1)-i;return{generator:m,mirroredGenerator:p,mapPercentToKeyframes:f,calculatedDuration:g,resolvedDuration:v,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:l,mapPercentToKeyframes:u,keyframes:f,calculatedDuration:p,totalDuration:m,resolvedDuration:g}=r;if(this.startTime===null)return a.next(0);const{delay:v,repeat:b,repeatType:E,repeatDelay:_,onUpdate:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const S=this.currentTime-v*(this.speed>=0?1:-1),R=this.speed>=0?S<0:S>m;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let C=this.currentTime,T=a;if(b){const M=Math.min(this.currentTime,m)/g;let Y=Math.floor(M),G=M%1;!G&&M>=1&&(G=1),G===1&&Y--,Y=Math.min(Y,b+1),!!(Y%2)&&(E==="reverse"?(G=1-G,_&&(G-=_/g)):E==="mirror"&&(T=l)),C=is(0,1,G)*g}const N=R?{done:!1,value:f[0]}:T.next(C);u&&(N.value=u(N.value));let{done:O}=N;!R&&p!==null&&(O=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return B&&i!==void 0&&(N.value=cf(f,this.options,i)),k&&k(N.value),B&&this.finish(),N}get duration(){const{resolved:t}=this;return t?ns(t.calculatedDuration):0}
vendor: 54,427 bytes, line 350
350get time(){return ns(this.currentTime)}set time(t){t=ts(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ns(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=ZF,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const t3=new Set(["opacity","clipPath","filter","transform"]);function n3(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:l="loop",ease:u="easeInOut",times:f}={}){const p={[t]:n};f&&(p.offset=f);const m=wE(u,i);return Array.isArray(m)&&(p.easing=m),e.animate(p,{delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:l==="reverse"?"alternate":"normal"})}const r3=oy(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Md=10,s3=2e4;function i3(e){return by(e.type)||e.type==="spring"||!xE(e.ease)}function o3(e,t){const n=new My({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<s3;)r=n.sample(a),i.push(r.value),a+=Md;return{times:void 0,keyframes:i,duration:a-Md,ease:"linear"}}const tC={anticipate:AE,backInOut:PE,circInOut:ME};function a3(e){return e in tC}class o1 extends KE{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new GE(a,(l,u)=>this.onKeyframesResolved(l,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:l,motionValue:u,name:f,startTime:p}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof a=="string"&&Pd()&&a3(a)&&(a=tC[a]),i3(this.options)){const{onComplete:g,onUpdate:v,motionValue:b,element:E,..._}=this.options,k=o3(t,_);t=k.keyframes,t.length===1&&(t[1]=t[0]),r=k.duration,i=k.times,a=k.ease,l="keyframes"}const m=n3(u.owner.current,f,t,{...this.options,duration:r,times:i,ease:a});return m.startTime=p??this.calcStartTime(),this.pendingTimeline?($b(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:g}=this.options;u.set(cf(t,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:i,type:l,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ns(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ns(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ts(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Rn;const{animation:r}=n;$b(r,t)}return Rn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:l,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:m,onComplete:g,element:v,...b}=this.options,E=new My({...b,keyframes:r,duration:i,type:a,ease:l,times:u,isGenerator:!0}),_=ts(this.time);p.setWithVelocity(E.sample(_-Md).value,E.sample(_).value,Md)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:l,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=n.owner.getProps();return r3()&&r&&t3.has(r)&&!f&&!p&&!i&&a!=="mirror"&&l!==0&&u!=="inertia"}}const l3={type:"spring",stiffness:500,damping:25,restSpeed:10},c3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),u3={type:"keyframes",duration:.8},d3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},f3=(e,{keyframes:t})=>t.length>2?u3:so.has(e)?e.startsWith("scale")?c3(t[1]):l3:d3;function h3({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:l,repeatDelay:u,from:f,elapsed:p,...m}){return!!Object.keys(m).length}const Dy=(e,t,n,r={},i,a)=>l=>{const u=wy(r,e)||{},f=u.delay||r.delay||0;let{elapsed:p=0}=r;p=p-ts(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-p,onUpdate:v=>{t.set(v),u.onUpdate&&u.onUpdate(v)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};h3(u)||(m={...m,...f3(e,m)}),m.duration&&(m.duration=ts(m.duration)),m.repeatDelay&&(m.repeatDelay=ts(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(g=!0)),g&&!a&&t.get()!==void 0){const v=cf(m.keyframes,u);if(v!==void 0)return lt.update(()=>{m.onUpdate(v),m.onComplete()}),new AI([])}return!a&&o1.supports(m)?new o1(m):new My(m)};function p3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function nC(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:l=e.getDefaultTransition(),transitionEnd:u,...f}=t;r&&(l=r);const p=[],m=i&&e.animationState&&e.animationState.getState()[i];for(const g in f){const v=e.getValue(g,(a=e.latestValues[g])!==null&&a!==void 0?a:null),b=f[g];if(b===void 0||m&&p3(m,g))continue;const E={delay:n,...wy(l||{},g)};let _=!1;if(window.MotionHandoffAnimation){const S=CE(e);if(S){const R=window.MotionHandoffAnimation(S,g,lt);R!==null&&(E.startTime=R,_=!0)}}qm(e,g),v.start(Dy(g,v,b,e.shouldReduceMotion&&kE.has(g)?{type:!1}:E,e,_));const k=v.animation;k&&p.push(k)}return u&&Promise.all(p).then(()=>{lt.update(()=>{u&&YI(e,u)})}),p}function eg(e,t,n={}){var r;const i=lf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const l=i?()=>Promise.all(nC(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:v}=a;return m3(e,t,m+p,g,v,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[p,m]=f==="beforeChildren"?[l,u]:[u,l];return p().then(()=>m())}else return Promise.all([l(),u(n.delay)])}function m3(e,t,n=0,r=0,i=1,a){const l=[],u=(e.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>u-p*r;return Array.from(e.variantChildren).sort(g3).forEach((p,m)=>{p.notify("AnimationStart",t),l.push(eg(p,t,{...a,delay:n+f(m)}).then(()=>p.notify("AnimationComplete",t)))}),Promise.all(l)}function g3(e,t){return e.sortNodePosition(t)}function y3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>eg(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=eg(e,t,n);else{const i=typeof t=="function"?lf(e,t,n.custom):t;r=Promise.all(nC(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const v3=ly.length;function rC(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?rC(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<v3;n++){const r=ly[n],i=e.props[r];(Hl(i)||i===!1)&&(t[r]=i)}return t}const x3=[...ay].reverse(),w3=ay.length;function b3(e){return t=>Promise.all(t.map(({animation:n,options:r})=>y3(e,n,r)))}function S3(e){let t=b3(e),n=a1(),r=!0;const i=f=>(p,m)=>{var g;const v=lf(e,m,f==="exit"?(g=e.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(v){const{transition:b,transitionEnd:E,..._}=v;p={...p,..._,...E}}return p};function a(f){t=f(e)}function l(f){const{props:p}=e,m=rC(e.parent)||{},g=[],v=new Set;let b={},E=1/0;for(let k=0;k<w3;k++){const S=x3[k],R=n[S],C=p[S]!==void 0?p[S]:m[S],T=Hl(C),N=S===f?R.isActive:null;N===!1&&(E=k);let O=C===m[S]&&C!==p[S]&&T;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),R.protectedKeys={...b},!R.isActive&&N===null||!C&&!R.prevProp||of(C)||typeof C=="boolean")continue;const B=_3(R.prevProp,C);let M=B||S===f&&R.isActive&&!O&&T||k>E&&T,Y=!1;const G=Array.isArray(C)?C:[C];let K=G.reduce(i(S),{});N===!1&&(K={});const{prevResolvedValues:q={}}=R,Q={...q,...K},Z=re=>{M=!0,v.has(re)&&(Y=!0,v.delete(re)),R.needsAnimating[re]=!0;const V=e.getValue(re);V&&(V.liveStyle=!1)};for(const re in Q){const V=K[re],te=q[re];if(b.hasOwnProperty(re))continue;let $=!1;$m(V)&&$m(te)?$=!gE(V,te):$=V!==te,$?V!=null?Z(re):v.add(re):V!==void 0&&v.has(re)?Z(re):R.protectedKeys[re]=!0}R.prevProp=C,R.prevResolvedValues=K,R.isActive&&(b={...b,...K}),r&&e.blockInitialAnimation&&(M=!1),M&&(!(O&&B)||Y)&&g.push(...G.map(re=>({animation:re,options:{type:S}})))}if(v.size){const k={};v.forEach(S=>{const R=e.getBaseTarget(S),C=e.getValue(S);C&&(C.liveStyle=!0),k[S]=R??null}),g.push({animation:k})}let _=!!g.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(_=!1),r=!1,_?t(g):Promise.resolve()}function u(f,p){var m;if(n[f].isActive===p)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(v=>{var b;return(b=v.animationState)===null||b===void 0?void 0:b.setActive(f,p)}),n[f].isActive=p;const g=l(f);for(const v in n)n[v].protectedKeys={};return g}return{animateChanges:l,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=a1(),r=!0}}}function _3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gE(t,e):!1}function Ci(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function a1(){return{animate:Ci(!0),whileInView:Ci(),whileHover:Ci(),whileTap:Ci(),whileDrag:Ci(),whileFocus:Ci(),exit:Ci()}}class li{constructor(t){this.isMounted=!1,this.node=t}update(){}}class k3 extends li{constructor(t){super(t),t.animationState||(t.animationState=S3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();of(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let E3=0;class C3 extends li{constructor(){super(...arguments),this.id=E3++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const T3={animation:{Feature:k3},exit:{Feature:C3}};function Kl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gc(e){return{point:{x:e.pageX,y:e.pageY}}}const j3=e=>t=>_y(t)&&e(t,gc(t));function Dl(e,t,n,r){return Kl(e,t,j3(n),r)}const l1=(e,t)=>Math.abs(e-t);function R3(e,t){const n=l1(e.x,t.x),r=l1(e.y,t.y);return Math.sqrt(n**2+r**2)}class sC{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=qp(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,b=R3(g.offset,{x:0,y:0})>=3;if(!v&&!b)return;const{point:E}=g,{timestamp:_}=$t;this.history.push({...E,timestamp:_});const{onStart:k,onMove:S}=this.handlers;v||(k&&k(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Yp(v,this.transformPagePoint),lt.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.end();const{onEnd:b,onSessionEnd:E,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=qp(g.type==="pointercancel"?this.lastMoveEventInfo:Yp(v,this.transformPagePoint),this.history);this.startEvent&&b&&b(g,k),E&&E(g,k)},!_y(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const l=gc(t),u=Yp(l,this.transformPagePoint),{point:f}=u,{timestamp:p}=$t;this.history=[{...f,timestamp:p}];const{onSessionStart:m}=n;m&&m(t,qp(u,this.history)),this.removeListeners=mc(Dl(this.contextWindow,"pointermove",this.handlePointerMove),Dl(this.contextWindow,"pointerup",this.handlePointerUp),Dl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ti(this.updatePoint)}}function Yp(e,t){return t?{point:t(e.point)}:e}function c1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qp({point:e},t){return{point:e,delta:c1(e,iC(t)),offset:c1(e,N3(t)),velocity:P3(t,.1)}}function N3(e){return e[0]}function iC(e){return e[e.length-1]}function P3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=iC(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ts(t)));)n--;if(!r)return{x:0,y:0};const a=ns(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const l={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const oC=1e-4,A3=1-oC,O3=1+oC,aC=.01,M3=0-aC,D3=0+aC;function Pn(e){return e.max-e.min}function L3(e,t,n){return Math.abs(e-t)<=n}function u1(e,t,n,r=.5){e.origin=r,e.originPoint=yt(t.min,t.max,e.origin),e.scale=Pn(n)/Pn(t),e.translate=yt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=A3&&e.scale<=O3||isNaN(e.scale))&&(e.scale=1),(e.translate>=M3&&e.translate<=D3||isNaN(e.translate))&&(e.translate=0)}function Ll(e,t,n,r){u1(e.x,t.x,n.x,r?r.originX:void 0),u1(e.y,t.y,n.y,r?r.originY:void 0)}function d1(e,t,n){e.min=n.min+t.min,e.max=e.min+Pn(t)}function I3(e,t,n){d1(e.x,t.x,n.x),d1(e.y,t.y,n.y)}function f1(e,t,n){e.min=t.min-n.min,e.max=e.min+Pn(t)}function Il(e,t,n){f1(e.x,t.x,n.x),f1(e.y,t.y,n.y)}function F3(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?yt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?yt(n,e,r.max):Math.min(e,n)),e}function h1(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function B3(e,{top:t,left:n,bottom:r,right:i}){return{x:h1(e.x,n,i),y:h1(e.y,t,r)}}function p1(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function U3(e,t){return{x:p1(e.x,t.x),y:p1(e.y,t.y)}}function V3(e,t){let n=.5;const r=Pn(e),i=Pn(t);return i>r?n=pa(t.min,t.max-r,e.min):r>i&&(n=pa(e.min,e.max-i,t.min)),is(0,1,n)}function z3(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const tg=.35;function W3(e=tg){return e===!1?e=0:e===!0&&(e=tg),{x:m1(e,"left","right"),y:m1(e,"top","bottom")}}function m1(e,t,n){return{min:g1(e,t),max:g1(e,n)}}function g1(e,t){return typeof e=="number"?e:e[t]||0}const y1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vo=()=>({x:y1(),y:y1()}),v1=()=>({min:0,max:0}),kt=()=>({x:v1(),y:v1()});function Un(e){return[e("x"),e("y")]}function lC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function $3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function H3(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Gp(e){return e===void 0||e===1}function ng({scale:e,scaleX:t,scaleY:n}){return!Gp(e)||!Gp(t)||!Gp(n)}function Ri(e){return ng(e)||cC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cC(e){return x1(e.x)||x1(e.y)}function x1(e){return e&&e!=="0%"}function Dd(e,t,n){const r=e-n,i=t*r;return n+i}function w1(e,t,n,r,i){return i!==void 0&&(e=Dd(e,i,r)),Dd(e,n,r)+t}function rg(e,t=0,n=1,r,i){e.min=w1(e.min,t,n,r,i),e.max=w1(e.max,t,n,r,i)}function uC(e,{x:t,y:n}){rg(e.x,t.translate,t.scale,t.originPoint),rg(e.y,n.translate,n.scale,n.originPoint)}const b1=.999999999999,S1=1.0000000000001;function Y3(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,l;for(let u=0;u<i;u++){a=n[u],l=a.projectionDelta;const{visualElement:f}=a.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Wo(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,uC(e,l)),r&&Ri(a.latestValues)&&Wo(e,a.latestValues))}t.x<S1&&t.x>b1&&(t.x=1),t.y<S1&&t.y>b1&&(t.y=1)}function zo(e,t){e.min=e.min+t,e.max=e.max+t}function _1(e,t,n,r,i=.5){const a=yt(e.min,e.max,i);rg(e,t,n,a,r)}function Wo(e,t){_1(e.x,t.x,t.scaleX,t.scale,t.originX),_1(e.y,t.y,t.scaleY,t.scale,t.originY)}function dC(e,t){return lC(H3(e.getBoundingClientRect(),t))}function q3(e,t,n){const r=dC(e,n),{scroll:i}=t;return i&&(zo(r.x,i.offset.x),zo(r.y,i.offset.y)),r}const fC=({current:e})=>e?e.ownerDocument.defaultView:null,G3=new WeakMap;class K3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=kt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gc(m).point)},a=(m,g)=>{const{drag:v,dragPropagation:b,onDragStart:E}=this.getProps();if(v&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=VI(v),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Un(k=>{let S=this.getAxisMotionValue(k).get()||0;if(Tr.test(S)){const{projection:R}=this.visualElement;if(R&&R.layout){const C=R.layout.layoutBox[k];C&&(S=Pn(C)*(parseFloat(S)/100))}}this.originPoint[k]=S}),E&&lt.postRender(()=>E(m,g)),qm(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},l=(m,g)=>{const{dragPropagation:v,dragDirectionLock:b,onDirectionLock:E,onDrag:_}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:k}=g;if(b&&this.currentDirection===null){this.currentDirection=Q3(k),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",g.point,k),this.updateAxis("y",g.point,k),this.visualElement.render(),_&&_(m,g)},u=(m,g)=>this.stop(m,g),f=()=>Un(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new sC(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:u,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:fC(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&lt.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!qu(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=F3(l,this.constraints[t],this.elastic[t])),a.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),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,a=this.constraints;n&&Bo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=B3(i.layoutBox,n):this.constraints=!1,this.elastic=W3(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Un(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=z3(i.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bo(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=q3(r,i.root,this.visualElement.getTransformPagePoint());let l=U3(i.layout.layoutBox,a);if(n){const u=n($3(l));this.hasMutatedConstraints=!!u,u&&(l=lC(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},p=Un(m=>{if(!qu(m,n,this.currentDirection))return;let g=f&&f[m]||{};l&&(g={min:0,max:0});const v=i?200:1e6,b=i?40:1e7,E={type:"inertia",velocity:r?t[m]:0,bounceStiffness:v,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...g};return this.startAxisValueAnimation(m,E)});return Promise.all(p).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return qm(this.visualElement,t),r.start(Dy(t,r,0,n,this.visualElement,!1))}stopAnimation(){Un(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Un(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Un(n=>{const{drag:r}=this.getProps();if(!qu(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:u}=i.layout.layoutBox[n];a.set(t[n]-yt(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bo(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Un(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const f=u.get();i[l]=V3({min:f,max:f},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Un(l=>{if(!qu(l,t,null))return;const u=this.getAxisMotionValue(l),{min:f,max:p}=this.constraints[l];u.set(yt(f,p,i[l]))})}addListeners(){if(!this.visualElement.current)return;G3.set(this.visualElement,this);const t=this.visualElement.current,n=Dl(t,"pointerdown",f=>{const{drag:p,dragListener:m=!0}=this.getProps();p&&m&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();Bo(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),lt.read(r);const l=Kl(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(Un(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=f[m].translate,g.set(g.get()+f[m].translate))}),this.visualElement.render())}));return()=>{l(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:l=tg,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:l,dragMomentum:u}}}function qu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Q3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class X3 extends li{constructor(t){super(t),this.removeGroupControls=Rn,this.removeListeners=Rn,this.controls=new K3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rn}unmount(){this.removeGroupControls(),this.removeListeners()}}const k1=e=>(t,n)=>{e&&lt.postRender(()=>e(t,n))};class Z3 extends li{constructor(){super(...arguments),this.removePointerDownListener=Rn}onPointerDown(t){this.session=new sC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:k1(t),onStart:k1(n),onMove:r,onEnd:(a,l)=>{delete this.session,i&&lt.postRender(()=>i(a,l))}}}mount(){this.removePointerDownListener=Dl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const md={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function E1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Pe.test(e))e=parseFloat(e);else return e;const n=E1(e,t.target.x),r=E1(e,t.target.y);return`${n}% ${r}%`}},J3={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ni.parse(e);if(i.length>5)return r;const a=ni.createTransformer(e),l=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;i[0+l]/=u,i[1+l]/=f;const p=yt(u,f,.5);return typeof i[2+l]=="number"&&(i[2+l]/=p),typeof i[3+l]=="number"&&(i[3+l]/=p),a(i)}};class e6 extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;wI(t6),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),md.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,l=r.projection;return l&&(l.isPresent=a,i||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?l.promote():l.relegate()||lt.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),uy.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function hC(e){const[t,n]=Kk(),r=w.useContext(ny);return d.jsx(e6,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(rE),isPresent:t,safeToRemove:n})}const t6={borderRadius:{...bl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bl,borderTopRightRadius:bl,borderBottomLeftRadius:bl,borderBottomRightRadius:bl,boxShadow:J3};function n6(e,t,n){const r=nn(e)?e:ql(e);return r.start(Dy("",r,t,n)),r.animation}function r6(e){return e instanceof SVGElement&&e.tagName!=="svg"}const s6=(e,t)=>e.depth-t.depth;class i6{constructor(){this.children=[],this.isDirty=!1}add(t){ky(this.children,t),this.isDirty=!0}remove(t){Ey(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(s6),this.isDirty=!1,this.children.forEach(t)}}function o6(e,t){const n=jr.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(ti(r),e(a-t))};return lt.read(r,!0),()=>ti(r)}const pC=["TopLeft","TopRight","BottomLeft","BottomRight"],a6=pC.length,C1=e=>typeof e=="string"?parseFloat(e):e,T1=e=>typeof e=="number"||Pe.test(e);function l6(e,t,n,r,i,a){i?(e.opacity=yt(0,n.opacity!==void 0?n.opacity:1,c6(r)),e.opacityExit=yt(t.opacity!==void 0?t.opacity:1,0,u6(r))):a&&(e.opacity=yt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<a6;l++){const u=`border${pC[l]}Radius`;let f=j1(t,u),p=j1(n,u);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||T1(f)===T1(p)?(e[u]=Math.max(yt(C1(f),C1(p),r),0),(Tr.test(p)||Tr.test(f))&&(e[u]+="%")):e[u]=p}(t.rotate||n.rotate)&&(e.rotate=yt(t.rotate||0,n.rotate||0,r))}function j1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const c6=mC(0,.5,OE),u6=mC(.5,.95,Rn);function mC(e,t,n){return r=>r<e?0:r>t?1:n(pa(e,t,r))}function R1(e,t){e.min=t.min,e.max=t.max}function Bn(e,t){R1(e.x,t.x),R1(e.y,t.y)}function N1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function P1(e,t,n,r,i){return e-=t,e=Dd(e,1/n,r),i!==void 0&&(e=Dd(e,1/i,r)),e}function d6(e,t=0,n=1,r=.5,i,a=e,l=e){if(Tr.test(t)&&(t=parseFloat(t),t=yt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=yt(a.min,a.max,r);e===a&&(u-=t),e.min=P1(e.min,t,n,u,i),e.max=P1(e.max,t,n,u,i)}function A1(e,t,[n,r,i],a,l){d6(e,t[n],t[r],t[i],t.scale,a,l)}const f6=["x","scaleX","originX"],h6=["y","scaleY","originY"];function O1(e,t,n,r){A1(e.x,t,f6,n?n.x:void 0,r?r.x:void 0),A1(e.y,t,h6,n?n.y:void 0,r?r.y:void 0)}function M1(e){return e.translate===0&&e.scale===1}function gC(e){return M1(e.x)&&M1(e.y)}function D1(e,t){return e.min===t.min&&e.max===t.max}function p6(e,t){return D1(e.x,t.x)&&D1(e.y,t.y)}function L1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function yC(e,t){return L1(e.x,t.x)&&L1(e.y,t.y)}function I1(e){return Pn(e.x)/Pn(e.y)}function F1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class m6{constructor(){this.members=[]}add(t){ky(this.members,t),t.scheduleRender()}remove(t){if(Ey(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function g6(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((i||a||l)&&(r=`translate3d(${i}px, ${a}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:p,rotate:m,rotateX:g,rotateY:v,skewX:b,skewY:E}=n;p&&(r=`perspective(${p}px) ${r}`),m&&(r+=`rotate(${m}deg) `),g&&(r+=`rotateX(${g}deg) `),v&&(r+=`rotateY(${v}deg) `),b&&(r+=`skewX(${b}deg) `),E&&(r+=`skewY(${E}deg) `)}const u=e.x.scale*t.x,f=e.y.scale*t.y;return(u!==1||f!==1)&&(r+=`scale(${u}, ${f})`),r||"none"}const Ni={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Nl=typeof window<"u"&&window.MotionDebug!==void 0,Kp=["","X","Y","Z"],y6={visibility:"hidden"},B1=1e3;let v6=0;function Qp(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function vC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=CE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",lt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&vC(r)}function xC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},u=t==null?void 0:t()){this.id=v6++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Nl&&(Ni.totalNodes=Ni.resolvedTargetDeltas=Ni.recalculatedProjection=0),this.nodes.forEach(b6),this.nodes.forEach(C6),this.nodes.forEach(T6),this.nodes.forEach(S6),Nl&&window.MotionDebug.record(Ni)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new i6)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Cy),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const f=this.eventHandlers.get(l);f&&f.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=r6(l),this.instance=l;const{layoutId:f,layout:p,visualElement:m}=this.options;if(m&&!m.current&&m.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(p||f)&&(this.isLayoutDirty=!0),e){let g;const v=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=o6(v,250),md.hasAnimatedSinceResize&&(md.hasAnimatedSinceResize=!1,this.nodes.forEach(V1))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeTargetChanged:b,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||m.getDefaultTransition()||A6,{onLayoutAnimationStart:k,onLayoutAnimationComplete:S}=m.getProps(),R=!this.targetLayout||!yC(this.targetLayout,E)||b,C=!v&&b;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||v&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,C);const T={...wy(_,"layout"),onPlay:k,onComplete:S};(m.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else v||V1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ti(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(j6),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&vC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const g=this.path[m];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:u,layout:f}=this.options;if(u===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(U1);return}this.isUpdating||this.nodes.forEach(k6),this.isUpdating=!1,this.nodes.forEach(E6),this.nodes.forEach(x6),this.nodes.forEach(w6),this.clearAllSnapshots();const u=jr.now();$t.delta=is(0,1e3/60,u-$t.timestamp),$t.timestamp=u,$t.isProcessing=!0,Up.update.process($t),Up.preRender.process($t),Up.render.process($t),$t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,uy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_6),this.sharedNodes.forEach(R6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,lt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){lt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=kt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!gC(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,m=p!==this.prevTransformTemplateValue;l&&(u||Ri(this.latestValues)||m)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return l&&(f=this.removeTransform(f)),O6(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:u}=this.options;if(!u)return kt();const f=u.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(M6))){const{scroll:m}=this.root;m&&(zo(f.x,m.offset.x),zo(f.y,m.offset.y))}return f}removeElementScroll(l){var u;const f=kt();if(Bn(f,l),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return f;for(let p=0;p<this.path.length;p++){const m=this.path[p],{scroll:g,options:v}=m;m!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&Bn(f,l),zo(f.x,g.offset.x),zo(f.y,g.offset.y))}return f}applyTransform(l,u=!1){const f=kt();Bn(f,l);for(let p=0;p<this.path.length;p++){const m=this.path[p];!u&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Wo(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Ri(m.latestValues)&&Wo(f,m.latestValues)}return Ri(this.latestValues)&&Wo(f,this.latestValues),f}removeTransform(l){const u=kt();Bn(u,l);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!Ri(p.latestValues))continue;ng(p.latestValues)&&p.updateSnapshot();const m=kt(),g=p.measurePageBox();Bn(m,g),O1(u,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,m)}return Ri(this.latestValues)&&O1(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==$t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var u;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(l||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!(!this.layout||!(g||v))){if(this.resolvedRelativeTargetAt=$t.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Il(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Bn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=kt(),this.targetWithTransforms=kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),I3(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Bn(this.target,this.layout.layoutBox),uC(this.target,this.targetDelta)):Bn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Il(this.relativeTargetOrigin,this.target,b.target),Bn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Nl&&Ni.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ng(this.parent.latestValues)||cC(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var l;const u=this.getLead(),f=!!this.resumingFrom||this!==u;let p=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===$t.timestamp&&(p=!1),p)return;const{layout:m,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||g))return;Bn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;Y3(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=kt());const{target:E}=u;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(N1(this.prevProjectionDelta.x,this.projectionDelta.x),N1(this.prevProjectionDelta.y,this.projectionDelta.y)),Ll(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!F1(this.projectionDelta.x,this.prevProjectionDelta.x)||!F1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E)),Nl&&Ni.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vo(),this.projectionDelta=Vo(),this.projectionDeltaWithTransform=Vo()}setAnimationOrigin(l,u=!1){const f=this.snapshot,p=f?f.latestValues:{},m={...this.latestValues},g=Vo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const v=kt(),b=f?f.source:void 0,E=this.layout?this.layout.source:void 0,_=b!==E,k=this.getStack(),S=!k||k.members.length<=1,R=!!(_&&!S&&this.options.crossfade===!0&&!this.path.some(P6));this.animationProgress=0;let C;this.mixTargetDelta=T=>{const N=T/1e3;z1(g.x,l.x,N),z1(g.y,l.y,N),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Il(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),N6(this.relativeTarget,this.relativeTargetOrigin,v,N),C&&p6(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=kt()),Bn(C,this.relativeTarget)),_&&(this.animationValues=m,l6(m,p,this.latestValues,N,R,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ti(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=lt.update(()=>{md.hasAnimatedSinceResize=!0,this.currentAnimation=n6(0,B1,{...l,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(B1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:f,layout:p,latestValues:m}=l;if(!(!u||!f||!p)){if(this!==l&&this.layout&&p&&wC(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||kt();const g=Pn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+g;const v=Pn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+v}Bn(u,f),Wo(u,m),Ll(this.projectionDeltaWithTransform,this.layoutCorrected,u,m)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new m6),this.sharedNodes.get(l).add(u);const p=u.options.initialPromotionConfig;u.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:u}=this.options;return u?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:u}=this.options;return u?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(u=!0),!u)return;const p={};f.z&&Qp("z",l,p,this.animationValues);for(let m=0;m<Kp.length;m++)Qp(`rotate${Kp[m]}`,l,p,this.animationValues),Qp(`skew${Kp[m]}`,l,p,this.animationValues);l.render();for(const m in p)l.setStaticValue(m,p[m]),this.animationValues&&(this.animationValues[m]=p[m]);l.scheduleRender()}getProjectionStyles(l){var u,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return y6;const p={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=hd(l==null?void 0:l.pointerEvents)||"",p.transform=m?m(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const _={};return this.options.layoutId&&(_.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,_.pointerEvents=hd(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Ri(this.latestValues)&&(_.transform=m?m({},""):"none",this.hasProjected=!1),_}const v=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=g6(this.projectionDeltaWithTransform,this.treeScale,v),m&&(p.transform=m(v,p.transform));const{x:b,y:E}=this.projectionDelta;p.transformOrigin=`${b.origin*100}% ${E.origin*100}% 0`,g.animationValues?p.opacity=g===this?(f=(u=v.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:p.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const _ in Nd){if(v[_]===void 0)continue;const{correct:k,applyTo:S}=Nd[_],R=p.transform==="none"?v[_]:k(v[_],g);if(S){const C=S.length;for(let T=0;T<C;T++)p[S[T]]=R}else p[_]=R}return this.options.layoutId&&(p.pointerEvents=g===this?hd(l==null?void 0:l.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var u;return(u=l.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(U1),this.root.sharedNodes.clear()}}}function x6(e){e.updateLayout()}function w6(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,l=n.source!==e.layout.source;a==="size"?Un(g=>{const v=l?n.measuredBox[g]:n.layoutBox[g],b=Pn(v);v.min=r[g].min,v.max=v.min+b}):wC(a,n.layoutBox,r)&&Un(g=>{const v=l?n.measuredBox[g]:n.layoutBox[g],b=Pn(r[g]);v.max=v.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+b)});const u=Vo();Ll(u,r,n.layoutBox);const f=Vo();l?Ll(f,e.applyTransform(i,!0),n.measuredBox):Ll(f,r,n.layoutBox);const p=!gC(u);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:b}=g;if(v&&b){const E=kt();Il(E,n.layoutBox,v.layoutBox);const _=kt();Il(_,r,b.layoutBox),yC(E,_)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=_,e.relativeTargetOrigin=E,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:u,hasLayoutChanged:p,hasRelativeTargetChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function b6(e){Nl&&Ni.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function S6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _6(e){e.clearSnapshot()}function U1(e){e.clearMeasurements()}function k6(e){e.isLayoutDirty=!1}function E6(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function V1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function C6(e){e.resolveTargetDelta()}function T6(e){e.calcProjection()}
vendor: 5,738 bytes, line 350
350function j6(e){e.resetSkewAndRotation()}function R6(e){e.removeLeadSnapshot()}function z1(e,t,n){e.translate=yt(t.translate,0,n),e.scale=yt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function W1(e,t,n,r){e.min=yt(t.min,n.min,r),e.max=yt(t.max,n.max,r)}function N6(e,t,n,r){W1(e.x,t.x,n.x,r),W1(e.y,t.y,n.y,r)}function P6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const A6={duration:.45,ease:[.4,0,.1,1]},$1=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),H1=$1("applewebkit/")&&!$1("chrome/")?Math.round:Rn;function Y1(e){e.min=H1(e.min),e.max=H1(e.max)}function O6(e){Y1(e.x),Y1(e.y)}function wC(e,t,n){return e==="position"||e==="preserve-aspect"&&!L3(I1(t),I1(n),.2)}function M6(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const D6=xC({attachResizeListener:(e,t)=>Kl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xp={current:void 0},bC=xC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xp.current){const e=new D6({});e.mount(window),e.setOptions({layoutScroll:!0}),Xp.current=e}return Xp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),L6={pan:{Feature:Z3},drag:{Feature:X3,ProjectionNode:bC,MeasureLayout:hC}};function q1(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&lt.postRender(()=>a(t,gc(t)))}class I6 extends li{mount(){const{current:t}=this.node;t&&(this.unmount=LI(t,n=>(q1(this.node,n,"Start"),r=>q1(this.node,r,"End"))))}unmount(){}}class F6 extends li{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=mc(Kl(this.node.current,"focus",()=>this.onFocus()),Kl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function G1(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&lt.postRender(()=>a(t,gc(t)))}class B6 extends li{mount(){const{current:t}=this.node;t&&(this.unmount=UI(t,n=>(G1(this.node,n,"Start"),(r,{success:i})=>G1(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const sg=new WeakMap,Zp=new WeakMap,U6=e=>{const t=sg.get(e.target);t&&t(e)},V6=e=>{e.forEach(U6)};function z6({root:e,...t}){const n=e||document;Zp.has(n)||Zp.set(n,{});const r=Zp.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(V6,{root:e,...t})),r[i]}function W6(e,t,n){const r=z6(t);return sg.set(e,n),r.observe(e),()=>{sg.delete(e),r.unobserve(e)}}const $6={some:0,all:1};class H6 extends li{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:$6[i]},u=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,a&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),v=p?m:g;v&&v(f)};return W6(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Y6(t,n))&&this.startObserver()}unmount(){}}function Y6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const q6={inView:{Feature:H6},tap:{Feature:B6},focus:{Feature:F6},hover:{Feature:I6}},G6={layout:{ProjectionNode:bC,MeasureLayout:hC}},ig={current:null},SC={current:!1};function K6(){if(SC.current=!0,!!iy)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ig.current=e.matches;e.addListener(t),t()}else ig.current=!1}const Q6=[...qE,tn,ni],X6=e=>Q6.find(YE(e)),K1=new WeakMap;function Z6(e,t,n){for(const r in t){const i=t[r],a=n[r];if(nn(i))e.addValue(r,i);else if(nn(a))e.addValue(r,ql(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(r);e.addValue(r,ql(l!==void 0?l:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Q1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class J6{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ay,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=jr.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,lt.render(this.render,!1,!0))};
vendor: 6,198 bytes, line 350
350const{latestValues:f,renderState:p,onUpdate:m}=l;this.onUpdate=m,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=af(n),this.isVariantNode=tE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in v){const E=v[b];f[b]!==void 0&&nn(E)&&E.set(f[b],!1)}}mount(t){this.current=t,K1.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),SC.current||K6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ig.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){K1.delete(this.current),this.projection&&this.projection.unmount(),ti(this.notifyUpdate),ti(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=so.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&lt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ma){const n=ma[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Q1.length;r++){const i=Q1[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,l=t[a];l&&(this.propEventSubscriptions[i]=this.on(i,l))}this.prevMotionValues=Z6(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ql(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;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);return i!=null&&(typeof i=="string"&&($E(i)||DE(i))?i=parseFloat(i):!X6(i)&&ni.test(n)&&(i=VE(t,n)),this.setBaseTarget(t,nn(i)?i.get():i)),nn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const l=fy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(i=l[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!nn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Cy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _C extends J6{constructor(){super(...arguments),this.KeyframeResolver=GE}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;nn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function eB(e){return window.getComputedStyle(e)}class tB extends _C{constructor(){super(...arguments),this.type="html",this.renderInstance=uE}readValueFromInstance(t,n){if(so.has(n)){const r=Py(n);return r&&r.default||0}else{const r=eB(t),i=(aE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return dC(t,n)}
350build(t,n,r){my(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return xy(t,n,r)}}class nB extends _C{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=kt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(so.has(n)){const r=Py(n);return r&&r.default||0}return n=dE.has(n)?n:cy(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return pE(t,n,r)}build(t,n,r){gy(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){fE(t,n,r,i)}mount(t){this.isSVGTag=vy(t.tagName),super.mount(t)}}const rB=(e,t)=>dy(e)?new nB(t):new tB(t,{allowProjection:e!==w.Fragment}),sB=RI({...T3,...q6,...L6,...G6},rB),et=$4(sB),X1={sell:{label:"FOR SALE",bg:"#22C55E",color:"#fff"},trade:{label:"TRADE",bg:"#6366F1",color:"#fff"},both:{label:"SALE+TRADE",bg:"#F97316",color:"#fff"}};function Zi({listing:e,index:t=0,distanceMiles:n}){var i,a;const r=X1[e.listing_type]||X1.sell;return d.jsx(et.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:Math.min(t*.04,.35)},children:d.jsx(Ue,{to:`/listing/${e.id}`,style:{textDecoration:"none",display:"block"},children:d.jsx(et.div,{whileHover:{y:-6,boxShadow:"0 20px 48px rgba(0,0,0,0.13)"},transition:{type:"spring",stiffness:350,damping:22},style:{borderRadius:20,overflow:"hidden",background:"#fff",boxShadow:"0 2px 14px rgba(0,0,0,0.07)",cursor:"pointer"},children:d.jsxs("div",{style:{position:"relative",paddingTop:"110%",background:"#F7F3EF",overflow:"hidden"},children:[(i=e.photos)!=null&&i[0]?d.jsx("img",{src:e.photos[0],alt:e.title,loading:"lazy",style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",transition:"transform 0.5s ease"},onMouseEnter:l=>l.currentTarget.style.transform="scale(1.08)",onMouseLeave:l=>l.currentTarget.style.transform="scale(1)"}):d.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",fontSize:44,color:"#ddd"},children:"📦"}),d.jsx("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.05) 50%, transparent 70%)"}}),d.jsx("div",{style:{position:"absolute",top:10,left:10,padding:"4px 10px",borderRadius:99,fontSize:9,fontWeight:900,letterSpacing:"0.06em",background:r.bg,color:r.color},children:r.label}),e.price>0&&d.jsxs("div",{style:{position:"absolute",top:10,right:10,padding:"5px 11px",borderRadius:99,fontSize:12,fontWeight:900,background:"rgba(0,0,0,0.55)",backdropFilter:"blur(8px)",color:"#fff",display:"flex",alignItems:"center",gap:2},children:[d.jsx(mm,{style:{width:10,height:10}}),e.price]}),d.jsxs("div",{style:{position:"absolute",bottom:0,left:0,right:0,padding:"12px"},children:[d.jsx("p",{style:{color:"#fff",fontWeight:800,fontSize:13,lineHeight:1.3,margin:"0 0 6px",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.title}),d.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4,color:"rgba(255,255,255,0.6)",fontSize:11,fontWeight:600},children:[d.jsx(Nr,{style:{width:10,height:10}}),n!==void 0?n<1?"< 1 mi":`${Math.round(n)} mi`:e.location]}),((a=e.trade_for)==null?void 0:a.length)>0&&d.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3,color:"#00D9C5",fontSize:10,fontWeight:700},children:[d.jsx(Yn,{style:{width:10,height:10}})," Trade"]})]})]})]})})})})}const Jp="nlni_user_location";function Ly(){const[e,t]=w.useState(()=>{try{const m=localStorage.getItem(Jp);return m?JSON.parse(m):null}catch{return null}}),[n,r]=w.useState(!1),[i,a]=w.useState(null),l=m=>{t(m),m?localStorage.setItem(Jp,JSON.stringify(m)):localStorage.removeItem(Jp)};return{userLocation:e,locating:n,locError:i,detectLocation:()=>{if(!navigator.geolocation){a("Geolocation not supported by your browser.");return}r(!0),a(null),navigator.geolocation.getCurrentPosition(m=>{const g={lat:m.coords.latitude,lng:m.coords.longitude,label:"Your location",type:"geo"};l(g),r(!1)},()=>{a("Location access denied."),r(!1)},{timeout:8e3})},setManualLocation:async m=>{var g;if(m.trim()){r(!0),a(null);try{const b=await(await fetch(`https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(m)}&countrycodes=us&format=json&limit=1`,{headers:{"Accept-Language":"en"}})).json();if(b&&b[0]){const E={lat:parseFloat(b[0].lat),lng:parseFloat(b[0].lon),label:(g=b[0].display_name)==null?void 0:g.split(",").slice(0,2).join(","),type:"manual"};l(E)}else a("Location not found. Try a city name or zip code.")}catch{a("Could not look up location.")}r(!1)}},clearLocation:()=>l(null)}}function kC(e,t,n,r){const a=(n-e)*Math.PI/180,l=(r-t)*Math.PI/180,u=Math.sin(a/2)**2+Math.cos(e*Math.PI/180)*Math.cos(n*Math.PI/180)*Math.sin(l/2)**2;return 3958.8*2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}function og({className:e=""}){const{userLocation:t,locating:n,locError:r,detectLocation:i,setManualLocation:a,clearLocation:l}=Ly(),[u,f]=w.useState(!1),[p,m]=w.useState(""),g=v=>{v.preventDefault(),p.trim()&&(a(p.trim()),f(!1),m(""))};return t&&!u?d.jsx("div",{className:`flex items-center gap-2 text-sm ${e}`,children:d.jsxs("div",{className:"flex items-center gap-1.5 bg-secondary/10 border border-secondary/20 text-secondary px-3 py-1.5 rounded-full font-medium",children:[d.jsx(Nr,{className:"w-3.5 h-3.5"}),d.jsx("span",{className:"truncate max-w-[180px]",children:t.label}),d.jsx("button",{onClick:()=>{f(!0)},className:"text-secondary/60 hover:text-secondary ml-1",children:d.jsx(fa,{className:"w-3 h-3"})}),d.jsx("button",{onClick:l,className:"text-secondary/60 hover:text-secondary",children:d.jsx(un,{className:"w-3 h-3"})})]})}):d.jsxs("div",{className:`flex items-center gap-2 flex-wrap ${e}`,children:[u?d.jsxs("form",{onSubmit:g,className:"flex items-center gap-2",children:[d.jsx("input",{autoFocus:!0,t
350ype:"text",placeholder:"City, state or zip code…",value:p,onChange:v=>m(v.target.value),className:"px-3 py-1.5 text-sm rounded-xl border border-border bg-background focus:outline-none focus:ring-2 focus:ring-secondary/40 w-52"}),d.jsx("button",{type:"submit",className:"px-3 py-1.5 bg-secondary text-secondary-foreground text-sm rounded-xl font-semibold",children:"Set"}),d.jsx("button",{type:"button",onClick:()=>f(!1),className:"text-muted-foreground hover:text-foreground",children:d.jsx(un,{className:"w-4 h-4"})})]}):d.jsxs(d.Fragment,{children:[d.jsxs("button",{onClick:i,disabled:n,className:"flex items-center gap-1.5 text-sm font-medium text-secondary hover:text-secondary/80 transition-colors",children:[n?d.jsx(o_,{className:"w-3.5 h-3.5 animate-spin"}):d.jsx(iP,{className:"w-3.5 h-3.5"}),n?"Detecting…":"Find items near me"]}),d.jsx("span",{className:"text-muted-foreground/40",children:"or"}),d.jsxs("button",{onClick:()=>f(!0),className:"text-sm text-muted-foreground hover:text-foreground transition-colors flex items-center gap-1",children:[d.jsx(Nr,{className:"w-3.5 h-3.5"}),"Enter location"]})]}),r&&d.jsx("p",{className:"text-xs text-destructive w-full",children:r})]})}const iB=w.lazy(()=>Gk(()=>import("./MapView-BXSMDvG0.js"),__vite__mapDeps([0,1]))),oB=[{e:"💻",n:"Electronics",c:"#6366F1",bg:"#EEF2FF"}
350,{e:"🛋️",n:"Furniture",c:"#F97316",bg:"#FFF7ED"},{e:"👟",n:"Clothing",c:"#EC4899",bg:"#FDF2F8"},{e:"⚽",n:"Sports",c:"#22C55E",bg:"#F0FDF4"},{e:"📚",n:"Books",c:"#EAB308",bg:"#FEFCE8"},{e:"🌿",n:"Home & Garden",c:"#14B8A6",bg:"#F0FDFA"},{e:"🎮",n:"Toys",c:"#A855F7",bg:"#FAF5FF"},{e:"🔧",n:"Tools",c:"#64748B",bg:"#F8FAFC"}],aB=[{n:"01",icon:"📸",title:"Post with Photos",desc:"Snap a few photos. Our AI helps write the title & description for you. Live in under 90 seconds.",color:"#FF6B35"},{n:"02",icon:"🤲",title:"Get Smart Matches",desc:"Browse what others have, or let our matching engine find people who want what you have.",color:"#6366F1"},{n:"03",icon:"🤝",title:"Send Clean Offers",desc:"Propose a trade, add cash, or just buy. Structured offers keep things clear and fair.",color:"#00D9C5"},{n:"04",icon:"📦",title:"Meet or Ship",desc:"Meet locally for a handoff or arrange shipping. Leave a review to build trust.",color:"#FFB800"}];function lB(){const e=wa(),[t,n]=w.useState(""),[r,i]=w.useState([]),[a,l]=w.useState([]),[u,f]=w.useState(!0),[p,m]=w.useState("list"),{userLocation:g}=Ly();return w.useEffect(()=>{ve.entities.Listing.filter({status:"active"},"-created_date",12).then(v=>{i(v),l(v)}).catch(()=>{}).finally(()=>f(!1))},[]),w.useEffect(()=>{if(!g||r.length===0){l(r);return}const v={};(async()=>{const b=[];for(const E of r){if(!E.location){b.push({...E});continue}if(!v[E.location]){try{const S=await(await fetch(`https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(E.location)}&countrycodes=us&format=json&limit=1`,{headers:{"Accept-Language":"en"}})).json();v[E.location]=S[0]?{lat:+S[0].lat,lng:+S[0].lon}:null}catch{v[E.location]=null}await new Promise(k=>setTimeout(k,80))}const _=v[E.location];b.push({...E,distanceMiles:_?kC(g.lat,g.lng,_.lat,_.lng):void 0})}l(b.sort((E,_)=>(E.distanceMiles??9e9)-(_.distanceMiles??9e9)))})()},[g,r]),d.jsxs("div",{style:{fontFamily:"'Inter',system-ui,sans-serif",background:"#F7F3EF"},children:[d.jsxs("section",{style:{background:"#1A1A2E",position:"relative",overflow:"hidden"},children:[d.jsx("div",{style:{position:"absolute",top:-100,right:-100,width:500,height:500,borderRadius:"50%",background:"radial-gradient(circle, rgba(0,217,197,0.15) 0%, transparent 65%)",pointerEvents:"none"}}),d.jsx("div",{style:{position:"absolute",bottom:-80,left:-60,width:400,height:400,borderRadius:"50%",background:"radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 65%)",pointerEvents:"none"}}),d.jsxs("div",{style:{maxWidth:1200,margin:"0 auto",padding:"80px 32px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:60,alignItems:"center"},className:"nlni-hero",children:[d.jsx("style",{children:"@media(max-width:900px){.nlni-hero{grid-template-columns:1fr!important}.nlni-hero-right{display:none!important}}"}),d.jsxs(et.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},children:[d.jsx("div",{style:{display:"inline-flex",alignItems:"center",gap:8,background:"#FF6B35",borderRadius:99,padding:"6px 16px",fontSize:11,fontWeight:800,color:"#fff",letterSpacing:"0.1em",textTransform:"uppercase",marginBottom:24},children:"🌎 Nationwide · Free Forever"}),d.jsxs("h1",{style:{fontSize:"clamp(2.6rem,4.5vw,4rem)",fontWeight:900,lineHeight:1.05,color:"#fff",margin:"0 0 20px",letterSpacing:"-0.03em"},children:["Sell what you",d.jsx("br",{}),d.jsx("span",{style:{color:"#00D9C5"},children:"don't need."}),d.jsx("br",{}),"Trade for what",d.jsx("br",{}),d.jsx("span",{style:{color:"#FFB800"},children:"you do."})]}),d.jsx("p",{style:{fontSize:17,color:"rgba(255,255,255,0.5)",lineHeight:1.65,marginBottom:32,maxWidth:420},children:"AI matching finds buyers and traders for what you have. Snap a photo to search for what you want. Send clean, structured trade offers. Zero fees, all 50 states — sell, trade, or both."}),d.jsx("form",{onSubmit:v=>{v.preventDefault(),e(t.trim()?`/browse?search=${encodeURIComponent(t)}`:"/browse")},children:d.jsxs("div",{style:{display:"flex",alignItems:"center",background:"#fff",borderRadius:16,padding:"6px",marginBottom:24,boxShadow:"0 4px 24px rgba(0,0,0,0.2)"},children:[d.jsx(fa,{style:{width:16,height:16,color:"#aaa",marginLeft:10,flexShrink:0}}),d.jsx("input",{value:t,onChange:v=>n(v.target.value),placeholder:"Search bikes, sofas, cameras…",style:{flex:1,border:"none",outline:"none",fontSize:15,color:"#111",background:"transparent",padding:"10px 12px"}}),d.jsx(Ue,{to:"/browse?photo=1",style:{textDecoration:"none"},children:d.jsxs("button",{type:"button",style:{display:"flex",alignItems:"center",gap:6,padding:"9px 16px",background:"#F7F3EF",borderRadius:12,border:"none",color:"#666",fontSize:13,fontWeight:700,cursor:"pointer"},children:[d.jsx(Er,{style:{width:14,height:14}})," Photo"]})}),d.jsx("button",{type:"submit",style:{padding:"11px 26px",background:"#FF6B35",color:"#fff",border:"none",borderRadius:12,fontSize:14,fontWeight:800,cursor:"pointer",marginLeft:4},children:"Search"})]})}),d.jsx("div",{style:{marginBottom:24},children:d.jsx(og,{})}),d.jsxs("div",{style:{display:"flex",gap:12,flexWrap:"wrap",marginBottom:28},children:[d.jsx(Ue,{to:"/create",style:{textDecoration:"none"},children:d.jsx(et.button,{whileHover:{scale:1.04,y:-2},whileTap:{scale:.97},style:{padding:"14px 32px",background:"#00D9C5",color:"#111",border:"none",borderRadius:14,fontSize:15,fontWeight:900,cursor:"pointer"},children:"🎉 Post for Free"})}),d.jsx(Ue,{to:"/browse",style:{textDecoration:"none"},children:d.jsx("button",{style:{padding:"14px 28px",background:"rgba(255,255,255,0.08)",color:"#fff",border:"2px s
350olid rgba(255,255,255,0.2)",borderRadius:14,fontSize:15,fontWeight:700,cursor:"pointer"},children:"Browse Items →"})})]}),d.jsx("div",{style:{display:"flex",gap:24,flexWrap:"wrap"},children:["No fees ever","Ship or meet local","All 50 states"].map(v=>d.jsxs("span",{style:{fontSize:12,fontWeight:600,color:"rgba(255,255,255,0.3)",display:"flex",alignItems:"center",gap:6},children:[d.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:"#00D9C5",display:"inline-block"}}),v]},v))})]}),d.jsxs("div",{className:"nlni-hero-right",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12,position:"relative"},children:[d.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12,paddingTop:40},children:[d.jsxs(et.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.15},style:{borderRadius:20,overflow:"hidden",position:"relative",height:280,boxShadow:"0 12px 40px rgba(0,0,0,0.4)"},children:[d.jsx("img",{src:"https://images.unsplash.com/photo-1485965120184-e220f721d03e?w=400&h=320&fit=crop",alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}}),d.jsx("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%)"}}),d.jsx("span",{style:{position:"absolute",top:10,left:10,background:"#00D9C5",color:"#111",fontSize:9,fontWeight:900,padding:"4px 10px",borderRadius:99},children:"TRADE"}),d.jsx("p",{style:{position:"absolute",bottom:12,left:12,color:"#fff",fontSize:12,fontWeight:700,margin:0},children:"Road Bike · Denver"})]}),d.jsxs(et.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},style:{borderRadius:20,overflow:"hidden",position:"relative",height:160,boxShadow:"0 8px 32px rgba(0,0,0,0.4)"},children:[d.jsx("img",{src:"https://images.unsplash.com/photo-1555041469-a586c61ea9bc?w=400&h=200&fit=crop",alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}}),d.jsx("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%)"}}),d.jsx("span",{style:{position:"absolute",top:10,left:10,background:"#22C55E",color:"#fff",fontSize:9,fontWeight:900,padding:"4px 10px",borderRadius:99},children:"$350"}),d.jsx("p",{style:{position:"absolute",bottom:12,left:12,color:"#fff",fontSize:12,fontWeight:700,margin:0},children:"Sectional · Chicago"})]})]}),d.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[d.jsxs(et.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.22},style:{borderRadius:20,overflow:"hidden",position:"relative",height:160,boxShadow:"0 8px 32px rgba(0,0,0,0.4)"},children:[d.jsx("img",{src:"https://images.unsplash.com/photo-1516035069371-29a1b244cc32?w=400&h=200&fit=crop",alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}}),d.jsx("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%)"}}),d.jsx("span",{style:{position:"absolute",top:10,left:10,background:"#6366F1",color:"#fff",fontSize:9,fontWeight:900,padding:"4px 10px",borderRadius:99},children:"TRADE"})]}),d.jsxs(et.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.38},style:{borderRadius:20,overflow:"hidden",position:"relative",flex:1,minHeight:280,boxShadow:"0 12px 40px rgba(0,0,0,0.4)"},children:[d.jsx("img",{src:"https://images.unsplash.com/photo-1510915361894-db8b60106cb1?w=400&h=320&fit=crop",alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}}),d.jsx("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%)"}}),d.jsx("span",{style:{position:"absolute",top:10,left:10,background:"#FFB800",color:"#111",fontSize:9,fontWeight:900,padding:"4px 10px",borderRadius:99},children:"$180"}),d.jsx("p",{style:{position:"absolute",bottom:12,left:12,color:"#fff",fontSize:12,fontWeight:700,margin:0},children:"Guitar · Nashville"})]})]}),d.jsxs(et.div,{animate:{y:[0,-8,0]},transition:{repeat:1/0,duration:3,ease:"easeInOut"},style:{position:"absolute",bottom:20,left:-16,zIndex:10,background:"#fff",borderRadius:16,padding:"12px 18px",boxShadow:"0 8px 32px rgba(0,0,0,0.25)",display:"flex",alignItems:"center",gap:12},children:[d.jsx("div",{style:{width:36,height:36,borderRadius:12,background:"#00D9C5",display:"flex",alignItems:"center",justifyContent:"center",fontSize:18},children:"✨"}),d.jsxs("div",{children:[d.jsx("div",{style:{fontSize:12,fontWeight:900,color:"#111"},children:"AI Match Found!"}
350),d.jsx("div",{style:{fontSize:10,color:"#999",fontWeight:600},children:"3 items near you"})]})]})]})]})]}),d.jsx("div",{style:{background:"#FF6B35",padding:"12px 0",overflow:"hidden"},children:d.jsx(et.div,{animate:{x:["0%","-50%"]},transition:{duration:25,repeat:1/0,ease:"linear"},style:{display:"flex",gap:0,whiteSpace:"nowrap",width:"max-content"},children:Array(8).fill("🚲 Bikes · 💻 Laptops · 🛋️ Furniture · 📷 Cameras · 👟 Sneakers · 🎸 Guitars · 📱 Phones · 🔨 Tools · 🎮 Games").map((v,b)=>d.jsxs("span",{style:{fontSize:13,fontWeight:800,color:"#fff",padding:"0 32px"},children:[v,"   ·  "]},b))})}),d.jsx("div",{style:{background:"#fff",borderBottom:"1.5px solid #F0EDE8",padding:"20px 32px"},children:d.jsx("div",{style:{maxWidth:900,margin:"0 auto",display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"1rem 3rem"},children:[{icon:d.jsx(Qd,{style:{width:16,height:16}}),text:"Zero fees, ever",c:"#22C55E"},{icon:d.jsx(RP,{style:{width:16,height:16}}),text:"AI-powered matching",c:"#6366F1"},{icon:d.jsx(Nr,{style:{width:16,height:16}}),text:"Nationwide coverage",c:"#FF6B35"},{icon:d.jsx(va,{style:{width:16,height:16}}),text:"Verified reviews",c:"#FFB800"},{icon:d.jsx(fP,{style:{width:16,height:16}}),text:"Trade or sell",c:"#00D9C5"}].map(({icon:v,text:b,c:E})=>d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:13,fontWeight:700,color:"#555"},children:[d.jsx("span",{style:{color:E},children:v}),b]},b))})}),d.jsx("section",{style:{background:"#F7F3EF",padding:"64px 32px"},children:d.jsxs("div",{style:{maxWidth:1200,margin:"0 auto"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:32},children:[d.jsxs("div",{children:[d.jsx("div",{style:{fontSize:11,fontWeight:800,color:"#FF6B35",textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:6},children:"BROWSE"}),d.jsx("h2",{style:{fontSize:28,fontWeight:900,color:"#111",margin:0,letterSpacing:"-0.03em"},children:"Shop by category"})]}),d.jsxs(Ue,{to:"/browse",style:{textDecoration:"none",display:"flex",alignItems:"center",gap:4,fontSize:14,fontWeight:700,color:"#FF6B35"},children:["See all ",d.jsx(e_,{style:{width:15,height:15}})]})]}),d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(8,1fr)",gap:12},className:"nlni-cats",children:[d.jsx("style",{children:"@media(max-width:700px){.nlni-cats{grid-template-columns:repeat(4,1fr)!important}}"}),oB.map((v,b)=>d.jsx(et.div,{initial:{opacity:0,y:14},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:b*.05},children:d.jsx(Ue,{to:`/browse?category=${encodeURIComponent(v.n)}`,style:{textDecoration:"none"},children:d.jsxs(et.div,{whileHover:{y:-8,scale:1.06},transition:{type:"spring",stiffness:400,damping:18},style:{display:"flex",flexDirection:"column",alignItems:"center",gap:10,padding:"20px 8px",borderRadius:20,background:v.bg,cursor:"pointer",border:`2px solid ${v.c}22`},children:[d.jsx("span",{style:{fontSize:28},children:v.e}),d.jsx("span",{style:{fontSize:10,fontWeight:800,color:v.c,textAlign:"center",lineHeight:1.3},children:v.n})]})})},v.n))]})]})}),d.jsx("section",{style:{background:"#fff",padding:"64px 32px"},children:d.jsxs("div",{style:{maxWidth:1200,margin:"0 auto"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:32,flexWrap:"wrap",gap:16},children:[d.jsxs("div",{children:[d.jsx("div",{style:{fontSize:11,fontWeight:800,color:"#FF6B35",textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:6},children:g?"NEAR YOU":"JUST LISTED"}),d.jsx("h2",{style:{fontSize:28,fontWeight:900,color:"#111",margin:0,letterSpacing:"-0.03em"},children:g?`Fresh picks near ${g.label}`:"Latest listings nationwide"})]}),d.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[d.jsx("div",{style:{display:"flex",background:"#F7F3EF",borderRadius:99,padding:4,gap:4},children:[["list","List",i_],["map","Map",a_]].map(([v,b,E])=>d.jsxs("button",{onClick:()=>m(v),style:{display:"flex",alignItems:"center",gap:6,padding:"7px 18px",borderRadius:99,border:"none",cursor:"pointer",fontSize:13,fontWeight:700,background:p===v?"#FF6B35":"transparent",color:p===v?"#fff":"#888"},children:[d.jsx(E,{style:{width:14,height:14}}),b]},v))}),d.jsx(Ue,{to:"/browse",style:{textDecoration:"none"},children:d.jsx("button",{style:{padding:"9px 20px",borderRadius:99,border:"1.5px solid #E5E7EB",background:"#fff",color:"#555",fontSize:13,fontWeight:700,cursor:"pointer"},children:"See all →"})})]})]}),u?d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:18},className:"nlni-grid",children:[d.jsx("style",{children:"@media(max-width:900px
350){.nlni-grid{grid-template-columns:repeat(3,1fr)!important}}@media(max-width:560px){.nlni-grid{grid-template-columns:repeat(2,1fr)!important}}"}),[...Array(8)].map((v,b)=>d.jsx("div",{style:{background:"#F7F3EF",borderRadius:20,height:320}},b))]}):p==="map"?d.jsx(w.Suspense,{fallback:d.jsx("div",{style:{textAlign:"center",padding:"4rem",color:"#999"},children:"Loading map…"}),children:d.jsx(iB,{listings:a,userLocation:g})}):a.length===0?d.jsxs("div",{style:{textAlign:"center",padding:"5rem",background:"#F7F3EF",borderRadius:24},children:[d.jsx("div",{style:{fontSize:56,marginBottom:16},children:"🌱"}),d.jsx("h3",{style:{fontWeight:900,fontSize:22,color:"#111",marginBottom:10},children:"Be the first!"}),d.jsx(Ue,{to:"/create",style:{textDecoration:"none"},children:d.jsx("button",{style:{padding:"13px 32px",borderRadius:99,border:"none",background:"#FF6B35",color:"#fff",fontSize:15,fontWeight:800,cursor:"pointer"},children:"Post the first item"})})]}):d.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:18},className:"nlni-grid",children:a.map((v,b)=>d.jsx(Zi,{listing:v,index:b,distanceMiles:v.distanceMiles},v.id))}),a.length>0&&d.jsx("div",{style:{textAlign:"center",marginTop:48},children:d.jsx(Ue,{to:"/browse",style:{textDecoration:"none"},children:d.jsx(et.button,{whileHover:{scale:1.04},whileTap:{scale:.97},style:{padding:"15px 48px",borderRadius:99,border:"none",background:"#FF6B35",color:"#fff",fontSize:15,fontWeight:900,cursor:"pointer",boxShadow:"0 6px 24px rgba(255,107,53,0.4)"},children:"View All Listings →"})})})]})}),d.jsx("section",{style:{background:"#1A1A2E",padding:"80px 32px"},children:d.jsxs("div",{style:{maxWidth:1e3,margin:"0 auto"},children:[d.jsxs("div",{style:{textAlign:"center",marginBottom:56},children:[d.jsx("div",{style:{fontSize:11,fontWeight:800,color:"#00D9C5",textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:10},children:"HOW IT WORKS"}),d.jsx("h2",{style:{fontSize:32,fontWeight:900,color:"#fff",margin:0,letterSpacing:"-0.03em"},children:"Simpler than eBay. Smarter than Craigslist."})]}),d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:20},className:"nlni-steps",children:[d.jsx("style",{children:"@media(max-width:900px){.nlni-steps{grid-template-columns:repeat(2,1fr)!important}}@media(max-width:560px){.nlni-steps{grid-template-columns:1fr!important}}"}),aB.map(({n:v,icon:b,title:E,desc:_,color:k},S)=>d.jsxs(et.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:S*.12},whileHover:{y:-8},style:{background:"rgba(255,255,255,0.05)",borderRadius:24,padding:"36px 28px",textAlign:"center",border:"1px solid rgba(255,255,255,0.08)"},children:[d.jsx("div",{style:{width:64,height:64,borderRadius:20,background:k,margin:"0 auto 20px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:28},children:b}),d.jsxs("div",{style:{fontSize:10,fontWeight:900,color:k,letterSpacing:"0.12em",marginBottom:10,textTransform:"uppercase"},children:["Step ",v]}),d.jsx("h3",{style:{fontWeight:900,fontSize:18,color:"#fff",margin:"0 0 10px",letterSpacing:"-0.02em"},children:E}),d.jsx("p",{style:{color:"rgba(255,255,255,0.4)",fontSize:14,lineHeight:1.7,margin:0},children:_})]},v))]})]})}),d.jsx("section",{style:{background:"#00D9C5",padding:"64px 32px"},children:d.jsxs("div",{style:{maxWidth:900,margin:"0 auto",display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:24,textAlign:"center"},className:"nlni-stats",children:[d.jsx("style",{children:"@media(max-width:600px){.nlni-stats{grid-template-columns:repeat(2,1fr)!important}}"}),[{n:"$0",l:"To List & Trade"},{n:"50",l:"States Live"},{n:"90s",l:"To Post"},{n:"100%",l:"Free to Use"}].map(({n:v,l:b})=>d.jsxs(et.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[d.jsx("div",{style:{fontSize:44,fontWeight:900,color:"#1A1A2E",letterSpacing:"-0.04em",lineHeight:1,marginBottom:8},children:v}),d.jsx("div",{style:{fontSize:12,fontWeight:700,color:"rgba(26,26,46,0.6)",textTransform:"uppercase",letterSpacing:"0.08em"},children:b})]},b))]})}),d.jsx("section",{style:{background:"#fff",padding:"80px 32px"},children:d.jsxs("div",{style:{maxWidth:1100,margin:"0 auto"},children:[d.jsxs("div",{style:{textAlign:"center",marginBottom:48},children:[d.jsx("div",{style:{fontSize:11,fontWeight:800,color:"#00D9C5",textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:10},children:"TRUST & SAFETY"}),d.jsx("h2",{style:{fontSize:30,fontWeight:900,color:"#111",margin:"0 0 12px",letterSpacing:"-0.03em"},children:"Trade safely. We never touch your money."}),d.jsx("p",{style:{color:"#888",fontSize:16,lineHeight:1.6,maxWidth:560,margin:"0 auto"},children:"No Longer Need It is free and always will be. We never hold funds or take a cut — you arrange payment and delivery directly with the other person."})]}),d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:18},className:"nlni-safety",children:[d.jsx("style",{children:"@media(max-width:900px
350){.nlni-safety{grid-template-columns:repeat(2,1fr)!important}}@media(max-width:560px){.nlni-safety{grid-template-columns:1fr!important}}"}),[{icon:"📍",title:"Meet Locally",desc:"Meet in a public place for a safe, simple handoff. Daylight, well-lit spots work best.",c:"#FF6B35"},{icon:"📦",title:"Ship Anywhere",desc:"Prefer distance? Arrange shipping directly with the other person. You stay in control.",c:"#6366F1"},{icon:"⭐",title:"User Ratings",desc:"Every completed trade builds your reputation. Check reviews before you deal.",c:"#FFB800"},{icon:"🚩",title:"Report & Block",desc:"See something off? Report listings or block users anytime. We review every report.",c:"#00D9C5"}].map(({icon:v,title:b,desc:E,c:_})=>d.jsxs(et.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},style:{background:"#F7F3EF",borderRadius:20,padding:"28px 24px",border:"1.5px solid #F0EDE8"},children:[d.jsx("div",{style:{width:48,height:48,borderRadius:14,background:_,margin:"0 0 16px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:22},children:v}),d.jsx("h3",{style:{fontWeight:900,fontSize:16,color:"#111",margin:"0 0 8px",letterSpacing:"-0.02em"},children:b}),d.jsx("p",{style:{color:"#888",fontSize:13,lineHeight:1.6,margin:0},children:E})]},b))]}),d.jsx("div",{style:{textAlign:"center",marginTop:36},children:d.jsx(Ue,{to:"/help",style:{fontSize:14,fontWeight:700,color:"#FF6B35",textDecoration:"none"},children:"Read our full safety guidelines →"})})]})}),d.jsx("section",{style:{background:"#F7F3EF",padding:"96px 32px",textAlign:"center"},children:d.jsxs(et.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},style:{maxWidth:520,margin:"0 auto"},children:[d.jsx("div",{style:{fontSize:60,marginBottom:24},children:"♻️"}),d.jsxs("h2",{style:{fontSize:"clamp(2rem,4vw,3rem)",fontWeight:900,color:"#111",margin:"0 0 16px",letterSpacing:"-0.04em",lineHeight:1.1},children:["Done with it?",d.jsx("br",{}),d.jsx("span",{style:{color:"#FF6B35"},children:"Someone wants it."})]}),d.jsx("p",{style:{color:"#888",fontSize:17,lineHeight:1.65,marginBottom:40},children:"Be among the first to give your stuff a second life. Post in under 90 seconds — no fees, no catch."}),d.jsxs("div",{style:{display:"flex",gap:14,justifyContent:"center",flexWrap:"wrap"},children:[d.jsx(Ue,{to:"/create",style:{textDecoration:"none"},children:d.jsx(et.button,{whileHover:{scale:1.05},whileTap:{scale:.97},style:{padding:"17px 44px",borderRadius:99,border:"none",background:"#FF6B35",color:"#fff",fontSize:16,fontWeight:900,cursor:"pointer",boxShadow:"0 8px 28px rgba(255,107,53,0.4)"},children:"Start for free"})}),d.jsx(Ue,{to:"/browse",style:{textDecoration:"none"},children:d.jsx("button",{style:{padding:"17px 36px",borderRadius:99,background:"#fff",border:"2px solid #E5E7EB",color:"#555",fontSize:16,fontWeight:700,cursor:"pointer"},children:"Browse listings"})})]})]})}),d.jsx("footer",{style:{background:"#1A1A2E",padding:"52px 32px 32px"},children:d.jsxs("div",{style:{maxWidth:1200,margin:"0 auto"},children:[d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1.5fr 1fr 1fr",gap:"3rem",marginBottom:40},className:"nlni-footer",children:[d.jsx("style",{children:"@media(max-width:640px){.nlni-footer{grid-template-columns:1fr!important}}"}),d.jsxs("div",{children:[d.jsxs("div",{style:{fontSize:20,fontWeight:900,color:"#fff",marginBottom:12,letterSpacing:"-0.02em"},children:["No Longer Need It ",d.jsx("span",{style:{color:"#00D9C5"},children:"♻"})]}),d.jsx("p",{style:{color:"rgba(255,255,255,0.2)",fontSize:13,lineHeight:1.7,maxWidth:260,margin:0},children:"Nationwide peer-to-peer reuse marketplace. Zero fees. Every item deserves a second life."})]}),d.jsxs("div",{children:[d.jsx("div",{style:{fontSize:10,fontWeight:800,color:"rgba(255,255,255,0.2)",textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:16},children:"Explore"}),d.jsx("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[["Browse","/browse"],["Post Item","/create"],["Smart Matches","/matches"],["Trade Offers","/trade-offers"],["About","/about"],["Help & FAQ","/help"],["Terms","/terms"],["Privacy","/privacy"]].map(([v,b])=>d.jsx(Ue,{to:b,style:{fontSize:13,color:"rgba(255,255,255,0.3)",textDecoration:"none"},children:v},b))})]}),d.jsxs("div",{children:[d.jsx("div",{style:{fontSize:10,fontWeight:800,color:"rgba(255,255,255,0.2)",textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:16},children:"Mission"}),d.jsx("p",{style:{color:"rgba(255,255,255,0.2)",fontSize:13,lineHeight:1.7,margin:0},children:"Connecting people across the US to exchange goods and build a circular economy."})]})]}),d.jsxs("div",{style:{borderTop:"1px solid rgba(255,255,255,0.06)",paddingTop:24,textAlign:"center",fontSize:11,color:"rgba(255,255,255,0.12)"},children:["© ",new Date().getFullYear()," nolongerneedit.com"]})]})})]})}function cB({onResults:e,onClose:t}){const[n,r]=w.useState(null),[i,a]=w.useState(null),[l,u]=w.useState("idle"),[f,p]=w.useState(""),[m,g]=w.useState(!1),v=w.useRef(null),b=w.useRef(null),E=C=>{if(!C||!C.type.startsWith("image/")){p("Please select an image file.");return}a(C),r(URL.createObjectURL(C)),u("idle"),p("")},_=w.useCallback(C=>{var N;C.preventDefault(),g(!1);const T=(N=C.dataTransfer.files)==null?void 0:N[0];T&&E(T)},[]),k=async()=>{var N;if(!i)return;u("uploading"),p("");let C;try{C=(await ve.integrations.Core.UploadFile({file:i})).file_url}catch{u("error"),p("Failed to upload image. Please try again.");return}u("analyzing");let T;
350try{T=await ve.integrations.Core.InvokeLLM({prompt:`You are analyzing an image for a buy/sell/barter marketplace called "No Longer Need It."
351
352Look at the image and identify:
3531. What is the main item or object in this image?
3542. What category does it best fit? Choose one: Electronics, Furniture, Clothing, Sports, Books, Home & Garden, Toys, Vehicles, Art, Music, Tools, Other
3553. List 5-10 specific keywords that describe this item (e.g., brand, color, type, model, use case)
3564. What items might someone trade for this? List 3-5 suggestions.
357
358Return ONLY a JSON object with these fields:
359- item_name: string (brief, specific item name)
360- category: string (one of the categories above)
361- keywords: string[] (5-10 descriptive keywords)
362- trade_suggestions: string[] (3-5 trade ideas)
363- search_terms: string (a short phrase to search for similar items, e.g., "vintage acoustic guitar" or "mid century sofa")`,file_urls:[C],response_json_schema:{type:"object",properties:{item_name:{type:"string"},category:{type:"string"},keywords:{type:"array",items:{type:"string"}},trade_suggestions:{type:"array",items:{type:"string"}},search_terms:{type:"string"}},required:["item_name","category","keywords","search_terms"]}})}catch{u("error"),p("AI analysis failed. Please try again.");return}try{const O=await ve.entities.Listing.filter({status:"active"},"-created_date",200),B=[...T.keywords||[],T.item_name,T.category,...((N=T.search_terms)==null?void 0:N.split(" "))||[]].map(G=>G.toLowerCase().trim()).filter(Boolean),Y=O.map(G=>{var Q,Z;let K=0;const q=[G.title,G.description,G.category,...G.trade_for||[]].join(" ").toLowerCase();return B.forEach(he=>{q.includes(he)&&(K+=he.length>4?3:1)}),((Q=G.category)==null?void 0:Q.toLowerCase())===((Z=T.category)==null?void 0:Z.toLowerCase())&&(K+=5),(T.trade_suggestions||[]).forEach(he=>{q.includes(he.toLowerCase())&&(K+=4)}),{...G,_score:K}}).filter(G=>G._score>0).sort((G,K)=>K._score-G._score).slice(0,12);u("done"),e({matches:Y,analysis:T,photoUrl:C,previewUrl:n})}catch{u("error"),p("Could not fetch listings. Please try again.")}},S=()=>{r(null),a(null),u("idle"),p("")},R=l==="uploading"||l==="analyzing";return d.jsxs("div",{className:"bg-white rounded-2xl border border-earth-200 shadow-card overflow-hidden",children:[d.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-earth-100 bg-earth-50",children:[d.jsxs("div",{className:"flex items-center gap-2.5",children:[d.jsx("div",{className:"w-8 h-8 rounded-xl bg-terracotta-500 flex items-center justify-center",children:d.jsx(Er,{className:"w-4 h-4 text-white"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold text-sm text-foreground",children:"Photo Search"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"Find items that match your photo"})]})]}),t&&d.jsx("button",{onClick:t,className:"p-1.5 hover:bg-earth-100 rounded-lg transition-colors text-muted-foreground",children:d.jsx(un,{className:"w-4 h-4"})})]}),d.jsx("div",{className:"p-5",children:n?d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"relative rounded-xl overflow-hidden bg-earth-50",style:{maxHeight:220},children:[d.jsx("img",{src:n,alt:"Search photo",className:"w-full h-full object-contain max-h-[220px]"}),!R&&d.jsx("button",{onClick:S,className:"absolute top-2 right-2 w-7 h-7 bg-black/50 backdrop-blur-sm text-white rounded-full flex items-center justify-center hover:bg-black/70 transition-colors",children:d.jsx(un,{className:"w-3.5 h-3.5"})})]}),d.jsx($l,{mode:"wait",children:R?d.jsxs(et.div,{initial:{opacity:0}
363,animate:{opacity:1},exit:{opacity:0},className:"flex flex-col items-center gap-3 py-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-full border-3 border-earth-200 border-t-terracotta-500 animate-spin",style:{borderWidth:3}}),d.jsxs("div",{className:"text-center",children:[d.jsx("p",{className:"text-sm font-semibold text-foreground",children:l==="uploading"?"Uploading your photo…":"Finding matches…"}),d.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:l==="analyzing"?"We're finding items that look like this":""})]})]},"loading"):l==="done"?d.jsxs(et.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},className:"flex items-center gap-2 p-3 bg-sage-50 border border-sage-200 rounded-xl text-sm text-sage-800",children:[d.jsx(qi,{className:"w-4 h-4 shrink-0 text-sage-600"}),d.jsx("span",{className:"font-medium",children:"Matches found! Scroll down to see results."})]},"done"):d.jsxs(et.div,{initial:{opacity:0},animate:{opacity:1},children:[f&&d.jsx("p",{className:"text-xs text-red-500 mb-3",children:f}),d.jsxs("button",{onClick:k,className:"w-full flex items-center justify-center gap-2 py-3 bg-terracotta-500 hover:bg-terracotta-600 text-white rounded-xl font-bold text-sm transition-colors shadow-sm",children:[d.jsx(qi,{className:"w-4 h-4"}),"Find Matching Items"]})]},"action")})]}):d.jsxs("div",{onDragOver:C=>{C.preventDefault(),g(!0)},onDragLeave:()=>g(!1),onDrop:_,className:`border-2 border-dashed rounded-xl p-8 text-center transition-colors ${m?"border-terracotta-400 bg-terracotta-50":"border-earth-200 hover:border-earth-300 bg-earth-50"}`,children:[d.jsx("div",{className:"w-14 h-14 rounded-2xl bg-white shadow-sm mx-auto mb-4 flex items-center justify-center",children:d.jsx(Er,{className:"w-7 h-7 text-terracotta-500"})}),d.jsx("p",{className:"font-semibold text-foreground mb-1 text-sm",children:"Drop a photo here"}),d.jsx("p",{className:"text-muted-foreground text-xs mb-4",children:"or choose an option below"}),d.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 justify-center",children:[d.jsxs("button",{onClick:()=>{var C;return(C=v.current)==null?void 0:C.click()},className:"flex items-center gap-2 px-4 py-2.5 bg-terracotta-500 hover:bg-terracotta-600 text-white rounded-xl text-sm font-semibold transition-colors shadow-sm",children:[d.jsx(d_,{className:"w-4 h-4"}),"Upload Photo"]}),d.jsxs("button",{onClick:()=>{var C;return(C=b.current)==null?void 0:C.click()},className:"flex items-center gap-2 px-4 py-2.5 bg-white hover:bg-earth-50 border border-earth-200 text-foreground rounded-xl text-sm font-semibold transition-colors",children:[d.jsx(Er,{className:"w-4 h-4 text-sage-700"}),"Take Photo"]})]}),d.jsx("input",{ref:v,type:"file",accept:"image/*",className:"hidden",onChange:C=>{var T;return E((T=C.target.files)==null?void 0:T[0])}}),d.jsx("input",{ref:b,type:"file",accept:"image/*",capture:"environment",className:"hidden",onChange:C=>{var T;return E((T=C.target.files)==null?void 0:T[0])}}),f&&d.jsx("p",{className:"text-xs text-red-500 mt-3",children:f})]})})]})}const uB=w.lazy(()=>Gk(()=>import("./MapView-BXSMDvG0.js"),__vite__mapDeps([0,1]))),Fs={};async function dB(e){if(!e)return null;if(Fs[e]!==void 0)return Fs[e];try{const n=await(await fetch(`https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(e)}&countrycodes=us&format=json&limit=1`,{headers:{"Accept-Language":"en"}})).json();Fs[e]=n[0]?{lat:parseFloat(n[0].lat),lng:parseFloat(n[0].lon)}:null}catch{Fs[e]=null}return Fs[e]}const fB=["All","Electronics","Furniture","Clothing","Sports","Books","Home & Garden","Toys","Vehicles","Art","Music","Tools","Other"],hB=[{value:"All",label:"All Types"},{value:"sell",label:"For Sale"},{value:"trade",label:"Trade Only"},{value:"both",label:"Sale or Trade"}],pB=[{value:"nationwide",label:"🌎 Nationwide"},{value:"10",label:"10 mi"},{value:"25",label:"25 mi"},{value:"50",label:"50 mi"},{value:"100",label:"100 mi"}],Gu={background:"linear-gradient(135deg,#06b6d4,#0284c7)",color:"#fff",border:"1.5px solid transparent",borderRadius:10,padding:"6px 14px",fontSize:12,fontWeight:700,cursor:"pointer"},Ku={background:"#fff",color:"#64748b",border:"1.5px solid #e2e8f0",borderRadius:10,padding:"6px 14px",fontSize:12,fontWeight:600,cursor:"pointer"};function mB(){var re,V,te,$;const e=ai(),t=new URLSearchParams(e.search),{userLocation:n}=Ly(),[r,i]=w.useState([]),[a,l]=w.useState({}),[u,f]=w.useState(!1),[p,m]=w.useState(!0),[g,v]=w.useState(t.get("search")||t.get("q")||""),[b,E]=w.useState(t.get("category")||"All"),[_,k]=w.useState("All"),[S,R]=w.useState(!1),[C,T]=w.useState(t.get("photo")==="1"),[N,O]=w.useState("list"),[B,M]=w.useState("newest"),[Y,G]=w.useState("nationwide"),[K,q]=w.useState(null);w.useEffect(()=>{const P={status:"active"};b!=="All"&&(P.category=b),_!=="All"&&(P.listing_type=_),m(!0),ve.entities.Listing.filter(P,"-created_date",200).then(i).catch(()=>{}).finally(()=>m(!1))},[b,_]),w.useEffect(()=>{if(!n||r.length===0)return;const P=[...new Set(r.map(de=>
363de.location).filter(Boolean))],W=P.filter(de=>Fs[de]===void 0);if(W.length===0){const de={};P.forEach(ge=>{de[ge]=Fs[ge]}),l(de);return}f(!0),(async()=>{for(const ge of W)await dB(ge),await new Promise(ae=>setTimeout(ae,80));const de={};P.forEach(ge=>{de[ge]=Fs[ge]}),l(de),f(!1)})()},[n,r]);const Q=w.useMemo(()=>{let P=r;if(g.trim()){const W=g.trim().toLowerCase().replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),ce=new RegExp(`\\b${W}\\b`,"i");P=P.filter(de=>ce.test(de.title||"")||ce.test(de.category||"")||ce.test(de.description||""))}if(P=P.map(W=>{if(!n||!W.location)return{...W,distanceMiles:void 0};const ce=a[W.location];return{...W,distanceMiles:ce?kC(n.lat,n.lng,ce.lat,ce.lng):void 0}}),Y!=="nationwide"&&n){const W=parseFloat(Y);P=P.filter(ce=>ce.distanceMiles===void 0||ce.distanceMiles<=W)}return B==="price_asc"?P=[...P].sort((W,ce)=>(W.price||0)-(ce.price||0)):B==="price_desc"?P=[...P].sort((W,ce)=>(ce.price||0)-(W.price||0)):B==="distance"&&n&&(P=[...P].sort((W,ce)=>(W.distanceMiles??99999)-(ce.distanceMiles??99999))),P},[r,g,a,Y,n,B]),Z=[b!=="All",_!=="All",B!=="newest",Y!=="nationwide"].filter(Boolean).length,he=P=>{q(P),T(!1),window.scrollTo({top:0,behavior:"smooth"})},X=()=>q(null);return d.jsxs("div",{style:{minHeight:"100vh",background:"#f8fafc"},children:[!n&&d.jsx("div",{style:{background:"linear-gradient(135deg,#ecfeff,#eff6ff)",borderBottom:"1px solid #e0f2fe",padding:"10px 0"},children:d.jsxs("div",{style:{maxWidth:1280,margin:"0 auto",padding:"0 1.5rem",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:10},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:13,color:"#0284c7",fontWeight:600},children:[d.jsx(WN,{style:{width:15,height:15}}),"Showing all listings nationwide"]}),d.jsx(og,{})]})}),d.jsxs("div",{style:{maxWidth:1280,margin:"0 auto",padding:"28px 1.5rem"},children:[d.jsxs("div",{style:{marginBottom:24},children:[d.jsx("h1",{style:{fontFamily:"'Fraunces', serif",fontWeight:700,fontSize:28,color:"#0f172a",margin:"0 0 6px"},children:n?`Items near ${n.label}`:"Browse All Listings"}),d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[d.jsx("p",{style:{color:"#94a3b8",fontSize:13,margin:0},children:"No account needed · nationwide marketplace"}),n&&d.jsx(og,{})]})]}),d.jsxs("div",{style:{display:"flex",gap:10,marginBottom:12,flexWrap:"wrap"},children:[d.jsxs("div",{style:{flex:1,minWidth:220,position:"relative"},children:[d.jsx(fa,{style:{position:"absolute",left:14,top:"50%",transform:"translateY(-50%)",width:16,height:16,color:"#94a3b8"}}),d.jsx("input",{type:"text",placeholder:"Search items, categories, locations…",value:g,onChange:P=>v(P.target.value),style:{width:"100%",paddingLeft:42,paddingRight:g?36:14,paddingTop:12,paddingBottom:12,borderRadius:14,border:"1.5px solid #e2e8f0",background:"#fff",fontSize:14,color:"#0f172a",outline:"none",boxSizing:"border-box",boxShadow:"0 1px 4px rgba(0,0,0,0.05)"}}),g&&d.jsx("button",{onClick:()=>v(""),style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",color:"#94a3b8"},children:d.jsx(un,{style:{width:15,height:15}})})]}),d.jsxs("button",{onClick:()=>{T(!C),X()},style:{display:"flex",alignItems:"center",gap:7,padding:"10px 18px",borderRadius:14,border:"1.5px solid",cursor:"pointer",fontSize:13,fontWeight:700,background:C?"linear-gradient(135deg,#f97316,#ea580c)":"#fff",borderColor:C?"transparent":"#e2e8f0",color:C?"#fff":"#64748b",boxShadow:"0 1px 4px rgba(0,0,0,0.05)"},children:[d.jsx(Er,{style:{width:15,height:15}}),d.jsx("span",{children:"Photo"})]}),d.jsxs("button",{onClick:()=>R(!S),style:{display:"flex",alignItems:"center",gap:7,padding:"10px 18px",borderRadius:14,border:"1.5px solid",cursor:"pointer",fontSize:13,fontWeight:700,position:"relative",background:S?"linear-gradient(135deg,#06b6d4,#0284c7)":"#fff",borderColor:S?"transparent":"#e2e8f0",color:S?"#fff":"#64748b",boxShadow:"0 1px 4px rgba(0,0,0,0.05)"},children:[d.jsx(wP,{style:{width:15,height:15}}),"Filters",Z>0&&d.jsx("span",{style:{position:"absolute",top:-7,right:-7,width:20,height:20,borderRadius:"50%",background:"linear-gradient(135deg,#f97316,#ea580c)",color:"#fff",fontSize:10,fontWeight:800,display:"flex",alignItems:"center",justifyContent:"center"},children:Z})]}),d.jsx("div",{style:{display:"flex",borderRadius:14,border:"1.5px solid #e2e8f0",overflow:"hidden",background:"#fff",boxShadow:"0 1px 4px rgba(0,0,0,0.05)"},children:[["list",i_],["map",a_]].map(([P,W])=>d.jsx("button",{onClick:()=>O(P),style:{display:"flex",alignItems:"center",gap:6,padding:"10px 16px",border:"none",cursor:"pointer",fontSize:12,fontWeight:700,background:N===P?"linear-gradient(135deg,#06b6d4,#0284c7)":"transparent",color:N===P?"#fff":"#94a3b8"},children:d.jsx(W,{style:{width:15,height:15}})},P))})]}),d.jsx($l,{children:C&&d.jsx(et.div,{initial:{height:0,opacity:0}
363,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.22},style:{overflow:"hidden",marginBottom:12},children:d.jsx(cB,{onResults:he,onClose:()=>T(!1)})})}),K&&d.jsxs(et.div,{initial:{opacity:0,y:-8},animate:{opacity:1,y:0},style:{marginBottom:24,background:"#fff7ed",border:"1.5px solid #fed7aa",borderRadius:18,padding:"16px 20px",display:"flex",alignItems:"flex-start",gap:16},children:[d.jsx("img",{src:K.previewUrl,alt:"",style:{width:60,height:60,borderRadius:12,objectFit:"cover",border:"2px solid #fdba74",flexShrink:0}}),d.jsxs("div",{style:{flex:1,minWidth:0},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[d.jsx(qi,{style:{width:15,height:15,color:"#f97316"}}),d.jsxs("span",{style:{fontWeight:700,fontSize:13,color:"#9a3412"},children:['Matches for "',(re=K.analysis)==null?void 0:re.item_name,'"']})]}),d.jsxs("p",{style:{fontSize:12,color:"#c2410c",margin:"0 0 8px"},children:["Found ",d.jsx("strong",{children:K.matches.length})," visually similar items.",((V=K.analysis)==null?void 0:V.category)&&d.jsxs(d.Fragment,{children:[" Category: ",d.jsx("strong",{children:K.analysis.category}),"."]})]}),(($=(te=K.analysis)==null?void 0:te.keywords)==null?void 0:$.length)>0&&d.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:K.analysis.keywords.slice(0,5).map(P=>d.jsx("span",{style:{padding:"3px 10px",background:"#fed7aa",color:"#9a3412",fontSize:10,fontWeight:700,borderRadius:999},children:P},P))})]}),d.jsx("button",{onClick:X,style:{background:"none",border:"none",cursor:"pointer",color:"#fdba74"},children:d.jsx(un,{style:{width:16,height:16}})})]}),d.jsx($l,{children:S&&d.jsx(et.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},style:{overflow:"hidden",marginBottom:12},children:d.jsxs("div",{style:{background:"#fff",borderRadius:18,border:"1.5px solid #e2e8f0",padding:"20px 24px",boxShadow:"0 2px 12px rgba(0,0,0,0.05)"},children:[d.jsxs("div",{style:{marginBottom:16},children:[d.jsxs("div",{style:{fontSize:10,fontWeight:900,textTransform:"uppercase",letterSpacing:"0.12em",color:"#94a3b8",marginBottom:10,display:"flex",alignItems:"center",gap:6},children:[d.jsx(Nr,{style:{width:12,height:12}})," Distance",!n&&d.jsx("span",{style:{fontWeight:500,fontSize:10,color:"#cbd5e1"},children:"(set location first)"})]}),d.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:pB.map(P=>d.jsx("button",{onClick:()=>G(P.value),disabled:P.value!=="nationwide"&&!n,style:{...Y===P.value?Gu:Ku,opacity:P.value!=="nationwide"&&!n?.4:1},children:P.label},P.value))})]}),d.jsxs("div",{style:{marginBottom:16},children:[d.jsx("div",{style:{fontSize:10,fontWeight:900,textTransform:"uppercase",letterSpacing:"0.12em",color:"#94a3b8",marginBottom:10},children:"Category"}),d.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:fB.map(P=>d.jsx("button",{onClick:()=>E(P),style:b===P?Gu:Ku,children:P},P))})]}),d.jsxs("div",{style:{marginBottom:16},children:[d.jsx("div",{style:{fontSize:10,fontWeight:900,textTransform:"uppercase",letterSpacing:"0.12em",color:"#94a3b8",marginBottom:10},children:"Listing Type"}),d.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:hB.map(({value:P,label:W})=>d.jsx("button",{onClick:()=>k(P),style:_===P?Gu:Ku,children:W},P))})]}),d.jsxs("div",{style:{marginBottom:Z>0?16:0},children:[d.jsx("div",{style:{fontSize:10,fontWeight:900,textTransform:"uppercase",letterSpacing:"0.12em",color:"#94a3b8",marginBottom:10},children:"Sort By"}),d.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:[["newest","Newest First"],["price_asc","Price ↑"],["price_desc","Price ↓"],["distance","Nearest First"]].map(([P,W])=>d.jsx("button",{onClick:()=>M(P),disabled:P==="distance"&&!n,style:{...B===P?Gu:Ku,opacity:P==="distance"&&!n?.4:1},children:W},P))})]}),Z>0&&d.jsxs("button",{onClick:()=>{E("All"),k("All"),M("newest"),G("nationwide")},style:{display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",color:"#94a3b8",fontSize:12,fontWeight:600},children:[d.jsx(un,{style:{width:13,height:13}})," Clear all filters"]})]})})}),d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:20,flexWrap:"wrap"}
363,children:[!p&&!K&&d.jsxs("span",{style:{fontSize:13,color:"#94a3b8"},children:[d.jsx("strong",{style:{color:"#0f172a"},children:Q.length})," listing",Q.length!==1?"s":"",g&&d.jsxs(d.Fragment,{children:[' for "',d.jsx("em",{style:{color:"#0f172a"},children:g}),'"']})]}),u&&d.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:"#94a3b8"},children:[d.jsx(o_,{style:{width:13,height:13,animation:"spin 1s linear infinite"}})," Computing distances…"]})]}),K&&d.jsxs("div",{style:{marginBottom:40},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:16},children:[d.jsx(Er,{style:{width:20,height:20,color:"#f97316"}}),d.jsx("h2",{style:{fontFamily:"'Fraunces', serif",fontWeight:700,fontSize:22,color:"#0f172a",margin:0},children:"Matches Your Photo"}),d.jsxs("span",{style:{fontSize:13,color:"#94a3b8"},children:["(",K.matches.length," results)"]})]}),K.matches.length===0?d.jsxs("div",{style:{textAlign:"center",padding:"3rem",background:"#fff",borderRadius:20,border:"1.5px solid #f1f5f9"},children:[d.jsx(Er,{style:{width:40,height:40,color:"#e2e8f0",margin:"0 auto 12px"}}),d.jsx("p",{style:{fontWeight:700,color:"#0f172a",marginBottom:6},children:"No close matches found"}),d.jsx("p",{style:{color:"#94a3b8",fontSize:13},children:"Try a different photo or browse all listings below."})]}):d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:16},className:"cards-grid",children:[d.jsx("style",{children:"@media(max-width:900px){.cards-grid{grid-template-columns:repeat(3,1fr)!important}}@media(max-width:600px){.cards-grid{grid-template-columns:repeat(2,1fr)!important}}"}),K.matches.map((P,W)=>d.jsx(Zi,{listing:P,index:W,distanceMiles:P.distanceMiles},P.id))]}),d.jsx("div",{style:{marginTop:32,paddingTop:32,borderTop:"1.5px solid #f1f5f9"},children:d.jsx("h2",{style:{fontFamily:"'Fraunces', serif",fontWeight:700,fontSize:22,color:"#0f172a",marginBottom:16},children:"All Listings"})})]}),p?d.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:16},className:"cards-grid",children:[...Array(8)].map((P,W)=>d.jsxs("div",{style:{background:"#fff",borderRadius:20,border:"1px solid #f1f5f9",overflow:"hidden"},children:[d.jsx("div",{style:{paddingTop:"75%",background:"#f8fafc",animation:"pulse 1.5s ease-in-out infinite"}}),d.jsxs("div",{style:{padding:16},children:[d.jsx("div",{style:{height:14,borderRadius:8,background:"#f1f5f9",width:"75%",marginBottom:8}}),d.jsx("div",{style:{height:11,borderRadius:8,background:"#f1f5f9",width:"50%"}})]})]},W))}):N==="map"?d.jsx(w.Suspense,{fallback:d.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"4rem 0"},children:d.jsx("div",{style:{width:32,height:32,border:"4px solid #e0f2fe",borderTopColor:"#06b6d4",borderRadius:"50%",animation:"spin 0.8s linear infinite"}})}),children:d.jsx(uB,{listings:Q,userLocation:n})}):Q.length===0?d.jsxs("div",{style:{textAlign:"center",padding:"5rem 2rem",background:"#fff",borderRadius:24,border:"2px dashed #e2e8f0"},children:[d.jsx(fa,{style:{width:48,height:48,color:"#e2e8f0",margin:"0 auto 16px"}}),d.jsx("h3",{style:{fontWeight:800,fontSize:18,color:"#0f172a",marginBottom:8},children:"No items match"}),d.jsx("p",{style:{color:"#94a3b8",fontSize:13,marginBottom:24},children:"Try another search or post one."}),d.jsxs("div",{style:{display:"flex",gap:10,justifyContent:"center",flexWrap:"wrap"},children:[d.jsx("button",{onClick:()=>{v(""),E("All"),k("All"),G("nationwide")},style:{padding:"10px 24px",borderRadius:12,border:"1.5px solid #e2e8f0",background:"#fff",color:"#64748b",fontSize:13,fontWeight:700,cursor:"pointer"},children:"Clear all filters"}),d.jsx(Ue,{to:"/create",style:{padding:"10px 24px",borderRadius:12,border:"none",background:"#FF6B35",color:"#fff",fontSize:13,fontWeight:700,cursor:"pointer",textDecoration:"none",display:"inline-block"},children:"Post an item"})]})]}):d.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:16},className:"cards-grid",children:Q.map((P,W)=>d.jsx(Zi,{listing:P,index:W,distanceMiles:P.distanceMiles},P.id))})]})]})}function Z1(e,t){if(typeof e=="function")return e(t);
vendor: 18,735 bytes, line 363
363e!=null&&(e.current=t)}function yc(...e){return t=>{let n=!1;const r=e.map(i=>{const a=Z1(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():Z1(e[i],null)}}}}function Dt(...e){return w.useCallback(yc(...e),e)}var gB=Symbol.for("react.lazy"),Ld=Gd[" use ".trim().toString()];function yB(e){return typeof e=="object"&&e!==null&&"then"in e}function EC(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===gB&&"_payload"in e&&yB(e._payload)}function vB(e){const t=wB(e),n=w.forwardRef((r,i)=>{let{children:a,...l}=r;EC(a)&&typeof Ld=="function"&&(a=Ld(a._payload));const u=w.Children.toArray(a),f=u.find(SB);if(f){const p=f.props.children,m=u.map(g=>g===f?w.Children.count(p)>1?w.Children.only(null):w.isValidElement(p)?p.props.children:null:g);return d.jsx(t,{...l,ref:i,children:w.isValidElement(p)?w.cloneElement(p,void 0,m):null})}return d.jsx(t,{...l,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var xB=vB("Slot");function wB(e){const t=w.forwardRef((n,r)=>{let{children:i,...a}=n;if(EC(i)&&typeof Ld=="function"&&(i=Ld(i._payload)),w.isValidElement(i)){const l=kB(i),u=_B(a,i.props);return i.type!==w.Fragment&&(u.ref=r?yc(r,l):l),w.cloneElement(i,u)}return w.Children.count(i)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bB=Symbol("radix.slottable");function SB(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bB}function _B(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...u)=>{const f=a(...u);return i(...u),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function kB(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const EB=XS("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),bt=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const l=r?xB:"button";return d.jsx(l,{className:Mt(EB({variant:t,size:n,className:e})),ref:a,...i})});bt.displayName="Button";const $o=w.forwardRef(({className:e,type:t,...n},r)=>d.jsx("input",{type:t,className:Mt("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors 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-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));$o.displayName="Input";const vc=w.forwardRef(({className:e,...t},n)=>d.jsx("textarea",{className:Mt("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));vc.displayName="Textarea";function J1(e,[t,n]){return Math.min(n,Math.max(t,e))}function Je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function xc(e,t=[]){let n=[];function r(a,l){const u=w.createContext(l),f=n.length;n=[...n,l];const p=g=>{var S;const{scope:v,children:b,...E}=g,_=((S=v==null?void 0:v[e])==null?void 0:S[f])||u,k=w.useMemo(()=>E,Object.values(E));return d.jsx(_.Provider,{value:k,children:b})};p.displayName=a+"Provider";function m(g,v){var _;const b=((_=v==null?void 0:v[e])==null?void 0:_[f])||u,E=w.useContext(b);if(E)return E;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${a}\``)}return[p,m]}const i=()=>{const a=n.map(l=>w.createContext(l));return function(u){const f=(u==null?void 0:u[e])||a;return w.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return i.scopeName=e,[r,CB(i,...t)]}function CB(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const l=r.reduce((u,{useScope:f,scopeName:p})=>{const g=f(a)[`__scope${p}`];return{...u,...g}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function eS(e){const t=TB(e),n=w.forwardRef((r,i)=>{const{children:a,...l}=r,u=w.Children.toArray(a),f=u.find(RB);if(f){const p=f.props.children,m=u.map(g=>g===f?w.Children.count(p)>1?w.Children.only(null):w.isValidElement(p)?p.props.children:null:g);return d.jsx(t,{...l,ref:i,children:w.isValidElement(p)?w.cloneElement(p,void 0,m):null})}return d.jsx(t,{...l,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function TB(e){const t=w.forwardRef((n,r)=>{const{children:i,...a}=n;if(w.isValidElement(i)){const l=PB(i),u=NB(a,i.props);return i.type!==w.Fragment&&(u.ref=r?yc(r,l):l),w.cloneElement(i,u)}return w.Children.count(i)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jB=Symbol("radix.slottable");function RB(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jB}function NB(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...u)=>{const f=a(...u);return i(...u),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function PB(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function CC(e){const t=e+"CollectionProvider",[n,r]=xc(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:k,children:S}=_,R=Tn.useRef(null),C=Tn.useRef(new Map).current;return d.jsx(i,{scope:k,itemMap:C,collectionRef:R,children:S})};l.displayName=t;const u=e+"CollectionSlot",f=eS(u),p=Tn.forwardRef((_,k)=>{const{scope:S,children:R}=_,C=a(u,S),T=Dt(k,C.collectionRef);return d.jsx(f,{ref:T,children:R})});p.displayName=u;const m=e+"CollectionItemSlot",g="data-radix-collection-item",v=eS(m),b=Tn.forwardRef((_,k)=>{const{scope:S,children:R,...C}=_,T=Tn.useRef(null),N=Dt(k,T),O=a(m,S);return Tn.useEffect(()=>(O.itemMap.set(T,{ref:T,...C}),()=>void O.itemMap.delete(T))),d.jsx(v,{[g]:"",ref:N,children:R})});b.displayName=m;function E(_){const k=a(e+"CollectionConsumer",_);return Tn.useCallback(()=>{const R=k.collectionRef.current;if(!R)return[];const C=Array.from(R.querySelectorAll(`[${g}]`));return Array.from(k.itemMap.values()).sort((O,B)=>C.indexOf(O.ref.current)-C.indexOf(B.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:l,Slot:p,ItemSlot:b},E,r]}var AB=w.createContext(void 0);function Iy(e){const t=w.useContext(AB);return e||t||"ltr"}function OB(e){const t=MB(e),n=w.forwardRef((r,i)=>{const{children:a,...l}=r,u=w.Children.toArray(a),f=u.find(LB);if(f){const p=f.props.children,m=u.map(g=>g===f?w.Children.count(p)>1?w.Children.only(null):w.isValidElement(p)?p.props.children:null:g);return d.jsx(t,{...l,ref:i,children:w.isValidElement(p)?w.cloneElement(p,void 0,m):null})}return d.jsx(t,{...l,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function MB(e){const t=w.forwardRef((n,r)=>{const{children:i,...a}=n;if(w.isValidElement(i)){const l=FB(i),u=IB(a,i.props);return i.type!==w.Fragment&&(u.ref=r?yc(r,l):l),w.cloneElement(i,u)}return w.Children.count(i)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var DB=Symbol("radix.slottable");function LB(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===DB}function IB(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...u)=>{const f=a(...u);return i(...u),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function FB(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var BB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nt=BB.reduce((e,t)=>{const n=OB(`Primitive.${t}`),r=w.forwardRef((i,a)=>{const{asChild:l,...u}=i,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(f,{...u,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function UB(e,t){e&&ac.flushSync(()=>e.dispatchEvent(t))}function ri(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function VB(e,t=globalThis==null?void 0:globalThis.document){const n=ri(e);w.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var zB="DismissableLayer",ag="dismissableLayer.update",WB="dismissableLayer.pointerDownOutside",$B="dismissableLayer.focusOutside",tS,TC=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jC=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...f}=e,p=w.useContext(TC),[m,g]=w.useState(null),v=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=w.useState({}),E=Dt(t,B=>g(B)),_=Array.from(p.layers),[k]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),S=_.indexOf(k),R=m?_.indexOf(m):-1,C=p.layersWithOutsidePointerEventsDisabled.size>0,T=R>=S,N=qB(B=>{const M=B.target,Y=[...p.branches].some(G=>G.contains(M));!T||Y||(i==null||i(B),l==null||l(B),B.defaultPrevented||u==null||u())},v),O=GB(B=>{const M=B.target;[...p.branches].some(G=>G.contains(M))||(a==null||a(B),l==null||l(B),B.defaultPrevented||u==null||u())},v);return VB(B=>{R===p.layers.size-1&&(r==null||r(B),!B.defaultPrevented&&u&&(B.preventDefault(),u()))},v),w.useEffect(()=>{if(m)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(tS=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),nS(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=tS)}},[m,v,n,p]),w.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),nS())},[m,p]),w.useEffect(()=>{const B=()=>b({});return document.addEventListener(ag,B),()=>document.removeEventListener(ag,B)},[]),d.jsx(nt.div,{...f,ref:E,style:{pointerEvents:C?T?"auto":"none":void 0,...e.style},onFocusCapture:Je(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Je(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Je(e.onPointerDownCapture,N.onPointerDownCapture)})});jC.displayName=zB;var HB="DismissableLayerBranch",YB=w.forwardRef((e,t)=>{const n=w.useContext(TC),r=w.useRef(null),i=Dt(t,r);return w.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(nt.div,{...e,ref:i})});YB.displayName=HB;function qB(e,t=globalThis==null?void 0:globalThis.document){const n=ri(e),r=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const a=u=>{if(u.target&&!r.current){let f=function(){RC(WB,n,p,{discrete:!0})};const p={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=f,t.addEventListener("click",i.current,{once:!0})):f()}else t.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function GB(e,t=globalThis==null?void 0:globalThis.document){const n=ri(e),r=w.useRef(!1);return w.useEffect(()=>{const i=a=>{a.target&&!r.current&&RC($B,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function nS(){const e=new CustomEvent(ag);document.dispatchEvent(e)}function RC(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?UB(i,a):i.dispatchEvent(a)}var em=0;function KB(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rS()),document.body.insertAdjacentElement("beforeend",e[1]??rS()),em++,()=>{em===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),em--}},[])}function rS(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var tm="focusScope.autoFocusOnMount",nm="focusScope.autoFocusOnUnmount",sS={bubbles:!1,cancelable:!0},QB="FocusScope",NC=w.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...l}=e,[u,f]=w.useState(null),p=ri(i),m=ri(a),g=w.useRef(null),v=Dt(t,_=>f(_)),b=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let _=function(C){if(b.paused||!u)return;const T=C.target;u.contains(T)?g.current=T:Is(g.current,{select:!0})},k=function(C){if(b.paused||!u)return;const T=C.relatedTarget;T!==null&&(u.contains(T)||Is(g.current,{select:!0}))},S=function(C){if(document.activeElement===document.body)for(const N of C)N.removedNodes.length>0&&Is(u)};document.addEventListener("focusin",_),document.addEventListener("focusout",k);const R=new MutationObserver(S);return u&&R.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",k),R.disconnect()}}},[r,u,b.paused]),w.useEffect(()=>{if(u){oS.add(b);const _=document.activeElement;if(!u.contains(_)){const S=new CustomEvent(tm,sS);u.addEventListener(tm,p),u.dispatchEvent(S),S.defaultPrevented||(XB(n8(PC(u)),{select:!0}),document.activeElement===_&&Is(u))}return()=>{u.removeEventListener(tm,p),setTimeout(()=>{const S=new CustomEvent(nm,sS);u.addEventListener(nm,m),u.dispatchEvent(S),S.defaultPrevented||Is(_??document.body,{select:!0}),u.removeEventListener(nm,m),oS.remove(b)},0)}}},[u,p,m,b]);const E=w.useCallback(_=>{if(!n&&!r||b.paused)return;const k=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,S=document.activeElement;if(k&&S){const R=_.currentTarget,[C,T]=ZB(R);C&&T?!_.shiftKey&&S===T?(_.preventDefault(),n&&Is(C,{select:!0})):_.shiftKey&&S===C&&(_.preventDefault(),n&&Is(T,{select:!0})):S===R&&_.preventDefault()}},[n,r,b.paused]);return d.jsx(nt.div,{tabIndex:-1,...l,ref:v,onKeyDown:E})});NC.displayName=QB;function XB(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Is(r,{select:t}),document.activeElement!==n)return}function ZB(e){const t=PC(e),n=iS(t,e),r=iS(t.reverse(),e);return[n,r]}function PC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function iS(e,t){for(const n of e)if(!JB(n,{upTo:t}))return n}function JB(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function e8(e){return e instanceof HTMLInputElement&&"select"in e}function Is(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&e8(e)&&t&&e.select()}}var oS=t8();function t8(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=aS(e,t),e.unshift(t)},remove(t){var n;e=aS(e,t),(n=e[0])==null||n.resume()}}}function aS(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function n8(e){return e.filter(t=>t.tagName!=="A")}var on=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},r8=Gd[" useId ".trim().toString()]||(()=>{}),s8=0;function wc(e){const[t,n]=w.useState(r8());return on(()=>{n(r=>r??String(s8++))},[e]),t?`radix-${t}`:""}const i8=["top","right","bottom","left"],si=Math.min,jn=Math.max,Id=Math.round,Qu=Math.floor,Rr=e=>({x:e,y:e}),o8={left:"right",right:"left",bottom:"top",top:"bottom"},a8={start:"end",end:"start"};function lg(e,t,n){return jn(e,si(t,n))}function os(e,t){return typeof e=="function"?e(t):e}function as(e){return e.split("-")[0]}function Ca(e){return e.split("-")[1]}function Fy(e){return e==="x"?"y":"x"}function By(e){return e==="y"?"height":"width"}const l8=new Set(["top","bottom"]);function kr(e){return l8.has(as(e))?"y":"x"}function Uy(e){return Fy(kr(e))}function c8(e,t,n){n===void 0&&(n=!1);const r=Ca(e),i=Uy(e),a=By(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=Fd(l)),[l,Fd(l)]}function u8(e){const t=Fd(e);return[cg(e),t,cg(t)]}function cg(e){return e.replace(/start|end/g,t=>a8[t])}const lS=["left","right"],cS=["right","left"],d8=["top","bottom"],f8=["bottom","top"];function h8(e,t,n){switch(e){case"top":case"bottom":return n?t?cS:lS:t?lS:cS;case"left":case"right":return t?d8:f8;default:return[]}}function p8(e,t,n,r){const i=Ca(e);let a=h8(as(e),n==="start",r);
vendor: 11,050 bytes, line 363
363return i&&(a=a.map(l=>l+"-"+i),t&&(a=a.concat(a.map(cg)))),a}function Fd(e){return e.replace(/left|right|bottom|top/g,t=>o8[t])}function m8(e){return{top:0,right:0,bottom:0,left:0,...e}}function AC(e){return typeof e!="number"?m8(e):{top:e,right:e,bottom:e,left:e}}function Bd(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function uS(e,t,n){let{reference:r,floating:i}=e;const a=kr(t),l=Uy(t),u=By(l),f=as(t),p=a==="y",m=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,v=r[u]/2-i[u]/2;let b;switch(f){case"top":b={x:m,y:r.y-i.height};break;case"bottom":b={x:m,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:g};break;case"left":b={x:r.x-i.width,y:g};break;default:b={x:r.x,y:r.y}}switch(Ca(t)){case"start":b[l]-=v*(n&&p?-1:1);break;case"end":b[l]+=v*(n&&p?-1:1);break}return b}async function g8(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:l,elements:u,strategy:f}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:b=0}=os(t,e),E=AC(b),k=u[v?g==="floating"?"reference":"floating":g],S=Bd(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(k)))==null||n?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:p,rootBoundary:m,strategy:f})),R=g==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),T=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},N=Bd(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:R,offsetParent:C,strategy:f}):R);return{top:(S.top-N.top+E.top)/T.y,bottom:(N.bottom-S.bottom+E.bottom)/T.y,left:(S.left-N.left+E.left)/T.x,right:(N.right-S.right+E.right)/T.x}}const y8=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:l}=n,u=a.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let p=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:g}=uS(p,r,f),v=r,b={},E=0;for(let k=0;k<u.length;k++){var _;const{name:S,fn:R}=u[k],{x:C,y:T,data:N,reset:O}=await R({x:m,y:g,initialPlacement:r,placement:v,strategy:i,middlewareData:b,rects:p,platform:{...l,detectOverflow:(_=l.detectOverflow)!=null?_:g8},elements:{reference:e,floating:t}});m=C??m,g=T??g,b={...b,[S]:{...b[S],...N}},O&&E<=50&&(E++,typeof O=="object"&&(O.placement&&(v=O.placement),O.rects&&(p=O.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:m,y:g}=uS(p,v,f)),k=-1)}return{x:m,y:g,placement:v,strategy:i,middlewareData:b}},v8=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:l,elements:u,middlewareData:f}=t,{element:p,padding:m=0}=os(e,t)||{};if(p==null)return{};const g=AC(m),v={x:n,y:r},b=Uy(i),E=By(b),_=await l.getDimensions(p),k=b==="y",S=k?"top":"left",R=k?"bottom":"right",C=k?"clientHeight":"clientWidth",T=a.reference[E]+a.reference[b]-v[b]-a.floating[E],N=v[b]-a.reference[b],O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p));let B=O?O[C]:0;(!B||!await(l.isElement==null?void 0:l.isElement(O)))&&(B=u.floating[C]||a.floating[E]);const M=T/2-N/2,Y=B/2-_[E]/2-1,G=si(g[S],Y),K=si(g[R],Y),q=G,Q=B-_[E]-K,Z=B/2-_[E]/2+M,he=lg(q,Z,Q),X=!f.arrow&&Ca(i)!=null&&Z!==he&&a.reference[E]/2-(Z<q?G:K)-_[E]/2<0,re=X?Z<q?Z-q:Z-Q:0;return{[b]:v[b]+re,data:{[b]:he,centerOffset:Z-he-re,...X&&{alignmentOffset:re}},reset:X}}}),x8=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:l,initialPlacement:u,platform:f,elements:p}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:_=!0,...k}=os(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const S=as(i),R=kr(u),C=as(u)===u,T=await(f.isRTL==null?void 0:f.isRTL(p.floating)),N=v||(C||!_?[Fd(u)]:u8(u)),O=E!=="none";!v&&O&&N.push(...p8(u,_,E,T));const B=[u,...N],M=await f.detectOverflow(t,k),Y=[];let G=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&Y.push(M[S]),g){const Z=c8(i,l,T);Y.push(M[Z[0]],M[Z[1]])}if(G=[...G,{placement:i,overflows:Y}],!Y.every(Z=>Z<=0)){var K,q;const Z=(((K=a.flip)==null?void 0:K.index)||0)+1,he=B[Z];if(he&&(!(g==="alignment"?R!==kr(he):!1)||G.every(V=>kr(V.placement)===R?V.overflows[0]>0:!0)))return{data:{index:Z,overflows:G},reset:{placement:he}};let X=(q=G.filter(re=>re.overflows[0]<=0).sort((re,V)=>re.overflows[1]-V.overflows[1])[0])==null?void 0:q.placement;if(!X)switch(b){case"bestFit":{var Q;const re=(Q=G.filter(V=>{if(O){const te=kr(V.placement);return te===R||te==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(te=>te>0).reduce((te,$)=>te+$,0)]).sort((V,te)=>V[1]-te[1])[0])==null?void 0:Q[0];re&&(X=re);break}case"initialPlacement":X=u;break}if(i!==X)return{reset:{placement:X}}}return{}}}};function dS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fS(e){return i8.some(t=>e[t]>=0)}const w8=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...a}=os(e,t);switch(i){case"referenceHidden":{const l=await r.detectOverflow(t,{...a,elementContext:"reference"}),u=dS(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:fS(u)}}}case"escaped":{const l=await r.detectOverflow(t,{...a,altBoundary:!0}),u=dS(l,n.floating);return{data:{escapedOffsets:u,escaped:fS(u)}}}default:return{}}}}},OC=new Set(["left","top"]);async function b8(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=as(n),u=Ca(n),f=kr(n)==="y",p=OC.has(l)?-1:1,m=a&&f?-1:1,g=os(t,e);let{mainAxis:v,crossAxis:b,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof E=="number"&&(b=u==="end"?E*-1:E),f?{x:b*m,y:v*p}:{x:v*p,y:b*m}}const S8=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:l,middlewareData:u}=t,f=await b8(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:a+f.y,data:{...f,placement:l}}}}},_8=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:a}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:S=>{let{x:R,y:C}=S;return{x:R,y:C}}},...p}=os(e,t),m={x:n,y:r},g=await a.detectOverflow(t,p),v=kr(as(i)),b=Fy(v);let E=m[b],_=m[v];if(l){const S=b==="y"?"top":"left",R=b==="y"?"bottom":"right",C=E+g[S],T=E-g[R];E=lg(C,E,T)}if(u){const S=v==="y"?"top":"left",R=v==="y"?"bottom":"right",C=_+g[S],T=_-g[R];_=lg(C,_,T)}const k=f.fn({...t,[b]:E,[v]:_});return{...k,data:{x:k.x-n,y:k.y-r,enabled:{[b]:l,[v]:u}}}}}},k8=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:l}=t,{offset:u=0,mainAxis:f=!0,crossAxis:p=!0}=os(e,t),m={x:n,y:r},g=kr(i),v=Fy(g);let b=m[v],E=m[g];const _=os(u,t),k=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(f){const C=v==="y"?"height":"width",T=a.reference[v]-a.floating[C]+k.mainAxis,N=a.reference[v]+a.reference[C]-k.mainAxis;b<T?b=T:b>N&&(b=N)}if(p){var S,R;const C=v==="y"?"width":"height",T=OC.has(as(i)),N=a.reference[g]-a.floating[C]+(T&&((S=l.offset)==null?void 0:S[g])||0)+(T?0:k.crossAxis),O=a.reference[g]+a.reference[C]+(T?0:((R=l.offset)==null?void 0:R[g])||0)-(T?k.crossAxis:0);E<N?E=N:E>O&&(E=O)}return{[v]:b,[g]:E}}}},E8=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:l,elements:u}=t,{apply:f=()=>{},...p}=os(e,t),m=await l.detectOverflow(t,p),g=as(i),v=Ca(i),b=kr(i)==="y",{width:E,height:_}=a.floating;let k,S;g==="top"||g==="bottom"?(k=g,S=v===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(S=g,k=v==="end"?"top":"bottom");const R=_-m.top-m.bottom,C=E-m.left-m.right,T=si(_-m[k],R),N=si(E-m[S],C),O=!t.middlewareData.shift;let B=T,M=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(B=R),O&&!v){const G=jn(m.left,0),K=jn(m.right,0),q=jn(m.top,0),Q=jn(m.bottom,0);b?M=E-2*(G!==0||K!==0?G+K:jn(m.left,m.right)):B=_-2*(q!==0||Q!==0?q+Q:jn(m.top,m.bottom))}await f({...t,availableWidth:M,availableHeight:B});const Y=await l.getDimensions(u.floating);return E!==Y.width||_!==Y.height?{reset:{rects:!0}}:{}}}};function uf(){return typeof window<"u"}function Ta(e){return MC(e)?(e.nodeName||"").toLowerCase():"#document"}function Nn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mr(e){var t;return(t=(MC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function MC(e){return uf()?e instanceof Node||e instanceof Nn(e).Node:!1}function cr(e){return uf()?e instanceof Element||e instanceof Nn(e).Element:!1}function Ar(e){return uf()?e instanceof HTMLElement||e instanceof Nn(e).HTMLElement:!1}function hS(e){return!uf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nn(e).ShadowRoot}const C8=new Set(["inline","contents"]);function bc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!C8.has(i)}const T8=new Set(["table","td","th"]);function j8(e){return T8.has(Ta(e))}const R8=[":popover-open",":modal"];function df(e){return R8.some(t=>{try{return e.matches(t)}catch{return!1}})}const N8=["transform","translate","scale","rotate","perspective"],P8=["transform","translate","scale","rotate","perspective","filter"],A8=["paint","layout","strict","content"];function Vy(e){const t=zy(),n=cr(e)?ur(e):e;return N8.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||P8.some(r=>(n.willChange||"").includes(r))||A8.some(r=>(n.contain||"").includes(r))}function O8(e){let t=ii(e);for(;Ar(t)&&!ya(t);){if(Vy(t))return t;if(df(t))return null;t=ii(t)}return null}function zy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const M8=new Set(["html","body","#document"]);function ya(e){return M8.has(Ta(e))}function ur(e){return Nn(e).getComputedStyle(e)}function ff(e){return cr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ii(e){if(Ta(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hS(e)&&e.host||Mr(e);return hS(t)?t.host:t}function DC(e){const t=ii(e);return ya(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ar(t)&&bc(t)?t:DC(t)}function Ql(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=DC(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),l=Nn(i);if(a){const u=ug(l);
vendor: 20,651 bytes, line 363
363return t.concat(l,l.visualViewport||[],bc(i)?i:[],u&&n?Ql(u):[])}return t.concat(i,Ql(i,[],n))}function ug(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function LC(e){const t=ur(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ar(e),a=i?e.offsetWidth:n,l=i?e.offsetHeight:r,u=Id(n)!==a||Id(r)!==l;return u&&(n=a,r=l),{width:n,height:r,$:u}}function Wy(e){return cr(e)?e:e.contextElement}function Yo(e){const t=Wy(e);if(!Ar(t))return Rr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=LC(t);let l=(a?Id(n.width):n.width)/r,u=(a?Id(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const D8=Rr(0);function IC(e){const t=Nn(e);return!zy()||!t.visualViewport?D8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function L8(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nn(e)?!1:t}function Ji(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Wy(e);let l=Rr(1);t&&(r?cr(r)&&(l=Yo(r)):l=Yo(e));const u=L8(a,n,r)?IC(a):Rr(0);let f=(i.left+u.x)/l.x,p=(i.top+u.y)/l.y,m=i.width/l.x,g=i.height/l.y;if(a){const v=Nn(a),b=r&&cr(r)?Nn(r):r;let E=v,_=ug(E);for(;_&&r&&b!==E;){const k=Yo(_),S=_.getBoundingClientRect(),R=ur(_),C=S.left+(_.clientLeft+parseFloat(R.paddingLeft))*k.x,T=S.top+(_.clientTop+parseFloat(R.paddingTop))*k.y;f*=k.x,p*=k.y,m*=k.x,g*=k.y,f+=C,p+=T,E=Nn(_),_=ug(E)}}return Bd({width:m,height:g,x:f,y:p})}function hf(e,t){const n=ff(e).scrollLeft;return t?t.left+n:Ji(Mr(e)).left+n}function FC(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-hf(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function I8(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",l=Mr(r),u=t?df(t.floating):!1;if(r===l||u&&a)return n;let f={scrollLeft:0,scrollTop:0},p=Rr(1);const m=Rr(0),g=Ar(r);if((g||!g&&!a)&&((Ta(r)!=="body"||bc(l))&&(f=ff(r)),Ar(r))){const b=Ji(r);p=Yo(r),m.x=b.x+r.clientLeft,m.y=b.y+r.clientTop}const v=l&&!g&&!a?FC(l,f):Rr(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-f.scrollLeft*p.x+m.x+v.x,y:n.y*p.y-f.scrollTop*p.y+m.y+v.y}}function F8(e){return Array.from(e.getClientRects())}function B8(e){const t=Mr(e),n=ff(e),r=e.ownerDocument.body,i=jn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=jn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+hf(e);const u=-n.scrollTop;return ur(r).direction==="rtl"&&(l+=jn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:l,y:u}}const pS=25;function U8(e,t){const n=Nn(e),r=Mr(e),i=n.visualViewport;let a=r.clientWidth,l=r.clientHeight,u=0,f=0;if(i){a=i.width,l=i.height;const m=zy();(!m||m&&t==="fixed")&&(u=i.offsetLeft,f=i.offsetTop)}const p=hf(r);if(p<=0){const m=r.ownerDocument,g=m.body,v=getComputedStyle(g),b=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,E=Math.abs(r.clientWidth-g.clientWidth-b);E<=pS&&(a-=E)}else p<=pS&&(a+=p);return{width:a,height:l,x:u,y:f}}const V8=new Set(["absolute","fixed"]);function z8(e,t){const n=Ji(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ar(e)?Yo(e):Rr(1),l=e.clientWidth*a.x,u=e.clientHeight*a.y,f=i*a.x,p=r*a.y;return{width:l,height:u,x:f,y:p}}function mS(e,t,n){let r;if(t==="viewport")r=U8(e,n);else if(t==="document")r=B8(Mr(e));else if(cr(t))r=z8(t,n);else{const i=IC(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Bd(r)}function BC(e,t){const n=ii(e);return n===t||!cr(n)||ya(n)?!1:ur(n).position==="fixed"||BC(n,t)}function W8(e,t){const n=t.get(e);if(n)return n;let r=Ql(e,[],!1).filter(u=>cr(u)&&Ta(u)!=="body"),i=null;const a=ur(e).position==="fixed";let l=a?ii(e):e;for(;cr(l)&&!ya(l);){const u=ur(l),f=Vy(l);!f&&u.position==="fixed"&&(i=null),(a?!f&&!i:!f&&u.position==="static"&&!!i&&V8.has(i.position)||bc(l)&&!f&&BC(e,l))?r=r.filter(m=>m!==l):i=u,l=ii(l)}return t.set(e,r),r}function $8(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?df(t)?[]:W8(t,this._c):[].concat(n),r],u=l[0],f=l.reduce((p,m)=>{const g=mS(t,m,i);return p.top=jn(g.top,p.top),p.right=si(g.right,p.right),p.bottom=si(g.bottom,p.bottom),p.left=jn(g.left,p.left),p},mS(t,u,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function H8(e){const{width:t,height:n}=LC(e);return{width:t,height:n}}function Y8(e,t,n){const r=Ar(t),i=Mr(t),a=n==="fixed",l=Ji(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const f=Rr(0);function p(){f.x=hf(i)}if(r||!r&&!a)if((Ta(t)!=="body"||bc(i))&&(u=ff(t)),r){const b=Ji(t,!0,a,t);f.x=b.x+t.clientLeft,f.y=b.y+t.clientTop}else i&&p();a&&!r&&i&&p();const m=i&&!r&&!a?FC(i,u):Rr(0),g=l.left+u.scrollLeft-f.x-m.x,v=l.top+u.scrollTop-f.y-m.y;return{x:g,y:v,width:l.width,height:l.height}}function rm(e){return ur(e).position==="static"}function gS(e,t){if(!Ar(e)||ur(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Mr(e)===n&&(n=n.ownerDocument.body),n}function UC(e,t){const n=Nn(e);if(df(e))return n;if(!Ar(e)){let i=ii(e);for(;i&&!ya(i);){if(cr(i)&&!rm(i))return i;i=ii(i)}return n}let r=gS(e,t);for(;r&&j8(r)&&rm(r);)r=gS(r,t);return r&&ya(r)&&rm(r)&&!Vy(r)?n:r||O8(e)||n}const q8=async function(e){const t=this.getOffsetParent||UC,n=this.getDimensions,r=await n(e.floating);return{reference:Y8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function G8(e){return ur(e).direction==="rtl"}const K8={convertOffsetParentRelativeRectToViewportRelativeRect:I8,getDocumentElement:Mr,getClippingRect:$8,getOffsetParent:UC,getElementRects:q8,getClientRects:F8,getDimensions:H8,getScale:Yo,isElement:cr,isRTL:G8};function VC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Q8(e,t){let n=null,r;const i=Mr(e);function a(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),a();const p=e.getBoundingClientRect(),{left:m,top:g,width:v,height:b}=p;if(u||t(),!v||!b)return;const E=Qu(g),_=Qu(i.clientWidth-(m+v)),k=Qu(i.clientHeight-(g+b)),S=Qu(m),C={rootMargin:-E+"px "+-_+"px "+-k+"px "+-S+"px",threshold:jn(0,si(1,f))||1};let T=!0;function N(O){const B=O[0].intersectionRatio;if(B!==f){if(!T)return l();B?l(!1,B):r=setTimeout(()=>{l(!1,1e-7)},1e3)}B===1&&!VC(p,e.getBoundingClientRect())&&l(),T=!1}try{n=new IntersectionObserver(N,{...C,root:i.ownerDocument})}catch{n=new IntersectionObserver(N,C)}n.observe(e)}return l(!0),a}function X8(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,p=Wy(e),m=i||a?[...p?Ql(p):[],...Ql(t)]:[];m.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),a&&S.addEventListener("resize",n)});const g=p&&u?Q8(p,n):null;let v=-1,b=null;l&&(b=new ResizeObserver(S=>{let[R]=S;R&&R.target===p&&b&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var C;(C=b)==null||C.observe(t)})),n()}),p&&!f&&b.observe(p),b.observe(t));let E,_=f?Ji(e):null;f&&k();function k(){const S=Ji(e);_&&!VC(_,S)&&n(),_=S,E=requestAnimationFrame(k)}return n(),()=>{var S;m.forEach(R=>{i&&R.removeEventListener("scroll",n),a&&R.removeEventListener("resize",n)}),g==null||g(),(S=b)==null||S.disconnect(),b=null,f&&cancelAnimationFrame(E)}}const Z8=S8,J8=_8,eU=x8,tU=E8,nU=w8,yS=v8,rU=k8,sU=(e,t,n)=>{const r=new Map,i={platform:K8,...n},a={...i.platform,_c:r};return y8(e,t,{...i,platform:a})};var iU=typeof document<"u",oU=function(){},gd=iU?w.useLayoutEffect:oU;function Ud(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ud(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Ud(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function zC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vS(e,t){const n=zC(e);return Math.round(t*n)/n}function sm(e){const t=w.useRef(e);return gd(()=>{t.current=e}),t}function aU(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:f,open:p}=e,[m,g]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,b]=w.useState(r);Ud(v,r)||b(r);const[E,_]=w.useState(null),[k,S]=w.useState(null),R=w.useCallback(V=>{V!==O.current&&(O.current=V,_(V))},[]),C=w.useCallback(V=>{V!==B.current&&(B.current=V,S(V))},[]),T=a||E,N=l||k,O=w.useRef(null),B=w.useRef(null),M=w.useRef(m),Y=f!=null,G=sm(f),K=sm(i),q=sm(p),Q=w.useCallback(()=>{if(!O.current||!B.current)return;const V={placement:t,strategy:n,middleware:v};K.current&&(V.platform=K.current),sU(O.current,B.current,V).then(te=>{const $={...te,isPositioned:q.current!==!1};Z.current&&!Ud(M.current,$)&&(M.current=$,ac.flushSync(()=>{g($)}))})},[v,t,n,K,q]);gd(()=>{p===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,g(V=>({...V,isPositioned:!1})))},[p]);const Z=w.useRef(!1);gd(()=>(Z.current=!0,()=>{Z.current=!1}),[]),gd(()=>{if(T&&(O.current=T),N&&(B.current=N),T&&N){if(G.current)return G.current(T,N,Q);Q()}},[T,N,Q,G,Y]);const he=w.useMemo(()=>({reference:O,floating:B,setReference:R,setFloating:C}),[R,C]),X=w.useMemo(()=>({reference:T,floating:N}),[T,N]),re=w.useMemo(()=>{const V={position:n,left:0,top:0};if(!X.floating)return V;const te=vS(X.floating,m.x),$=vS(X.floating,m.y);return u?{...V,transform:"translate("+te+"px, "+$+"px)",...zC(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:$}},[n,u,X.floating,m.x,m.y]);return w.useMemo(()=>({...m,update:Q,refs:he,elements:X,floatingStyles:re}),[m,Q,he,X,re])}const lU=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?yS({element:r.current,padding:i}).fn(n):{}:r?yS({element:r,padding:i}).fn(n):{}}}},cU=(e,t)=>({...Z8(e),options:[e,t]}),uU=(e,t)=>({...J8(e),options:[e,t]}),dU=(e,t)=>({...rU(e),options:[e,t]}),fU=(e,t)=>({...eU(e),options:[e,t]}),hU=(e,t)=>({...tU(e),options:[e,t]}),pU=(e,t)=>({...nU(e),options:[e,t]}),mU=(e,t)=>({...lU(e),options:[e,t]});var gU="Arrow",WC=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return d.jsx(nt.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});WC.displayName=gU;var yU=WC;function vU(e){const[t,n]=w.useState(void 0);return on(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let l,u;if("borderBoxSize"in a){const f=a.borderBoxSize,p=Array.isArray(f)?f[0]:f;l=p.inlineSize,u=p.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var $y="Popper",[$C,HC]=xc($y),[xU,YC]=$C($y),qC=e=>{const{__scopePopper:t,children:n}=e,[r,i]=w.useState(null);return d.jsx(xU,{scope:t,anchor:r,onAnchorChange:i,children:n})};qC.displayName=$y;var GC="PopperAnchor",KC=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=YC(GC,n),l=w.useRef(null),u=Dt(t,l),f=w.useRef(null);return w.useEffect(()=>{const p=f.current;f.current=(r==null?void 0:r.current)||l.current,p!==f.current&&a.onAnchorChange(f.current)}),r?null:d.jsx(nt.div,{...i,ref:u})});KC.displayName=GC;var Hy="PopperContent",[wU,bU]=$C(Hy),QC=w.forwardRef((e,t)=>{var ie,be,Se,Me,Le,Oe;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:g="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:E,..._}=e,k=YC(Hy,n),[S,R]=w.useState(null),C=Dt(t,it=>R(it)),[T,N]=w.useState(null),O=vU(T),B=(O==null?void 0:O.width)??0,M=(O==null?void 0:O.height)??0,Y=r+(a!=="center"?"-"+a:""),G=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},K=Array.isArray(p)?p:[p],q=K.length>0,Q={padding:G,boundary:K.filter(_U),altBoundary:q},{refs:Z,floatingStyles:he,placement:X,isPositioned:re,middlewareData:V}=aU({strategy:"fixed",placement:Y,whileElementsMounted:(...it)=>X8(...it,{animationFrame:b==="always"}),elements:{reference:k.anchor},middleware:[cU({mainAxis:i+M,alignmentAxis:l}),f&&uU({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?dU():void 0,...Q}),f&&fU({...Q}),hU({...Q,apply:({elements:it,rects:ht,availableWidth:Lt,availableHeight:Ne})=>{const{width:pt,height:Sn}=ht.reference,qt=it.floating.style;qt.setProperty("--radix-popper-available-width",`${Lt}px`),qt.setProperty("--radix-popper-available-height",`${Ne}px`),qt.setProperty("--radix-popper-anchor-width",`${pt}px`),qt.setProperty("--radix-popper-anchor-height",`${Sn}px`)}}),T&&mU({element:T,padding:u}),kU({arrowWidth:B,arrowHeight:M}),v&&pU({strategy:"referenceHidden",...Q})]}),[te,$]=JC(X),P=ri(E);on(()=>{re&&(P==null||P())},[re,P]);const W=(ie=V.arrow)==null?void 0:ie.x,ce=(be=V.arrow)==null?void 0:be.y,de=((Se=V.arrow)==null?void 0:Se.centerOffset)!==0,[ge,ae]=w.useState();return on(()=>{S&&ae(window.getComputedStyle(S).zIndex)},[S]),d.jsx("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...he,transform:re?he.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Me=V.transformOrigin)==null?void 0:Me.x,(Le=V.transformOrigin)==null?void 0:Le.y].join(" "),...((Oe=V.hide)==null?void 0:Oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(wU,{scope:n,placedSide:te,onArrowChange:N,arrowX:W,arrowY:ce,shouldHideArrow:de,children:d.jsx(nt.div,{"data-side":te,"data-align":$,..._,ref:C,style:{..._.style,animation:re?void 0:"none"}})})})});QC.displayName=Hy;var XC="PopperArrow",SU={top:"bottom",right:"left",bottom:"top",left:"right"},ZC=w.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=bU(XC,r),l=SU[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:d.jsx(yU,{...i,ref:n,style:{...i.style,display:"block"}})})});ZC.displayName=XC;function _U(e){return e!==null}var kU=e=>({name:"transformOrigin",options:e,fn(t){var k,S,R;const{placement:n,rects:r,middlewareData:i}=t,l=((k=i.arrow)==null?void 0:k.centerOffset)!==0,u=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[p,m]=JC(n),g={start:"0%",center:"50%",end:"100%"}[m],v=(((S=i.arrow)==null?void 0:S.x)??0)+u/2,b=(((R=i.arrow)==null?void 0:R.y)??0)+f/2;let E="",_="";return p==="bottom"?(E=l?g:`${v}px`,_=`${-f}px`):p==="top"?(E=l?g:`${v}px`,_=`${r.floating.height+f}px`):p==="right"?(E=`${-f}px`,_=l?g:`${b}px`):p==="left"&&(E=`${r.floating.width+f}px`,_=l?g:`${b}px`),{data:{x:E,y:_}}}});function JC(e){const[t,n="center"]=e.split("-");return[t,n]}var EU=qC,CU=KC,TU=QC,jU=ZC,RU="Portal",eT=w.forwardRef((e,t)=>{var u;const{container:n,...r}=e,[i,a]=w.useState(!1);on(()=>a(!0),[]);const l=n||i&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return l?aO.createPortal(d.jsx(nt.div,{...r,ref:t}),l):null});eT.displayName=RU;function NU(e){const t=PU(e),n=w.forwardRef((r,i)=>{const{children:a,...l}=r,u=w.Children.toArray(a),f=u.find(OU);if(f){const p=f.props.children,m=u.map(g=>g===f?w.Children.count(p)>1?w.Children.only(null):w.isValidElement(p)?p.props.children:null:g);return d.jsx(t,{...l,ref:i,children:w.isValidElement(p)?w.cloneElement(p,void 0,m):null})}return d.jsx(t,{...l,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function PU(e){const t=w.forwardRef((n,r)=>{const{children:i,...a}=n;if(w.isValidElement(i)){const l=DU(i),u=MU(a,i.props);return i.type!==w.Fragment&&(u.ref=r?yc(r,l):l),w.cloneElement(i,u)}return w.Children.count(i)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var AU=Symbol("radix.slottable");function OU(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===AU}function MU(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...u)=>{const f=a(...u);return i(...u),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function DU(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var LU=Gd[" useInsertionEffect ".trim().toString()]||on;function Vd({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,l]=IU({defaultProp:t,onChange:n}),u=e!==void 0,f=u?e:i;{const m=w.useRef(e!==void 0);w.useEffect(()=>{const g=m.current;g!==u&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=u},[u,r])}const p=w.useCallback(m=>{var g;if(u){const v=FU(m)?m(e):m;v!==e&&((g=l.current)==null||g.call(l,v))}else a(m)},[u,e,a,l]);return[f,p]}function IU({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),i=w.useRef(n),a=w.useRef(t);return LU(()=>{a.current=t},[t]),w.useEffect(()=>{var l;i.current!==n&&((l=a.current)==null||l.call(a,n),i.current=n)},[n,i]),[n,r,a]}function FU(e){return typeof e=="function"}function BU(e){const t=w.useRef({value:e,previous:e});return w.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var tT=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),UU="VisuallyHidden",VU=w.forwardRef((e,t)=>d.jsx(nt.span,{...e,ref:t,style:{...tT,...e.style}}));VU.displayName=UU;var zU=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Oo=new WeakMap,Xu=new WeakMap,Zu={},im=0,nT=function(e){return e&&(e.host||nT(e.parentNode))},WU=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=nT(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$U=function(e,t,n,r){var i=WU(t,Array.isArray(e)?e:[e]);Zu[n]||(Zu[n]=new WeakMap);var a=Zu[n],l=[],u=new Set,f=new Set(i),p=function(g){!g||u.has(g)||(u.add(g),p(g.parentNode))};i.forEach(p);var m=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(v){if(u.has(v))m(v);else try{var b=v.getAttribute(r),E=b!==null&&b!=="false",_=(Oo.get(v)||0)+1,k=(a.get(v)||0)+1;Oo.set(v,_),a.set(v,k),l.push(v),_===1&&E&&Xu.set(v,!0),k===1&&v.setAttribute(n,"true"),E||v.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",v,S)}})};return m(t),u.clear(),im++,function(){l.forEach(function(g){var v=Oo.get(g)-1,b=a.get(g)-1;Oo.set(g,v),a.set(g,b),v||(Xu.has(g)||g.removeAttribute(r),Xu.delete(g)),b||g.removeAttribute(n)}),im--,im||(Oo=new WeakMap,Oo=new WeakMap,Xu=new WeakMap,Zu={})}},HU=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=zU(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),$U(r,i,n,"aria-hidden")):function(){return null}},Sr=function(){return Sr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Sr.apply(this,arguments)};function rT(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}
vendor: 5,048 bytes, lines 363-378
363function YU(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var yd="right-scroll-bar-position",vd="width-before-scroll-bar",qU="with-scroll-bars-hidden",GU="--removed-body-scroll-bar-size";function om(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function KU(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var QU=typeof window<"u"?w.useLayoutEffect:w.useEffect,xS=new WeakMap;function XU(e,t){var n=KU(null,function(r){return e.forEach(function(i){return om(i,r)})});return QU(function(){var r=xS.get(n);if(r){var i=new Set(r),a=new Set(e),l=n.current;i.forEach(function(u){a.has(u)||om(u,null)}),a.forEach(function(u){i.has(u)||om(u,l)})}xS.set(n,e)},[e]),n}function ZU(e){return e}function JU(e,t){t===void 0&&(t=ZU);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var l=t(a,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(a){for(r=!0;n.length;){var l=n;n=[],l.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(a),l=n}var f=function(){var m=l;l=[],m.forEach(a)},p=function(){return Promise.resolve().then(f)};p(),n={push:function(m){l.push(m),p()},filter:function(m){return l=l.filter(m),n}}}};return i}function eV(e){e===void 0&&(e={});var t=JU(null);return t.options=Sr({async:!0,ssr:!1},e),t}var sT=function(e){var t=e.sideCar,n=rT(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,Sr({},n))};sT.isSideCarExport=!0;function tV(e,t){return e.useMedium(t),sT}var iT=eV(),am=function(){},pf=w.forwardRef(function(e,t){var n=w.useRef(null),r=w.useState({onScrollCapture:am,onWheelCapture:am,onTouchMoveCapture:am}),i=r[0],a=r[1],l=e.forwardProps,u=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,b=e.noRelative,E=e.noIsolation,_=e.inert,k=e.allowPinchZoom,S=e.as,R=S===void 0?"div":S,C=e.gapMode,T=rT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=v,O=XU([n,t]),B=Sr(Sr({},T),i);return w.createElement(w.Fragment,null,m&&w.createElement(N,{sideCar:iT,removeScrollBar:p,shards:g,noRelative:b,noIsolation:E,inert:_,setCallbacks:a,allowPinchZoom:!!k,lockRef:n,gapMode:C}),l?w.cloneElement(w.Children.only(u),Sr(Sr({},B),{ref:O})):w.createElement(R,Sr({},B,{className:f,ref:O}),u))});pf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};pf.classNames={fullWidth:vd,zeroRight:yd};var nV=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rV(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nV();return t&&e.setAttribute("nonce",t),e}function sV(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function iV(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var oV=function(){var e=0,t=null;return{add:function(n){e==0&&(t=rV())&&(sV(t,n),iV(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},aV=function(){var e=oV();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},oT=function(){var e=aV(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},lV={left:0,top:0,right:0,gap:0},lm=function(e){return parseInt(e||"",10)||0},cV=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[lm(n),lm(r),lm(i)]},uV=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lV;var t=cV(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},dV=oT(),qo="data-scroll-locked",fV=function(e,t,n,r){var i=e.left,a=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
364  .`.concat(qU,` {
365   overflow: hidden `).concat(r,`;
366   padding-right: `).concat(u,"px ").concat(r,`;
367  }
368  body[`).concat(qo,`] {
369    overflow: hidden `).concat(r,`;
370    overscroll-behavior: contain;
371    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
372    padding-left: `.concat(i,`px;
373    padding-top: `).concat(a,`px;
374    padding-right: `).concat(l,`px;
375    margin-left:0;
376    margin-top:0;
377    margin-right: `).concat(u,"px ").concat(r,`;
378    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";
378")].filter(Boolean).join(""),`
379  }
380  
381  .`).concat(yd,` {
382    right: `).concat(u,"px ").concat(r,`;
383  }
384  
385  .`).concat(vd,` {
386    margin-right: `).concat(u,"px ").concat(r,`;
387  }
388  
389  .`).concat(yd," .").concat(yd,` {
390    right: 0 `).concat(r,`;
391  }
392  
393  .`).concat(vd," .").concat(vd,` {
394    margin-right: 0 `).concat(r,`;
395  }
396  
397  body[`).concat(qo,`] {
398    `).concat(GU,": ").concat(u,`px;
399  }
400`)},wS=function(){var e=parseInt(document.body.getAttribute(qo)||"0",10);return isFinite(e)?e:0},hV=function(){w.useEffect(function(){return document.body.setAttribute(qo,(wS()+1).toString()),function(){var e=wS()-1;e<=0?document.body.removeAttribute(qo):document.body.setAttribute(qo,e.toString())}},[])},pV=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;hV();var a=w.useMemo(function(){return uV(i)},[i]);return w.createElement(dV,{styles:fV(a,!t,i,n?"":"!important")})},dg=!1;if(typeof window<"u")try{var Ju=Object.defineProperty({},"passive",{get:function(){return dg=!0,!0}});window.addEventListener("test",Ju,Ju),window.removeEventListener("test",Ju,Ju)}catch{dg=!1}var Mo=dg?{passive:!1}:!1,mV=function(e){return e.tagName==="TEXTAREA"},aT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!mV(e)&&n[t]==="visible")},gV=function(e){return aT(e,"overflowY")},yV=function(e){return aT(e,"overflowX")},bS=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=lT(e,r);if(i){var a=cT(e,r),l=a[1],u=a[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},vV=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},xV=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},lT=function(e,t){return e==="v"?gV(t):yV(t)},cT=function(e,t){return e==="v"?vV(t):xV(t)},wV=function(e,t){return e==="h"&&t==="rtl"?-1:1},bV=function(e,t,n,r,i){var a=wV(e,window.getComputedStyle(t).direction),l=a*r,u=n.target,f=t.contains(u),p=!1,m=l>0,g=0,v=0;do{if(!u)break;var b=cT(e,u),E=b[0],_=b[1],k=b[2],S=_-k-a*E;(E||S)&&lT(e,u)&&(g+=S,v+=E);var R=u.parentNode;u=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(m&&Math.abs(g)<1||!m&&Math.abs(v)<1)&&(p=!0),p},ed=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},SS=function(e){return[e.deltaX,e.deltaY]},_S=function(e){return e&&"current"in e?e.current:e},SV=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_V=function(e){return`
401  .block-interactivity-`.concat(e,` {pointer-events: none;}
402  .allow-interactivity-`).concat(e,` {pointer-events: all;}
403`)},kV=0,Do=[];function EV(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),i=w.useState(kV++)[0],a=w.useState(oT)[0],l=w.useRef(e);w.useEffect(function(){l.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var _=YU([e.lockRef.current],(e.shards||[]).map(_S),!0).filter(Boolean);return _.forEach(function(k){return k.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),_.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=w.useCallback(function(_,k){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!l.current.allowPinchZoom;var S=ed(_),R=n.current,C="deltaX"in _?_.deltaX:R[0]-S[0],T="deltaY"in _?_.deltaY:R[1]-S[1],N,O=_.target,B=Math.abs(C)>Math.abs(T)?"h":"v";if("touches"in _&&B==="h"&&O.type==="range")return!1;var M=window.getSelection(),Y=M&&M.anchorNode,G=Y?Y===O||Y.contains(O):!1;if(G)return!1;var K=bS(B,O);if(!K)return!0;if(K?N=B:(N=B==="v"?"h":"v",K=bS(B,O)),!K)return!1;if(!r.current&&"changedTouches"in _&&(C||T)&&(r.current=N),!N)return!0;var q=r.current||N;return bV(q,k,_,q==="h"?C:T)},[]),f=w.useCallback(function(_){var k=_;if(!(!Do.length||Do[Do.length-1]!==a)){var S="deltaY"in k?SS(k):ed(k),R=t.current.filter(function(N){return N.name===k.type&&(N.target===k.target||k.target===N.shadowParent)&&SV(N.delta,S)})[0];if(R&&R.should){k.cancelable&&k.preventDefault();return}
vendor: 4,124 bytes, line 403
403if(!R){var C=(l.current.shards||[]).map(_S).filter(Boolean).filter(function(N){return N.contains(k.target)}),T=C.length>0?u(k,C[0]):!l.current.noIsolation;T&&k.cancelable&&k.preventDefault()}}},[]),p=w.useCallback(function(_,k,S,R){var C={name:_,delta:k,target:S,should:R,shadowParent:CV(S)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(T){return T!==C})},1)},[]),m=w.useCallback(function(_){n.current=ed(_),r.current=void 0},[]),g=w.useCallback(function(_){p(_.type,SS(_),_.target,u(_,e.lockRef.current))},[]),v=w.useCallback(function(_){p(_.type,ed(_),_.target,u(_,e.lockRef.current))},[]);w.useEffect(function(){return Do.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",f,Mo),document.addEventListener("touchmove",f,Mo),document.addEventListener("touchstart",m,Mo),function(){Do=Do.filter(function(_){return _!==a}),document.removeEventListener("wheel",f,Mo),document.removeEventListener("touchmove",f,Mo),document.removeEventListener("touchstart",m,Mo)}},[]);var b=e.removeScrollBar,E=e.inert;return w.createElement(w.Fragment,null,E?w.createElement(a,{styles:_V(i)}):null,b?w.createElement(pV,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function CV(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const TV=tV(iT,EV);var uT=w.forwardRef(function(e,t){return w.createElement(pf,Sr({},e,{ref:t,sideCar:TV}))});uT.classNames=pf.classNames;var jV=[" ","Enter","ArrowUp","ArrowDown"],RV=[" ","Enter"],eo="Select",[mf,gf,NV]=CC(eo),[ja]=xc(eo,[NV,HC]),yf=HC(),[PV,ci]=ja(eo),[AV,OV]=ja(eo),dT=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:l,defaultValue:u,onValueChange:f,dir:p,name:m,autoComplete:g,disabled:v,required:b,form:E}=e,_=yf(t),[k,S]=w.useState(null),[R,C]=w.useState(null),[T,N]=w.useState(!1),O=Iy(p),[B,M]=Vd({prop:r,defaultProp:i??!1,onChange:a,caller:eo}),[Y,G]=Vd({prop:l,defaultProp:u,onChange:f,caller:eo}),K=w.useRef(null),q=k?E||!!k.closest("form"):!0,[Q,Z]=w.useState(new Set),he=Array.from(Q).map(X=>X.props.value).join(";");return d.jsx(EU,{..._,children:d.jsxs(PV,{required:b,scope:t,trigger:k,onTriggerChange:S,valueNode:R,onValueNodeChange:C,valueNodeHasChildren:T,onValueNodeHasChildrenChange:N,contentId:wc(),value:Y,onValueChange:G,open:B,onOpenChange:M,dir:O,triggerPointerDownPosRef:K,disabled:v,children:[d.jsx(mf.Provider,{scope:t,children:d.jsx(AV,{scope:e.__scopeSelect,onNativeOptionAdd:w.useCallback(X=>{Z(re=>new Set(re).add(X))},[]),onNativeOptionRemove:w.useCallback(X=>{Z(re=>{const V=new Set(re);return V.delete(X),V})},[]),children:n})}),q?d.jsxs(DT,{"aria-hidden":!0,required:b,tabIndex:-1,name:m,autoComplete:g,value:Y,onChange:X=>G(X.target.value),disabled:v,form:E,children:[Y===void 0?d.jsx("option",{value:""}):null,Array.from(Q)]},he):null]})})};dT.displayName=eo;var fT="SelectTrigger",hT=w.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,a=yf(n),l=ci(fT,n),u=l.disabled||r,f=Dt(t,l.onTriggerChange),p=gf(n),m=w.useRef("touch"),[g,v,b]=IT(_=>{const k=p().filter(C=>!C.disabled),S=k.find(C=>C.value===l.value),R=FT(k,_,S);R!==void 0&&l.onValueChange(R.value)}),E=_=>{u||(l.onOpenChange(!0),b()),_&&(l.triggerPointerDownPosRef.current={x:Math.round(_.pageX),y:Math.round(_.pageY)})};return d.jsx(CU,{asChild:!0,...a,children:d.jsx(nt.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":LT(l.value)?"":void 0,...i,ref:f,onClick:Je(i.onClick,_=>{_.currentTarget.focus(),m.current!=="mouse"&&E(_)}),onPointerDown:Je(i.onPointerDown,_=>{m.current=_.pointerType;const k=_.target;k.hasPointerCapture(_.pointerId)&&k.releasePointerCapture(_.pointerId),_.button===0&&_.ctrlKey===!1&&_.pointerType==="mouse"&&(E(_),_.preventDefault())}),onKeyDown:Je(i.onKeyDown,_=>{const k=g.current!=="";!(_.ctrlKey||_.altKey||_.metaKey)&&_.key.length===1&&v(_.key),!(k&&_.key===" ")&&jV.includes(_.ke
vendor: 13,949 bytes, line 403
403y)&&(E(),_.preventDefault())})})})});hT.displayName=fT;var pT="SelectValue",mT=w.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:a,placeholder:l="",...u}=e,f=ci(pT,n),{onValueNodeHasChildrenChange:p}=f,m=a!==void 0,g=Dt(t,f.onValueNodeChange);return on(()=>{p(m)},[p,m]),d.jsx(nt.span,{...u,ref:g,style:{pointerEvents:"none"},children:LT(f.value)?d.jsx(d.Fragment,{children:l}):a})});mT.displayName=pT;var MV="SelectIcon",gT=w.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return d.jsx(nt.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});gT.displayName=MV;var DV="SelectPortal",yT=e=>d.jsx(eT,{asChild:!0,...e});yT.displayName=DV;var to="SelectContent",vT=w.forwardRef((e,t)=>{const n=ci(to,e.__scopeSelect),[r,i]=w.useState();if(on(()=>{i(new DocumentFragment)},[]),!n.open){const a=r;return a?ac.createPortal(d.jsx(xT,{scope:e.__scopeSelect,children:d.jsx(mf.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(wT,{...e,ref:t})});vT.displayName=to;var sr=10,[xT,ui]=ja(to),LV="SelectContentImpl",IV=NU("SelectContent.RemoveScroll"),wT=w.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:l,side:u,sideOffset:f,align:p,alignOffset:m,arrowPadding:g,collisionBoundary:v,collisionPadding:b,sticky:E,hideWhenDetached:_,avoidCollisions:k,...S}=e,R=ci(to,n),[C,T]=w.useState(null),[N,O]=w.useState(null),B=Dt(t,ie=>T(ie)),[M,Y]=w.useState(null),[G,K]=w.useState(null),q=gf(n),[Q,Z]=w.useState(!1),he=w.useRef(!1);w.useEffect(()=>{if(C)return HU(C)},[C]),KB();const X=w.useCallback(ie=>{const[be,...Se]=q().map(Oe=>Oe.ref.current),[Me]=Se.slice(-1),Le=document.activeElement;for(const Oe of ie)if(Oe===Le||(Oe==null||Oe.scrollIntoView({block:"nearest"}),Oe===be&&N&&(N.scrollTop=0),Oe===Me&&N&&(N.scrollTop=N.scrollHeight),Oe==null||Oe.focus(),document.activeElement!==Le))return},[q,N]),re=w.useCallback(()=>X([M,C]),[X,M,C]);w.useEffect(()=>{Q&&re()},[Q,re]);const{onOpenChange:V,triggerPointerDownPosRef:te}=R;w.useEffect(()=>{if(C){let ie={x:0,y:0};const be=Me=>{var Le,Oe;ie={x:Math.abs(Math.round(Me.pageX)-(((Le=te.current)==null?void 0:Le.x)??0)),y:Math.abs(Math.round(Me.pageY)-(((Oe=te.current)==null?void 0:Oe.y)??0))}},Se=Me=>{ie.x<=10&&ie.y<=10?Me.preventDefault():C.contains(Me.target)||V(!1),document.removeEventListener("pointermove",be),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",be),document.addEventListener("pointerup",Se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",be),document.removeEventListener("pointerup",Se,{capture:!0})}}},[C,V,te]),w.useEffect(()=>{const ie=()=>V(!1);return window.addEventListener("blur",ie),window.addEventListener("resize",ie),()=>{window.removeEventListener("blur",ie),window.removeEventListener("resize",ie)}},[V]);const[$,P]=IT(ie=>{const be=q().filter(Le=>!Le.disabled),Se=be.find(Le=>Le.ref.current===document.activeElement),Me=FT(be,ie,Se);Me&&setTimeout(()=>Me.ref.current.focus())}),W=w.useCallback((ie,be,Se)=>{const Me=!he.current&&!Se;(R.value!==void 0&&R.value===be||Me)&&(Y(ie),Me&&(he.current=!0))},[R.value]),ce=w.useCallback(()=>C==null?void 0:C.focus(),[C]),de=w.useCallback((ie,be,Se)=>{const Me=!he.current&&!Se;(R.value!==void 0&&R.value===be||Me)&&K(ie)},[R.value]),ge=r==="popper"?fg:bT,ae=ge===fg?{side:u,sideOffset:f,align:p,alignOffset:m,arrowPadding:g,collisionBoundary:v,collisionPadding:b,sticky:E,hideWhenDetached:_,avoidCollisions:k}:{};return d.jsx(xT,{scope:n,content:C,viewport:N,onViewportChange:O,itemRefCallback:W,selectedItem:M,onItemLeave:ce,itemTextRefCallback:de,focusSelectedItem:re,selectedItemText:G,position:r,isPositioned:Q,searchRef:$,children:d.jsx(uT,{as:IV,allowPinchZoom:!0,children:d.jsx(NC,{asChild:!0,trapped:R.open,onMountAutoFocus:ie=>{ie.preventDefault()},onUnmountAutoFocus:Je(i,ie=>{var be;(be=R.trigger)==null||be.focus({preventScroll:!0}),ie.preventDefault()}),children:d.jsx(jC,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:ie=>ie.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:d.jsx(ge,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:ie=>ie.preventDefault(),...S,...ae,onPlaced:()=>Z(!0),ref:B,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:Je(S.onKeyDown,ie=>{const be=ie.ctrlKey||ie.altKey||ie.metaKey;if(ie.key==="Tab"&&ie.preventDefault(),!be&&ie.key.length===1&&P(ie.key),["ArrowUp","ArrowDown","Home","End"].includes(ie.key)){let Me=q().filter(Le=>!Le.disabled).map(Le=>Le.ref.current);if(["ArrowUp","End"].includes(ie.key)&&(Me=Me.slice().reverse()),["ArrowUp","ArrowDown"].includes(ie.key)){const Le=ie.target,Oe=Me.indexOf(Le);Me=Me.slice(Oe+1)}setTimeout(()=>X(Me)),ie.preventDefault()}})})})})})})});wT.displayName=LV;var FV="SelectItemAlignedPosition",bT=w.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,a=ci(to,n),l=ui(to,n),[u,f]=w.useState(null),[p,m]=w.useState(null),g=Dt(t,B=>m(B)),v=gf(n),b=w.useRef(!1),E=w.useRef(!0),{viewport:_,selectedItem:k,selectedItemText:S,focusSelectedItem:R}=l,C=w.useCallback(()=>{if(a.trigger&&a.valueNode&&u&&p&&_&&k&&S){const B=a.trigger.getBoundingClientRect(),M=p.getBoundingClientRect(),Y=a.valueNode.getBoundingClientRect(),G=S.getBoundingClientRect();if(a.dir!=="rtl"){const Le=G.left-M.left,Oe=Y.left-Le,it=B.left-Oe,ht=B.width+it,Lt=Math.max(ht,M.width),Ne=window.innerWidth-sr,pt=J1(Oe,[sr,Math.max(sr,Ne-Lt)]);u.style.minWidth=ht+"px",u.style.left=pt+"px"}else{const Le=M.right-G.right,Oe=window.innerWidth-Y.right-Le,it=window.innerWidth-B.right-Oe,ht=B.width+it,Lt=Math.max(ht,M.width),Ne=window.innerWidth-sr,pt=J1(Oe,[sr,Math.max(sr,Ne-Lt)]);u.style.minWidth=ht+"px",u.style.right=pt+"px"}const K=v(),q=window.innerHeight-sr*2,Q=_.scrollHeight,Z=window.getComputedStyle(p),he=parseInt(Z.borderTopWidth,10),X=parseInt(Z.paddingTop,10),re=parseInt(Z.borderBottomWidth,10),V=parseInt(Z.paddingBottom,10),te=he+X+Q+V+re,$=Math.min(k.offsetHeight*5,te),P=window.getComputedStyle(_),W=parseInt(P.paddingTop,10),ce=parseInt(P.paddingBottom,10),de=B.top+B.height/2-sr,ge=q-de,ae=k.offsetHeight/2,ie=k.offsetTop+ae,be=he+X+ie,Se=te-be;if(be<=de){const Le=K.length>0&&k===K[K.length-1].ref.current;u.style.bottom="0px";const Oe=p.clientHeight-_.offsetTop-_.offsetHeight,it=Math.max(ge,ae+(Le?ce:0)+Oe+re),ht=be+it;u.style.height=ht+"px"}else{const Le=K.length>0&&k===K[0].ref.current;u.style.top="0px";const it=Math.max(de,he+_.offsetTop+(Le?W:0)+ae)+Se;u.style.height=it+"px",_.scrollTop=be-de+_.offsetTop}u.style.margin=`${sr}px 0`,u.style.minHeight=$+"px",u.style.maxHeight=q+"px",r==null||r(),requestAnimationFrame(()=>b.current=!0)}},[v,a.trigger,a.valueNode,u,p,_,k,S,a.dir,r]);on(()=>C(),[C]);const[T,N]=w.useState();on(()=>{p&&N(window.getComputedStyle(p).zIndex)},[p]);const O=w.useCallback(B=>{B&&E.current===!0&&(C(),R==null||R(),E.current=!1)},[C,R]);return d.jsx(UV,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:b,onScrollButtonChange:O,children:d.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:d.jsx(nt.div,{...i,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});bT.displayName=FV;var BV="SelectPopperPosition",fg=w.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=sr,...a}=e,l=yf(n);return d.jsx(TU,{...l,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});fg.displayName=BV;var[UV,Yy]=ja(to,{}),hg="SelectViewport",ST=w.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,a=ui(hg,n),l=Yy(hg,n),u=Dt(t,a.onViewportChange),f=w.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),d.jsx(mf.Slot,{scope:n,children:d.jsx(nt.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Je(i.onScroll,p=>{const m=p.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:v}=l;if(v!=null&&v.current&&g){const b=Math.abs(f.current-m.scrollTop);if(b>0){const E=window.innerHeight-sr*2,_=parseFloat(g.style.minHeight),k=parseFloat(g.style.height),S=Math.max(_,k);if(S<E){const R=S+b,C=Math.min(E,R),T=R-C;g.style.height=C+"px",g.style.bottom==="0px"&&(m.scrollTop=T>0?T:0,g.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});ST.displayName=hg;var _T="SelectGroup",[VV,zV]=ja(_T),WV=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=wc();return d.jsx(VV,{scope:n,id:i,children:d.jsx(nt.div,{role:"group","aria-labelledby":i,...r,ref:t})})});WV.displayName=_T;var kT="SelectLabel",ET=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=zV(kT,n);return d.jsx(nt.div,{id:i.id,...r,ref:t})});ET.displayName=kT;var zd="SelectItem",[$V,CT]=ja(zd),TT=w.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...l}=e,u=ci(zd,n),f=ui(zd,n),p=u.value===r,[m,g]=w.useState(a??""),[v,b]=w.useState(!1),E=Dt(t,R=>{var C;return(C=f.itemRefCallback)==null?void 0:C.call(f,R,r,i)}),_=wc(),k=w.useRef("touch"),S=()=>{i||(u.onValueChange(r),u.onOpenChange(!1))};if(r==="")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.");return d.jsx($V,{scope:n,value:r,disabled:i,textId:_,isSelected:p,onItemTextChange:w.useCallback(R=>{g(C=>C||((R==null?void 0:R.textContent)??"").trim())},[]),children:d.jsx(mf.ItemSlot,{scope:n,value:r,disabled:i,textValue:m,children:d.jsx(nt.div,{role:"option","aria-labelledby":_,"data-highlighted":v?"":void 0,"aria-selected":p&&v,"data-state":p?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:E,onFocus:Je(l.onFocus,()=>b(!0)),onBlur:Je(l.onBlur,()=>b(!1)),onClick:Je(l.onClick,()=>{k.current!=="mouse"&&S()}),onPointerUp:Je(l.onPointerUp,()=>{k.current==="mouse"&&S()}),onPointerDown:Je(l.onPointerDown,R=>{k.current=R.pointerType}),onPointerMove:Je(l.onPointerMove,R=>{var C;k.current=R.pointerType,i?(C=f.onItemLeave)==null||C.call(f):k.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(l.onPointerLeave,R=>{var C;R.currentTarget===document.activeElement&&((C=f.onItemLeave)==null||C.call(f))}),onKeyDown:Je(l.onKeyDown,R=>{var T;((T=f.searchRef)==null?void 0:T.current)!==""&&R.key===" "||(RV.includes(R.key)&&S(),R.key===" "&&R.preventDefault())})})})})});TT.displayName=zd;var Pl="SelectItemText",jT=w.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...a}=e,l=ci(Pl,n),u=ui(Pl,n),f=CT(Pl,n),p=OV(Pl,n),[m,g]=w.useState(null),v=Dt(t,S=>g(S),f.onItemTextChange,S=>{var R;return(R=u.itemTextRefCallback)==null?void 0:R.call(u,S,f.value,f.disabled)}),b=m==null?void 0:m.textContent,E=w.useMemo(()=>d.jsx("option",{value:f.value,disabled:f.disabled,children:b},f.value),[f.disabled,f.value,b]),{onNativeOptionAdd:_,onNativeOptionRemove:k}=p;return on(()=>(_(E),()=>k(E)),[_,k,E]),d.jsxs(d.Fragment,{children:[d.jsx(nt.span,{id:f.textId,...a,ref:v}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ac.createPortal(a.children,l.valueNode):null]})});jT.displayName=Pl;var RT="SelectItemIndicator",NT=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return CT(RT,n).isSelected?d.jsx(nt.span,{"aria-hidden":!0,...r,ref:t}):null});NT.displayName=RT;var pg="SelectScrollUpButton",PT=w.forwardRef((e,t)=>{const n=ui(pg,e.__scopeSelect),r=Yy(pg,e.__scopeSelect),[i,a]=w.useState(!1),l=Dt(t,r.onScrollButtonChange);return on(()=>{if(n.viewport&&n.isPositioned){let u=function(){const p=f.scrollTop>0;a(p)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?d.jsx(OT,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop-f.offsetHeight)}}):null});PT.displayName=pg;var mg="SelectScrollDownButton",AT=w.forwardRef((e,t)=>{const n=ui(mg,e.__scopeSelect),r=Yy(mg,e.__scopeSelect),[i,a]=w.useState(!1),l=Dt(t,r.onScrollButtonChange);return on(()=>{if(n.viewport&&n.isPositioned){let u=function(){const p=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<p;a(m)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?d.jsx(OT,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop+f.offsetHeight)}}):null});AT.displayName=mg;var OT=w.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,a=ui("SelectScrollButton",n),l=w.useRef(null),u=gf(n),f=w.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return w.useEffect(()=>()=>f(),[f]),on(()=>{var m;const p=u().find(g=>g.ref.current===document.activeElement);(m=p==null?void 0:p.ref.current)==null||m.scrollIntoView({block:"nearest"})},[u]),d.jsx(nt.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Je(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Je(i.onPointerMove,()=>{var p;(p=a.onItemLeave)==null||p.call(a),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Je(i.onPointerLeave,()=>{f()})})}),HV="SelectSeparator",MT=w.forwardRef((e,t)=>
vendor: 4,756 bytes, line 403
403{const{__scopeSelect:n,...r}=e;return d.jsx(nt.div,{"aria-hidden":!0,...r,ref:t})});MT.displayName=HV;var gg="SelectArrow",YV=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=yf(n),a=ci(gg,n),l=ui(gg,n);return a.open&&l.position==="popper"?d.jsx(jU,{...i,...r,ref:t}):null});YV.displayName=gg;var qV="SelectBubbleInput",DT=w.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=w.useRef(null),a=Dt(r,i),l=BU(t);return w.useEffect(()=>{const u=i.current;if(!u)return;const f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==t&&m){const g=new Event("change",{bubbles:!0});m.call(u,t),u.dispatchEvent(g)}},[l,t]),d.jsx(nt.select,{...n,style:{...tT,...n.style},ref:a,defaultValue:t})});DT.displayName=qV;function LT(e){return e===""||e===void 0}function IT(e){const t=ri(e),n=w.useRef(""),r=w.useRef(0),i=w.useCallback(l=>{const u=n.current+l;t(u),(function f(p){n.current=p,window.clearTimeout(r.current),p!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(u)},[t]),a=w.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return w.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function FT(e,t,n){const i=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let l=GV(e,Math.max(a,0));i.length===1&&(l=l.filter(p=>p!==n));const f=l.find(p=>p.textValue.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function GV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var KV=dT,BT=hT,QV=mT,XV=gT,ZV=yT,UT=vT,JV=ST,VT=ET,zT=TT,ez=jT,tz=NT,WT=PT,$T=AT,HT=MT;const kS=KV,ES=QV,yg=w.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(BT,{ref:r,className:Mt("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,d.jsx(XV,{asChild:!0,children:d.jsx(Og,{className:"h-4 w-4 opacity-50"})})]}));yg.displayName=BT.displayName;const YT=w.forwardRef(({className:e,...t},n)=>d.jsx(WT,{ref:n,className:Mt("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(LN,{className:"h-4 w-4"})}));YT.displayName=WT.displayName;const qT=w.forwardRef(({className:e,...t},n)=>d.jsx($T,{ref:n,className:Mt("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Og,{className:"h-4 w-4"})}));qT.displayName=$T.displayName;const vg=w.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>d.jsx(ZV,{children:d.jsxs(UT,{ref:i,className:Mt("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),position:n,...r,children:[d.jsx(YT,{}),d.jsx(JV,{className:Mt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),d.jsx(qT,{})]})}));vg.displayName=UT.displayName;const nz=w.forwardRef(({className:e,...t},n)=>d.jsx(VT,{ref:n,className:Mt("px-2 py-1.5 text-sm font-semibold",e),...t}));nz.displayName=VT.displayName;const xg=w.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(zT,{ref:r,className:Mt("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[d.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(tz,{children:d.jsx(t_,{className:"h-4 w-4"})})}),d.jsx(ez,{children:t})]}));xg.displayName=zT.displayName;const rz=w.forwardRef(({className:e,...t},n)=>d.jsx(HT,{ref:n,className:Mt("-mx-1 my-1 h-px bg-muted",e),...t}));rz.displayName=HT.displayName;function sz(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);let wg=1;class iz{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>
vendor: 3,664 bytes, line 403
403{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,a=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:wg++,l=this.toasts.find(f=>f.id===a),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),l?this.toasts=this.toasts.map(f=>f.id===a?(this.publish({...f,...t,id:a,title:r}),{...f,...t,id:a,dismissible:u,title:r}):f):this.addToast({title:r,...i,dismissible:u,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,l;const u=i.then(async p=>{if(l=["resolve",p],Tn.isValidElement(p))a=!1,this.create({id:r,type:"default",message:p});else if(az(p)&&!p.ok){a=!1;const g=typeof n.error=="function"?await n.error(`HTTP error! status: ${p.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${p.status}`):n.description,E=typeof g=="object"&&!Tn.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:v,...E})}else if(p instanceof Error){a=!1;const g=typeof n.error=="function"?await n.error(p):n.error,v=typeof n.description=="function"?await n.description(p):n.description,E=typeof g=="object"&&!Tn.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:v,...E})}else if(n.success!==void 0){a=!1;const g=typeof n.success=="function"?await n.success(p):n.success,v=typeof n.description=="function"?await n.description(p):n.description,E=typeof g=="object"&&!Tn.isValidElement(g)?g:{message:g};this.create({id:r,type:"success",description:v,...E})}}).catch(async p=>{if(l=["reject",p],n.error!==void 0){a=!1;const m=typeof n.error=="function"?await n.error(p):n.error,g=typeof n.description=="function"?await n.description(p):n.description,b=typeof m=="object"&&!Tn.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:g,...b})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((p,m)=>u.then(()=>l[0]==="reject"?m(l[1]):p(l[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:f}:Object.assign(r,{unwrap:f})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||wg++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Vn=new iz,oz=(e,t)=>{const n=(t==null?void 0:t.id)||wg++;return Vn.addToast({title:e,...t,id:n}),n},az=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",lz=oz,cz=()=>Vn.toasts,uz=()=>Vn.getActiveToasts(),wn=Object.assign(lz,{success:Vn.success,info:Vn.info,warning:Vn.warning,error:Vn.error,custom:Vn.custom,message:Vn.message,promise:Vn.promise,dismiss:Vn.dismiss,loading:Vn.loading},{getHistory:cz,getToasts:uz});sz
vendor: 4,787 bytes, line 403
403("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
vendor: 10,077 bytes, line 403
403left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
403const CS=["Electronics","Furniture","Clothing","Sports","Books","Home & Garden","Toys","Vehicles","Art","Music","Tools","Other"],dz=["New","Like New","Good","Fair","For Parts"];function fz(){const e=wa(),{user:t,isLoadingAuth:n}=qk(),[r,i]=w.useState(!1),[a,l]=w.useState(!1),[u,f]=w.useState(!1),[p,m]=w.useState({title:"",description:"",price:"",category:"",condition:"",listing_type:"both",trade_for:[],photos:[],location:""}),[g,v]=w.useState("");w.useEffect(()=>{!n&&!t&&ve.auth.redirectToLogin(window.location.href)},[n,t]);const b=(T,N)=>m(O=>({...O,[T]:N})),E=async T=>{const N=Array.from(T.target.files);if(N.length===0)return;l(!0);const O=[];for(const B of N){const{file_url:M}=await ve.integrations.Core.UploadFile({file:B});O.push(M)}b("photos",[...p.photos,...O]),l(!1)},_=T=>{b("photos",p.photos.filter((N,O)=>O!==T))},k=async()=>{if(p.photos.length===0){wn.error("Add at least one photo first");return}f(!0);try{const T=await ve.integrations.Core.InvokeLLM({prompt:`You are helping a user list an item on a buy/sell/barter marketplace called "No Longer Need It." Look at the photo(s) and generate a listing.
404Return ONLY a JSON object with:
405- title: a clear, catchy title (max 60 chars)
406- description: 2-3 sentences covering what the item is, its likely condition, and best use
407- category: exactly one of: Electronics, Furniture, Clothing, Sports, Books, Home & Garden, Toys, Vehicles, Art, Music, Tools, Other`,file_urls:p.photos,response_json_schema:{type:"object",properties:{title:{type:"string"},description:{type:"string"},category:{type:"string"}},required:["title","description","category"]}});m(N=>({...N,title:T.title||N.title,description:T.description||N.description,category:CS.includes(T.category)?T.category:N.category})),wn.success("AI filled in the details — review and edit!")}catch{wn.error("Could not generate from photos. Try again.")}f(!1)},S=()=>{g.trim()&&(b("trade_for",[...p.trade_for,g.trim()]),v(""))},R=T=>{b("trade_for",p.trade_for.filter((N,O)=>O!==T))},C=async()=>{if(!p.title||!p.description||!p.category||!p.location){wn.error("Please fill in all required fields");return}if(p.photos.length===0){wn.error("Please add at least one photo");return}i(!0);const T={...p,price:p.price?parseFloat(p.price):0,owner_name:(t==null?void 0:t.full_name)||(t==null?void 0:t.email)||"Anonymous",owner_email:t==null?void 0:t.email,status:"active"},N=await ve.entities.Listing.create(T);wn.success("Listing live!"),e(`/listing/${N.id}`)};return n||!t?d.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:d.jsx("div",{className:"w-8 h-8 border-4 border-muted border-t-secondary rounded-full animate-spin"})}):d.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 py-6 sm:py-8",children:[d.jsxs("div",{className:"mb-8",children:[d.jsx("h1",{className:"font-serif text-3xl text-foreground mb-2",children:"List an Item"}),d.jsx("p",{className:"text-muted-foreground text-sm",children:"Give your item a new life in the community"})]}),d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Photos *"}),d.jsxs("div",{className:"flex flex-wrap gap-3",children:[p.photos.map((T,N)=>d.jsxs("div",{className:"relative w-24 h-24 rounded-xl overflow-hidden border border-border",children:[d.jsx("img",{src:T,alt:"",className:"w-full h-full object-cover"}),d.jsx("button",{onClick:()=>_(N),className:"absolute top-1 right-1 w-5 h-5 bg-destructive text-destructive-foreground rounded-full flex items-center justify-center",children:d.jsx(un,{className:"w-3 h-3"})})]},N)),d.jsxs("label",{className:"w-24 h-24 rounded-xl border-2 border-dashed border-border hover:border-secondary cursor-pointer flex flex-col items-center justify-center gap-1 transition-colors",children:[a?d.jsx("div",{className:"w-5 h-5 border-2 border-muted border-t-secondary rounded-full animate-spin"}):d.jsxs(d.Fragment,{children:[d.jsx(d_,{className:"w-5 h-5 text-muted-foreground"}),d.jsx("span",{className:"text-[10px] text-muted-foreground",children:"Add photo"})]}),d.jsx("input",{type:"file",accept:"image/*",multiple:!0,onChange:E,className:"hidden"})]})]}),p.photos.length>0&&d.jsx("button",{type:"button",onClick:k,disabled:u,className:"w-full flex items-center justify-center gap-2 py-2.5 mt-3 bg-gradient-to-r from-cyan-500 to-blue-500 text-white rounded-xl text-sm font-semibold transition-all hover:opacity-90 disabled:opacity-60",children:u?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Analyzing photos…"]}):d.jsxs(d.Fragment,{children:[d.jsx(qi,{className:"w-4 h-4"}),"Auto-fill title & description from photos"]})})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Title *"}),d.jsx($o,{value:p.title,onChange:T=>b("title",T.target.value),placeholder:"What are you listing?",className:"rounded-xl"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Description *"}),d.jsx(vc,{value:p.description,onChange:T=>b("description",T.target.value),placeholder:"Describe the item, its condition, and any relevant details...",rows:4,className:"rounded-xl"})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Category *"}),d.jsxs(kS,{value:p.category,onValueChange:T=>b("category",T),children:[d.jsx(yg,{className:"rounded-xl",children:d.jsx(ES,{placeholder:"Select"})}),d.jsx(vg,{children:CS.map(T=>d.jsx(xg,{value:T,children:T},T))})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Condition"}),d.jsxs(kS,{value:p.condition,onValueChange:T=>b("condition",T),children:[d.jsx(yg,{className:"rounded-xl",children:d.jsx(ES,{placeholder:"Select"})}),d.jsx(vg,{children:dz.map(T=>d.jsx(xg,{value:T,children:T},T))})]})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Listing Type *"}),d.jsx("div",{className:"flex gap-2",children:[{value:"sell",label:"Sell Only"},{value:"trade",label:"Trade Only"},{value:"both",label:"Sell or Trade"}].map(T=>d.jsx("button",{onClick:()=>
407b("listing_type",T.value),className:`flex-1 py-2.5 px-4 rounded-xl text-sm font-medium border transition-all ${p.listing_type===T.value?"bg-secondary text-secondary-foreground border-secondary":"bg-card text-foreground border-border hover:border-secondary/50"}`,children:T.label},T.value))})]}),p.listing_type!=="trade"&&d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Price ($)"}),d.jsx($o,{type:"number",value:p.price,onChange:T=>b("price",T.target.value),placeholder:"0.00",className:"rounded-xl"})]}),p.listing_type!=="sell"&&d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Willing to trade for"}),d.jsxs("div",{className:"flex gap-2 mb-2",children:[d.jsx($o,{value:g,onChange:T=>v(T.target.value),onKeyDown:T=>T.key==="Enter"&&(T.preventDefault(),S()),placeholder:"e.g. bicycle, camera...",className:"rounded-xl"}),d.jsx(bt,{onClick:S,variant:"outline",className:"rounded-xl",children:d.jsx(c_,{className:"w-4 h-4"})})]}),d.jsx("div",{className:"flex flex-wrap gap-2",children:p.trade_for.map((T,N)=>d.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-accent/20 text-accent-foreground rounded-full text-xs font-medium",children:[T,d.jsx("button",{onClick:()=>R(N),children:d.jsx(un,{className:"w-3 h-3"})})]},N))})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Location *"}),d.jsx($o,{value:p.location,onChange:T=>b("location",T.target.value),placeholder:"City, State",className:"rounded-xl"})]}),d.jsx(bt,{onClick:C,disabled:r,className:"w-full bg-secondary hover:bg-secondary/90 text-secondary-foreground py-3 rounded-xl font-semibold",children:r?d.jsx("div",{className:"w-5 h-5 border-2 border-secondary-foreground/30 border-t-secondary-foreground rounded-full animate-spin"}):d.jsxs(d.Fragment,{children:[d.jsx(Kd,{className:"w-4 h-4 mr-2"}),"Publish Listing"]})})]})]})}function hz({listing:e,user:t,onClose:n,onSuccess:r}){const[i,a]=w.useState([]),[l,u]=w.useState([]),[f,p]=w.useState(""),[m,g]=w.useState("none"),[v,b]=w.useState(""),[E,_]=w.useState(!0),[k,S]=w.useState(!1);w.useEffect(()=>{ve.entities.Listing.filter({owner_email:t.email,status:"active"}).then(a).finally(()=>_(!1))},[]);const R=N=>{u(O=>O.find(B=>B.id===N.id)?O.filter(B=>B.id!==N.id):[...O,N])},C=async()=>{var N;if(l.length===0){wn.error("Select at least one item to offer");return}S(!0),await ve.entities.TradeOffer.create({listing_id:e.id,listing_title:e.title,listing_photo:((N=e.photos)==null?void 0:N[0])||"",owner_email:e.owner_email,owner_name:e.owner_name,offerer_email:t.email,offerer_name:t.full_name||t.email,offered_item_ids:l.map(O=>O.id),offered_item_titles:l.map(O=>O.title),offered_item_photos:l.map(O=>{var B;return((B=O.photos)==null?void 0:B[0])||""}),cash_amount:f?parseFloat(f):0,cash_direction:m,message:v,status:"pending"});try{await ve.functions.invoke("sendOfferNotification",{type:"new_offer",to_email:e.owner_email,to_name:e.owner_name,from_name:t.full_name||t.email,listing_title:e.title,offered_titles:l.map(O=>O.title)})}catch{}wn.success("Trade offer sent!"),r==null||r(),n(),S(!1)},T=m==="i_pay"?`I'll also pay $${f||"0"}`:m==="i_receive"?`You pay me $${f||"0"}`:null;return d.jsx("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4 bg-black/50 backdrop-blur-sm",onClick:n,children:d.jsxs("div",{className:"w-full sm:max-w-lg bg-card rounded-t-2xl sm:rounded-2xl border border-border shadow-2xl max-h-[90vh] overflow-y-auto",onClick:N=>N.stopPropagation(),children:[d.jsxs("div",{className:"flex items-center justify-between px-6 pt-6 pb-4 border-b border-border",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"font-serif text-xl text-foreground",children:"Make a Trade Offer"}),d.jsxs("p",{className:"text-xs text-muted-foreground mt-0.5",children:['for "',e.title,'"']})]}),d.jsx("button",{onClick:n,className:"p-2 hover:bg-muted rounded-xl transition-colors",children:d.jsx(un,{className:"w-5 h-5"})})]}),d.jsxs("div",{className:"px-6 py-5 space-y-5",children:[d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-2 block",children:"Your Items to Offer *"}),E?d.jsx("div",{className:"flex justify-center py-6",children:d.jsx("div",{className:"w-5 h-5 border-2 border-muted border-t-secondary rounded-full animate-spin"})}):i.length===0?d.jsxs("p",{className:"text-sm text-muted-foreground py-4 text-center bg-muted rounded-xl",children:["You have no active listings to trade. ",d.jsx("br",{}),d.jsx(Ue,{to:"/create",className:"text-secondary font-medium",children:"Create a listing first"})]}):d.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto pr-1",children:i.map(N=>{var B;const O=l.find(M=>M.id===N.id);return d.jsxs("button",{onClick:()=>R(N),className:`w-full flex items-center gap-3 p-3 rounded-xl border transition-all text-left ${O?"border-secondary bg-secondary/5":"border-border hover:border-secondary/40"}`,children:[d.jsx("div",{className:"w-10 h-10 rounded-lg overflow-hidden flex-shrink-0 bg-muted",children:((B=N.photos)==null?void 0:B[0])&&d.jsx("img",{src:N.photos[0],alt:"",className:"w-full h-full object-cover"})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:N.title}),d.jsx("p",{className:"text-xs text-muted-foreground",children:N.price>0?`$${N.price}`:"Trade only"})]}),d.jsx("div",{className:`w-5 h-5 rounded-full border-2 flex items-center justify-center flex-shrink-0 ${O?"border-secondary bg-secondary":"border-border"}`,children:O&&d.jsx(Mg,{className:"w-3.5 h-3.5 text-secondary-foreground"})})]},N.id)})})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-2 block",children:"Add Cash? (Optional)"}),d.jsx("div",{className:"flex gap-2 mb-2",children:[{value:"none",label:"No cash"},{value:"i_pay",label:"I'll pay extra"},{value:"i_receive",label:"You pay me"}].map(N=>d.jsx("button",{onClick:()=>
407g(N.value),className:`flex-1 py-2 px-2 rounded-lg text-xs font-medium border transition-all ${m===N.value?"bg-secondary text-secondary-foreground border-secondary":"bg-card text-foreground border-border hover:border-secondary/40"}`,children:N.label},N.value))}),m!=="none"&&d.jsx($o,{type:"number",value:f,onChange:N=>p(N.target.value),placeholder:"Amount in USD",className:"rounded-xl"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-2 block",children:"Message (Optional)"}),d.jsx(vc,{value:v,onChange:N=>b(N.target.value),placeholder:"Tell them about your item or why this is a great trade...",rows:3,className:"rounded-xl"})]}),l.length>0&&d.jsxs("div",{className:"p-4 bg-secondary/5 rounded-xl border border-secondary/20",children:[d.jsx("p",{className:"text-xs font-semibold text-secondary uppercase tracking-wider mb-2",children:"Your Offer Preview"}),d.jsxs("p",{className:"text-sm text-foreground leading-relaxed",children:[d.jsx("span",{className:"font-medium",children:"I offer "}),l.map(N=>N.title).join(", "),T&&d.jsxs("span",{className:"text-secondary",children:[" + ",T]}),d.jsx("span",{className:"font-medium",children:" for your "}),e.title]})]}),d.jsx(bt,{onClick:C,disabled:k||l.length===0,className:"w-full bg-secondary hover:bg-secondary/90 text-secondary-foreground py-3 rounded-xl font-semibold",children:k?d.jsx("div",{className:"w-5 h-5 border-2 border-secondary-foreground/30 border-t-secondary-foreground rounded-full animate-spin"}):d.jsxs(d.Fragment,{children:[d.jsx(Yn,{className:"w-4 h-4 mr-2"}),"Send Trade Offer"]})})]})]})})}//! moment.js
408//! version : 2.30.1
409//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
410//! license : MIT
411//! momentjs.com
412var GT;function le(){return GT.apply(null,arguments)}function pz(e){GT=e}function dr(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Yi(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ge(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qy(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ge(e,t))return!1;return!0}function yn(e){return e===void 0}function ls(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Sc(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function KT(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function Ks(e,t){for(var n in t)Ge(t,n)&&(e[n]=t[n]);return Ge(t,"toString")&&(e.toString=t.toString),Ge(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Dr(e,t,n,r){return v2(e,t,n,r,!0).utc()}function mz(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Ie(e){return e._pf==null&&(e._pf=mz()),e._pf}var bg;Array.prototype.some?bg=Array.prototype.some:bg=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Gy(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Ie(e),n=bg.call(t.parsedDateParts,function(i){return i!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function vf(e){var t=Dr(NaN);return e!=null?Ks(Ie(t),e):Ie(t).userInvalidated=!0,t}var TS=le.momentProperties=[],cm=!1;function Ky(e,t){var n,r,i,a=TS.length;if(yn(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),yn(t._i)||(e._i=t._i),yn(t._f)||(e._f=t._f),yn(t._l)||(e._l=t._l),yn(t._strict)||(e._strict=t._strict),yn(t._tzm)||(e._tzm=t._tzm),yn(t._isUTC)||(e._isUTC=t._isUTC),yn(t._offset)||(e._offset=t._offset),yn(t._pf)||(e._pf=Ie(t)),yn(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=TS[n],i=t[r],yn(i)||(e[r]=i);return e}function _c(e){Ky(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),cm===!1&&(cm=!0,le.updateOffset(this),cm=!1)}function fr(e){return e instanceof _c||e!=null&&e._isAMomentObject!=null}function QT(e){le.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Gn(e,t){var n=!0;return Ks(function(){if(le.deprecationHandler!=null&&le.deprecationHandler(null,e),n){var r=[],i,a,l,u=arguments.length;for(a=0;a<u;a++){if(i="",typeof arguments[a]=="object"){i+=`
413[`+a+"] ";for(l in arguments[0])Ge(arguments[0],l)&&(i+=l+": "+arguments[0][l]+", ");i=i.slice(0,-2)}else i=arguments[a];r.push(i)}QT(e+`
414Arguments: `+Array.prototype.slice.call(r).join("")+`
415`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var jS={};function XT(e,t){le.deprecationHandler!=null&&le.deprecationHandler(e,t),jS[e]||(QT(t),jS[e]=!0)}le.suppressDeprecationWarnings=!1;le.deprecationHandler=null;function Lr(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function gz(e){var t,n;for(n in e)Ge(e,n)&&(t=e[n],Lr(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Sg(e,t){var n=Ks({},e),r;for(r in t)Ge(t,r)&&(Yi(e[r])&&Yi(t[r])?(n[r]={},Ks(n[r],e[r]),Ks(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Ge(e,r)&&!Ge(t,r)&&Yi(e[r])&&(n[r]=Ks({},n[r]));return n}function Qy(e){e!=null&&this.set(e)}var _g;Object.keys?_g=Object.keys:_g=function(e){var t,n=[];for(t in e)Ge(e,t)&&n.push(t);return n};var yz={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function vz(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Lr(r)?r.call(t,n):r}function Or(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Xy=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 24,855 bytes, line 415
415|x|X|zz?|ZZ?|.)/g,td=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,um={},Go={};function Ce(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Go[e]=i),t&&(Go[t[0]]=function(){return Or(i.apply(this,arguments),t[1],t[2])}),n&&(Go[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function xz(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function wz(e){var t=e.match(Xy),n,r;for(n=0,r=t.length;n<r;n++)Go[t[n]]?t[n]=Go[t[n]]:t[n]=xz(t[n]);return function(i){var a="",l;for(l=0;l<r;l++)a+=Lr(t[l])?t[l].call(i,e):t[l];return a}}function xd(e,t){return e.isValid()?(t=ZT(t,e.localeData()),um[t]=um[t]||wz(t),um[t](e)):e.localeData().invalidDate()}function ZT(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(td.lastIndex=0;n>=0&&td.test(e);)e=e.replace(td,r),td.lastIndex=0,n-=1;return e}var bz={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Sz(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Xy).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var _z="Invalid date";function kz(){return this._invalidDate}var Ez="%d",Cz=/\d{1,2}/;function Tz(e){return this._ordinal.replace("%d",e)}var jz={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Rz(e,t,n,r){var i=this._relativeTime[n];return Lr(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Nz(e,t){var n=this._relativeTime[e>0?"future":"past"];return Lr(n)?n(t):n.replace(/%s/i,t)}var RS={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Kn(e){return typeof e=="string"?RS[e]||RS[e.toLowerCase()]:void 0}function Zy(e){var t={},n,r;for(r in e)Ge(e,r)&&(n=Kn(r),n&&(t[n]=e[r]));return t}var Pz={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Az(e){var t=[],n;for(n in e)Ge(e,n)&&t.push({unit:n,priority:Pz[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var JT=/\d/,An=/\d\d/,e2=/\d{3}/,Jy=/\d{4}/,xf=/[+-]?\d{6}/,ut=/\d\d?/,t2=/\d\d\d\d?/,n2=/\d\d\d\d\d\d?/,wf=/\d{1,3}/,e0=/\d{1,4}/,bf=/[+-]?\d{1,6}/,Ra=/\d+/,Sf=/[+-]?\d+/,Oz=/Z|[+-]\d\d:?\d\d/gi,_f=/Z|[+-]\d\d(?::?\d\d)?/gi,Mz=/[+-]?\d+(\.\d{1,3})?/,kc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Na=/^[1-9]\d?/,t0=/^([1-9]\d|\d)/,Wd;Wd={};function me(e,t,n){Wd[e]=Lr(t)?t:function(r,i){return r&&n?n:t}}function Dz(e,t){return Ge(Wd,e)?Wd[e](t._strict,t._locale):new RegExp(Lz(e))}function Lz(e){return rs(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function rs(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Hn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ve(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Hn(t)),n}var kg={};function tt(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),ls(t)&&(r=function(a,l){l[t]=Ve(a)}),i=e.length,n=0;n<i;n++)kg[e[n]]=r}function Ec(e,t){tt(e,function(n,r,i,a){i._w=i._w||{},t(n,i._w,i,a)})}function Iz(e,t,n){t!=null&&Ge(kg,e)&&kg[e](t,n._a,n,e)}function kf(e){return e%4===0&&e%100!==0||e%400===0}var sn=0,Jr=1,_r=2,Ot=3,lr=4,es=5,Mi=6,Fz=7,Bz=8;Ce("Y",0,0,function(){var e=this.year();return e<=9999?Or(e,4):"+"+e});Ce(0,["YY",2],0,function(){return this.year()%100});Ce(0,["YYYY",4],0,"year");Ce(0,["YYYYY",5],0,"year");Ce(0,["YYYYYY",6,!0],0,"year");me("Y",Sf);me("YY",ut,An);me("YYYY",e0,Jy);me("YYYYY",bf,xf);me("YYYYYY",bf,xf);tt(["YYYYY","YYYYYY"],sn);tt("YYYY",function(e,t){t[sn]=e.length===2?le.parseTwoDigitYear(e):Ve(e)});tt("YY",function(e,t){t[sn]=le.parseTwoDigitYear(e)});tt("Y",function(e,t){t[sn]=parseInt(e,10)});function Fl(e){return kf(e)?366:365}le.parseTwoDigitYear=function(e){return Ve(e)+(Ve(e)>68?1900:2e3)};var r2=Pa("FullYear",!0);function Uz(){return kf(this.year())}function Pa(e,t){return function(n){return n!=null?(s2(this,e,n),le.updateOffset(this,t),this):Xl(this,e)}}function Xl(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function s2(e,t,n){var r,i,a,l,u;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,l=e.month(),u=e.date(),u=u===29&&l===1&&!kf(a)?28:u,i?r.setUTCFullYear(a,l,u):r.setFullYear(a,l,u)}}function Vz(e){return e=Kn(e),Lr(this[e])?this[e]():this}function zz(e,t){if(typeof e=="object"){e=Zy(e);var n=Az(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=Kn(e),Lr(this[e]))return this[e](t);return this}function Wz(e,t){return(e%t+t)%t}var Et;Array.prototype.indexOf?Et=Array.prototype.indexOf:Et=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function n0(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Wz(t,12);return e+=(t-n)/12,n===1?kf(e)?29:28:31-n%7%2}Ce("M",["MM",2],"Mo",function(){return this.month()+1});Ce("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Ce("MMMM",0,0,function(e){return this.localeData().months(this,e)});me("M",ut,Na);me("MM",ut,An);me("MMM",function(e,t){return t.monthsShortRegex(e)});me("MMMM",function(e,t){return t.monthsRegex(e)});tt(["M","MM"],function(e,t){t[Jr]=Ve(e)-1});tt(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[Jr]=i:Ie(n).invalidMonth=e});var $z="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),i2="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),o2=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Hz=kc,Yz=kc;function qz(e,t){return e?dr(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||o2).test(t)?"format":"standalone"][e.month()]:dr(this._months)?this._months:this._months.standalone}function Gz(e,t){return e?dr(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[o2.test(t)?"format":"standalone"][e.month()]:dr(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Kz(e,t,n){var r,i,a,l=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=Dr([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(i=Et.call(this._shortMonthsParse,l),i!==-1?i:null):(i=Et.call(this._longMonthsParse,l),i!==-1?i:null):t==="MMM"?(i=Et.call(this._shortMonthsParse,l),i!==-1?i:(i=Et.call(this._longMonthsParse,l),i!==-1?i:null)):(i=Et.call(this._longMonthsParse,l),i!==-1?i:(i=Et.call(this._shortMonthsParse,l),i!==-1?i:null))}function Qz(e,t,n){var r,i,a;if(this._monthsParseExact)return Kz.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Dr([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function a2(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Ve(t);else if(t=e.localeData().monthsParse(t),!ls(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,n0(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function l2(e){return e!=null?(a2(this,e),le.updateOffset(this,!0),this):Xl(this,"Month")}function Xz(){return n0(this.year(),this.month())}function Zz(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||c2.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ge(this,"_monthsShortRegex")||(this._monthsShortRegex=Hz),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Jz(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||c2.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ge(this,"_monthsRegex")||(this._monthsRegex=Yz),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function c2(){function e(f,p){return p.length-f.length}var t=[],n=[],r=[],i,a,l,u;for(i=0;i<12;i++)a=Dr([2e3,i]),l=rs(this.monthsShort(a,"")),u=rs(this.months(a,"")),t.push(l),n.push(u),r.push(u),r.push(l);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function eW(e,t,n,r,i,a,l){var u;return e<100&&e>=0?(u=new Date(e+400,t,n,r,i,a,l),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,n,r,i,a,l),u}function Zl(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function $d(e,t,n){var r=7+t-n,i=(7+Zl(e,0,r).getUTCDay()-t)%7;return-i+r-1}function u2(e,t,n,r,i){var a=(7+n-r)%7,l=$d(e,r,i),u=1+7*(t-1)+a+l,f,p;return u<=0?(f=e-1,p=Fl(f)+u):u>Fl(e)?(f=e+1,p=u-Fl(e)):(f=e,p=u),{year:f,dayOfYear:p}}function Jl(e,t,n){var r=$d(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,l;return i<1?(l=e.year()-1,a=i+ss(l,t,n)):i>ss(e.year(),t,n)?(a=i-ss(e.year(),t,n),l=e.year()+1):(l=e.year(),a=i),{week:a,year:l}}function ss(e,t,n){var r=$d(e,t,n),i=$d(e+1,t,n);return(Fl(e)-r+i)/7}Ce("w",["ww",2],"wo","week");Ce("W",["WW",2],"Wo","isoWeek");me("w",ut,Na);me("ww",ut,An);me("W",ut,Na);me("WW",ut,An);Ec(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Ve(e)});function tW(e){return Jl(e,this._week.dow,this._week.doy).week}var nW={dow:0,doy:6};function rW(){return this._week.dow}function sW(){return this._week.doy}function iW(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function oW(e){var t=Jl(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Ce("d",0,"do","day");Ce("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Ce("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Ce("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Ce("e",0,0,"weekday");Ce("E",0,0,"isoWeekday");me("d",ut);me("e",ut);me("E",ut);me("dd",function(e,t){return t.weekdaysMinRegex(e)});me("ddd",function(e,t){return t.weekdaysShortRegex(e)});me("dddd",function(e,t){return t.weekdaysRegex(e)});Ec(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Ie(n).invalidWeekday=e});Ec(["d","e","E"],function(e,t,n,r){t[r]=Ve(e)});function aW(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function lW(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function r0(e,t){return e.slice(t,7).concat(e.slice(0,t))}var cW="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),d2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),uW="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),dW=kc,fW=kc,hW=kc;function pW(e,t){var n=dr(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?r0(n,this._week.dow):e?n[e.day()]:n}function mW(e){return e===!0?r0(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function gW(e){return e===!0?r0(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function yW(e,t,n){var r,i,a,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Dr([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=Et.call(this._weekdaysParse,l),i!==-1?i:null):t==="ddd"?(i=Et.call(this._shortWeekdaysParse,l),i!==-1?i:null):(i=Et.call(this._minWeekdaysParse,l),i!==-1?i:null):t==="dddd"?(i=Et.call(this._weekdaysParse,l),i!==-1||(i=Et.call(this._shortWeekdaysParse,l),i!==-1)?i:(i=Et.call(this._minWeekdaysParse,l),i!==-1?i:null)):t==="ddd"?(i=Et.call(this._shortWeekdaysParse,l),i!==-1||(i=Et.call(this._weekdaysParse,l),i!==-1)?i:(i=Et.call(this._minWeekdaysParse,l),i!==-1?i:null)):(i=Et.call(this._minWeekdaysParse,l),i!==-1||(i=Et.call(this._weekdaysParse,l),i!==-1)?i:(i=Et.call(this._shortWeekdaysParse,l),i!==-1?i:null))}function vW(e,t,n){var r,i,a;if(this._weekdaysParseExact)return yW.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Dr([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function xW(e){if(!this.isValid())return e!=null?this:NaN;var t=Xl(this,"Day");return e!=null?(e=aW(e,this.localeData()),this.add(e-t,"d")):t}function wW(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function bW(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=lW(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function SW(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||s0.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ge(this,"_weekdaysRegex")||(this._weekdaysRegex=dW),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function _W(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||s0.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ge(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=fW),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function kW(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||s0.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ge(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=hW),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function s0(){function e(m,g){return g.length-m.length}var t=[],n=[],r=[],i=[],a,l,u,f,p;for(a=0;a<7;a++)l=Dr([2e3,1]).day(a),u=rs(this.weekdaysMin(l,"")),f=rs(this.weekdaysShort(l,"")),p=rs(this.weekdays(l,"")),t.push(u),n.push(f),r.push(p),i.push(u),i.push(f),i.push(p);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function i0(){return this.hours()%12||12}function EW(){return this.hours()||24}Ce("H",["HH",2],0,"hour");Ce("h",["hh",2],0,i0);Ce("k",["kk",2],0,EW);Ce("hmm",0,0,function(){return""+i0.apply(this)+Or(this.minutes(),2)});Ce("hmmss",0,0,function(){return""+i0.apply(this)+Or(this.minutes(),2)+Or(this.seconds(),2)});Ce("Hmm",0,0,function(){return""+this.hours()+Or(this.minutes(),2)});Ce("Hmmss",0,0,function(){return""+this.hours()+Or(this.minutes(),2)+Or(this.seconds(),2)});function f2(e,t){Ce(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}f2("a",!0);f2("A",!1);function h2(e,t){return t._meridiemParse}me("a",h2);me("A",h2);me("H",ut,t0);me("h",ut,Na);me("k",ut,Na);me("HH",ut,An);me("hh",ut,An);me("kk",ut,An);me("hmm",t2);me("hmmss",n2);me("Hmm",t2);me("Hmmss",n2);tt(["H","HH"],Ot);tt(["k","kk"],function(e,t,n){var r=Ve(e);t[Ot]=r===24?0:r});tt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});tt(["h","hh"],function(e,t,n){t[Ot]=Ve(e),Ie(n).bigHour=!0});tt("hmm",function(e,t,n){var r=e.length-2;t[Ot]=Ve(e.substr(0,r)),t[lr]=Ve(e.substr(r)),Ie(n).bigHour=!0});tt("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ot]=Ve(e.substr(0,r)),t[lr]=Ve(e.substr(r,2)),t[es]=Ve(e.substr(i)),Ie(n).bigHour=!0});tt("Hmm",function(e,t,n){var r=e.length-2;t[Ot]=Ve(e.substr(0,r)),t[lr]=Ve(e.substr(r))});tt("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ot]=Ve(e.substr(0,r)),t[lr]=Ve(e.substr(r,2)),t[es]=Ve(e.substr(i))});function CW(e){return(e+"").toLowerCase().charAt(0)==="p"}var TW=/[ap]\.?m?\.?/i,jW=Pa("Hours",!0);function RW(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var p2={calendar:yz,longDateFormat:bz,invalidDate:_z,ordinal:Ez,dayOfMonthOrdinalParse:Cz,relativeTime:jz,months:$z,monthsShort:i2,week:nW,weekdays:cW,weekdaysMin:uW,weekdaysShort:d2,meridiemParse:TW},ft={},Sl={},ec;function NW(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function NS(e){return e&&e.toLowerCase().replace("_","-")}function PW(e){for(var t=0,n,r,i,a;t<e.length;){for(a=NS(e[t]).split("-"),n=a.length,r=NS(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=Ef(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&NW(a,r)>=n-1)break;n--}t++}return ec}function AW(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ef(e){var t=null,n;if(ft[e]===void 0&&typeof module<"u"&&module&&module.exports&&AW(e))try{t=ec._abbr,n=require,n("./locale/"+e),ei(t)}catch{ft[e]=null}return ft[e]}function ei(e,t){var n;return e&&(yn(t)?n=us(e):n=o0(e,t),n?ec=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ec._abbr}function o0(e,t){if(t!==null){var n,r=p2;if(t.abbr=e,ft[e]!=null)XT("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ft[e]._config;else if(t.parentLocale!=null)if(ft[t.parentLocale]!=null)r=ft[t.parentLocale]._config;else if(n=Ef(t.parentLocale),n!=null)r=n._config;else return Sl[t.parentLocale]||(Sl[t.parentLocale]=[]),Sl[t.parentLocale].push({name:e,config:t}),null;return ft[e]=new Qy(Sg(r,t)),Sl[e]&&Sl[e].forEach(function(i){o0(i.name,i.config)}),ei(e),ft[e]}else return delete ft[e],null}function OW(e,t){if(t!=null){var n,r,i=p2;ft[e]!=null&&ft[e].parentLocale!=null?ft[e].set(Sg(ft[e]._config,t)):(r=Ef(e),r!=null&&(i=r._config),t=Sg(i,t),r==null&&(t.abbr=e),n=new Qy(t),n.parentLocale=ft[e],ft[e]=n),ei(e)}else ft[e]!=null&&(ft[e].parentLocale!=null?(ft[e]=ft[e].parentLocale,e===ei()&&ei(e)):ft[e]!=null&&delete ft[e]);return ft[e]}function us(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ec;if(!dr(e)){if(t=Ef(e),t)return t;e=[e]}return PW(e)}function MW(){return _g(ft)}function a0(e){var t,n=e._a;return n&&Ie(e).overflow===-2&&(t=n[Jr]<0||n[Jr]>11?Jr:n[_r]<1||n[_r]>n0(n[sn],n[Jr])?_r:n[Ot]<0||n[Ot]>24||n[Ot]===24&&(n[lr]!==0||n[es]!==0||n[Mi]!==0)?Ot:n[lr]<0||n[lr]>59?lr:n[es]<0||n[es]>59?es:n[Mi]<0||n[Mi]>999?Mi:-1,Ie(e)._overflowDayOfYear&&(t<sn||t>_r)&&(t=_r),Ie(e)._overflowWeeks&&t===-1&&(t=Fz),Ie(e)._overflowWeekday&&t===-1&&(t=Bz),Ie(e).overflow=t),e}var DW=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,LW=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,IW=/Z|[+-]\d\d(?::?\d\d)?/,nd=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],dm=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],FW=/^\/?Date\((-?\d+)/i,BW=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,UW={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function m2(e){var t,n,r=e._i,i=DW.exec(r)||LW.exec(r),a,l,u,f,p=nd.length,m=dm.length;if(i){for(Ie(e).iso=!0,t=0,n=p;t<n;t++)if(nd[t][1].exec(i[1])){l=nd[t][0],a=nd[t][2]!==!1;break}if(l==null){e._isValid=!1;return}if(i[3]){for(t=0,n=m;t<n;t++)if(dm[t][1].exec(i[3])){u=(i[2]||" ")+dm[t][0];break}if(u==null){e._isValid=!1;return}}if(!a&&u!=null){e._isValid=!1;return}if(i[4])if(IW.exec(i[4]))f="Z";else{e._isValid=!1;return}e._f=l+(u||"")+(f||""),c0(e)}else e._isValid=!1}function VW(e,t,n,r,i,a){var l=[zW(e),i2.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&l.push(parseInt(a,10)),l}function zW(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function WW(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function $W(e,t,n){if(e){var r=d2.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Ie(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function HW(e,t,n){if(e)return UW[e];if(t)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function g2(e){var t=BW.exec(WW(e._i)),n;if(t){if(n=VW(t[4],t[3],t[2],t[5],t[6],t[7]),!$W(t[1],n,e))return;e._a=n,e._tzm=HW(t[8],t[9],t[10]),e._d=Zl.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Ie(e).rfc2822=!0}else e._isValid=!1}function YW(e){var t=FW.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(m2(e),e._isValid===!1)delete e._isValid;else return;if(g2(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:le.createFromInputFallback(e)}le.createFromInputFallback=Gn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});
vendor: 8,596 bytes, line 415
415function Fo(e,t,n){return e??t??n}function qW(e){var t=new Date(le.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function l0(e){var t,n,r=[],i,a,l;if(!e._d){for(i=qW(e),e._w&&e._a[_r]==null&&e._a[Jr]==null&&GW(e),e._dayOfYear!=null&&(l=Fo(e._a[sn],i[sn]),(e._dayOfYear>Fl(l)||e._dayOfYear===0)&&(Ie(e)._overflowDayOfYear=!0),n=Zl(l,0,e._dayOfYear),e._a[Jr]=n.getUTCMonth(),e._a[_r]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ot]===24&&e._a[lr]===0&&e._a[es]===0&&e._a[Mi]===0&&(e._nextDay=!0,e._a[Ot]=0),e._d=(e._useUTC?Zl:eW).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ot]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Ie(e).weekdayMismatch=!0)}}function GW(e){var t,n,r,i,a,l,u,f,p;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,l=4,n=Fo(t.GG,e._a[sn],Jl(ct(),1,4).year),r=Fo(t.W,1),i=Fo(t.E,1),(i<1||i>7)&&(f=!0)):(a=e._locale._week.dow,l=e._locale._week.doy,p=Jl(ct(),a,l),n=Fo(t.gg,e._a[sn],p.year),r=Fo(t.w,p.week),t.d!=null?(i=t.d,(i<0||i>6)&&(f=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(f=!0)):i=a),r<1||r>ss(n,a,l)?Ie(e)._overflowWeeks=!0:f!=null?Ie(e)._overflowWeekday=!0:(u=u2(n,r,i,a,l),e._a[sn]=u.year,e._dayOfYear=u.dayOfYear)}le.ISO_8601=function(){};le.RFC_2822=function(){};function c0(e){if(e._f===le.ISO_8601){m2(e);return}if(e._f===le.RFC_2822){g2(e);return}e._a=[],Ie(e).empty=!0;var t=""+e._i,n,r,i,a,l,u=t.length,f=0,p,m;for(i=ZT(e._f,e._locale).match(Xy)||[],m=i.length,n=0;n<m;n++)a=i[n],r=(t.match(Dz(a,e))||[])[0],r&&(l=t.substr(0,t.indexOf(r)),l.length>0&&Ie(e).unusedInput.push(l),t=t.slice(t.indexOf(r)+r.length),f+=r.length),Go[a]?(r?Ie(e).empty=!1:Ie(e).unusedTokens.push(a),Iz(a,r,e)):e._strict&&!r&&Ie(e).unusedTokens.push(a);Ie(e).charsLeftOver=u-f,t.length>0&&Ie(e).unusedInput.push(t),e._a[Ot]<=12&&Ie(e).bigHour===!0&&e._a[Ot]>0&&(Ie(e).bigHour=void 0),Ie(e).parsedDateParts=e._a.slice(0),Ie(e).meridiem=e._meridiem,e._a[Ot]=KW(e._locale,e._a[Ot],e._meridiem),p=Ie(e).era,p!==null&&(e._a[sn]=e._locale.erasConvertYear(p,e._a[sn])),l0(e),a0(e)}function KW(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function QW(e){var t,n,r,i,a,l,u=!1,f=e._f.length;if(f===0){Ie(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<f;i++)a=0,l=!1,t=Ky({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],c0(t),Gy(t)&&(l=!0),a+=Ie(t).charsLeftOver,a+=Ie(t).unusedTokens.length*10,Ie(t).score=a,u?a<r&&(r=a,n=t):(r==null||a<r||l)&&(r=a,n=t,l&&(u=!0));Ks(e,n||t)}function XW(e){if(!e._d){var t=Zy(e._i),n=t.day===void 0?t.date:t.day;e._a=KT([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),l0(e)}}function ZW(e){var t=new _c(a0(y2(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function y2(e){var t=e._i,n=e._f;return e._locale=e._locale||us(e._l),t===null||n===void 0&&t===""?vf({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),fr(t)?new _c(a0(t)):(Sc(t)?e._d=t:dr(n)?QW(e):n?c0(e):JW(e),Gy(e)||(e._d=null),e))}function JW(e){var t=e._i;yn(t)?e._d=new Date(le.now()):Sc(t)?e._d=new Date(t.valueOf()):typeof t=="string"?YW(e):dr(t)?(e._a=KT(t.slice(0),function(n){return parseInt(n,10)}),l0(e)):Yi(t)?XW(e):ls(t)?e._d=new Date(t):le.createFromInputFallback(e)}function v2(e,t,n,r,i){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Yi(e)&&qy(e)||dr(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,ZW(a)}function ct(e,t,n,r){return v2(e,t,n,r,!1)}var e$=Gn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ct.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:vf()}),t$=Gn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ct.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:vf()});function x2(e,t){var n,r;if(t.length===1&&dr(t[0])&&(t=t[0]),!t.length)return ct();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function n$(){var e=[].slice.call(arguments,0);return x2("isBefore",e)}function r$(){var e=[].slice.call(arguments,0);return x2("isAfter",e)}var s$=function(){return Date.now?Date.now():+new Date},_l=["year","quarter","month","week","day","hour","minute","second","millisecond"];function i$(e){var t,n=!1,r,i=_l.length;for(t in e)if(Ge(e,t)&&!(Et.call(_l,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[_l[r]]){if(n)return!1;parseFloat(e[_l[r]])!==Ve(e[_l[r]])&&(n=!0)}return!0}function o$(){return this._isValid}function a$(){return hr(NaN)}function Cf(e){var t=Zy(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,l=t.day||0,u=t.hour||0,f=t.minute||0,p=t.second||0,m=t.millisecond||0;this._isValid=i$(t),this._milliseconds=+m+p*1e3+f*6e4+u*1e3*60*60,this._days=+l+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=us(),this._bubble()}function wd(e){return e instanceof Cf}function Eg(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function l$(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,l;for(l=0;l<r;l++)Ve(e[l])!==Ve(t[l])&&a++;return a+i}function w2(e,t){Ce(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Or(~~(n/60),2)+t+Or(~~n%60,2)})}w2("Z",":");w2("ZZ","");me("Z",_f);me("ZZ",_f);tt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=u0(_f,e)});var c$=/([\+\-]|\d\d)/gi;function u0(e,t){var n=(t||"").match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(c$)||["-",0,0],a=+(i[1]*60)+Ve(i[2]),a===0?0:i[0]==="+"?a:-a)}function d0(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(fr(e)||Sc(e)?e.valueOf():ct(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),le.updateOffset(n,!1),n):ct(e).local()}function Cg(e){return-Math.round(e._d.getTimezoneOffset())}le.updateOffset=function(){};function u$(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=u0(_f,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=Cg(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?_2(this,hr(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,le.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Cg(this)}function d$(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function f$(e){return this.utcOffset(0,e)}function h$(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Cg(this),"m")),this}function p$(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=u0(Oz,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function m$(e){return this.isValid()?(e=e?ct(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function g$(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function y$(){if(!yn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Ky(e,this),e=y2(e),e._a?(t=e._isUTC?Dr(e._a):ct(e._a),this._isDSTShifted=this.isValid()&&l$(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function v$(){return this.isValid()?!this._isUTC:!1}function x$(){return this.isValid()?this._isUTC:!1}function b2(){return this.isValid()?this._isUTC&&this._offset===0:!1}var w$=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,b$=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function hr(e,t){var n=e,r=null,i,a,l;return wd(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ls(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=w$.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Ve(r[_r])*i,h:Ve(r[Ot])*i,m:Ve(r[lr])*i,s:Ve(r[es])*i,ms:Ve(Eg(r[Mi]*1e3))*i}):(r=b$.exec(e))?(i=r[1]==="-"?-1:1,n={y:Ti(r[2],i),M:Ti(r[3],i),w:Ti(r[4],i),d:Ti(r[5],i),h:Ti(r[6],i),m:Ti(r[7],i),s:Ti(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(l=S$(ct(n.from),ct(n.to)),n={},n.ms=l.milliseconds,n.M=l.months),a=new Cf(n),wd(e)&&Ge(e,"_locale")&&(a._locale=e._locale),wd(e)&&Ge(e,"_isValid")&&(a._isValid=e._isValid),a}hr.fn=Cf.prototype;
vendor: 20,426 bytes, line 415
415hr.invalid=a$;function Ti(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function PS(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function S$(e,t){var n;return e.isValid()&&t.isValid()?(t=d0(t,e),e.isBefore(t)?n=PS(e,t):(n=PS(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function S2(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(XT(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=hr(n,r),_2(this,i,e),this}}function _2(e,t,n,r){var i=t._milliseconds,a=Eg(t._days),l=Eg(t._months);e.isValid()&&(r=r??!0,l&&a2(e,Xl(e,"Month")+l*n),a&&s2(e,"Date",Xl(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&le.updateOffset(e,a||l))}var _$=S2(1,"add"),k$=S2(-1,"subtract");function k2(e){return typeof e=="string"||e instanceof String}function E$(e){return fr(e)||Sc(e)||k2(e)||ls(e)||T$(e)||C$(e)||e===null||e===void 0}function C$(e){var t=Yi(e)&&!qy(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,l=r.length;for(i=0;i<l;i+=1)a=r[i],n=n||Ge(e,a);return t&&n}function T$(e){var t=dr(e),n=!1;return t&&(n=e.filter(function(r){return!ls(r)&&k2(e)}).length===0),t&&n}function j$(e){var t=Yi(e)&&!qy(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,a;for(i=0;i<r.length;i+=1)a=r[i],n=n||Ge(e,a);return t&&n}function R$(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function N$(e,t){arguments.length===1&&(arguments[0]?E$(arguments[0])?(e=arguments[0],t=void 0):j$(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||ct(),r=d0(n,this).startOf("day"),i=le.calendarFormat(this,r)||"sameElse",a=t&&(Lr(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,ct(n)))}function P$(){return new _c(this)}function A$(e,t){var n=fr(e)?e:ct(e);return this.isValid()&&n.isValid()?(t=Kn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function O$(e,t){var n=fr(e)?e:ct(e);return this.isValid()&&n.isValid()?(t=Kn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function M$(e,t,n,r){var i=fr(e)?e:ct(e),a=fr(t)?t:ct(t);return this.isValid()&&i.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function D$(e,t){var n=fr(e)?e:ct(e),r;return this.isValid()&&n.isValid()?(t=Kn(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function L$(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function I$(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function F$(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(r=d0(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=Kn(t),t){case"year":a=bd(this,r)/12;break;case"month":a=bd(this,r);break;case"quarter":a=bd(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:Hn(a)}function bd(e,t){if(e.date()<t.date())return-bd(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,a;return t-r<0?(i=e.clone().add(n-1,"months"),a=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),a=(t-r)/(i-r)),-(n+a)||0}le.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";le.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function B$(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function U$(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?xd(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Lr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",xd(n,"Z")):xd(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function V$(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function z$(e){e||(e=this.isUtc()?le.defaultFormatUtc:le.defaultFormat);var t=xd(this,e);return this.localeData().postformat(t)}function W$(e,t){return this.isValid()&&(fr(e)&&e.isValid()||ct(e).isValid())?hr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function $$(e){return this.from(ct(),e)}function H$(e,t){return this.isValid()&&(fr(e)&&e.isValid()||ct(e).isValid())?hr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Y$(e){return this.to(ct(),e)}function E2(e){var t;return e===void 0?this._locale._abbr:(t=us(e),t!=null&&(this._locale=t),this)}var C2=Gn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function T2(){return this._locale}var Hd=1e3,Ko=60*Hd,Yd=60*Ko,j2=(365*400+97)*24*Yd;function Qo(e,t){return(e%t+t)%t}function R2(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-j2:new Date(e,t,n).valueOf()}function N2(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-j2:Date.UTC(e,t,n)}function q$(e){var t,n;if(e=Kn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?N2:R2,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Qo(t+(this._isUTC?0:this.utcOffset()*Ko),Yd);break;case"minute":t=this._d.valueOf(),t-=Qo(t,Ko);break;case"second":t=this._d.valueOf(),t-=Qo(t,Hd);break}return this._d.setTime(t),le.updateOffset(this,!0),this}function G$(e){var t,n;if(e=Kn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?N2:R2,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Yd-Qo(t+(this._isUTC?0:this.utcOffset()*Ko),Yd)-1;break;case"minute":t=this._d.valueOf(),t+=Ko-Qo(t,Ko)-1;break;case"second":t=this._d.valueOf(),t+=Hd-Qo(t,Hd)-1;break}return this._d.setTime(t),le.updateOffset(this,!0),this}function K$(){return this._d.valueOf()-(this._offset||0)*6e4}function Q$(){return Math.floor(this.valueOf()/1e3)}function X$(){return new Date(this.valueOf())}function Z$(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function J$(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function e9(){return this.isValid()?this.toISOString():null}function t9(){return Gy(this)}function n9(){return Ks({},Ie(this))}function r9(){return Ie(this).overflow}function s9(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ce("N",0,0,"eraAbbr");Ce("NN",0,0,"eraAbbr");Ce("NNN",0,0,"eraAbbr");Ce("NNNN",0,0,"eraName");Ce("NNNNN",0,0,"eraNarrow");Ce("y",["y",1],"yo","eraYear");Ce("y",["yy",2],0,"eraYear");Ce("y",["yyy",3],0,"eraYear");Ce("y",["yyyy",4],0,"eraYear");me("N",f0);me("NN",f0);me("NNN",f0);me("NNNN",m9);me("NNNNN",g9);tt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Ie(n).era=i:Ie(n).invalidEra=e});me("y",Ra);me("yy",Ra);me("yyy",Ra);me("yyyy",Ra);me("yo",y9);tt(["y","yy","yyy","yyyy"],sn);tt(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[sn]=n._locale.eraYearOrdinalParse(e,i):t[sn]=parseInt(e,10)});function i9(e,t){var n,r,i,a=this._eras||us("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":i=le(a[n].since).startOf("day"),a[n].since=i.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=le(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf();break}}return a}function o9(e,t,n){var r,i,a=this.eras(),l,u,f;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(l=a[r].name.toUpperCase(),u=a[r].abbr.toUpperCase(),f=a[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(u===e)return a[r];break;case"NNNN":if(l===e)return a[r];break;case"NNNNN":if(f===e)return a[r];break}else if([l,u,f].indexOf(e)>=0)return a[r]}function a9(e,t){var n=e.since<=e.until?1:-1;return t===void 0?le(e.since).year():le(e.since).year()+(t-e.offset)*n}function l9(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function c9(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function u9(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function d9(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-le(i[e].since).year())*n+i[e].offset;return this.year()}function f9(e){return Ge(this,"_erasNameRegex")||h0.call(this),e?this._erasNameRegex:this._erasRegex}function h9(e){return Ge(this,"_erasAbbrRegex")||h0.call(this),e?this._erasAbbrRegex:this._erasRegex}function p9(e){return Ge(this,"_erasNarrowRegex")||h0.call(this),e?this._erasNarrowRegex:this._erasRegex}function f0(e,t){return t.erasAbbrRegex(e)}function m9(e,t){return t.erasNameRegex(e)}function g9(e,t){return t.erasNarrowRegex(e)}function y9(e,t){return t._eraYearOrdinalRegex||Ra}function h0(){var e=[],t=[],n=[],r=[],i,a,l,u,f,p=this.eras();for(i=0,a=p.length;i<a;++i)l=rs(p[i].name),u=rs(p[i].abbr),f=rs(p[i].narrow),t.push(l),e.push(u),n.push(f),r.push(l),r.push(u),r.push(f);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Ce(0,["gg",2],0,function(){return this.weekYear()%100});Ce(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Tf(e,t){Ce(0,[e,e.length],0,t)}Tf("gggg","weekYear");Tf("ggggg","weekYear");Tf("GGGG","isoWeekYear");Tf("GGGGG","isoWeekYear");me("G",Sf);me("g",Sf);me("GG",ut,An);me("gg",ut,An);me("GGGG",e0,Jy);me("gggg",e0,Jy);me("GGGGG",bf,xf);me("ggggg",bf,xf);Ec(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Ve(e)});Ec(["gg","GG"],function(e,t,n,r){t[r]=le.parseTwoDigitYear(e)});function v9(e){return P2.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function x9(e){return P2.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function w9(){return ss(this.year(),1,4)}function b9(){return ss(this.isoWeekYear(),1,4)}function S9(){var e=this.localeData()._week;return ss(this.year(),e.dow,e.doy)}function _9(){var e=this.localeData()._week;return ss(this.weekYear(),e.dow,e.doy)}function P2(e,t,n,r,i){var a;return e==null?Jl(this,r,i).year:(a=ss(e,r,i),t>a&&(t=a),k9.call(this,e,t,n,r,i))}function k9(e,t,n,r,i){var a=u2(e,t,n,r,i),l=Zl(a.year,0,a.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}Ce("Q",0,"Qo","quarter");me("Q",JT);tt("Q",function(e,t){t[Jr]=(Ve(e)-1)*3});function E9(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Ce("D",["DD",2],"Do","date");me("D",ut,Na);me("DD",ut,An);me("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});tt(["D","DD"],_r);tt("Do",function(e,t){t[_r]=Ve(e.match(ut)[0])});var A2=Pa("Date",!0);Ce("DDD",["DDDD",3],"DDDo","dayOfYear");me("DDD",wf);me("DDDD",e2);tt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Ve(e)});function C9(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Ce("m",["mm",2],0,"minute");me("m",ut,t0);me("mm",ut,An);tt(["m","mm"],lr);var T9=Pa("Minutes",!1);Ce("s",["ss",2],0,"second");me("s",ut,t0);me("ss",ut,An);tt(["s","ss"],es);var j9=Pa("Seconds",!1);Ce("S",0,0,function(){return~~(this.millisecond()/100)});Ce(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Ce(0,["SSS",3],0,"millisecond");Ce(0,["SSSS",4],0,function(){return this.millisecond()*10});Ce(0,["SSSSS",5],0,function(){return this.millisecond()*100});Ce(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Ce(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Ce(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Ce(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});me("S",wf,JT);me("SS",wf,An);me("SSS",wf,e2);var Qs,O2;for(Qs="SSSS";Qs.length<=9;Qs+="S")me(Qs,Ra);function R9(e,t){t[Mi]=Ve(("0."+e)*1e3)}for(Qs="S";Qs.length<=9;Qs+="S")tt(Qs,R9);O2=Pa("Milliseconds",!1);Ce("z",0,0,"zoneAbbr");Ce("zz",0,0,"zoneName");function N9(){return this._isUTC?"UTC":""}function P9(){return this._isUTC?"Coordinated Universal Time":""}var se=_c.prototype;se.add=_$;se.calendar=N$;se.clone=P$;se.diff=F$;se.endOf=G$;se.format=z$;se.from=W$;se.fromNow=$$;se.to=H$;se.toNow=Y$;se.get=Vz;se.invalidAt=r9;se.isAfter=A$;se.isBefore=O$;se.isBetween=M$;se.isSame=D$;se.isSameOrAfter=L$;se.isSameOrBefore=I$;se.isValid=t9;se.lang=C2;se.locale=E2;se.localeData=T2;se.max=t$;se.min=e$;se.parsingFlags=n9;se.set=zz;se.startOf=q$;se.subtract=k$;se.toArray=Z$;se.toObject=J$;se.toDate=X$;se.toISOString=U$;se.inspect=V$;typeof Symbol<"u"&&Symbol.for!=null&&(se[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});se.toJSON=e9;se.toString=B$;se.unix=Q$;se.valueOf=K$;se.creationData=s9;se.eraName=l9;se.eraNarrow=c9;se.eraAbbr=u9;se.eraYear=d9;se.year=r2;se.isLeapYear=Uz;se.weekYear=v9;se.isoWeekYear=x9;se.quarter=se.quarters=E9;se.month=l2;se.daysInMonth=Xz;se.week=se.weeks=iW;se.isoWeek=se.isoWeeks=oW;se.weeksInYear=S9;se.weeksInWeekYear=_9;se.isoWeeksInYear=w9;se.isoWeeksInISOWeekYear=b9;se.date=A2;se.day=se.days=xW;se.weekday=wW;se.isoWeekday=bW;se.dayOfYear=C9;se.hour=se.hours=jW;se.minute=se.minutes=T9;se.second=se.seconds=j9;se.millisecond=se.milliseconds=O2;se.utcOffset=u$;se.utc=f$;se.local=h$;se.parseZone=p$;se.hasAlignedHourOffset=m$;se.isDST=g$;se.isLocal=v$;se.isUtcOffset=x$;se.isUtc=b2;se.isUTC=b2;se.zoneAbbr=N9;se.zoneName=P9;se.dates=Gn("dates accessor is deprecated. Use date instead.",A2);se.months=Gn("months accessor is deprecated. Use month instead",l2);se.years=Gn("years accessor is deprecated. Use year instead",r2);se.zone=Gn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",d$);se.isDSTShifted=Gn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",y$);function A9(e){return ct(e*1e3)}function O9(){return ct.apply(null,arguments).parseZone()}function M2(e){return e}var Ke=Qy.prototype;Ke.calendar=vz;Ke.longDateFormat=Sz;Ke.invalidDate=kz;Ke.ordinal=Tz;Ke.preparse=M2;Ke.postformat=M2;Ke.relativeTime=Rz;Ke.pastFuture=Nz;Ke.set=gz;Ke.eras=i9;Ke.erasParse=o9;Ke.erasConvertYear=a9;Ke.erasAbbrRegex=h9;Ke.erasNameRegex=f9;Ke.erasNarrowRegex=p9;Ke.months=qz;Ke.monthsShort=Gz;Ke.monthsParse=Qz;Ke.monthsRegex=Jz;Ke.monthsShortRegex=Zz;Ke.week=tW;Ke.firstDayOfYear=sW;Ke.firstDayOfWeek=rW;Ke.weekdays=pW;Ke.weekdaysMin=gW;Ke.weekdaysShort=mW;Ke.weekdaysParse=vW;Ke.weekdaysRegex=SW;Ke.weekdaysShortRegex=_W;Ke.weekdaysMinRegex=kW;Ke.isPM=CW;Ke.meridiem=RW;function qd(e,t,n,r){var i=us(),a=Dr().set(r,t);return i[n](a,e)}function D2(e,t,n){if(ls(e)&&(t=e,e=void 0),e=e||"",t!=null)return qd(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=qd(e,r,n,"month");return i}function p0(e,t,n,r){typeof e=="boolean"?(ls(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ls(t)&&(n=t,t=void 0),t=t||"");var i=us(),a=e?i._week.dow:0,l,u=[];if(n!=null)return qd(t,(n+a)%7,r,"day");for(l=0;l<7;l++)u[l]=qd(t,(l+a)%7,r,"day");return u}function M9(e,t){return D2(e,t,"months")}function D9(e,t){return D2(e,t,"monthsShort")}function L9(e,t,n){return p0(e,t,n,"weekdays")}function I9(e,t,n){return p0(e,t,n,"weekdaysShort")}function F9(e,t,n){return p0(e,t,n,"weekdaysMin")}ei("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Ve(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});le.lang=Gn("moment.lang is deprecated. Use moment.locale instead.",ei);le.langData=Gn("moment.langData is deprecated. Use moment.localeData instead.",us);var qr=Math.abs;function B9(){var e=this._data;return this._milliseconds=qr(this._milliseconds),this._days=qr(this._days),this._months=qr(this._months),e.milliseconds=qr(e.milliseconds),e.seconds=qr(e.seconds),e.minutes=qr(e.minutes),e.hours=qr(e.hours),e.months=qr(e.months),e.years=qr(e.years),this}function L2(e,t,n,r){var i=hr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function U9(e,t){return L2(this,e,t,1)}function V9(e,t){return L2(this,e,t,-1)}function AS(e){return e<0?Math.floor(e):Math.ceil(e)}function z9(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,l,u,f;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=AS(Tg(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Hn(e/1e3),r.seconds=i%60,a=Hn(i/60),r.minutes=a%60,l=Hn(a/60),r.hours=l%24,t+=Hn(l/24),f=Hn(I2(t)),n+=f,t-=AS(Tg(f)),u=Hn(n/12),n%=12,r.days=t,r.months=n,r.years=u,this}function I2(e){return e*4800/146097}function Tg(e){return e*146097/4800}function W9(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Kn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+I2(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Tg(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function ds(e){return function(){return this.as(e)}}var F2=ds("ms"),$9=ds("s"),H9=ds("m"),Y9=ds("h"),q9=ds("d"),G9=ds("w"),K9=ds("M"),Q9=ds("Q"),X9=ds("y"),Z9=F2;function J9(){return hr(this)}function e7(e){return e=Kn(e),this.isValid()?this[e+"s"]():NaN}function io(e){return function(){return this.isValid()?this._data[e]:NaN}}var t7=io("milliseconds"),n7=io("seconds"),r7=io("minutes"),s7=io("hours"),i7=io("days"),o7=io("months"),a7=io("years");function l7(){return Hn(this.days()/7)}var Kr=Math.round,Ho={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function c7(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}
vendor: 2,378 bytes, lines 415-416
415function u7(e,t,n,r){var i=hr(e).abs(),a=Kr(i.as("s")),l=Kr(i.as("m")),u=Kr(i.as("h")),f=Kr(i.as("d")),p=Kr(i.as("M")),m=Kr(i.as("w")),g=Kr(i.as("y")),v=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||l<=1&&["m"]||l<n.m&&["mm",l]||u<=1&&["h"]||u<n.h&&["hh",u]||f<=1&&["d"]||f<n.d&&["dd",f];return n.w!=null&&(v=v||m<=1&&["w"]||m<n.w&&["ww",m]),v=v||p<=1&&["M"]||p<n.M&&["MM",p]||g<=1&&["y"]||["yy",g],v[2]=t,v[3]=+e>0,v[4]=r,c7.apply(null,v)}function d7(e){return e===void 0?Kr:typeof e=="function"?(Kr=e,!0):!1}function f7(e,t){return Ho[e]===void 0?!1:t===void 0?Ho[e]:(Ho[e]=t,e==="s"&&(Ho.ss=t-1),!0)}function h7(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Ho,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Ho,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=u7(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var fm=Math.abs;function Lo(e){return(e>0)-(e<0)||+e}function jf(){if(!this.isValid())return this.localeData().invalidDate();var e=fm(this._milliseconds)/1e3,t=fm(this._days),n=fm(this._months),r,i,a,l,u=this.asSeconds(),f,p,m,g;return u?(r=Hn(e/60),i=Hn(r/60),e%=60,r%=60,a=Hn(n/12),n%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=u<0?"-":"",p=Lo(this._months)!==Lo(u)?"-":"",m=Lo(this._days)!==Lo(u)?"-":"",g=Lo(this._milliseconds)!==Lo(u)?"-":"",f+"P"+(a?p+a+"Y":"")+(n?p+n+"M":"")+(t?m+t+"D":"")+(i||r||e?"T":"")+(i?g+i+"H":"")+(r?g+r+"M":"")+(e?g+l+"S":"")):"P0D"}var He=Cf.prototype;He.isValid=o$;He.abs=B9;He.add=U9;He.subtract=V9;He.as=W9;He.asMilliseconds=F2;He.asSeconds=$9;He.asMinutes=H9;He.asHours=Y9;He.asDays=q9;He.asWeeks=G9;He.asMonths=K9;He.asQuarters=Q9;He.asYears=X9;He.valueOf=Z9;He._bubble=z9;He.clone=J9;He.get=e7;He.milliseconds=t7;He.seconds=n7;He.minutes=r7;He.hours=s7;He.days=i7;He.weeks=l7;He.months=o7;He.years=a7;He.humanize=h7;He.toISOString=jf;He.toString=jf;He.toJSON=jf;He.locale=E2;He.localeData=T2;He.toIsoString=Gn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",jf);He.lang=C2;Ce("X",0,0,"unix");Ce("x",0,0,"valueOf");me("x",Sf);me("X",Mz);tt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});tt("x",function(e,t,n){n._d=new Date(Ve(e))});//! moment.js
416le.version="2.30.1";pz(ct);le.fn=se;le.min=n$;le.max=r$;le.now=s$;le.utc=Dr;le.unix=A9;le.months=M9;le.isDate=Sc;le.locale=ei;
416le.invalid=vf;le.duration=hr;le.isMoment=fr;le.weekdays=L9;le.parseZone=O9;le.localeData=us;le.isDuration=wd;le.monthsShort=D9;le.weekdaysMin=F9;le.defineLocale=o0;le.updateLocale=OW;le.locales=MW;le.weekdaysShort=I9;le.normalizeUnits=Kn;le.relativeTimeRounding=d7;le.relativeTimeThreshold=f7;le.calendarFormat=R$;le.prototype=se;le.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function jg({rating:e,size:t="sm"}){const n=t==="sm"?"w-3.5 h-3.5":"w-4 h-4";return d.jsx("div",{className:"flex gap-0.5",children:[1,2,3,4,5].map(r=>d.jsx(va,{className:`${n} ${r<=e?"fill-amber-400 text-amber-400":"text-earth-200 fill-earth-100"}`},r))})}function B2({email:e,compact:t=!1}){const[n,r]=w.useState(null),[i,a]=w.useState(0);return w.useEffect(()=>{e&&ve.entities.Review.filter({reviewed_email:e}).then(l=>{if(l.length===0)return;const u=l.reduce((f,p)=>f+p.rating,0)/l.length;r(Math.round(u*10)/10),a(l.length)}).catch(()=>{})},[e]),n===null?null:t?d.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-amber-600 font-semibold",children:[d.jsx(va,{className:"w-3 h-3 fill-amber-400 text-amber-400"}),n," (",i,")"]}):d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(jg,{rating:Math.round(n)}),d.jsx("span",{className:"text-sm font-semibold text-foreground",children:n}),d.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",i," review",i!==1?"s":"",")"]})]})}function p7({email:e}){const[t,n]=w.useState([]),[r,i]=w.useState(!0);if(w.useEffect(()=>{e&&ve.entities.Review.filter({reviewed_email:e},"-created_date",50).then(n).catch(()=>{}).finally(()=>i(!1))},[e]),r)return null;if(t.length===0)return d.jsx("p",{className:"text-sm text-muted-foreground text-center py-6",children:"No reviews yet."});const a=t.reduce((l,u)=>l+u.rating,0)/t.length;return d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center gap-4 p-4 bg-amber-50 border border-amber-100 rounded-2xl",children:[d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"text-3xl font-bold text-foreground",children:(Math.round(a*10)/10).toFixed(1)}),d.jsx(jg,{rating:Math.round(a)}),d.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[t.length," review",t.length!==1?"s":""]})]}),d.jsx("div",{className:"flex-1 space-y-1",children:[5,4,3,2,1].map(l=>{const u=t.filter(p=>p.rating===l).length,f=t.length>0?u/t.length*100:0;return d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-xs text-muted-foreground w-4",children:l}),d.jsx(va,{className:"w-3 h-3 fill-amber-400 text-amber-400"}),d.jsx("div",{className:"flex-1 bg-earth-100 rounded-full h-1.5",children:d.jsx("div",{className:"bg-amber-400 h-1.5 rounded-full transition-all",style:{width:`${f}%`}})}),d.jsx("span",{className:"text-xs text-muted-foreground w-4",children:u})]},l)})})]}),t.map(l=>{var u,f;return d.jsxs("div",{className:"bg-white rounded-xl border border-earth-100 p-4",children:[d.jsxs("div",{className:"flex items-start justify-between gap-3 mb-2",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"w-8 h-8 rounded-xl bg-sage-700 flex items-center justify-center text-white font-bold text-xs shrink-0",children:((f=(u=l.reviewer_name)==null?void 0:u[0])==null?void 0:f.toUpperCase())||"?"}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-semibold text-foreground",children:l.reviewer_name}),d.jsx("p",{className:"text-xs text-muted-foreground",children:le(l.created_date).fromNow()})]})]}),d.jsx(jg,{rating:l.rating})]}),l.listing_title&&d.jsxs("p",{className:"text-xs text-muted-foreground mb-1.5",children:["Re: ",l.listing_title]}),l.content&&d.jsxs("p",{className:"text-sm text-foreground leading-relaxed",children:['"',l.content,'"']})]},l.id)})]})}const OS={sell:{label:"For Sale",classes:"bg-sage-700 text-white"},trade:{label:"For Trade",classes:"bg-sky-700 text-white"},both:{label:"Sale · Trade",classes:"bg-terracotta-500 text-white"}},m7={New:"text-sage-700 bg-sage-50 border-sage-200","Like New":"text-sky-700 bg-sky-50 border-sky-200",Good:"text-amber-700 bg-amber-50 border-amber-200",Fair:"text-orange-700 bg-orange-50 border-orange-200","For Parts":"text-red-700 bg-red-50 border-red-200"};function g7(){var G,K,q;const{id:e}=Q_(),t=wa(),[n,r]=w.useState(null),[i,a]=w.useState(!0),[l,u]=w.useState(0),[f,p]=w.useState(null),[m,g]=w.useState(!1),[v,b]=w.useState(!1),[E,_]=w.useState(!1),[k,S]=w.useState(null),[R,C]=w.useState(!1);w.useEffect(()=>{Promise.all([ve.entities.Listing.filter({id:e}).then(Q=>Q[0]),ve.auth.me().catch(()=>null)]).then(([Q,Z])=>{r(Q),p(Z),a(!1)})},[e]);const T=async Q=>{if(!f){ve.auth.redirectToLogin(window.location.href);return}const he=(await ve.entities.Conversation.filter({listing_id:n.id})).find(X=>{var re,V;return((re=X.participant_emails)==null?void 0:re.includes(f.email))&&((V=X.participant_emails)==null?void 0:V.includes(n.owner_email))});if(he)t(`/messages/${he.id}`);else{const X=await ve.entities.Conversation.create({participant_emails:[f.email,n.owner_email],participant_names:[f.full_name||f.email,n.owner_name||n.owner_email],listing_id:n.id,listing_title:n.title,last_message:Q,last_message_date:new Date().toISOString()});await ve.entities.Message.create({conversation_id:X.id,sender_email:f.email,sender_name:f.full_name||f.email,content:Q,type:"text"}),t(`/messages/${X.id}`)}},N=()=>{navigator.clipboard.writeText(window.location.href),b(!0),setTimeout(()=>b(!1),2e3)},O=async()=>{var Q;if((Q=n.photos)!=null&&Q[0]){C(!0),_(!0),S(null);try{const Z=await ve.integrations.Core.InvokeLLM({prompt:`Analyze this marketplace listing image. Identify:
4171. Main item name
4182. Category (Electronics/Furniture/Clothing/Sports/Books/Home & Garden/Toys/Vehicles/Art/Music/Tools/Other)
4193. 5-8 keywords describing this item
4204. A short search phrase for finding similar items`,file_urls:[n.photos[0]],response_json_schema:{type:"object",properties:{item_name:{type:"string"},category:{type:"string"},keywords:{type:"array",items:{type:"string"}},search_terms:{type:"string"}},required:["item_name","category","keywords","search_terms"]}}),he=await ve.entities.Listing.filter({status:"active"},"-created_date",200),X=[...Z.keywords||[],Z.item_name,Z.category].map(V=>V.toLowerCase()),re=he.filter(V=>
420V.id!==n.id).map(V=>{var P,W;let te=0;const $=[V.title,V.description,V.category,...V.trade_for||[]].join(" ").toLowerCase();return X.forEach(ce=>{$.includes(ce)&&(te+=ce.length>4?3:1)}),((P=V.category)==null?void 0:P.toLowerCase())===((W=Z.category)==null?void 0:W.toLowerCase())&&(te+=5),{...V,_score:te}}).filter(V=>V._score>0).sort((V,te)=>te._score-V._score).slice(0,8);S({matches:re,analysis:Z})}catch{S({matches:[],analysis:null,error:!0})}C(!1)}};if(i)return d.jsx("div",{className:"max-w-5xl mx-auto px-4 py-10 animate-pulse",children:d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-8",children:[d.jsx("div",{className:"lg:col-span-3 aspect-[4/3] bg-earth-100 rounded-2xl"}),d.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[d.jsx("div",{className:"h-5 bg-earth-100 rounded-xl w-1/2"}),d.jsx("div",{className:"h-8 bg-earth-100 rounded-xl w-3/4"}),d.jsx("div",{className:"h-4 bg-earth-100 rounded-xl"}),d.jsx("div",{className:"h-4 bg-earth-100 rounded-xl w-5/6"})]})]})});if(!n)return d.jsxs("div",{className:"text-center py-24",children:[d.jsx(l_,{className:"w-12 h-12 mx-auto text-earth-200 mb-4"}),d.jsx("p",{className:"text-muted-foreground mb-4",children:"Listing not found or has been removed."}),d.jsx(Ue,{to:"/browse",children:d.jsx(bt,{variant:"outline",className:"rounded-xl border-earth-200",children:"Back to Browse"})})]});const B=(f==null?void 0:f.email)===n.owner_email,M=OS[n.listing_type]||OS.sell,Y=n.photos||[];return d.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-7",children:[d.jsxs("button",{onClick:()=>t(-1),className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground mb-6 transition-colors group",children:[d.jsx(JS,{className:"w-4 h-4 group-hover:-translate-x-0.5 transition-transform"}),"Back to listings"]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-8",children:[d.jsxs("div",{className:"lg:col-span-3",children:[d.jsxs("div",{className:"relative aspect-[4/3] rounded-2xl overflow-hidden bg-earth-50 shadow-card",children:[Y.length>0?d.jsx("img",{src:Y[l],alt:n.title,className:"w-full h-full object-cover"}):d.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center gap-3 text-earth-300",children:[d.jsx(qN,{className:"w-12 h-12"}),d.jsx("span",{className:"text-sm",children:"No photos"})]}),Y.length>1&&d.jsxs(d.Fragment,{children:[d.jsx("button",{onClick:()=>u(Q=>(Q-1+Y.length)%Y.length),className:"absolute left-3 top-1/2 -translate-y-1/2 w-9 h-9 rounded-full bg-white/80 backdrop-blur text-foreground flex items-center justify-center hover:bg-white transition-colors shadow-sm",children:d.jsx(ON,{className:"w-5 h-5"})}),d.jsx("button",{onClick:()=>u(Q=>(Q+1)%Y.length),className:"absolute right-3 top-1/2 -translate-y-1/2 w-9 h-9 rounded-full bg-white/80 backdrop-blur text-foreground flex items-center justify-center hover:bg-white transition-colors shadow-sm",children:d.jsx(n_,{className:"w-5 h-5"})}),d.jsx("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex gap-1.5",children:Y.map((Q,Z)=>d.jsx("button",{onClick:()=>u(Z),className:`w-2 h-2 rounded-full transition-all ${Z===l?"bg-white scale-125":"bg-white/50"}`},Z))})]})]}),Y.length>1&&d.jsx("div",{className:"flex gap-2 mt-3 overflow-x-auto pb-1",children:Y.map((Q,Z)=>d.jsx("button",{onClick:()=>u(Z),className:`w-16 h-16 rounded-xl overflow-hidden flex-shrink-0 border-2 transition-all ${Z===l?"border-sage-700 shadow-md":"border-transparent opacity-60 hover:opacity-100"}`,children:d.jsx("img",{src:Q,alt:"",className:"w-full h-full object-cover"})},Z))}),Y.length>0&&d.jsx("button",{onClick:O,disabled:R,className:"mt-4 w-full flex items-center justify-center gap-2 py-2.5 bg-white border border-earth-200 hover:border-terracotta-300 hover:bg-terracotta-50 text-sm font-semibold text-muted-foreground hover:text-terracotta-700 rounded-xl transition-all shadow-card disabled:opacity-60",children:R?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-4 h-4 border-2 border-earth-200 border-t-terracotta-500 rounded-full animate-spin"}),"Finding similar items…"]}):d.jsxs(d.Fragment,{children:[d.jsx(Er,{className:"w-4 h-4"}),"Find Similar Items by Photo"]})})]}),d.jsx("div",{className:"lg:col-span-2",children:d.jsxs("div",{className:"bg-white rounded-2xl border border-earth-200 p-6 space-y-5 shadow-card lg:sticky lg:top-24",children:[d.jsxs("div",{className:"flex flex-wrap gap-2",children:[d.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-bold ${M.classes}`,children:M.label}),n.condition&&d.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-semibold border ${m7[n.condition]||"text-muted-foreground bg-muted border-border"}`,children:n.condition}),n.category&&d.jsx("span",{className:"px-3 py-1 rounded-full text-xs font-medium bg-earth-100 text-muted-foreground",children:n.category})]}),d.jsxs("div",{children:[d.jsx("h1",{className:"font-serif font-semibold text-2xl text-foreground leading-tight mb-2",children:n.title}),n.price>0?d.jsxs("p",{className:"text-3xl font-bold text-terracotta-600",children:["$",n.price]}):n.listing_type==="trade"?d.jsxs("p",{className:"text-lg font-semibold text-sky-700 flex items-center gap-2",children:[d.jsx(Yn,{className:"w-5 h-5"})," Trade Only"]}):null]}),d.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx(Nr,{className:"w-3.5 h-3.5 text-earth-400"}),d.jsx("span",{children:n.location})]}),d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx(s_,{className:"w-3.5 h-3.5 text-earth-400"}),d.jsx("span",{children:le(n.created_date).fromNow()})]})]}),d.jsxs("div",{className:"pt-1",children:[d.jsx("h3",{className:"text-xs font-bold text-muted-foreground uppercase tracking-wider mb-2",children:"Description"}),d.jsx("p",{className:"text-sm text-foreground leading-relaxed whitespace-pre-wrap",children:n.description})]}),((G=n.trade_for)==null?void 0:G.length)>0&&d.jsxs("div",{className:"bg-sky-50 rounded-xl p-4 border border-sky-100",children:[d.jsxs("h3",{className:"text-xs font-bold text-sky-700 uppercase tracking-wider mb-2 flex items-center gap-1.5",children:[d.jsx(Yn,{className:"w-3.5 h-3.5"})," Open to trade for"]}),d.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.trade_for.map((Q,Z)=>d.jsx("span",{className:"px-2.5 py-1 bg-white border border-sky-200 text-sky-800 rounded-full text-xs font-medium",children:Q},Z))})]}),d.jsxs("div",{className:"flex items-center gap-3 py-3 border-t border-earth-100",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-sage-700 flex items-center justify-center text-white font-bold text-sm shrink-0",children:((q=(K=n.owner_name)==null?void 0:K[0])==null?void 0:q.toUpperCase())||"?"}),d.jsxs("div",{children:[d.jsx("p",{className:"font-semibold text-sm text-foreground",children:n.owner_name||"Anonymous"}),d.jsx(B2,{email:n.owner_email,compact:!0}),d.jsxs("p",{className:"text-xs text-muted-foreground",children:["Listed ",le(n.created_date).fromNow()]})]})]}),!B&&d.jsxs("div",{className:"space-y-2.5",children:[(n.listing_type==="trade"||n.listing_type==="both")&&d.jsxs(bt,{onClick:()=>f?g(!0):ve.auth.redirectToLogin(window.location.href),className:"w-full bg-terracotta-500 hover:bg-terracotta-600 text-white py-3 rounded-xl font-bold gap-2 shadow-sm",children:[d.jsx(Yn,{className:"w-4 h-4"})," Make a Trade Offer"]}),d.jsxs(bt,{onClick:()=>T("Is this still available?"),className:"w-full bg-sage-700 hover:bg-sage-800 text-white py-3 rounded-xl font-bold gap-2 shadow-sm",children:[d.jsx(da,{className:"w-4 h-4"})," ",f?"Message Seller":"Sign In to Message"]}),d.jsxs("button",{onClick:N,className:"w-full flex items-center justify-center gap-2 py-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[d.jsx(yP,{className:"w-4 h-4"})," ",v?"Link copied!":"Share this listing"]})]}),B&&d.jsxs("div",{className:"p-4 rounded-xl bg-earth-50 border border-earth-100 text-center",children:[d.jsx(va,{className:"w-5 h-5 text-terracotta-500 mx-auto mb-1"}),d.jsx("p",{className:"text-sm font-semibold text-foreground",children:"This is your listing"}),d.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Others can contact you about it"})]}),d.jsxs("div",{className:"flex items-start gap-2 p-3 rounded-xl bg-amber-50 border border-amber-100 text-xs text-amber-800",children:[d.jsx(Qd,{className:"w-3.5 h-3.5 shrink-0 mt-0.5"}),d.jsxs("span",{children:["Meet in a public place. Never wire money to someone you don't know. ",d.jsx(Ue,{to:"/help",className:"underline font-medium",children:"Safety tips"}),"."]})]})]})})]}),d.jsx($l,{children:E&&d.jsxs(et.div,{initial:{opacity:0,y:12}
420,animate:{opacity:1,y:0},exit:{opacity:0,y:12},className:"mt-10",children:[d.jsxs("div",{className:"flex items-center justify-between mb-5",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(qi,{className:"w-5 h-5 text-terracotta-500"}),d.jsx("h2",{className:"font-serif font-semibold text-xl text-foreground",children:"Visually Similar Items"})]}),d.jsx("button",{onClick:()=>{_(!1),S(null)},className:"text-muted-foreground hover:text-foreground p-1 rounded-lg hover:bg-earth-100 transition-colors",children:d.jsx(un,{className:"w-4 h-4"})})]}),R?d.jsxs("div",{className:"flex flex-col items-center py-12 gap-3 bg-white rounded-2xl border border-earth-200 shadow-card",children:[d.jsx("div",{className:"w-10 h-10 rounded-full border-3 border-earth-200 border-t-terracotta-500 animate-spin",style:{borderWidth:3}}),d.jsx("p",{className:"text-sm font-semibold text-foreground",children:"We're finding items that look like this…"})]}):(k==null?void 0:k.matches.length)===0?d.jsxs("div",{className:"text-center py-12 bg-white rounded-2xl border border-earth-200 shadow-card",children:[d.jsx(Er,{className:"w-10 h-10 mx-auto text-earth-200 mb-3"}),d.jsx("p",{className:"font-semibold text-foreground mb-1",children:"No similar items found right now"}),d.jsx("p",{className:"text-muted-foreground text-sm",children:"Check back as more people list items!"})]}):d.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:k==null?void 0:k.matches.map((Q,Z)=>d.jsx(Zi,{listing:Q,index:Z},Q.id))})]})}),m&&f&&d.jsx(hz,{listing:n,user:f,onClose:()=>g(!1),onSuccess:()=>{}})]})}function y7(){const[e,t]=w.useState([]),[n,r]=w.useState(!0),[i,a]=w.useState(null);w.useEffect(()=>{ve.auth.me().then(async u=>{a(u);const p=(await ve.entities.Conversation.filter({},"-updated_date",50)).filter(m=>{var g;return(g=m.participant_emails)==null?void 0:g.includes(u.email)});t(p),r(!1)}).catch(()=>ve.auth.redirectToLogin(window.location.href))},[]);const l=u=>{var m,g,v;if(!i)return"Unknown";const p=((m=u.participant_emails)==null?void 0:m.indexOf(i.email))===0?1:0;return((g=u.participant_names)==null?void 0:g[p])||((v=u.participant_emails)==null?void 0:v[p])||"Unknown"};return n?d.jsx("div",{className:"flex justify-center py-24",children:d.jsx("div",{className:"w-8 h-8 border-4 border-muted border-t-secondary rounded-full animate-spin"})}):d.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 py-6 sm:py-8",children:[d.jsx("h1",{className:"font-serif text-3xl text-foreground mb-6",children:"Messages"}),e.length===0?d.jsxs("div",{className:"text-center py-16 bg-card rounded-2xl border border-border",children:[d.jsx(da,{className:"w-12 h-12 mx-auto text-muted-foreground/50 mb-4"}),d.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"No messages yet"}),d.jsx("p",{className:"text-muted-foreground text-sm",children:"Start a conversation by contacting a seller on a listing."})]}):d.jsx("div",{className:"space-y-2",children:e.map(u=>d.jsxs(Ue,{to:`/messages/${u.id}`,className:"flex items-center gap-4 p-4 bg-card rounded-xl border border-border hover:border-secondary/30 transition-all group",children:[d.jsx("div",{className:"w-10 h-10 rounded-full bg-secondary/10 flex items-center justify-center flex-shrink-0",children:d.jsx(da,{className:"w-5 h-5 text-secondary"})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"flex items-center justify-between mb-0.5",children:[d.jsx("p",{className:"font-medium text-foreground text-sm truncate",children:l(u)}),d.jsx("span",{className:"text-[10px] text-muted-foreground flex-shrink-0",children:u.last_message_date?le(u.last_message_date).fromNow():""})]}),d.jsxs("p",{className:"text-xs text-muted-foreground truncate",children:[u.listing_title&&d.jsxs("span",{className:"font-medium",children:["Re: ",u.listing_title," — "]}),u.last_message||"No messages yet"]})]}),d.jsx(n_,{className:"w-4 h-4 text-muted-foreground group-hover:text-foreground transition-colors flex-shrink-0"})]},u.id))})]})}function v7(){const{conversationId:e}=Q_(),t=wa(),[n,r]=w.useState(null),[i,a]=w.useState([]),[l,u]=w.useState(""),[f,p]=w.useState(null),[m,g]=w.useState(!0),[v,b]=w.useState(!1),E=w.useRef(null);
420w.useEffect(()=>{Promise.all([ve.auth.me(),ve.entities.Conversation.filter({id:e}).then(S=>S[0]),ve.entities.Message.filter({conversation_id:e},"created_date",200)]).then(([S,R,C])=>{p(S),r(R),a(C),g(!1)}).catch(()=>ve.auth.redirectToLogin(window.location.href))},[e]),w.useEffect(()=>{var S;(S=E.current)==null||S.scrollIntoView({behavior:"smooth"})},[i]),w.useEffect(()=>ve.entities.Message.subscribe(R=>{var C;((C=R.data)==null?void 0:C.conversation_id)===e&&R.type==="create"&&a(T=>[...T,R.data])}),[e]);const _=()=>{var C,T;if(!f||!n)return"Chat";const R=((C=n.participant_emails)==null?void 0:C.indexOf(f.email))===0?1:0;return((T=n.participant_names)==null?void 0:T[R])||"User"},k=async()=>{if(!l.trim()||v)return;b(!0);const S=l.trim();u(""),await ve.entities.Message.create({conversation_id:e,sender_email:f.email,sender_name:f.full_name||f.email,content:S,type:"text"}),await ve.entities.Conversation.update(e,{last_message:S,last_message_date:new Date().toISOString()}),b(!1)};return m?d.jsx("div",{className:"flex justify-center py-24",children:d.jsx("div",{className:"w-8 h-8 border-4 border-muted border-t-secondary rounded-full animate-spin"})}):d.jsxs("div",{className:"flex flex-col h-[calc(100vh-64px)] md:h-[calc(100vh-64px)] max-w-2xl mx-auto",children:[d.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-border bg-card",children:[d.jsx("button",{onClick:()=>t("/messages"),className:"p-1 hover:bg-muted rounded-lg transition-colors",children:d.jsx(JS,{className:"w-5 h-5"})}),d.jsxs("div",{children:[d.jsx("p",{className:"font-medium text-sm text-foreground",children:_()}),(n==null?void 0:n.listing_title)&&d.jsxs("p",{className:"text-xs text-muted-foreground",children:["Re: ",n.listing_title]})]})]}),d.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-3",children:[i.map(S=>{const R=S.sender_email===(f==null?void 0:f.email);return d.jsx("div",{className:`flex ${R?"justify-end":"justify-start"}`,children:d.jsxs("div",{className:`max-w-[80%] px-4 py-2.5 rounded-2xl ${R?"bg-secondary text-secondary-foreground rounded-br-md":"bg-card border border-border text-foreground rounded-bl-md"}`,children:[d.jsx("p",{className:"text-sm leading-relaxed",children:S.content}),d.jsx("p",{className:`text-[10px] mt-1 ${R?"text-secondary-foreground/60":"text-muted-foreground"}`,children:le(S.created_date).format("h:mm A")})]})},S.id)}),d.jsx("div",{ref:E})]}),d.jsx("div",{className:"px-4 py-2 bg-amber-50 border-t border-amber-100 text-center",children:d.jsxs("p",{className:"text-[11px] text-amber-800",children:["⚠️ Meet in public. Never wire money to strangers. ",d.jsx(Ue,{to:"/help",className:"underline font-medium",children:"Safety tips"})]})}),d.jsx("div",{className:"px-4 py-3 border-t border-border bg-card mb-16 md:mb-0",children:d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{type:"text",value:l,onChange:S=>u(S.target.value),onKeyDown:S=>S.key==="Enter"&&k(),placeholder:"Type a message...",className:"flex-1 px-4 py-2.5 rounded-xl border border-border bg-background text-foreground text-sm focus:outline-none focus:ring-2 focus:ring-secondary/50 focus:border-secondary transition-all"}),d.jsx(bt,{onClick:k,disabled:!l.trim()||v,className:"bg-secondary hover:bg-secondary/90 text-secondary-foreground rounded-xl px-4",children:d.jsx(mP,{className:"w-4 h-4"})})]})})]})}function x7(){const[e,t]=w.useState([]),[n,r]=w.useState([]),[i,a]=w.useState([]),[l,u]=w.useState(!0),[f,p]=w.useState(null),[m,g]=w.useState(null);return w.useEffect(()=>{ve.auth.me().then(async v=>{p(v);const[b,E]=await Promise.all([ve.entities.Listing.filter({owner_email:v.email,status:"active"}),ve.entities.Listing.filter({status:"active"},"-created_date",200)]);t(b),r(E.filter(_=>_.owner_email!==v.email)),u(!1)}).catch(()=>ve.auth.redirectToLogin(window.location.href))},[]),w.useEffect(()=>{var S,R;if(!m||n.length===0){a([]);return}const v=((S=m.trade_for)==null?void 0:S.map(C=>C.toLowerCase()))||[],b=m.title.toLowerCase(),E=(R=m.category)==null?void 0:R.toLowerCase(),k=n.map(C=>{var M,Y;let T=0;const N=((M=C.trade_for)==null?void 0:M.map(G=>
420G.toLowerCase()))||[],O=C.title.toLowerCase(),B=(Y=C.category)==null?void 0:Y.toLowerCase();for(const G of N)(b.includes(G)||G.includes(b)||E!=null&&E.includes(G))&&(T+=3);for(const G of v)(O.includes(G)||G.includes(O)||B!=null&&B.includes(G))&&(T+=3);return E&&E===B&&(T+=1),(C.listing_type==="trade"||C.listing_type==="both")&&(T+=1),{listing:C,score:T}}).filter(C=>C.score>0).sort((C,T)=>T.score-C.score);a(k)},[m,n]),l?d.jsx("div",{className:"flex justify-center py-24",children:d.jsx("div",{className:"w-8 h-8 border-4 border-muted border-t-secondary rounded-full animate-spin"})}):d.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 sm:py-8",children:[d.jsxs("div",{className:"mb-8",children:[d.jsx("h1",{className:"font-serif text-3xl text-foreground mb-2",children:"Smart Matches"}),d.jsx("p",{className:"text-muted-foreground text-sm",children:"Select one of your listings to find trade matches in the community"})]}),e.length===0?d.jsxs("div",{className:"text-center py-16 bg-card rounded-2xl border border-border",children:[d.jsx(Kd,{className:"w-12 h-12 mx-auto text-muted-foreground/50 mb-4"}),d.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"No listings yet"}),d.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Create a listing first to find trade matches"})]}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"mb-8",children:[d.jsx("label",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-3 block",children:"Your Listings"}),d.jsx("div",{className:"flex flex-wrap gap-2",children:e.map(v=>{var b;return d.jsxs("button",{onClick:()=>g((m==null?void 0:m.id)===v.id?null:v),className:`flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-medium border transition-all ${(m==null?void 0:m.id)===v.id?"bg-secondary text-secondary-foreground border-secondary":"bg-card text-foreground border-border hover:border-secondary/50"}`,children:[((b=v.photos)==null?void 0:b[0])&&d.jsx("img",{src:v.photos[0],alt:"",className:"w-6 h-6 rounded object-cover"}),v.title]},v.id)})})]}),m&&d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[d.jsx(Yn,{className:"w-5 h-5 text-accent"}),d.jsxs("span",{className:"text-sm text-muted-foreground",children:[i.length," potential match",i.length!==1?"es":"",' for "',m.title,'"']})]}),i.length===0?d.jsxs("div",{className:"text-center py-12 bg-card rounded-2xl border border-border",children:[d.jsx(fa,{className:"w-10 h-10 mx-auto text-muted-foreground/50 mb-3"}),d.jsx("p",{className:"text-muted-foreground text-sm",children:"No matches found yet. Try adding more trade preferences to your listing!"})]}):d.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:i.map(({listing:v,score:b},E)=>d.jsxs("div",{className:"relative",children:[d.jsx(Zi,{listing:v,index:E}),d.jsxs("div",{className:"absolute top-2 right-2 z-10 bg-accent text-accent-foreground px-2 py-0.5 rounded-full text-[10px] font-bold",children:[Math.min(b*20,100),"% match"]})]},v.id))})]})]})]})}var hm="rovingFocusGroup.onEntryFocus",w7={bubbles:!1,cancelable:!0},Cc="RovingFocusGroup",[Rg,U2,b7]=CC(Cc),[S7,V2]=xc(Cc,[b7]),[_7,k7]=S7(Cc),z2=w.forwardRef((e,t)=>d.jsx(Rg.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Rg.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(E7,{...e,ref:t})})}));z2.displayName=Cc;var E7=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:f,onEntryFocus:p,preventScrollOnEntryFocus:m=!1,...g}=e,v=w.useRef(null),b=Dt(t,v),E=Iy(a),[_,k]=Vd({prop:l,defaultProp:u??null,onChange:f,caller:Cc}),[S,R]=w.useState(!1),C=ri(p),T=U2(n),N=w.useRef(!1),[O,B]=w.useState(0);return w.useEffect(()=>{const M=v.current;if(M)return M.addEventListener(hm,C),()=>M.removeEventListener(hm,C)},[C]),d.jsx(_7,{scope:n,orientation:r,dir:E,loop:i,currentTabStopId:_,onItemFocus:w.useCallback(M=>k(M),[k]),onItemShiftTab:w.useCallback(()=>R(!0),[]),onFocusableItemAdd:w.useCallback(()=>B(M=>M+1),[]),onFocusableItemRemove:w.useCallback(()=>B(M=>M-1),[]),children:d.jsx(nt.div,{tabIndex:S||O===0?-1:0,"data-orientation":r,...g,ref:b,style:{outline:"none",...e.style},onMouseDown:Je(e.onMouseDown,()=>{N.current=!0}),onFocus:Je(e.onFocus,M=>{const Y=!N.current;if(M.target===M.currentTarget&&Y&&!S){const G=new CustomEvent(hm,w7);if(M.currentTarget.dispatchEvent(G),!G.defaultPrevented){const K=T().filter(X=>X.focusable),q=K.find(X=>X.active),Q=K.find(X=>
vendor: 1,498 bytes, line 420
420X.id===_),he=[q,Q,...K].filter(Boolean).map(X=>X.ref.current);H2(he,m)}}N.current=!1}),onBlur:Je(e.onBlur,()=>R(!1))})})}),W2="RovingFocusGroupItem",$2=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:l,...u}=e,f=wc(),p=a||f,m=k7(W2,n),g=m.currentTabStopId===p,v=U2(n),{onFocusableItemAdd:b,onFocusableItemRemove:E,currentTabStopId:_}=m;return w.useEffect(()=>{if(r)return b(),()=>E()},[r,b,E]),d.jsx(Rg.ItemSlot,{scope:n,id:p,focusable:r,active:i,children:d.jsx(nt.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...u,ref:t,onMouseDown:Je(e.onMouseDown,k=>{r?m.onItemFocus(p):k.preventDefault()}),onFocus:Je(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:Je(e.onKeyDown,k=>{if(k.key==="Tab"&&k.shiftKey){m.onItemShiftTab();return}if(k.target!==k.currentTarget)return;const S=j7(k,m.orientation,m.dir);if(S!==void 0){if(k.metaKey||k.ctrlKey||k.altKey||k.shiftKey)return;k.preventDefault();let C=v().filter(T=>T.focusable).map(T=>T.ref.current);if(S==="last")C.reverse();else if(S==="prev"||S==="next"){S==="prev"&&C.reverse();const T=C.indexOf(k.currentTarget);C=m.loop?R7(C,T+1):C.slice(T+1)}setTimeout(()=>H2(C))}}),children:typeof l=="function"?l({isCurrentTabStop:g,hasTabStop:_!=null}):l})})});$2.displayName=W2;var C7={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T7(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}
vendor: 5,663 bytes, line 420
420function j7(e,t,n){const r=T7(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return C7[r]}function H2(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function R7(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var N7=z2,P7=$2;function A7(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var Y2=e=>{const{present:t,children:n}=e,r=O7(t),i=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),a=Dt(r.ref,M7(i));return typeof n=="function"||r.isPresent?w.cloneElement(i,{ref:a}):null};Y2.displayName="Presence";function O7(e){const[t,n]=w.useState(),r=w.useRef(null),i=w.useRef(e),a=w.useRef("none"),l=e?"mounted":"unmounted",[u,f]=A7(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const p=rd(r.current);a.current=u==="mounted"?p:"none"},[u]),on(()=>{const p=r.current,m=i.current;if(m!==e){const v=a.current,b=rd(p);e?f("MOUNT"):b==="none"||(p==null?void 0:p.display)==="none"?f("UNMOUNT"):f(m&&v!==b?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),on(()=>{if(t){let p;const m=t.ownerDocument.defaultView??window,g=b=>{const _=rd(r.current).includes(CSS.escape(b.animationName));if(b.target===t&&_&&(f("ANIMATION_END"),!i.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",p=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},v=b=>{b.target===t&&(a.current=rd(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{m.clearTimeout(p),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:w.useCallback(p=>{r.current=p?getComputedStyle(p):null,n(p)},[])}}function rd(e){return(e==null?void 0:e.animationName)||"none"}function M7(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Rf="Tabs",[D7]=xc(Rf,[V2]),q2=V2(),[L7,m0]=D7(Rf),G2=w.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:u,activationMode:f="automatic",...p}=e,m=Iy(u),[g,v]=Vd({prop:r,onChange:i,defaultProp:a??"",caller:Rf});return d.jsx(L7,{scope:n,baseId:wc(),value:g,onValueChange:v,orientation:l,dir:m,activationMode:f,children:d.jsx(nt.div,{dir:m,"data-orientation":l,...p,ref:t})})});G2.displayName=Rf;var K2="TabsList",Q2=w.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,a=m0(K2,n),l=q2(n);return d.jsx(N7,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:r,children:d.jsx(nt.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});Q2.displayName=K2;var X2="TabsTrigger",Z2=w.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,l=m0(X2,n),u=q2(n),f=tj(l.baseId,r),p=nj(l.baseId,r),m=r===l.value;return d.jsx(P7,{asChild:!0,...u,focusable:!i,active:m,children:d.jsx(nt.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f,...a,ref:t,onMouseDown:Je(e.onMouseDown,g=>{!i&&g.button===0&&g.ctrlKey===!1?l.onValueChange(r):g.preventDefault()}),onKeyDown:Je(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&l.onValueChange(r)}),onFocus:Je(e.onFocus,()=>{const g=l.activationMode!=="manual";!m&&!i&&g&&l.onValueChange(r)})})})});Z2.displayName=X2;var J2="TabsContent",ej=w.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:a,...l}=e,u=m0(J2,n),f=tj(u.baseId,r),p=nj(u.baseId,r),m=r===u.value,g=w.useRef(m);return w.useEffect(()=>{const v=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(v)},[]),d.jsx(Y2,{present:i||m,children:({present:v})=>d.jsx(nt.div,{"data-state":m?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":f,hidden:!v,id:p,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:v&&a})})});ej.displayName=J2;function tj(e,t){return`${e}-trigger-${t}`}function nj(e,t){return`${e}-content-${t}`}var I7=G2,rj=Q2,sj=Z2,ij=ej;const oj=I7,g0=w.forwardRef(({className:e,...t},n)=>d.jsx(rj,{ref:n,className:Mt("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));g0.displayName=rj.displayName;const Xo=w.forwardRef(({className:e,...t},n)=>d.jsx(sj,{ref:n,className:Mt("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 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",e),...t}));Xo.displayName=sj.displayName;const Zo=w.forwardRef(({className:e,...t},n)=>d.jsx(ij,{ref:n,className:Mt("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Zo.displayName=ij.displayName;const F7=[{id:"first_listing",icon:"🌱",label:"First Post",desc:"Listed your first item",color:"bg-green-50 border-green-200"}
420,{id:"eco_hero",icon:"♻️",label:"Eco Hero",desc:"5+ items given new life",color:"bg-emerald-50 border-emerald-200"},{id:"trader",icon:"🤝",label:"Trader",desc:"Completed your first trade",color:"bg-blue-50 border-blue-200"},{id:"community",icon:"⭐",label:"Community Star",desc:"10+ exchanges completed",color:"bg-amber-50 border-amber-200"}],B7=["Electronics","Furniture","Clothing","Sports","Books","Tools","Toys","Home & Garden","Art","Music","Vehicles"];function U7(){var Y,G,K;const[e,t]=w.useState(null),[n,r]=w.useState([]),[i,a]=w.useState(!0),[l,u]=w.useState(!1),[f,p]=w.useState(""),[m,g]=w.useState(!1),[v,b]=w.useState(!1),[E,_]=w.useState([]),[k,S]=w.useState(!1);w.useEffect(()=>{ve.auth.me().then(async q=>{t(q),p(q.zip_code||""),_(q.interests||[]),!q.zip_code&&(!q.interests||q.interests.length===0)&&b(!0);const Q=await ve.entities.Listing.filter({owner_email:q.email},"-created_date",100);r(Q),a(!1)}).catch(()=>a(!1))},[]);const R=n.filter(q=>q.status==="active"),C=n.filter(q=>q.status==="traded"||q.status==="sold"),T=n.length*8,N=F7.filter(q=>q.id==="first_listing"?n.length>=1:q.id==="eco_hero"?n.length>=5:q.id==="trader"?C.length>=1:q.id==="community"?C.length>=10:!1),O=async()=>{if(f&&!/^\d{5}(-\d{4})?$/.test(f.trim())){wn.error("Please enter a valid 5-digit ZIP code");return}g(!0),await ve.auth.updateMe({zip_code:f.trim()}),t(q=>({...q,zip_code:f.trim()})),u(!1),g(!1),wn.success("ZIP code saved!")},B=async()=>{S(!0),await ve.auth.updateMe({interests:E}),t(q=>({...q,interests:E})),S(!1),b(!1),wn.success("Preferences saved!")},M=q=>{_(Q=>Q.includes(q)?Q.filter(Z=>Z!==q):[...Q,q])};return i?d.jsx("div",{className:"flex justify-center py-24",children:d.jsx("div",{className:"w-8 h-8 border-4 border-muted border-t-sage-700 rounded-full animate-spin"})}):d.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[v&&d.jsxs("div",{className:"bg-gradient-to-r from-sage-700 to-sage-800 rounded-2xl p-6 mb-6 text-white shadow-card relative overflow-hidden",children:[d.jsx("div",{className:"absolute top-0 right-0 w-40 h-40 rounded-full opacity-10",style:{background:"radial-gradient(circle, white 0%, transparent 70%)",transform:"translate(30%, -30%)"}}),d.jsx("h2",{className:"font-serif font-semibold text-xl mb-1",children:"Welcome to No Longer Need It! 🌿"}),d.jsx("p",{className:"text-white/75 text-sm mb-5",children:"Tell us what you're into so we can surface better matches for you."}),d.jsxs("div",{className:"mb-5",children:[d.jsxs("label",{className:"text-xs font-bold text-white/60 uppercase tracking-wider mb-2 block flex items-center gap-1.5",children:[d.jsx(Nr,{className:"w-3.5 h-3.5"})," Your ZIP Code",d.jsx("span",{className:"font-normal normal-case tracking-normal text-white/50",children:"— Optional, helps show nearby items"})]}),d.jsx("div",{className:"flex gap-2",children:d.jsx("input",{type:"text",value:f,onChange:q=>p(q.target.value),placeholder:"e.g. 97201",maxLength:10,className:"flex-1 max-w-[160px] px-3 py-2 rounded-xl bg-white/15 border border-white/20 text-white placeholder-white/35 text-sm focus:outline-none focus:ring-2 focus:ring-white/30"})})]}),d.jsxs("div",{className:"mb-5",children:[d.jsx("label",{className:"text-xs font-bold text-white/60 uppercase tracking-wider mb-2 block",children:"What are you looking for or offering?"}),d.jsx("div",{className:"flex flex-wrap gap-2",children:B7.map(q=>d.jsx("button",{onClick:()=>M(q),className:`px-3 py-1.5 rounded-full text-xs font-semibold border transition-all ${E.includes(q)?"bg-white text-sage-800 border-white":"bg-white/10 border-white/20 text-white/80 hover:bg-white/20"}`,children:q},q))})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx(bt,{onClick:B,disabled:k,className:"bg-white text-sage-800 hover:bg-white/90 font-bold rounded-xl text-sm px-6",size:"sm",children:k?"Saving…":"Save Preferences"}),d.jsx(bt,{variant:"ghost",size:"sm",onClick:()=>b(!1),className:"text-white/60 hover:text-white rounded-xl text-xs",children:"Skip for now"})]})]}),d.jsxs("div",{className:"bg-white rounded-2xl border border-earth-200 overflow-hidden mb-6 shadow-card",children:[d.jsx("div",{className:"h-24 bg-gradient-to-r from-sage-700 to-sage-800"}),d.jsxs("div",{className:"px-6 pb-6 -mt-10",children:[d.jsxs("div",{className:"flex items-end justify-between gap-4 mb-5",children:[d.jsx("div",{className:"w-20 h-20 rounded-2xl bg-terracotta-500 border-4 border-white flex items-center justify-center text-white font-serif text-3xl font-bold shadow-lg",children:((G=(Y=e==null?void 0:e.full_name)==null?void 0:Y[0])==null?void 0:G.toUpperCase())||"U"}),d.jsxs(bt,{variant:"outline",size:"sm",onClick:()=>ve.auth.logout(),className:"rounded-xl mb-2 border-earth-200 text-muted-foreground",children:[d.jsx(ZN,{className:"w-4 h-4 mr-1"})," Sign Out"]})]}),d.jsx("h1",{className:"font-serif text-2xl text-foreground",children:(e==null?void 0:e.full_name)||"Community Member"}),d.jsx("p",{className:"text-muted-foreground text-sm mt-0.5",children:e==null?void 0:e.email}),d.jsx("div",{className:"mt-2",children:d.jsx(B2,{email:e==null?void 0:e.email})}),d.jsxs("div",{className:"mt-3 flex items-center gap-2",children:[d.jsx(Nr,{className:"w-3.5 h-3.5 text-earth-400 shrink-0"}),l?d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("input",{type:"text",value:f,onChange:q=>p(q.target.value),placeholder:"ZIP code",maxLength:10,className:"w-28 px-2.5 py-1 text-sm border border-earth-200 rounded-lg focus:outline-none focus:ring-1 focus:ring-sage-700",onKeyDown:q=>q.key==="Enter"&&O(),autoFocus:!0}),d.jsx("button",{onClick:O,disabled:m,className:"text-sage-700 hover:text-sage-900",children:d.jsx(t_,{className:"w-4 h-4"})}),d.jsx("button",{onClick:()=>{u(!1),p((e==null?void 0:e.zip_code)||"")},className:"text-muted-foreground hover:text-foreground",children:d.jsx(un,{className:"w-4 h-4"})})]}):d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx("span",{className:"text-sm text-muted-foreground",children:e!=null&&e.zip_code?`ZIP: ${e.zip_code}`:"No ZIP code set"}),d.jsx("button",{onClick:()=>u(!0),className:"text-muted-foreground hover:text-sage-700 transition-colors",children:d.jsx(lP,{className:"w-3.5 h-3.5"})}),!(e!=null&&e.zip_code)&&d.jsx("span",{className:"text-xs text-muted-foreground
420/60 italic",children:"(helps show items near you)"})]})]}),((K=e==null?void 0:e.interests)==null?void 0:K.length)>0&&d.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:e.interests.map(q=>d.jsx("span",{className:"px-2.5 py-0.5 bg-earth-100 text-muted-foreground text-xs font-medium rounded-full",children:q},q))})]}),d.jsx("div",{className:"grid grid-cols-3 divide-x divide-earth-100 border-t border-earth-100",children:[{icon:l_,value:R.length,label:"Active Items",color:"text-sage-700"},{icon:Yn,value:C.length,label:"Exchanged",color:"text-sky-600"},{icon:ww,value:`${T}lbs`,label:"Diverted",color:"text-emerald-600"}].map(({icon:q,value:Q,label:Z,color:he})=>d.jsxs("div",{className:"text-center py-5 px-4",children:[d.jsx(q,{className:`w-5 h-5 mx-auto mb-1.5 ${he}`}),d.jsx("div",{className:"font-bold text-xl text-foreground",children:Q}),d.jsx("div",{className:"text-[11px] text-muted-foreground uppercase tracking-wider",children:Z})]},Z))})]}),N.length>0&&d.jsxs("div",{className:"bg-white rounded-2xl border border-earth-200 p-5 mb-6 shadow-card",children:[d.jsxs("h2",{className:"font-semibold text-sm text-foreground flex items-center gap-2 mb-4",children:[d.jsx(jN,{className:"w-4 h-4 text-terracotta-500"})," Your Badges"]}),d.jsx("div",{className:"flex flex-wrap gap-3",children:N.map(q=>d.jsxs("div",{className:`flex items-center gap-2.5 px-3 py-2 rounded-xl border ${q.color}`,children:[d.jsx("span",{className:"text-xl",children:q.icon}),d.jsxs("div",{children:[d.jsx("div",{className:"text-xs font-bold text-foreground",children:q.label}),d.jsx("div",{className:"text-[10px] text-muted-foreground",children:q.desc})]})]},q.id))})]}),d.jsxs("div",{className:"flex items-center justify-between mb-4",children:[d.jsx("h2",{className:"font-serif text-xl text-foreground",children:"My Account"}),d.jsx(Ue,{to:"/create",children:d.jsxs(bt,{className:"bg-terracotta-500 hover:bg-terracotta-600 text-white rounded-xl gap-2 text-sm shadow-sm",size:"sm",children:[d.jsx(c_,{className:"w-4 h-4"})," Post Item"]})})]}),d.jsxs(oj,{defaultValue:"active",children:[d.jsxs(g0,{className:"mb-5 bg-earth-100 rounded-xl w-full sm:w-auto",children:[d.jsxs(Xo,{value:"active",className:"rounded-lg text-sm flex-1 sm:flex-none",children:["Active (",R.length,")"]}),d.jsxs(Xo,{value:"completed",className:"rounded-lg text-sm flex-1 sm:flex-none",children:["Completed (",C.length,")"]}),d.jsx(Xo,{value:"reviews",className:"rounded-lg text-sm flex-1 sm:flex-none",children:"Reviews"})]}),d.jsx(Zo,{value:"active",children:R.length===0?d.jsx(V7,{}):d.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-4",children:R.map((q,Q)=>d.jsx(Zi,{listing:q,index:Q},q.id))})}),d.jsx(Zo,{value:"completed",children:C.length===0?d.jsxs("div",{className:"text-center py-12 bg-white rounded-2xl border border-earth-200 shadow-card",children:[d.jsx(ww,{className:"w-10 h-10 mx-auto text-earth-200 mb-3"}),d.jsx("p",{className:"text-muted-foreground text-sm",children:"No completed exchanges yet"}),d.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Complete a trade or sale to see it here"})]}):d.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-4",children:C.map((q,Q)=>d.jsx(Zi,{listing:q,index:Q},q.id))})}),d.jsx(Zo,{value:"reviews",children:d.jsx(p7,{email:e==null?void 0:e.email})})]})]})}function V7(){return d.jsxs("div",{className:"text-center py-16 bg-white rounded-2xl border-2 border-dashed border-earth-200",children:[d.jsx("div",{className:"w-14 h-14 mx-auto mb-4 rounded-full bg-earth-100 flex items-center justify-center",children:d.jsx(Kd,{className:"w-7 h-7 text-sage-600"})}),d.jsx("p",{className:"font-semibold text-foreground mb-1",children:"Nothing listed yet"}),d.jsx("p",{className:"text-muted-foreground text-sm mb-5",children:"Start by posting something you no longer need"}),d.jsx(Ue,{to:"/create",children:d.jsx(bt,{className:"bg-sage-700 hover:bg-sage-800 text-white rounded-xl px-8",children:"Post Your First Item"})})]})}function z7({offer:e,currentUser:t,viewAs:n,onDone:r,onClose:i}){const[a,l]=w.useState(0),[u,f]=w.useState(0),[p,m]=w.useState(""),[g,v]=w.useState(!1),b=n==="received"?e.offerer_email:e.owner_email,E=n==="received"?e.offerer_name:e.owner_name,_=n==="received"?"buyer":"seller",k=async()=>
420{if(!a){wn.error("Please select a star rating");return}v(!0),await ve.entities.Review.create({reviewer_email:t.email,reviewer_name:t.full_name||t.email,reviewed_email:b,reviewed_name:E,trade_offer_id:e.id,listing_title:e.listing_title,rating:a,content:p.trim(),role:_}),wn.success("Review submitted!"),r==null||r()};return d.jsxs("div",{className:"bg-white rounded-2xl border border-earth-200 p-5 space-y-4 shadow-card",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsxs("h3",{className:"font-semibold text-foreground text-sm",children:["Leave a review for ",E]}),d.jsxs("p",{className:"text-xs text-muted-foreground mt-0.5",children:["Re: ",e.listing_title]})]}),i&&d.jsx("button",{onClick:i,className:"text-muted-foreground hover:text-foreground p-1",children:d.jsx(un,{className:"w-4 h-4"})})]}),d.jsxs("div",{className:"flex gap-1",children:[[1,2,3,4,5].map(S=>d.jsx("button",{onMouseEnter:()=>f(S),onMouseLeave:()=>f(0),onClick:()=>l(S),className:"transition-transform hover:scale-110",children:d.jsx(va,{className:`w-7 h-7 transition-colors ${S<=(u||a)?"fill-amber-400 text-amber-400":"text-earth-200 fill-earth-100"}`})},S)),a>0&&d.jsx("span",{className:"ml-2 text-sm font-medium text-muted-foreground self-center",children:["","Poor","Fair","Good","Great","Excellent"][a]})]}),d.jsx(vc,{value:p,onChange:S=>m(S.target.value),placeholder:"Share your experience with this trader... (optional)",rows:3,className:"rounded-xl text-sm resize-none",maxLength:500}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx(bt,{onClick:k,disabled:g||!a,className:"bg-sage-700 hover:bg-sage-800 text-white rounded-xl text-xs font-bold px-5",size:"sm",children:g?"Submitting…":"Submit Review"}),i&&d.jsx(bt,{variant:"ghost",size:"sm",onClick:i,className:"rounded-xl text-xs text-muted-foreground",children:"Skip"})]})]})}const MS={pending:{label:"Pending",color:"bg-amber-100 text-amber-800",icon:s_},accepted:{label:"Accepted",color:"bg-green-100 text-green-800",icon:Mg},declined:{label:"Declined",color:"bg-red-100 text-red-800",icon:r_},countered:{label:"Counter Offer",color:"bg-blue-100 text-blue-800",icon:Yn},completed:{label:"Completed",color:"bg-secondary/20 text-secondary",icon:u_}};function DS({offer:e,viewAs:t,onUpdate:n,currentUser:r}){var k,S;const[i,a]=w.useState(""),[l,u]=w.useState(!1),[f,p]=w.useState(!1),[m,g]=w.useState(!1),v=MS[e.status]||MS.pending,b=v.icon,E=wa(),_=async(R,C={})=>{p(!0);const T={status:R,...C};await ve.entities.TradeOffer.update(e.id,T);try{const N=t==="received"?e.offerer_email:e.owner_email,O=t==="received"?e.offerer_name:e.owner_name;await ve.functions.invoke("sendOfferNotification",{type:R,to_email:N,to_name:O,from_name:t==="received"?e.owner_name:e.offerer_name,listing_title:e.listing_title,offered_titles:e.offered_item_titles,counter_message:C.counter_message})}catch{}if(R==="accepted")try{const O=(await ve.entities.Conversation.filter({listing_id:e.listing_id})).find(B=>{var M,Y;return((M=B.participant_emails)==null?void 0:M.includes(e.offerer_email))&&((Y=B.participant_emails)==null?void 0:Y.includes(e.owner_email))});if(O)await ve.entities.Message.create({conversation_id:O.id,sender_email:e.owner_email,sender_name:e.owner_name,content:"✅ Trade offer accepted! Let's coordinate the exchange.",type:"text"}),await ve.entities.TradeOffer.update(e.id,{conversation_id:O.id}),E(`/messages/${O.id}`);else{const B=await ve.entities.Conversation.create({participant_emails:[e.owner_email,e.offerer_email],participant_names:[e.owner_name,e.offerer_name],listing_id:e.listing_id,listing_title:e.listing_title,last_message:"Trade offer accepted!",last_message_date:new Date().toISOString()});await ve.entities.Message.create({conversation_id:B.id,sender_email:e.owner_email,sender_name:e.owner_name,content:"✅ Trade offer accepted! Let's coordinate the exchange.",type:"text"}),await ve.entities.TradeOffer.update(e.id,{conversation_id:B.id}),E(`/messages/${B.id}`)}}catch{}wn.success(R==="accepted"?"Offer accepted!":R==="declined"?"Offer declined":R==="countered"?"Counter offer sent!":"Marked as completed!"),p(!1),R==="completed"&&g(!0),n==null||n()};return d.jsxs("div",{className:"bg-card rounded-2xl border border-border p-5 space-y-4",children:[d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx("div",{className:"flex gap-2",children:(k=e.offered_item_photos)==null?void 0:k.slice(0,2).map((R,C)=>d.jsx("div",{className:"w-12 h-12 rounded-xl overflow-hidden bg-muted flex-shrink-0",children:R&&d.jsx("img",{src:R,alt:"",className:"w-full h-full object-cover"})},C))}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("p",{className:"text-sm font-semibold text-foreground",children:[t==="sent"?"To: ":"From: ",d.jsx("span",{className:"font-normal",children:t==="sent"?e.owner_name:e.offerer_name})]}),d.jsxs("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:["Re: ",e.listing_title]}),d.jsx("p",{className:"text-[10px] text-muted-foreground",children:le(e.created_date).fromNow()})]}),d.jsxs("span",{className:`flex items-center gap-1 px-2.5 py-1 rounded-full text-[10px] font-semibold flex-shrink-0 ${v.color}`,children:[d.jsx(b,{className:"w-3 h-3"}),v.label]})]}),d.jsxs("div",{className:"p-3 bg-muted rounded-xl text-sm",children:[d.jsxs("span",{className:"font-medium",children:[e.offerer_name," offers: "]}),(S=e.offered_item_titles)==null?void 0:S.join(", "),e.cash_amount>0&&e.cash_direction!=="none"&&d.jsx("span",{className:"text-secondary font-medium",children:e.cash_direction==="i_pay"?` + $${e.cash_amount}`:` (receives $${e.cash_amount})`}),d.jsx("span",{className:"font-medium",children:" for: "}),e.listing_title]}),e.message&&d.jsxs("p",{className:"text-sm text-muted-foreground italic",children:['"',e.message,'"']}),e.counter_message&&d.jsxs("div",{className:"p-3 bg-blue-50 rounded-xl text-sm border border-blue-100",children:[d.jsx("p",{className:"text-xs font-semibold text-blue-700 mb-1",children:"Counter offer:"}),d.jsxs("p",{className:"text-blue-800",children:['"',e.counter_message,'"']})]}),d.jsxs("div",{className:"flex flex-wrap gap-2",children:[t==="received"&&e.status==="pending"&&d.jsxs(d.Fragment,{children:[d.jsxs(bt,{size:"sm",disabled:f,onClick:()=>
420_("accepted"),className:"bg-secondary hover:bg-secondary/90 text-secondary-foreground rounded-xl text-xs",children:[d.jsx(Mg,{className:"w-3.5 h-3.5 mr-1"})," Accept"]}),d.jsxs(bt,{size:"sm",variant:"outline",disabled:f,onClick:()=>u(!l),className:"rounded-xl text-xs",children:[d.jsx(Yn,{className:"w-3.5 h-3.5 mr-1"}),l?"Cancel Counter":"Counter Offer"]}),d.jsxs(bt,{size:"sm",variant:"outline",disabled:f,onClick:()=>_("declined"),className:"rounded-xl text-xs text-destructive hover:text-destructive border-destructive/30",children:[d.jsx(r_,{className:"w-3.5 h-3.5 mr-1"})," Decline"]})]}),e.status==="accepted"&&d.jsxs(d.Fragment,{children:[e.conversation_id?d.jsx(Ue,{to:`/messages/${e.conversation_id}`,children:d.jsxs(bt,{size:"sm",className:"bg-secondary hover:bg-secondary/90 text-secondary-foreground rounded-xl text-xs",children:[d.jsx(da,{className:"w-3.5 h-3.5 mr-1"})," Open Chat"]})}):null,d.jsxs(bt,{size:"sm",variant:"outline",disabled:f,onClick:()=>_("completed"),className:"rounded-xl text-xs",children:[d.jsx(u_,{className:"w-3.5 h-3.5 mr-1"})," Mark Completed"]})]})]}),l&&d.jsxs("div",{className:"space-y-2",children:[d.jsx(vc,{value:i,onChange:R=>a(R.target.value),placeholder:"Explain your counter offer...",rows:2,className:"rounded-xl text-sm"}),d.jsx(bt,{size:"sm",disabled:f||!i.trim(),onClick:()=>{_("countered",{counter_message:i}),u(!1)},className:"bg-secondary hover:bg-secondary/90 text-secondary-foreground rounded-xl text-xs",children:"Send Counter Offer"})]}),m&&r&&d.jsx(z7,{offer:e,currentUser:r,viewAs:t,onDone:()=>g(!1),onClose:()=>g(!1)})]})}function W7(){const[e,t]=w.useState(null),[n,r]=w.useState([]),[i,a]=w.useState([]),[l,u]=w.useState(!0),[f,p]=w.useState(0),m=()=>p(v=>v+1);if(w.useEffect(()=>{ve.auth.me().then(async v=>{t(v);const[b,E]=await Promise.all([ve.entities.TradeOffer.filter({offerer_email:v.email},"-created_date",50),ve.entities.TradeOffer.filter({owner_email:v.email},"-created_date",50)]);r(b),a(E),u(!1)}).catch(()=>ve.auth.redirectToLogin(window.location.href))},[f]),l)return d.jsx("div",{className:"flex justify-center py-24",children:d.jsx("div",{className:"w-8 h-8 border-4 border-muted border-t-secondary rounded-full animate-spin"})});const g=i.filter(v=>v.status==="pending").length;return d.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 py-6 sm:py-8",children:[d.jsxs("div",{className:"mb-6",children:[d.jsx("h1",{className:"font-serif text-3xl text-foreground mb-1",children:"Trade Offers"}),d.jsx("p",{className:"text-muted-foreground text-sm",children:"Manage your barter negotiations"})]}),d.jsxs(oj,{defaultValue:"received",children:[d.jsxs(g0,{className:"mb-6 bg-muted rounded-xl",children:[d.jsxs(Xo,{value:"received",className:"rounded-lg text-sm relative",children:["Received (",i.length,")",g>0&&d.jsx("span",{className:"absolute -top-1 -right-1 w-4 h-4 bg-accent rounded-full text-[9px] font-bold flex items-center justify-center text-accent-foreground",children:g})]}),d.jsxs(Xo,{value:"sent",className:"rounded-lg text-sm",children:["Sent (",n.length,")"]})]}),d.jsx(Zo,{value:"received",children:i.length===0?d.jsx(LS,{message:"No trade offers received yet"}):d.jsx("div",{className:"space-y-4",children:i.map(v=>d.jsx(DS,{offer:v,viewAs:"received",onUpdate:m,currentUser:e},v.id))})}),d.jsx(Zo,{value:"sent",children:n.length===0?d.jsx(LS,{message:"You haven't sent any trade offers yet"}):d.jsx("div",{className:"space-y-4",children:n.map(v=>d.jsx(DS,{offer:v,viewAs:"sent",onUpdate:m,currentUser:e},v.id))})})]})]})}function LS({message:e}){return d.jsxs("div",{className:"text-center py-16 bg-card rounded-2xl border border-border",children:[d.jsx(Yn,{className:"w-10 h-10 mx-auto text-muted-foreground/40 mb-3"}),d.jsx("p",{className:"text-muted-foreground text-sm",children:e}),d.jsx(Ue,{to:"/browse",children:d.jsx(bt,{variant:"outline",className:"mt-4 rounded-xl text-sm",children:"Browse Listings"})})]})}function $7(){return d.jsxs("div",{style:{fontFamily:"'Inter',system-ui,sans-serif",background:"#F7F3EF",minHeight:"100vh"},children:[d.jsx("section",{style:{background:"#1A1A2E",padding:"80px 32px",textAlign:"center"},children:d.jsxs(et.div,{initial:{opacity:0,y:20}
420,animate:{opacity:1,y:0},style:{maxWidth:640,margin:"0 auto"},children:[d.jsx("div",{style:{fontSize:56,marginBottom:16},children:"♻️"}),d.jsx("div",{style:{display:"inline-flex",alignItems:"center",gap:8,background:"#FF6B35",borderRadius:99,padding:"6px 16px",fontSize:11,fontWeight:800,color:"#fff",letterSpacing:"0.1em",textTransform:"uppercase",marginBottom:20},children:"Our Mission"}),d.jsxs("h1",{style:{fontSize:"clamp(2rem,4vw,3.2rem)",fontWeight:900,color:"#fff",margin:"0 0 20px",letterSpacing:"-0.03em",lineHeight:1.1},children:["Give stuff a second life.",d.jsx("br",{}),d.jsx("span",{style:{color:"#00D9C5"},children:"Keep it out of the landfill."})]}),d.jsx("p",{style:{fontSize:17,color:"rgba(255,255,255,0.5)",lineHeight:1.65,maxWidth:520,margin:"0 auto"},children:"No Longer Need It is a nationwide marketplace for selling and bartering the things you don't need anymore. We make it fast, free, and easy to find your item a new home — or trade it for something you actually want."})]})}),d.jsx("section",{style:{padding:"72px 32px"},children:d.jsx("div",{style:{maxWidth:1e3,margin:"0 auto"},children:d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:20},className:"nlni-values",children:[d.jsx("style",{children:"@media(max-width:780px){.nlni-values{grid-template-columns:1fr!important}}"}),[{icon:d.jsx(Kd,{style:{width:24,height:24}}),title:"Less Waste",desc:"Every item rehomed is one less thing in a landfill. Bartering extends the life of the stuff we already made.",c:"#22C55E"},{icon:d.jsx(CP,{style:{width:24,height:24}}),title:"People, Not Fees",desc:"We're free — forever. No listing fees, no selling fees, no cut of your trade. You keep 100% of every deal.",c:"#FF6B35"},{icon:d.jsx(Nr,{style:{width:24,height:24}}),title:"Nationwide",desc:"From small towns to big cities, all 50 states. Meet locally or ship — your call.",c:"#6366F1"}].map(({icon:e,title:t,desc:n,c:r},i)=>d.jsxs(et.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},style:{background:"#fff",borderRadius:20,padding:"32px 28px",border:"1.5px solid #F0EDE8"},children:[d.jsx("div",{style:{width:52,height:52,borderRadius:16,background:r,color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:18},children:e}),d.jsx("h3",{style:{fontWeight:900,fontSize:18,color:"#111",margin:"0 0 10px",letterSpacing:"-0.02em"},children:t}),d.jsx("p",{style:{color:"#888",fontSize:14,lineHeight:1.65,margin:0},children:n})]},t))]})})}),d.jsx("section",{style:{background:"#fff",padding:"72px 32px"},children:d.jsxs("div",{style:{maxWidth:640,margin:"0 auto",textAlign:"center"},children:[d.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:8,background:"#FFF0EB",borderRadius:99,padding:"6px 16px",fontSize:11,fontWeight:800,color:"#FF6B35",letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:18},children:[d.jsx(qi,{style:{width:13,height:13}})," Early Stage"]}),d.jsx("h2",{style:{fontSize:26,fontWeight:900,color:"#111",margin:"0 0 14px",letterSpacing:"-0.03em"},children:"We're just getting started."}),d.jsx("p",{style:{color:"#888",fontSize:16,lineHeight:1.7,margin:"0 0 32px"},children:"No Longer Need It is a young marketplace. That means early users shape what we become — your listings, your trades, and your feedback build the community. Join now and be part of the first wave."}),d.jsxs("div",{style:{display:"flex",gap:14,justifyContent:"center",flexWrap:"wrap"},children:[d.jsx(Ue,{to:"/create",style:{textDecoration:"none"},children:d.jsx("button",{style:{padding:"14px 36px",borderRadius:99,border:"none",background:"#FF6B35",color:"#fff",fontSize:15,fontWeight:900,cursor:"pointer",boxShadow:"0 6px 24px rgba(255,107,53,0.4)"},children:"Post your first item"})}),d.jsx(Ue,{to:"/browse",style:{textDecoration:"none"},children:d.jsxs("button",{style:{padding:"14px 30px",borderRadius:99,background:"#fff",border:"2px solid #E5E7EB",color:"#555",fontSize:15,fontWeight:700,cursor:"pointer"},children:["Browse items ",d.jsx(e_,{style:{width:14,height:14,display:"inline",marginLeft:4}})]})})]})]})}),d.jsxs("section",{style:{background:"#00D9C5",padding:"56px 32px",textAlign:"center"},children:[d.jsx("h2",{style:{fontSize:24,fontWeight:900,color:"#1A1A2E",margin:"0 0 8px",letterSpacing:"-0.03em"},children:"Have something you don't need?"}),d.jsx("p",{style:{color:"rgba(26,26,46,0.7)",fontSize:15,marginBottom:24},children:"List it free in 90 seconds. Trade it, sell it, or give it a second life."}),d.jsx(Ue,{to:"/create",style:{textDecoration:"none"},children:d.jsx("button",{style:{padding:"14px 40px",borderRadius:99,border:"none",background:"#1A1A2E",color:"#fff",fontSize:15,fontWeight:900,cursor:"pointer"},children:"Start for free"})})]})]})}const H7=[{icon:d.jsx(mm,{style:{width:18,height:18}}),q:"Is it really free?",a:"Yes — 100% free. No listing fees, no selling fees, no commission on trades. We never hold your money or take a cut. You arrange payment and delivery directly with the other person."},{icon:d.jsx(Yn,{style:{width:18,height:18}}),q:"How do trades work?",a:"When you find an item you want, send a trade offer. Pick one or more of your own listings to offer, add cash if needed, and write a message. The other person accepts, declines, or counters. Once accepted, you arrange the handoff or shipping and mark the trade complete."},{icon:d.jsx(Er,{style:{width:18,height:18}}),q:"What is photo search?",a:"Snap or upload a photo of something you want, and our AI finds visually similar listings on the marketplace. It's the fastest way to find what you're looking for without typing keywords."},{icon:d.jsx(qi,{style:{width:18,height:18}}),q:"What are smart matches?",a:"Our matching engine compares your listings to what others want and what they have. It surfaces people who are most likely to trade with you, so you don't have to scroll endlessly."},{icon:d.jsx(Nr,{style:{width:18,height:18}}),q:"Do I have to meet in person?",a:"No. You can meet locally for a handoff, or arrange shipping with the other person. Both options are fully supported — choose whatever works for the trade."},{icon:d.jsx(Qd,{style:{width:18,height:18}}),q:"How do I stay safe?",a:"Meet in public, well-lit places. Check the other person's reviews and ratings. Never share financial details. Use the report and block tools if anything feels off. We review every report."},{icon:d.jsx(da,{style:{width:18,height:18}}),q:"How does messaging work?",a:"Every listing and trade offer opens a private conversation. You can chat, send trade offers, and coordinate details — all in one place. Messages stay between you and the other person."},{icon:d.jsx(mm,{style:{width:18,height:18}}
420),q:"Can I sell instead of trade?",a:"Absolutely. Every listing can be For Sale, Trade Only, or Open to Both. Set a price, list what you'd accept in trade, or both — it's up to you."}];function Y7(){const[e,t]=w.useState(0);return d.jsxs("div",{style:{fontFamily:"'Inter',system-ui,sans-serif",background:"#F7F3EF",minHeight:"100vh"},children:[d.jsxs("section",{style:{background:"#1A1A2E",padding:"64px 32px",textAlign:"center"},children:[d.jsx("div",{style:{fontSize:48,marginBottom:14},children:"💬"}),d.jsx("h1",{style:{fontSize:"clamp(1.8rem,3.5vw,2.6rem)",fontWeight:900,color:"#fff",margin:"0 0 12px",letterSpacing:"-0.03em"},children:"Help & FAQ"}),d.jsx("p",{style:{color:"rgba(255,255,255,0.5)",fontSize:16,maxWidth:460,margin:"0 auto",lineHeight:1.6},children:"Everything you need to know about selling, trading, and staying safe on No Longer Need It."})]}),d.jsx("section",{style:{padding:"56px 32px"},children:d.jsxs("div",{style:{maxWidth:760,margin:"0 auto"},children:[d.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:H7.map((n,r)=>d.jsxs("div",{style:{background:"#fff",borderRadius:18,border:"1.5px solid #F0EDE8",overflow:"hidden"},children:[d.jsxs("button",{onClick:()=>t(e===r?-1:r),style:{width:"100%",display:"flex",alignItems:"center",gap:14,padding:"18px 22px",background:"none",border:"none",cursor:"pointer",textAlign:"left"},children:[d.jsx("span",{style:{width:36,height:36,borderRadius:12,background:"#FFF0EB",color:"#FF6B35",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n.icon}),d.jsx("span",{style:{flex:1,fontWeight:800,fontSize:15,color:"#111"},children:n.q}),d.jsx(Og,{style:{width:18,height:18,color:"#999",transform:e===r?"rotate(180deg)":"none",transition:"transform 0.2s"}})]}),d.jsx($l,{children:e===r&&d.jsx(et.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},style:{overflow:"hidden"},children:d.jsx("p",{style:{padding:"0 22px 20px 72px",color:"#666",fontSize:14,lineHeight:1.7,margin:0},children:n.a})})})]},r))}),d.jsxs("div",{style:{marginTop:40,background:"#1A1A2E",borderRadius:20,padding:"32px 28px",textAlign:"center"},children:[d.jsx(Qd,{style:{width:32,height:32,color:"#00D9C5",margin:"0 auto 14px"}}),d.jsx("h3",{style:{fontWeight:900,fontSize:18,color:"#fff",margin:"0 0 8px"},children:"Your safety comes first"}),d.jsx("p",{style:{color:"rgba(255,255,255,0.4)",fontSize:14,lineHeight:1.6,maxWidth:420,margin:"0 auto 20px"},children:"Meet in public, check reviews, and trust your instincts. We never hold your money — you stay in control of every deal."}),d.jsx(Ue,{to:"/browse",style:{textDecoration:"none"},children:d.jsx("button",{style:{padding:"12px 32px",borderRadius:99,border:"none",background:"#FF6B35",color:"#fff",fontSize:14,fontWeight:800,cursor:"pointer"},children:"Start browsing"})})]})]})})]})}function q7(){return d.jsxs("div",{style:{fontFamily:"'Inter',system-ui,sans-serif",background:"#F7F3EF",minHeight:"100vh"},children:[d.jsxs("section",{style:{background:"#1A1A2E",padding:"56px 32px",textAlign:"center"},children:[d.jsx("h1",{style:{fontSize:"clamp(1.8rem,3.5vw,2.6rem)",fontWeight:900,color:"#fff",margin:0,letterSpacing:"-0.03em"},children:"Terms of Service"}),d.jsx("p",{style:{color:"rgba(255,255,255,0.4)",fontSize:14,marginTop:8},children:"Last updated: September 2026"})]}),d.jsx("section",{style:{padding:"48px 32px"},children:d.jsxs("div",{style:{maxWidth:720,margin:"0 auto",color:"#444",fontSize:15,lineHeight:1.75},children:[[{h:"1. Using No Longer Need It",p:"No Longer Need It is a peer-to-peer marketplace that helps people sell, trade, and give away items they no longer need. You agree to use the service lawfully and treat other users with respect. You must be at least 18 years old to create an account."},{h:"2. Your Account",p:"You are responsible for keeping your account and password secure and for all activity under your account. Provide accurate information when you sign up, and don't impersonate anyone else."},{h:"3. Listings & Transactions",p:"You're responsible for the accuracy of your listings — including photos, descriptions, and condition. No Longer Need It is a platform only; we are not a party to any transaction between users. You arrange payment, shipping, and handoffs directly with the other person. We never hold funds."},{h:"4. Fees",p:"Listing and trading on No Longer Need It is free. We may introduce optional paid features in the future, but core listing and trading will always be free."},{h:"5. Prohibited Items",p:"Don't list anything illegal, stolen, hazardous, or that you don't have the right to sell. This includes weapons, drugs, counterfeit goods, and regulated items."},{h:"6. Safety",p:"You are responsible for your own safety when meeting other users. Meet in public places, inspect items before paying, and never wire money to someone you don't know. Read our safety guidelines for more."},{h:"7. Content & Photos",p:"You grant us a license to display the content and photos you upload as part of running the marketplace. Don't upload content that infringes someone else's rights."},{h:"8. Limitation of Liability",p:"No Longer Need It is provided 'as is.' We are not liable for the outcome of any transaction, the accuracy of any listing, or any interaction between users. Our liability is limited to the fullest extent permitted by law."},{h:"9. Termination",p:"We may suspend or remove accounts or listings that violate these terms or that we believe are harmful to the community. You can delete your listings at any time."},{h:"10. Changes",p:"We may update these terms as the service grows. We'll do our best to notify users of material changes."}].map(e=>d.jsxs("div",{style:{marginBottom:28},children:[d.jsx("h2",{style:{fontWeight:800,fontSize:17,color:"#111",marginBottom:6},children:e.h}),d.jsx("p",{style:{margin:0},children:e.p})]},e.h)),d.jsxs("div",{style:{marginTop:40,padding:24,background:"#fff",borderRadius:16,border:"1.5px solid #F0EDE8",textAlign:"center"},children:[d.jsx("p",{style:{color:"#888",fontSize:14,marginBottom:16},children:"Questions about these terms?"}),d.jsx(Ue,{to:"/help",style:{fontWeight:700,color:"#FF6B35",textDecoration:"none"},children:"Visit Help & FAQ →"})]})]})})]})}function G7(){return d.jsxs("div",{style:{fontFamily:"'Inter',system-ui,sans-serif",background:"#F7F3EF",minHeight:"100vh"},children:[d.jsxs("section",{style:{background:"#1A1A2E",padding:"56px 32px",textAlign:"center"},children:[d.jsx("h1",{style:{fontSize:"clamp(1.8rem,3.5vw,2.6rem)",fontWeight:900,color:"#fff",margin:0,letterSpacing:"-0.03em"},children:"Privacy Policy"}),d.jsx("p",{style:{color:"rgba(255,255,255,0.4)",fontSize:14,marginTop:8},children:"Last updated: September 2026"})]}),d.jsx("section",{style:{padding:"48px 32px"},children:d.jsxs("div",{style:{maxWidth:720,margin:"0 auto",color:"#444",fontSize:15,lineHeight:1.75},children:[[{h:"1. What We Collect",p:"When you sign up, we collect your name, email, and any ZIP code or interests you choose to add. When you list an item, we store the photos, title, description, price, and location you provide. Messages and trade offers are stored so you and the other party can access them."},{h:"2. What's Public",p:"Your listings — including photos, title, price, and city — are visible to anyone browsing the marketplace. Your email is shared with another user only when you message them or send a trade offer. Your password is never shared or displayed."},{h:"3. How We Use Your Data",p:"We use your information to run the marketplace: showing your listings, surfacing matches, delivering messages, and keeping the platform safe. We may use your ZIP code and interests to show you nearby or relevant items."},{h:"4. What We Don't Do",p:"We don't sell your personal data to third parties. We don't use your photos for anything beyond displaying your listings. We never post on your behalf without your action."},{h:"5. Messages & Trade Offers",p:"Conversations and trade offers are visible to the participants involved. We may review content if a report is filed, to keep the community safe."},{h:"6. Cookies & Tracking",p:"We use essential cookies to keep you logged in and the app working. We may use basic analytics to understand how people use the site so we can improve it."},{h:"7. Your Choices",p:"You can edit your profile, update your ZIP code and interests, or delete your listings at any time. You can sign out to end your session. Contact support if you'd like your account data removed."},{h:"8. Data Retention",p:"We keep your listings, messages, and trade offers for as long as your account is active. When you delete a listing, it's removed from the marketplace. Deleted conversations may be retained briefly for safety reviews."},{h:"9. Children",p:"No Longer Need It is not intended for anyone under 18. We don't knowingly collect data from minors."},{h:"10. Changes",p:"We may update this policy as the service grows. We'll do our best to notify users of material changes."}].map(e=>d.jsxs("div",{style:{marginBottom:28},children:[d.jsx("h2",{style:{fontWeight:800,fontSize:17,color:"#111",marginBottom:6},children:e.h}),d.jsx("p",{style:{margin:0},children:e.p})]},e.h)),d.jsxs("div",{style:{marginTop:40,padding:24,background:"#fff",borderRadius:16,border:"1.5px solid #F0EDE8",textAlign:"center"},children:[d.jsx("p",{style:{color:"#888",fontSize:14,marginBottom:16},children:"Questions about your privacy?"}),d.jsx(Ue,{to:"/help",style:{fontWeight:700,color:"#FF6B35",textDecoration:"none"},children:"Visit Help & FAQ →"})]})]})})]})}const K7=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r}=qk();if(t||e)return d.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:d.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return d.jsx(T4,{});if(n.type==="auth_required")return r(),null}return d.jsx(nM,{children:d.jsxs(Jt,{element:d.jsx(N4,{}),children:[d.jsx(Jt,{path:"/",element:d.jsx(lB,{})}),d.jsx(Jt,{path:"/browse",element:d.jsx(mB,{})}),d.jsx(Jt,{path:"/create",element:d.jsx(fz,{})}),d.jsx(Jt,{path:"/listing/:id",element:d.jsx(g7,{})}),d.jsx(Jt,{path:"/messages",element:d.jsx(y7,{})}),d.jsx(Jt,{path:"/messages/:conversationId",element:d.jsx(v7,{})}),d.jsx(Jt,{path:"/matches",element:d.jsx(x7,{})}),d.jsx(Jt,{path:"/trade-offers",element:d.jsx(W7,{})}),d.jsx(Jt,{path:"/profile",element:d.jsx(U7,{})}),d.jsx(Jt,{path:"/about",element:d.jsx($7,{})}),d.jsx(Jt,{path:"/help",element:d.jsx(Y7,{})}),d.jsx(Jt,{path:"/terms",element:d.jsx(q7,{})}),d.jsx(Jt,{path:"/privacy",element:d.jsx(G7,{})}),d.jsx(Jt,{path:"*",element:d.jsx(E4,{})})]})})};function Q7(){return d.jsx(C4,{children:d.jsxs(qA,{client:oO,children:[d.jsx(cM,{children:d.jsx(K7,{})}),d.jsx(bA,{})]})})}pN.createRoot(document.getElementById("root")).render(d.jsx(Q7,{}));export{o_ as L,Nr as M,iP as N,Tn as R,ac as a,Z7 as b,Ue as c,Pg as g,d as 
420j,w as r};

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.