PageSourceSearch

https://foodclubhub.lovable.app/assets/index-zS2KumHV.js

js foodclubhub.lovable.app collected 2026-10-03 03:31:32 UTC 770,736 bytes, 258 lines download raw bytes

vendor: 6,236 bytes, lines 1-9
1var jy=e=>{throw TypeError(e)};var Gd=(e,t,n)=>t.has(e)||jy("Cannot "+n);var H=(e,t,n)=>(Gd(e,t,"read from private field"),n?n.call(e):t.get(e)),Ce=(e,t,n)=>t.has(e)?jy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),fe=(e,t,n,r)=>(Gd(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),pt=(e,t,n)=>(Gd(e,t,"access private method"),n);var Hl=(e,t,n,r)=>({set _(o){fe(e,t,o,n)},get _(){return H(e,t,r)}});function PP(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var TP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var J0={exports:{}},Oc={},ew={exports:{}},xe={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var il=Symbol.for("react.element"),jP=Symbol.for("react.portal"),EP=Symbol.for("react.fragment"),NP=Symbol.for("react.strict_mode"),LP=Symbol.for("react.profiler"),MP=Symbol.for("react.provider"),AP=Symbol.for("react.context"),RP=Symbol.for("react.forward_ref"),OP=Symbol.for("react.suspense"),IP=Symbol.for("react.memo"),DP=Symbol.for("react.lazy"),Ey=Symbol.iterator;function FP(e){return e===null||typeof e!="object"?null:(e=Ey&&e[Ey]||e["@@iterator"],typeof e=="function"?e:null)}var tw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nw=Object.assign,rw={};function ks(e,t,n){this.props=e,this.context=t,this.refs=rw,this.updater=n||tw}ks.prototype.isReactComponent={};ks.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};ks.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function iw(){}iw.prototype=ks.prototype;function Am(e,t,n){this.props=e,this.context=t,this.refs=rw,this.updater=n||tw}var Rm=Am.prototype=new iw;Rm.constructor=Am;nw(Rm,ks.prototype);Rm.isPureReactComponent=!0;var Ny=Array.isArray,ow=Object.prototype.hasOwnProperty,Om={current:null},sw={key:!0,ref:!0,__self:!0,__source:!0};function aw(e,t,n){var r,o={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)ow.call(t,r)&&!sw.hasOwnProperty(r)&&(o[r]=t[r]);var d=arguments.length-2;if(d===1)o.children=n;else if(1<d){for(var h=Array(d),f=0;f<d;f++)h[f]=arguments[f+2];o.children=h}if(e&&e.defaultProps)for(r in d=e.defaultProps,d)o[r]===void 0&&(o[r]=d[r]);return{$$typeof:il,type:e,key:s,ref:l,props:o,_owner:Om.current}}function zP(e,t){return{$$typeof:il,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Im(e){return typeof e=="object"&&e!==null&&e.$$typeof===il}function BP(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ly=/\/+/g;function Kd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?BP(""+e.key):t.toString(36)}function wu(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case il:case jP:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Kd(l,0):r,Ny(o)?(n="",e!=null&&(n=e.replace(Ly,"$&/")+"/"),wu(o,t,n,"",function(f){return f})):o!=null&&(Im(o)&&(o=zP(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Ly,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Ny(e))for(var d=0;d<e.length;d++){s=e[d];var h=r+Kd(s,d);l+=wu(s,t,n,h,o)}else if(h=FP(e),typeof h=="function")for(e=h.call(e),d=0;!(s=e.next()).done;)s=s.value,h=r+Kd(s,d++),l+=wu(s,t,n,h,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Wl(e,t,n){if(e==null)return e;var r=[],o=0;return wu(e,r,"","",function(s){return t.call(n,s,o++)}),r}function VP(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Lt={current:null},bu={transition:null},HP={ReactCurrentDispatcher:Lt,ReactCurrentBatchConfig:bu,ReactCurrentOwner:Om};function lw(){throw Error("act(...) is not supported in production builds of React.")}xe.Children={map:Wl,forEach:function(e,t,n){Wl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Wl(e,function(){t++}),t},toArray:function(e){return Wl(e,function(t){return t})||[]},only:function(e){if(!Im(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Component=ks;xe.Fragment=EP;xe.Profiler=LP;xe.PureComponent=Am;xe.StrictMode=NP;xe.Suspense=OP;
vendor: 8,037 bytes, lines 9-33
9xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=HP;xe.act=lw;xe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=nw({},e.props),o=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,l=Om.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var d=e.type.defaultProps;for(h in t)ow.call(t,h)&&!sw.hasOwnProperty(h)&&(r[h]=t[h]===void 0&&d!==void 0?d[h]:t[h])}var h=arguments.length-2;if(h===1)r.children=n;else if(1<h){d=Array(h);for(var f=0;f<h;f++)d[f]=arguments[f+2];r.children=d}return{$$typeof:il,type:e.type,key:o,ref:s,props:r,_owner:l}};xe.createContext=function(e){return e={$$typeof:AP,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:MP,_context:e},e.Consumer=e};xe.createElement=aw;xe.createFactory=function(e){var t=aw.bind(null,e);return t.type=e,t};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:RP,render:e}};xe.isValidElement=Im;xe.lazy=function(e){return{$$typeof:DP,_payload:{_status:-1,_result:e},_init:VP}};xe.memo=function(e,t){return{$$typeof:IP,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=bu.transition;bu.transition={};try{e()}finally{bu.transition=t}};xe.unstable_act=lw;xe.useCallback=function(e,t){return Lt.current.useCallback(e,t)};xe.useContext=function(e){return Lt.current.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e){return Lt.current.useDeferredValue(e)};xe.useEffect=function(e,t){return Lt.current.useEffect(e,t)};xe.useId=function(){return Lt.current.useId()};xe.useImperativeHandle=function(e,t,n){return Lt.current.useImperativeHandle(e,t,n)};xe.useInsertionEffect=function(e,t){return Lt.current.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return Lt.current.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return Lt.current.useMemo(e,t)};xe.useReducer=function(e,t,n){return Lt.current.useReducer(e,t,n)};xe.useRef=function(e){return Lt.current.useRef(e)};xe.useState=function(e){return Lt.current.useState(e)};xe.useSyncExternalStore=function(e,t,n){return Lt.current.useSyncExternalStore(e,t,n)};xe.useTransition=function(){return Lt.current.useTransition()};xe.version="18.3.1";ew.exports=xe;var k=ew.exports;const K=Mm(k),Dm=PP({__proto__:null,default:K},[k]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var WP=k,$P=Symbol.for("react.element"),UP=Symbol.for("react.fragment"),ZP=Object.prototype.hasOwnProperty,GP=WP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,KP={key:!0,ref:!0,__self:!0,__source:!0};function uw(e,t,n){var r,o={},s=null,l=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)ZP.call(t,r)&&!KP.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:$P,type:e,key:s,ref:l,props:o,_owner:GP.current}}Oc.Fragment=UP;Oc.jsx=uw;Oc.jsxs=uw;J0.exports=Oc;var u=J0.exports,cw={exports:{}},Yt={},dw={exports:{}},hw={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(M,B){var z=M.length;M.push(B);e:for(;0<z;){var Y=z-1>>>1,X=M[Y];if(0<o(X,B))M[Y]=B,M[z]=X,z=Y;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var B=M[0],z=M.pop();if(z!==B){M[0]=z;e:for(var Y=0,X=M.length,oe=X>>>1;Y<oe;){var ne=2*(Y+1)-1,ce=M[ne],se=ne+1,ge=M[se];if(0>o(ce,z))se<X&&0>o(ge,ce)?(M[Y]=ge,M[se]=z,Y=se):(M[Y]=ce,M[ne]=z,Y=ne);else if(se<X&&0>o(ge,z))M[Y]=ge,M[se]=z,Y=se;else break e}}return B}function o(M,B){var z=M.sortIndex-B.sortIndex;return z!==0?z:M.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,d=l.now();e.unstable_now=function(){return l.now()-d}}var h=[],f=[],p=1,g=null,y=3,v=!1,S=!1,_=!1,T=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=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(M){for(var B=n(f);B!==null;){if(B.callback===null)r(f);else if(B.startTime<=M)r(f),B.sortIndex=B.expirationTime,t(h,B);else break;B=n(f)}}function j(M){if(_=!1,C(M),!S)if(n(h)!==null)S=!0,q(N);else{var B=n(f);B!==null&&ue(j,B.startTime-M)}}function N(M,B){S=!1,_&&(_=!1,w(O),O=-1),v=!0;var z=y;try{for(C(B),g=n(h);g!==null&&(!(g.expirationTime>B)||M&&!G());){var Y=g.callback;if(typeof Y=="function"){g.callback=null,y=g.priorityLevel;var X=Y(g.expirationTime<=B);B=e.unstable_now(),typeof X=="function"?g.callback=X:g===n(h)&&r(h),C(B)}else r(h);g=n(h)}if(g!==null)var oe=!0;else{var ne=n(f);ne!==null&&ue(j,ne.startTime-B),oe=!1}return oe}finally{g=null,y=z,v=!1}}var A=!1,I=null,O=-1,V=5,F=-1;function G(){return!(e.unstable_now()-F<V)}function $(){if(I!==null){var M=e.unstable_now();F=M;var B=!0;try{B=I(!0,M)}finally{B?ie():(A=!1,I=null)}}else A=!1}var ie;if(typeof b=="function")ie=function(){b($)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,ae=U.port2;U.port1.onmessage=$,ie=function(){ae.postMessage(null)}}else ie=function(){T($,0)};function q(M){I=M,A||(A=!0,ie())}function ue(M,B){O=T(function(){M(e.unstable_now())},B)}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(M){M.callback=null},e.unstable_continueExecution=function(){S||v||(S=!0,q(N))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(M){switch(y){case 1:case 2:case 3:var B=3;break;default:B=y}var z=y;y=B;try{return M()}finally{y=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,B){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var z=y;y=M;try{return B()}finally{y=z}},e.unstable_scheduleCallback=function(M,B,z){var Y=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?Y+z:Y):z=Y,M){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=z+X,M={id:p++,callback:B,priorityLevel:M,startTime:z,expirationTime:X,sortIndex:-1},z>Y?(M.sortIndex=z,t(f,M),n(h)===null&&M===n(f)&&(_?(w(O),O=-1):_=!0,ue(j,z-Y))):(M.sortIndex=X,t(h,M),S||v||(S=!0,q(N))),M},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(M){var B=y;return function(){var z=y;y=B;try{return M.apply(this,arguments)}finally{y=z}}}})(hw);dw.exports=hw;var qP=dw.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var YP=k,qt=qP;function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var fw=new Set,Ea={};
vendor: 4,996 bytes, line 33
33function ao(e,t){cs(e,t),cs(e+"Capture",t)}function cs(e,t){for(Ea[e]=t,e=0;e<t.length;e++)fw.add(t[e])}var Sr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qh=Object.prototype.hasOwnProperty,QP=/^[: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]*$/,My={},Ay={};function XP(e){return qh.call(Ay,e)?!0:qh.call(My,e)?!1:QP.test(e)?Ay[e]=!0:(My[e]=!0,!1)}function JP(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eT(e,t,n,r){if(t===null||typeof t>"u"||JP(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mt(e,t,n,r,o,s,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=l}var ft={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ft[e]=new Mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ft[t]=new Mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ft[e]=new Mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ft[e]=new Mt(e,2,!1,e,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(e){ft[e]=new Mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ft[e]=new Mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ft[e]=new Mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ft[e]=new Mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ft[e]=new Mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fm=/[\-:]([a-z])/g;function zm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Fm,zm);ft[t]=new Mt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Fm,zm);ft[t]=new Mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Fm,zm);ft[t]=new Mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ft[e]=new Mt(e,1,!1,e.toLowerCase(),null,!1,!1)});ft.xlinkHref=new Mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ft[e]=new Mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bm(e,t,n,r){var o=ft.hasOwnProperty(t)?ft[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(eT(t,n,o,r)&&(n=null),r||o===null?XP(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}
vendor: 17,938 bytes, lines 33-37
33var Ar=YP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$l=Symbol.for("react.element"),Mo=Symbol.for("react.portal"),Ao=Symbol.for("react.fragment"),Vm=Symbol.for("react.strict_mode"),Yh=Symbol.for("react.profiler"),mw=Symbol.for("react.provider"),pw=Symbol.for("react.context"),Hm=Symbol.for("react.forward_ref"),Qh=Symbol.for("react.suspense"),Xh=Symbol.for("react.suspense_list"),Wm=Symbol.for("react.memo"),Gr=Symbol.for("react.lazy"),gw=Symbol.for("react.offscreen"),Ry=Symbol.iterator;function Xs(e){return e===null||typeof e!="object"?null:(e=Ry&&e[Ry]||e["@@iterator"],typeof e=="function"?e:null)}var Ue=Object.assign,qd;function ca(e){if(qd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qd=t&&t[1]||""}return`
34`+qd+e}var Yd=!1;function Qd(e,t){if(!e||Yd)return"";Yd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var o=f.stack.split(`
35`),s=r.stack.split(`
36`),l=o.length-1,d=s.length-1;1<=l&&0<=d&&o[l]!==s[d];)d--;for(;1<=l&&0<=d;l--,d--)if(o[l]!==s[d]){if(l!==1||d!==1)do if(l--,d--,0>d||o[l]!==s[d]){var h=`
37`+o[l].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),h}while(1<=l&&0<=d);break}}}finally{Yd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ca(e):""}function tT(e){switch(e.tag){case 5:return ca(e.type);case 16:return ca("Lazy");case 13:return ca("Suspense");case 19:return ca("SuspenseList");case 0:case 2:case 15:return e=Qd(e.type,!1),e;case 11:return e=Qd(e.type.render,!1),e;case 1:return e=Qd(e.type,!0),e;default:return""}}function Jh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ao:return"Fragment";case Mo:return"Portal";case Yh:return"Profiler";case Vm:return"StrictMode";case Qh:return"Suspense";case Xh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pw:return(e.displayName||"Context")+".Consumer";case mw:return(e._context.displayName||"Context")+".Provider";case Hm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wm:return t=e.displayName||null,t!==null?t:Jh(e.type)||"Memo";case Gr:t=e._payload,e=e._init;try{return Jh(e(t))}catch{}}return null}function nT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Jh(t);case 8:return t===Vm?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function gi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rT(e){var t=yw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ul(e){e._valueTracker||(e._valueTracker=rT(e))}function vw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=yw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ef(e,t){var n=t.checked;return Ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Oy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function xw(e,t){t=t.checked,t!=null&&Bm(e,"checked",t,!1)}function tf(e,t){xw(e,t);var n=gi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?nf(e,t.type,n):t.hasOwnProperty("defaultValue")&&nf(e,t.type,gi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Iy(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function nf(e,t,n){(t!=="number"||Wu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var da=Array.isArray;function Go(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+gi(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function rf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Z(91));return Ue({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Dy(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Z(92));if(da(n)){if(1<n.length)throw Error(Z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:gi(n)}}function ww(e,t){var n=gi(t.value),r=gi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Fy(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function bw(e){switch(e){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 of(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?bw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zl,_w=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Zl=Zl||document.createElement("div"),Zl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Na(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pa={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},iT=["Webkit","ms","Moz","O"];Object.keys(pa).forEach(function(e){iT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pa[t]=pa[e]})});function kw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pa.hasOwnProperty(e)&&pa[e]?(""+t).trim():t+"px"}function Cw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=kw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var oT=Ue({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 sf(e,t){if(t){if(oT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function af(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 lf=null;function $m(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uf=null,Ko=null,qo=null;function zy(e){if(e=al(e)){if(typeof uf!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=Bc(t),uf(e.stateNode,e.type,t))}}function Sw(e){Ko?qo?qo.push(e):qo=[e]:Ko=e}function Pw(){if(Ko){var e=Ko,t=qo;if(qo=Ko=null,zy(e),t)for(e=0;e<t.length;e++)zy(t[e])}}function Tw(e,t){return e(t)}function jw(){}var Xd=!1;function Ew(e,t,n){if(Xd)return e(t,n);Xd=!0;try{return Tw(e,t,n)}finally{Xd=!1,(Ko!==null||qo!==null)&&(jw(),Pw())}}function La(e,t){var n=e.stateNode;if(n===null)return null;var r=Bc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Z(231,t,typeof n));return n}var cf=!1;if(Sr)try{var Js={};Object.defineProperty(Js,"passive",{get:function(){cf=!0}}),window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{cf=!1}function sT(e,t,n,r,o,s,l,d,h){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(p){this.onError(p)}}var ga=!1,$u=null,Uu=!1,df=null,aT={onError:function(e){ga=!0,$u=e}};function lT(e,t,n,r,o,s,l,d,h){ga=!1,$u=null,sT.apply(aT,arguments)}function uT(e,t,n,r,o,s,l,d,h){if(lT.apply(this,arguments),ga){if(ga){var f=$u;ga=!1,$u=null}else throw Error(Z(198));Uu||(Uu=!0,df=f)}}function lo(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Nw(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function By(e){if(lo(e)!==e)throw Error(Z(188))}function cT(e){var t=e.alternate;if(!t){if(t=lo(e),t===null)throw Error(Z(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return By(o),e;if(s===r)return By(o),t;s=s.sibling}throw Error(Z(188))}if(n.return!==r.return)n=o,r=s;else{for(var l=!1,d=o.child;d;){if(d===n){l=!0,n=o,r=s;break}if(d===r){l=!0,r=o,n=s;break}d=d.sibling}if(!l){for(d=s.child;d;){if(d===n){l=!0,n=s,r=o;break}if(d===r){l=!0,r=s,n=o;break}d=d.sibling}if(!l)throw Error(Z(189))}}if(n.alternate!==r)throw Error(Z(190))}if(n.tag!==3)throw Error(Z(188));return n.stateNode.current===n?e:t}function Lw(e){return e=cT(e),e!==null?Mw(e):null}function Mw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Mw(e);if(t!==null)return t;e=e.sibling}return null}var Aw=qt.unstable_scheduleCallback,Vy=qt.unstable_cancelCallback,dT=qt.unstable_shouldYield,hT=qt.unstable_requestPaint,qe=qt.unstable_now,fT=qt.unstable_getCurrentPriorityLevel,Um=qt.unstable_ImmediatePriority,Rw=qt.unstable_UserBlockingPriority,Zu=qt.unstable_NormalPriority,mT=qt.unstable_LowPriority,Ow=qt.unstable_IdlePriority,Ic=null,rr=null;function pT(e){if(rr&&typeof rr.onCommitFiberRoot=="function")try{rr.onCommitFiberRoot(Ic,e,void 0,(e.current.flags&128)===128)}catch{}}var Ln=Math.clz32?Math.clz32:vT,gT=Math.log,yT=Math.LN2;function vT(e){return e>>>=0,e===0?32:31-(gT(e)/yT|0)|0}var Gl=64,Kl=4194304;function ha(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,l=n&268435455;if(l!==0){var d=l&~o;d!==0?r=ha(d):(s&=l,s!==0&&(r=ha(s)))}else l=n&~o,l!==0?r=ha(l):s!==0&&(r=ha(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ln(t),o=1<<n,r|=e[n],t&=~o;return r}function xT(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 wT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ln(s),d=1<<l,h=o[l];h===-1?(!(d&n)||d&r)&&(o[l]=xT(d,t)):h<=t&&(e.expiredLanes|=d),s&=~d}}function hf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Iw(){var e=Gl;return Gl<<=1,!(Gl&4194240)&&(Gl=64),e}function Jd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ol(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ln(t),e[t]=n}function bT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ln(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function Zm(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ln(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Te=0;function Dw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Fw,Gm,zw,Bw,Vw,ff=!1,ql=[],ai=null,li=null,ui=null,Ma=new Map,Aa=new Map,qr=[],_T="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 Hy(e,t){switch(e){case"focusin":case"focusout":ai=null;break;case"dragenter":case"dragleave":li=null;break;case"mouseover":case"mouseout":ui=null;break;case"pointerover":case"pointerout":Ma.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Aa.delete(t.pointerId)}}function ea(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=al(t),t!==null&&Gm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function kT(e,t,n,r,o){switch(t){case"focusin":return ai=ea(ai,e,t,n,r,o),!0;case"dragenter":return li=ea(li,e,t,n,r,o),!0;case"mouseover":return ui=ea(ui,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Ma.set(s,ea(Ma.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Aa.set(s,ea(Aa.get(s)||null,e,t,n,r,o)),!0}return!1}function Hw(e){var t=zi(e.target);if(t!==null){var n=lo(t);if(n!==null){if(t=n.tag,t===13){if(t=Nw(n),t!==null){e.blockedOn=t,Vw(e.priority,function(){zw(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _u(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);lf=r,n.target.dispatchEvent(r),lf=null}else return t=al(n),t!==null&&Gm(t),e.blockedOn=n,!1;t.shift()}return!0}function Wy(e,t,n){_u(e)&&n.delete(t)}function CT(){ff=!1,ai!==null&&_u(ai)&&(ai=null),li!==null&&_u(li)&&(li=null),ui!==null&&_u(ui)&&(ui=null),Ma.forEac
vendor: 9,291 bytes, line 37
37h(Wy),Aa.forEach(Wy)}function ta(e,t){e.blockedOn===t&&(e.blockedOn=null,ff||(ff=!0,qt.unstable_scheduleCallback(qt.unstable_NormalPriority,CT)))}function Ra(e){function t(o){return ta(o,e)}if(0<ql.length){ta(ql[0],e);for(var n=1;n<ql.length;n++){var r=ql[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ai!==null&&ta(ai,e),li!==null&&ta(li,e),ui!==null&&ta(ui,e),Ma.forEach(t),Aa.forEach(t),n=0;n<qr.length;n++)r=qr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<qr.length&&(n=qr[0],n.blockedOn===null);)Hw(n),n.blockedOn===null&&qr.shift()}var Yo=Ar.ReactCurrentBatchConfig,Ku=!0;function ST(e,t,n,r){var o=Te,s=Yo.transition;Yo.transition=null;try{Te=1,Km(e,t,n,r)}finally{Te=o,Yo.transition=s}}function PT(e,t,n,r){var o=Te,s=Yo.transition;Yo.transition=null;try{Te=4,Km(e,t,n,r)}finally{Te=o,Yo.transition=s}}function Km(e,t,n,r){if(Ku){var o=mf(e,t,n,r);if(o===null)uh(e,t,r,qu,n),Hy(e,r);else if(kT(o,e,t,n,r))r.stopPropagation();else if(Hy(e,r),t&4&&-1<_T.indexOf(e)){for(;o!==null;){var s=al(o);if(s!==null&&Fw(s),s=mf(e,t,n,r),s===null&&uh(e,t,r,qu,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else uh(e,t,r,null,n)}}var qu=null;function mf(e,t,n,r){if(qu=null,e=$m(r),e=zi(e),e!==null)if(t=lo(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Nw(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qu=e,null}function Ww(e){switch(e){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(fT()){case Um:return 1;case Rw:return 4;case Zu:case mT:return 16;case Ow:return 536870912;default:return 16}default:return 16}}var ri=null,qm=null,ku=null;function $w(){if(ku)return ku;var e,t=qm,n=t.length,r,o="value"in ri?ri.value:ri.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[s-r];r++);return ku=o.slice(e,1<r?1-r:void 0)}function Cu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Yl(){return!0}function $y(){return!1}function Qt(e){function t(n,r,o,s,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Yl:$y,this.isPropagationStopped=$y,this}return Ue(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Yl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yl)},persist:function(){},isPersistent:Yl}),t}var Cs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ym=Qt(Cs),sl=Ue({},Cs,{view:0,detail:0}),TT=Qt(sl),eh,th,na,Dc=Ue({},sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qm,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==na&&(na&&e.type==="mousemove"?(eh=e.screenX-na.screenX,th=e.screenY-na.screenY):th=eh=0,na=e),eh)},movementY:function(e){return"movementY"in e?e.movementY:th}}),Uy=Qt(Dc),jT=Ue({},Dc,{dataTransfer:0}),ET=Qt(jT),NT=Ue({},sl,{relatedTarget:0}),nh=Qt(NT),LT=Ue({},Cs,{animationName:0,elapsedTime:0,pseudoElement:0}),MT=Qt(LT),AT=Ue({},Cs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),RT=Qt(AT),OT=Ue({},Cs,{data:0}),Zy=Qt(OT),IT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},DT={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"},FT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=FT[e])?!!t[e]:!1}function Qm(){return zT}var BT=Ue({},sl,{key:function(e){if(e.key){var t=IT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?DT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qm,charCode:function(e){return e.type==="keypress"?Cu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),VT=Qt(BT),HT=Ue({},Dc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gy=Qt(HT),WT=Ue({},sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qm}),$T=Qt(WT),UT=Ue({},Cs,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZT=Qt(UT),GT=Ue({},Dc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),KT=Qt(GT),qT=[9,13,27,32],Xm=Sr&&"CompositionEvent"in window,ya=null;Sr&&"documentMode"in document&&(ya=document.documentMode);var YT=Sr&&"TextEvent"in window&&!ya,Uw=Sr&&(!Xm||ya&&8<ya&&11>=ya),Ky=" ",qy=!1;function Zw(e,t){switch(e){case"keyup":return qT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ro=!1;function QT(e,t){switch(e){case"compositionend":return Gw(t);case"keypress":return t.which!==32?null:(qy=!0,Ky);case"textInput":return e=t.data,e===Ky&&qy?null:e;default:return null}}function XT(e,t){if(Ro)return e==="compositionend"||!Xm&&Zw(e,t)?(e=$w(),ku=qm=ri=null,Ro=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Uw&&t.locale!=="ko"?null:t.data;default:return null}}var JT={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 Yy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JT[e.type]:t==="textarea"}function Kw(e,t,n,r){Sw(r),t=Yu(t,"onChange"),0<t.length&&(n=new Ym("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var va=null,Oa=null;function ej(e){ob(e,0)}function Fc(e){var t=Do(e);if(vw(t))return e}function tj(e,t){if(e==="change")return t}var qw=!1;if(Sr){var rh;if(Sr){var ih="oninput"in document;if(!ih){var Qy=document.createElement("div");Qy.setAttribute("oninput","return;"),ih=typeof Qy.oninput=="function"}rh=ih}else rh=!1;qw=rh&&(!document.documentMode||9<document.documentMode)}function Xy(){va&&(va.detachEvent("onpropertychange",Yw),Oa=va=null)}function Yw(e){if(e.propertyName==="value"&&Fc(Oa)){var t=[];Kw(t,Oa,e,$m(e)),Ew(ej,t)}}function nj(e,t,n){e==="focusin"?(Xy(),va=t,Oa=n,va.attachEvent("onpropertychange",Yw)):e==="focusout"&&Xy()}function rj(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fc(Oa)}function ij(e,t){if(e==="click")return Fc(t)}function oj(e,t){if(e==="input"||e==="change")return Fc(t)}function sj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rn=typeof Object.is=="function"?Object.is:sj;function Ia(e,t){if(Rn(e,t))return!0;
vendor: 4,808 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!qh.call(t,o)||!Rn(e[o],t[o]))return!1}return!0}function Jy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ev(e,t){var n=Jy(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jy(n)}}function Qw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xw(){for(var e=window,t=Wu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wu(e.document)}return t}function Jm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function aj(e){var t=Xw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qw(n.ownerDocument.documentElement,n)){if(r!==null&&Jm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=ev(n,s);var l=ev(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lj=Sr&&"documentMode"in document&&11>=document.documentMode,Oo=null,pf=null,xa=null,gf=!1;function tv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gf||Oo==null||Oo!==Wu(r)||(r=Oo,"selectionStart"in r&&Jm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xa&&Ia(xa,r)||(xa=r,r=Yu(pf,"onSelect"),0<r.length&&(t=new Ym("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Oo)))}function Ql(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Io={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionend:Ql("Transition","TransitionEnd")},oh={},Jw={};Sr&&(Jw=document.createElement("div").style,"AnimationEvent"in window||(delete Io.animationend.animation,delete Io.animationiteration.animation,delete Io.animationstart.animation),"TransitionEvent"in window||delete Io.transitionend.transition);function zc(e){if(oh[e])return oh[e];if(!Io[e])return e;var t=Io[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jw)return oh[e]=t[n];return e}var eb=zc("animationend"),tb=zc("animationiteration"),nb=zc("animationstart"),rb=zc("transitionend"),ib=new Map,nv="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 _i(e,t){ib.set(e,t),ao(t,[e])}for(var sh=0;sh<nv.length;sh++){var ah=nv[sh],uj=ah.toLowerCase(),cj=ah[0].toUpperCase()+ah.slice(1);_i(uj,"on"+cj)}_i(eb,"onAnimationEnd");_i(tb,"onAnimationIteration");_i(nb,"onAnimationStart");_i("dblclick","onDoubleClick");_i("focusin","onFocus");_i("focusout","onBlur");_i(rb,"onTransitionEnd");cs("onMouseEnter",["mouseout","mouseover"]);cs("onMouseLeave",["mouseout","mouseover"]);cs("onPointerEnter",["pointerout","pointerover"]);cs("onPointerLeave",["pointerout","pointerover"]);ao("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 37
37ao("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ao("onBeforeInput",["compositionend","keypress","textInput","paste"]);ao("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ao("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ao("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fa="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(" "),dj=new Set("cancel close invalid load scroll toggle".split(" ").concat(fa));function rv(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,uT(r,t,void 0,e),e.currentTarget=null}function ob(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var l=r.length-1;0<=l;l--){var d=r[l],h=d.instance,f=d.currentTarget;if(d=d.listener,h!==s&&o.isPropagationStopped())break e;rv(o,d,f),s=h}else for(l=0;l<r.length;l++){if(d=r[l],h=d.instance,f=d.currentTarget,d=d.listener,h!==s&&o.isPropagationStopped())break e;rv(o,d,f),s=h}}}if(Uu)throw e=df,Uu=!1,df=null,e}function Ie(e,t){var n=t[bf];n===void 0&&(n=t[bf]=new Set);var r=e+"__bubble";n.has(r)||(sb(t,e,2,!1),n.add(r))}function lh(e,t,n){var r=0;t&&(r|=4),sb(n,e,r,t)}var Xl="_reactListening"+Math.random().toString(36).slice(2);function Da(e){if(!e[Xl]){e[Xl]=!0,fw.forEach(function(n){n!=="selectionchange"&&(dj.has(n)||lh(n,!1,e),lh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xl]||(t[Xl]=!0,lh("selectionchange",!1,t))}}function sb(e,t,n,r){switch(Ww(t)){case 1:var o=ST;break;case 4:o=PT;break;default:o=Km}n=o.bind(null,t,n,e),o=void 0,!cf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function uh(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var d=r.stateNode.containerInfo;if(d===o||d.nodeType===8&&d.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var h=l.tag;if((h===3||h===4)&&(h=l.stateNode.containerInfo,h===o||h.nodeType===8&&h.parentNode===o))return;l=l.return}for(;d!==null;){if(l=zi(d),l===null)return;if(h=l.tag,h===5||h===6){r=s=l;continue e}d=d.parentNode}}r=r.return}Ew(function(){var f=s,p=$m(n),g=[];e:{var y=ib.get(e);if(y!==void 0){var v=Ym,S=e;switch(e){case"keypress":if(Cu(n)===0)break e;case"keydown":case"keyup":v=VT;break;case"focusin":S="focus",v=nh;break;case"focusout":S="blur",v=nh;break;case"beforeblur":case"afterblur":v=nh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Uy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=ET;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=$T;break;case eb:case tb:case nb:v=MT;break;case rb:v=ZT;break;case"scroll":v=TT;break;case"wheel":v=KT;break;case"copy":case"cut":case"paste":v=RT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Gy}var _=(t&4)!==0,T=!_&&e==="scroll",w=_?y!==null?y+"Capture":null:y;_=[];for(var b=f,C;b!==null;){C=b;var j=C.stateNode;if(C.tag===5&&j!==null&&(C=j,w!==null&&(j=La(b,w),j!=null&&_.push(Fa(b,j,C)))),T)break;b=b.return}0<_.length&&(y=new v(y,S,null,n,p),g.push({event:y,listeners:_}))}}if(!(t&7)){e:{if(y=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",y&&n!==lf&&(S=n.relatedTarget||n.fromElement)&&(zi(S)||S[Pr]))break e;if((v||y)&&(y=p.window===p?p:(y=p.ownerDocument)?y.defaultView||y.parentWindow:window,v?(S=n.relatedTarget||n.toElement,v=f,S=S?zi(S):null,S!==null&&(T=lo(S),S!==T||S.tag!==5&&S.tag!==6)&&(S=null)):(v=null,S=f),v!==S)){if(_=Uy,j="onMouseLeave",w="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(_=Gy,j="onPointerLeave",w="onPointerEnter",b="pointer"),T=v==null?y:Do(v),C=S==null?y:Do(S),y=new _(j,b+"leave",v,n,p),y.target=T,y.relatedTarget=C,j=null,zi(p)===f&&(_=new _(w,b+"enter",S,n,p),_.target=C,_.relatedTarget=T,j=_),T=j,v&&S)t:{for(_=v,w=S,b=0,C=_;C;C=To(C))b++;for(C=0,j=w;j;j=To(j))C++;for(;0<b-C;)_=To(_),b--;for(;0<C-b;)w=To(w),C--;for(;b--;){if(_===w||w!==null&&_===w.alternate)break t;_=To(_),w=To(w)}_=null}else _=null;v!==null&&iv(g,y,v,_,!1),S!==null&&T!==null&&iv(g,T,S,_,!0)}}
vendor: 6,372 bytes, lines 37-38
37e:{if(y=f?Do(f):window,v=y.nodeName&&y.nodeName.toLowerCase(),v==="select"||v==="input"&&y.type==="file")var N=tj;else if(Yy(y))if(qw)N=oj;else{N=rj;var A=nj}else(v=y.nodeName)&&v.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(N=ij);if(N&&(N=N(e,f))){Kw(g,N,n,p);break e}A&&A(e,y,f),e==="focusout"&&(A=y._wrapperState)&&A.controlled&&y.type==="number"&&nf(y,"number",y.value)}switch(A=f?Do(f):window,e){case"focusin":(Yy(A)||A.contentEditable==="true")&&(Oo=A,pf=f,xa=null);break;case"focusout":xa=pf=Oo=null;break;case"mousedown":gf=!0;break;case"contextmenu":case"mouseup":case"dragend":gf=!1,tv(g,n,p);break;case"selectionchange":if(lj)break;case"keydown":case"keyup":tv(g,n,p)}var I;if(Xm)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Ro?Zw(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Uw&&n.locale!=="ko"&&(Ro||O!=="onCompositionStart"?O==="onCompositionEnd"&&Ro&&(I=$w()):(ri=p,qm="value"in ri?ri.value:ri.textContent,Ro=!0)),A=Yu(f,O),0<A.length&&(O=new Zy(O,e,null,n,p),g.push({event:O,listeners:A}),I?O.data=I:(I=Gw(n),I!==null&&(O.data=I)))),(I=YT?QT(e,n):XT(e,n))&&(f=Yu(f,"onBeforeInput"),0<f.length&&(p=new Zy("onBeforeInput","beforeinput",null,n,p),g.push({event:p,listeners:f}),p.data=I))}ob(g,t)})}function Fa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yu(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=La(e,n),s!=null&&r.unshift(Fa(e,s,o)),s=La(e,t),s!=null&&r.push(Fa(e,s,o))),e=e.return}return r}function To(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function iv(e,t,n,r,o){for(var s=t._reactName,l=[];n!==null&&n!==r;){var d=n,h=d.alternate,f=d.stateNode;if(h!==null&&h===r)break;d.tag===5&&f!==null&&(d=f,o?(h=La(n,s),h!=null&&l.unshift(Fa(n,h,d))):o||(h=La(n,s),h!=null&&l.push(Fa(n,h,d)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var hj=/\r\n?/g,fj=/\u0000|\uFFFD/g;function ov(e){return(typeof e=="string"?e:""+e).replace(hj,`
38`).replace(fj,"")}function Jl(e,t,n){if(t=ov(t),ov(e)!==t&&n)throw Error(Z(425))}function Qu(){}var yf=null,vf=null;function xf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wf=typeof setTimeout=="function"?setTimeout:void 0,mj=typeof clearTimeout=="function"?clearTimeout:void 0,sv=typeof Promise=="function"?Promise:void 0,pj=typeof queueMicrotask=="function"?queueMicrotask:typeof sv<"u"?function(e){return sv.resolve(null).then(e).catch(gj)}:wf;function gj(e){setTimeout(function(){throw e})}function ch(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ra(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ra(t)}function ci(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function av(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ss=Math.random().toString(36).slice(2),er="__reactFiber$"+Ss,za="__reactProps$"+Ss,Pr="__reactContainer$"+Ss,bf="__reactEvents$"+Ss,yj="__reactListeners$"+Ss,vj="__reactHandles$"+Ss;function zi(e){var t=e[er];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pr]||n[er]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=av(e);e!==null;){if(n=e[er])return n;e=av(e)}return t}e=n,n=e.parentNode}return null}function al(e){return e=e[er]||e[Pr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Do(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Z(33))}function Bc(e){return e[za]||null}var _f=[],Fo=-1;function ki(e){return{current:e}}function Fe(e){0>Fo||(e.current=_f[Fo],_f[Fo]=null,Fo--)}function Re(e,t){Fo++,_f[Fo]=e.current,e.current=t}var yi={},bt=ki(yi),Dt=ki(!1),eo=yi;function ds(e,t){var n=e.type.contextTypes;if(!n)return yi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ft(e){return e=e.childContextTypes,e!=null}function Xu(){Fe(Dt),Fe(bt)}function lv(e,t,n){if(bt.current!==yi)throw Error(Z(168));Re(bt,t),Re(Dt,n)}function ab(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Z(108,nT(e)||"Unknown",o));return Ue({},n,r)}function Ju(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yi,eo=bt.current,Re(bt,e),Re(Dt,Dt.current),!0}function uv(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=ab(e,t,eo),r.__reactInternalMemoizedMergedChildContext=e,Fe(Dt),Fe(bt),Re(bt,e)):Fe(Dt),Re(Dt,n)}var wr=null,Vc=!1,dh=!1;function lb(e){wr===null?wr=[e]:wr.push(e)}function xj(e){Vc=!0,lb(e)}function Ci(){if(!dh&&wr!==null){dh=!0;var e=0,t=Te;try{var n=wr;for(Te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wr=null,Vc=!1}catch(o){throw wr!==null&&(wr=wr.slice(e+1)),Aw(Um,Ci),o}finally{Te=t,dh=!1}}return null}var zo=[],Bo=0,ec=null,tc=0,sn=[],an=0,to=null,_r=1,kr="";function Ii(e,t){zo[Bo++]=tc,zo[Bo++]=ec,ec=e,tc=t}function ub(e,t,n){sn[an++]=_r,sn[an++]=kr,sn[an++]=to,to=e;var r=_r;e=kr;var o=32-Ln(r)-1;r&=~(1<<o),n+=1;var s=32-Ln(t)+o;if(30<s){var l=o-o%5;s=(r&(1<<l)-1).toString(32),r>>=l,o-=l,_r=1<<32-Ln(t)+o|n<<o|r,kr=s+e}else _r=1<<s|n<<o|r,kr=e}function ep(e){e.return!==null&&(Ii(e,1),ub(e,1,0))}function tp(e){for(;e===ec;)ec=zo[--Bo],zo[Bo]=null,tc=zo[--Bo],zo[Bo]=null;for(;e===to;)to=sn[--an],sn[an]=null,kr=sn[--an],sn[an]=null,_r=sn[--an],sn[an]=null}var Gt=null,Zt=null,ze=!1,En=null;function cb(e,t){var n=ln(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function cv(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 16,528 bytes, line 38
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Gt=e,Zt=ci(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Gt=e,Zt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=to!==null?{id:_r,overflow:kr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ln(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Gt=e,Zt=null,!0):!1;default:return!1}}function kf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Cf(e){if(ze){var t=Zt;if(t){var n=t;if(!cv(e,t)){if(kf(e))throw Error(Z(418));t=ci(n.nextSibling);var r=Gt;t&&cv(e,t)?cb(r,n):(e.flags=e.flags&-4097|2,ze=!1,Gt=e)}}else{if(kf(e))throw Error(Z(418));e.flags=e.flags&-4097|2,ze=!1,Gt=e}}}function dv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Gt=e}function eu(e){if(e!==Gt)return!1;if(!ze)return dv(e),ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!xf(e.type,e.memoizedProps)),t&&(t=Zt)){if(kf(e))throw db(),Error(Z(418));for(;t;)cb(e,t),t=ci(t.nextSibling)}if(dv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Zt=ci(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Zt=null}}else Zt=Gt?ci(e.stateNode.nextSibling):null;return!0}function db(){for(var e=Zt;e;)e=ci(e.nextSibling)}function hs(){Zt=Gt=null,ze=!1}function np(e){En===null?En=[e]:En.push(e)}var wj=Ar.ReactCurrentBatchConfig;function ra(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Z(309));var r=n.stateNode}if(!r)throw Error(Z(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(l){var d=o.refs;l===null?delete d[s]:d[s]=l},t._stringRef=s,t)}if(typeof e!="string")throw Error(Z(284));if(!n._owner)throw Error(Z(290,e))}return e}function tu(e,t){throw e=Object.prototype.toString.call(t),Error(Z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hv(e){var t=e._init;return t(e._payload)}function hb(e){function t(w,b){if(e){var C=w.deletions;C===null?(w.deletions=[b],w.flags|=16):C.push(b)}}function n(w,b){if(!e)return null;for(;b!==null;)t(w,b),b=b.sibling;return null}function r(w,b){for(w=new Map;b!==null;)b.key!==null?w.set(b.key,b):w.set(b.index,b),b=b.sibling;return w}function o(w,b){return w=mi(w,b),w.index=0,w.sibling=null,w}function s(w,b,C){return w.index=C,e?(C=w.alternate,C!==null?(C=C.index,C<b?(w.flags|=2,b):C):(w.flags|=2,b)):(w.flags|=1048576,b)}function l(w){return e&&w.alternate===null&&(w.flags|=2),w}function d(w,b,C,j){return b===null||b.tag!==6?(b=vh(C,w.mode,j),b.return=w,b):(b=o(b,C),b.return=w,b)}function h(w,b,C,j){var N=C.type;return N===Ao?p(w,b,C.props.children,j,C.key):b!==null&&(b.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Gr&&hv(N)===b.type)?(j=o(b,C.props),j.ref=ra(w,b,C),j.return=w,j):(j=Lu(C.type,C.key,C.props,null,w.mode,j),j.ref=ra(w,b,C),j.return=w,j)}function f(w,b,C,j){return b===null||b.tag!==4||b.stateNode.containerInfo!==C.containerInfo||b.stateNode.implementation!==C.implementation?(b=xh(C,w.mode,j),b.return=w,b):(b=o(b,C.children||[]),b.return=w,b)}function p(w,b,C,j,N){return b===null||b.tag!==7?(b=Qi(C,w.mode,j,N),b.return=w,b):(b=o(b,C),b.return=w,b)}function g(w,b,C){if(typeof b=="string"&&b!==""||typeof b=="number")return b=vh(""+b,w.mode,C),b.return=w,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case $l:return C=Lu(b.type,b.key,b.props,null,w.mode,C),C.ref=ra(w,null,b),C.return=w,C;case Mo:return b=xh(b,w.mode,C),b.return=w,b;case Gr:var j=b._init;return g(w,j(b._payload),C)}if(da(b)||Xs(b))return b=Qi(b,w.mode,C,null),b.return=w,b;tu(w,b)}return null}function y(w,b,C,j){var N=b!==null?b.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return N!==null?null:d(w,b,""+C,j);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case $l:return C.key===N?h(w,b,C,j):null;case Mo:return C.key===N?f(w,b,C,j):null;case Gr:return N=C._init,y(w,b,N(C._payload),j)}if(da(C)||Xs(C))return N!==null?null:p(w,b,C,j,null);tu(w,C)}return null}function v(w,b,C,j,N){if(typeof j=="string"&&j!==""||typeof j=="number")return w=w.get(C)||null,d(b,w,""+j,N);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case $l:return w=w.get(j.key===null?C:j.key)||null,h(b,w,j,N);case Mo:return w=w.get(j.key===null?C:j.key)||null,f(b,w,j,N);case Gr:var A=j._init;return v(w,b,C,A(j._payload),N)}if(da(j)||Xs(j))return w=w.get(C)||null,p(b,w,j,N,null);tu(b,j)}return null}function S(w,b,C,j){for(var N=null,A=null,I=b,O=b=0,V=null;I!==null&&O<C.length;O++){I.index>O?(V=I,I=null):V=I.sibling;var F=y(w,I,C[O],j);if(F===null){I===null&&(I=V);break}e&&I&&F.alternate===null&&t(w,I),b=s(F,b,O),A===null?N=F:A.sibling=F,A=F,I=V}if(O===C.length)return n(w,I),ze&&Ii(w,O),N;if(I===null){for(;O<C.length;O++)I=g(w,C[O],j),I!==null&&(b=s(I,b,O),A===null?N=I:A.sibling=I,A=I);return ze&&Ii(w,O),N}for(I=r(w,I);O<C.length;O++)V=v(I,w,O,C[O],j),V!==null&&(e&&V.alternate!==null&&I.delete(V.key===null?O:V.key),b=s(V,b,O),A===null?N=V:A.sibling=V,A=V);return e&&I.forEach(function(G){return t(w,G)}),ze&&Ii(w,O),N}function _(w,b,C,j){var N=Xs(C);if(typeof N!="function")throw Error(Z(150));if(C=N.call(C),C==null)throw Error(Z(151));for(var A=N=null,I=b,O=b=0,V=null,F=C.next();I!==null&&!F.done;O++,F=C.next()){I.index>O?(V=I,I=null):V=I.sibling;var G=y(w,I,F.value,j);if(G===null){I===null&&(I=V);break}e&&I&&G.alternate===null&&t(w,I),b=s(G,b,O),A===null?N=G:A.sibling=G,A=G,I=V}if(F.done)return n(w,I),ze&&Ii(w,O),N;if(I===null){for(;!F.done;O++,F=C.next())F=g(w,F.value,j),F!==null&&(b=s(F,b,O),A===null?N=F:A.sibling=F,A=F);return ze&&Ii(w,O),N}for(I=r(w,I);!F.done;O++,F=C.next())F=v(I,w,O,F.value,j),F!==null&&(e&&F.alternate!==null&&I.delete(F.key===null?O:F.key),b=s(F,b,O),A===null?N=F:A.sibling=F,A=F);return e&&I.forEach(function($){return t(w,$)}),ze&&Ii(w,O),N}function T(w,b,C,j){if(typeof C=="object"&&C!==null&&C.type===Ao&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case $l:e:{for(var N=C.key,A=b;A!==null;){if(A.key===N){if(N=C.type,N===Ao){if(A.tag===7){n(w,A.sibling),b=o(A,C.props.children),b.return=w,w=b;break e}}else if(A.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Gr&&hv(N)===A.type){n(w,A.sibling),b=o(A,C.props),b.ref=ra(w,A,C),b.return=w,w=b;break e}n(w,A);break}else t(w,A);A=A.sibling}C.type===Ao?(b=Qi(C.props.children,w.mode,j,C.key),b.return=w,w=b):(j=Lu(C.type,C.key,C.props,null,w.mode,j),j.ref=ra(w,b,C),j.return=w,w=j)}return l(w);case Mo:e:{for(A=C.key;b!==null;){if(b.key===A)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){n(w,b.sibling),b=o(b,C.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=xh(C,w.mode,j),b.return=w,w=b}return l(w);case Gr:return A=C._init,T(w,b,A(C._payload),j)}if(da(C))return S(w,b,C,j);if(Xs(C))return _(w,b,C,j);tu(w,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,b!==null&&b.tag===6?(n(w,b.sibling),b=o(b,C),b.return=w,w=b):(n(w,b),b=vh(C,w.mode,j),b.return=w,w=b),l(w)):n(w,b)}return T}var fs=hb(!0),fb=hb(!1),nc=ki(null),rc=null,Vo=null,rp=null;function ip(){rp=Vo=rc=null}function op(e){var t=nc.current;Fe(nc),e._currentValue=t}function Sf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Qo(e,t){rc=e,rp=Vo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(It=!0),e.firstContext=null)}function hn(e){var t=e._currentValue;if(rp!==e)if(e={context:e,memoizedValue:t,next:null},Vo===null){if(rc===null)throw Error(Z(308));Vo=e,rc.dependencies={lanes:0,firstContext:e}}else Vo=Vo.next=e;return t}var Bi=null;function sp(e){Bi===null?Bi=[e]:Bi.push(e)}function mb(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,sp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Tr(e,r)}function Tr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kr=!1;function ap(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Cr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function di(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,_e&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Tr(e,n)}return o=r.interleaved,o===null?(t.next=t,sp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Tr(e,n)}function Su(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zm(e,n)}}function fv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ic(e,t,n,r){var o=e.updateQueue;Kr=!1;var s=o.firstBaseUpdate,l=o.lastBaseUpdate,d=o.shared.pending;if(d!==null){o.shared.pending=null;var h=d,f=h.next;h.next=null,l===null?s=f:l.next=f,l=h;var p=e.alternate;p!==null&&(p=p.updateQueue,d=p.lastBaseUpdate,d!==l&&(d===null?p.firstBaseUpdate=f:d.next=f,p.lastBaseUpdate=h))}if(s!==null){var g=o.baseState;l=0,p=f=h=null,d=s;do{var y=d.lane,v=d.eventTime;if((r&y)===y){p!==null&&(p=p.next={eventTime:v,lane:0,tag:d.tag,payload:d.payload,callback:d.callback,next:null});e:{var S=e,_=d;switch(y=t,v=n,_.tag){case 1:if(S=_.payload,typeof S=="function"){g=S.call(v,g,y);break e}g=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=_.payload,y=typeof S=="function"?S.call(v,g,y):S,y==null)break e;g=Ue({},g,y);break e;case 2:Kr=!0}}d.callback!==null&&d.lane!==0&&(e.flags|=64,y=o.effects,y===null?o.effects=[d]:y.push(d))}else v={eventTime:v,lane:y,tag:d.tag,payload:d.payload,callback:d.callback,next:null},p===null?(f=p=v,h=g):p=p.next=v,l|=y;if(d=d.next,d===null){if(d=o.shared.pending,d===null)break;y=d,d=y.next,y.next=null,o.lastBaseUpdate=y,o.shared.pending=null}}while(!0);if(p===null&&(h=g),o.baseState=h,o.firstBaseUpdate=f,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);ro|=l,e.lanes=l,e.memoizedState=g}}function mv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Z(191,o));o.call(r)}}}var ll={},ir=ki(ll),Ba=ki(ll),Va=ki(ll);function Vi(e){if(e===ll)throw Error(Z(174));return e}function lp(e,t){switch(Re(Va,t),Re(Ba,e),Re(ir,ll),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:of(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=of(t,e)}Fe(ir),Re(ir,t)}function ms(){Fe(ir),Fe(Ba),Fe(Va)}function gb(e){Vi(Va.current);var t=Vi(ir.current),n=of(t,e.type);t!==n&&(Re(Ba,e),Re(ir,n))}function up(e){Ba.current===e&&(Fe(ir),Fe(Ba))}var He=ki(0);function oc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hh=[];function cp(){for(var e=0;e<hh.length;e++)hh[e]._workInProgressVersionPrimary=null;hh.length=0}var Pu=Ar.ReactCurrentDispatcher,fh=Ar.ReactCurrentBatchConfig,no=0,$e=null,rt=null,st=null,sc=!1,wa=!1,Ha=0,bj=0;function gt(){throw Error(Z(321))}function dp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rn(e[n],t[n]))return!1;return!0}function hp(e,t,n,r,o,s){if(no=s,$e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Pu.current=e===null||e.memoizedState===null?Sj:Pj,e=n(r,o),wa){s=0;do{if(wa=!1,Ha=0,25<=s)throw Error(Z(301));s+=1,st=rt=null,t.updateQueue=null,Pu.current=Tj,e=n(r,o)}while(wa)}if(Pu.current=ac,t=rt!==null&&rt.next!==null,no=0,st=rt=$e=null,sc=!1,t)throw Error(Z(300));return e}function fp(){var e=Ha!==0;return Ha=0,e}function Kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?$e.memoizedState=st=e:st=st.next=e,st}function fn(){if(rt===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=rt.next;var t=st===null?$e.memoizedState:st.next;if(t!==null)st=t,rt=e;else{if(e===null)throw Error(Z(310));rt=e,e={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},st===null?$e.memoizedState=st=e:st=st.next=e}return st}function Wa(e,t){return typeof t=="function"?t(e):t}function mh(e){var t=fn(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=rt,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var l=o.next;o.next=s.next,s.next=l}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var d=l=null,h=null,f=s;do{var p=f.lane;if((no&p)===p)h!==null&&(h=h.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var g={lane:p,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};h===null?(d=h=g,l=r):h=h.next=g,$e.lanes|=p,ro|=p}f=f.next}while(f!==null&&f!==s);h===null?l=r:h.next=d,Rn(r,t.memoizedState)||(It=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=h,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,$e.lanes|=s,ro|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ph(e){var t=fn(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do s=e(s,l.action),l=l.next;while(l!==o);Rn(s,t.memoizedState)||(It=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function yb(){}function vb(e,t){var n=$e,r=fn(),o=t(),s=!Rn(r.memoizedState,o);if(s&&(r.memoizedState=o,It=!0),r=r.queue,mp(bb.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||st!==null&&st.memoizedState.tag&1){if(n.flags|=2048,$a(9,wb.bind(null,n,r,o,t),void 0,null),at===null)throw Error(Z(349));no&30||xb(n,t,o)}return o}function xb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function wb(e,t,n,r){t.value=n,t.getSnapshot=r,_b(t)&&kb(e)}function bb(e,t,n){return n(function(){_b(t)&&kb(e)})}function _b(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rn(e,n)}catch{return!0}}function kb(e){var t=Tr(e,1);t!==null&&Mn(t,e,1,-1)}function pv(e){var t=Kn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Cj.bind(null,$e,e),[t.memoizedState,e]}function $a(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Cb(){return fn().memoizedState}function Tu(e,t,n,r){var o=Kn();$e.flags|=e,o.memoizedState=$a(1|t,n,void 0,r===void 0?null:r)}function Hc(e,t,n,r){var o=fn();r=r===void 0?null:r;var s=void 0;if(rt!==null){var l=rt.memoizedState;if(s=l.destroy,r!==null&&dp(r,l.deps)){o.memoizedState=$a(t,n,s,r);return}}$e.flags|=e,o.memoizedState=$a(1|t,n,s,r)}
vendor: 4,340 bytes, line 38
38function gv(e,t){return Tu(8390656,8,e,t)}function mp(e,t){return Hc(2048,8,e,t)}function Sb(e,t){return Hc(4,2,e,t)}function Pb(e,t){return Hc(4,4,e,t)}function Tb(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jb(e,t,n){return n=n!=null?n.concat([e]):null,Hc(4,4,Tb.bind(null,t,e),n)}function pp(){}function Eb(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&dp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Nb(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&dp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Lb(e,t,n){return no&21?(Rn(n,t)||(n=Iw(),$e.lanes|=n,ro|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,It=!0),e.memoizedState=n)}function _j(e,t){var n=Te;Te=n!==0&&4>n?n:4,e(!0);var r=fh.transition;fh.transition={};try{e(!1),t()}finally{Te=n,fh.transition=r}}function Mb(){return fn().memoizedState}function kj(e,t,n){var r=fi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ab(e))Rb(t,n);else if(n=mb(e,t,n,r),n!==null){var o=Nt();Mn(n,e,r,o),Ob(n,t,r)}}function Cj(e,t,n){var r=fi(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ab(e))Rb(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,d=s(l,n);if(o.hasEagerState=!0,o.eagerState=d,Rn(d,l)){var h=t.interleaved;h===null?(o.next=o,sp(t)):(o.next=h.next,h.next=o),t.interleaved=o;return}}catch{}finally{}n=mb(e,t,o,r),n!==null&&(o=Nt(),Mn(n,e,r,o),Ob(n,t,r))}}function Ab(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function Rb(e,t){wa=sc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ob(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zm(e,n)}}var ac={readContext:hn,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useInsertionEffect:gt,useLayoutEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useMutableSource:gt,useSyncExternalStore:gt,useId:gt,unstable_isNewReconciler:!1},Sj={readContext:hn,useCallback:function(e,t){return Kn().memoizedState=[e,t===void 0?null:t],e},useContext:hn,useEffect:gv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tu(4194308,4,Tb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Tu(4,2,e,t)},useMemo:function(e,t){var n=Kn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kj.bind(null,$e,e),[r.memoizedState,e]},useRef:function(e){var t=Kn();return e={current:e},t.memoizedState=e},useState:pv,useDebugValue:pp,useDeferredValue:function(e){return Kn().memoizedState=e},useTransition:function(){var e=pv(!1),t=e[0];return e=_j.bind(null,e[1]),Kn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$e,o=Kn();if(ze){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),at===null)throw Error(Z(349));no&30||xb(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,gv(bb.bind(null,r,s,e),[e]),r.flags|=2048,$a(9,wb.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Kn(),t=at.identifierPrefix;if(ze){var n=kr,r=_r;n=(r&~(1<<32-Ln(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ha++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=bj++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Pj={readContext:hn,useCallback:Eb,useContext:hn,useEffect:mp,useImperativeHandle:jb,useInsertionEffect:Sb,useLayoutEffect:Pb,useMemo:Nb,useReducer:mh,useRef:Cb,useState:function(){return mh(Wa)},useDebugValue:pp,useDeferredValue:function(e){var t=fn();return Lb(t,rt.memoizedState,e)},useTransition:function(){var e=mh(Wa)[0],t=fn().memoizedState;return[e,t]},useMutableSource:yb,useSyncExternalStore:vb,useId:Mb,unstable_isNewReconciler:!1},Tj={readContext:hn,useCallback:Eb,useContext:hn,useEffect:mp,useImperativeHandle:jb,useInsertionEffect:Sb,useLayoutEffect:Pb,useMemo:Nb,useReducer:ph,useRef
vendor: 5,969 bytes, lines 38-40
38:Cb,useState:function(){return ph(Wa)},useDebugValue:pp,useDeferredValue:function(e){var t=fn();return rt===null?t.memoizedState=e:Lb(t,rt.memoizedState,e)},useTransition:function(){var e=ph(Wa)[0],t=fn().memoizedState;return[e,t]},useMutableSource:yb,useSyncExternalStore:vb,useId:Mb,unstable_isNewReconciler:!1};function Cn(e,t){if(e&&e.defaultProps){t=Ue({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Pf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ue({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wc={isMounted:function(e){return(e=e._reactInternals)?lo(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Nt(),o=fi(e),s=Cr(r,o);s.payload=t,n!=null&&(s.callback=n),t=di(e,s,o),t!==null&&(Mn(t,e,o,r),Su(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Nt(),o=fi(e),s=Cr(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=di(e,s,o),t!==null&&(Mn(t,e,o,r),Su(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nt(),r=fi(e),o=Cr(n,r);o.tag=2,t!=null&&(o.callback=t),t=di(e,o,r),t!==null&&(Mn(t,e,r,n),Su(t,e,r))}};function yv(e,t,n,r,o,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,l):t.prototype&&t.prototype.isPureReactComponent?!Ia(n,r)||!Ia(o,s):!0}function Ib(e,t,n){var r=!1,o=yi,s=t.contextType;return typeof s=="object"&&s!==null?s=hn(s):(o=Ft(t)?eo:bt.current,r=t.contextTypes,s=(r=r!=null)?ds(e,o):yi),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function vv(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Wc.enqueueReplaceState(t,t.state,null)}function Tf(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ap(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=hn(s):(s=Ft(t)?eo:bt.current,o.context=ds(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Pf(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Wc.enqueueReplaceState(o,o.state,null),ic(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ps(e,t){try{var n="",r=t;do n+=tT(r),r=r.return;while(r);var o=n}catch(s){o=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:e,source:t,stack:o,digest:null}}function gh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function jf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var jj=typeof WeakMap=="function"?WeakMap:Map;function Db(e,t,n){n=Cr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){uc||(uc=!0,Ff=r),jf(e,t)},n}function Fb(e,t,n){n=Cr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){jf(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){jf(e,t),typeof r!="function"&&(hi===null?hi=new Set([this]):hi.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function xv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jj;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Hj.bind(null,e,t,n),t.then(e,e))}function wv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function bv(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Cr(-1,1),t.tag=2,di(n,t,1))),n.lanes|=1),e)}var Ej=Ar.ReactCurrentOwner,It=!1;function Pt(e,t,n,r){t.child=e===null?fb(t,null,n,r):fs(t,e.child,n,r)}function _v(e,t,n,r,o){n=n.render;var s=t.ref;return Qo(t,o),r=hp(e,t,n,r,s,o),n=fp(),e!==null&&!It?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jr(e,t,o)):(ze&&n&&ep(t),t.flags|=1,Pt(e,t,r,o),t.child)}function kv(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!kp(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,zb(e,t,s,r,o)):(e=Lu(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var l=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ia,n(l,r)&&e.ref===t.ref)return jr(e,t,o)}return t.flags|=1,e=mi(s,r),e.ref=t.ref,e.return=t,t.child=e}function zb(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Ia(s,r)&&e.ref===t.ref)if(It=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(It=!0);else return t.lanes=e.lanes,jr(e,t,o)}return Ef(e,t,n,r,o)}function Bb(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Re(Wo,$t),$t|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Re(Wo,$t),$t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Re(Wo,$t),$t|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Re(Wo,$t),$t|=r;return Pt(e,t,o,n),t.child}function Vb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,723 bytes, line 40
40function Ef(e,t,n,r,o){var s=Ft(n)?eo:bt.current;return s=ds(t,s),Qo(t,o),n=hp(e,t,n,r,s,o),r=fp(),e!==null&&!It?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jr(e,t,o)):(ze&&r&&ep(t),t.flags|=1,Pt(e,t,n,o),t.child)}function Cv(e,t,n,r,o){if(Ft(n)){var s=!0;Ju(t)}else s=!1;if(Qo(t,o),t.stateNode===null)ju(e,t),Ib(t,n,r),Tf(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,d=t.memoizedProps;l.props=d;var h=l.context,f=n.contextType;typeof f=="object"&&f!==null?f=hn(f):(f=Ft(n)?eo:bt.current,f=ds(t,f));var p=n.getDerivedStateFromProps,g=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function";g||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(d!==r||h!==f)&&vv(t,l,r,f),Kr=!1;var y=t.memoizedState;l.state=y,ic(t,r,l,o),h=t.memoizedState,d!==r||y!==h||Dt.current||Kr?(typeof p=="function"&&(Pf(t,n,p,r),h=t.memoizedState),(d=Kr||yv(t,n,d,r,y,h,f))?(g||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=f,r=d):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,pb(e,t),d=t.memoizedProps,f=t.type===t.elementType?d:Cn(t.type,d),l.props=f,g=t.pendingProps,y=l.context,h=n.contextType,typeof h=="object"&&h!==null?h=hn(h):(h=Ft(n)?eo:bt.current,h=ds(t,h));var v=n.getDerivedStateFromProps;(p=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(d!==g||y!==h)&&vv(t,l,r,h),Kr=!1,y=t.memoizedState,l.state=y,ic(t,r,l,o);var S=t.memoizedState;d!==g||y!==S||Dt.current||Kr?(typeof v=="function"&&(Pf(t,n,v,r),S=t.memoizedState),(f=Kr||yv(t,n,f,r,y,S,h)||!1)?(p||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,S,h),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,S,h)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||d===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),l.props=r,l.state=S,l.context=h,r=f):(typeof l.componentDidUpdate!="function"||d===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),r=!1)}return Nf(e,t,n,r,s,o)}function Nf(e,t,n,r,o,s){Vb(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&uv(t,n,!1),jr(e,t,s);r=t.stateNode,Ej.current=t;var d=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=fs(t,e.child,null,s),t.child=fs(t,null,d,s)):Pt(e,t,d,s),t.memoizedState=r.state,o&&uv(t,n,!0),t.child}function Hb(e){var t=e.stateNode;t.pendingContext?lv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&lv(e,t.context,!1),lp(e,t.containerInfo)}function Sv(e,t,n,r,o){return hs(),np(o),t.flags|=256,Pt(e,t,n,r),t.child}var Lf={dehydrated:null,treeContext:null,retryLane:0};function Mf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Wb(e,t,n){var r=t.pendingProps,o=He.current,s=!1,l=(t.flags&128)!==0,d;if((d=l)||(d=e!==null&&e.memoizedState===null?!1:(o&2)!==0),d?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Re(He,o&1),e===null)return Cf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=l):s=Zc(l,r,0,null),e=Qi(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Mf(n),t.memoizedState=Lf,e):gp(t,l));if(o=e.memoizedState,o!==null&&(d=o.dehydrated,d!==null))return Nj(e,t,l,r,d,o,n);if(s){s=r.fallback,l=t.mode,o=e.child,d=o.sibling;var h={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=h,t.deletions=null):(r=mi(o,h),r.subtreeFlags=o.subtreeFlags&14680064),d!==null?s=mi(d,s):(s=Qi(s,l,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=e.child.memoizedState,l=l===null?Mf(n):{baseLanes:l.base
vendor: 8,201 bytes, line 40
40Lanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Lf,r}return s=e.child,e=s.sibling,r=mi(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function gp(e,t){return t=Zc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function nu(e,t,n,r){return r!==null&&np(r),fs(t,e.child,null,n),e=gp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nj(e,t,n,r,o,s,l){if(n)return t.flags&256?(t.flags&=-257,r=gh(Error(Z(422))),nu(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Zc({mode:"visible",children:r.children},o,0,null),s=Qi(s,o,l,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&fs(t,e.child,null,l),t.child.memoizedState=Mf(l),t.memoizedState=Lf,s);if(!(t.mode&1))return nu(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var d=r.dgst;return r=d,s=Error(Z(419)),r=gh(s,r,void 0),nu(e,t,l,r)}if(d=(l&e.childLanes)!==0,It||d){if(r=at,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Tr(e,o),Mn(r,e,o,-1))}return _p(),r=gh(Error(Z(421))),nu(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Wj.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,Zt=ci(o.nextSibling),Gt=t,ze=!0,En=null,e!==null&&(sn[an++]=_r,sn[an++]=kr,sn[an++]=to,_r=e.id,kr=e.overflow,to=t),t=gp(t,r.children),t.flags|=4096,t)}function Pv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sf(e.return,t,n)}function yh(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function $b(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Pt(e,t,r.children,n),r=He.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pv(e,n,t);else if(e.tag===19)Pv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Re(He,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&oc(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),yh(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&oc(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}yh(t,!0,n,null,s);break;case"together":yh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ju(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ro|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,n=mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Lj(e,t,n){switch(t.tag){case 3:Hb(t),hs();break;case 5:gb(t);break;case 1:Ft(t.type)&&Ju(t);break;case 4:lp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Re(nc,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Re(He,He.current&1),t.flags|=128,null):n&t.child.childLanes?Wb(e,t,n):(Re(He,He.current&1),e=jr(e,t,n),e!==null?e.sibling:null);Re(He,He.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $b(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Re(He,He.current),r)break;return null;case 22:case 23:return t.lanes=0,Bb(e,t,n)}return jr(e,t,n)}var Ub,Af,Zb,Gb;Ub=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Af=function(){};Zb=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Vi(ir.current);var s=null;switch(n){case"input":o=ef(e,o),r=ef(e,r),s=[];break;case"select":o=Ue({},o,{value:void 0}),r=Ue({},r,{value:void 0}),s=[];break;case"textarea":o=rf(e,o),r=rf(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Qu)}sf(n,r);var l;n=null;for(f in o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&o[f]!=null)if(f==="style"){var d=o[f];for(l in d)d.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Ea.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var h=r[f];if(d=o!=null?o[f]:void 0,r.hasOwnProperty(f)&&h!==d&&(h!=null||d!=null))if(f==="style")if(d){for(l in d)!d.hasOwnProperty(l)||h&&h.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in h)h.hasOwnProperty(l)&&d[l]!==h[l]&&(n||(n={}),n[l]=h[l])}else n||(s||(s=[]),s.push(f,n)),n=h;else f==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,d=d?d.__html:void 0,h!=null&&d!==h&&(s=s||[]).push(f,h)):f==="children"?typeof h!="string"&&typeof h!="number"||(s=s||[]).push(f,""+h):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Ea.hasOwnProperty(f)?(h!=null&&f==="onScroll"&&Ie("scroll",e),s||d===h||(s=[])):(s=s||[]).push(f,h))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}};Gb=function(e,t,n,r){n!==r&&(t.flags|=4)};function ia(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function yt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Mj(e,t,n){var r=t.pendingProps;switch(tp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(t),null;case 1:return Ft(t.type)&&Xu(),yt(t),null;case 3:return r=t.stateNode,ms(),Fe(Dt),Fe(bt),cp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(eu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,En!==null&&(Vf(En),En=null))),Af(e,t),yt(t),null;case 5:up(t);var o=Vi(Va.current);if(n=t.type,e!==null&&t.stateNode!=null)Zb(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Z(166));return yt(t),null}if(e=Vi(ir.current),eu(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[er]=t,r[za]=s,e=(t.mode&1)!==0,n){case"dialog":Ie("cancel",r),Ie("close",r);break;case"iframe":case"object":case"embed":Ie("load",r);break;case"video":case"audio":for(o=0;o<fa.length;o++)Ie(fa[o],r);break;case"source":Ie("error",r);break;case"img":case"image":case"link":Ie("error",r),Ie("load",r);break;case"details":Ie("toggle",r);break;case"input":Oy(r,s),Ie("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ie("invalid",r);break;case"textarea":Dy(r,s),Ie("invalid",r)}sf(n,s),o=null;for(var l in s)if(s.hasOwnProperty(l)){var d=s[l];
vendor: 28,896 bytes, line 40
40l==="children"?typeof d=="string"?r.textContent!==d&&(s.suppressHydrationWarning!==!0&&Jl(r.textContent,d,e),o=["children",d]):typeof d=="number"&&r.textContent!==""+d&&(s.suppressHydrationWarning!==!0&&Jl(r.textContent,d,e),o=["children",""+d]):Ea.hasOwnProperty(l)&&d!=null&&l==="onScroll"&&Ie("scroll",r)}switch(n){case"input":Ul(r),Iy(r,s,!0);break;case"textarea":Ul(r),Fy(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Qu)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=bw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[er]=t,e[za]=r,Ub(e,t,!1,!1),t.stateNode=e;e:{switch(l=af(n,r),n){case"dialog":Ie("cancel",e),Ie("close",e),o=r;break;case"iframe":case"object":case"embed":Ie("load",e),o=r;break;case"video":case"audio":for(o=0;o<fa.length;o++)Ie(fa[o],e);o=r;break;case"source":Ie("error",e),o=r;break;case"img":case"image":case"link":Ie("error",e),Ie("load",e),o=r;break;case"details":Ie("toggle",e),o=r;break;case"input":Oy(e,r),o=ef(e,r),Ie("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ue({},r,{value:void 0}),Ie("invalid",e);break;case"textarea":Dy(e,r),o=rf(e,r),Ie("invalid",e);break;default:o=r}sf(n,o),d=o;for(s in d)if(d.hasOwnProperty(s)){var h=d[s];s==="style"?Cw(e,h):s==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,h!=null&&_w(e,h)):s==="children"?typeof h=="string"?(n!=="textarea"||h!=="")&&Na(e,h):typeof h=="number"&&Na(e,""+h):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ea.hasOwnProperty(s)?h!=null&&s==="onScroll"&&Ie("scroll",e):h!=null&&Bm(e,s,h,l))}switch(n){case"input":Ul(e),Iy(e,r,!1);break;case"textarea":Ul(e),Fy(e);break;case"option":r.value!=null&&e.setAttribute("value",""+gi(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Go(e,!!r.multiple,s,!1):r.defaultValue!=null&&Go(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Qu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return yt(t),null;case 6:if(e&&t.stateNode!=null)Gb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Z(166));if(n=Vi(Va.current),Vi(ir.current),eu(t)){if(r=t.stateNode,n=t.memoizedProps,r[er]=t,(s=r.nodeValue!==n)&&(e=Gt,e!==null))switch(e.tag){case 3:Jl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Jl(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[er]=t,t.stateNode=r}return yt(t),null;case 13:if(Fe(He),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ze&&Zt!==null&&t.mode&1&&!(t.flags&128))db(),hs(),t.flags|=98560,s=!1;else if(s=eu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(Z(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Z(317));s[er]=t}else hs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;yt(t),s=!1}else En!==null&&(Vf(En),En=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||He.current&1?it===0&&(it=3):_p())),t.updateQueue!==null&&(t.flags|=4),yt(t),null);case 4:return ms(),Af(e,t),e===null&&Da(t.stateNode.containerInfo),yt(t),null;case 10:return op(t.type._context),yt(t),null;case 17:return Ft(t.type)&&Xu(),yt(t),null;case 19:if(Fe(He),s=t.memoizedState,s===null)return yt(t),null;if(r=(t.flags&128)!==0,l=s.rendering,l===null)if(r)ia(s,!1);else{if(it!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=oc(e),l!==null){for(t.flags|=128,ia(s,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,l=s.alternate,l===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Re(He,He.current&1|2),t.child}e=e.sibling}s.tail!==null&&qe()>gs&&(t.flags|=128,r=!0,ia(s,!1),t.lanes=4194304)}else{if(!r)if(e=oc(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ia(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!ze)return yt(t),null}else 2*qe()-s.renderingStartTime>gs&&n!==1073741824&&(t.flags|=128,r=!0,ia(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=qe(),t.sibling=null,n=He.current,Re(He,r?n&1|2:n&1),t):(yt(t),null);case 22:case 23:return bp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?$t&1073741824&&(yt(t),t.subtreeFlags&6&&(t.flags|=8192)):yt(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function Aj(e,t){switch(tp(t),t.tag){case 1:return Ft(t.type)&&Xu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ms(),Fe(Dt),Fe(bt),cp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return up(t),null;case 13:if(Fe(He),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));hs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(He),null;case 4:return ms(),null;case 10:return op(t.type._context),null;case 22:case 23:return bp(),null;case 24:return null;default:return null}}var ru=!1,wt=!1,Rj=typeof WeakSet=="function"?WeakSet:Set,J=null;function Ho(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ge(e,t,r)}else n.current=null}function Rf(e,t,n){try{n()}catch(r){Ge(e,t,r)}}var Tv=!1;function Oj(e,t){if(yf=Ku,e=Xw(),Jm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,d=-1,h=-1,f=0,p=0,g=e,y=null;t:for(;;){for(var v;g!==n||o!==0&&g.nodeType!==3||(d=l+o),g!==s||r!==0&&g.nodeType!==3||(h=l+r),g.nodeType===3&&(l+=g.nodeValue.length),(v=g.firstChild)!==null;)y=g,g=v;for(;;){if(g===e)break t;if(y===n&&++f===o&&(d=l),y===s&&++p===r&&(h=l),(v=g.nextSibling)!==null)break;g=y,y=g.parentNode}g=v}n=d===-1||h===-1?null:{start:d,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(vf={focusedElem:e,selectionRange:n},Ku=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var _=S.memoizedProps,T=S.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?_:Cn(t.type,_),T);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(j){Ge(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return S=Tv,Tv=!1,S}function ba(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Rf(t,n,s)}o=o.next}while(o!==r)}}function $c(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Of(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Kb(e){var t=e.alternate;t!==null&&(e.alternate=null,Kb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[er],delete t[za],delete t[bf],delete t[yj],delete t[vj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function qb(e){return e.tag===5||e.tag===3||e.tag===4}function jv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function If(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qu));else if(r!==4&&(e=e.child,e!==null))for(If(e,t,n),e=e.sibling;e!==null;)If(e,t,n),e=e.sibling}function Df(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Df(e,t,n),e=e.sibling;e!==null;)Df(e,t,n),e=e.sibling}var ut=null,jn=!1;function Fr(e,t,n){for(n=n.child;n!==null;)Yb(e,t,n),n=n.sibling}function Yb(e,t,n){if(rr&&typeof rr.onCommitFiberUnmount=="function")try{rr.onCommitFiberUnmount(Ic,n)}catch{}switch(n.tag){case 5:wt||Ho(n,t);case 6:var r=ut,o=jn;ut=null,Fr(e,t,n),ut=r,jn=o,ut!==null&&(jn?(e=ut,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ut.removeChild(n.stateNode));break;case 18:ut!==null&&(jn?(e=ut,n=n.stateNode,e.nodeType===8?ch(e.parentNode,n):e.nodeType===1&&ch(e,n),Ra(e)):ch(ut,n.stateNode));break;case 4:r=ut,o=jn,ut=n.stateNode.containerInfo,jn=!0,Fr(e,t,n),ut=r,jn=o;break;case 0:case 11:case 14:case 15:if(!wt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&Rf(n,t,l),o=o.next}while(o!==r)}Fr(e,t,n);break;case 1:if(!wt&&(Ho(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(d){Ge(n,t,d)}Fr(e,t,n);break;case 21:Fr(e,t,n);break;case 22:n.mode&1?(wt=(r=wt)||n.memoizedState!==null,Fr(e,t,n),wt=r):Fr(e,t,n);break;default:Fr(e,t,n)}}function Ev(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Rj),t.forEach(function(r){var o=$j.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function wn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,l=t,d=l;e:for(;d!==null;){switch(d.tag){case 5:ut=d.stateNode,jn=!1;break e;case 3:ut=d.stateNode.containerInfo,jn=!0;break e;case 4:ut=d.stateNode.containerInfo,jn=!0;break e}d=d.return}if(ut===null)throw Error(Z(160));Yb(s,l,o),ut=null,jn=!1;var h=o.alternate;h!==null&&(h.return=null),o.return=null}catch(f){Ge(o,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Qb(t,e),t=t.sibling}function Qb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(wn(t,e),Gn(e),r&4){try{ba(3,e,e.return),$c(3,e)}catch(_){Ge(e,e.return,_)}try{ba(5,e,e.return)}catch(_){Ge(e,e.return,_)}}break;case 1:wn(t,e),Gn(e),r&512&&n!==null&&Ho(n,n.return);break;case 5:if(wn(t,e),Gn(e),r&512&&n!==null&&Ho(n,n.return),e.flags&32){var o=e.stateNode;try{Na(o,"")}catch(_){Ge(e,e.return,_)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,l=n!==null?n.memoizedProps:s,d=e.type,h=e.updateQueue;if(e.updateQueue=null,h!==null)try{d==="input"&&s.type==="radio"&&s.name!=null&&xw(o,s),af(d,l);var f=af(d,s);for(l=0;l<h.length;l+=2){var p=h[l],g=h[l+1];p==="style"?Cw(o,g):p==="dangerouslySetInnerHTML"?_w(o,g):p==="children"?Na(o,g):Bm(o,p,g,f)}switch(d){case"input":tf(o,s);break;case"textarea":ww(o,s);break;case"select":var y=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var v=s.value;v!=null?Go(o,!!s.multiple,v,!1):y!==!!s.multiple&&(s.defaultValue!=null?Go(o,!!s.multiple,s.defaultValue,!0):Go(o,!!s.multiple,s.multiple?[]:"",!1))}o[za]=s}catch(_){Ge(e,e.return,_)}}break;case 6:if(wn(t,e),Gn(e),r&4){if(e.stateNode===null)throw Error(Z(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(_){Ge(e,e.return,_)}}break;case 3:if(wn(t,e),Gn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ra(t.containerInfo)}catch(_){Ge(e,e.return,_)}break;case 4:wn(t,e),Gn(e);break;case 13:wn(t,e),Gn(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(xp=qe())),r&4&&Ev(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(wt=(f=wt)||p,wn(t,e),wt=f):wn(t,e),Gn(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!p&&e.mode&1)for(J=e,p=e.child;p!==null;){for(g=J=p;J!==null;){switch(y=J,v=y.child,y.tag){case 0:case 11:case 14:case 15:ba(4,y,y.return);break;case 1:Ho(y,y.return);var S=y.stateNode;if(typeof S.componentWillUnmount=="function"){r=y,n=y.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(_){Ge(r,n,_)}}break;case 5:Ho(y,y.return);break;case 22:if(y.memoizedState!==null){Lv(g);continue}}v!==null?(v.return=y,J=v):Lv(g)}p=p.sibling}e:for(p=null,g=e;;){if(g.tag===5){if(p===null){p=g;try{o=g.stateNode,f?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(d=g.stateNode,h=g.memoizedProps.style,l=h!=null&&h.hasOwnProperty("display")?h.display:null,d.style.display=kw("display",l))}catch(_){Ge(e,e.return,_)}}}else if(g.tag===6){if(p===null)try{g.stateNode.nodeValue=f?"":g.memoizedProps}catch(_){Ge(e,e.return,_)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===e)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break e;for(;g.sibling===null;){if(g.return===null||g.return===e)break e;p===g&&(p=null),g=g.return}p===g&&(p=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:wn(t,e),Gn(e),r&4&&Ev(e);break;case 21:break;default:wn(t,e),Gn(e)}}function Gn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(qb(n)){var r=n;break e}n=n.return}throw Error(Z(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Na(o,""),r.flags&=-33);var s=jv(e);Df(e,s,o);break;case 3:case 4:var l=r.stateNode.containerInfo,d=jv(e);If(e,d,l);break;default:throw Error(Z(161))}}catch(h){Ge(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ij(e,t,n){J=e,Xb(e)}function Xb(e,t,n){for(var r=(e.mode&1)!==0;J!==null;){var o=J,s=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||ru;if(!l){var d=o.alternate,h=d!==null&&d.memoizedState!==null||wt;d=ru;var f=wt;if(ru=l,(wt=h)&&!f)for(J=o;J!==null;)l=J,h=l.child,l.tag===22&&l.memoizedState!==null?Mv(o):h!==null?(h.return=l,J=h):Mv(o);for(;s!==null;)J=s,Xb(s),s=s.sibling;J=o,ru=d,wt=f}Nv(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,J=s):Nv(e)}}function Nv(e){for(;J!==null;){var t=J;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:wt||$c(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!wt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Cn(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&mv(t,s,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}mv(t,l,n)}break;case 5:var d=t.stateNode;if(n===null&&t.flags&4){n=d;var h=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":h.autoFocus&&n.focus();break;case"img":h.src&&(n.src=h.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var g=p.dehydrated;g!==null&&Ra(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Z(163))}wt||t.flags&512&&Of(t)}catch(y){Ge(t,t.return,y)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function Lv(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function Mv(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{$c(4,t)}catch(h){Ge(t,n,h)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(h){Ge(t,o,h)}}var s=t.return;try{Of(t)}catch(h){Ge(t,s,h)}break;case 5:var l=t.return;try{Of(t)}catch(h){Ge(t,l,h)}}}catch(h){Ge(t,t.return,h)}if(t===e){J=null;break}var d=t.sibling;if(d!==null){d.return=t.return,J=d;break}J=t.return}}var Dj=Math.ceil,lc=Ar.ReactCurrentDispatcher,yp=Ar.ReactCurrentOwner,cn=Ar.ReactCurrentBatchConfig,_e=0,at=null,et=null,ht=0,$t=0,Wo=ki(0),it=0,Ua=null,ro=0,Uc=0,vp=0,_a=null,Ot=null,xp=0,gs=1/0,xr=null,uc=!1,Ff=null,hi=null,iu=!1,ii=null,cc=0,ka=0,zf=null,Eu=-1,Nu=0;function Nt(){return _e&6?qe():Eu!==-1?Eu:Eu=qe()}function fi(e){return e.mode&1?_e&2&&ht!==0?ht&-ht:wj.transition!==null?(Nu===0&&(Nu=Iw()),Nu):(e=Te,e!==0||(e=window.event,e=e===void 0?16:Ww(e.type)),e):1}function Mn(e,t,n,r){if(50<ka)throw ka=0,zf=null,Error(Z(185));ol(e,n,r),(!(_e&2)||e!==at)&&(e===at&&(!(_e&2)&&(Uc|=n),it===4&&Yr(e,ht)),zt(e,r),n===1&&_e===0&&!(t.mode&1)&&(gs=qe()+500,Vc&&Ci()))}function zt(e,t){var n=e.callbackNode;wT(e,t);var r=Gu(e,e===at?ht:0);if(r===0)n!==null&&Vy(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Vy(n),t===1)e.tag===0?xj(Av.bind(null,e)):lb(Av.bind(null,e)),pj(function(){!(_e&6)&&Ci()}),n=null;else{switch(Dw(r)){case 1:n=Um;break;case 4:n=Rw;break;case 16:n=Zu;break;case 536870912:n=Ow;break;default:n=Zu}n=s_(n,Jb.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Jb(e,t){if(Eu=-1,Nu=0,_e&6)throw Error(Z(327));var n=e.callbackNode;if(Xo()&&e.callbackNode!==n)return null;var r=Gu(e,e===at?ht:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=dc(e,r);else{t=r;var o=_e;_e|=2;var s=t_();(at!==e||ht!==t)&&(xr=null,gs=qe()+500,Yi(e,t));do try{Bj();break}catch(d){e_(e,d)}while(!0);ip(),lc.current=s,_e=o,et!==null?t=0:(at=null,ht=0,t=it)}if(t!==0){if(t===2&&(o=hf(e),o!==0&&(r=o,t=Bf(e,o))),t===1)throw n=Ua,Yi(e,0),Yr(e,r),zt(e,qe()),n;if(t===6)Yr(e,r);else{if(o=e.current.alternate,!(r&30)&&!Fj(o)&&(t=dc(e,r),t===2&&(s=hf(e),s!==0&&(r=s,t=Bf(e,s))),t===1))throw n=Ua,Yi(e,0),Yr(e,r),zt(e,qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Z(345));case 2:Di(e,Ot,xr);break;case 3:if(Yr(e,r),(r&130023424)===r&&(t=xp+500-qe(),10<t)){if(Gu(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Nt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=wf(Di.bind(null,e,Ot,xr),t);break}Di(e,Ot,xr);break;case 4:if(Yr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Ln(r);s=1<<l,l=t[l],l>o&&(o=l),r&=~s}if(r=o,r=qe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Dj(r/1960))-r,10<r){e.timeoutHandle=wf(Di.bind(null,e,Ot,xr),r);break}Di(e,Ot,xr);break;case 5:Di(e,Ot,xr);break;default:throw Error(Z(329))}}}return zt(e,qe()),e.callbackNode===n?Jb.bind(null,e):null}function Bf(e,t){var n=_a;return e.current.memoizedState.isDehydrated&&(Yi(e,t).flags|=256),e=dc(e,t),e!==2&&(t=Ot,Ot=n,t!==null&&Vf(t)),e}function Vf(e){Ot===null?Ot=e:Ot.push.apply(Ot,e)}function Fj(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!Rn(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yr(e,t){for(t&=~vp,t&=~Uc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ln(t),r=1<<n;e[n]=-1,t&=~r}}function Av(e){if(_e&6)throw Error(Z(327));Xo();var t=Gu(e,0);if(!(t&1))return zt(e,qe()),null;var n=dc(e,t);if(e.tag!==0&&n===2){var r=hf(e);r!==0&&(t=r,n=Bf(e,r))}if(n===1)throw n=Ua,Yi(e,0),Yr(e,t),zt(e,qe()),n;if(n===6)throw Error(Z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Di(e,Ot,xr),zt(e,qe()),null}function wp(e,t){var n=_e;_e|=1;try{return e(t)}finally{_e=n,_e===0&&(gs=qe()+500,Vc&&Ci())}}function io(e){ii!==null&&ii.tag===0&&!(_e&6)&&Xo();var t=_e;_e|=1;var n=cn.transition,r=Te;try{if(cn.transition=null,Te=1,e)return e()}finally{Te=r,cn.transition=n,_e=t,!(_e&6)&&Ci()}}function bp(){$t=Wo.current,Fe(Wo)}function Yi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,mj(n)),et!==null)for(n=et.return;n!==null;){var r=n;switch(tp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xu();break;case 3:ms(),Fe(Dt),Fe(bt),cp();break;case 5:up(r);break;case 4:ms();break;case 13:Fe(He);break;case 19:Fe(He);break;case 10:op(r.type._context);break;case 22:case 23:bp()}n=n.return}if(at=e,et=e=mi(e.current,null),ht=$t=t,it=0,Ua=null,vp=Uc=ro=0,Ot=_a=null,Bi!==null){for(t=0;t<Bi.length;t++)if(n=Bi[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var l=s.next;s.next=o,r.next=l}n.pending=r}Bi=null}return e}function e_(e,t){do{var n=et;try{if(ip(),Pu.current=ac,sc){for(var r=$e.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}sc=!1}if(no=0,st=rt=$e=null,wa=!1,Ha=0,yp.current=null,n===null||n.return===null){it=1,Ua=t,et=null;break}e:{var s=e,l=n.return,d=n,h=t;if(t=ht,d.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){var f=h,p=d,g=p.tag;if(!(p.mode&1)&&(g===0||g===11||g===15)){var y=p.alternate;y?(p.updateQueue=y.updateQueue,p.memoizedState=y.memoizedState,p.lanes=y.lanes):(p.updateQueue=null,p.memoizedState=null)}var v=wv(l);if(v!==null){v.flags&=-257,bv(v,l,d,s,t),v.mode&1&&xv(s,f,t),t=v,h=f;var S=t.updateQueue;if(S===null){var _=new Set;_.add(h),t.updateQueue=_}else S.add(h);break e}else{if(!(t&1)){xv(s,f,t),_p();break e}h=Error(Z(426))}}else if(ze&&d.mode&1){var T=wv(l);if(T!==null){!(T.flags&65536)&&(T.flags|=256),bv(T,l,d,s,t),np(ps(h,d));break e}}s=h=ps(h,d),it!==4&&(it=2),_a===null?_a=[s]:_a.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var w=Db(s,h,t);fv(s,w);break e;case 1:d=h;var b=s.type,C=s.stateNode;if(!(s.flags&128)&&(typeof b.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(hi===null||!hi.has(C)))){s.flags|=65536,t&=-t,s.lanes|=t;var j=Fb(s,d,t);fv(s,j);break e}}s=s.return}while(s!==null)}r_(n)}catch(N){t=N,et===n&&n!==null&&(et=n=n.return);continue}break}while(!0)}function t_(){var e=lc.current;return lc.current=ac,e===null?ac:e}function _p(){(it===0||it===3||it===2)&&(it=4),at===null||!(ro&268435455)&&!(Uc&268435455)||Yr(at,ht)}function dc(e,t){var n=_e;_e|=2;var r=t_();(at!==e||ht!==t)&&(xr=null,Yi(e,t));do try{zj();break}catch(o){e_(e,o)}while(!0);if(ip(),_e=n,lc.current=r,et!==null)throw Error(Z(261));return at=null,ht=0,it}function zj(){for(;et!==null;)n_(et)}function Bj(){for(;et!==null&&!dT();)n_(et)}function n_(e){var t=o_(e.alternate,e,$t);e.memoizedProps=e.pendingProps,t===null?r_(e):et=t,yp.current=null}function r_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Aj(n,t),n!==null){n.flags&=32767,et=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{it=6,et=null;return}}else if(n=Mj(n,t,$t),n!==null){et=n;return}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);it===0&&(it=5)}function Di(e,t,n){var r=Te,o=cn.transition;try{cn.transition=null,Te=1,Vj(e,t,n,r)}finally{cn.transition=o,Te=r}return null}function Vj(e,t,n,r){do Xo();while(ii!==null);if(_e&6)throw Error(Z(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Z(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(bT(e,s),e===at&&(et=at=null,ht=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||iu||(iu=!0,s_(Zu,function(){return Xo(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=cn.transition,cn.transition=null;var l=Te;Te=1;var d=_e;_e|=4,yp.current=null,Oj(e,n),Qb(n,e),aj(vf),Ku=!!yf,vf=yf=null,e.current=n,Ij(n),hT(),_e=d,Te=l,cn.transition=s}else e.current=n;if(iu&&(iu=!1,ii=e,cc=o),s=e.pendingLanes,s===0&&(hi=null),pT(n.stateNode),zt(e,qe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(uc)throw uc=!1,e=Ff,Ff=null,e;return cc&1&&e.tag!==0&&Xo(),s=e.pendingLanes,s&1?e===zf?ka++:(ka=0,zf=e):ka=0,Ci(),null}function Xo(){if(ii!==null){var e=Dw(cc),t=cn.transition,n=Te;try{if(cn.transition=null,Te=16>e?16:e,ii===null)var r=!1;else{if(e=ii,ii=null,cc=0,_e&6)throw Error(Z(331));var o=_e;for(_e|=4,J=e.current;J!==null;){var s=J,l=s.child;if(J.flags&16){var d=s.deletions;if(d!==null){for(var h=0;h<d.length;h++){var f=d[h];for(J=f;J!==null;){var p=J;switch(p.tag){case 0:case 11:case 15:ba(8,p,s)}var g=p.child;if(g!==null)g.return=p,J=g;else for(;J!==null;){p=J;var y=p.sibling,v=p.return;if(Kb(p),p===f){J=null;break}if(y!==null){y.return=v,J=y;break}J=v}}}var S=s.alternate;if(S!==null){var _=S.child;if(_!==null){S.child=null;do{var T=_.sibling;_.sibling=null,_=T}while(_!==null)}}J=s}}if(s.subtreeFlags&2064&&l!==null)l.return=s,J=l;else e:for(;J!==null;){if(s=J,s.flags&2048)switch(s.tag){case 0:case 11:case 15:ba(9,s,s.return)}var w=s.sibling;if(w!==null){w.return=s.return,J=w;break e}J=s.return}}var b=e.current;for(J=b;J!==null;){l=J;var C=l.child;if(l.subtreeFlags&2064&&C!==null)C.return=l,J=C;else e:for(l=b;J!==null;){if(d=J,d.flags&2048)try{switch(d.tag){case 0:case 11:case 15:$c(9,d)}}catch(N){Ge(d,d.return,N)}if(d===l){J=null;break e}var j=d.sibling;if(j!==null){j.return=d.return,J=j;break e}J=d.return}}if(_e=o,Ci(),rr&&typeof rr.onPostCommitFiberRoot=="function")try{rr.onPostCommitFiberRoot(Ic,e)}catch{}r=!0}return r}finally{Te=n,cn.transition=t}}return!1}function Rv(e,t,n){t=ps(n,t),t=Db(e,t,1),e=di(e,t,1),t=Nt(),e!==null&&(ol(e,1,t),zt(e,t))}function Ge(e,t,n){if(e.tag===3)Rv(e,e,n);else for(;t!==null;){if(t.tag===3){Rv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(hi===null||!hi.has(r))){e=ps(n,e),e=Fb(t,e,1),t=di(t,e,1),e=Nt(),t!==null&&(ol(t,1,e),zt(t,e));break}}t=t.return}}function Hj(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Nt(),e.pingedLanes|=e.suspendedLanes&n,at===e&&(ht&n)===n&&(it===4||it===3&&(ht&130023424)===ht&&500>qe()-xp?Yi(e,0):vp|=n),zt(e,t)}function i_(e,t){t===0&&(e.mode&1?(t=Kl,Kl<<=1,!(Kl&130023424)&&(Kl=4194304)):t=1);var n=Nt();e=Tr(e,t),e!==null&&(ol(e,t,n),zt(e,n))}function Wj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),i_(e,n)}function $j(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),i_(e,n)}var o_;o_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dt.current)It=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return It=!1,Lj(e,t,n);It=!!(e.flags&131072)}else It=!1,ze&&t.flags&1048576&&ub(t,tc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ju(e,t),e=t.pendingProps;var o=ds(t,bt.current);Qo(t,n),o=hp(null,t,r,e,o,n);var s=fp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ft(r)?(s=!0,Ju(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ap(t),o.updater=Wc,t.stateNode=o,o._reactInternals=t,Tf(t,r,e,n),t=Nf(null,t,r,!0,s,n)):(t.tag=0,ze&&s&&ep(t),Pt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ju(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Zj(r),e=Cn(r,e),o){case 0:t=Ef(null,t,r,e,n);break e;case 1:t=Cv(null,t,r,e,n);break e;case 11:t=_v(null,t,r,e,n);break e;case 14:t=kv(null,t,r,Cn(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Cn(r,o),Ef(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Cn(r,o),Cv(e,t,r,o,n);case 3:e:{if(Hb(t),e===null)throw Error(Z(387));
vendor: 6,521 bytes, line 40
40r=t.pendingProps,s=t.memoizedState,o=s.element,pb(e,t),ic(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=ps(Error(Z(423)),t),t=Sv(e,t,r,n,o);break e}else if(r!==o){o=ps(Error(Z(424)),t),t=Sv(e,t,r,n,o);break e}else for(Zt=ci(t.stateNode.containerInfo.firstChild),Gt=t,ze=!0,En=null,n=fb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hs(),r===o){t=jr(e,t,n);break e}Pt(e,t,r,n)}t=t.child}return t;case 5:return gb(t),e===null&&Cf(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,l=o.children,xf(r,o)?l=null:s!==null&&xf(r,s)&&(t.flags|=32),Vb(e,t),Pt(e,t,l,n),t.child;case 6:return e===null&&Cf(t),null;case 13:return Wb(e,t,n);case 4:return lp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fs(t,null,r,n):Pt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Cn(r,o),_v(e,t,r,o,n);case 7:return Pt(e,t,t.pendingProps,n),t.child;case 8:return Pt(e,t,t.pendingProps.children,n),t.child;case 12:return Pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,l=o.value,Re(nc,r._currentValue),r._currentValue=l,s!==null)if(Rn(s.value,l)){if(s.children===o.children&&!Dt.current){t=jr(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var d=s.dependencies;if(d!==null){l=s.child;for(var h=d.firstContext;h!==null;){if(h.context===r){if(s.tag===1){h=Cr(-1,n&-n),h.tag=2;var f=s.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?h.next=h:(h.next=p.next,p.next=h),f.pending=h}}s.lanes|=n,h=s.alternate,h!==null&&(h.lanes|=n),Sf(s.return,n,t),d.lanes|=n;break}h=h.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(Z(341));l.lanes|=n,d=l.alternate,d!==null&&(d.lanes|=n),Sf(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}Pt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Qo(t,n),o=hn(o),r=r(o),t.flags|=1,Pt(e,t,r,n),t.child;case 14:return r=t.type,o=Cn(r,t.pendingProps),o=Cn(r.type,o),kv(e,t,r,o,n);case 15:return zb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Cn(r,o),ju(e,t),t.tag=1,Ft(r)?(e=!0,Ju(t)):e=!1,Qo(t,n),Ib(t,r,o),Tf(t,r,o,n),Nf(null,t,r,!0,e,n);case 19:return $b(e,t,n);case 22:return Bb(e,t,n)}throw Error(Z(156,t.tag))};function s_(e,t){return Aw(e,t)}function Uj(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ln(e,t,n,r){return new Uj(e,t,n,r)}function kp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zj(e){if(typeof e=="function")return kp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hm)return 11;if(e===Wm)return 14}return 2}function mi(e,t){var n=e.alternate;return n===null?(n=ln(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,n,r,o,s){var l=2;if(r=e,typeof e=="function")kp(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Ao:return Qi(n.children,o,s,t);case Vm:l=8,o|=8;break;case Yh:return e=ln(12,n,t,o|2),e.elementType=Yh,e.lanes=s,e;case Qh:return e=ln(13,n,t,o),e.elementType=Qh,e.lanes=s,e;case Xh:return e=ln(19,n,t,o),e.elementType=Xh,e.lanes=s,e;case gw:return Zc(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mw:l=10;break e;case pw:l=9;break e;case Hm:l=11;break e;case Wm:l=14;break e;case Gr:l=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=ln(l,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Qi(e,t,n,r){return e=ln(7,e,r,t),e.lanes=n,e}function Zc(e,t,n,r){return e=ln(22,e,r,t),e.elementType=gw,e.lanes=n,e.stateNode={isHidden:!1},e}function vh(e,t,n){return e=ln(6,e,null,t),e.lanes=n,e}function xh(e,t,n){return t=ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gj(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jd(0),this.expirationTimes=Jd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Cp(e,t,n,r,o,s,l,d,h){return e=new Gj(e,t,n,d,h),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ln(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ap(s),e}function Kj(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Mo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function a_(e){if(!e)return yi;e=e._reactInternals;e:{if(lo(e)!==e||e.tag!==1)throw Error(Z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Z(171))}if(e.tag===1){var n=e.type;if(Ft(n))return ab(e,n,t)}return t}function l_(e,t,n,r,o,s,l,d,h){return e=Cp(n,r,!0,e,o,s,l,d,h),e.context=a_(null),n=e.current,r=Nt(),o=fi(n),s=Cr(r,o),s.callback=t??null,di(n,s,o),e.current.lanes=o,ol(e,o,r),zt(e,r),e}function Gc(e,t,n,r){var o=t.current,s=Nt(),l=fi(o);return n=a_(n),t.context===null?t.context=n:t.pendingContext=n,t=Cr
vendor: 4,497 bytes, line 40
40(s,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=di(o,t,l),e!==null&&(Mn(e,o,l,s),Su(e,o,l)),l}function hc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ov(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sp(e,t){Ov(e,t),(e=e.alternate)&&Ov(e,t)}function qj(){return null}var u_=typeof reportError=="function"?reportError:function(e){console.error(e)};function Pp(e){this._internalRoot=e}Kc.prototype.render=Pp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));Gc(e,t,null,null)};Kc.prototype.unmount=Pp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;io(function(){Gc(null,e,null,null)}),t[Pr]=null}};function Kc(e){this._internalRoot=e}Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bw();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qr.length&&t!==0&&t<qr[n].priority;n++);qr.splice(n,0,e),n===0&&Hw(e)}};function Tp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function qc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Iv(){}function Yj(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var f=hc(l);s.call(f)}}var l=l_(t,r,e,0,null,!1,!1,"",Iv);return e._reactRootContainer=l,e[Pr]=l.current,Da(e.nodeType===8?e.parentNode:e),io(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var d=r;r=function(){var f=hc(h);d.call(f)}}var h=Cp(e,0,!1,null,null,!1,!1,"",Iv);return e._reactRootContainer=h,e[Pr]=h.current,Da(e.nodeType===8?e.parentNode:e),io(function(){Gc(t,h,n,r)}),h}function Yc(e,t,n,r,o){var s=n._reactRootContainer;if(s){var l=s;if(typeof o=="function"){var d=o;o=function(){var h=hc(l);d.call(h)}}Gc(t,l,e,o)}else l=Yj(n,t,e,o,r);return hc(l)}Fw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ha(t.pendingLanes);n!==0&&(Zm(t,n|1),zt(t,qe()),!(_e&6)&&(gs=qe()+500,Ci()))}break;case 13:io(function(){var r=Tr(e,1);if(r!==null){var o=Nt();Mn(r,e,1,o)}}),Sp(e,1)}};Gm=function(e){if(e.tag===13){var t=Tr(e,134217728);if(t!==null){var n=Nt();Mn(t,e,134217728,n)}Sp(e,134217728)}};zw=function(e){if(e.tag===13){var t=fi(e),n=Tr(e,t);if(n!==null){var r=Nt();Mn(n,e,t,r)}Sp(e,t)}};Bw=function(){return Te};Vw=function(e,t){var n=Te;try{return Te=e,t()}finally{Te=n}};uf=function(e,t,n){switch(t){case"input":if(tf(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Bc(r);if(!o)throw Error(Z(90));vw(r),tf(r,o)}}}break;case"textarea":ww(e,n);break;case"select":t=n.value,t!=null&&Go(e,!!n.multiple,t,!1)}};Tw=wp;jw=io;var Qj={usingClientEntryPoint:!1,Events:[al,Do,Bc,Sw,Pw,wp]},oa={findFiberByHostInstance:zi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Xj={bundleType:oa.bundleType,version:oa.version,rendererPackageName:oa.rendererPackageName,rendererConfig:oa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ar.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Lw(e),e===null?null:e.stateNode},findFiberByHostInstance:oa.findFiberByHostInstance||qj,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 ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{Ic=ou.inject(Xj),rr=ou}catch{}}Yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qj;Yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tp(t))throw Error(Z(200));return Kj(e,t,null,n)};Yt.createRoot=function(e,t){if(!Tp(e))throw Error(Z(299));var n=!1,r="",o=u_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Cp(e,1,!1,null,null,n,!1,r,o),e[Pr]=t.current,Da(e.n
40odeType===8?e.parentNode:e),new Pp(t)};Yt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=Lw(t),e=e===null?null:e.stateNode,e};Yt.flushSync=function(e){return io(e)};Yt.hydrate=function(e,t,n){if(!qc(t))throw Error(Z(200));return Yc(null,e,t,!0,n)};Yt.hydrateRoot=function(e,t,n){if(!Tp(e))throw Error(Z(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",l=u_;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=l_(t,null,e,1,n??null,o,!1,s,l),e[Pr]=t.current,Da(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Kc(t)};Yt.render=function(e,t,n){if(!qc(t))throw Error(Z(200));return Yc(null,e,t,!1,n)};Yt.unmountComponentAtNode=function(e){if(!qc(e))throw Error(Z(40));return e._reactRootContainer?(io(function(){Yc(null,null,e,!1,function(){e._reactRootContainer=null,e[Pr]=null})}),!0):!1};Yt.unstable_batchedUpdates=wp;Yt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qc(n))throw Error(Z(200));if(e==null||e._reactInternals===void 0)throw Error(Z(38));return Yc(e,t,n,!1,r)};Yt.version="18.3.1-next-f1338f8080-20240426";function c_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c_)}catch(e){console.error(e)}}c_(),cw.exports=Yt;var Ps=cw.exports;const d_=Mm(Ps);var h_,Dv=Ps;h_=Dv.createRoot,Dv.hydrateRoot;var Qc=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(){}},Xc=typeof window>"u"||"Deno"in globalThis;function Sn(){}function Jj(e,t){return typeof e=="function"?e(t):e}function e2(e){return typeof e=="number"&&e>=0&&e!==1/0}function t2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Hf(e,t){return typeof e=="function"?e(t):e}function n2(e,t){return typeof e=="function"?e(t):e}function Fv(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:l,stale:d}=e;if(l){if(r){if(t.queryHash!==jp(l,t.options))return!1}else if(!Ga(t.queryKey,l))return!1}if(n!=="all"){const h=t.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||o&&o!==t.state.fetchStatus||s&&!s(t))}function zv(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Za(t.options.mutationKey)!==Za(s))return!1}else if(!Ga(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function jp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Za)(e)}function Za(e){return JSON.stringify(e,(t,n)=>Wf(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ga(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ga(e[n],t[n])):!1}function f_(e,t){if(e===t)return e;const n=Bv(e)&&Bv(t);if(n||Wf(e)&&Wf(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),l=s.length,d=n?[]:{},h=new Set(r);let f=0;for(let p=0;p<l;p++){const g=n?p:s[p];(!n&&h.has(g)||n)&&e[g]===void 0&&t[g]===void 0?(d[g]=void 0,f++):(d[g]=f_(e[g],t[g]),d[g]===e[g]&&e[g]!==void 0&&f++)}return o===l&&f===o?e:d}return t}function Bv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wf(e){if(!Vv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Vv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Vv(e){return Object.prototype.toString.call(e)==="[object Object]"}function r2(e){return new Promise(t=>{setTimeout(t,e)})}function i2(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?f_(e,t):t}function o2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function s2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ep=Symbol();function m_(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ep?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var $i,Xr,ns,U0,a2=(U0=class extends Qc{constructor(){super();Ce(this,$i);Ce(this,Xr);Ce(this,ns);fe(this,ns,t=>{if(!Xc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){H(this,Xr)||this.setEventListener(H(this,ns))}onUnsubscribe(){var t;this.hasListeners()||((t=H(this,Xr))==null||t.call(this),fe(this,Xr,void 0))}setEventListener(t){var n;fe(this,ns,t),(n=H(this,Xr))==null||n.call(this),fe(this,Xr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){H(this,$i)!==t&&(fe(this,$i,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,924 bytes, line 40
40this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof H(this,$i)=="boolean"?H(this,$i):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$i=new WeakMap,Xr=new WeakMap,ns=new WeakMap,U0),p_=new a2,rs,Jr,is,Z0,l2=(Z0=class extends Qc{constructor(){super();Ce(this,rs,!0);Ce(this,Jr);Ce(this,is);fe(this,is,t=>{if(!Xc&&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(){H(this,Jr)||this.setEventListener(H(this,is))}onUnsubscribe(){var t;this.hasListeners()||((t=H(this,Jr))==null||t.call(this),fe(this,Jr,void 0))}setEventListener(t){var n;fe(this,is,t),(n=H(this,Jr))==null||n.call(this),fe(this,Jr,t(this.setOnline.bind(this)))}setOnline(t){H(this,rs)!==t&&(fe(this,rs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return H(this,rs)}},rs=new WeakMap,Jr=new WeakMap,is=new WeakMap,Z0),fc=new l2;function u2(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function c2(e){return Math.min(1e3*2**e,3e4)}function g_(e){return(e??"online")==="online"?fc.isOnline():!0}var y_=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function wh(e){return e instanceof y_}function v_(e){let t=!1,n=0,r=!1,o;const s=u2(),l=_=>{var T;r||(y(new y_(_)),(T=e.abort)==null||T.call(e))},d=()=>{t=!0},h=()=>{t=!1},f=()=>p_.isFocused()&&(e.networkMode==="always"||fc.isOnline())&&e.canRun(),p=()=>g_(e.networkMode)&&e.canRun(),g=_=>{var T;r||(r=!0,(T=e.onSuccess)==null||T.call(e,_),o==null||o(),s.resolve(_))},y=_=>{var T;r||(r=!0,(T=e.onError)==null||T.call(e,_),o==null||o(),s.reject(_))},v=()=>new Promise(_=>{var T;o=w=>{(r||f())&&_(w)},(T=e.onPause)==null||T.call(e)}).then(()=>{var _;o=void 0,r||(_=e.onContinue)==null||_.call(e)}),S=()=>{if(r)return;let _;const T=n===0?e.initialPromise:void 0;try{_=T??e.fn()}catch(w){_=Promise.reject(w)}Promise.resolve(_).then(g).catch(w=>{var A;if(r)return;const b=e.retry??(Xc?0:3),C=e.retryDelay??c2,j=typeof C=="function"?C(n,w):C,N=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,w);if(t||!N){y(w);return}n++,(A=e.onFail)==null||A.call(e,n,w),r2(j).then(()=>f()?void 0:v()).then(()=>{t?y(w):S()})})};return{promise:s,cancel:l,continue:()=>(o==null||o(),s),cancelRetry:d,continueRetry:h,canStart:p,start:()=>(p()?S():v().then(S),s)}}var d2=e=>setTimeout(e,0);function h2(){let e=[],t=0,n=d=>{d()},r=d=>{d()},o=d2;const s=d=>{t?e.push(d):o(()=>{n(d)})},l=()=>{const d=e;e=[],d.length&&o(()=>{r(()=>{d.forEach(h=>{n(h)})})})};return{batch:d=>{let h;t++;try{h=d()}finally{t--,t||l()}return h},batchCalls:d=>(...h)=>{s(()=>{d(...h)})},schedule:s,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{o=d}}}var Tt=h2(),Ui,G0,x_=(G0=class{constructor(){Ce(this,Ui)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),e2(this.gcTime)&&fe(this,Ui,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xc?1/0:5*60*1e3))}clearGcTimeout(){H(this,Ui)&&(clearTimeout(H(this,Ui)),fe(this,Ui,void 0))}},Ui=new WeakMap,G0),os,Zi,on,Gi,xt,nl,Ki,Pn,vr,K0,f2=(K0=class extends x_{constructor(t){super();Ce(this,Pn);Ce(this,os);Ce(this,Zi);Ce(this,on);Ce(this,Gi);Ce(this,xt);Ce(this,nl);Ce(this,Ki);fe(this,Ki,!1),fe(this,nl,t.defaultOptions),this.setOptions(t.options),this.observers=[],fe(this,Gi,t.client),fe(this,on,H(this,Gi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,fe(this,os,p2(this.options)),this.state=t.state??H(this,os),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=H(this,xt))==null?void 0:t.promise}setOptions(t){this.options={...H(this,nl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&H(this,on).remove(this)}setData(t,n){const r=i2(this.state.data,t,this.options);return pt(this,Pn,vr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pt(this,Pn,vr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=H(this,xt))==null?void 0:r.promise;return(o=H(this,xt))==null||o.cancel(t),n?n.then(Sn).catch(Sn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(H(this,os))}isActive(){return this.observers.some(t=>n2(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ep||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 40
40Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Hf(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:!t2(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=H(this,xt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=H(this,xt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),H(this,on).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(H(this,xt)&&(H(this,Ki)?H(this,xt).cancel({revert:!0}):H(this,xt).cancelRetry()),this.scheduleGc()),H(this,on).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,Pn,vr).call(this,{type:"invalidate"})}
vendor: 13,738 bytes, line 40
40fetch(t,n){var f,p,g;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(H(this,xt))return H(this,xt).continueRetry(),H(this,xt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const y=this.observers.find(v=>v.options.queryFn);y&&this.setOptions(y.options)}const r=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(fe(this,Ki,!0),r.signal)})},s=()=>{const y=m_(this.options,n),S=(()=>{const _={client:H(this,Gi),queryKey:this.queryKey,meta:this.meta};return o(_),_})();return fe(this,Ki,!1),this.options.persister?this.options.persister(y,S,this):y(S)},d=(()=>{const y={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:H(this,Gi),state:this.state,fetchFn:s};return o(y),y})();(f=this.options.behavior)==null||f.onFetch(d,this),fe(this,Zi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=d.fetchOptions)==null?void 0:p.meta))&&pt(this,Pn,vr).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta});const h=y=>{var v,S,_,T;wh(y)&&y.silent||pt(this,Pn,vr).call(this,{type:"error",error:y}),wh(y)||((S=(v=H(this,on).config).onError)==null||S.call(v,y,this),(T=(_=H(this,on).config).onSettled)==null||T.call(_,this.state.data,y,this)),this.scheduleGc()};return fe(this,xt,v_({initialPromise:n==null?void 0:n.initialPromise,fn:d.fetchFn,abort:r.abort.bind(r),onSuccess:y=>{var v,S,_,T;if(y===void 0){h(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(w){h(w);return}(S=(v=H(this,on).config).onSuccess)==null||S.call(v,y,this),(T=(_=H(this,on).config).onSettled)==null||T.call(_,y,this.state.error,this),this.scheduleGc()},onError:h,onFail:(y,v)=>{pt(this,Pn,vr).call(this,{type:"failed",failureCount:y,error:v})},onPause:()=>{pt(this,Pn,vr).call(this,{type:"pause"})},onContinue:()=>{pt(this,Pn,vr).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0})),H(this,xt).start()}},os=new WeakMap,Zi=new WeakMap,on=new WeakMap,Gi=new WeakMap,xt=new WeakMap,nl=new WeakMap,Ki=new WeakMap,Pn=new WeakSet,vr=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,...m2(r.data,this.options),fetchMeta:t.meta??null};case"success":return fe(this,Zi,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return wh(o)&&o.revert&&H(this,Zi)?{...H(this,Zi),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),H(this,on).notify({query:this,type:"updated",action:t})})},K0);function m2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:g_(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function p2(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 Yn,q0,g2=(q0=class extends Qc{constructor(t={}){super();Ce(this,Yn);this.config=t,fe(this,Yn,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??jp(o,n);let l=this.get(s);return l||(l=new f2({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(l)),l}add(t){H(this,Yn).has(t.queryHash)||(H(this,Yn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=H(this,Yn).get(t.queryHash);n&&(t.destroy(),n===t&&H(this,Yn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Tt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return H(this,Yn).get(t)}getAll(){return[...H(this,Yn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Fv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Fv(t,r)):n}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yn=new WeakMap,q0),Qn,St,qi,Xn,Hr,Y0,y2=(Y0=class extends x_{constructor(t){super();Ce(this,Xn);Ce(this,Qn);Ce(this,St);Ce(this,qi);this.mutationId=t.mutationId,fe(this,St,t.mutationCache),fe(this,Qn,[]),this.state=t.state||v2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){H(this,Qn).includes(t)||(H(this,Qn).push(t),this.clearGcTimeout(),H(this,St).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){fe(this,Qn,H(this,Qn).filter(n=>n!==t)),this.scheduleGc(),H(this,St).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){H(this,Qn).length||(this.state.status==="pending"?this.scheduleGc():H(this,St).remove(this))}continue(){var t;return((t=H(this,qi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,l,d,h,f,p,g,y,v,S,_,T,w,b,C,j,N,A,I,O;const n=()=>{pt(this,Xn,Hr).call(this,{type:"continue"})};fe(this,qi,v_({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(V,F)=>{pt(this,Xn,Hr).call(this,{type:"failed",failureCount:V,error:F})},onPause:()=>{pt(this,Xn,Hr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>H(this,St).canRun(this)}));const r=this.state.status==="pending",o=!H(this,qi).canStart();try{if(r)n();else{pt(this,Xn,Hr).call(this,{type:"pending",variables:t,isPaused:o}),await((l=(s=H(this,St).config).onMutate)==null?void 0:l.call(s,t,this));const F=await((h=(d=this.options).onMutate)==null?void 0:h.call(d,t));F!==this.state.context&&pt(this,Xn,Hr).call(this,{type:"pending",context:F,variables:t,isPaused:o})}const V=await H(this,qi).start();return await((p=(f=H(this,St).config).onSuccess)==null?void 0:p.call(f,V,t,this.state.context,this)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,V,t,this.state.context)),await((S=(v=H(this,St).config).onSettled)==null?void 0:S.call(v,V,null,this.state.variables,this.state.context,this)),await((T=(_=this.options).onSettled)==null?void 0:T.call(_,V,null,t,this.state.context)),pt(this,Xn,Hr).call(this,{type:"success",data:V}),V}catch(V){try{throw await((b=(w=H(this,St).config).onError)==null?void 0:b.call(w,V,t,this.state.context,this)),await((j=(C=this.options).onError)==null?void 0:j.call(C,V,t,this.state.context)),await((A=(N=H(this,St).config).onSettled)==null?void 0:A.call(N,void 0,V,this.state.variables,this.state.context,this)),await((O=(I=this.options).onSettled)==null?void 0:O.call(I,void 0,V,t,this.state.context)),V}finally{pt(this,Xn,Hr).call(this,{type:"error",error:V})}}finally{H(this,St).runNext(this)}}},Qn=new WeakMap,St=new WeakMap,qi=new WeakMap,Xn=new WeakSet,Hr=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};case"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),Tt.batch(()=>{H(this,Qn).forEach(r=>{r.onMutationUpdate(t)}),H(this,St).notify({mutation:this,type:"updated",action:t})})},Y0);function v2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var br,Tn,rl,Q0,x2=(Q0=class extends Qc{constructor(t={}){super();Ce(this,br);Ce(this,Tn);Ce(this,rl);this.config=t,fe(this,br,new Set),fe(this,Tn,new Map),fe(this,rl,0)}build(t,n,r){const o=new y2({mutationCache:this,mutationId:++Hl(this,rl)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){H(this,br).add(t);const n=su(t);if(typeof n=="string"){const r=H(this,Tn).get(n);r?r.push(t):H(this,Tn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(H(this,br).delete(t)){const n=su(t);if(typeof n=="string"){const r=H(this,Tn).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&H(this,Tn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=su(t);if(typeof n=="string"){const r=H(this,Tn).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=su(t);if(typeof n=="string"){const o=(r=H(this,Tn).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Tt.batch(()=>{H(this,br).forEach(t=>{this.notify({type:"removed",mutation:t})}),H(this,br).clear(),H(this,Tn).clear()})}getAll(){return Array.from(H(this,br))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>zv(n,r))}findAll(t={}){return this.getAll().filter(n=>zv(t,n))}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Tt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Sn))))}},br=new WeakMap,Tn=new WeakMap,rl=new WeakMap,Q0);function su(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Hv(e){return{onFetch:(t,n)=>{var p,g,y,v,S;const r=t.options,o=(y=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:y.direction,s=((v=t.state.data)==null?void 0:v.pages)||[],l=((S=t.state.data)==null?void 0:S.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const f=async()=>{let _=!1;const T=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?_=!0:t.signal.addEventListener("abort",()=>{_=!0}),t.signal)})},w=m_(t.options,t.fetchOptions),b=async(C,j,N)=>{if(_)return Promise.reject();if(j==null&&C.pages.length)return Promise.resolve(C);const I=(()=>{const G={client:t.client,queryKey:t.queryKey,pageParam:j,direction:N?"backward":"forward",meta:t.options.meta};return T(G),G})(),O=await w(I),{maxPages:V}=t.options,F=N?s2:o2;return{pages:F(C.pages,O,V),pageParams:F(C.pageParams,j,V)}};if(o&&s.length){const C=o==="backward",j=C?w2:Wv,N={pages:s,pageParams:l},A=j(r,N);d=await b(N,A,C)}else{const C=e??s.length;do{const j=h===0?l[0]??r.initialPageParam:Wv(r,d);if(h>0&&j==null)break;d=await b(d,j),h++}while(h<C)}return d};t.options.persister?t.fetchFn=()=>{var _,T;return(T=(_=t.options).persister)==null?void 0:T.call(_,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Wv(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 w2(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 Ze,ei,ti,ss,as,ni,ls,us,X0,b2=(X0=class{constructor(e={}){Ce(this,Ze);Ce(this,ei);Ce(this,ti);Ce(this,ss);Ce(this,as);Ce(this,ni);Ce(this,ls);Ce(this,us);fe(this,Ze,e.queryCache||new g2),fe(this,ei,e.mutationCache||new x2),fe(this,ti,e.defaultOptions||{}),fe(this,ss,new Map),fe(this,as,new Map),fe(this,ni,0)}mount(){Hl(this,ni)._++,H(this,ni)===1&&(fe(this,ls,p_.subscribe(async e=>{e&&(await this.resumePausedMutations(),H(this,Ze).onFocus())})),fe(this,us,fc.subscribe(async e=>{e&&(await this.resumePausedMutations(),H(this,Ze).onOnline())})))}unmount(){var e,t;Hl(this,ni)._--,H(this,ni)===0&&((e=H(this,ls))==null||e.call(this),fe(this,ls,void 0),(t=H(this,us))==null||t.call(this),fe(this,us,void 0))}isFetching(e){return H(this,Ze).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return H(this,ei).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=H(this,Ze).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=H(this,Ze).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Hf(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return H(this,Ze).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=H(this,Ze).get(r.queryHash),s=o==null?void 0:o.state.data,l=Jj(t,s);if(l!==void 0)return H(this,Ze).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Tt.batch(()=>H(this,Ze).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=H(this,Ze).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=H(this,Ze);Tt.batch(()=>
40{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=H(this,Ze);return Tt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Tt.batch(()=>H(this,Ze).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Sn).catch(Sn)}invalidateQueries(e,t={}){return Tt.batch(()=>(H(this,Ze).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=Tt.batch(()=>H(this,Ze).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Sn)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Sn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=H(this,Ze).build(this,t);return n.isStaleByTime(Hf(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Sn).catch(Sn)}fetchInfiniteQuery(e){return e.behavior=Hv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Sn).catch(Sn)}ensureInfiniteQueryData(e){return e.behavior=Hv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fc.isOnline()?H(this,ei).resumePausedMutations():Promise.resolve()}getQueryCache(){return H(this,Ze)}getMutationCache(){return H(this,ei)}getDefaultOptions(){return H(this,ti)}setDefaultOptions(e){fe(this,ti,e)}setQueryDefaults(e,t){H(this,ss).set(Za(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...H(this,ss).values()],n={};return t.forEach(r=>{Ga(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){H(this,as).set(Za(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...H(this,as).values()],n={};return t.forEach(r=>{Ga(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...H(this,ti).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=jp(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===Ep&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...H(this,ti).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){H(this,Ze).clear(),H(this,ei).clear()}},Ze=new WeakMap,ei=new WeakMap,ti=new WeakMap,ss=new WeakMap,as=new WeakMap,ni=new WeakMap,ls=new WeakMap,us=new WeakMap,X0),_2=k.createContext(void 0),k2=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(_2.Provider,{value:e,children:t}));/**
41 * @remix-run/router v1.23.0
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */function Ka(){return Ka=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},Ka.apply(this,arguments)}var oi;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(oi||(oi={}));const $v="popstate";function C2(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:l,hash:d}=r.location;return $f("",{pathname:s,search:l,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:mc(o)}return P2(t,n,null,e)}function tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function w_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function S2(){return Math.random().toString(36).substr(2,8)}function Uv(e,t){return{usr:e.state,key:e.key,idx:t}}function $f(e,t,n,r){return n===void 0&&(n=null),Ka({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ts(t):t,{state:n,key:t&&t.key||r||S2()})}function mc(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 Ts(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 P2(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,l=o.history,d=oi.Pop,h=null,f=p();f==null&&(f=0,l.replaceState(Ka({},l.state,{idx:f}),""));function p(){return(l.state||{idx:null}).idx}function g(){d=oi.Pop;let T=p(),w=T==null?null:T-f;f=T,h&&h({action:d,location:_.location,delta:w})}function y(T,w){d=oi.Push;let b=$f(_.location,T,w);f=p()+1;let C=Uv(b,f),j=_.createHref(b);try{l.pushState(C,"",j)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(j)}s&&h&&h({action:d,location:_.location,delta:1})}function v(T,w){d=oi.Replace;let b=$f(_.location,T,w);f=p();let C=Uv(b,f),j=_.createHref(b);l.replaceState(C,"",j),s&&h&&h({action:d,location:_.location,delta:0})}function S(T){let w=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof T=="string"?T:mc(T);
vendor: 2,909 bytes, line 49
49return b=b.replace(/ $/,"%20"),tt(w,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,w)}let _={get action(){return d},get location(){return e(o,l)},listen(T){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener($v,g),h=T,()=>{o.removeEventListener($v,g),h=null}},createHref(T){return t(o,T)},createURL:S,encodeLocation(T){let w=S(T);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:y,replace:v,go(T){return l.go(T)}};return _}var Zv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Zv||(Zv={}));function T2(e,t,n){return n===void 0&&(n="/"),j2(e,t,n,!1)}function j2(e,t,n,r){let o=typeof t=="string"?Ts(t):t,s=Np(o.pathname||"/",n);if(s==null)return null;let l=b_(e);E2(l);let d=null;for(let h=0;d==null&&h<l.length;++h){let f=B2(s);d=F2(l[h],f,r)}return d}function b_(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,l,d)=>{let h={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};h.relativePath.startsWith("/")&&(tt(h.relativePath.startsWith(r),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(r.length));let f=pi([r,h.relativePath]),p=n.concat(h);s.children&&s.children.length>0&&(tt(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),b_(s.children,t,p,f)),!(s.path==null&&!s.index)&&t.push({path:f,score:I2(f,s.index),routesMeta:p})};return e.forEach((s,l)=>{var d;if(s.path===""||!((d=s.path)!=null&&d.includes("?")))o(s,l);else for(let h of __(s.path))o(s,l,h)}),t}function __(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let l=__(r.join("/")),d=[];return d.push(...l.map(h=>h===""?s:[s,h].join("/"))),o&&d.push(...l),d.map(h=>e.startsWith("/")&&h===""?"/":h)}function E2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:D2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const N2=/^:[\w-]+$/,L2=3,M2=2,A2=1,R2=10,O2=-2,Gv=e=>e==="*";function I2(e,t){let n=e.split("/"),r=n.length;return n.some(Gv)&&(r+=O2),t&&(r+=M2),n.filter(o=>!Gv(o)).reduce((o,s)=>o+(N2.test(s)?L2:s===""?A2:R2),r)}function D2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function F2(e,t,n){let{routesMeta:r}=e,o={},s="/",l=[];for(let d=0;d<r.length;++d){let h=r[d],f=d===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",g=Kv({path:h.relativePath,caseSensitive:h.caseSensitive,end:f},p),y=h.route;if(!g&&f&&n&&!r[r.length-1].route.index&&(g=Kv({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},p)),!g)return null;
vendor: 11,464 bytes, lines 49-58
49Object.assign(o,g.params),l.push({params:o,pathname:pi([s,g.pathname]),pathnameBase:$2(pi([s,g.pathnameBase])),route:y}),g.pathnameBase!=="/"&&(s=pi([s,g.pathnameBase]))}return l}function Kv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=z2(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:r.reduce((f,p,g)=>{let{paramName:y,isOptional:v}=p;if(y==="*"){let _=d[g]||"";l=s.slice(0,s.length-_.length).replace(/(.)\/+$/,"$1")}const S=d[g];return v&&!S?f[y]=void 0:f[y]=(S||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function z2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),w_(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,d,h)=>(r.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function B2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return w_(!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 Np(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)||"/"}function V2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ts(e):e;return{pathname:n?n.startsWith("/")?n:H2(n,t):t,search:U2(r),hash:Z2(o)}}function H2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function bh(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 W2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function k_(e,t){let n=W2(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function C_(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ts(e):(o=Ka({},e),tt(!o.pathname||!o.pathname.includes("?"),bh("?","pathname","search",o)),tt(!o.pathname||!o.pathname.includes("#"),bh("#","pathname","hash",o)),tt(!o.search||!o.search.includes("#"),bh("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,d;if(l==null)d=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),g-=1;o.pathname=y.join("/")}d=g>=0?t[g]:"/"}let h=V2(o,d),f=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(f||p)&&(h.pathname+="/"),h}const pi=e=>e.join("/").replace(/\/\/+/g,"/"),$2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Z2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function G2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const S_=["post","put","patch","delete"];new Set(S_);const K2=["get",...S_];new Set(K2);/**
50 * React Router v6.30.1
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */function qa(){return qa=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},qa.apply(this,arguments)}const Lp=k.createContext(null),q2=k.createContext(null),uo=k.createContext(null),Jc=k.createContext(null),co=k.createContext({outlet:null,matches:[],isDataRoute:!1}),P_=k.createContext(null);function Y2(e,t){let{relative:n}=t===void 0?{}:t;ul()||tt(!1);let{basename:r,navigator:o}=k.useContext(uo),{hash:s,pathname:l,search:d}=E_(e,{relative:n}),h=l;return r!=="/"&&(h=l==="/"?r:pi([r,l])),o.createHref({pathname:h,search:d,hash:s})}function ul(){return k.useContext(Jc)!=null}function js(){return ul()||tt(!1),k.useContext(Jc).location}function T_(e){k.useContext(uo).static||k.useLayoutEffect(e)}function j_(){let{isDataRoute:e}=k.useContext(co);return e?uE():Q2()}function Q2(){ul()||tt(!1);let e=k.useContext(Lp),{basename:t,future:n,navigator:r}=k.useContext(uo),{matches:o}=k.useContext(co),{pathname:s}=js(),l=JSON.stringify(k_(o,n.v7_relativeSplatPath)),d=k.useRef(!1);return T_(()=>{d.current=!0}),k.useCallback(function(f,p){if(p===void 0&&(p={}),!d.current)return;if(typeof f=="number"){r.go(f);return}let g=C_(f,JSON.parse(l),s,p.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:pi([t,g.pathname])),(p.replace?r.replace:r.push)(g,p.state,p)},[t,r,l,s,e])}function E_(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(uo),{matches:o}=k.useContext(co),{pathname:s}=js(),l=JSON.stringify(k_(o,r.v7_relativeSplatPath));return k.useMemo(()=>C_(e,JSON.parse(l),s,n==="path"),[e,l,s,n])}function X2(e,t){return J2(e,t)}function J2(e,t,n,r){ul()||tt(!1);let{navigator:o}=k.useContext(uo),{matches:s}=k.useContext(co),l=s[s.length-1],d=l?l.params:{};l&&l.pathname;let h=l?l.pathnameBase:"/";l&&l.route;let f=js(),p;if(t){var g;let T=typeof t=="string"?Ts(t):t;h==="/"||(g=T.pathname)!=null&&g.startsWith(h)||tt(!1),p=T}else p=f;let y=p.pathname||"/",v=y;if(h!=="/"){let T=h.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(T.length).join("/")}let S=T2(e,{pathname:v}),_=iE(S&&S.map(T=>Object.assign({},T,{params:Object.assign({},d,T.params),pathname:pi([h,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?h:pi([h,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),s,n,r);return t&&_?k.createElement(Jc.Provider,{value:{location:qa({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:oi.Pop}},_):_}function eE(){let e=lE(),t=G2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,null)}const tE=k.createElement(eE,null);class nE extends k.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?k.createElement(co.Provider,{value:this.props.routeContext},k.createElement(P_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function rE(e){let{routeContext:t,match:n,children:r}=e,o=k.useContext(Lp);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(co.Provider,{value:t},r)}function iE(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,d=(o=n)==null?void 0:o.errors;if(d!=null){let p=l.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);p>=0||tt(!1),l=l.slice(0,Math.min(l.length,p+1))}let h=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<l.length;p++){let g=l[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=p),g.route.id){let{loaderData:y,errors:v}=n,S=g.route.loader&&y[g.route.id]===void 0&&(!v||v[g.route.id]===void 0);if(g.route.lazy||S){h=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((p,g,y)=>{let v,S=!1,_=null,T=null;n&&(v=d&&g.route.id?d[g.route.id]:void 0,_=g.route.errorElement||tE,h&&(f<0&&y===0?(S=!0,T=null):f===y&&(S=!0,T=g.route.hydrateFallbackElement||null)));let w=t.concat(l.slice(0,y+1)),b=()=>{let C;return v?C=_:S?C=T:g.route.Component?C=k.createElement(g.route.Component,null):g.route.element?C=g.route.element:C=p,k.createElement(rE,{match:g,routeContext:{outlet:p,matches:w,isDataRoute:n!=null},children:C})};return n&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?k.createElement(nE,{location:n.location,revalidation:n.revalidation,component:_,error:v,children:b(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):b()},null)}var N_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(N_||{}),pc=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}(pc||{});function oE(e){let t=k.useContext(Lp);return t||tt(!1),t}function sE(e){let t=k.useContext(q2);return t||tt(!1),t}function aE(e){let t=k.useContext(co);return t||tt(!1),t}function L_(e){let t=aE(),n=t.matches[t.matches.length-1];return n.route.id||tt(!1),n.route.id}function lE(){var e;let t=k.useContext(P_),n=sE(pc.UseRouteError),r=L_(pc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function uE(){let{router:e}=oE(N_.UseNavigateStable),t=L_(pc.UseNavigateStable),n=k.useRef(!1);return T_(()=>{n.current=!0}),k.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,qa({fromRouteId:t},s)))},[e,t])}function cE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function vt(e){tt(!1)}function dE(e){let{basename:t="/",children:n=null,location:r,navigationType:o=oi.Pop,navigator:s,static:l=!1,future:d}=e;ul()&&tt(!1);let h=t.replace(/^\/*/,"/"),f=k.useMemo(()=>({basename:h,navigator:s,static:l,future:qa({v7_relativeSplatPath:!1},d)}),[h,d,s,l]);typeof r=="string"&&(r=Ts(r));let{pathname:p="/",search:g="",hash:y="",state:v=null,key:S="default"}=r,_=k.useMemo(()=>{let T=Np(p,h);return T==null?null:{location:{pathname:T,search:g,hash:y,state:v,key:S},navigationType:o}},[h,p,g,y,v,S,o]);return _==null?null:k.createElement(uo.Provider,{value:f},k.createElement(Jc.Provider,{children:n,value:_}))}function hE(e){let{children:t,location:n}=e;return X2(Uf(t),n)}new Promise(()=>{});function Uf(e,t){t===void 0&&(t=[]);let n=[];
58return k.Children.forEach(e,(r,o)=>{if(!k.isValidElement(r))return;let s=[...t,o];if(r.type===k.Fragment){n.push.apply(n,Uf(r.props.children,s));return}r.type!==vt&&tt(!1),!r.props.index||!r.props.children||tt(!1);let l={id:r.props.id||s.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=Uf(r.props.children,s)),n.push(l)}),n}/**
59 * React Router DOM v6.30.1
60 *
61 * Copyright (c) Remix Software Inc.
62 *
63 * This source code is licensed under the MIT license found in the
64 * LICENSE.md file in the root directory of this source tree.
65 *
66 * @license MIT
67 */function Zf(){return Zf=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},Zf.apply(this,arguments)}function fE(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function mE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pE(e,t){return e.button===0&&(!t||t==="_self")&&!mE(e)}const gE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],yE="6";try{window.__reactRouterVersion=yE}catch{}const vE="startTransition",qv=Dm[vE];function xE(e){let{basename:t,children:n,future:r,window:o}=e,s=k.useRef();s.current==null&&(s.current=C2({window:o,v5Compat:!0}));let l=s.current,[d,h]=k.useState({action:l.action,location:l.location}),{v7_startTransition:f}=r||{},p=k.useCallback(g=>{f&&qv?qv(()=>h(g)):h(g)},[h,f]);return k.useLayoutEffect(()=>l.listen(p),[l,p]),k.useEffect(()=>cE(r),[r]),k.createElement(dE,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:l,future:r})}const wE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,M_=k.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:l,state:d,target:h,to:f,preventScrollReset:p,viewTransition:g}=t,y=fE(t,gE),{basename:v}=k.useContext(uo),S,_=!1;if(typeof f=="string"&&bE.test(f)&&(S=f,wE))try{let C=new URL(window.location.href),j=f.startsWith("//")?new URL(C.protocol+f):new URL(f),N=Np(j.pathname,v);j.origin===C.origin&&N!=null?f=N+j.search+j.hash:_=!0}catch{}let T=Y2(f,{relative:o}),w=_E(f,{replace:l,state:d,target:h,preventScrollReset:p,relative:o,viewTransition:g});function b(C){r&&r(C),C.defaultPrevented||w(C)}return k.createElement("a",Zf({},y,{href:S||T,onClick:_||s?r:b,ref:n,target:h}))});var Yv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Yv||(Yv={}));var Qv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Qv||(Qv={}));function _E(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:l,viewTransition:d}=t===void 0?{}:t,h=j_(),f=js(),p=E_(e,{relative:l});return k.useCallback(g=>{if(pE(g,n)){g.preventDefault();let y=r!==void 0?r:mc(f)===mc(p);h(e,{replace:y,state:o,preventScrollReset:s,relative:l,viewTransition:d})}},[f,h,p,r,o,n,e,s,l,d])}var Xv=["light","dark"],kE="(prefers-color-scheme: dark)",CE=k.createContext(void 0),SE={setTheme:e=>{},themes:[]},PE=()=>{var e;return(e=k.useContext(CE))!=null?e:SE};k.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:l,attrs:d,nonce:h})=>{let f=s==="system",p=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${d.map(S=>`'${S}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,g=o?Xv.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",y=(S,_=!1,T=!0)=>{let w=l?l[S]:S,b=_?S+"|| ''":`'${w}'`,C="";return o&&T&&!_&&Xv.includes(S)&&(C+=`d.style.colorScheme = '${S}';`),n==="class"?_||w?C+=`c.add(${b})`:C+="null":w&&(C+=`d[s](n,${b})`),C},v=e?`!function(){${p}${y(e)}}()`:r?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${kE}',m=window.matchMedia(t);if(m.media!==t||m.matches){${y("dark")}}else{${y("light")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:""}${y(l?"x[e]":"e",!0)}}${f?"":"else{"+y(s,!1,!1)+"}"}${g}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${l?`var x=${JSON.stringify(l)};`:""}${y(l?"x[e]":"e",!0)}}else{${y(s,!1,!1)};}${g}}catch(t){}}();`;return k.createElement("script",{nonce:h,dangerouslySetInnerHTML:{__html:v}})});var TE=e=>{switch(e){case"success":return NE;case"info":return ME;case"warning":return LE;case"error":return AE;default:return null}},jE=Array(12).fill(0),EE=({visible:e,className:t})=>K.createElement("div",{className:["sonner-loading-wrapper",t].filter(
67Boolean).join(" "),"data-visible":e},K.createElement("div",{className:"sonner-spinner"},jE.map((n,r)=>K.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),NE=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),LE=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ME=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),AE=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),RE=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},K.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),OE=()=>{let[e,t]=K.useState(document.hidden);return K.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Gf=1,IE=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Gf++,s=this.toasts.find(d=>d.id===o),l=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(d=>d.id===o?(this.publish({...d,...e,id:o,title:n}),{...d,...e,id:o,dismissible:l,title:n}):d):this.addToast({title:n,...r,dismissible:l,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
67this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,l=r.then(async h=>{if(s=["resolve",h],K.isValidElement(h))o=!1,this.create({id:n,type:"default",message:h});else if(FE(h)&&!h.ok){o=!1;let f=typeof t.error=="function"?await t.error(`HTTP error! status: ${h.status}`):t.error,p=typeof t.description=="function"?await t.description(`HTTP error! status: ${h.status}`):t.description;this.create({id:n,type:"error",message:f,description:p})}else if(t.success!==void 0){o=!1;let f=typeof t.success=="function"?await t.success(h):t.success,p=typeof t.description=="function"?await t.description(h):t.description;this.create({id:n,type:"success",message:f,description:p})}}).catch(async h=>{if(s=["reject",h],t.error!==void 0){o=!1;let f=typeof t.error=="function"?await t.error(h):t.error,p=typeof t.description=="function"?await t.description(h):t.description;this.create({id:n,type:"error",message:f,description:p})}}).finally(()=>{var h;o&&(this.dismiss(n),n=void 0),(h=t.finally)==null||h.call(t)}),d=()=>new Promise((h,f)=>l.then(()=>s[0]==="reject"?f(s[1]):h(s[1])).catch(f));return typeof n!="string"&&typeof n!="number"?{unwrap:d}:Object.assign(n,{unwrap:d})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Gf++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Rt=new IE,DE=(e,t)=>{let n=(t==null?void 0:t.id)||Gf++;return Rt.addToast({title:e,...t,id:n}),n},FE=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",zE=DE,BE=()=>Rt.toasts,VE=()=>Rt.getActiveToasts(),_h=Object.assign(zE,{success:Rt.success,info:Rt.info,warning:Rt.warning,error:Rt.error,custom:Rt.custom,message:Rt.message,promise:Rt.promise,dismiss:Rt.dismiss,loading:Rt.loading},{getHistory:BE,getToasts:VE});function HE(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}HE(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
67left: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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
67:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px)) translate(var(--swipe-amount-x, 0px));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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
67--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-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-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],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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%)}
68`);function au(e){return e.label!==void 0}var WE=3,$E="32px",UE="16px",Jv=4e3,ZE=356,GE=14,KE=20,qE=200;function bn(...e){return e.filter(Boolean).join(" ")}function YE(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var QE=e=>{var t,n,r,o,s,l,d,h,f,p,g;let{invert:y,toast:v,unstyled:S,interacting:_,setHeights:T,visibleToasts:w,heights:b,index:C,toasts:j,expanded:N,removeToast:A,defaultRichColors:I,closeButton:O,style:V,cancelButtonStyle:F,actionButtonStyle:G,className:$="",descriptionClassName:ie="",duration:U,position:ae,gap:q,loadingIcon:ue,expandByDefault:M,classNames:B,icons:z,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:X}=e,[oe,ne]=K.useState(null),[ce,se]=K.useState(null),[ge,_t]=K.useState(!1),[gn,yn]=K.useState(!1),[Xt,Jt]=K.useState(!1),[en,mo]=K.useState(!1),[po,Pi]=K.useState(!1),[Ti,Dn]=K.useState(0),[Rr,Is]=K.useState(0),cr=K.useRef(v.duration||U||Jv),Ds=K.useRef(null),Fn=K.useRef(null),gd=C===0,yd=C+1<=w,mt=v.type,dr=v.dismissible!==!1,xl=v.className||"",vd=v.descriptionClassName||"",ji=K.useMemo(()=>b.findIndex(he=>he.toastId===v.id)||0,[b,v.id]),wl=K.useMemo(()=>{var he;return(he=v.closeButton)!=null?he:O},[v.closeButton,O]),bl=K.useMemo(()=>v.duration||U||Jv,[v.duration,U]),go=K.useRef(0),zn=K.useRef(0),Fs=K.useRef(0),Or=K.useRef(null),[Ei,xd]=ae.split("-"),_l=K.useMemo(()=>b.reduce((he,Se,Me)=>Me>=ji?he:he+Se.height,0),[b,ji]),zs=OE(),kl=v.invert||y,yo=mt==="loading";zn.current=K.useMemo(()=>ji*q+_l,[ji,_l]),K.useEffect(()=>{cr.current=bl},[bl]),K.useEffect(()=>{_t(!0)},[]),K.useEffect(()=>{let he=Fn.current;if(he){let Se=he.getBoundingClientRect().height;return Is(Se),T(Me=>[{toastId:v.id,height:Se,position:v.position},...Me]),()=>T(Me=>Me.filter(Ht=>Ht.toastId!==v.id))}},[T,v.id]),K.useLayoutEffect(()=>{if(!ge)return;let he=Fn.current,Se=he.style.height;he.style.height="auto";let Me=he.getBoundingClientRect().height;he.style.height=Se,Is(Me),T(Ht=>Ht.find(kt=>kt.toastId===v.id)?Ht.map(kt=>kt.toastId===v.id?{...kt,height:Me}:kt):[{toastId:v.id,height:Me,position:v.position},...Ht])},[ge,v.title,v.description,T,v.id]);let Bn=K.useCallback(()=>{yn(!0),Dn(zn.current),T(he=>he.filter(Se=>Se.toastId!==v.id)),setTimeout(()=>{A(v)},qE)},[v,A,T,zn]);K.useEffect(()=>{if(v.promise&&mt==="loading"||v.duration===1/0||v.type==="loading")return;let he;return N||_||X&&zs?(()=>{if(Fs.current<go.current){let Se=new Date().getTime()-go.current;cr.current=cr.current-Se}
68Fs.current=new Date().getTime()})():cr.current!==1/0&&(go.current=new Date().getTime(),he=setTimeout(()=>{var Se;(Se=v.onAutoClose)==null||Se.call(v,v),Bn()},cr.current)),()=>clearTimeout(he)},[N,_,v,mt,X,zs,Bn]),K.useEffect(()=>{v.delete&&Bn()},[Bn,v.delete]);function wd(){var he,Se,Me;return z!=null&&z.loading?K.createElement("div",{className:bn(B==null?void 0:B.loader,(he=v==null?void 0:v.classNames)==null?void 0:he.loader,"sonner-loader"),"data-visible":mt==="loading"},z.loading):ue?K.createElement("div",{className:bn(B==null?void 0:B.loader,(Se=v==null?void 0:v.classNames)==null?void 0:Se.loader,"sonner-loader"),"data-visible":mt==="loading"},ue):K.createElement(EE,{className:bn(B==null?void 0:B.loader,(Me=v==null?void 0:v.classNames)==null?void 0:Me.loader),visible:mt==="loading"})}return K.createElement("li",{tabIndex:0,ref:Fn,className:bn($,xl,B==null?void 0:B.toast,(t=v==null?void 0:v.classNames)==null?void 0:t.toast,B==null?void 0:B.default,B==null?void 0:B[mt],(n=v==null?void 0:v.classNames)==null?void 0:n[mt]),"data-sonner-toast":"","data-rich-colors":(r=v.richColors)!=null?r:I,"data-styled":!(v.jsx||v.unstyled||S),"data-mounted":ge,"data-promise":!!v.promise,"data-swiped":po,"data-removed":gn,"data-visible":yd,"data-y-position":Ei,"data-x-position":xd,"data-index":C,"data-front":gd,"data-swiping":Xt,"data-dismissible":dr,"data-type":mt,"data-invert":kl,"data-swipe-out":en,"data-swipe-direction":ce,"data-expanded":!!(N||M&&ge),style:{"--index":C,"--toasts-before":C,"--z-index":j.length-C,"--offset":`${gn?Ti:zn.current}px`,"--initial-height":M?"auto":`${Rr}px`,...V,...v.style},onDragEnd:()=>{Jt(!1),ne(null),Or.current=null},onPointerDown:he=>{yo||!dr||(Ds.current=new Date,Dn(zn.current),he.target.setPointerCapture(he.pointerId),he.target.tagName!=="BUTTON"&&(Jt(!0),Or.current={x:he.clientX,y:he.clientY}))},onPointerUp:()=>{var he,Se,Me,Ht;if(en||!dr)return;Or.current=null;let kt=Number(((he=Fn.current)==null?void 0:he.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Vn=Number(((Se=Fn.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),hr=new Date().getTime()-((Me=Ds.current)==null?void 0:Me.getTime()),Wt=oe==="x"?kt:Vn,Hn=Math.abs(Wt)/hr;if(Math.abs(Wt)>=KE||Hn>.11){Dn(zn.current),(Ht=v.onDismiss)==null||Ht.call(v,v),se(oe==="x"?kt>0?"right":"left":Vn>0?"down":"up"),Bn(),mo(!0),Pi(!1);return}Jt(!1),ne(null)},onPointerMove:he=>{var Se,Me,Ht,kt;if(!Or.current||!dr||((Se=window.getSelection())==null?void 0:Se.toString().length)>0)return;let Vn=he.clientY-Or.current.y,hr=he.clientX-Or.current.x,Wt=(Me=e.swipeDirections)!=null?Me:YE(ae);!oe&&(Math.abs(hr)>1||Math.abs(Vn)>1)&&ne(Math.abs(hr)>Math.abs(Vn)?"x":"y");let Hn={x:0,y:0};oe==="y"?(Wt.includes("top")||Wt.includes("bottom"))&&(Wt.includes("top")&&Vn<0||Wt.includes("bottom")&&Vn>0)&&(Hn.y=Vn):oe==="x"&&(Wt.includes("left")||Wt.includes("right"))&&(Wt.includes("left")&&hr<0||Wt.includes("right")&&hr>0)&&(Hn.x=hr),(Math.abs(Hn.x)>0||Math.abs(Hn.y)>0)&&Pi(!0),(Ht=Fn.current)==null||Ht.style.setProperty("--swipe-amount-x",`${Hn.x}px`),(kt=Fn.current)==null||kt.style.setProperty("--swipe-amount-y",`${Hn.y}px`)}},wl&&!v.jsx?K.createElement("button",{"aria-label":Y,"data-disabled":yo,"data-close-button":!0,onClick:yo||!dr?()=>{}:()=>{var he;Bn(),(he=v.onDismiss)==null||he.call(v,v)},className:bn(B==null?void 0:B.closeButton,(o=v==null?void 0:v.classNames)==null?void 0:o.closeButton)},(s=z==null?void 0:z.close)!=null?s:RE):null,v.jsx||k.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:K.createElement(K.Fragment,null,mt||v.icon||v.promise?K.createElement("div",{"data-icon":"",className:bn(B==null?void 0:B.icon,(l=v==null?void 0:v.classNames)==null?void 0:l.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||wd():null,v.type!=="loading"?v.icon||(z==null?void 0:z[mt])||TE(mt):null):null,K.createElement("div",{"data-content":"",className:bn(B==null?void 0:B.content,(d=v==null?void 0:v.classNames)==null?void 0:d.content)},K.createElement("div",{"data-title":"",className:bn(B==null?void 0:B.title,(h=v==null?void 0:v.classNames)==null?void 0:h.title)}
68,typeof v.title=="function"?v.title():v.title),v.description?K.createElement("div",{"data-description":"",className:bn(ie,vd,B==null?void 0:B.description,(f=v==null?void 0:v.classNames)==null?void 0:f.description)},typeof v.description=="function"?v.description():v.description):null),k.isValidElement(v.cancel)?v.cancel:v.cancel&&au(v.cancel)?K.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||F,onClick:he=>{var Se,Me;au(v.cancel)&&dr&&((Me=(Se=v.cancel).onClick)==null||Me.call(Se,he),Bn())},className:bn(B==null?void 0:B.cancelButton,(p=v==null?void 0:v.classNames)==null?void 0:p.cancelButton)},v.cancel.label):null,k.isValidElement(v.action)?v.action:v.action&&au(v.action)?K.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||G,onClick:he=>{var Se,Me;au(v.action)&&((Me=(Se=v.action).onClick)==null||Me.call(Se,he),!he.defaultPrevented&&Bn())},className:bn(B==null?void 0:B.actionButton,(g=v==null?void 0:v.classNames)==null?void 0:g.actionButton)},v.action.label):null))};function ex(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function XE(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,l=s?"--mobile-offset":"--offset",d=s?UE:$E;function h(f){["top","right","bottom","left"].forEach(p=>{n[`${l}-${p}`]=typeof f=="number"?`${f}px`:f})}typeof r=="number"||typeof r=="string"?h(r):typeof r=="object"?["top","right","bottom","left"].forEach(f=>{r[f]===void 0?n[`${l}-${f}`]=d:n[`${l}-${f}`]=typeof r[f]=="number"?`${r[f]}px`:r[f]}):h(d)}),n}var JE=k.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:l,className:d,offset:h,mobileOffset:f,theme:p="light",richColors:g,duration:y,style:v,visibleToasts:S=WE,toastOptions:_,dir:T=ex(),gap:w=GE,loadingIcon:b,icons:C,containerAriaLabel:j="Notifications",pauseWhenPageIsHidden:N}=e,[A,I]=K.useState([]),O=K.useMemo(()=>Array.from(new Set([r].concat(A.filter(X=>X.position).map(X=>X.position)))),[A,r]),[V,F]=K.useState([]),[G,$]=K.useState(!1),[ie,U]=K.useState(!1),[ae,q]=K.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ue=K.useRef(null),M=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=K.useRef(null),z=K.useRef(!1),Y=K.useCallback(X=>{I(oe=>{var ne;return(ne=oe.find(ce=>ce.id===X.id))!=null&&ne.delete||Rt.dismiss(X.id),oe.filter(({id:ce})=>ce!==X.id)})},[]);return K.useEffect(()=>Rt.subscribe(X=>{if(X.dismiss){I(oe=>oe.map(ne=>ne.id===X.id?{...ne,delete:!0}:ne));return}setTimeout(()=>{d_.flushSync(()=>{I(oe=>{let ne=oe.findIndex(ce=>ce.id===X.id);return ne!==-1?[...oe.slice(0,ne),{...oe[ne],...X},...oe.slice(ne+1)]:[X,...oe]})})})}),[]),K.useEffect(()=>{if(p!=="system"){q(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window>"u")return;let X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:oe})=>{q(oe?"dark":"light")})}catch{X.addListener(({matches:ne})=>{try{q(ne?"dark":"light")}catch(ce){console.error(ce)}})}},[p]),K.useEffect(()=>{A.length<=1&&$(!1)},[A]),K.useEffect(()=>{let X=oe=>{var ne,ce;o.every(se=>oe[se]||oe.code===se)&&($(!0),(ne=ue.current)==null||ne.focus()),oe.code==="Escape"&&(document.activeElement===ue.current||(ce=ue.current)!=null&&ce.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[o]),K.useEffect(()=>{if(ue.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,z.current=!1)}},[ue.current]),K.createElement("section",{ref:t,"aria-label":`${j} ${M}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},O.map((X,oe)=>{var ne;let[ce,se]=X.split("-");return A.length?K.createElement("ol",{key:X,dir:T==="auto"?ex():T,tabIndex:-1,ref:ue,className:d,"data-sonner-toaster":!0,"data-theme":ae,"data-y-position":ce,"data-lifted":G&&A.length>1&&!s,"data-x-position":se,style:{"--front-toast-height":`${((ne=V[0])==null?void 0:ne.height)||0}px`,"--width":`${ZE}px`,"--gap":`${w}px`,...v,...XE(h,f)},onBlur:ge=>{z.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(z.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||z.current||(z.current=!0,B.current=ge.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{ie||$(!1)},onDragEnd:()=>$(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||U(!0)},onPointerUp:()=>U(!1)},A.filter(ge=>!ge.position&&oe===0||ge.position===X).map((ge,_t)=>{var gn,yn;return K.createElement(QE,{key:ge.id,icons:C,index:_t,toast:ge,defaultRichColors:g,duration:(gn=_==null?void 0:_.duration)!=null?gn:y,className:_==null?void 0:_.className,descriptionClassName:_==null?void 0:_.descriptionClassName,invert:n,visibleToasts:S,closeButton:(yn=_==null?void 0:_.closeButton)!=null?yn:l,interacting:ie,position:X,style:_==null?void 0:_.style,unstyled:_==null?void 0:_.unstyled,classNames:_==null?void 0:_.classNames,cancelButtonStyle:_==null?void 0:_.cancelButtonStyle,actionButtonStyle:_==null?void 0:_.actionButtonStyle,removeToast:Y,toasts:A.filter(Xt=>Xt.position==ge.position),heights:V.filter(Xt=>Xt.position==ge.position),setHeights:F,expandByDefault:s,gap:w,loadingIcon:b,expanded:G,pauseWhenPageIsHidden:N,swipeDirections:e.swipeDirections})})):null}))});const eN=({...e})=>{const{theme:t="system"}=PE();return u.jsx(JE,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},tN=1,nN=1e6;let kh=0;function rN(){return kh=(kh+1)%Number.MAX_SAFE_INTEGER,kh.toString()}const Ch=new Map,tx=e=>{if(Ch.has(e))return;const t=setTimeout(()=>{Ch.delete(e),Ca({type:"REMOVE_TOAST",toastId:e})},nN);Ch.set(e,t)},iN=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,tN)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
68return n?tx(n):e.toasts.forEach(r=>{tx(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Mu=[];let Au={toasts:[]};function Ca(e){Au=iN(Au,e),Mu.forEach(t=>{t(Au)})}function oN({...e}){const t=rN(),n=o=>Ca({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Ca({type:"DISMISS_TOAST",toastId:t});return Ca({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function sN(){const[e,t]=k.useState(Au);return k.useEffect(()=>(Mu.push(t),()=>{const n=Mu.indexOf(t);n>-1&&Mu.splice(n,1)}),[e]),{...e,toast:oN,dismiss:n=>Ca({type:"DISMISS_TOAST",toastId:n})}}function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function nx(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function A_(...e){return t=>{let n=!1;const r=e.map(o=>{const s=nx(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():nx(e[o],null)}}}}function mn(...e){return k.useCallback(A_(...e),e)}function Es(e,t=[]){let n=[];function r(s,l){const d=k.createContext(l),h=n.length;n=[...n,l];const f=g=>{var w;const{scope:y,children:v,...S}=g,_=((w=y==null?void 0:y[e])==null?void 0:w[h])||d,T=k.useMemo(()=>S,Object.values(S));return u.jsx(_.Provider,{value:T,children:v})};f.displayName=s+"Provider";function p(g,y){var _;const v=((_=y==null?void 0:y[e])==null?void 0:_[h])||d,S=k.useContext(v);if(S)return S;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[f,p]}const o=()=>{const s=n.map(l=>k.createContext(l));return function(d){const h=(d==null?void 0:d[e])||s;return k.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])}};return o.scopeName=e,[r,aN(o,...t)]}function aN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const l=r.reduce((d,{useScope:h,scopeName:f})=>{const g=h(s)[`__scope${f}`];return{...d,...g}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function gc(e){const t=uN(e),n=k.forwardRef((r,o)=>{const{children:s,...l}=r,d=k.Children.toArray(s),h=d.find(dN);if(h){const f=h.props.children,p=d.map(g=>g===h?k.Children.count(f)>1?k.Children.only(null):k.isValidElement(f)?f.props.children:null:g);return u.jsx(t,{...l,ref:o,children:k.isValidElement(f)?k.cloneElement(f,void 0,p):null})}return u.jsx(t,{...l,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var lN=gc("Slot");function uN(e){const t=k.forwardRef((n,r)=>{const{children:o,...s}=n;if(k.isValidElement(o)){const l=fN(o),d=hN(s,o.props);return o.type!==k.Fragment&&(d.ref=r?A_(r,l):l),k.cloneElement(o,d)}return k.Children.count(o)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var R_=Symbol("radix.slottable");function cN(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=R_,t}function dN(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===R_}function hN(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...d)=>{const h=s(...d);return o(...d),h}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function fN(e){var r,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function O_(e){const t=e+"CollectionProvider",[n,r]=Es(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:T,children:w}=_,b=K.useRef(null),C=K.useRef(new Map).current;return u.jsx(o,{scope:T,itemMap:C,collectionRef:b,children:w})};l.displayName=t;const d=e+"CollectionSlot",h=gc(d),f=K.forwardRef((_,T)=>{const{scope:w,children:b}=_,C=s(d,w),j=mn(T,C.collectionRef);return u.jsx(h,{ref:j,children:b})});f.displayName=d;const p=e+"CollectionItemSlot",g="data-radix-collection-item",y=gc(p),v=K.forwardRef((_,T)=>{const{scope:w,children:b,...C}=_,j=K.useRef(null),N=mn(T,j),A=s(p,w);return K.useEffect(()=>(A.itemMap.set(j,{ref:j,...C}),()=>void A.itemMap.delete(j))),u.jsx(y,{[g]:"",ref:N,children:b})});v.displayName=p;function S(_){const T=s(e+"CollectionConsumer",_);return K.useCallback(()=>{const b=T.collectionRef.current;if(!b)return[];const C=Array.from(b.querySelectorAll(`[${g}]`));return Array.from(T.itemMap.values()).sort((A,I)=>C.indexOf(A.ref.current)-C.indexOf(I.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:l,Slot:f,ItemSlot:v},S,r]}var mN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ye=mN.reduce((e,t)=>
vendor: 8,406 bytes, line 68
68{const n=gc(`Primitive.${t}`),r=k.forwardRef((o,s)=>{const{asChild:l,...d}=o,h=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(h,{...d,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function I_(e,t){e&&Ps.flushSync(()=>e.dispatchEvent(t))}function Er(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function pN(e,t=globalThis==null?void 0:globalThis.document){const n=Er(e);k.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var gN="DismissableLayer",Kf="dismissableLayer.update",yN="dismissableLayer.pointerDownOutside",vN="dismissableLayer.focusOutside",rx,D_=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mp=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:d,...h}=e,f=k.useContext(D_),[p,g]=k.useState(null),y=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=k.useState({}),S=mn(t,I=>g(I)),_=Array.from(f.layers),[T]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=_.indexOf(T),b=p?_.indexOf(p):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,j=b>=w,N=wN(I=>{const O=I.target,V=[...f.branches].some(F=>F.contains(O));!j||V||(o==null||o(I),l==null||l(I),I.defaultPrevented||d==null||d())},y),A=bN(I=>{const O=I.target;[...f.branches].some(F=>F.contains(O))||(s==null||s(I),l==null||l(I),I.defaultPrevented||d==null||d())},y);return pN(I=>{b===f.layers.size-1&&(r==null||r(I),!I.defaultPrevented&&d&&(I.preventDefault(),d()))},y),k.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(rx=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),ix(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=rx)}},[p,y,n,f]),k.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),ix())},[p,f]),k.useEffect(()=>{const I=()=>v({});return document.addEventListener(Kf,I),()=>document.removeEventListener(Kf,I)},[]),u.jsx(Ye.div,{...h,ref:S,style:{pointerEvents:C?j?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,N.onPointerDownCapture)})});Mp.displayName=gN;var xN="DismissableLayerBranch",F_=k.forwardRef((e,t)=>{const n=k.useContext(D_),r=k.useRef(null),o=mn(t,r);return k.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),u.jsx(Ye.div,{...e,ref:o})});F_.displayName=xN;function wN(e,t=globalThis==null?void 0:globalThis.document){const n=Er(e),r=k.useRef(!1),o=k.useRef(()=>{});return k.useEffect(()=>{const s=d=>{if(d.target&&!r.current){let h=function(){z_(yN,n,f,{discrete:!0})};const f={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=h,t.addEventListener("click",o.current,{once:!0})):h()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function bN(e,t=globalThis==null?void 0:globalThis.document){const n=Er(e),r=k.useRef(!1);return k.useEffect(()=>{const o=s=>{s.target&&!r.current&&z_(vN,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ix(){const e=new CustomEvent(Kf);document.dispatchEvent(e)}function z_(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?I_(o,s):o.dispatchEvent(s)}var _N=Mp,kN=F_,Nr=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},CN="Portal",B_=k.forwardRef((e,t)=>{var d;const{container:n,...r}=e,[o,s]=k.useState(!1);Nr(()=>s(!0),[]);const l=n||o&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return l?d_.createPortal(u.jsx(Ye.div,{...r,ref:t}),l):null});B_.displayName=CN;function SN(e,t){return k.useReducer((n,r)=>t[n][r]??n,e)}var ed=e=>{const{present:t,children:n}=e,r=PN(t),o=typeof n=="function"?n({present:r.isPresent}):k.Children.only(n),s=mn(r.ref,TN(o));return typeof n=="function"||r.isPresent?k.cloneElement(o,{ref:s}):null};ed.displayName="Presence";function PN(e){const[t,n]=k.useState(),r=k.useRef(null),o=k.useRef(e),s=k.useRef("none"),l=e?"mounted":"unmounted",[d,h]=SN(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const f=lu(r.current);s.current=d==="mounted"?f:"none"},[d]),Nr(()=>{const f=r.current,p=o.current;if(p!==e){const y=s.current,v=lu(f);e?h("MOUNT"):v==="none"||(f==null?void 0:f.display)==="none"?h("UNMOUNT"):h(p&&y!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),Nr(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,g=v=>{const _=lu(r.current).includes(v.animationName);if(v.target===t&&_&&(h("ANIMATION_END"),!o.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},y=v=>{v.target===t&&(s.current=lu(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:k.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function lu(e){return(e==null?void 0:e.animationName)||"none"}function TN(e){var r,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var jN=Dm[" useInsertionEffect ".trim().toString()]||Nr;function Ap({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,l]=EN({defaultProp:t,onChange:n}),d=e!==void 0,h=d?e:o;{const p=k.useRef(e!==void 0);k.useEffect(()=>{const g=p.current;g!==d&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${d?"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.`),p.current=d},[d,r])}const f=k.useCallback(p=>{var g;if(d){const y=NN(p)?p(e):p;y!==e&&((g=l.current)==null||g.call(l,y))}else s(p)},[d,e,s,l]);return[h,f]}function EN({defaultProp:e,onChange:t}){const[n,r]=k.useState(e),o=k.useRef(n),s=k.useRef(t);return jN(()=>{s.current=t},[t]),k.useEffect(()=>{var l;o.current!==n&&((l=s.current)==null||l.call(s,n),o.current=n)},[n,o]),[n,r,s]}function NN(e){return typeof e=="function"}var LN=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"}),MN="VisuallyHidden",td=k.forwardRef((e,t)=>u.jsx(Ye.span,{...e,ref:t,style:{...LN,...e.style}}));td.displayName=MN;var AN=td,Rp="ToastProvider",[Op,RN,ON]=O_("Toast"),[V_,LF]=Es("Toast",[ON]),[IN,nd]=V_(Rp),H_=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:l}=e,[d,h]=k.useState(null),[f,p]=k.useState(0),g=k.useRef(!1),y=k.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Rp}\`. Expected non-empty \`string\`.`),u.jsx(Op.Provider,{scope:t,children:u.jsx(IN,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:f,viewport:d,onViewportChange:h,onToastAdd:k.useCallback(()=>p(v=>v+1),[]),onToastRemove:k.useCallback(()=>p(v=>
68v-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:y,children:l})})};H_.displayName=Rp;var W_="ToastViewport",DN=["F8"],qf="toast.viewportPause",Yf="toast.viewportResume",$_=k.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=DN,label:o="Notifications ({hotkey})",...s}=e,l=nd(W_,n),d=RN(n),h=k.useRef(null),f=k.useRef(null),p=k.useRef(null),g=k.useRef(null),y=mn(t,g,l.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=l.toastCount>0;k.useEffect(()=>{const T=w=>{var C;r.length!==0&&r.every(j=>w[j]||w.code===j)&&((C=g.current)==null||C.focus())};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[r]),k.useEffect(()=>{const T=h.current,w=g.current;if(S&&T&&w){const b=()=>{if(!l.isClosePausedRef.current){const A=new CustomEvent(qf);w.dispatchEvent(A),l.isClosePausedRef.current=!0}},C=()=>{if(l.isClosePausedRef.current){const A=new CustomEvent(Yf);w.dispatchEvent(A),l.isClosePausedRef.current=!1}},j=A=>{!T.contains(A.relatedTarget)&&C()},N=()=>{T.contains(document.activeElement)||C()};return T.addEventListener("focusin",b),T.addEventListener("focusout",j),T.addEventListener("pointermove",b),T.addEventListener("pointerleave",N),window.addEventListener("blur",b),window.addEventListener("focus",C),()=>{T.removeEventListener("focusin",b),T.removeEventListener("focusout",j),T.removeEventListener("pointermove",b),T.removeEventListener("pointerleave",N),window.removeEventListener("blur",b),window.removeEventListener("focus",C)}}},[S,l.isClosePausedRef]);const _=k.useCallback(({tabbingDirection:T})=>{const b=d().map(C=>{const j=C.ref.current,N=[j,...YN(j)];return T==="forwards"?N:N.reverse()});return(T==="forwards"?b.reverse():b).flat()},[d]);return k.useEffect(()=>{const T=g.current;if(T){const w=b=>{var N,A,I;const C=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!C){const O=document.activeElement,V=b.shiftKey;if(b.target===T&&V){(N=f.current)==null||N.focus();return}const $=_({tabbingDirection:V?"backwards":"forwards"}),ie=$.findIndex(U=>U===O);Sh($.slice(ie+1))?b.preventDefault():V?(A=f.current)==null||A.focus():(I=p.current)==null||I.focus()}};return T.addEventListener("keydown",w),()=>T.removeEventListener("keydown",w)}},[d,_]),u.jsxs(kN,{ref:h,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&u.jsx(Qf,{ref:f,onFocusFromOutsideViewport:()=>{const T=_({tabbingDirection:"forwards"});Sh(T)}}),u.jsx(Op.Slot,{scope:n,children:u.jsx(Ye.ol,{tabIndex:-1,...s,ref:y})}),S&&u.jsx(Qf,{ref:p,onFocusFromOutsideViewport:()=>{const T=_({tabbingDirection:"backwards"});Sh(T)}})]})});$_.displayName=W_;var U_="ToastFocusProxy",Qf=k.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=nd(U_,n);return u.jsx(td,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:l=>{var f;const d=l.relatedTarget;!((f=s.viewport)!=null&&f.contains(d))&&r()}})});Qf.displayName=U_;var cl="Toast",FN="toast.swipeStart",zN="toast.swipeMove",BN="toast.swipeCancel",VN="toast.swipeEnd",Z_=k.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...l}=e,[d,h]=Ap({prop:r,defaultProp:o??!0,onChange:s,caller:cl});return u.jsx(ed,{present:n||d,children:u.jsx($N,{open:d,...l,ref:t,onClose:()=>h(!1),onPause:Er(e.onPause),onResume:Er(e.onResume),onSwipeStart:Ee(e.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ee(e.onSwipeMove,f=>{const{x:p,y:g}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","move"),f.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:Ee(e.onSwipeCancel,f=>{f.currentTarget.setAttribute("data-swipe","cancel"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ee(e.onSwipeEnd,f=>{const{x:p,y:g}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","end"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),h(!1)})})})});Z_.displayName=cl;var[HN,WN]=V_(cl,{onClose(){}}),$N=k.forwardRef((e,t)=>
68{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:l,onEscapeKeyDown:d,onPause:h,onResume:f,onSwipeStart:p,onSwipeMove:g,onSwipeCancel:y,onSwipeEnd:v,...S}=e,_=nd(cl,n),[T,w]=k.useState(null),b=mn(t,U=>w(U)),C=k.useRef(null),j=k.useRef(null),N=o||_.duration,A=k.useRef(0),I=k.useRef(N),O=k.useRef(0),{onToastAdd:V,onToastRemove:F}=_,G=Er(()=>{var ae;(T==null?void 0:T.contains(document.activeElement))&&((ae=_.viewport)==null||ae.focus()),l()}),$=k.useCallback(U=>{!U||U===1/0||(window.clearTimeout(O.current),A.current=new Date().getTime(),O.current=window.setTimeout(G,U))},[G]);k.useEffect(()=>{const U=_.viewport;if(U){const ae=()=>{$(I.current),f==null||f()},q=()=>{const ue=new Date().getTime()-A.current;I.current=I.current-ue,window.clearTimeout(O.current),h==null||h()};return U.addEventListener(qf,q),U.addEventListener(Yf,ae),()=>{U.removeEventListener(qf,q),U.removeEventListener(Yf,ae)}}},[_.viewport,N,h,f,$]),k.useEffect(()=>{s&&!_.isClosePausedRef.current&&$(N)},[s,N,_.isClosePausedRef,$]),k.useEffect(()=>(V(),()=>F()),[V,F]);const ie=k.useMemo(()=>T?J_(T):null,[T]);return _.viewport?u.jsxs(u.Fragment,{children:[ie&&u.jsx(UN,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:ie}),u.jsx(HN,{scope:n,onClose:G,children:Ps.createPortal(u.jsx(Op.ItemSlot,{scope:n,children:u.jsx(_N,{asChild:!0,onEscapeKeyDown:Ee(d,()=>{_.isFocusedToastEscapeKeyDownRef.current||G(),_.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(Ye.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":_.swipeDirection,...S,ref:b,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ee(e.onKeyDown,U=>{U.key==="Escape"&&(d==null||d(U.nativeEvent),U.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,G()))}),onPointerDown:Ee(e.onPointerDown,U=>{U.button===0&&(C.current={x:U.clientX,y:U.clientY})}),onPointerMove:Ee(e.onPointerMove,U=>{if(!C.current)return;const ae=U.clientX-C.current.x,q=U.clientY-C.current.y,ue=!!j.current,M=["left","right"].includes(_.swipeDirection),B=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,z=M?B(0,ae):0,Y=M?0:B(0,q),X=U.pointerType==="touch"?10:2,oe={x:z,y:Y},ne={originalEvent:U,delta:oe};ue?(j.current=oe,uu(zN,g,ne,{discrete:!1})):ox(oe,_.swipeDirection,X)?(j.current=oe,uu(FN,p,ne,{discrete:!1}),U.target.setPointerCapture(U.pointerId)):(Math.abs(ae)>X||Math.abs(q)>X)&&(C.current=null)}),onPointerUp:Ee(e.onPointerUp,U=>{const ae=j.current,q=U.target;if(q.hasPointerCapture(U.pointerId)&&q.releasePointerCapture(U.pointerId),j.current=null,C.current=null,ae){const ue=U.currentTarget,M={originalEvent:U,delta:ae};ox(ae,_.swipeDirection,_.swipeThreshold)?uu(VN,v,M,{discrete:!0}):uu(BN,y,M,{discrete:!0}),ue.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),_.viewport)})]}):null}),UN=e=>{const{__scopeToast:t,children:n,...r}=e,o=nd(cl,t),[s,l]=k.useState(!1),[d,h]=k.useState(!1);return KN(()=>l(!0)),k.useEffect(()=>{const f=window.setTimeout(()=>h(!0),1e3);return()=>window.clearTimeout(f)},[]),d?null:u.jsx(B_,{asChild:!0,children:u.jsx(td,{...r,children:s&&u.jsxs(u.Fragment,{children:[o.label," ",n]})})})},ZN="ToastTitle",G_=k.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(Ye.div,{...r,ref:t})});G_.displayName=ZN;var GN="ToastDescription",K_=k.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(Ye.div,{...r,ref:t})});K_.displayName=GN;var q_="ToastAction",Y_=k.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(X_,{altText:n,asChild:!0,children:u.jsx(Ip,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${q_}\`. Expected non-empty \`string\`.`),null)});Y_.displayName=q_;var Q_="ToastClose",Ip=k.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=WN(Q_,n);return u.jsx(X_,{asChild:!0,children:u.jsx(Ye.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,o.onClose)})})});Ip.displayName=Q_;var X_=k.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return u.jsx(Ye.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function J_(e){const t=[];
vendor: 4,454 bytes, lines 68-93
68return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),qN(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...J_(r))}}),t}function uu(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?I_(o,s):o.dispatchEvent(s)}var ox=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function KN(e=()=>{}){const t=Er(e);Nr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function qN(e){return e.nodeType===e.ELEMENT_NODE}function YN(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Sh(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var QN=H_,e1=$_,t1=Z_,n1=G_,r1=K_,i1=Y_,o1=Ip;function s1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=s1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function a1(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=s1(e))&&(r&&(r+=" "),r+=t);return r}const sx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ax=a1,Dp=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ax(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(f=>{const p=n==null?void 0:n[f],g=s==null?void 0:s[f];if(p===null)return null;const y=sx(p)||sx(g);return o[f][y]}),d=n&&Object.entries(n).reduce((f,p)=>{let[g,y]=p;return y===void 0||(f[g]=y),f},{}),h=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,p)=>{let{class:g,className:y,...v}=p;return Object.entries(v).every(S=>{let[_,T]=S;return Array.isArray(T)?T.includes({...s,...d}[_]):{...s,...d}[_]===T})?[...f,g,y]:f},[]);return ax(e,l,h,n==null?void 0:n.class,n==null?void 0:n.className)};/**
69 * @license lucide-react v0.462.0 - ISC
70 *
71 * This source code is licensed under the ISC license.
72 * See the LICENSE file in the root directory of this source tree.
73 */const XN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l1=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
74 * @license lucide-react v0.462.0 - ISC
75 *
76 * This source code is licensed under the ISC license.
77 * See the LICENSE file in the root directory of this source tree.
78 */var JN={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"};/**
79 * @license lucide-react v0.462.0 - ISC
80 *
81 * This source code is licensed under the ISC license.
82 * See the LICENSE file in the root directory of this source tree.
83 */const eL=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:l,...d},h)=>k.createElement("svg",{ref:h,...JN,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:l1("lucide",o),...d},[...l.map(([f,p])=>k.createElement(f,p)),...Array.isArray(s)?s:[s]]));/**
84 * @license lucide-react v0.462.0 - ISC
85 *
86 * This source code is licensed under the ISC license.
87 * See the LICENSE file in the root directory of this source tree.
88 */const je=(e,t)=>{const n=k.forwardRef(({className:r,...o},s)=>k.createElement(eL,{ref:s,iconNode:t,className:l1(`lucide-${XN(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
89 * @license lucide-react v0.462.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const tL=je("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
93],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
94 * @license lucide-react v0.462.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */const nL=je("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
99 * @license lucide-react v0.462.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const rL=je("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
104 * @license lucide-react v0.462.0 - ISC
105 *
106 * This source code is licensed under the ISC license.
107 * See the LICENSE file in the root directory of this source tree.
108 */const iL=je("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
109 * @license lucide-react v0.462.0 - ISC
110 *
111 * This source code is licensed under the ISC license.
112 * See the LICENSE file in the root directory of this source tree.
113 */const oL=je("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
114 * @license lucide-react v0.462.0 - ISC
115 *
116 * This source code is licensed under the ISC license.
117 * See the LICENSE file in the root directory of this source tree.
118 */const u1=je("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
119 * @license lucide-react v0.462.0 - ISC
120 *
121 * This source code is licensed under the ISC license.
122 * See the LICENSE file in the root directory of this source tree.
123 */const sL=je("Globe",[["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"}]]);/**
124 * @license lucide-react v0.462.0 - ISC
125 *
126 * This source code is licensed under the ISC license.
127 * See the LICENSE file in the root directory of this source tree.
128 */const aL=je("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
129 * @license lucide-react v0.462.0 - ISC
130 *
131 * This source code is licensed under the ISC license.
132 * See the LICENSE file in the root directory of this source tree.
133 */const lL=je("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/**
134 * @license lucide-react v0.462.0 - ISC
135 *
136 * This source code is licensed under the ISC license.
137 * See the LICENSE file in the root directory of this source tree.
138 */const c1=je("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
139 * @license lucide-react v0.462.0 - ISC
140 *
141 * This source code is licensed under the ISC license.
142 * See the LICENSE file in the root directory of this source tree.
143 */const Fp=je("Leaf",[["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"}]]);/**
144 * @license lucide-react v0.462.0 - ISC
145 *
146 * This source code is licensed under the ISC license.
147 * See the LICENSE file in the root directory of this source tree.
148 */const uL=je("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
149 * @license lucide-react v0.462.0 - ISC
150 *
151 * This source code is licensed under the ISC license.
152 * See the LICENSE file in the root directory of this source tree.
153 */const cL=je("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
154 * @license lucide-react v0.462.0 - ISC
155 *
156 * This source code is licensed under the ISC license.
157 * See the LICENSE file in the root directory of this source tree.
158 */const zp=je("MapPin",[["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"}]]);/**
159 * @license lucide-react v0.462.0 - ISC
160 *
161 * This source code is licensed under the ISC license.
162 * See the LICENSE file in the root directory of this source tree.
163 */const dL=je("Map",[["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"}]]);/**
164 * @license lucide-react v0.462.0 - ISC
165 *
166 * This source code is licensed under the ISC license.
167 * See the LICENSE file in the root directory of this source tree.
168 */const hL=je("Menu",[["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"}]]);/**
169 * @license lucide-react v0.462.0 - ISC
170 *
171 * This source code is licensed under the ISC license.
172 * See the LICENSE file in the root directory of this source tree.
173 */const fL=je("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
174 * @license lucide-react v0.462.0 - ISC
175 *
176 * This source code is licensed under the ISC license.
177 * See the LICENSE file in the root directory of this source tree.
178 */const d1=je("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
179 * @license lucide-react v0.462.0 - ISC
180 *
181 * This source code is licensed under the ISC license.
182 * See the LICENSE file in the root directory of this source tree.
183 */const mL=je("Recycle",[["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"}]]);/**
184 * @license lucide-react v0.462.0 - ISC
185 *
186 * This source code is licensed under the ISC license.
187 * See the LICENSE file in the root directory of this source tree.
188 */const pL=je("Share2",[["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"}]]);/**
189 * @license lucide-react v0.462.0 - ISC
190 *
191 * This source code is licensed under the ISC license.
192 * See the LICENSE file in the root directory of this source tree.
193 */const gL=je("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
194 * @license lucide-react v0.462.0 - ISC
195 *
196 * This source code is licensed under the ISC license.
197 * See the LICENSE file in the root directory of this source tree.
198 */const yL=je("Sprout",[["path",{d:"M7 20h10",key:"e6iznv"}],["path",{d:"M10 20c5.5-2.5.8-6.4 3-10",key:"161w41"}],["path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z",key:"9gtqwd"}],["path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z",key:"bkxnd2"}]]);/**
199 * @license lucide-react v0.462.0 - ISC
200 *
201 * This source code is licensed under the ISC license.
202 * See the LICENSE file in the root directory of this source tree.
203 */const vL=je("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
204 * @license lucide-react v0.462.0 - ISC
205 *
206 * This source code is licensed under the ISC license.
207 * See the LICENSE file in the root directory of this source tree.
208 */const xL=je("Tractor",[["path",{d:"m10 11 11 .9a1 1 0 0 1 .8 1.1l-.665 4.158a1 1 0 0 1-.988.842H20",key:"she1j9"}],["path",{d:"M16 18h-5",key:"bq60fd"}],["path",{d:"M18 5a1 1 0 0 0-1 1v5.573",key:"1kv8ia"}],["path",{d:"M3 4h8.129a1 1 0 0 1 .99.863L13 11.246",key:"1q1ert"}],["path",{d:"M4 11V4",key:"9ft8pt"}],["path",{d:"M7 15h.01",key:"k5ht0j"}],["path",{d:"M8 10.1V4",key:"1jgyzo"}],["circle",{cx:"18",cy:"18",r:"2",key:"1emm8v"}],["circle",{cx:"7",cy:"15",r:"5",key:"ddtuc"}]]);/**
209 * @license lucide-react v0.462.0 - ISC
210 *
211 * This source code is licensed under the ISC license.
212 * See the LICENSE file in the root directory of this source tree.
213 */const wL=je("UserSearch",[["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}],["path",{d:"M10.3 15H7a4 4 0 0 0-4 4v2",key:"3bnktk"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}]]);/**
214 * @license lucide-react v0.462.0 - ISC
215 *
216 * This source code is licensed under the ISC license.
217 * See the LICENSE file in the root directory of this source tree.
218 */const bL=je("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
219 * @license lucide-react v0.462.0 - ISC
220 *
221 * This source code is licensed under the ISC license.
222 * See the LICENSE file in the root directory of this source tree.
223 */const Bp=je("Users",[["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"}]]);/**
224 * @license lucide-react v0.462.0 - ISC
225 *
226 * This source code is licensed under the ISC license.
227 * See the LICENSE file in the root directory of this source tree.
228 */const _L=je("Wheat",[["path",{d:"M2 22 16 8",key:"60hf96"}],["path",{d:"M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1rdhi6"}],["path",{d:"M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1sdzmb"}],["path",{d:"M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"eoatbi"}],["path",{d:"M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z",key:"19rau1"}],["path",{d:"M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"tc8ph9"}],["path",{d:"M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"2m8kc5"}],["path",{d:"M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"vex3ng"}]]);/**
229 * @license lucide-react v0.462.0 - ISC
230 *
231 * This source code is licensed under the ISC license.
232 * See the LICENSE file in the root directory of this source tree.
233 */const rd=je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vp="-",kL=e=>{const t=SL(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const d=l.split(Vp);return d[0]===""&&d.length!==1&&d.shift(),h1(d,t)||CL(l)},getConflictingClassGroupIds:(l,d)=>{const h=n[l]||[];return d&&r[l]?[...h,...r[l]]:h}}},h1=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?h1(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Vp);return(l=t.validators.find(({validator:d})=>d(s)))==null?void 0:l.classGroupId},lx=/^\[(.+)\]$/,CL=e=>{if(lx.test(e)){const t=lx.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},SL=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 5,123 bytes, line 233
233return TL(Object.entries(e.classGroups),n).forEach(([s,l])=>{Xf(l,r,s,t)}),r},Xf=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ux(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(PL(o)){Xf(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,l])=>{Xf(l,ux(t,s),n,r)})})},ux=(e,t)=>{let n=e;return t.split(Vp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},PL=e=>e.isThemeGetter,TL=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,d])=>[t+l,d])):s);return[n,o]}):e,jL=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return o(s,l),l},set(s,l){n.has(s)?n.set(s,l):o(s,l)}}},f1="!",EL=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,l=d=>{const h=[];let f=0,p=0,g;for(let T=0;T<d.length;T++){let w=d[T];if(f===0){if(w===o&&(r||d.slice(T,T+s)===t)){h.push(d.slice(p,T)),p=T+s;continue}if(w==="/"){g=T;continue}}w==="["?f++:w==="]"&&f--}const y=h.length===0?d:d.substring(p),v=y.startsWith(f1),S=v?y.substring(1):y,_=g&&g>p?g-p:void 0;return{modifiers:h,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:_}};return n?d=>n({className:d,parseClassName:l}):l},NL=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},LL=e=>({cache:jL(e.cacheSize),parseClassName:EL(e),...kL(e)}),ML=/\s+/,AL=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],l=e.trim().split(ML);let d="";for(let h=l.length-1;h>=0;h-=1){const f=l[h],{modifiers:p,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:v}=n(f);let S=!!v,_=r(S?y.substring(0,v):y);if(!_){if(!S){d=f+(d.length>0?" "+d:d);continue}if(_=r(y),!_){d=f+(d.length>0?" "+d:d);continue}S=!1}const T=NL(p).join(":"),w=g?T+f1:T,b=w+_;if(s.includes(b))continue;s.push(b);const C=o(_,S);for(let j=0;j<C.length;++j){const N=C[j];s.push(w+N)}d=f+(d.length>0?" "+d:d)}return d};function RL(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=m1(t))&&(r&&(r+=" "),r+=n);return r}const m1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=m1(e[r]))&&(n&&(n+=" "),n+=t);return n};function OL(e,...t){let n,r,o,s=l;function l(h){const f=t.reduce((p,g)=>g(p),e());return n=LL(f),r=n.cache.get,o=n.cache.set,s=d,d(h)}function d(h){const f=r(h);if(f)return f;const p=AL(h,n);return o(h,p),p}return function(){return s(RL.apply(null,arguments))}}const Oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},p1=/^\[(?:([a-z-]+):)?(.+)\]$/i,IL=/^\d+\/\d+$/,DL=new Set(["px","full","screen"]),FL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zL=/\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$/,BL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,VL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,HL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yr=e=>Jo(e)||DL.has(e)||IL.test(e),zr=e=>Ns(e,"length",YL),Jo=e=>!!e&&!Number.isNaN(Number(e)),Ph=e=>Ns(e,"number",Jo),sa=e=>!!e&&Number.isInteger(Number(e)),WL=e=>e.endsWith("%")&&Jo(e.slice(0,-1)),pe=e=>p1.test(e),Br=e=>FL.test(e),$L=new Set(["length","size","percentage"]),UL=e=>Ns(e,$L,g1),ZL=e=>Ns(e,"position",g1),GL=new Set(["image","url"]),KL=e=>Ns(e,GL,XL),qL=e=>Ns(e,"",QL),aa=()=>!0,Ns=(e,t,n)=>{const r=p1.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},YL=e=>zL.test(e)&&!BL.test(e),g1=()=>!1,QL=e=>VL.test(e),XL=e=>HL.test(e),JL=()=>{const e=Oe("colors"),t=Oe("spacing"),n=Oe("blur"),r=Oe("brightness"),o=Oe("borderColor"),s=Oe("borderRadius"),l=Oe("borderSpacing"),d=Oe("borderWidth"),h=Oe("contrast"),f=Oe("grayscale"),p=Oe("hueRotate"),g=Oe("invert"),y=Oe("gap"),v=Oe("gradientColorStops"),S=Oe("gradientColorStopPositions"),_=Oe("inset"),T=Oe("margin"),w=Oe("opacity"),b=Oe("padding"),C=Oe("saturate"),j=Oe("scale"),N=Oe("sepia"),A=Oe("skew"),I=Oe("space"),O=Oe("translate"),V=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",pe,t],$=()=>[pe,t],ie=()=>["",yr,zr],U=()=>["auto",Jo,pe],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",pe],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Jo,pe];return{cacheSize:500,separator:":",theme:{colors:[aa],spacing:[yr,zr],blur:["none","",Br,pe],brightness:Y(),borderColor:[e],borderRadius:["n
vendor: 5,280 bytes, line 233
233one","","full",Br,pe],borderSpacing:$(),borderWidth:ie(),contrast:Y(),grayscale:B(),hueRotate:Y(),invert:B(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[WL,zr],inset:G(),margin:G(),opacity:Y(),padding:$(),saturate:Y(),scale:Y(),sepia:B(),skew:Y(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[Br]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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"],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:[...ae(),pe]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sa,pe]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",sa,pe]}],"grid-cols":[{"grid-cols":[aa]}],"col-start-end":[{col:["auto",{span:["full",sa,pe]},pe]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[aa]}],"row-start-end":[{row:["auto",{span:[sa,pe]},pe]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...M()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...M(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...M(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,t]}],"min-w":[{"min-w":[pe,t,"min","max","fit"]}],"max-w":[{"max-w":[pe,t,"none","full","min","max","fit","prose",{screen:[Br]},Br]}],h:[{h:[pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Br,zr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ph]}],"font-family":[{font:[aa]}],"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:["tighter","tight","normal","wide","wider","widest",pe]}],"line-clamp":[{"line-clamp":["none",Jo,Ph]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",yr,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",yr,zr]}],"underline-offset":[{"underline-offset":["auto",yr,pe]}
vendor: 4,993 bytes, line 233
233],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),ZL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",UL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},KL]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:q()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[yr,pe]}],"outline-w":[{outline:[yr,zr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[yr,zr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Br,qL]}],"shadow-color":[{shadow:[aa]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...ue(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ue()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",Br,pe]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[C]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",pe]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[sa,pe]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",pe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","
233none","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",pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[yr,zr,Ph]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},eM=OL(JL);function Vt(...e){return eM(a1(e))}const tM=QN,y1=k.forwardRef(({className:e,...t},n)=>u.jsx(e1,{ref:n,className:Vt("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}));y1.displayName=e1.displayName;const nM=Dp("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"}}),v1=k.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(t1,{ref:r,className:Vt(nM({variant:t}),e),...n}));v1.displayName=t1.displayName;const rM=k.forwardRef(({className:e,...t},n)=>u.jsx(i1,{ref:n,className:Vt("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));rM.displayName=i1.displayName;const x1=k.forwardRef(({className:e,...t},n)=>u.jsx(o1,{ref:n,className:Vt("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 13,032 bytes, line 233
233/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(rd,{className:"h-4 w-4"})}));x1.displayName=o1.displayName;const w1=k.forwardRef(({className:e,...t},n)=>u.jsx(n1,{ref:n,className:Vt("text-sm font-semibold",e),...t}));w1.displayName=n1.displayName;const b1=k.forwardRef(({className:e,...t},n)=>u.jsx(r1,{ref:n,className:Vt("text-sm opacity-90",e),...t}));b1.displayName=r1.displayName;function iM(){const{toasts:e}=sN();return u.jsxs(tM,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return u.jsxs(v1,{...s,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(w1,{children:n}),r&&u.jsx(b1,{children:r})]}),o,u.jsx(x1,{})]},t)}),u.jsx(y1,{})]})}var oM=Dm[" useId ".trim().toString()]||(()=>{}),sM=0;function _1(e){const[t,n]=k.useState(oM());return Nr(()=>{e||n(r=>r??String(sM++))},[e]),e||(t?`radix-${t}`:"")}const aM=["top","right","bottom","left"],vi=Math.min,Ut=Math.max,yc=Math.round,cu=Math.floor,or=e=>({x:e,y:e}),lM={left:"right",right:"left",bottom:"top",top:"bottom"},uM={start:"end",end:"start"};function Jf(e,t,n){return Ut(e,vi(t,n))}function Lr(e,t){return typeof e=="function"?e(t):e}function Mr(e){return e.split("-")[0]}function Ls(e){return e.split("-")[1]}function Hp(e){return e==="x"?"y":"x"}function Wp(e){return e==="y"?"height":"width"}const cM=new Set(["top","bottom"]);function nr(e){return cM.has(Mr(e))?"y":"x"}function $p(e){return Hp(nr(e))}function dM(e,t,n){n===void 0&&(n=!1);const r=Ls(e),o=$p(e),s=Wp(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=vc(l)),[l,vc(l)]}function hM(e){const t=vc(e);return[em(e),t,em(t)]}function em(e){return e.replace(/start|end/g,t=>uM[t])}const cx=["left","right"],dx=["right","left"],fM=["top","bottom"],mM=["bottom","top"];function pM(e,t,n){switch(e){case"top":case"bottom":return n?t?dx:cx:t?cx:dx;case"left":case"right":return t?fM:mM;default:return[]}}function gM(e,t,n,r){const o=Ls(e);let s=pM(Mr(e),n==="start",r);return o&&(s=s.map(l=>l+"-"+o),t&&(s=s.concat(s.map(em)))),s}function vc(e){return e.replace(/left|right|bottom|top/g,t=>lM[t])}function yM(e){return{top:0,right:0,bottom:0,left:0,...e}}function k1(e){return typeof e!="number"?yM(e):{top:e,right:e,bottom:e,left:e}}function xc(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function hx(e,t,n){let{reference:r,floating:o}=e;const s=nr(t),l=$p(t),d=Wp(l),h=Mr(t),f=s==="y",p=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,y=r[d]/2-o[d]/2;let v;switch(h){case"top":v={x:p,y:r.y-o.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:g};break;case"left":v={x:r.x-o.width,y:g};break;default:v={x:r.x,y:r.y}}switch(Ls(t)){case"start":v[l]-=y*(n&&f?-1:1);break;case"end":v[l]+=y*(n&&f?-1:1);break}return v}const vM=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,d=s.filter(Boolean),h=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:g}=hx(f,r,h),y=r,v={},S=0;for(let _=0;_<d.length;_++){const{name:T,fn:w}=d[_],{x:b,y:C,data:j,reset:N}=await w({x:p,y:g,initialPlacement:r,placement:y,strategy:o,middlewareData:v,rects:f,platform:l,elements:{reference:e,floating:t}});p=b??p,g=C??g,v={...v,[T]:{...v[T],...j}},N&&S<=50&&(S++,typeof N=="object"&&(N.placement&&(y=N.placement),N.rects&&(f=N.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):N.rects),{x:p,y:g}=hx(f,y,h)),_=-1)}return{x:p,y:g,placement:y,strategy:o,middlewareData:v}};async function Ya(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:l,elements:d,strategy:h}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:y=!1,padding:v=0}=Lr(t,e),S=k1(v),T=d[y?g==="floating"?"reference":"floating":g],w=xc(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(T)))==null||n?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(d.floating)),boundary:f,rootBoundary:p,strategy:h})),b=g==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d.floating)),j=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},N=xc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:b,offsetParent:C,strategy:h}):b);return{top:(w.top-N.top+S.top)/j.y,bottom:(N.bottom-w.bottom+S.bottom)/j.y,left:(w.left-N.left+S.left)/j.x,right:(N.right-w.right+S.right)/j.x}}const xM=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:l,elements:d,middlewareData:h}=t,{element:f,padding:p=0}=Lr(e,t)||{};if(f==null)return{};const g=k1(p),y={x:n,y:r},v=$p(o),S=Wp(v),_=await l.getDimensions(f),T=v==="y",w=T?"top":"left",b=T?"bottom":"right",C=T?"clientHeight":"clientWidth",j=s.reference[S]+s.reference[v]-y[v]-s.floating[S],N=y[v]-s.reference[v],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let I=A?A[C]:0;(!I||!await(l.isElement==null?void 0:l.isElement(A)))&&(I=d.floating[C]||s.floating[S]);const O=j/2-N/2,V=I/2-_[S]/2-1,F=vi(g[w],V),G=vi(g[b],V),$=F,ie=I-_[S]-G,U=I/2-_[S]/2+O,ae=Jf($,U,ie),q=!h.arrow&&Ls(o)!=null&&U!==ae&&s.reference[S]/2-(U<$?F:G)-_[S]/2<0,ue=q?U<$?U-$:U-ie:0;return{[v]:y[v]+ue,data:{[v]:ae,centerOffset:U-ae-ue,...q&&{alignmentOffset:ue}},reset:q}}}),wM=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:l,initialPlacement:d,platform:h,elements:f}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:_=!0,...T}=Lr(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=Mr(o),b=nr(d),C=Mr(d)===d,j=await(h.isRTL==null?void 0:h.isRTL(f.floating)),N=y||(C||!_?[vc(d)]:hM(d)),A=S!=="none";!y&&A&&N.push(...gM(d,_,S,j));const I=[d,...N],O=await Ya(t,T),V=[];let F=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&V.push(O[w]),g){const U=dM(o,l,j);V.push(O[U[0]],O[U[1]])}if(F=[...F,{placement:o,overflows:V}],!V.every(U=>U<=0)){var G,$;const U=(((G=s.flip)==null?void 0:G.index)||0)+1,ae=I[U];if(ae&&(!(g==="alignment"?b!==nr(ae):!1)||F.every(M=>M.overflows[0]>0&&nr(M.placement)===b)))return{data:{index:U,overflows:F},reset:{placement:ae}};let q=($=F.filter(ue=>ue.overflows[0]<=0).sort((ue,M)=>ue.overflows[1]-M.overflows[1])[0])==null?void 0:$.placement;if(!q)switch(v){case"bestFit":{var ie;const ue=(ie=F.filter(M=>{if(A){const B=nr(M.placement);return B===b||B==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(B=>B>0).reduce((B,z)=>B+z,0)]).sort((M,B)=>M[1]-B[1])[0])==null?void 0:ie[0];ue&&(q=ue);break}case"initialPlacement":q=d;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function fx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mx(e){return aM.some(t=>e[t]>=0)}const bM=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Lr(e,t);switch(r){case"referenceHidden":{const s=await Ya(t,{...o,elementContext:"reference"}),l=fx(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:mx(l)}}}case"escaped":{const s=await Ya(t,{...o,altBoundary:!0}),l=fx(s,n.floating);return{data:{escapedOffsets:l,escaped:mx(l)}}}default:return{}}}}},C1=new Set(["left","top"]);async function _M(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=Mr(n),d=Ls(n),h=nr(n)==="y",f=C1.has(l)?-1:1,p=s&&h?-1:1,g=Lr(t,e);let{mainAxis:y,crossAxis:v,alignmentAxis:S}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof S=="number"&&(v=d==="end"?S*-1:S),h?{x:v*p,y:y*f}:{x:y*f,y:v*p}}const kM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:l,middlewareData:d}=t,h=await _M(t,e);return l===((n=d.offset)==null?void 0:n.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:o+h.x,y:s+h.y,data:{...h,placement:l}}}}},CM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:T=>{let{x:w,y:b}=T;return{x:w,y:b}}},...h}=Lr(e,t),f={x:n,y:r},p=await Ya(t,h),g=nr(Mr(o)),y=Hp(g);let v=f[y],S=f[g];if(s){const T=y==="y"?"top":"left",w=y==="y"?"bottom":"right",b=v+p[T],C=v-p[w];v=Jf(b,v,C)}if(l){const T=g==="y"?"top":"left",w=g==="y"?"bottom":"right",b=S+p[T],C=S-p[w];S=Jf(b,S,C)}const _=d.fn({...t,[y]:v,[g]:S});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[y]:s,[g]:l}}}}}},SM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:l}=t,{offset:d=0,mainAxis:h=!0,crossAxis:f=!0}=Lr(e,t),p={x:n,y:r},g=nr(o),y=Hp(g);let v=p[y],S=p[g];const _=Lr(d,t),T=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(h){const C=y==="y"?"height":"width",j=s.reference[y]-s.floating[C]+T.mainAxis,N=s.reference[y]+s.reference[C]-T.mainAxis;v<j?v=j:v>N&&(v=N)}if(f){var w,b;const C=y==="y"?"width":"height",j=C1.has(Mr(o)),N=s.reference[g]-s.floating[C]+(j&&((w=l.offset)==null?void 0:w[g])||0)+(j?0:T.crossAxis),A=s.reference[g]+s.reference[C]+(j?0:((b=l.offset)==null?void 0:b[g])||0)-(j?T.crossAxis:0);S<N?S=N:S>A&&(S=A)}return{[y]:v,[g]:S}}}},PM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:l,elements:d}=t,{apply:h=()=>{},...f}=Lr(e,t),p=await Ya(t,f),g=Mr(o),y=Ls(o),v=nr(o)==="y",{width:S,height:_}=s.floating;let T,w;g==="top"||g==="bottom"?(T=g,w=y===(await(l.isRTL==null?void 0:l.isRTL(d.floating))?"start":"end")?"left":"right"):(w=g,T=y==="end"?"top":"bottom");const b=_-p.top-p.bottom,C=S-p.left-p.right,j=vi(_-p[T],b),N=vi(S-p[w],C),A=!t.middlewareData.shift;let I=j,O=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=b),A&&!y){const F=Ut(p.left,0),G=Ut(p.right,0),$=Ut(p.top,0),ie=Ut(p.bottom,0);v?O=S-2*(F!==0||G!==0?F+G:Ut(p.left,p.right)):I=_-2*($!==0||ie!==0?$+ie:Ut(p.top,p.bottom))}await h({...t,availableWidth:O,availableHeight:I});const V=await l.getDimensions(d.floating);return S!==V.width||_!==V.height?{reset:{rects:!0}}:{}}}};function id(){return typeof window<"u"}function Ms(e){return S1(e)?(e.nodeName||"").toLowerCase():"#document"}function Kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ur(e){var t;return(t=(S1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function S1(e){return id()?e instanceof Node||e instanceof Kt(e).Node:!1}function On(e){return id()?e instanceof Element||e instanceof Kt(e).Element:!1}function ar(e){return id()?e instanceof HTMLElement||e instanceof Kt(e).HTMLElement:!1}function px(e){return!id()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kt(e).ShadowRoot}const TM=new Set(["inline","contents"]);function dl(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=In(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!TM.has(o)}const jM=new Set(["table","td","th"]);function EM(e){return jM.has(Ms(e))}const NM=[":popover-open",":modal"];function od(e){return NM.some(t=>{try{return e.matches(t)}catch{return!1}})}const LM=["transform","translate","scale","rotate","perspective"],MM=["transform","translate","scale","rotate","perspective","filter"],AM=["paint","layout","strict","content"];function Up(e){const t=Zp(),n=On(e)?In(e):e;return LM.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)||MM.some(r=>(n.willChange||"").includes(r))||AM.some(r=>(n.contain||"").includes(r))}function RM(e){let t=xi(e);for(;ar(t)&&!ys(t);){if(Up(t))return t;if(od(t))return null;t=xi(t)}return null}function Zp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const OM=new Set(["html","body","#document"]);function ys(e){return OM.has(Ms(e))}function In(e){return Kt(e).getComputedStyle(e)}function sd(e){return On(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xi(e){if(Ms(e)==="html")return e;const t=e.assignedSlot||e.parentNode||px(e)&&e.host||ur(e);return px(t)?t.host:t}function P1(e){const t=xi(e);return ys(t)?e.ownerDocument?e.ownerDocument.body:e.body:ar(t)&&dl(t)?t:P1(t)}
vendor: 4,420 bytes, line 233
233function Qa(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=P1(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),l=Kt(o);if(s){const d=tm(l);return t.concat(l,l.visualViewport||[],dl(o)?o:[],d&&n?Qa(d):[])}return t.concat(o,Qa(o,[],n))}function tm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function T1(e){const t=In(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ar(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:r,d=yc(n)!==s||yc(r)!==l;return d&&(n=s,r=l),{width:n,height:r,$:d}}function Gp(e){return On(e)?e:e.contextElement}function es(e){const t=Gp(e);if(!ar(t))return or(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=T1(t);let l=(s?yc(n.width):n.width)/r,d=(s?yc(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}const IM=or(0);function j1(e){const t=Kt(e);return!Zp()||!t.visualViewport?IM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Kt(e)?!1:t}function oo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Gp(e);let l=or(1);t&&(r?On(r)&&(l=es(r)):l=es(e));const d=DM(s,n,r)?j1(s):or(0);let h=(o.left+d.x)/l.x,f=(o.top+d.y)/l.y,p=o.width/l.x,g=o.height/l.y;if(s){const y=Kt(s),v=r&&On(r)?Kt(r):r;let S=y,_=tm(S);for(;_&&r&&v!==S;){const T=es(_),w=_.getBoundingClientRect(),b=In(_),C=w.left+(_.clientLeft+parseFloat(b.paddingLeft))*T.x,j=w.top+(_.clientTop+parseFloat(b.paddingTop))*T.y;h*=T.x,f*=T.y,p*=T.x,g*=T.y,h+=C,f+=j,S=Kt(_),_=tm(S)}}return xc({width:p,height:g,x:h,y:f})}function Kp(e,t){const n=sd(e).scrollLeft;return t?t.left+n:oo(ur(e)).left+n}function E1(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Kp(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function FM(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",l=ur(r),d=t?od(t.floating):!1;if(r===l||d&&s)return n;let h={scrollLeft:0,scrollTop:0},f=or(1);const p=or(0),g=ar(r);if((g||!g&&!s)&&((Ms(r)!=="body"||dl(l))&&(h=sd(r)),ar(r))){const v=oo(r);f=es(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}const y=l&&!g&&!s?E1(l,h,!0):or(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-h.scrollLeft*f.x+p.x+y.x,y:n.y*f.y-h.scrollTop*f.y+p.y+y.y}}function zM(e){return Array.from(e.getClientRects())}function BM(e){const t=ur(e),n=sd(e),r=e.ownerDocument.body,o=Ut(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ut(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Kp(e);const d=-n.scrollTop;return In(r).direction==="rtl"&&(l+=Ut(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:l,y:d}}function VM(e,t){const n=Kt(e),r=ur(e),o=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,d=0,h=0;if(o){s=o.width,l=o.height;const f=Zp();(!f||f&&t==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}return{width:s,height:l,x:d,y:h}}const HM=new Set(["absolute","fixed"]);function WM(e,t){const n=oo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ar(e)?es(e):or(1),l=e.clientWidth*s.x,d=e.clientHeight*s.y,h=o*s.x,f=r*s.y;return{width:l,height:d,x:h,y:f}}function gx(e,t,n){let r;if(t==="viewport")r=VM(e,n);else if(t==="document")r=BM(ur(e));else if(On(t))r=WM(t,n);else{const o=j1(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return xc(r)}function N1(e,t){const n=xi(e);return n===t||!On(n)||ys(n)?!1:In(n).position==="fixed"||N1(n,t)}function $M(e,t){const n=t.get(e);if(n)return n;let r=Qa(e,[],!1).filter(d=>On(d)&&Ms(d)!=="body"),o=null;const s=In(e).position==="fixed";let l=s?xi(e):e;for(;On(l)&&!ys(l);){const d=In(l),h=Up(l);!h&&d.position==="fixed"&&(o=null),(s?!h&&!o:!h&&d.position==="static"&&!!o&&HM.has(o.position)||dl(l)&&!h&&N1(e,l))?r=r.filter(p=>p!==l):o=d,l=xi(l)}return t.set(e,r),r}function UM(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?od(t)?[]:$M(t,this._c):[].concat(n),r],d=l[0],h=l.reduce((f,p)=>{const g=gx(t,p,o);return f.top=Ut(g.top,f.top),f.right=vi(g.right,f.right),f.bottom=vi(g.bottom,f.bottom),f.left=Ut(g.left,f.left),f},gx(t,d,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function ZM(e){const{width:t,height:n}=T1(e);return{width:t,height:n}}function GM(e,t,n){const r=ar(t),o=ur(t),s=n==="fixed",l=oo(e,!0,s,t);let d={scrollLeft:0,scrollTop:0};const h=or(0);function f(){h.x=Kp(o)}
vendor: 9,520 bytes, line 233
233if(r||!r&&!s)if((Ms(t)!=="body"||dl(o))&&(d=sd(t)),r){const v=oo(t,!0,s,t);h.x=v.x+t.clientLeft,h.y=v.y+t.clientTop}else o&&f();s&&!r&&o&&f();const p=o&&!r&&!s?E1(o,d):or(0),g=l.left+d.scrollLeft-h.x-p.x,y=l.top+d.scrollTop-h.y-p.y;return{x:g,y,width:l.width,height:l.height}}function Th(e){return In(e).position==="static"}function yx(e,t){if(!ar(e)||In(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ur(e)===n&&(n=n.ownerDocument.body),n}function L1(e,t){const n=Kt(e);if(od(e))return n;if(!ar(e)){let o=xi(e);for(;o&&!ys(o);){if(On(o)&&!Th(o))return o;o=xi(o)}return n}let r=yx(e,t);for(;r&&EM(r)&&Th(r);)r=yx(r,t);return r&&ys(r)&&Th(r)&&!Up(r)?n:r||RM(e)||n}const KM=async function(e){const t=this.getOffsetParent||L1,n=this.getDimensions,r=await n(e.floating);return{reference:GM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qM(e){return In(e).direction==="rtl"}const YM={convertOffsetParentRelativeRectToViewportRelativeRect:FM,getDocumentElement:ur,getClippingRect:UM,getOffsetParent:L1,getElementRects:KM,getClientRects:zM,getDimensions:ZM,getScale:es,isElement:On,isRTL:qM};function M1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function QM(e,t){let n=null,r;const o=ur(e);function s(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function l(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),s();const f=e.getBoundingClientRect(),{left:p,top:g,width:y,height:v}=f;if(d||t(),!y||!v)return;const S=cu(g),_=cu(o.clientWidth-(p+y)),T=cu(o.clientHeight-(g+v)),w=cu(p),C={rootMargin:-S+"px "+-_+"px "+-T+"px "+-w+"px",threshold:Ut(0,vi(1,h))||1};let j=!0;function N(A){const I=A[0].intersectionRatio;if(I!==h){if(!j)return l();I?l(!1,I):r=setTimeout(()=>{l(!1,1e-7)},1e3)}I===1&&!M1(f,e.getBoundingClientRect())&&l(),j=!1}try{n=new IntersectionObserver(N,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(N,C)}n.observe(e)}return l(!0),s}function XM(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,f=Gp(e),p=o||s?[...f?Qa(f):[],...Qa(t)]:[];p.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const g=f&&d?QM(f,n):null;let y=-1,v=null;l&&(v=new ResizeObserver(w=>{let[b]=w;b&&b.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var C;(C=v)==null||C.observe(t)})),n()}),f&&!h&&v.observe(f),v.observe(t));let S,_=h?oo(e):null;h&&T();function T(){const w=oo(e);_&&!M1(_,w)&&n(),_=w,S=requestAnimationFrame(T)}return n(),()=>{var w;p.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),g==null||g(),(w=v)==null||w.disconnect(),v=null,h&&cancelAnimationFrame(S)}}const JM=kM,eA=CM,tA=wM,nA=PM,rA=bM,vx=xM,iA=SM,oA=(e,t,n)=>{const r=new Map,o={platform:YM,...n},s={...o.platform,_c:r};return vM(e,t,{...o,platform:s})};var sA=typeof document<"u",aA=function(){},Ru=sA?k.useLayoutEffect:aA;function wc(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,o;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(!wc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!wc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function A1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xx(e,t){const n=A1(e);return Math.round(t*n)/n}function jh(e){const t=k.useRef(e);return Ru(()=>{t.current=e}),t}function lA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:l}={},transform:d=!0,whileElementsMounted:h,open:f}=e,[p,g]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,v]=k.useState(r);wc(y,r)||v(r);const[S,_]=k.useState(null),[T,w]=k.useState(null),b=k.useCallback(M=>{M!==A.current&&(A.current=M,_(M))},[]),C=k.useCallback(M=>{M!==I.current&&(I.current=M,w(M))},[]),j=s||S,N=l||T,A=k.useRef(null),I=k.useRef(null),O=k.useRef(p),V=h!=null,F=jh(h),G=jh(o),$=jh(f),ie=k.useCallback(()=>{if(!A.current||!I.current)return;const M={placement:t,strategy:n,middleware:y};G.current&&(M.platform=G.current),oA(A.current,I.current,M).then(B=>{const z={...B,isPositioned:$.current!==!1};U.current&&!wc(O.current,z)&&(O.current=z,Ps.flushSync(()=>{g(z)}))})},[y,t,n,G,$]);Ru(()=>{f===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,g(M=>({...M,isPositioned:!1})))},[f]);const U=k.useRef(!1);Ru(()=>(U.current=!0,()=>{U.current=!1}),[]),Ru(()=>{if(j&&(A.current=j),N&&(I.current=N),j&&N){if(F.current)return F.current(j,N,ie);ie()}},[j,N,ie,F,V]);const ae=k.useMemo(()=>({reference:A,floating:I,setReference:b,setFloating:C}),[b,C]),q=k.useMemo(()=>({reference:j,floating:N}),[j,N]),ue=k.useMemo(()=>{const M={position:n,left:0,top:0};if(!q.floating)return M;const B=xx(q.floating,p.x),z=xx(q.floating,p.y);return d?{...M,transform:"translate("+B+"px, "+z+"px)",...A1(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:z}},[n,d,q.floating,p.x,p.y]);return k.useMemo(()=>({...p,update:ie,refs:ae,elements:q,floatingStyles:ue}),[p,ie,ae,q,ue])}const uA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?vx({element:r.current,padding:o}).fn(n):{}:r?vx({element:r,padding:o}).fn(n):{}}}},cA=(e,t)=>({...JM(e),options:[e,t]}),dA=(e,t)=>({...eA(e),options:[e,t]}),hA=(e,t)=>({...iA(e),options:[e,t]}),fA=(e,t)=>({...tA(e),options:[e,t]}),mA=(e,t)=>({...nA(e),options:[e,t]}),pA=(e,t)=>({...rA(e),options:[e,t]}),gA=(e,t)=>({...uA(e),options:[e,t]});var yA="Arrow",R1=k.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return u.jsx(Ye.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});R1.displayName=yA;var vA=R1;function xA(e){const[t,n]=k.useState(void 0);return Nr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let l,d;if("borderBoxSize"in s){const h=s.borderBoxSize,f=Array.isArray(h)?h[0]:h;l=f.inlineSize,d=f.blockSize}else l=e.offsetWidth,d=e.offsetHeight;n({width:l,height:d})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var O1="Popper",[I1,D1]=Es(O1),[MF,F1]=I1(O1),z1="PopperAnchor",B1=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=F1(z1,n),l=k.useRef(null),d=mn(t,l);return k.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:u.jsx(Ye.div,{...o,ref:d})});B1.displayName=z1;var qp="PopperContent",[wA,bA]=I1(qp),V1=k.forwardRef((e,t)=>{var ge,_t,gn,yn,Xt,Jt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:l=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:g="partial",hideWhenDetached:y=!1,updatePositionStrategy:v="optimized",onPlaced:S,..._}=e,T=F1(qp,n),[w,b]=k.useState(null),C=mn(t,en=>b(en)),[j,N]=k.useState(null),A=xA(j),I=(A==null?void 0:A.width)??0,O=(A==null?void 0:A.height)??0,V=r+(s!=="center"?"-"+s:""),F=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},G=Array.isArray(f)?f:[f],$=G.length>0,ie={padding:F,boundary:G.filter(kA),altBoundary:$},{refs:U,floatingStyles:ae,placement:q,isPositioned:ue,middlewareData:M}=lA({strategy:"fixed",placement:V,whileElementsMounted:(...en)=>XM(...en,{animationFrame:v==="always"}),elements:{reference:T.anchor},middleware:[cA({mainAxis:o+O,alignmentAxis:l}),h&&dA({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?hA():void 0,...ie}),h&&fA({...ie}),mA({...ie,apply:({elements:en,rects:mo,availableWidth:po,availableHeight:Pi})=>{const{width:Ti,height:Dn}=mo.reference,Rr=en.floating.style;Rr.setProperty("--radix-popper-available-width",`${po}px`),Rr.setProperty("--radix-popper-available-height",`${Pi}px`),Rr.setProperty("--radix-popper-anchor-width",`${Ti}px`),Rr.setProperty("--radix-popper-anchor-height",`${Dn}px`)}}),j&&gA({element:j,padding:d}),CA({arrowWidth:I,arrowHeight:O}),y&&pA({strategy:"referenceHidden",...ie})]}),[B,z]=$1(q),Y=Er(S);Nr(()=>{ue&&(Y==null||Y())},[ue,Y]);const X=(ge=M.arrow)==null?void 0:ge.x,oe=(_t=M.arrow)==null?void 0:_t.y,ne=((gn=M.arrow)==null?void 0:gn.centerOffset)!==0,[ce,se]=k.useState();return Nr(()=>{w&&se(window.getComputedStyle(w).zIndex)},[w]),u.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:ue?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(yn=M.transformOrigin)==null?void 0:yn.x,(Xt=M.transformOrigin)==null?void 0:Xt.y].join(" "),...((Jt=M.hide)==null?void 0:Jt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(wA,{scope:n,placedSide:B,onArrowChange:N,arrowX:X,arrowY:oe,shouldHideArrow:ne,children:u.jsx(Ye.div,{"data-side":B,"data-align":z,..._,ref:C,style:{..._.style,animation:ue?void 0:"none"}})})})});V1.displayName=qp;var H1="PopperArrow",_A={top:"bottom",right:"left",bottom:"top",left:"r
233ight"},W1=k.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=bA(H1,r),l=_A[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(vA,{...o,ref:n,style:{...o.style,display:"block"}})})});W1.displayName=H1;function kA(e){return e!==null}var CA=e=>({name:"transformOrigin",options:e,fn(t){var T,w,b;const{placement:n,rects:r,middlewareData:o}=t,l=((T=o.arrow)==null?void 0:T.centerOffset)!==0,d=l?0:e.arrowWidth,h=l?0:e.arrowHeight,[f,p]=$1(n),g={start:"0%",center:"50%",end:"100%"}[p],y=(((w=o.arrow)==null?void 0:w.x)??0)+d/2,v=(((b=o.arrow)==null?void 0:b.y)??0)+h/2;let S="",_="";return f==="bottom"?(S=l?g:`${y}px`,_=`${-h}px`):f==="top"?(S=l?g:`${y}px`,_=`${r.floating.height+h}px`):f==="right"?(S=`${-h}px`,_=l?g:`${v}px`):f==="left"&&(S=`${r.floating.width+h}px`,_=l?g:`${v}px`),{data:{x:S,y:_}}}});function $1(e){const[t,n="center"]=e.split("-");return[t,n]}var SA=B1,PA=V1,TA=W1,[ad,AF]=Es("Tooltip",[D1]),Yp=D1(),U1="TooltipProvider",jA=700,wx="tooltip.open",[EA,Z1]=ad(U1),G1=e=>{const{__scopeTooltip:t,delayDuration:n=jA,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,l=k.useRef(!0),d=k.useRef(!1),h=k.useRef(0);return k.useEffect(()=>{const f=h.current;return()=>window.clearTimeout(f)},[]),u.jsx(EA,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:k.useCallback(()=>{window.clearTimeout(h.current),l.current=!1},[]),onClose:k.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:k.useCallback(f=>{d.current=f},[]),disableHoverableContent:o,children:s})};G1.displayName=U1;var K1="Tooltip",[RF,ld]=ad(K1),nm="TooltipTrigger",NA=k.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ld(nm,n),s=Z1(nm,n),l=Yp(n),d=k.useRef(null),h=mn(t,d,o.onTriggerChange),f=k.useRef(!1),p=k.useRef(!1),g=k.useCallback(()=>f.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),u.jsx(SA,{asChild:!0,...l,children:u.jsx(Ye.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:h,onPointerMove:Ee(e.onPointerMove,y=>{y.pointerType!=="touch"&&!p.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:Ee(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:Ee(e.onPointerDown,()=>{o.open&&o.onClose(),f.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Ee(e.onFocus,()=>{f.current||o.onOpen()}),onBlur:Ee(e.onBlur,o.onClose),onClick:Ee(e.onClick,o.onClose)})})});NA.displayName=nm;var LA="TooltipPortal",[OF,MA]=ad(LA,{forceMount:void 0}),vs="TooltipContent",q1=k.forwardRef((e,t)=>{const n=MA(vs,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,l=ld(vs,e.__scopeTooltip);return u.jsx(ed,{present:r||l.open,children:l.disableHoverableContent?u.jsx(Y1,{side:o,...s,ref:t}):u.jsx(AA,{side:o,...s,ref:t})})}),AA=k.forwardRef((e,t)=>{const n=ld(vs,e.__scopeTooltip),r=Z1(vs,e.__scopeTooltip),o=k.useRef(null),s=mn(t,o),[l,d]=k.useState(null),{trigger:h,onClose:f}=n,p=o.current,{onPointerInTransitChange:g}=r,y=k.useCallback(()=>{d(null),g(!1)},[g]),v=k.useCallback((S,_)=>{const T=S.currentTarget,w={x:S.clientX,y:S.clientY},b=FA(w,T.getBoundingClientRect()),C=zA(w,b),j=BA(_.getBoundingClientRect()),N=HA([...C,...j]);d(N),g(!0)},[g]);return k.useEffect(()=>()=>y(),[y]),k.useEffect(()=>{if(h&&p){const S=T=>v(T,p),_=T=>v(T,h);return h.addEventListener("pointerleave",S),p.addEventListener("pointerleave",_),()=>{h.removeEventListener("pointerleave",S),p.removeEventListener("pointerleave",_)}
vendor: 5,792 bytes, line 233
233}},[h,p,v,y]),k.useEffect(()=>{if(l){const S=_=>{const T=_.target,w={x:_.clientX,y:_.clientY},b=(h==null?void 0:h.contains(T))||(p==null?void 0:p.contains(T)),C=!VA(w,l);b?y():C&&(y(),f())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[h,p,l,f,y]),u.jsx(Y1,{...e,ref:s})}),[RA,OA]=ad(K1,{isInside:!1}),IA=cN("TooltipContent"),Y1=k.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=e,h=ld(vs,n),f=Yp(n),{onClose:p}=h;return k.useEffect(()=>(document.addEventListener(wx,p),()=>document.removeEventListener(wx,p)),[p]),k.useEffect(()=>{if(h.trigger){const g=y=>{const v=y.target;v!=null&&v.contains(h.trigger)&&p()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[h.trigger,p]),u.jsx(Mp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:g=>g.preventDefault(),onDismiss:p,children:u.jsxs(PA,{"data-state":h.stateAttribute,...f,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(IA,{children:r}),u.jsx(RA,{scope:n,isInside:!0,children:u.jsx(AN,{id:h.contentId,role:"tooltip",children:o||r})})]})})});q1.displayName=vs;var Q1="TooltipArrow",DA=k.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Yp(n);return OA(Q1,n).isInside?null:u.jsx(TA,{...o,...r,ref:t})});DA.displayName=Q1;function FA(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function zA(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function BA(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function VA(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const d=t[s],h=t[l],f=d.x,p=d.y,g=h.x,y=h.y;p>r!=y>r&&n<(g-f)*(r-p)/(y-p)+f&&(o=!o)}return o}function HA(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),WA(t)}function WA(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var $A=G1,X1=q1;const UA=$A,ZA=k.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(X1,{ref:r,sideOffset:t,className:Vt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));ZA.displayName=X1.displayName;const GA=Dp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Pe=k.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const l=r?lN:"button";return u.jsx(l,{className:Vt(GA({variant:t,size:n,className:e})),ref:s,...o})});Pe.displayName="Button";const J1="/assets/foodclub_logo_v4-CN5ZVYJy.svg",bx=[{label:"How It Works",href:"/#how-it-works"},{label:"Why Food Clubs?",href:"/why-food-clubs"},{label:"Find a Club",href:"/#join"},{label:"Host a Club",href:"/host-and-supply"},{label:"Supply a Club",href:"/host-and-supply#suppliers"},{label:"Contact",href:"/#contact"}],Qp=()=>{const[e,t]=k.useState(!1);return u.jsxs("nav",{className:"sticky top-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:[u.jsxs("div",{className:"container flex items-center justify-between h-24",children:[u.jsx("a",{href:"/",className:"flex-shrink-0 mr-8",children:u.jsx("img",{src:J1,alt:"Food Club Hub",className:"h-28 md:h-32"})}),u.jsxs("div",{className:"hidden md:flex items-center gap-8",children:[bx.map(n=>u.jsx("a",{href:n.href,className:"text-sm font-semibold text-foreground
233/70 hover:text-foreground transition-colors",children:n.label},n.href)),u.jsx(Pe,{asChild:!0,size:"sm",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",children:u.jsx("a",{href:"/#join",children:"Find a Club"})}),u.jsx("a",{href:"/login",className:"text-sm font-semibold text-foreground/70 hover:text-foreground transition-colors",children:"Log in"})]}),u.jsx("button",{className:"md:hidden p-2",onClick:()=>t(!e),"aria-label":"Toggle menu",children:e?u.jsx(rd,{className:"h-5 w-5"}):u.jsx(hL,{className:"h-5 w-5"})})]}),e&&u.jsxs("div",{className:"md:hidden border-t border-border bg-background pb-4",children:[bx.map(n=>u.jsx("a",{href:n.href,onClick:()=>t(!1),className:"block px-6 py-3 text-sm font-semibold text-foreground/70 hover:text-foreground hover:bg-muted transition-colors",children:n.label},n.href)),u.jsxs("div",{className:"px-6 pt-2 space-y-2",children:[u.jsx(Pe,{asChild:!0,size:"sm",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",children:u.jsx("a",{href:"/#join",onClick:()=>t(!1),children:"Find a Club"})}),u.jsx("a",{href:"/login",onClick:()=>t(!1),className:"block text-center text-sm font-semibold text-foreground/70 hover:text-foreground transition-colors py-2",children:"Log in"})]})]})]})},Xp=k.createContext({});function Jp(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const KA=typeof window<"u",ek=KA?k.useLayoutEffect:k.useEffect,ud=k.createContext(null);function eg(e,t){e.indexOf(t)===-1&&e.push(t)}function bc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const lr=(e,t,n)=>n>t?t:n<e?e:n;let cd=()=>{},xs=()=>{};const wi={},tk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function nk(e){return typeof e=="object"&&e!==null}const rk=e=>/^0[^.\s]+$/u.test(e);function ik(e){let t;return()=>(t===void 0&&(t=e()),t)}const dn=e=>e,qA=(e,t)=>n=>t(e(n)),hl=(...e)=>e.reduce(qA),Xa=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class tg{constructor(){this.subscriptions=[]}add(t){return eg(this.subscriptions,t),()=>bc(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Bt=e=>e*1e3,un=e=>e/1e3;function ok(e,t){return t?e*(1e3/t):0}const sk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,YA=1e-7,QA=12;function XA(e,t,n,r,o){let s,l,d=0;do l=t+(n-t)/2,s=sk(l,r,o)-e,s>0?n=l:t=l;while(Math.abs(s)>YA&&++d<QA);return l}function fl(e,t,n,r){if(e===t&&n===r)return dn;const o=s=>XA(s,0,1,e,n);return s=>s===0||s===1?s:sk(o(s),t,r)}const ak=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,lk=e=>t=>1-e(1-t),uk=fl(.33,1.53,.69,.99),ng=lk(uk),ck=ak(ng),dk=e=>e>=1?1:(e*=2)<1?.5*ng(e):.5*(2-Math.pow(2,-10*(e-1))),rg=e=>1-Math.sin(Math.acos(e)),hk=lk(rg),fk=ak(rg),JA=fl(.42,0,1,1),eR=fl(0,0,.58,1),mk=fl(.42,0,.58,1),tR=e=>Array.isArray(e)&&typeof e[0]!="number",pk=e=>Array.isArray(e)&&typeof e[0]=="number",_x={linear:dn,easeIn:JA,easeInOut:mk,easeOut:eR,circIn:rg,circInOut:fk,circOut:hk,backIn:ng,backInOut:ck,backOut:uk,anticipate:dk},nR=e=>typeof e=="string",kx=e=>{if(pk(e)){xs(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return fl(t,n,r,o)}else if(nR(e))return xs(_x[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),_x[e];return e},du=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Cx={value:null,addProjectionMetrics:null};function rR(e,t){let n=new Set,r=new Set,o=!1,s=!1;const l=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1},h=0;
vendor: 16,970 bytes, line 233
233function f(g){l.has(g)&&(p.schedule(g),e()),h++,g(d)}const p={schedule:(g,y=!1,v=!1)=>{const _=v&&o?n:r;return y&&l.add(g),_.add(g),g},cancel:g=>{r.delete(g),l.delete(g)},process:g=>{if(d=g,o){s=!0;return}o=!0;const y=n;n=r,r=y,n.forEach(f),t&&Cx.value&&Cx.value.frameloop[t].push(h),h=0,n.clear(),o=!1,s&&(s=!1,p.process(g))}};return p}const iR=40;function gk(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=du.reduce((C,j)=>(C[j]=rR(s,t?j:void 0),C),{}),{setup:d,read:h,resolveKeyframes:f,preUpdate:p,update:g,preRender:y,render:v,postRender:S}=l,_=()=>{const C=wi.useManualTiming,j=C?o.timestamp:performance.now();n=!1,C||(o.delta=r?1e3/60:Math.max(Math.min(j-o.timestamp,iR),1)),o.timestamp=j,o.isProcessing=!0,d.process(o),h.process(o),f.process(o),p.process(o),g.process(o),y.process(o),v.process(o),S.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(_))},T=()=>{n=!0,r=!0,o.isProcessing||e(_)};return{schedule:du.reduce((C,j)=>{const N=l[j];return C[j]=(A,I=!1,O=!1)=>(n||T(),N.schedule(A,I,O)),C},{}),cancel:C=>{for(let j=0;j<du.length;j++)l[du[j]].cancel(C)},state:o,steps:l}}const{schedule:Le,cancel:bi,state:ct,steps:Eh}=gk(typeof requestAnimationFrame<"u"?requestAnimationFrame:dn,!0);let Ou;function oR(){Ou=void 0}const jt={now:()=>(Ou===void 0&&jt.set(ct.isProcessing||wi.useManualTiming?ct.timestamp:performance.now()),Ou),set:e=>{Ou=e,queueMicrotask(oR)}},yk=e=>t=>typeof t=="string"&&t.startsWith(e),vk=yk("--"),sR=yk("var(--"),ig=e=>sR(e)?aR.test(e.split("/*")[0].trim()):!1,aR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Sx(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const As={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ja={...As,transform:e=>lr(0,1,e)},hu={...As,default:1},Sa=e=>Math.round(e*1e5)/1e5,og=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lR(e){return e==null}const uR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,sg=(e,t)=>n=>!!(typeof n=="string"&&uR.test(n)&&n.startsWith(e)||t&&!lR(n)&&Object.prototype.hasOwnProperty.call(n,t)),xk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,l,d]=r.match(og);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(l),alpha:d!==void 0?parseFloat(d):1}},cR=e=>lr(0,255,e),Nh={...As,transform:e=>Math.round(cR(e))},Hi={test:sg("rgb","red"),parse:xk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nh.transform(e)+", "+Nh.transform(t)+", "+Nh.transform(n)+", "+Sa(Ja.transform(r))+")"};function dR(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const rm={test:sg("#"),parse:dR,transform:Hi.transform},ml=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Wr=ml("deg"),sr=ml("%"),ee=ml("px"),hR=ml("vh"),fR=ml("vw"),Px={...sr,parse:e=>sr.parse(e)/100,transform:e=>sr.transform(e*100)},$o={test:sg("hsl","hue"),parse:xk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+sr.transform(Sa(t))+", "+sr.transform(Sa(n))+", "+Sa(Ja.transform(r))+")"},Je={test:e=>Hi.test(e)||rm.test(e)||$o.test(e),parse:e=>Hi.test(e)?Hi.parse(e):$o.test(e)?$o.parse(e):rm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Hi.transform(e):$o.transform(e),getAnimatableNone:e=>{const t=Je.parse(e);return t.alpha=0,Je.transform(t)}},mR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(og))==null?void 0:t.length)||0)+(((n=e.match(mR))==null?void 0:n.length)||0)>0}const wk="number",bk="color",gR="var",yR="var(",Tx="${}",vR=/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 ws(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const d=t.replace(vR,h=>(Je.test(h)?(r.color.push(s),o.push(bk),n.push(Je.parse(h))):h.startsWith(yR)?(r.var.push(s),o.push(gR),n.push(h)):(r.number.push(s),o.push(wk),n.push(parseFloat(h))),++s,Tx)).split(Tx);return{values:n,split:d,indexes:r,types:o}}function xR(e){return ws(e).values}function _k({split:e,types:t}){const n=e.length;return r=>{let o="";for(let s=0;s<n;s++)if(o+=e[s],r[s]!==void 0){const l=t[s];l===wk?o+=Sa(r[s]):l===bk?o+=Je.transform(r[s]):o+=r[s]}return o}}function wR(e){return _k(ws(e))}const bR=e=>typeof e=="number"?0:Je.test(e)?Je.getAnimatableNone(e):e,_R=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:bR(e);function kR(e){const t=ws(e);return _k(t)(t.values.map((r,o)=>_R(r,t.split[o])))}const An={test:pR,parse:xR,createTransformer:wR,getAnimatableNone:kR};function Lh(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 CR({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,l=0;if(!t)o=s=l=n;else{const d=n<.5?n*(1+t):n+t-n*t,h=2*n-d;o=Lh(h,d,e+1/3),s=Lh(h,d,e),l=Lh(h,d,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function _c(e,t){return n=>n>0?t:e}const De=(e,t,n)=>e+(t-e)*n,Mh=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},SR=[rm,Hi,$o],PR=e=>SR.find(t=>t.test(e));function jx(e){const t=PR(e);if(cd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===$o&&(n=CR(n)),n}const Ex=(e,t)=>{const n=jx(e),r=jx(t);if(!n||!r)return _c(e,t);const o={...n};return s=>(o.red=Mh(n.red,r.red,s),o.green=Mh(n.green,r.green,s),o.blue=Mh(n.blue,r.blue,s),o.alpha=De(n.alpha,r.alpha,s),Hi.transform(o))},im=new Set(["none","hidden"]);function TR(e,t){return im.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jR(e,t){return n=>De(e,t,n)}function ag(e){return typeof e=="number"?jR:typeof e=="string"?ig(e)?_c:Je.test(e)?Ex:LR:Array.isArray(e)?kk:typeof e=="object"?Je.test(e)?Ex:ER:_c}function kk(e,t){const n=[...e],r=n.length,o=e.map((s,l)=>ag(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=o[l](s);return n}}function ER(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=ag(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function NR(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],l=e.indexes[s][r[s]],d=e.values[l]??0;n[o]=d,r[s]++}return n}const LR=(e,t)=>{const n=An.createTransformer(t),r=ws(e),o=ws(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?im.has(e)&&!o.values.length||im.has(t)&&!r.values.length?TR(e,t):hl(kk(NR(r,o),o.values),n):(cd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),_c(e,t))};function Ck(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?De(e,t,n):ag(e)(e,t)}const MR=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Le.update(t,n),stop:()=>bi(t),now:()=>ct.isProcessing?ct.timestamp:jt.now()}},Sk=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},kc=2e4;function lg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<kc;)t+=n,r=e.next(t);return t>=kc?1/0:t}function AR(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(lg(r),kc);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:un(o)}}const Ve={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};function om(e,t){return e*Math.sqrt(1-t*t)}const RR=12;function OR(e,t,n){let r=n;for(let o=1;o<RR;o++)r=r-e(r)/t(r);return r}const Ah=.001;function IR({duration:e=Ve.duration,bounce:t=Ve.bounce,velocity:n=Ve.velocity,mass:r=Ve.mass}){let o,s;cd(e<=Bt(Ve.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let l=1-t;l=lr(Ve.minDamping,Ve.maxDamping,l),e=lr(Ve.minDuration,Ve.maxDuration,un(e)),l<1?(o=f=>{const p=f*l,g=p*e,y=p-n,v=om(f,l),S=Math.exp(-g);return Ah-y/v*S},s=f=>{const g=f*l*e,y=g*n+n,v=Math.pow(l,2)*Math.pow(f,2)*e,S=Math.exp(-g),_=om(Math.pow(f,2),l);return(-o(f)+Ah>0?-1:1)*((y-v)*S)/_}):(o=f=>{const p=Math.exp(-f*e),g=(f-n)*e+1;return-Ah+p*g},s=f=>{const p=Math.exp(-f*e),g=(n-f)*(e*e);return p*g});const d=5/e,h=OR(o,s,d);if(e=Bt(e),isNaN(h))return{stiffness:Ve.stiffness,damping:Ve.damping,duration:e};{const f=Math.pow(h,2)*r;return{stiffness:f,damping:l*2*Math.sqrt(r*f),duration:e}}}const DR=["duration","bounce"],FR=["stiffness","damping","mass"];function Nx(e,t){return t.some(n=>e[n]!==void 0)}function zR(e){let t={velocity:Ve.velocity,stiffness:Ve.stiffness,damping:Ve.damping,mass:Ve.mass,isResolvedFromDuration:!1,...e};if(!Nx(e,FR)&&Nx(e,DR))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*lr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ve.mass,stiffness:o,damping:s}}else{const n=IR({...e,velocity:0});t={...t,...n,mass:Ve.mass},t.isResolvedFromDuration=!0}return t}function Cc(e=Ve.visualDuration,t=Ve.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],d={done:!1,value:s},{stiffness:h,damping:f,mass:p,duration:g,velocity:y,isResolvedFromDuration:v}=zR({...n,velocity:-un(n.velocity||0)}),S=y||0,_=f/(2*Math.sqrt(h*p)),T=l-s,w=un(Math.sqrt(h/p)),b=Math.abs(T)<5;r||(r=b?Ve.restSpeed.granular:Ve.restSpeed.default),o||(o=b?Ve.restDelta.granular:Ve.restDelta.default);let C,j,N,A,I,O;if(_<1)N=om(w,_),A=(S+_*w*T)/N,C=F=>{const G=Math.exp(-_*w*F);return l-G*(A*Math.sin(N*F)+T*Math.cos(N*F))},I=_*w*A+T*N,O=_*w*T-A*N,j=F=>Math.exp(-_*w*F)*(I*Math.sin(N*F)+O*Math.cos(N*F));else if(_===1){C=G=>l-Math.exp(-w*G)*(T+(S+w*T)*G);const F=S+w*T;j=G=>Math.exp(-w*G)*(w*F*G-S)}else{const F=w*Math.sqrt(_*_-1);C=U=>{const ae=Math.exp(-_*w*U),q=Math.min(F*U,300);return l-ae*((S+_*w*T)*Math.sinh(q)+F*T*Math.cosh(q))/F};const G=(S+_*w*T)/F,$=_*w*G-T*F,ie=_*w*T-G*F;j=U=>{const ae=Math.exp(-_*w*U),q=Math.min(F*U,300);return ae*($*Math.sinh(q)+ie*Math.cosh(q))}}const V={calculatedDuration:v&&g||null,velocity:F=>Bt(j(F)),next:F=>{if(!v&&_<1){const $=Math.exp(-_*w*F),ie=Math.sin(N*F),U=Math.cos(N*F),ae=l-$*(A*ie+T*U),q=Bt($*(I*ie+O*U));return d.done=Math.abs(q)<=r&&Math.abs(l-ae)<=o,d.value=d.done?l:ae,d}const G=C(F);if(v)d.done=F>=g;else{const $=Bt(j(F));d.done=Math.abs($)<=r&&Math.abs(l-G)<=o}return d.value=d.done?l:G,d},toString:()=>{const F=Math.min(lg(V),kc),G=Sk($=>V.next(F*$).value,F,30);return F+"ms "+G},toTransition:()=>{}};return V}Cc.applyToOptions=e=>{const t=AR(e,100,Cc);return e.ease=t.ease,e.duration=Bt(t.duration),e.type="keyframes",e};const BR=5;function Pk(e,t,n){const r=Math.max(t-BR,0);return ok(n-e(r),t-r)}function sm({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:l,min:d,max:h,restDelta:f=.5,restSpeed:p}){const g=e[0],y={done:!1,value:g},v=O=>d!==void 0&&O<d||h!==void 0&&O>h,S=O=>d===void 0?h:h===void 0||Math.abs(d-O)<Math.abs(h-O)?d:h;let _=n*t;const T=g+_,w=l===void 0?T:l(T);w!==T&&(_=w-g);const b=O=>-_*Math.exp(-O/r),C=O=>w+b(O),j=O=>{const V=b(O),F=C(O);y.done=Math.abs(V)<=f,y.value=y.done?w:F};let N,A;const I=O=>{v(y.value)&&(N=O,A=Cc({keyframes:[y.value,S(y.value)],velocity:Pk(C,O,y.value),damping:o,stiffness:s,restDelta:f,restSpeed:p}))};return I(0),{calculatedDuration:null,next:O=>{let V=!1;return!A&&N===void 0&&(V=!0,j(O),I(O)),N!==void 0&&O>=N?A.next(O-N):(!V&&j(O),y)}}}function VR(e,t,n){const r=[],o=n||wi.mix||Ck,s=e.length-1;for(let l=0;l<s;l++){let d=o(e[l],e[l+1]);if(t){const h=Array.isArray(t)?t[l]||dn:t;d=hl(h,d)}r.push(d)}return r}function HR(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(xs(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=VR(t,r,o),h=d.length,f=p=>{if(l&&p<e[0])return t[0];let g=0;if(h>1)for(;g<e.length-2&&!(p<e[g+1]);g++);const y=Xa(e[g],e[g+1],p);return d[g](y)};return n?p=>f(lr(e[0],e[s-1],p)):f}function WR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Xa(0,t,r);e.push(De(n,1,o))}}function $R(e){const t=[0];return WR(t,e.length-1),t}function UR(e,t){return e.map(n=>n*t)}function ZR(e,t){return e.map(()=>t||mk).splice(0,e.length-1)}function Pa({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=tR(r)?r.map(kx):kx(r),s={done:!1,value:t[0]},l=UR(n&&n.length===t.length?n:$R(t),e),d=HR(l,t,{ease:Array.isArray(o)?o:ZR(t,o)});return{calculatedDuration:e,next:h=>(s.value=d(h),s.done=h>=e,s)}}const GR=e=>e!==null;function dd(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(GR),d=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!d||r===void 0?s[d]:r}const KR={decay:sm,inertia:sm,tween:Pa,keyframes:Pa,spring:Cc};function Tk(e){typeof e.type=="string"&&(e.type=KR[e.type])}class ug{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const qR=e=>e/100;class Sc extends ug{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,o;const{motionValue:n}=this.options;n&&n.updatedAt!==jt.now()&&this.tick(jt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Tk(t);const{type:n=Pa,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:l=0}=t;let{keyframes:d}=t;const h=n||Pa;h!==Pa&&typeof d[0]!="number"&&(this.mixKeyframes=hl(qR,Ck(d[0],d[1])),d=[0,100]);const f=h({...t,keyframes:d});s==="mirror"&&(this.mirroredGenerator=h({...t,keyframes:[...d].reverse(),velocity:-l})),f.calculatedDuration===null&&(f.calculatedDuration=lg(f));const{calculatedDuration:p}=f;this.calculatedDuration=p,this.resolvedDuration=p+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=f}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:d,calculatedDuration:h}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:p,repeat:g,repeatType:y,repeatDelay:v,type:S,onUpdate:_,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-f*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?w<0:w>o;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let C=this.currentTime,j=r;if(g){const O=Math.min(this.currentTime,o)/d;let V=Math.floor(O),F=O%1;!F&&O>=1&&(F=1),F===1&&V--,V=Math.min(V,g+1),!!(V%2)&&(y==="reverse"?(F=1-F,v&&(F-=v/d)):y==="mirror"&&(j=l)),C=lr(0,1,F)*d}let N;b?(this.delayState.value=p[0],N=this.delayState):N=j.next(C),s&&!b&&(N.value=s(N.value));let{done:A}=N;!b&&h!==null&&(A=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return I&&S!==sm&&(N.value=dd(p,this.options,T,this.speed)),_&&_(N.value),I&&this.finish(),N}then(t,n){return this.finished.then(t,n)}get duration(){return un(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+un(t)}get time(){return un(this.currentTime)}set time(t){t=Bt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;
233if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Pk(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(jt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=un(this.currentTime))}play(){var o,s;if(this.isStopped)return;const{driver:t=MR,startTime:n}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),(s=(o=this.options).onPlay)==null||s.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(jt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function YR(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Wi=e=>e*180/Math.PI,am=e=>{const t=Wi(Math.atan2(e[1],e[0]));return lm(t)},QR={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:am,rotateZ:am,skewX:e=>Wi(Math.atan(e[1])),skewY:e=>Wi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},lm=e=>(e=e%360,e<0&&(e+=360),e),Lx=am,Mx=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ax=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),XR={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Mx,scaleY:Ax,scale:e=>(Mx(e)+Ax(e))/2,rotateX:e=>lm(Wi(Math.atan2(e[6],e[5]))),rotateY:e=>lm(Wi(Math.atan2(-e[2],e[0]))),rotateZ:Lx,rotate:Lx,skewX:e=>Wi(Math.atan(e[4])),skewY:e=>Wi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function um(e){return e.includes("scale")?1:0}function cm(e,t){if(!e||e==="none")return um(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=XR,o=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=QR,o=d}if(!o)return um(t);
vendor: 7,956 bytes, line 233
233const s=r[t],l=o[1].split(",").map(e3);return typeof s=="function"?s(l):l[s]}const JR=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return cm(n,t)};function e3(e){return parseFloat(e.trim())}const Rs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Os=new Set(Rs),Rx=e=>e===As||e===ee,t3=new Set(["x","y","z"]),n3=Rs.filter(e=>!t3.has(e));function r3(e){const t=[];return n3.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const si={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-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:(e,{transform:t})=>cm(t,"x"),y:(e,{transform:t})=>cm(t,"y")};si.translateX=si.x;si.translateY=si.y;const Xi=new Set;let dm=!1,hm=!1,fm=!1;function jk(){if(hm){const e=Array.from(Xi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=r3(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,l])=>{var d;(d=r.getValue(s))==null||d.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}hm=!1,dm=!1,Xi.forEach(e=>e.complete(fm)),Xi.clear()}function Ek(){Xi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(hm=!0)})}function i3(){fm=!0,Ek(),jk(),fm=!1}class cg{constructor(t,n,r,o,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Xi.add(this),dm||(dm=!0,Le.read(Ek),Le.resolveKeyframes(jk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o==null?void 0:o.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const d=r.readValue(n,l);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=l),o&&s===void 0&&o.set(t[0])}YR(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Xi.delete(this)}cancel(){this.state==="scheduled"&&(Xi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const o3=e=>e.startsWith("--");function Nk(e,t,n){o3(t)?e.style.setProperty(t,n):e.style[t]=n}const s3={};function Lk(e,t){const n=ik(e);return()=>s3[t]??n()}const a3=Lk(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Mk=Lk(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ma=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ox={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ma([0,.65,.55,1]),circOut:ma([.55,0,1,.45]),backIn:ma([.31,.01,.66,-.59]),backOut:ma([.33,1.53,.69,.99])};function Ak(e,t){if(e)return typeof e=="function"?Mk()?Sk(e,t):"ease-out":pk(e)?ma(e):Array.isArray(e)?e.map(n=>Ak(n,t)||Ox.easeOut):Ox[e]}function l3(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:l="loop",ease:d="easeOut",times:h}={},f=void 0){const p={[t]:n};h&&(p.offset=h);const g=Ak(d,o);Array.isArray(g)&&(p.easing=g);const y={delay:r,duration:o,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return f&&(y.pseudoElement=f),e.animate(p,y)}function Rk(e){return typeof e=="function"&&"applyToOptions"in e}function u3({type:e,...t}){return Rk(e)&&Mk()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ok extends ug{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:d,onComplete:h}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,xs(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const f=u3(t);this.animation=l3(n,r,o,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=dd(o,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(p),Nk(n,r,p),this.animation.cancel()}h==null||h(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,o;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((o=(r=this.animation).commitStyles)==null||o.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return un(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+un(t)}get time(){return un(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Bt(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:o}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&a3()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),dn):o(this)}}const Ik={anticipate:dk,backInOut:ck,circInOut:fk};function c3(e){return e in Ik}function d3(e){typeof e.ease=="string"&&c3(e.ease)&&(e.ease=Ik[e.ease])}const Rh=10;class h3 extends Ok{constructor(t){d3(t),Tk(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const d=new Sc({...l,autoplay:!1}),h=Math.max(Rh,jt.now()-this.startTime),f=lr(0,Rh,h-Rh),p=d.sample(h).value,{name:g}=this.options;s&&g&&Nk(s,g,p),n.setWithVelocity(d.sample(Math.max(0,h-f)).value,p,f),d.stop()}}const Ix=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(An.test(e)||e==="0")&&!e.startsWith("url("));function f3(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 m3(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=Ix(o,t),d=Ix(s,t);return cd(l===d,`You are trying to animate ${t} from "${o}" to "${s}". "${l?s:o}" is not an animatable value.`,"value-not-animatable"),!l||!d?!1:f3(e)||(n==="spring"||Rk(n))&&r}function mm(e){e.duration=0,e.type="keyframes"}const Dk=new Set(["opacity","clipPath","filter","transform"]),p3=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function g3(e){for(let t=0;t<e.length;
233t++)if(typeof e[t]=="string"&&p3.test(e[t]))return!0;return!1}const y3=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),v3=ik(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function x3(e){var g;const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:l,keyframes:d}=e;if(!(((g=t==null?void 0:t.owner)==null?void 0:g.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=t.owner.getProps();return v3()&&n&&(Dk.has(n)||y3.has(n)&&g3(d))&&(n!=="transform"||!p)&&!f&&!r&&o!=="mirror"&&s!==0&&l!=="inertia"}const w3=40;class b3 extends ug{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",keyframes:d,name:h,motionValue:f,element:p,...g}){var S;super(),this.stop=()=>{var _,T;this._animation&&(this._animation.stop(),(_=this.stopTimeline)==null||_.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=jt.now();const y={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:l,name:h,motionValue:f,element:p,...g},v=(p==null?void 0:p.KeyframeResolver)||cg;this.keyframeResolver=new v(d,(_,T,w)=>this.onKeyframesResolved(_,T,y,!w),h,f,p),(S=this.keyframeResolver)==null||S.scheduleResolve()}onKeyframesResolved(t,n,r,o){var w,b;this.keyframeResolver=void 0;const{name:s,type:l,velocity:d,delay:h,isHandoff:f,onUpdate:p}=r;this.resolvedAt=jt.now();let g=!0;m3(t,s,l,d)||(g=!1,(wi.instantAnimations||!h)&&(p==null||p(dd(t,r,n))),t[0]=t[t.length-1],mm(r),r.repeat=0);const v={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>w3?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},S=g&&!f&&x3(v),_=(b=(w=v.motionValue)==null?void 0:w.owner)==null?void 0:b.current;let T;if(S)try{T=new h3({...v,element:_})}catch{T=new Sc(v)}else T=new Sc(v);T.finished.then(()=>{this.notifyFinished()}).catch(dn),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),i3()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function Fk(e,t,n,r=0,o=1){const s=Array.from(e).sort((f,p)=>f.sortNodePosition(p)).indexOf(t),l=e.size,d=(l-1)*r;return typeof n=="function"?n(s,l):o===1?s*r:d-s*r}const _3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function k3(e){const t=_3.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const C3=4;function zk(e,t,n=1){xs(n<=C3,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=k3(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return tk(l)?parseFloat(l):l}return ig(o)?zk(o,t,n+1):o}const S3={type:"spring",stiffness:500,damping:25,restSpeed:10},P3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),T3={type:"keyframes",duration:.8},j3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},E3=(e,{keyframes:t})=>t.length>2?T3:Os.has(e)?e.startsWith("scale")?P3(t[1]):S3:j3;function Bk(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function dg(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?Bk(n,e):n}const N3=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function L3(e){for(const t in e)if(!N3.has(t))return!0;return!1}const hg=(e,t,n,r={},o,s)=>l=>{const d=dg(r,e)||{},h=d.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Bt(h);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-f,onUpdate:y=>{t.set(y),d.onUpdate&&d.onUpdate(y)},onComplete:()=>{l(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:s?void 0:o};L3(d)||Object.assign(p,E3(e,p)),p.duration&&(p.duration=Bt(p.duration)),p.repeatDelay&&(p.repeatDelay=Bt(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(mm(p),p.delay===0&&(g=!0)),(wi.instantAnimations||wi.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(g=!0,mm(p),p.delay=0),p.allowFlatten=!d.type&&!d.ease,g&&!s&&t.get()!==void 0){const y=dd(p.keyframes,d);if(y!==void 0){Le.update(()=>{p.onUpdate(y),p.onComplete()});return}}return d.isSync?new Sc(p):new b3(p)};function Dx(e){const t=[{},{}];
vendor: 60,461 bytes, line 233
233return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function fg(e,t,n,r){if(typeof t=="function"){const[o,s]=Dx(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Dx(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function Ji(e,t,n){const r=e.getProps();return fg(r,t,n!==void 0?n:r.custom,e)}const Vk=new Set(["width","height","top","left","right","bottom",...Rs]),Fx=30,M3=e=>!isNaN(parseFloat(e));class A3{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const o=jt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=jt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=M3(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 tg);const r=this.events[t].add(n);return t==="change"?()=>{r(),Le.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Fx)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Fx);return ok(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bs(e,t){return new A3(e,t)}const pm=e=>Array.isArray(e);function R3(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bs(n))}function O3(e){return pm(e)?e[e.length-1]||0:e}function I3(e,t){const n=Ji(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const l in s){const d=O3(s[l]);R3(e,l,d)}}const dt=e=>!!(e&&e.getVelocity);function D3(e){return!!(dt(e)&&e.add)}function gm(e,t){const n=e.getValue("willChange");if(D3(n))return n.add(t);if(!n&&wi.WillChange){const r=new wi.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function mg(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const F3="framerAppearId",Hk="data-"+mg(F3);function Wk(e){return e.props[Hk]}function z3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $k(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s,transitionEnd:l,...d}=t;const h=e.getDefaultTransition();s=s?Bk(s,h):h;const f=s==null?void 0:s.reduceMotion;r&&(s=r);const p=[],g=o&&e.animationState&&e.animationState.getState()[o];for(const y in d){const v=e.getValue(y,e.latestValues[y]??null),S=d[y];if(S===void 0||g&&z3(g,y))continue;const _={delay:n,...dg(s||{},y)},T=v.get();if(T!==void 0&&!v.isAnimating()&&!Array.isArray(S)&&S===T&&!_.velocity){Le.update(()=>v.set(S));continue}let w=!1;if(window.MotionHandoffAnimation){const j=Wk(e);if(j){const N=window.MotionHandoffAnimation(j,y,Le);N!==null&&(_.startTime=N,w=!0)}}gm(e,y);const b=f??e.shouldReduceMotion;v.start(hg(y,v,S,b&&Vk.has(y)?{type:!1}:_,e,w));const C=v.animation;C&&p.push(C)}if(l){const y=()=>Le.update(()=>{l&&I3(e,l)});p.length?Promise.all(p).then(y):y()}return p}function ym(e,t,n={}){var h;const r=Ji(e,t,n.type==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all($k(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:y}=o;return B3(e,t,f,p,g,y,n)}:()=>Promise.resolve(),{when:d}=o;if(d){const[f,p]=d==="beforeChildren"?[s,l]:[l,s];return f().then(()=>p())}else return Promise.all([s(),l(n.delay)])}function B3(e,t,n=0,r=0,o=0,s=1,l){const d=[];for(const h of e.variantChildren)h.notify("AnimationStart",t),d.push(ym(h,t,{...l,delay:n+(typeof r=="function"?0:r)+Fk(e.variantChildren,h,r,o,s)}).then(()=>h.notify("AnimationComplete",t)));return Promise.all(d)}function V3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>ym(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=ym(e,t,n);else{const o=typeof t=="function"?Ji(e,t,n.custom):t;r=Promise.all($k(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const H3={test:e=>e==="auto",parse:e=>e},Uk=e=>t=>t.test(e),Zk=[As,ee,sr,Wr,fR,hR,H3],zx=e=>Zk.find(Uk(e));function W3(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||rk(e):!0}const $3=new Set(["brightness","contrast","saturate","opacity"]);function U3(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(og)||[];if(!r)return e;const o=n.replace(r,"");let s=$3.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const Z3=/\b([a-z-]*)\(.*?\)/gu,vm={...An,getAnimatableNone:e=>{const t=e.match(Z3);return t?t.map(U3).join(" "):e}},xm={...An,getAnimatableNone:e=>{const t=An.parse(e);return An.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Bx={...As,transform:Math.round},G3={rotate:Wr,rotateX:Wr,rotateY:Wr,rotateZ:Wr,scale:hu,scaleX:hu,scaleY:hu,scaleZ:hu,skew:Wr,skewX:Wr,skewY:Wr,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:Ja,originX:Px,originY:Px,originZ:ee},pg={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,top:ee,right:ee,bottom:ee,left:ee,inset:ee,insetBlock:ee,insetBlockStart:ee,insetBlockEnd:ee,insetInline:ee,insetInlineStart:ee,insetInlineEnd:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,paddingBlock:ee,paddingBlockStart:ee,paddingBlockEnd:ee,paddingInline:ee,paddingInlineStart:ee,paddingInlineEnd:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,marginBlock:ee,marginBlockStart:ee,marginBlockEnd:ee,marginInline:ee,marginInlineStart:ee,marginInlineEnd:ee,fontSize:ee,backgroundPositionX:ee,backgroundPositionY:ee,...G3,zIndex:Bx,fillOpacity:Ja,strokeOpacity:Ja,numOctaves:Bx},K3={...pg,color:Je,backgroundColor:Je,outlineColor:Je,fill:Je,stroke:Je,borderColor:Je,borderTopColor:Je,borderRightColor:Je,borderBottomColor:Je,borderLeftColor:Je,filter:vm,WebkitFilter:vm,mask:xm,WebkitMask:xm},Gk=e=>K3[e],q3=new Set([vm,xm]);function Kk(e,t){let n=Gk(e);return q3.has(n)||(n=An),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Y3=new Set(["auto","none","0"]);function Q3(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!Y3.has(s)&&ws(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=Kk(n,o)}class X3 extends cg{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let p=0;p<t.length;p++){let g=t[p];if(typeof g=="string"&&(g=g.trim(),ig(g))){const y=zk(g,n.current);y!==void 0&&(t[p]=y),p===t.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!Vk.has(r)||t.length!==2)return;const[o,s]=t,l=zx(o),d=zx(s),h=Sx(o),f=Sx(s);if(h!==f&&si[r]){this.needsMeasurement=!0;return}if(l!==d)if(Rx(l)&&Rx(d))for(let p=0;p<t.length;p++){const g=t[p];typeof g=="string"&&(t[p]=parseFloat(g))}else si[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||W3(t[o]))&&r.push(o);r.length&&Q3(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=si[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var d;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,l=r[s];r[s]=si[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),(d=this.removedTransforms)!=null&&d.length&&this.removedTransforms.forEach(([h,f])=>{t.getValue(h).set(f)}),this.resolveNoneKeyframes()}}function qk(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const Yk=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Iu(e){return nk(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:gg,cancel:IF}=gk(queueMicrotask,!1),kn={x:!1,y:!1};function Qk(){return kn.x||kn.y}function J3(e){return e==="x"||e==="y"?kn[e]?null:(kn[e]=!0,()=>{kn[e]=!1}):kn.x||kn.y?null:(kn.x=kn.y=!0,()=>{kn.x=kn.y=!1})}function Xk(e,t){const n=qk(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function eO(e){return!(e.pointerType==="touch"||Qk())}function tO(e,t,n={}){const[r,o,s]=Xk(e,n);return r.forEach(l=>{let d=!1,h=!1,f;const p=()=>{l.removeEventListener("pointerleave",S)},g=T=>{f&&(f(T),f=void 0),p()},y=T=>{d=!1,window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",y),h&&(h=!1,g(T))},v=()=>{d=!0,window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",y,o)},S=T=>{if(T.pointerType!=="touch"){if(d){h=!0;return}g(T)}},_=T=>{if(!eO(T))return;h=!1;const w=t(l,T);typeof w=="function"&&(f=w,l.addEventListener("pointerleave",S,o))};l.addEventListener("pointerenter",_,o),l.addEventListener("pointerdown",v,o)}),s}const Jk=(e,t)=>t?e===t?!0:Jk(e,t.parentElement):!1,yg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,nO=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rO(e){return nO.has(e.tagName)||e.isContentEditable===!0}const iO=new Set(["INPUT","SELECT","TEXTAREA"]);function oO(e){return iO.has(e.tagName)||e.isContentEditable===!0}const Du=new WeakSet;function Vx(e){return t=>{t.key==="Enter"&&e(t)}}function Oh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const sO=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Vx(()=>{if(Du.has(n))return;Oh(n,"down");const o=Vx(()=>{Oh(n,"up")}),s=()=>Oh(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Hx(e){return yg(e)&&!Qk()}const Wx=new WeakSet;function aO(e,t,n={}){const[r,o,s]=Xk(e,n),l=d=>{const h=d.currentTarget;if(!Hx(d)||Wx.has(d))return;Du.add(h),n.stopPropagation&&Wx.add(d);const f=t(h,d),p=(v,S)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",y),Du.has(h)&&Du.delete(h),Hx(v)&&typeof f=="function"&&f(v,{success:S})},g=v=>{p(v,h===window||h===document||n.useGlobalTarget||Jk(h,v.target))},y=v=>{p(v,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",y,o)};return r.forEach(d=>{(n.useGlobalTarget?window:d).addEventListener("pointerdown",l,o),Iu(d)&&(d.addEventListener("focus",f=>sO(f,o)),!rO(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),s}function vg(e){return nk(e)&&"ownerSVGElement"in e}const Fu=new WeakMap;let $r;const eC=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:vg(r)&&"getBBox"in r?r.getBBox()[t]:r[n],lO=eC("inline","width","offsetWidth"),uO=eC("block","height","offsetHeight");function cO({target:e,borderBoxSize:t}){var n;(n=Fu.get(e))==null||n.forEach(r=>{r(e,{get width(){return lO(e,t)},get height(){return uO(e,t)}})})}function dO(e){e.forEach(cO)}function hO(){typeof ResizeObserver>"u"||($r=new ResizeObserver(dO))}function fO(e,t){$r||hO();const n=qk(e);return n.forEach(r=>{let o=Fu.get(r);o||(o=new Set,Fu.set(r,o)),o.add(t),$r==null||$r.observe(r)}),()=>{n.forEach(r=>{const o=Fu.get(r);o==null||o.delete(t),o!=null&&o.size||$r==null||$r.unobserve(r)})}}const zu=new Set;let Uo;function mO(){Uo=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};zu.forEach(t=>t(e))},window.addEventListener("resize",Uo)}function pO(e){return zu.add(e),Uo||mO(),()=>{zu.delete(e),!zu.size&&typeof Uo=="function"&&(window.removeEventListener("resize",Uo),Uo=void 0)}}function $x(e,t){return typeof e=="function"?pO(e):fO(e,t)}function gO(e){return vg(e)&&e.tagName==="svg"}const yO=[...Zk,Je,An],vO=e=>yO.find(Uk(e)),Ux=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zo=()=>({x:Ux(),y:Ux()}),Zx=()=>({min:0,max:0}),nt=()=>({x:Zx(),y:Zx()}),xO=new WeakMap;function hd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function el(e){return typeof e=="string"||Array.isArray(e)}const xg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wg=["initial",...xg];function fd(e){return hd(e.animate)||wg.some(t=>el(e[t]))}function tC(e){return!!(fd(e)||e.variants)}function wO(e,t,n){for(const r in t){const o=t[r],s=n[r];if(dt(o))e.addValue(r,o);else if(dt(s))e.addValue(r,bs(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(r);e.addValue(r,bs(l!==void 0?l:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wm={current:null},nC={current:!1},bO=typeof window<"u";function _O(){if(nC.current=!0,!!bO)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wm.current=e.matches;e.addEventListener("change",t),t()}else wm.current=!1}const Gx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Pc={};function rC(e){Pc=e}function kO(){return Pc}class CO{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:s,blockInitialAnimation:l,visualState:d},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=cg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 v=jt.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Le.render(this.render,!1,!0))};const{latestValues:f,renderState:p}=d;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=o,this.skipAnimationsConfig=s,this.options=h,this.blockInitialAnimation=!!l,this.isControllingVariants=fd(n),this.isVariantNode=tC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...y}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in y){const S=y[v];f[v]!==void 0&&dt(S)&&S.set(f[v])}}mount(t){var n,r;if(this.hasBeenMounted)for(const o in this.initialValues)(n=this.values.get(o))==null||n.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=t,xO.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((o,s)=>this.bindToMotionValue(s,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(nC.current||_O(),this.shouldReduceMotion=wm.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),bi(this.notifyUpdate),bi(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Dk.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:d,times:h,ease:f,duration:p}=n.accelerate,g=new Ok({element:this.current,name:t,keyframes:d,times:h,ease:f,duration:Bt(p)}),y=l(g);this.valueSubscriptions.set(t,()=>{y(),g.cancel()});return}const r=Os.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),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 Pc){const n=Pc[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nt()}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<Gx.length;r++){const o=Gx[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,l=t[s];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=wO(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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=bs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(tk(r)||rk(r))?r=parseFloat(r):!vO(r)&&An.test(n)&&(r=Kk(t,n)),this.setBaseTarget(t,dt(r)?r.get():r)),dt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const l=fg(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);l&&(r=l[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!dt(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new tg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){gg.render(this.render)}}class iC extends CO{constructor(){super(...arguments),this.KeyframeResolver=X3}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[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;dt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Si{constructor(t){this.isMounted=!1,this.node=t}update(){}}function oC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function SO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function PO(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 Ih(e){return e===void 0||e===1}function bm({scale:e,scaleX:t,scaleY:n}){return!Ih(e)||!Ih(t)||!Ih(n)}function Fi(e){return bm(e)||sC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sC(e){return Kx(e.x)||Kx(e.y)}function Kx(e){return e&&e!=="0%"}function Tc(e,t,n){const r=e-n,o=t*r;return n+o}function qx(e,t,n,r,o){return o!==void 0&&(e=Tc(e,o,r)),Tc(e,n,r)+t}function _m(e,t=0,n=1,r,o){e.min=qx(e.min,t,n,r,o),e.max=qx(e.max,t,n,r,o)}function aC(e,{x:t,y:n}){_m(e.x,t.translate,t.scale,t.originPoint),_m(e.y,n.translate,n.scale,n.originPoint)}const Yx=.999999999999,Qx=1.0000000000001;function TO(e,t,n,r=!1){var d;const o=n.length;if(!o)return;t.x=t.y=1;let s,l;for(let h=0;h<o;h++){s=n[h],l=s.projectionDelta;const{visualElement:f}=s.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(Jn(e.x,-s.scroll.offset.x),Jn(e.y,-s.scroll.offset.y)),l&&(t.x*=l.x.scale,t.y*=l.y.scale,aC(e,l)),r&&Fi(s.latestValues)&&Bu(e,s.latestValues,(d=s.layout)==null?void 0:d.layoutBox))}t.x<Qx&&t.x>Yx&&(t.x=1),t.y<Qx&&t.y>Yx&&(t.y=1)}function Jn(e,t){e.min+=t,e.max+=t}function Xx(e,t,n,r,o=.5){const s=De(e.min,e.max,o);_m(e,t,n,s,r)}function Jx(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Bu(e,t,n){const r=n??e;Xx(e.x,Jx(t.x,r.x),t.scaleX,t.scale,t.originX),Xx(e.y,Jx(t.y,r.y),t.scaleY,t.scale,t.originY)}function lC(e,t){return oC(PO(e.getBoundingClientRect(),t))}function jO(e,t,n){const r=lC(e,n),{scroll:o}=t;return o&&(Jn(r.x,o.offset.x),Jn(r.y,o.offset.y)),r}const EO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NO=Rs.length;function LO(e,t,n){let r="",o=!0;for(let s=0;s<NO;s++){const l=Rs[s],d=e[l];if(d===void 0)continue;let h=!0;if(typeof d=="number")h=d===(l.startsWith("scale")?1:0);else{const f=parseFloat(d);h=l.startsWith("scale")?f===1:f===0}if(!h||n){const f=Yk(d,pg[l]);if(!h){o=!1;const p=EO[l]||l;r+=`${p}(${f}) `}n&&(t[l]=f)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function bg(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let l=!1,d=!1;for(const h in t){const f=t[h];if(Os.has(h)){l=!0;continue}else if(vk(h)){o[h]=f;continue}else{const p=Yk(f,pg[h]);h.startsWith("origin")?(d=!0,s[h]=p):r[h]=p}}if(t.transform||(l||n?r.transform=LO(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:h="50%",originY:f="50%",originZ:p=0}=s;r.transformOrigin=`${h} ${f} ${p}`}}function uC(e,{style:t,vars:n},r,o){const s=e.style;let l;for(l in t)s[l]=t[l];o==null||o.applyProjectionStyles(s,r);for(l in n)s.setProperty(l,n[l])}function e0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const la={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ee.test(e))e=parseFloat(e);else return e;const n=e0(e,t.target.x),r=e0(e,t.target.y);return`${n}% ${r}%`}},MO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=An.parse(e);if(o.length>5)return r;const s=An.createTransformer(e),l=typeof o[0]!="number"?1:0,d=n.x.scale*t.x,h=n.y.scale*t.y;o[0+l]/=d,o[1+l]/=h;const f=De(d,h,.5);return typeof o[2+l]=="number"&&(o[2+l]/=f),typeof o[3+l]=="number"&&(o[3+l]/=f),s(o)}},km={borderRadius:{...la,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:la,borderTopRightRadius:la,borderBottomLeftRadius:la,borderBottomRightRadius:la,boxShadow:MO};function cC(e,{layout:t,layoutId:n}){return Os.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!km[e]||e==="opacity")}function _g(e,t,n){var l;const r=e.style,o=t==null?void 0:t.style,s={};if(!r)return s;for(const d in r)(dt(r[d])||o&&dt(o[d])||cC(d,e)||((l=n==null?void 0:n.getValue(d))==null?void 0:l.liveStyle)!==void 0)&&(s[d]=r[d]);return s}function AO(e){return window.getComputedStyle(e)}class RO extends iC{constructor(){super(...arguments),this.type="html",this.renderInstance=uC}readValueFromInstance(t,n){var r;if(Os.has(n))return(r=this.projection)!=null&&r.isProjecting?um(n):JR(t,n);{const o=AO(t),s=(vk(n)?o.getPropertyValue(n):o[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return lC(t,n)}build(t,n,r){bg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return _g(t,n,r)}}const OO={offset:"stroke-dashoffset",array:"stroke-dasharray"},IO={offset:"strokeDashoffset",array:"strokeDasharray"};function DO(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?OO:IO;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const FO=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function dC(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...d},h,f,p){if(bg(e,d,f),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y}=e;g.transform&&(y.transform=g.transform,delete g.transform),(y.transform||g.transformOrigin)&&(y.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),y.transform&&(y.transformBox=(p==null?void 0:p.transformBox)??"fill-box",delete g.transformBox);for(const v of FO)g[v]!==void 0&&(y[v]=g[v],delete g[v]);t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),o!==void 0&&DO(g,o,s,l,!1)}const hC=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"]),fC=e=>typeof e=="string"&&e.toLowerCase()==="svg";function zO(e,t,n,r){uC(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(hC.has(o)?o:mg(o),t.attrs[o])}function mC(e,t,n){const r=_g(e,t,n);for(const o in e)if(dt(e[o])||dt(t[o])){const s=Rs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}class BO extends iC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Os.has(n)){const r=Gk(n);return r&&r.default||0}return n=hC.has(n)?n:mg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return mC(t,n,r)}build(t,n,r){dC(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){zO(t,n,r,o)}mount(t){this.isSVGTag=fC(t.tagName),super.mount(t)}}const VO=wg.length;function pC(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?pC(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<VO;n++){const r=wg[n],o=e.props[r];(el(o)||o===!1)&&(t[r]=o)}return t}function gC(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}const HO=[...xg].reverse(),WO=xg.length;function $O(e){return t=>Promise.all(t.map(({animation:n,options:r})=>V3(e,n,r)))}function UO(e){let t=$O(e),n=t0(),r=!0,o=!1;const s=f=>(p,g)=>{var v;const y=Ji(e,g,f==="exit"?(v=e.presenceContext)==null?void 0:v.custom:void 0);if(y){const{transition:S,transitionEnd:_,...T}=y;p={...p,...T,..._}}return p};function l(f){t=f(e)}function d(f){const{props:p}=e,g=pC(e.parent)||{},y=[],v=new Set;let S={},_=1/0;for(let w=0;w<WO;w++){const b=HO[w],C=n[b],j=p[b]!==void 0?p[b]:g[b],N=el(j),A=b===f?C.isActive:null;A===!1&&(_=w);let I=j===g[b]&&j!==p[b]&&N;if(I&&(r||o)&&e.manuallyAnimateOnMount&&(I=!1),C.protectedKeys={...S},!C.isActive&&A===null||!j&&!C.prevProp||hd(j)||typeof j=="boolean")continue;if(b==="exit"&&C.isActive&&A!==!0){C.prevResolvedValues&&(S={...S,...C.prevResolvedValues});continue}const O=ZO(C.prevProp,j);let V=O||b===f&&C.isActive&&!I&&N||w>_&&N,F=!1;const G=Array.isArray(j)?j:[j];let $=G.reduce(s(b),{});A===!1&&($={});const{prevResolvedValues:ie={}}=C,U={...ie,...$},ae=M=>{V=!0,v.has(M)&&(F=!0,v.delete(M)),C.needsAnimating[M]=!0;const B=e.getValue(M);B&&(B.liveStyle=!1)};for(const M in U){const B=$[M],z=ie[M];if(S.hasOwnProperty(M))continue;let Y=!1;pm(B)&&pm(z)?Y=!gC(B,z):Y=B!==z,Y?B!=null?ae(M):v.add(M):B!==void 0&&v.has(M)?ae(M):C.protectedKeys[M]=!0}C.prevProp=j,C.prevResolvedValues=$,C.isActive&&(S={...S,...$}),(r||o)&&e.blockInitialAnimation&&(V=!1);const q=I&&O;V&&(!q||F)&&y.push(...G.map(M=>{const B={type:b};if(typeof M=="string"&&(r||o)&&!q&&e.manuallyAnimateOnMount&&e.parent){const{parent:z}=e,Y=Ji(z,M);if(z.enteringChildren&&Y){const{delayChildren:X}=Y.transition||{};B.delay=Fk(z.enteringChildren,e,X)}}return{animation:M,options:B}}))}if(v.size){const w={};if(typeof p.initial!="boolean"){const b=Ji(e,Array.isArray(p.initial)?p.initial[0]:p.initial);b&&b.transition&&(w.transition=b.transition)}v.forEach(b=>{const C=e.getBaseTarget(b),j=e.getValue(b);j&&(j.liveStyle=!0),w[b]=C??null}),y.push({animation:w})}let T=!!y.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,o=!1,T?t(y):Promise.resolve()}function h(f,p){var y;if(n[f].isActive===p)return Promise.resolve();(y=e.variantChildren)==null||y.forEach(v=>{var S;return(S=v.animationState)==null?void 0:S.setActive(f,p)}),n[f].isActive=p;const g=d(f);for(const v in n)n[v].protectedKeys={};return g}return{animateChanges:d,setActive:h,setAnimateFunction:l,getState:()=>n,reset:()=>{n=t0(),o=!0}}}function ZO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gC(t,e):!1}function Oi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t0(){return{animate:Oi(!0),whileInView:Oi(),whileHover:Oi(),whileTap:Oi(),whileDrag:Oi(),whileFocus:Oi(),exit:Oi()}}function Cm(e,t){e.min=t.min,e.max=t.max}function _n(e,t){Cm(e.x,t.x),Cm(e.y,t.y)}function n0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const yC=1e-4,GO=1-yC,KO=1+yC,vC=.01,qO=0-vC,YO=0+vC;function Et(e){return e.max-e.min}function QO(e,t,n){return Math.abs(e-t)<=n}function r0(e,t,n,r=.5){e.origin=r,e.originPoint=De(t.min,t.max,e.origin),e.scale=Et(n)/Et(t),e.translate=De(n.min,n.max,e.origin)-e.originPoint,(e.scale>=GO&&e.scale<=KO||isNaN(e.scale))&&(e.scale=1),(e.translate>=qO&&e.translate<=YO||isNaN(e.translate))&&(e.translate=0)}function Ta(e,t,n,r){r0(e.x,t.x,n.x,r?r.originX:void 0),r0(e.y,t.y,n.y,r?r.originY:void 0)}function i0(e,t,n,r=0){const o=r?De(n.min,n.max,r):n.min;e.min=o+t.min,e.max=e.min+Et(t)}function XO(e,t,n,r){i0(e.x,t.x,n.x,r==null?void 0:r.x),i0(e.y,t.y,n.y,r==null?void 0:r.y)}function o0(e,t,n,r=0){const o=r?De(n.min,n.max,r):n.min;e.min=t.min-o,e.max=e.min+Et(t)}function jc(e,t,n,r){o0(e.x,t.x,n.x,r==null?void 0:r.x),o0(e.y,t.y,n.y,r==null?void 0:r.y)}function s0(e,t,n,r,o){return e-=t,e=Tc(e,1/n,r),o!==void 0&&(e=Tc(e,1/o,r)),e}function JO(e,t=0,n=1,r=.5,o,s=e,l=e){if(sr.test(t)&&(t=parseFloat(t),t=De(l.min,l.max,t/100)-l.min),typeof t!="number")return;let d=De(s.min,s.max,r);e===s&&(d-=t),e.min=s0(e.min,t,n,d,o),e.max=s0(e.max,t,n,d,o)}function a0(e,t,[n,r,o],s,l){JO(e,t[n],t[r],t[o],t.scale,s,l)}const eI=["x","scaleX","originX"],tI=["y","scaleY","originY"];function l0(e,t,n,r){a0(e.x,t,eI,n?n.x:void 0,r?r.x:void 0),a0(e.y,t,tI,n?n.y:void 0,r?r.y:void 0)}function u0(e){return e.translate===0&&e.scale===1}function xC(e){return u0(e.x)&&u0(e.y)}function c0(e,t){return e.min===t.min&&e.max===t.max}function nI(e,t){return c0(e.x,t.x)&&c0(e.y,t.y)}function d0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wC(e,t){return d0(e.x,t.x)&&d0(e.y,t.y)}function h0(e){return Et(e.x)/Et(e.y)}function f0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function qn(e){return[e("x"),e("y")]}function rI(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((o||s||l)&&(r=`translate3d(${o}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:p,rotateX:g,rotateY:y,skewX:v,skewY:S}=n;f&&(r=`perspective(${f}px) ${r}`),p&&(r+=`rotate(${p}deg) `),g&&(r+=`rotateX(${g}deg) `),y&&(r+=`rotateY(${y}deg) `),v&&(r+=`skewX(${v}deg) `),S&&(r+=`skewY(${S}deg) `)}const d=e.x.scale*t.x,h=e.y.scale*t.y;return(d!==1||h!==1)&&(r+=`scale(${d}, ${h})`),r||"none"}const bC=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],iI=bC.length,m0=e=>typeof e=="string"?parseFloat(e):e,p0=e=>typeof e=="number"||ee.test(e);function oI(e,t,n,r,o,s){o?(e.opacity=De(0,n.opacity??1,sI(r)),e.opacityExit=De(t.opacity??1,0,aI(r))):s&&(e.opacity=De(t.opacity??1,n.opacity??1,r));for(let l=0;l<iI;l++){const d=bC[l];let h=g0(t,d),f=g0(n,d);if(h===void 0&&f===void 0)continue;h||(h=0),f||(f=0),h===0||f===0||p0(h)===p0(f)?(e[d]=Math.max(De(m0(h),m0(f),r),0),(sr.test(f)||sr.test(h))&&(e[d]+="%")):e[d]=f}(t.rotate||n.rotate)&&(e.rotate=De(t.rotate||0,n.rotate||0,r))}function g0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const sI=_C(0,.5,hk),aI=_C(.5,.95,dn);function _C(e,t,n){return r=>r<e?0:r>t?1:n(Xa(e,t,r))}function lI(e,t,n){const r=dt(e)?e:bs(e);return r.start(hg("",r,t,n)),r.animation}function tl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const uI=(e,t)=>e.depth-t.depth;class cI{constructor(){this.children=[],this.isDirty=!1}add(t){eg(this.children,t),this.isDirty=!0}remove(t){bc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(uI),this.isDirty=!1,this.children.forEach(t)}}function dI(e,t){const n=jt.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(bi(r),e(s-t))};return Le.setup(r,!0),()=>bi(r)}function Vu(e){return dt(e)?e.get():e}class hI{constructor(){this.members=[]}add(t){eg(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;(!o||o.isConnected===!1)&&!r.snapshot&&(bc(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(bc(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){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1&&((n=o.instance)==null?void 0:n.isConnected)!==!1)return this.promote(o),!0}return!1}promote(t,n){var o;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:l}=t.options;(s===void 0||s!==l)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(o=t.root)!=null&&o.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,o,s,l;(r=(n=t.options).onExitComplete)==null||r.call(n),(l=(o=t.resumingFrom)==null?void 0:(s=o.options).onExitComplete)==null||l.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Hu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Dh=["","X","Y","Z"],fI=1e3;let mI=0;function Fh(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function kC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Wk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Le,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&kC(r)}function CC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(l={},d=t==null?void 0:t()){this.id=mI++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(yI),this.nodes.forEach(kI),this.nodes.forEach(CI),this.nodes.forEach(vI)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new cI)}addEventListener(l,d){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new tg),this.eventHandlers.get(l).add(d)}notifyListeners(l,...d){const h=this.eventHandlers.get(l);h&&h.notify(...d)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=vg(l)&&!gO(l),this.instance=l;const{layoutId:d,layout:h,visualElement:f}=this.options;if(f&&!f.current&&f.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||d)&&(this.isLayoutDirty=!0),e){let p,g=0;const y=()=>this.root.updateBlockedByResize=!1;Le.read(()=>{g=window.innerWidth}),e(l,()=>{const v=window.innerWidth;v!==g&&(g=v,this.root.updateBlockedByResize=!0,p&&p(),p=dI(y,250),Hu.hasAnimatedSinceResize&&(Hu.hasAnimatedSinceResize=!1,this.nodes.forEach(x0)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&f&&(d||h)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||f.getDefaultTransition()||EI,{onLayoutAnimationStart:_,onLayoutAnimationComplete:T}=f.getProps(),w=!this.targetLayout||!wC(this.targetLayout,v),b=!g&&y;if(this.options.layoutRoot||this.resumeFrom||b||g&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...dg(S,"layout"),onPlay:_,onComplete:T};(f.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(p,b)}else g||x0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,this.eventHandlers.clear(),bi(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(SI),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&&kC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,(typeof g.latestValues.x=="string"||typeof g.latestValues.y=="string")&&(g.isLayoutDirty=!0),g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const h=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),h&&this.nodes.forEach(wI),this.nodes.forEach(y0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(v0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(bI),this.nodes.forEach(_I),this.nodes.forEach(pI),this.nodes.forEach(gI)):this.nodes.forEach(v0),this.clearAllSnapshots();const d=jt.now();ct.delta=lr(0,1e3/60,d-ct.timestamp),ct.timestamp=d,ct.isProcessing=!0,Eh.update.process(ct),Eh.preRender.process(ct),Eh.render.process(ct),ct.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xI),this.sharedNodes.forEach(PI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Et(this.snapshot.measuredBox.x)&&!Et(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=nt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(d=!1),d&&this.instance){const h=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!xC(this.projectionDelta),h=this.getTransformTemplate(),f=h?h(this.latestValues,""):void 0,p=f!==this.prevTransformTemplateValue;l&&this.instance&&(d||Fi(this.latestValues)||p)&&(o(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return l&&(h=this.removeTransform(h)),NI(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:l}=this.options;if(!l)return nt();const d=l.measureViewportBox();if(!(((f=this.scroll)==null?void 0:f.wasRoot)||this.path.some(LI))){const{scroll:p}=this.root;p&&(Jn(d.x,p.offset.x),Jn(d.y,p.offset.y))}return d}removeElementScroll(l){var h;const d=nt();if(_n(d,l),(h=this.scroll)!=null&&h.wasRoot)return d;for(let f=0;f<this.path.length;f++){const p=this.path[f],{scroll:g,options:y}=p;p!==this.root&&g&&y.layoutScroll&&(g.wasRoot&&_n(d,l),Jn(d.x,g.offset.x),Jn(d.y,g.offset.y))}return d}applyTransform(l,d=!1,h){var p,g;const f=h||nt();_n(f,l);for(let y=0;y<this.path.length;y++){const v=this.path[y];!d&&v.options.layoutScroll&&v.scroll&&v!==v.root&&(Jn(f.x,-v.scroll.offset.x),Jn(f.y,-v.scroll.offset.y)),Fi(v.latestValues)&&Bu(f,v.latestValues,(p=v.layout)==null?void 0:p.layoutBox)}return Fi(this.latestValues)&&Bu(f,this.latestValues,(g=this.layout)==null?void 0:g.layoutBox),f}removeTransform(l){var h;const d=nt();_n(d,l);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!Fi(p.latestValues))continue;let g;p.instance&&(bm(p.latestValues)&&p.updateSnapshot(),g=nt(),_n(g,p.measurePageBox())),l0(d,p.latestValues,(h=p.snapshot)==null?void 0:h.layoutBox,g)}return Fi(this.latestValues)&&l0(d,this.latestValues),d}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!==ct.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var v;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==d;if(!(l||h&&this.isSharedProjectionDirty||this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:g}=this.options;if(!this.layout||!(p||g))return;this.resolvedRelativeTargetAt=ct.timestamp;const y=this.getClosestProjectingParent();y&&this.linkedParentVersion!==y.layoutVersion&&!y.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&y&&y.layout?this.createRelativeTarget(y,this.layout.layoutBox,y.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=nt(),this.targetWithTransforms=nt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),XO(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):_n(this.target,this.layout.layoutBox),aC(this.target,this.targetDelta)):_n(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?this.createRelativeTarget(y,this.target,y.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||bm(this.parent.latestValues)||sC(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(l,d,h){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nt(),this.relativeTargetOrigin=nt(),jc(this.relativeTargetOrigin,d,h,this.options.layoutAnchor||void 0),_n(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var S;const l=this.getLead(),d=!!this.resumingFrom||this!==l;let h=!0;if((this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty)&&(h=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===ct.timestamp&&(h=!1),h)return;const{layout:f,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||p))return;_n(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;TO(this.layoutCorrected,this.treeScale,this.path,d),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=nt());const{target:v}=l;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(n0(this.prevProjectionDelta.x,this.projectionDelta.x),n0(this.prevProjectionDelta.y,this.projectionDelta.y)),Ta(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!f0(this.projectionDelta.x,this.prevProjectionDelta.x)||!f0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var d;if((d=this.options.visualElement)==null||d.scheduleRender(),l){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Zo(),this.projectionDelta=Zo(),this.projectionDeltaWithTransform=Zo()}setAnimationOrigin(l,d=!1){const h=this.snapshot,f=h?h.latestValues:{},p={...this.latestValues},g=Zo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const y=nt(),v=h?h.source:void 0,S=this.layout?this.layout.source:void 0,_=v!==S,T=this.getStack(),w=!T||T.members.length<=1,b=!!(_&&!w&&this.options.crossfade===!0&&!this.path.some(jI));this.animationProgress=0;let C;this.mixTargetDelta=j=>{const N=j/1e3;w0(g.x,l.x,N),w0(g.y,l.y,N),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jc(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),TI(this.relativeTarget,this.relativeTargetOrigin,y,N),C&&nI(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=nt()),_n(C,this.relativeTarget)),_&&(this.animationValues=p,oI(p,f,this.latestValues,N,b,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var d,h,f;this.notifyListeners("animationStart"),(d=this.currentAnimation)==null||d.stop(),(f=(h=this.resumingFrom)==null?void 0:h.currentAnimation)==null||f.stop(),this.pendingAnimation&&(bi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Le.update(()=>{Hu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bs(0)),this.motionValue.jump(0,!1),this.currentAnimation=lI(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),l.onUpdate&&l.onUpdate(p)},onStop:()=>{},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(fI),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:d,target:h,layout:f,latestValues:p}=l;if(!(!d||!h||!f)){if(this!==l&&this.layout&&f&&SC(this.options.animationType,this.layout.layoutBox,f.layoutBox)){h=this.target||nt();const g=Et(this.layout.layoutBox.x);h.x.min=l.target.x.min,h.x.max=h.x.min+g;const y=Et(this.layout.layoutBox.y);h.y.min=l.target.y.min,h.y.max=h.y.min+y}_n(d,h),Bu(d,p),Ta(this.projectionDeltaWithTransform,this.layoutCorrected,d,p)}}registerSharedNode(l,d){this.sharedNodes.has(l)||this.sharedNodes.set(l,new hI),this.sharedNodes.get(l).add(d);const f=d.options.initialPromotionConfig;d.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(d):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var d;const{layoutId:l}=this.options;return l?((d=this.getStack())==null?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:l}=this.options;return l?(d=this.getStack())==null?void 0:d.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:d,preserveFollowOpacity:h}={}){const f=this.getStack();f&&f.promote(this,h),l&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let d=!1;const{latestValues:h}=l;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const f={};h.z&&Fh("z",l,f,this.animationValues);for(let p=0;p<Dh.length;p++)Fh(`rotate${Dh[p]}`,l,f,this.animationValues),Fh(`skew${Dh[p]}`,l,f,this.animationValues);l.render();for(const p in f)l.setStaticValue(p,f[p]),this.animationValues&&(this.animationValues[p]=f[p]);l.scheduleRender()}applyProjectionStyles(l,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=Vu(d==null?void 0:d.pointerEvents)||"",l.transform=h?h(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=Vu(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!Fi(this.latestValues)&&(l.transform=h?h({},""):"none",this.hasProjected=!1);return}l.visibility="";const p=f.animationValues||f.latestValues;this.applyTransformsToTarget();let g=rI(this.projectionDeltaWithTransform,this.treeScale,p);h&&(g=h(p,g)),l.transform=g;const{x:y,y:v}=this.projectionDelta;l.transformOrigin=`${y.origin*100}% ${v.origin*100}% 0`,f.animationValues?l.opacity=f===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:l.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const S in km){if(p[S]===void 0)continue;const{correct:_,applyTo:T,isCSSVariable:w}=km[S],b=g==="none"?p[S]:_(p[S],f);if(T){const C=T.length;for(let j=0;j<C;j++)l[T[j]]=b}else w?this.options.visualElement.renderState.vars[S]=b:l[S]=b}this.options.layoutId&&(l.pointerEvents=f===this?Vu(d==null?void 0:d.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var d;return(d=l.currentAnimation)==null?void 0:d.stop()}),this.root.nodes.forEach(y0),this.root.sharedNodes.clear()}}}function pI(e){e.updateLayout()}function gI(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:s}=e.options,l=t.source!==e.layout.source;if(s==="size")qn(g=>{const y=l?t.measuredBox[g]:t.layoutBox[g],v=Et(y);y.min=r[g].min,y.max=y.min+v});else if(s==="x"||s==="y"){const g=s==="x"?"y":"x";Cm(l?t.measuredBox[g]:t.layoutBox[g],r[g])}else SC(s,t.layoutBox,r)&&qn(g=>{const y=l?t.measuredBox[g]:t.layoutBox[g],v=Et(r[g]);y.max=y.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+v)});const d=Zo();Ta(d,r,t.layoutBox);const h=Zo();l?Ta(h,e.applyTransform(o,!0),t.measuredBox):Ta(h,r,t.layoutBox);const f=!xC(d);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:y,layout:v}=g;if(y&&v){const S=e.options.layoutAnchor||void 0,_=nt();jc(_,t.layoutBox,y.layoutBox,S);const T=nt();jc(T,r,v.layoutBox,S),wC(_,T)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=T,e.relativeTargetOrigin=_,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:h,layoutDelta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function yI(e){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 vI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xI(e){e.clearSnapshot()}function y0(e){e.clearMeasurements()}function wI(e){e.isLayoutDirty=!0,e.updateLayout()}function v0(e){e.isLayoutDirty=!1}function bI(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function _I(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function x0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function kI(e){e.resolveTargetDelta()}function CI(e){e.calcProjection()}
233function SI(e){e.resetSkewAndRotation()}function PI(e){e.removeLeadSnapshot()}function w0(e,t,n){e.translate=De(t.translate,0,n),e.scale=De(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function b0(e,t,n,r){e.min=De(t.min,n.min,r),e.max=De(t.max,n.max,r)}function TI(e,t,n,r){b0(e.x,t.x,n.x,r),b0(e.y,t.y,n.y,r)}function jI(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const EI={duration:.45,ease:[.4,0,.1,1]},_0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),k0=_0("applewebkit/")&&!_0("chrome/")?Math.round:dn;function C0(e){e.min=k0(e.min),e.max=k0(e.max)}function NI(e){C0(e.x),C0(e.y)}function SC(e,t,n){return e==="position"||e==="preserve-aspect"&&!QO(h0(t),h0(n),.2)}function LI(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const MI=CC({attachResizeListener:(e,t)=>tl(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),zh={current:void 0},PC=CC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!zh.current){const e=new MI({});e.mount(window),e.setOptions({layoutScroll:!0}),zh.current=e}return zh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),kg=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function S0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function AI(...e){return t=>{let n=!1;const r=e.map(o=>{const s=S0(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():S0(e[o],null)}}}}function RI(...e){return k.useCallback(AI(...e),e)}class OI extends k.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Iu(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,o=Iu(r)&&r.offsetWidth||0,s=Iu(r)&&r.offsetHeight||0,l=getComputedStyle(n),d=this.props.sizeRef.current;d.height=parseFloat(l.height),d.width=parseFloat(l.width),d.top=n.offsetTop,d.left=n.offsetLeft,d.right=o-d.width-d.left,d.bottom=s-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function II({children:e,isPresent:t,anchorX:n,anchorY:r,root:o,pop:s}){var y;const l=k.useId(),d=k.useRef(null),h=k.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:f}=k.useContext(kg),p=((y=e.props)==null?void 0:y.ref)??(e==null?void 0:e.ref),g=RI(d,p);return k.useInsertionEffect(()=>{const{width:v,height:S,top:_,left:T,right:w,bottom:b}=h.current;if(t||s===!1||!d.current||!v||!S)return;const C=n==="left"?`left: ${T}`:`right: ${w}`,j=r==="bottom"?`bottom: ${b}`:`top: ${_}`;d.current.dataset.motionPopId=l;const N=document.createElement("style");f&&(N.nonce=f);const A=o??document.head;return A.appendChild(N),N.sheet&&N.sheet.insertRule(`
234          [data-motion-pop-id="${l}"] {
235            position: absolute !important;
236            width: ${v}px !important;
237            height: ${S}px !important;
238            ${C}px !important;
239            ${j}px !important;
240          }
241        `),()=>{var I;(I=d.current)==null||I.removeAttribute("data-motion-pop-id"),A.contains(N)&&A.removeChild(N)}},[t]),u.jsx(OI,{isPresent:t,childRef:d,sizeRef:h,pop:s,children:s===!1?e:k.cloneElement(e,{ref:g})})}const DI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:l,anchorX:d,anchorY:h,root:f})=>{const p=Jp(FI),g=k.useId();let y=!0,v=k.useMemo(()=>(y=!1,{id:g,initial:t,isPresent:n,custom:o,onExitComplete:S=>{p.set(S,!0);for(const _ of p.values())if(!_)return;r&&r()},register:S=>(p.set(S,!1),()=>p.delete(S))}),[n,p,r]);return s&&y&&(v={...v}),k.useMemo(()=>{p.forEach((S,_)=>p.set(_,!1))},[n]),k.useEffect(()=>{!n&&!p.size&&r&&r()},[n]),e=u.jsx(II,{pop:l==="popLayout",isPresent:n,anchorX:d,anchorY:h,root:f,children:e}),u.jsx(ud.Provider,{value:v,children:e})};function FI(){return new Map}function TC(e=!0){const t=k.useContext(ud);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=k.useId();k.useEffect(()=>{if(e)return o(s)},[e]);const l=k.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const fu=e=>e.key||"";function P0(e){const t=[];
vendor: 5,608 bytes, line 241
241return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const Cg=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:l=!1,anchorX:d="left",anchorY:h="top",root:f})=>{const[p,g]=TC(l),y=k.useMemo(()=>P0(e),[e]),v=l&&!p?[]:y.map(fu),S=k.useRef(!0),_=k.useRef(y),T=Jp(()=>new Map),w=k.useRef(new Set),[b,C]=k.useState(y),[j,N]=k.useState(y);ek(()=>{S.current=!1,_.current=y;for(let O=0;O<j.length;O++){const V=fu(j[O]);v.includes(V)?(T.delete(V),w.current.delete(V)):T.get(V)!==!0&&T.set(V,!1)}},[j,v.length,v.join("-")]);const A=[];if(y!==b){let O=[...y];for(let V=0;V<j.length;V++){const F=j[V],G=fu(F);v.includes(G)||(O.splice(V,0,F),A.push(F))}return s==="wait"&&A.length&&(O=A),N(P0(O)),C(y),null}const{forceRender:I}=k.useContext(Xp);return u.jsx(u.Fragment,{children:j.map(O=>{const V=fu(O),F=l&&!p?!1:y===j||v.includes(V),G=()=>{if(w.current.has(V))return;if(T.has(V))w.current.add(V),T.set(V,!0);else return;let $=!0;T.forEach(ie=>{ie||($=!1)}),$&&(I==null||I(),N(_.current),l&&(g==null||g()),r&&r())};return u.jsx(DI,{isPresent:F,initial:!S.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:f,onExitComplete:F?void 0:G,anchorX:d,anchorY:h,children:O},V)})})},jC=k.createContext({strict:!1}),T0={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"]};let j0=!1;function zI(){if(j0)return;const e={};for(const t in T0)e[t]={isEnabled:n=>T0[t].some(r=>!!n[r])};rC(e),j0=!0}function EC(){return zI(),kO()}function BI(e){const t=EC();for(const n in e)t[n]={...t[n],...e[n]};rC(t)}const VI=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","propagate","ignoreStrict","viewport"]);function Ec(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||VI.has(e)}let NC=e=>!Ec(e);function HI(e){typeof e=="function"&&(NC=t=>t.startsWith("on")?!Ec(t):e(t))}try{HI(require("@emotion/is-prop-valid").default)}catch{}function WI(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||dt(e[o])||(NC(o)||n===!0&&Ec(o)||!t&&!Ec(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const md=k.createContext({});function $I(e,t){if(fd(e)){const{initial:n,animate:r}=e;return{initial:n===!1||el(n)?n:void 0,animate:el(r)?r:void 0}}return e.inherit!==!1?t:{}}function UI(e){const{initial:t,animate:n}=$I(e,k.useContext(md));return k.useMemo(()=>({initial:t,animate:n}),[E0(t),E0(n)])}function E0(e){return Array.isArray(e)?e.join(" "):e}const Sg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function LC(e,t,n){for(const r in t)!dt(t[r])&&!cC(r,n)&&(e[r]=t[r])}function ZI({transformTemplate:e},t){return k.useMemo(()=>{const n=Sg();return bg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function GI(e,t){const n=e.style||{},r={};return LC(r,n,e),Object.assign(r,ZI(e,t)),r}function KI(e,t){const n={},r=GI(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}const MC=()=>({...Sg(),attrs:{}});function qI(e,t,n,r){const o=k.useMemo(()=>{const s=MC();return dC(s,t,fC(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};LC(s,e.style,e),o.style={...s,...o.style}}return o}const YI=["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 Pg(e){return typeof e!="string"||e.includes("-")?!1:!!(YI.indexOf(e)>-1||/[A-Z]/u.test(e))}function QI(e,t,n,{latestValues:r},o,s=!1,l){const h=(l??Pg(e)?qI:KI)(t,r,o,e),f=WI(t,typeof e=="string",s),p=e!==k.Fragment?{...f,...h,ref:n}:{},{children:g}=t,y=k.useMemo(()=>dt(g)?g.get():g,[g]);return k.createElement(e,{...p,children:y})}function XI({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:JI(n,r,o,e),renderState:t()}}function JI(e,t,n,r){const o={},s=r(e,{});for(const y in s)o[y]=Vu(s[y]);let{initial:l,animate:d}=e;const h=fd(e),f=tC(e);t&&f&&!h&&e.inherit!==!1&&(l===void 0&&(l=t.initial),d===void 0&&(d=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const g=p?d:l;if(g&&typeof g!="boolean"&&!hd(g)){const y=Array.isArray(g)?g:[g];for(let v=0;v<y.length;v++){const S=fg(e,y[v]);if(S){const{transitionEnd:_,transition:T,...w}=S;for(const b in w){let C=w[b];if(Array.isArray(C)){const j=p?C.length-1:0;C=C[j]}C!==null&&(o[b]=C)}for(const b in _)o[b]=_[b]}}}return o}const AC=e=>(t,n)=>{const r=k.useContext(md),o=k.useContext(ud),s=()=>XI(e,t,r,o);return n?s():Jp(s)},e5=AC({scrapeMotionValuesFromProps:_g,createRenderState:Sg}),t5=AC({scrapeMotionValuesFromProps:mC,createRenderState:MC}
vendor: 24,941 bytes, line 241
241),n5=Symbol.for("motionComponentSymbol");function r5(e,t,n){const r=k.useRef(n);k.useInsertionEffect(()=>{r.current=n});const o=k.useRef(null);return k.useCallback(s=>{var d;s&&((d=e.onMount)==null||d.call(e,s));const l=r.current;if(typeof l=="function")if(s){const h=l(s);typeof h=="function"&&(o.current=h)}else o.current?(o.current(),o.current=null):l(s);else l&&(l.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const RC=k.createContext({});function No(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function i5(e,t,n,r,o,s){var C,j;const{visualElement:l}=k.useContext(md),d=k.useContext(jC),h=k.useContext(ud),f=k.useContext(kg),p=f.reducedMotion,g=f.skipAnimations,y=k.useRef(null),v=k.useRef(!1);r=r||d.renderer,!y.current&&r&&(y.current=r(e,{visualState:t,parent:l,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:p,skipAnimations:g,isSVG:s}),v.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));const S=y.current,_=k.useContext(RC);S&&!S.projection&&o&&(S.type==="html"||S.type==="svg")&&o5(y.current,n,o,_);const T=k.useRef(!1);k.useInsertionEffect(()=>{S&&T.current&&S.update(n,h)});const w=n[Hk],b=k.useRef(!!w&&typeof window<"u"&&!((C=window.MotionHandoffIsComplete)!=null&&C.call(window,w))&&((j=window.MotionHasOptimisedAnimation)==null?void 0:j.call(window,w)));return ek(()=>{v.current=!0,S&&(T.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),S.scheduleRenderMicrotask(),b.current&&S.animationState&&S.animationState.animateChanges())}),k.useEffect(()=>{S&&(!b.current&&S.animationState&&S.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var N;(N=window.MotionHandoffMarkAsComplete)==null||N.call(window,w)}),b.current=!1),S.enteringChildren=void 0)}),S}function o5(e,t,n,r){const{layoutId:o,layout:s,drag:l,dragConstraints:d,layoutScroll:h,layoutRoot:f,layoutAnchor:p,layoutCrossfade:g}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:OC(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!l||d&&No(d),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:g,layoutScroll:h,layoutRoot:f,layoutAnchor:p})}function OC(e){if(e)return e.options.allowProjection!==!1?e.projection:OC(e.parent)}function Bh(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&BI(r);const s=n?n==="svg":Pg(e),l=s?t5:e5;function d(f,p){let g;const y={...k.useContext(kg),...f,layoutId:s5(f)},{isStatic:v}=y,S=UI(f),_=l(f,v);if(!v&&typeof window<"u"){a5();const T=l5(y);g=T.MeasureLayout,S.visualElement=i5(e,_,y,o,T.ProjectionNode,s)}return u.jsxs(md.Provider,{value:S,children:[g&&S.visualElement?u.jsx(g,{visualElement:S.visualElement,...y}):null,QI(e,f,r5(_,S.visualElement,p),_,v,t,s)]})}d.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const h=k.forwardRef(d);return h[n5]=e,h}function s5({layoutId:e}){const t=k.useContext(Xp).id;return t&&e!==void 0?t+"-"+e:e}function a5(e,t){k.useContext(jC).strict}function l5(e){const t=EC(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function u5(e,t){if(typeof Proxy>"u")return Bh;const n=new Map,r=(s,l)=>Bh(s,l,e,t),o=(s,l)=>r(s,l);return new Proxy(o,{get:(s,l)=>l==="create"?r:(n.has(l)||n.set(l,Bh(l,void 0,e,t)),n.get(l))})}const c5=(e,t)=>t.isSVG??Pg(e)?new BO(t):new RO(t,{allowProjection:e!==k.Fragment});class d5 extends Si{constructor(t){super(t),t.animationState||(t.animationState=UO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();hd(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.call(this)}}let h5=0;class f5 extends Si{constructor(){super(...arguments),this.id=h5++,this.isExitComplete=!1}update(){var s;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;if(t&&r===!1){if(this.isExitComplete){const{initial:l,custom:d}=this.node.getProps();if(typeof l=="string"){const h=Ji(this.node,l,d);if(h){const{transition:f,transitionEnd:p,...g}=h;for(const y in g)(s=this.node.getValue(y))==null||s.jump(g[y])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const m5={animation:{Feature:d5},exit:{Feature:f5}};function pl(e){return{point:{x:e.pageX,y:e.pageY}}}const p5=e=>t=>yg(t)&&e(t,pl(t));function ja(e,t,n,r){return tl(e,t,p5(n),r)}const IC=({current:e})=>e?e.ownerDocument.defaultView:null,N0=(e,t)=>Math.abs(e-t);function g5(e,t){const n=N0(e.x,t.x),r=N0(e.y,t.y);return Math.sqrt(n**2+r**2)}const L0=new Set(["auto","scroll"]);class DC{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=v=>{this.handleScroll(v.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=mu(this.lastRawMoveEventInfo,this.transformPagePoint));const v=Vh(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,_=g5(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!S&&!_)return;const{point:T}=v,{timestamp:w}=ct;this.history.push({...T,timestamp:w});const{onStart:b,onMove:C}=this.handlers;S||(b&&b(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,v)},this.handlePointerMove=(v,S)=>{this.lastMoveEvent=v,this.lastRawMoveEventInfo=S,this.lastMoveEventInfo=mu(S,this.transformPagePoint),Le.update(this.updatePoint,!0)},this.handlePointerUp=(v,S)=>{this.end();const{onEnd:_,onSessionEnd:T,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Vh(v.type==="pointercancel"?this.lastMoveEventInfo:mu(S,this.transformPagePoint),this.history);this.startEvent&&_&&_(v,b),T&&T(v,b)},!yg(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=o||window;const h=pl(t),f=mu(h,this.transformPagePoint),{point:p}=f,{timestamp:g}=ct;this.history=[{...p,timestamp:g}];const{onSessionStart:y}=n;y&&y(t,Vh(f,this.history)),this.removeListeners=hl(ja(this.contextWindow,"pointermove",this.handlePointerMove),ja(this.contextWindow,"pointerup",this.handlePointerUp),ja(this.contextWindow,"pointercancel",this.handlePointerUp)),d&&this.startScrollTracking(d)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(L0.has(r.overflowX)||L0.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),Le.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),bi(this.updatePoint)}}function mu(e,t){return t?{point:t(e.point)}:e}function M0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Vh({point:e},t){return{point:e,delta:M0(e,FC(t)),offset:M0(e,y5(t)),velocity:v5(t,.1)}}function y5(e){return e[0]}function FC(e){return e[e.length-1]}function v5(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=FC(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Bt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>Bt(t)*2&&(r=e[1]);const s=un(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function x5(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?De(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?De(n,e,r.max):Math.min(e,n)),e}function A0(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 w5(e,{top:t,left:n,bottom:r,right:o}){return{x:A0(e.x,n,o),y:A0(e.y,t,r)}}function R0(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 b5(e,t){return{x:R0(e.x,t.x),y:R0(e.y,t.y)}}function _5(e,t){let n=.5;const r=Et(e),o=Et(t);return o>r?n=Xa(t.min,t.max-r,e.min):r>o&&(n=Xa(e.min,e.max-o,t.min)),lr(0,1,n)}function k5(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 Sm=.35;function C5(e=Sm){return e===!1?e=0:e===!0&&(e=Sm),{x:O0(e,"left","right"),y:O0(e,"top","bottom")}}function O0(e,t,n){return{min:I0(e,t),max:I0(e,n)}}function I0(e,t){return typeof e=="number"?e:e[t]||0}const S5=new WeakMap;class P5{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=nt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=g=>{n&&this.snapToCursor(pl(g).point),this.stopAnimation()},l=(g,y)=>{const{drag:v,dragPropagation:S,onDragStart:_}=this.getProps();if(v&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=J3(v),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),qn(w=>{let b=this.getAxisMotionValue(w).get()||0;if(sr.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const j=C.layout.layoutBox[w];j&&(b=Et(j)*(parseFloat(b)/100))}}this.originPoint[w]=b}),_&&Le.update(()=>_(g,y),!1,!0),gm(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},d=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y;const{dragPropagation:v,dragDirectionLock:S,onDirectionLock:_,onDrag:T}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:w}=y;if(S&&this.currentDirection===null){this.currentDirection=j5(w),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",y.point,w),this.updateAxis("y",y.point,w),this.visualElement.render(),T&&Le.update(()=>T(g,y),!1,!0)},h=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y,this.stop(g,y),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>{const{dragSnapToOrigin:g}=this.getProps();(g||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:p}=this.getProps();this.panSession=new DC(t,{onSessionStart:s,onStart:l,onMove:d,onSessionEnd:h,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:IC(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:l}=o;this.startAnimation(l);const{onDragEnd:d}=this.getProps();d&&Le.postRender(()=>d(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!pu(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=x5(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,o=this.constraints;t&&No(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=w5(r.layoutBox,t):this.constraints=!1,this.elastic=C5(n),o!==this.constraints&&!No(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&qn(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=k5(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!No(t))return!1;const r=t.current;xs(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=jO(r,o.root,this.visualElement.getTransformPagePoint());let l=b5(o.layout.layoutBox,s);if(n){const d=n(SO(l));this.hasMutatedConstraints=!!d,d&&(l=oC(d))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},f=qn(p=>{if(!pu(p,n,this.currentDirection))return;let g=h&&h[p]||{};(l===!0||l===p)&&(g={min:0,max:0});const y=o?200:1e6,v=o?40:1e7,S={type:"inertia",velocity:r?t[p]:0,bounceStiffness:y,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(p,S)});return Promise.all(f).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return gm(this.visualElement,t),r.start(hg(t,r,0,n,this.visualElement,!1))}stopAnimation(){qn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){qn(n=>{const{drag:r}=this.getProps();if(!pu(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:d}=o.layout.layoutBox[n],h=s.get()||0;s.set(t[n]-De(l,d,.5)+h)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!No(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};qn(l=>{const d=this.getAxisMotionValue(l);if(d&&this.constraints!==!1){const h=d.get();o[l]=_5({min:h,max:h},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),qn(l=>{if(!pu(l,t,null))return;const d=this.getAxisMotionValue(l),{min:h,max:f}=this.constraints[l];d.set(De(h,f,o[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;S5.set(this.visualElement,this);const t=this.visualElement.current,n=ja(t,"pointerdown",f=>{const{drag:p,dragListener:g=!0}=this.getProps(),y=f.target,v=y!==t&&oO(y);p&&g&&!v&&this.start(f)});let r;const o=()=>{const{dragConstraints:f}=this.getProps();No(f)&&f.current&&(this.constraints=this.resolveRefConstraints(),r||(r=T5(t,f.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,l=s.addEventListener("measure",o);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Le.read(o);const d=tl(window,"resize",()=>this.scalePositionWithinConstraints()),h=s.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(qn(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=f[g].translate,y.set(y.get()+f[g].translate))}),this.visualElement.render())});return()=>{d(),n(),l(),h&&h(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:l=Sm,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:l,dragMomentum:d}}}function D0(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function T5(e,t,n){const r=$x(e,D0(n)),o=$x(t,D0(n));return()=>{r(),o()}}function pu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function j5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class E5 extends Si{constructor(t){super(t),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new P5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Hh=e=>(t,n)=>{e&&Le.update(()=>e(t,n),!1,!0)};class N5 extends Si{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(t){this.session=new DC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:IC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Hh(t),onStart:Hh(n),onMove:Hh(r),onEnd:(s,l)=>{delete this.session,o&&Le.postRender(()=>o(s,l))}}}mount(){this.removePointerDownListener=ja(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Wh=!1;class L5 extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),Wh&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Hu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),Wh=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||Le.postRender(()=>{const d=l.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),gg.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Wh=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function zC(e){const[t,n]=TC(),r=k.useContext(Xp);return u.jsx(L5,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(RC),isPresent:t,safeToRemove:n})}const M5={pan:{Feature:N5},drag:{Feature:E5,ProjectionNode:PC,MeasureLayout:zC}};function F0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&Le.postRender(()=>s(t,pl(t)))}class A5 extends Si{mount(){const{current:t}=this.node;t&&(this.unmount=tO(t,(n,r)=>(F0(this.node,r,"Start"),o=>F0(this.node,o,"End"))))}unmount(){}}class R5 extends Si{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=hl(tl(this.node.current,"focus",()=>this.onFocus()),tl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function z0(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&Le.postRender(()=>s(t,pl(t)))}class O5 extends Si{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=aO(t,(o,s)=>(z0(this.node,s,"Start"),(l,{success:d})=>z0(this.node,l,d?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Pm=new WeakMap,$h=new WeakMap,I5=e=>{const t=Pm.get(e.target);t&&t(e)},D5=e=>{e.forEach(I5)};function F5({root:e,...t}){const n=e||document;$h.has(n)||$h.set(n,{});const r=$h.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(D5,{root:e,...t})),r[o]}function z5(e,t,n){const r=F5(t);return Pm.set(e,n),r.observe(e),()=>{Pm.delete(e),r.unobserve(e)}}const B5={some:0,all:1};class V5 extends Si{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var h;(h=this.stopObserver)==null||h.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:B5[o]},d=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,s&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),v=p?g:y;v&&v(f)};this.stopObserver=z5(this.node.current,l,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(H5(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function H5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const W5={inView:{Feature:V5},tap:{Feature:O5},focus:{Feature:R5},hover:{Feature:A5}},$5={layout:{ProjectionNode:PC,MeasureLayout:zC}},U5={...m5,...W5,...M5,...$5},le=u5(U5,c5),Z5="/assets/hero-metro-front-NJJRwJpk.jpeg",G5="/assets/hero-community-6-D_ydN8nC.png",K5="/assets/hero-new-couple-DZbSOtsc.jpg",q5="/assets/hero-new-host-CLLGVQRt.jpg",Y5="/assets/hero-new-team-DptWpkcl.jpg",Q5="/assets/hero-6-CYEoX-ae.jpg",gu=[{src:Z5,alt:"Caroline Gonyora, Metro Organics, holding fresh beetroot",phrase:0,caption:"Caroline Gonyora, Metro Organics"},{src:Q5,alt:"Stanley Thaluka, Head Gardener, Metro Organics",phrase:0,caption:"Stanley Thaluka, Head Gardener, Metro Organics"},{src:K5,alt:"Jaime & Jess Carrollisen, Food Club Members",phrase:1,caption:"Jaime & Jess Carrollisen, Members"},{src:q5,alt:"Jaime Cooper, Host of Vredehoek Food Club",phrase:1,caption:"Jaime Cooper, Host Vredehoek"},{src:Y5,alt:"Veldt Reared Pastured Chicken Farm team",phrase:2,caption:"Elton Morkel, Vuyisile Nomponde (Charles), Eben Lukas, Danzil Duiker, Daantjie Louw, Jan Dempers, Piet Ligter — Veldt Reared Pastured Chicken Farm"},{src:G5,alt:"Members and Host, Slow Food Club",phrase:2,caption:"Members and Host, Slow Food Club"}],X5=()=>{const[e,t]=k.useState(!1),[n,r]=k.useState(0),o=k.useCallback(()=>{r(l=>(l+1)%gu.length)},[]);k.useEffect(()=>{const l=setInterval(o,5e3);return()=>clearInterval(l)},[o]);const s=gu[n].phrase;return u.jsxs(u.Fragment,{children:[u.jsxs("section",{id:"hero",className:"relative min-h-[90vh] flex items-center overflow-hidden",children:[gu.map((l,d)=>
241u.jsxs(le.div,{initial:!1,animate:{opacity:d===n?1:0},transition:{duration:.8,ease:"easeInOut"},className:"absolute inset-0",style:{zIndex:d===n?1:0},children:[u.jsx("img",{src:l.src,alt:l.alt,className:"w-full h-full object-cover scale-[1.01]",width:1920,height:1080}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/50 via-black/30 to-transparent"}),l.caption&&u.jsx("span",{className:"absolute bottom-4 right-4 text-white/70 text-xs font-light tracking-wide z-10",children:l.caption})]},d)),u.jsx("div",{className:"container relative z-10 py-20 md:py-32",children:u.jsxs(le.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},className:"max-w-2xl relative z-30",children:[u.jsxs("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-bold font-display text-white leading-[1.1] tracking-tight mb-3",children:[u.jsx("span",{className:`transition-colors duration-700 ${s===0?"text-accent":"text-white"}`,children:"Know your farmer."})," ",u.jsx("span",{className:`transition-colors duration-700 ${s===1?"text-accent":"text-white"}`,children:"Feed your family."})," ",u.jsx("span",{className:`transition-colors duration-700 ${s===2?"text-accent":"text-white"}`,children:"Build your community."})]}),u.jsx("p",{className:"text-xl md:text-2xl text-white/90 font-medium mb-6",children:"We began by sharing a fish and a cheese, then we added farmers one by one."}),u.jsx("p",{className:"text-lg md:text-xl text-white/80 max-w-xl mb-4 leading-relaxed",children:"Food grown in living soil, delivered to your neighbourhood. The farmer sets the price. No hidden markups, no middlemen, just real food."}),u.jsx("p",{className:"text-accent font-bold text-lg md:text-xl mb-10",children:"One small order. One real farmer. One neighbourhood at a time."}),u.jsxs("div",{className:"flex flex-col sm:flex-row items-start gap-4",children:[u.jsx(Pe,{asChild:!0,size:"lg",className:"bg-white text-primary border border-white hover:bg-primary hover:text-primary-foreground hover:border-primary font-bold px-8 text-base transition-colors",children:u.jsx("a",{href:"#join",children:"Find a Club near you"})}),u.jsx(Pe,{asChild:!0,size:"lg",className:"bg-white text-primary border border-white hover:border-accent hover:text-accent font-bold px-8 text-base transition-colors",children:u.jsx("a",{href:"/host-and-supply#hosts",children:"Start a Club"})}),u.jsx(Pe,{asChild:!0,size:"lg",className:"bg-white text-primary border border-white hover:border-accent hover:text-accent font-bold px-8 text-base transition-colors",children:u.jsx("a",{href:"/host-and-supply#suppliers",children:"Supply a Club"})})]}),u.jsxs("button",{onClick:()=>t(!0),className:"mt-6 inline-flex items-center gap-3 text-white/90 hover:text-white transition-colors text-lg md:text-xl font-semibold group",children:[u.jsx(d1,{className:"h-4 w-4 group-hover:text-accent transition-colors"}),"Watch our story →"]})]})}),u.jsx("div",{className:"absolute bottom-6 left-1/2 -translate-x-1/2 flex gap-2 z-30",children:gu.map((l,d)=>u.jsx("button",{onClick:()=>r(d),className:`w-3 h-3 rounded-full transition-all duration-300 ${d===n?"bg-accent scale-125":"bg-white/50 hover:bg-white/70"}`,"aria-label":`Go to slide ${d+1}`},d))})]}),u.jsx(Cg,{children:e&&u.jsx(le.div,{initial:{opacity:0}
241,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm p-4",onClick:()=>t(!1),children:u.jsxs(le.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},className:"relative w-full max-w-4xl aspect-video rounded-xl overflow-hidden shadow-2xl",onClick:l=>l.stopPropagation(),children:[u.jsx("button",{onClick:()=>t(!1),className:"absolute top-3 right-3 z-10 w-8 h-8 rounded-full bg-black/60 text-white flex items-center justify-center hover:bg-black/80 transition-colors",children:u.jsx(rd,{className:"h-4 w-4"})}),u.jsx("iframe",{src:"https://www.youtube.com/embed/U1eawvDmGQQ?autoplay=1",title:"Food Club Hub",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full border-0"})]})})})]})},J5="/assets/food-club-kids-mjU9p_dS.png",e4="/assets/food-club-group-7JESReih.jpg",BC="/assets/food-club-photo1-DtYQAN2_.avif",t4="/assets/food-club-photo2-Bh7FYuFl.avif",n4="/assets/food-club-market-day-BshQzOnI.jpg",r4="/assets/food-club-streetscapes-rU2hFBHZ.jpg",ua=[{src:n4,alt:"Busy food club market day",size:"large"},{src:e4,alt:"Food club community gathering",size:"large"},{src:J5,alt:"Kids weighing tomatoes at Food Club",size:"small"},{src:t4,alt:"Food club in action",size:"small"},{src:BC,alt:"Food club in action",size:"small"},{src:r4,alt:"Streetscapes team at food club market day",size:"small"}],i4=()=>u.jsx("section",{id:"market-day",className:"py-8 md:py-12 bg-background scroll-mt-16",children:u.jsx("div",{className:"container",children:u.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4",children:[u.jsx("div",{className:"col-span-1 md:col-span-2 rounded-xl overflow-hidden aspect-[4/3]",children:u.jsx("img",{src:ua[0].src,alt:ua[0].alt,className:"w-full h-full object-cover",loading:"lazy"})}),u.jsx("div",{className:"col-span-1 md:col-span-2 rounded-xl overflow-hidden aspect-[4/3]",children:u.jsx("img",{src:ua[1].src,alt:ua[1].alt,className:"w-full h-full object-cover",loading:"lazy"})}),ua.slice(2).map((e,t)=>u.jsx("div",{className:"rounded-xl overflow-hidden aspect-square",children:u.jsx("img",{src:e.src,alt:e.alt,className:"w-full h-full object-cover",loading:"lazy"})},t))]})})}),o4=[{value:"57",label:"Active clubs across South Africa"},{value:"9,800+",label:"Members and counting"},{value:"48,000+",label:"Orders processed"}],s4=()=>u.jsx("section",{id:"trust",className:"bg-secondary py-10 md:py-12 scroll-mt-16",children:u.jsx("div",{className:"container",children:u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 md:gap-4",children:o4.map((e,t)=>u.jsxs(le.div,{initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1,duration:.4},className:"text-center",children:[u.jsx("p",{className:"text-3xl md:text-4xl font-extrabold text-accent mb-1",children:e.value}),u.jsx("p",{className:"text-sm md:text-base text-secondary-foreground/70 font-medium",children:e.label})]},e.label))})})}),a4=[{icon:zp,title:"Fewer food miles",sub:"Farm to neighbourhood"},{icon:Fp,title:"Nutrient-dense food",sub:"Healthy soil grows healthy food"},{icon:vL,title:"Fair prices",sub:"Set by the farmer, not a supermarket"},{icon:fL,title:"Know your farmer",sub:"A direct line to the people growing your food"},{icon:Bp,title:"Find your people",sub:"A community who cares about the same things"},{icon:c1,title:"Reconnect",sub:"Know where your food actually comes from"}],l4=()=>u.jsx("section",{id:"what-you-get",className:"py-16 md:py-20 pb-8 md:pb-10 bg-muted/40 scroll-mt-16",children:u.jsxs("div",{className:"container",children:[u.jsx(le.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl md:text-5xl font-bold font-display text-primary text-center mb-12",children:"What you get"}),u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-8",children:a4.map((e,t)=>u.jsxs(le.div,{initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.07,duration:.4},className:"flex flex-col items-center text-center gap-3",children:[u.jsx("div",{className:"w-12 h-12 rounded-full bg-accent/15 flex items-center justify-center",children:u.jsx(e.icon,{className:"h-6 w-6 text-accent"})}),u.jsx("span",{className:"text-sm font-bold text-primary",children:e.title}),u.jsx("span",{className:"text-xs text-muted-foreground",children:e.sub})]},t))})]})}),Tm="/assets/illustration-members-XkbgKX0F.png",Nc="/assets/illustration-hosts-gold-DRu2ktsw.png",Lc="/assets/illustration-suppliers-teal-BntJPr_z.png",Mc="/assets/club-marker-CNIIckSO.png",u4=[{image:Tm,title:"For Members",subtitle:"Vote with your fork.",steps:["Browse your Club's online shop","Place your order","Collect on market day"],cta:"Join your nearest club here →",ctaHref:"#join",circle:!0},{image:Nc,title:"For Hosts",subtitle:"Turn your community into a food movement.",steps:["Apply to Host a Club","We set up your platform","Open your first shop"],cta:"Host your Food Club here →",ctaHref:"/host-and-supply#hosts",circle:!0},{image:Lc,title:"For Suppliers",subtitle:"Sell regenerative produce directly to communities who care.",steps:["Apply to 
241supply","Get vetted by our team","Start receiving orders"],cta:"Supply a Food Club here →",ctaHref:"/host-and-supply#suppliers",circle:!0},{image:Mc,title:"The Hub",subtitle:"The ecosystem behind every club.",steps:["Connects independent clubs across SA","Vets and supports suppliers","Backs Hosts with years of collective know-how"],cta:"Contact the Hub →",ctaHref:"#contact",circle:!1}],c4=()=>{const[e,t]=k.useState(!1);return u.jsxs(u.Fragment,{children:[u.jsx("section",{id:"how-it-works",className:"py-20 md:py-28 bg-background scroll-mt-16",children:u.jsxs("div",{className:"container",children:[u.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[u.jsx("h2",{className:"text-3xl md:text-5xl font-bold font-display text-primary mb-4",children:"How It Works"}),u.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:"One ecosystem. 55 independent clubs."})]}),u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 lg:gap-8",children:u4.map((n,r)=>u.jsxs(le.div,{initial:{opacity:0,y:25},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.12,duration:.5},className:"bg-card rounded-lg p-8 border border-border text-center",children:[n.image&&u.jsx("div",{className:"flex justify-center mb-6",children:u.jsx("img",{src:n.image,alt:n.title,className:n.circle?"h-24 w-24 rounded-full object-cover":"h-24 w-auto object-contain",loading:"lazy"})}),u.jsx("h3",{className:"text-2xl font-bold text-primary mb-2",children:n.title}),n.subtitle&&u.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:n.subtitle}),u.jsx("ol",{className:"space-y-4 text-left",children:n.steps.map((o,s)=>u.jsxs("li",{className:"flex items-start gap-3",children:[u.jsx("span",{className:"flex-shrink-0 w-7 h-7 rounded-full bg-primary text-primary-foreground text-sm font-bold flex items-center justify-center mt-0.5",children:s+1}),u.jsx("span",{className:"text-foreground/80 text-base leading-relaxed",children:o})]},s))}),u.jsx("a",{href:n.ctaHref,className:"mt-6 inline-block text-accent font-bold text-sm hover:underline transition-colors",children:n.cta})]},n.title))}),u.jsx(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mt-12 text-center",children:u.jsxs("button",{onClick:()=>t(!0),className:"inline-flex items-center gap-3 text-primary hover:text-primary/80 transition-colors text-lg md:text-xl font-semibold group",children:[u.jsx(d1,{className:"h-5 w-5"}),"Watch our How It Works video →"]})})]})}),u.jsx(Cg,{children:e&&u.jsx(le.div,{initial:{opacity:0}
241,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm p-4",onClick:()=>t(!1),children:u.jsxs(le.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},className:"relative w-full max-w-4xl aspect-video rounded-xl overflow-hidden shadow-2xl",onClick:n=>n.stopPropagation(),children:[u.jsx("button",{onClick:()=>t(!1),className:"absolute top-3 right-3 z-10 w-8 h-8 rounded-full bg-black/60 text-white flex items-center justify-center hover:bg-black/80 transition-colors",children:u.jsx(rd,{className:"h-4 w-4"})}),u.jsx("iframe",{src:"https://www.youtube.com/embed/aJWpPQZUvdA?autoplay=1",title:"How Food Club Hub Works",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full border-0"})]})})})]})},d4=[{label:"The problem",stat:"4 supermarket chains control 97% of what South Africans eat.",body:"Shoprite, Pick n Pay, Spar and Woolworths dominate our food system — squeezing farmers, driving down quality, and extracting value at every step."},{label:"The injustice",stat:"In some cases farmers receive as little as 6% of the end price.",body:"Prices received by farmers have declined in real terms since the 1990s. The system isn't broken by accident — it's designed this way."},{label:"The alternative",stat:"Together our Members buy R2.5M a month away from big ag.",body:"Every Food Club order goes directly to a farmer who sets their own price, gets paid within 7 days, and sees their exact percentage displayed on every invoice."}],h4=[{label:"The soil",stat:"South Africa is losing its topsoil.",body:"Industrial farming strips nutrients, kills microbial life and leaves land dependent on chemical inputs just to produce the next crop. We are farming our soil to death."},{label:"The health",stat:"Over 60% of South African deaths are from non-communicable diseases.",body:"Many preventable through better eating. We've moved from growing diverse crops to producing the majority of our calories from a handful of starches."},{label:"The alternative",stat:"Regenerative farming can reverse this — and it's happening here.",body:u.jsxs(u.Fragment,{children:["New data from our sister organisation"," ",u.jsx("a",{href:"https://www.regenagsa.org.za",target:"_blank",rel:"noopener noreferrer",className:"text-accent underline hover:text-accent/80",children:"Regen Ag SA"})," ","shows double the rainfall captured, triple the cattle, and 60% higher biodiversity — in just 5 years."]})}],B0=({columns:e,delayOffset:t=0})=>u.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:e.map((n,r)=>u.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:(r+t)*.15},className:"text-center md:text-left",children:[u.jsx("span",{className:"inline-block text-[13px] font-semibold font-display text-accent mb-3",children:n.label}),u.jsx("p",{className:"text-lg md:text-xl font-bold percent-safe text-primary mb-3 leading-snug",children:n.stat}),u.jsx("p",{className:"text-foreground/80 leading-relaxed",children:n.body})]},r))}),f4=()=>u.jsx("section",{id:"why-it-matters",className:"py-20 md:py-28 bg-muted scroll-mt-16",children:u.jsxs("div",{className:"container",children:[u.jsx(le.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl md:text-5xl font-bold font-display text-primary text-center mb-16 max-w-4xl mx-auto leading-tight",children:"The current food system can't be changed — it must be replaced."}),u.jsx(B0,{columns:d4}),u.jsx(le.p,{initial:{opacity:0}
241,whileInView:{opacity:1},viewport:{once:!0},className:"text-xl md:text-2xl font-bold text-primary font-display text-center my-14 max-w-3xl mx-auto leading-relaxed",children:"But the real cost isn't at the till. It's in the ground."}),u.jsx(B0,{columns:h4,delayOffset:3}),u.jsxs("div",{className:"mt-14 space-y-4 text-center",children:[u.jsx(le.p,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"text-2xl md:text-3xl text-accent font-display max-w-3xl mx-auto leading-relaxed italic",children:`"We're not claiming to have all the answers, but it's a beautiful way to buy food"`}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"— Haley Price, Hout Bay GFC Host"}),u.jsx(le.p,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"text-3xl md:text-4xl font-bold text-primary font-display",children:"Small act. Big change."}),u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Sources: Tracey Ledger, ",u.jsx("em",{children:"An Empty Plate"}),", 2017; World Health Organisation; RegenAgSA.org"]}),u.jsx(M_,{to:"/why-food-clubs",className:"inline-block text-sm font-semibold text-accent hover:text-accent/80 transition-colors mt-2",children:"→ Read more about why this matters"})]})]})});function VC(e,t){const n=k.useRef(t);k.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const m4=1;function p4(e){return Object.freeze({__version:m4,map:e})}function g4(e,t){return Object.freeze({...e,...t})}const HC=k.createContext(null),WC=HC.Provider;function $C(){const e=k.useContext(HC);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function y4(e){function t(n,r){const{instance:o,context:s}=e(n).current;return k.useImperativeHandle(r,()=>o),n.children==null?null:K.createElement(WC,{value:s},n.children)}return k.forwardRef(t)}function v4(e){function t(n,r){const[o,s]=k.useState(!1),{instance:l}=e(n,s).current;k.useImperativeHandle(r,()=>l),k.useEffect(function(){o&&l.update()},[l,o,n.children]);const d=l._contentNode;return d?Ps.createPortal(n.children,d):null}return k.forwardRef(t)}function x4(e){function t(n,r){const{instance:o}=e(n).current;return k.useImperativeHandle(r,()=>o),null}return k.forwardRef(t)}function UC(e,t){const n=k.useRef();k.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function Tg(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function w4(e,t){return function(r,o){const s=$C(),l=e(Tg(r,s),s);return VC(s.map,r.attribution),UC(l.current,r.eventHandlers),t(l.current,s,r,o),l}}var jm={exports:{}};/* @preserve
242 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
243 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
244 */(function(e,t){(function(n,r){r(t)})(TP,function(n){var r="1.9.4";function o(i){var a,c,m,x;for(c=1,m=arguments.length;c<m;c++){x=arguments[c];for(a in x)i[a]=x[a]}return i}var s=Object.create||function(){function i(){}return function(a){return i.prototype=a,new i}}();function l(i,a){var c=Array.prototype.slice;if(i.bind)return i.bind.apply(i,c.call(arguments,1));var m=c.call(arguments,2);return function(){return i.apply(a,m.length?m.concat(c.call(arguments)):arguments)}}var d=0;function h(i){return"_leaflet_id"in i||(i._leaflet_id=++d),i._leaflet_id}function f(i,a,c){var m,x,P,E;return E=function(){m=!1,x&&(P.apply(c,x),x=!1)},P=function(){m?x=arguments:(i.apply(c,arguments),setTimeout(E,a),m=!0)},P}function p(i,a,c){var m=a[1],x=a[0],P=m-x;return i===m&&c?i:((i-x)%P+P)%P+x}function g(){return!1}function y(i,a){if(a===!1)return i;var c=Math.pow(10,a===void 0?6:a);return Math.round(i*c)/c}function v(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function S(i){return v(i).split(/\s+/)}function _(i,a){Object.prototype.hasOwnProperty.call(i,"options")||(i.options=i.options?s(i.options):{});for(var c in a)i.options[c]=a[c];return i.options}function T(i,a,c){var m=[];for(var x in i)m.push(encodeURIComponent(c?x.toUpperCase():x)+"="+encodeURIComponent(i[x]));return(!a||a.indexOf("?")===-1?"?":"&")+m.join("&")}var w=/\{ *([\w_ -]+) *\}/g;function b(i,a){return i.replace(w,function(c,m){var x=a[m];if(x===void 0)throw new Error("No value provided for variable "+c);return typeof x=="function"&&(x=x(a)),x})}var C=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function j(i,a){for(var c=0;c<i.length;c++)if(i[c]===a)return c;return-1}var N="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function A(i){return window["webkit"+i]||window["moz"+i]||window["ms"+i]}var I=0;function O(i){var a=+new Date,c=Math.max(0,16-(a-I));return I=a+c,window.setTimeout(i,c)}var V=window.requestAnimationFrame||A("RequestAnimationFrame")||O,F=window.cancelAnimationFrame||A("CancelAnimationFrame")||A("CancelRequestAnimationFrame")||function(i){window.clearTimeout(i)};function G(i,a,c){if(c&&V===O)i.call(a);else return V.call(window,l(i,a))}function $(i){i&&F.call(window,i)}var ie={__proto__:null,extend:o,create:s,bind:l,get lastId(){return d},stamp:h,throttle:f,wrapNum:p,falseFn:g,formatNum:y,trim:v,splitWords:S,setOptions:_,getParamString:T,template:b,isArray:C,indexOf:j,emptyImageUrl:N,requestFn:V,cancelFn:F,requestAnimFrame:G,cancelAnimFrame:$};function U(){}U.extend=function(i){var a=function(){_(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},c=a.__super__=this.prototype,m=s(c);m.constructor=a,a.prototype=m;for(var x in this)Object.prototype.hasOwnProperty.call(this,x)&&x!=="prototype"&&x!=="__super__"&&(a[x]=this[x]);return i.statics&&o(a,i.statics),i.includes&&(ae(i.includes),o.apply(null,[m].concat(i.includes))),o(m,i),delete m.statics,delete m.includes,m.options&&(m.options=c.options?s(c.options):{},o(m.options,i.options)),m._initHooks=[],m.callInitHooks=function(){if(!this._initHooksCalled){c.callInitHooks&&c.callInitHooks.call(this),this._initHooksCalled=!0;for(var P=0,E=m._initHooks.length;P<E;P++)m._initHooks[P].call(this)}},a},U.include=function(i){var a=this.prototype.options;
244return o(this.prototype,i),i.options&&(this.prototype.options=a,this.mergeOptions(i.options)),this},U.mergeOptions=function(i){return o(this.prototype.options,i),this},U.addInitHook=function(i){var a=Array.prototype.slice.call(arguments,1),c=typeof i=="function"?i:function(){this[i].apply(this,a)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(c),this};function ae(i){if(!(typeof L>"u"||!L||!L.Mixin)){i=C(i)?i:[i];for(var a=0;a<i.length;a++)i[a]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var q={on:function(i,a,c){if(typeof i=="object")for(var m in i)this._on(m,i[m],a);else{i=S(i);for(var x=0,P=i.length;x<P;x++)this._on(i[x],a,c)}return this},off:function(i,a,c){if(!arguments.length)delete this._events;else if(typeof i=="object")for(var m in i)this._off(m,i[m],a);else{i=S(i);for(var x=arguments.length===1,P=0,E=i.length;P<E;P++)x?this._off(i[P]):this._off(i[P],a,c)}return this},_on:function(i,a,c,m){if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}if(this._listens(i,a,c)===!1){c===this&&(c=void 0);var x={fn:a,ctx:c};m&&(x.once=!0),this._events=this._events||{},this._events[i]=this._events[i]||[],this._events[i].push(x)}},_off:function(i,a,c){var m,x,P;if(this._events&&(m=this._events[i],!!m)){if(arguments.length===1){if(this._firingCount)for(x=0,P=m.length;x<P;x++)m[x].fn=g;delete this._events[i];return}if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}var E=this._listens(i,a,c);if(E!==!1){var R=m[E];this._firingCount&&(R.fn=g,this._events[i]=m=m.slice()),m.splice(E,1)}}},fire:function(i,a,c){if(!this.listens(i,c))return this;var m=o({},a,{type:i,target:this,sourceTarget:a&&a.sourceTarget||this});if(this._events){var x=this._events[i];if(x){this._firingCount=this._firingCount+1||1;for(var P=0,E=x.length;P<E;P++){var R=x[P],D=R.fn;R.once&&this.off(i,D,R.ctx),D.call(R.ctx||this,m)}this._firingCount--}}return c&&this._propagateEvent(m),this},listens:function(i,a,c,m){typeof i!="string"&&console.warn('"string" type argument expected');var x=a;typeof a!="function"&&(m=!!a,x=void 0,c=void 0);var P=this._events&&this._events[i];if(P&&P.length&&this._listens(i,x,c)!==!1)return!0;if(m){for(var E in this._eventParents)if(this._eventParents[E].listens(i,a,c,m))return!0}return!1},_listens:function(i,a,c){if(!this._events)return!1;var m=this._events[i]||[];if(!a)return!!m.length;c===this&&(c=void 0);for(var x=0,P=m.length;x<P;x++)if(m[x].fn===a&&m[x].ctx===c)return x;return!1},once:function(i,a,c){if(typeof i=="object")for(var m in i)this._on(m,i[m],a,!0);else{i=S(i);for(var x=0,P=i.length;x<P;x++)this._on(i[x],a,c,!0)}return this},addEventParent:function(i){return this._eventParents=this._eventParents||{},this._eventParents[h(i)]=i,this},removeEventParent:function(i){return this._eventParents&&delete this._eventParents[h(i)],this},_propagateEvent:function(i){for(var a in this._eventParents)this._eventParents[a].fire(i.type,o({layer:i.target,propagatedFrom:i.target},i),!0)}};q.addEventListener=q.on,q.removeEventListener=q.clearAllEventListeners=q.off,q.addOneTimeEventListener=q.once,q.fireEvent=q.fire,q.hasEventListeners=q.listens;var ue=U.extend(q);function M(i,a,c){this.x=c?Math.round(i):i,this.y=c?Math.round(a):a}var B=Math.trunc||function(i){return i>0?Math.floor(i):Math.ceil(i)};M.prototype={clone:function(){return new M(this.x,this.y)},add:function(i){return this.clone()._add(z(i))},_add:function(i){return this.x+=i.x,this.y+=i.y,this},subtract:function(i){return this.clone()._subtract(z(i))},_subtract:function(i){return this.x-=i.x,this.y-=i.y,this},divideBy:function(i){return this.clone()._divideBy(i)},_divideBy:function(i){return this.x/=i,this.y/=i,this},multiplyBy:function(i){return this.clone()._multiplyBy(i)},_multiplyBy:function(i){return this.x*=i,this.y*=i,this},scaleBy:function(i){return new M(this.x*i.x,this.y*i.y)},unscaleBy:function(i){return new M(this.x/i.x,this.y/i.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=B(this.x),this.y=B(this.y),this},distanceTo:function(i){i=z(i);var a=i.x-this.x,c=i.y-this.y;return Math.sqrt(a*a+c*c)},equals:function(i){return i=z(i),i.x===this.x&&i.y===this.y},contains:function(i){return i=z(i),Math.abs(i.x)<=Math.abs(this.x)&&Math.abs(i.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function z(i,a,c){return i instanceof M?i:C(i)?new M(i[0],i[1]):i==null?i:typeof i=="object"&&"x"in i&&"y"in i?new M(i.x,i.y):new M(i,a,c)}function Y(i,a){if(i)for(var c=a?[i,a]:i,m=0,x=c.length;m<x;m++)this.extend(c[m])}Y.prototype={extend:function(i){var a,c;if(!i)return this;if(i instanceof M||typeof i[0]=="number"||"x"in i)a=c=z(i);
244else if(i=X(i),a=i.min,c=i.max,!a||!c)return this;return!this.min&&!this.max?(this.min=a.clone(),this.max=c.clone()):(this.min.x=Math.min(a.x,this.min.x),this.max.x=Math.max(c.x,this.max.x),this.min.y=Math.min(a.y,this.min.y),this.max.y=Math.max(c.y,this.max.y)),this},getCenter:function(i){return z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,i)},getBottomLeft:function(){return z(this.min.x,this.max.y)},getTopRight:function(){return z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(i){var a,c;return typeof i[0]=="number"||i instanceof M?i=z(i):i=X(i),i instanceof Y?(a=i.min,c=i.max):a=c=i,a.x>=this.min.x&&c.x<=this.max.x&&a.y>=this.min.y&&c.y<=this.max.y},intersects:function(i){i=X(i);var a=this.min,c=this.max,m=i.min,x=i.max,P=x.x>=a.x&&m.x<=c.x,E=x.y>=a.y&&m.y<=c.y;return P&&E},overlaps:function(i){i=X(i);var a=this.min,c=this.max,m=i.min,x=i.max,P=x.x>a.x&&m.x<c.x,E=x.y>a.y&&m.y<c.y;return P&&E},isValid:function(){return!!(this.min&&this.max)},pad:function(i){var a=this.min,c=this.max,m=Math.abs(a.x-c.x)*i,x=Math.abs(a.y-c.y)*i;return X(z(a.x-m,a.y-x),z(c.x+m,c.y+x))},equals:function(i){return i?(i=X(i),this.min.equals(i.getTopLeft())&&this.max.equals(i.getBottomRight())):!1}};function X(i,a){return!i||i instanceof Y?i:new Y(i,a)}function oe(i,a){if(i)for(var c=a?[i,a]:i,m=0,x=c.length;m<x;m++)this.extend(c[m])}oe.prototype={extend:function(i){var a=this._southWest,c=this._northEast,m,x;if(i instanceof ce)m=i,x=i;else if(i instanceof oe){if(m=i._southWest,x=i._northEast,!m||!x)return this}else return i?this.extend(se(i)||ne(i)):this;return!a&&!c?(this._southWest=new ce(m.lat,m.lng),this._northEast=new ce(x.lat,x.lng)):(a.lat=Math.min(m.lat,a.lat),a.lng=Math.min(m.lng,a.lng),c.lat=Math.max(x.lat,c.lat),c.lng=Math.max(x.lng,c.lng)),this},pad:function(i){var a=this._southWest,c=this._northEast,m=Math.abs(a.lat-c.lat)*i,x=Math.abs(a.lng-c.lng)*i;return new oe(new ce(a.lat-m,a.lng-x),new ce(c.lat+m,c.lng+x))},getCenter:function(){return new ce((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ce(this.getNorth(),this.getWest())},getSouthEast:function(){return new ce(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(i){typeof i[0]=="number"||i instanceof ce||"lat"in i?i=se(i):i=ne(i);var a=this._southWest,c=this._northEast,m,x;
244return i instanceof oe?(m=i.getSouthWest(),x=i.getNorthEast()):m=x=i,m.lat>=a.lat&&x.lat<=c.lat&&m.lng>=a.lng&&x.lng<=c.lng},intersects:function(i){i=ne(i);var a=this._southWest,c=this._northEast,m=i.getSouthWest(),x=i.getNorthEast(),P=x.lat>=a.lat&&m.lat<=c.lat,E=x.lng>=a.lng&&m.lng<=c.lng;return P&&E},overlaps:function(i){i=ne(i);var a=this._southWest,c=this._northEast,m=i.getSouthWest(),x=i.getNorthEast(),P=x.lat>a.lat&&m.lat<c.lat,E=x.lng>a.lng&&m.lng<c.lng;return P&&E},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(i,a){return i?(i=ne(i),this._southWest.equals(i.getSouthWest(),a)&&this._northEast.equals(i.getNorthEast(),a)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ne(i,a){return i instanceof oe?i:new oe(i,a)}function ce(i,a,c){if(isNaN(i)||isNaN(a))throw new Error("Invalid LatLng object: ("+i+", "+a+")");this.lat=+i,this.lng=+a,c!==void 0&&(this.alt=+c)}ce.prototype={equals:function(i,a){if(!i)return!1;i=se(i);var c=Math.max(Math.abs(this.lat-i.lat),Math.abs(this.lng-i.lng));return c<=(a===void 0?1e-9:a)},toString:function(i){return"LatLng("+y(this.lat,i)+", "+y(this.lng,i)+")"},distanceTo:function(i){return _t.distance(this,se(i))},wrap:function(){return _t.wrapLatLng(this)},toBounds:function(i){var a=180*i/40075017,c=a/Math.cos(Math.PI/180*this.lat);return ne([this.lat-a,this.lng-c],[this.lat+a,this.lng+c])},clone:function(){return new ce(this.lat,this.lng,this.alt)}};function se(i,a,c){return i instanceof ce?i:C(i)&&typeof i[0]!="object"?i.length===3?new ce(i[0],i[1],i[2]):i.length===2?new ce(i[0],i[1]):null:i==null?i:typeof i=="object"&&"lat"in i?new ce(i.lat,"lng"in i?i.lng:i.lon,i.alt):a===void 0?null:new ce(i,a,c)}var ge={latLngToPoint:function(i,a){var c=this.projection.project(i),m=this.scale(a);return this.transformation._transform(c,m)},pointToLatLng:function(i,a){var c=this.scale(a),m=this.transformation.untransform(i,c);return this.projection.unproject(m)},project:function(i){return this.projection.project(i)},unproject:function(i){return this.projection.unproject(i)},scale:function(i){return 256*Math.pow(2,i)},zoom:function(i){return Math.log(i/256)/Math.LN2},getProjectedBounds:function(i){if(this.infinite)return null;var a=this.projection.bounds,c=this.scale(i),m=this.transformation.transform(a.min,c),x=this.transformation.transform(a.max,c);return new Y(m,x)},infinite:!1,wrapLatLng:function(i){var a=this.wrapLng?p(i.lng,this.wrapLng,!0):i.lng,c=this.wrapLat?p(i.lat,this.wrapLat,!0):i.lat,m=i.alt;return new ce(c,a,m)},wrapLatLngBounds:function(i){var a=i.getCenter(),c=this.wrapLatLng(a),m=a.lat-c.lat,x=a.lng-c.lng;if(m===0&&x===0)return i;
244var P=i.getSouthWest(),E=i.getNorthEast(),R=new ce(P.lat-m,P.lng-x),D=new ce(E.lat-m,E.lng-x);return new oe(R,D)}},_t=o({},ge,{wrapLng:[-180,180],R:6371e3,distance:function(i,a){var c=Math.PI/180,m=i.lat*c,x=a.lat*c,P=Math.sin((a.lat-i.lat)*c/2),E=Math.sin((a.lng-i.lng)*c/2),R=P*P+Math.cos(m)*Math.cos(x)*E*E,D=2*Math.atan2(Math.sqrt(R),Math.sqrt(1-R));return this.R*D}}),gn=6378137,yn={R:gn,MAX_LATITUDE:85.0511287798,project:function(i){var a=Math.PI/180,c=this.MAX_LATITUDE,m=Math.max(Math.min(c,i.lat),-c),x=Math.sin(m*a);return new M(this.R*i.lng*a,this.R*Math.log((1+x)/(1-x))/2)},unproject:function(i){var a=180/Math.PI;return new ce((2*Math.atan(Math.exp(i.y/this.R))-Math.PI/2)*a,i.x*a/this.R)},bounds:function(){var i=gn*Math.PI;return new Y([-i,-i],[i,i])}()};function Xt(i,a,c,m){if(C(i)){this._a=i[0],this._b=i[1],this._c=i[2],this._d=i[3];return}this._a=i,this._b=a,this._c=c,this._d=m}Xt.prototype={transform:function(i,a){return this._transform(i.clone(),a)},_transform:function(i,a){return a=a||1,i.x=a*(this._a*i.x+this._b),i.y=a*(this._c*i.y+this._d),i},untransform:function(i,a){return a=a||1,new M((i.x/a-this._b)/this._a,(i.y/a-this._d)/this._c)}};function Jt(i,a,c,m){return new Xt(i,a,c,m)}var en=o({},_t,{code:"EPSG:3857",projection:yn,transformation:function(){var i=.5/(Math.PI*yn.R);return Jt(i,.5,-i,.5)}()}),mo=o({},en,{code:"EPSG:900913"});function po(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Pi(i,a){var c="",m,x,P,E,R,D;for(m=0,P=i.length;m<P;m++){for(R=i[m],x=0,E=R.length;x<E;x++)D=R[x],c+=(x?"L":"M")+D.x+" "+D.y;c+=a?re.svg?"z":"x":""}return c||"M0 0"}var Ti=document.documentElement.style,Dn="ActiveXObject"in window,Rr=Dn&&!document.addEventListener,Is="msLaunchUri"in navigator&&!("documentMode"in document),cr=Wn("webkit"),Ds=Wn("android"),Fn=Wn("android 2")||Wn("android 3"),gd=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),yd=Ds&&Wn("Google")&&gd<537&&!("AudioNode"in window),mt=!!window.opera,dr=!Is&&Wn("chrome"),xl=Wn("gecko")&&!cr&&!mt&&!Dn,vd=!dr&&Wn("safari"),ji=Wn("phantom"),wl="OTransition"in Ti,bl=navigator.platform.indexOf("Win")===0,go=Dn&&"transition"in Ti,zn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Fn,Fs="MozPerspective"in Ti,Or=!window.L_DISABLE_3D&&(go||zn||Fs)&&!wl&&!ji,Ei=typeof orientation<"u"||Wn("mobile"),xd=Ei&&cr,_l=Ei&&zn,zs=!window.PointerEvent&&window.MSPointerEvent,kl=!!(window.PointerEvent||zs),yo="ontouchstart"in window||!!window.TouchEvent,Bn=!window.L_NO_TOUCH&&(yo||kl),wd=Ei&&mt,he=Ei&&xl,Se=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Me=function(){var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("testPassiveEventSupport",g,a),window.removeEventListener("testPassiveEventSupport",g,a)}catch{}return i}(),Ht=function(){return!!document.createElement("canvas").getContext}(),kt=!!(document.createElementNS&&po("svg").createSVGRect),Vn=!!kt&&function(){var i=document.createElement("div");return i.innerHTML="<svg/>",(i.firstChild&&i.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),hr=!kt&&function(){try{var i=document.createElement("div");i.innerHTML='<v:shape adj="1"/>';var a=i.firstChild;return a.style.behavior="url(#default#VML)",a&&typeof a.adj=="object"}catch{return!1}}(),Wt=navigator.platform.indexOf("Mac")===0,Hn=navigator.platform.indexOf("Linux")===0;function Wn(i){return navigator.userAgent.toLowerCase().indexOf(i)>=0}var re={ie:Dn,ielt9:Rr,edge:Is,webkit:cr,android:Ds,android23:Fn,androidStock:yd,opera:mt,chrome:dr,gecko:xl,safari:vd,phantom:ji,opera12:wl,win:bl,ie3d:go,webkit3d:zn,gecko3d:Fs,any3d:Or,mobile:Ei,mobileWebkit:xd,mobileWebkit3d:_l,msPointer:zs,pointer:kl,touch:Bn,touchNative:yo,mobileOpera:wd,mobileGecko:he,retina:Se,passiveEvents:Me,canvas:Ht,svg:kt,vml:hr,inlineSvg:Vn,mac:Wt,linux:Hn},Ag=re.msPointer?"MSPointerDown":"pointerdown",Rg=re.msPointer?"MSPointerMove":"pointermove",Og=re.msPointer?"MSPointerUp":"pointerup",Ig=re.msPointer?"MSPointerCancel":"pointercancel",bd={touchstart:Ag,touchmove:Rg,touchend:Og,touchcancel:Ig},Dg={touchstart:PS,touchmove:Cl,touchend:Cl,touchcancel:Cl},vo={},Fg=!1;function bS(i,a,c){return a==="touchstart"&&SS(),Dg[a]?(c=Dg[a].bind(this,c),i.addEventListener(bd[a],c,!1),c):(console.warn("wrong event specified:",a),g)}function _S(i,a,c){if(!bd[a]){console.warn("wrong event specified:",a);return}i.removeEventListener(bd[a],c,!1)}function kS(i){vo[i.pointerId]=i}function CS(i){vo[i.pointerId]&&(vo[i.pointerId]=i)}function zg(i){delete vo[i.pointerId]}function SS(){Fg||(document.addEventListener(Ag,kS,!0),document.addEventListener(Rg,CS,!0),document.addEventListener(Og,zg,!0),document.addEventListener(Ig,zg,!0),Fg=!0)}function Cl(i,a){if(a.pointerType!==(a.MSPOINTER_TYPE_MOUSE||"mouse")){a.touches=[];for(var c in vo)a.touches.push(vo[c]);a.changedTouches=[a],i(a)}}function PS(i,a){a.MSPOINTER_TYPE_TOUCH&&a.pointerType===a.MSPOINTER_TYPE_TOUCH&&lt(a),Cl(i,a)}function TS(i){var a={},c,m;for(m in i)c=i[m],a[m]=c&&c.bind?c.bind(i):c;return i=a,a.type="dblclick",a.detail=2,a.isTrusted=!1,a._simulated=!0,a}var jS=200;function ES(i,a){i.addEventListener("dblclick",a);var c=0,m;function x(P){if(P.detail!==1){m=P.detail;return}if(!(P.pointerType==="mouse"||P.sourceCapabilities&&!P.sourceCapabilities.firesTouchEvents)){var E=$g(P);if(!(E.some(function(D){return D instanceof HTMLLabelElement&&D.attributes.for})&&!E.some(function(D){return D instanceof HTMLInputElement||D instanceof HTMLSelectElement}))){var R=Date.now();R-c<=jS?(m++,m===2&&a(TS(P))):m=1,c=R}}}return i.addEventListener("click",x),{dblclick:a,simDblclick:x}}function NS(i,a){i.removeEventListener("dblclick",a.dblclick),i.removeEventListener("click",a.simDblclick)}var _d=Tl(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Bs=Tl(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Bg=Bs==="webkitTransition"||Bs==="OTransition"?Bs+"End":"transitionend";function Vg(i){return typeof i=="string"?document.getElementById(i):i}function Vs(i,a){var c=i.style[a]||i.currentStyle&&i.currentStyle[a];if((!c||c==="auto")&&document.defaultView){var m=document.defaultView.getComputedStyle(i,null);c=m?m[a]:null}return c==="auto"?null:c}function ke(i,a,c){var m=document.createElement(i);return m.className=a||"",c&&c.appendChild(m),m}function Be(i){var a=i.parentNode;a&&a.removeChild(i)}function Sl(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function xo(i){var a=i.parentNode;a&&a.lastChild!==i&&a.appendChild(i)}function wo(i){var a=i.parentNode;a&&a.firstChild!==i&&a.insertBefore(i,a.firstChild)}function kd(i,a){if(i.classList!==void 0)return i.classList.contains(a);var c=Pl(i);return c.length>0&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(c)}function ye(i,a){if(i.classList!==void 0)for(var c=S(a),m=0,x=c.length;m<x;m++)i.classList.add(c[m]);else if(!kd(i,a)){var P=Pl(i);Cd(i,(P?P+" ":"")+a)}}function Ke(i,a){i.classList!==void 0?i.classList.remove(a):Cd(i,v((" "+Pl(i)+" ").replace(" "+a+" "," ")))}function Cd(i,a){i.className.baseVal===void 0?i.className=a:i.className.baseVal=a}function Pl(i){return i.correspondingElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function tn(i,a){"opacity"in i.style?i.style.opacity=a:"filter"in i.style&&LS(i,a)}function LS(i,a){var c=!1,m="DXImageTransform.Microsoft.Alpha";try{c=i.filters.item(m)}catch{if(a===1)return}a=Math.round(a*100),c?(c.Enabled=a!==100,c.Opacity=a):i.style.filter+=" progid:"+m+"(opacity="+a+")"}function Tl(i){for(var a=document.documentElement.style,c=0;c<i.length;c++)if(i[c]in a)return i[c];return!1}function Ni(i,a,c){var m=a||new M(0,0);i.style[_d]=(re.ie3d?"translate("+m.x+"px,"+m.y+"px)":"translate3d("+m.x+"px,"+m.y+"px,0)")+(c?" scale("+c+")":"")}function Qe(i,a){i._leaflet_pos=a,re.any3d?Ni(i,a):(i.style.left=a.x+"px",i.style.top=a.y+"px")}function Li(i){return i._leaflet_pos||new M(0,0)}var Hs,Ws,Sd;if("onselectstart"in document)Hs=function(){me(window,"selectstart",lt)},Ws=function(){Ae(window,"selectstart",lt)};else{var $s=Tl(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Hs=function(){if($s){var i=document.documentElement.style;Sd=i[$s],i[$s]="none"}}
244,Ws=function(){$s&&(document.documentElement.style[$s]=Sd,Sd=void 0)}}function Pd(){me(window,"dragstart",lt)}function Td(){Ae(window,"dragstart",lt)}var jl,jd;function Ed(i){for(;i.tabIndex===-1;)i=i.parentNode;i.style&&(El(),jl=i,jd=i.style.outlineStyle,i.style.outlineStyle="none",me(window,"keydown",El))}function El(){jl&&(jl.style.outlineStyle=jd,jl=void 0,jd=void 0,Ae(window,"keydown",El))}function Hg(i){do i=i.parentNode;while((!i.offsetWidth||!i.offsetHeight)&&i!==document.body);return i}function Nd(i){var a=i.getBoundingClientRect();return{x:a.width/i.offsetWidth||1,y:a.height/i.offsetHeight||1,boundingClientRect:a}}var MS={__proto__:null,TRANSFORM:_d,TRANSITION:Bs,TRANSITION_END:Bg,get:Vg,getStyle:Vs,create:ke,remove:Be,empty:Sl,toFront:xo,toBack:wo,hasClass:kd,addClass:ye,removeClass:Ke,setClass:Cd,getClass:Pl,setOpacity:tn,testProp:Tl,setTransform:Ni,setPosition:Qe,getPosition:Li,get disableTextSelection(){return Hs},get enableTextSelection(){return Ws},disableImageDrag:Pd,enableImageDrag:Td,preventOutline:Ed,restoreOutline:El,getSizedParentNode:Hg,getScale:Nd};function me(i,a,c,m){if(a&&typeof a=="object")for(var x in a)Md(i,x,a[x],c);else{a=S(a);for(var P=0,E=a.length;P<E;P++)Md(i,a[P],c,m)}return this}var $n="_leaflet_events";function Ae(i,a,c,m){if(arguments.length===1)Wg(i),delete i[$n];else if(a&&typeof a=="object")for(var x in a)Ad(i,x,a[x],c);else if(a=S(a),arguments.length===2)Wg(i,function(R){return j(a,R)!==-1});else for(var P=0,E=a.length;P<E;P++)Ad(i,a[P],c,m);return this}function Wg(i,a){for(var c in i[$n]){var m=c.split(/\d/)[0];(!a||a(m))&&Ad(i,m,null,null,c)}}
244var Ld={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Md(i,a,c,m){var x=a+h(c)+(m?"_"+h(m):"");if(i[$n]&&i[$n][x])return this;var P=function(R){return c.call(m||i,R||window.event)},E=P;!re.touchNative&&re.pointer&&a.indexOf("touch")===0?P=bS(i,a,P):re.touch&&a==="dblclick"?P=ES(i,P):"addEventListener"in i?a==="touchstart"||a==="touchmove"||a==="wheel"||a==="mousewheel"?i.addEventListener(Ld[a]||a,P,re.passiveEvents?{passive:!1}:!1):a==="mouseenter"||a==="mouseleave"?(P=function(R){R=R||window.event,Od(i,R)&&E(R)},i.addEventListener(Ld[a],P,!1)):i.addEventListener(a,E,!1):i.attachEvent("on"+a,P),i[$n]=i[$n]||{},i[$n][x]=P}function Ad(i,a,c,m,x){x=x||a+h(c)+(m?"_"+h(m):"");var P=i[$n]&&i[$n][x];if(!P)return this;!re.touchNative&&re.pointer&&a.indexOf("touch")===0?_S(i,a,P):re.touch&&a==="dblclick"?NS(i,P):"removeEventListener"in i?i.removeEventListener(Ld[a]||a,P,!1):i.detachEvent("on"+a,P),i[$n][x]=null}function Mi(i){return i.stopPropagation?i.stopPropagation():i.originalEvent?i.originalEvent._stopped=!0:i.cancelBubble=!0,this}function Rd(i){return Md(i,"wheel",Mi),this}function Us(i){return me(i,"mousedown touchstart dblclick contextmenu",Mi),i._leaflet_disable_click=!0,this}function lt(i){return i.preventDefault?i.preventDefault():i.returnValue=!1,this}function Ai(i){return lt(i),Mi(i),this}function $g(i){if(i.composedPath)return i.composedPath();for(var a=[],c=i.target;c;)a.push(c),c=c.parentNode;return a}function Ug(i,a){if(!a)return new M(i.clientX,i.clientY);var c=Nd(a),m=c.boundingClientRect;return new M((i.clientX-m.left)/c.x-a.clientLeft,(i.clientY-m.top)/c.y-a.clientTop)}var AS=re.linux&&re.chrome?window.devicePixelRatio:re.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Zg(i){return re.edge?i.wheelDeltaY/2:i.deltaY&&i.deltaMode===0?-i.deltaY/AS:i.deltaY&&i.deltaMode===1?-i.deltaY*20:i.deltaY&&i.deltaMode===2?-i.deltaY*60:i.deltaX||i.deltaZ?0:i.wheelDelta?(i.wheelDeltaY||i.wheelDelta)/2:i.detail&&Math.abs(i.detail)<32765?-i.detail*20:i.detail?i.detail/-32765*60:0}function Od(i,a){var c=a.relatedTarget;if(!c)return!0;try{for(;c&&c!==i;)c=c.parentNode}catch{return!1}return c!==i}var RS={__proto__:null,on:me,off:Ae,stopPropagation:Mi,disableScrollPropagation:Rd,disableClickPropagation:Us,preventDefault:lt,stop:Ai,getPropagationPath:$g,getMousePosition:Ug,getWheelDelta:Zg,isExternalTarget:Od,addListener:me,removeListener:Ae},Gg=ue.extend({run:function(i,a,c,m){this.stop(),this._el=i,this._inProgress=!0,this._duration=c||.25,this._easeOutPower=1/Math.max(m||.5,.2),this._startPos=Li(i),this._offset=a.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=G(this._animate,this),this._step()},_step:function(i){var a=+new Date-this._startTime,c=this._duration*1e3;a<c?this._runFrame(this._easeOut(a/c),i):(this._runFrame(1),this._complete())},_runFrame:function(i,a){var c=this._startPos.add(this._offset.multiplyBy(i));a&&c._round(),Qe(this._el,c),this.fire("step")},_complete:function(){$(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(i){return 1-Math.pow(1-i,this._easeOutPower)}}),we=ue.extend({options:{crs:en,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(i,a){a=_(this,a),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(i),this._initLayout(),this._onResize=l(this._onResize,this),this._initEvents(),a.maxBounds&&this.setMaxBounds(a.maxBounds),a.zoom!==void 0&&(this._zoom=this._limitZoom(a.zoom)),a.center&&a.zoom!==void 0&&this.setView(se(a.center),a.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Bs&&re.any3d&&!re.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),me(this._proxy,Bg,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 8,589 bytes, line 244
244,setView:function(i,a,c){if(a=a===void 0?this._zoom:this._limitZoom(a),i=this._limitCenter(se(i),a,this.options.maxBounds),c=c||{},this._stop(),this._loaded&&!c.reset&&c!==!0){c.animate!==void 0&&(c.zoom=o({animate:c.animate},c.zoom),c.pan=o({animate:c.animate,duration:c.duration},c.pan));var m=this._zoom!==a?this._tryAnimatedZoom&&this._tryAnimatedZoom(i,a,c.zoom):this._tryAnimatedPan(i,c.pan);if(m)return clearTimeout(this._sizeTimer),this}return this._resetView(i,a,c.pan&&c.pan.noMoveStart),this},setZoom:function(i,a){return this._loaded?this.setView(this.getCenter(),i,{zoom:a}):(this._zoom=i,this)},zoomIn:function(i,a){return i=i||(re.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+i,a)},zoomOut:function(i,a){return i=i||(re.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-i,a)},setZoomAround:function(i,a,c){var m=this.getZoomScale(a),x=this.getSize().divideBy(2),P=i instanceof M?i:this.latLngToContainerPoint(i),E=P.subtract(x).multiplyBy(1-1/m),R=this.containerPointToLatLng(x.add(E));return this.setView(R,a,{zoom:c})},_getBoundsCenterZoom:function(i,a){a=a||{},i=i.getBounds?i.getBounds():ne(i);var c=z(a.paddingTopLeft||a.padding||[0,0]),m=z(a.paddingBottomRight||a.padding||[0,0]),x=this.getBoundsZoom(i,!1,c.add(m));if(x=typeof a.maxZoom=="number"?Math.min(a.maxZoom,x):x,x===1/0)return{center:i.getCenter(),zoom:x};var P=m.subtract(c).divideBy(2),E=this.project(i.getSouthWest(),x),R=this.project(i.getNorthEast(),x),D=this.unproject(E.add(R).divideBy(2).add(P),x);return{center:D,zoom:x}},fitBounds:function(i,a){if(i=ne(i),!i.isValid())throw new Error("Bounds are not valid.");var c=this._getBoundsCenterZoom(i,a);return this.setView(c.center,c.zoom,a)},fitWorld:function(i){return this.fitBounds([[-90,-180],[90,180]],i)},panTo:function(i,a){return this.setView(i,this._zoom,{pan:a})},panBy:function(i,a){if(i=z(i).round(),a=a||{},!i.x&&!i.y)return this.fire("moveend");if(a.animate!==!0&&!this.getSize().contains(i))return this._resetView(this.unproject(this.project(this.getCenter()).add(i)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Gg,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),a.noMoveStart||this.fire("movestart"),a.animate!==!1){ye(this._mapPane,"leaflet-pan-anim");var c=this._getMapPanePos().subtract(i).round();this._panAnim.run(this._mapPane,c,a.duration||.25,a.easeLinearity)}else this._rawPanBy(i),this.fire("move").fire("moveend");return this},flyTo:function(i,a,c){if(c=c||{},c.animate===!1||!re.any3d)return this.setView(i,a,c);this._stop();var m=this.project(this.getCenter()),x=this.project(i),P=this.getSize(),E=this._zoom;i=se(i),a=a===void 0?E:a;var R=Math.max(P.x,P.y),D=R*this.getZoomScale(E,a),W=x.distanceTo(m)||1,Q=1.42,de=Q*Q;function ve(Xe){var Vl=Xe?-1:1,_P=Xe?D:R,kP=D*D-R*R+Vl*de*de*W*W,CP=2*_P*de*W,Zd=kP/CP,Ty=Math.sqrt(Zd*Zd+1)-Zd,SP=Ty<1e-9?-18:Math.log(Ty);return SP}function Ct(Xe){return(Math.exp(Xe)-Math.exp(-Xe))/2}function ot(Xe){return(Math.exp(Xe)+Math.exp(-Xe))/2}function rn(Xe){return Ct(Xe)/ot(Xe)}var At=ve(0);function Po(Xe){return R*(ot(At)/ot(At+Q*Xe))}function vP(Xe){return R*(ot(At)*rn(At+Q*Xe)-Ct(At))/de}function xP(Xe){return 1-Math.pow(1-Xe,1.5)}var wP=Date.now(),Sy=(ve(1)-At)/Q,bP=c.duration?1e3*c.duration:1e3*Sy*.8;function Py(){var Xe=(Date.now()-wP)/bP,Vl=xP(Xe)*Sy;Xe<=1?(this._flyToFrame=G(Py,this),this._move(this.unproject(m.add(x.subtract(m).multiplyBy(vP(Vl)/W)),E),this.getScaleZoom(R/Po(Vl),E),{flyTo:!0})):this._move(i,a)._moveEnd(!0)}return this._moveStart(!0,c.noMoveStart),Py.call(this),this},flyToBounds:function(i,a){var c=this._getBoundsCenterZoom(i,a);return this.flyTo(c.center,c.zoom,a)},setMaxBounds:function(i){return i=ne(i),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),i.isValid()?(this.options.maxBounds=i,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(i){var a=this.options.minZoom;return this.options.minZoom=i,this._loaded&&a!==i&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(i):this},setMaxZoom:function(i){var a=this.options.maxZoom;return this.options.maxZoom=i,this._loaded&&a!==i&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(i):this},panInsideBounds:function(i,a){this._enforcingBounds=!0;var c=this.getCenter(),m=this._limitCenter(c,this._zoom,ne(i));return c.equals(m)||this.panTo(m,a),this._enforcingBounds=!1,this},panInside:function(i,a){a=a||{};var c=z(a.paddingTopLeft||a.padding||[0,0]),m=z(a.paddingBottomRight||a.padding||[0,0]),x=this.project(this.getCenter()),P=this.project(i),E=this.getPixelBounds(),R=X([E.min.add(c),E.max.subtract(m)]),D=R.getSize();if(!R.contains(P)){this._enforcingBounds=!0;var W=P.subtract(R.getCenter()),Q=R.extend(P).getSize().subtract(D);x.x+=W.x<0?-Q.x:Q.x,x.y+=W.y<0?-Q.y:Q.y,this.panTo(this.unproject(x),a),this._enforcingBounds=!1}return this},invalidateSize:function(i){if(!this._loaded)return this;i=o({animate:!1,pan:!0},i===!0?{animate:!0}:i);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var c=this.getSize(),m=a.divideBy(2).round(),x=c.divideBy(2).round(),P=m.subtract(x);return!P.x&&!P.y?this:(i.animate&&i.pan?this.panBy(P):(i.pan&&this._rawPanBy(P),this.fire("move"),i.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(l(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:c}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(i){if(i=this._locateOptions=o({timeout:1e4,watch:!1},i),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=l(this._handleGeolocationResponse,this),c=l(this._handleGeolocationError,this);return i.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,c,i):navigator.geolocation.getCurrentPosition(a,c,i),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(i){if(this._container._leaflet_id){var a=i.code,c=i.message||(a===1?"permission denied":a===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:a,message:"Geolocation error: "+c+"."})}},_handleGeolocationResponse:function(i){if(this._container._leaflet_id){var a=i.coords.latitude,c=i.coords.longitude,m=new ce(a,c),x=m.toBounds(i.coords.accuracy*2),P=this._locateOptions;if(P.setView){var E=this.getBoundsZoom(x);this.setView(m,P.maxZoom?Math.min(E,P.maxZoom):E)}var R={latlng:m,bounds:x,timestamp:i.timestamp};for(var D in i.coords)typeof i.coords[D]=="number"&&(R[D]=i.coords[D]);this.fire("locationfound",R)}},addHandler:function(i,a){if(!a)return this;var c=this[i]=new a(this);return this._handlers.push(c),this.options[i]&&c.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Be(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&($(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var i;for(i in this._layers)this._layers[i].remove();for(i in this._panes)Be(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(i,a){var c="leaflet-pane"+(i?" leaflet-"+i.replace("Pane","")+"-pane":""),m=ke("div",c,a||this._mapPane);return i&&(this._panes[i]=m),m},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var i=this.getPixelBounds(),a=this.unproject(i.getBottomLeft()),c=this.unproject(i.getTopRight());return new oe(a,c)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZo
244om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(i,a,c){i=ne(i),c=z(c||[0,0]);var m=this.getZoom()||0,x=this.getMinZoom(),P=this.getMaxZoom(),E=i.getNorthWest(),R=i.getSouthEast(),D=this.getSize().subtract(c),W=X(this.project(R,m),this.project(E,m)).getSize(),Q=re.any3d?this.options.zoomSnap:1,de=D.x/W.x,ve=D.y/W.y,Ct=a?Math.max(de,ve):Math.min(de,ve);return m=this.getScaleZoom(Ct,m),Q&&(m=Math.round(m/(Q/100))*(Q/100),m=a?Math.ceil(m/Q)*Q:Math.floor(m/Q)*Q),Math.max(x,Math.min(P,m))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new M(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(i,a){var c=this._getTopLeftPoint(i,a);return new Y(c,c.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(i){return this.options.crs.getProjectedBounds(i===void 0?this.getZoom():i)},getPane:function(i){return typeof i=="string"?this._panes[i]:i},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(i,a){var c=this.options.crs;return a=a===void 0?this._zoom:a,c.scale(i)/c.scale(a)},getScaleZoom:function(i,a){var c=this.options.crs;a=a===void 0?this._zoom:a;var m=c.zoom(i*c.scale(a));return isNaN(m)?1/0:m},project:function(i,a){return a=a===void 0?this._zoom:a,this.options.crs.latLngToPoint(se(i),a)},unproject:function(i,a){return a=a===void 0?this._zoom:a,this.options.crs.pointToLatLng(z(i),a)},layerPointToLatLng:function(i){var a=z(i).add(this.getPixelOrigin());return this.unproject(a)},latLngToLayerPoint:function(i){var a=this.project(se(i))._round();return a._subtract(this.getPixelOrigin())},wrapLatLng:function(i){return this.options.crs.wrapLatLng(se(i))},wrapLatLngBounds:function(i){return this.options.crs.wrapLatLngBounds(ne(i))},distance:function(i,a){return this.options.crs.distance(se(i),se(a))},containerPointToLayerPoint:function(i){return z(i).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(i){return z(i).add(this._getMapPanePos())},containerPointToLatLng:function(i){var a=this.containerPointToLayerPoint(z(i));
244return this.layerPointToLatLng(a)},latLngToContainerPoint:function(i){return this.layerPointToContainerPoint(this.latLngToLayerPoint(se(i)))},mouseEventToContainerPoint:function(i){return Ug(i,this._container)},mouseEventToLayerPoint:function(i){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(i))},mouseEventToLatLng:function(i){return this.layerPointToLatLng(this.mouseEventToLayerPoint(i))},_initContainer:function(i){var a=this._container=Vg(i);if(a){if(a._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");me(a,"scroll",this._onScroll,this),this._containerId=h(a)},_initLayout:function(){var i=this._container;this._fadeAnimated=this.options.fadeAnimation&&re.any3d,ye(i,"leaflet-container"+(re.touch?" leaflet-touch":"")+(re.retina?" leaflet-retina":"")+(re.ielt9?" leaflet-oldie":"")+(re.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var a=Vs(i,"position");a!=="absolute"&&a!=="relative"&&a!=="fixed"&&a!=="sticky"&&(i.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var i=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Qe(this._mapPane,new M(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ye(i.markerPane,"leaflet-zoom-hide"),ye(i.shadowPane,"leaflet-zoom-hide"))},_resetView:function(i,a,c){Qe(this._mapPane,new M(0,0));var m=!this._loaded;this._loaded=!0,a=this._limitZoom(a),this.fire("viewprereset");var x=this._zoom!==a;this._moveStart(x,c)._move(i,a)._moveEnd(x),this.fire("viewreset"),m&&this.fire("load")},_moveStart:function(i,a){return i&&this.fire("zoomstart"),a||this.fire("movestart"),this},_move:function(i,a,c,m){a===void 0&&(a=this._zoom);var x=this._zoom!==a;return this._zoom=a,this._lastCenter=i,this._pixelOrigin=this._getNewPixelOrigin(i),m?c&&c.pinch&&this.fire("zoom",c):((x||c&&c.pinch)&&this.fire("zoom",c),this.fire("move",c)),this},_moveEnd:function(i){return i&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return $(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(i){Qe(this._mapPane,this._getMapPanePos().subtract(i))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(i){this._targets={},this._targets[h(this._container)]=this;var a=i?Ae:me;a(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&a(window,"resize",this._onResize,this),re.any3d&&this.options.transform3DLimit&&(i?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){$(this._resizeRequest),this._resizeRequest=G(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var i=this._getMapPanePos();Math.max(Math.abs(i.x),Math.abs(i.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(i,a){for(var c=[],m,x=a==="mouseout"||a==="mouseover",P=i.target||i.srcElement,E=!1;P;){if(m=this._targets[h(P)],m&&(a==="click"||a==="preclick")&&this._draggableMoved(m)){E=!0;break}if(m&&m.listens(a,!0)&&(x&&!Od(P,i)||(c.push(m),x))||P===this._container)break;P=P.parentNode}return!c.length&&!E&&!x&&this.listens(a,!0)&&(c=[this]),c},_isClickDisabled:function(i){for(;i&&i!==this._container;){if(i._leaflet_disable_click)return!0;i=i.parentNode}},_handleDOMEvent:function(i){var a=i.target||i.srcElement;if(!(!this._loaded||a._leaflet_disable_events||i.type==="click"&&this._isClickDisabled(a))){var c=i.type;c==="mousedown"&&Ed(a),this._fireDOMEvent(i,c)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(i,a,c){if(i.type==="click"){var m=o({},i);m.type="preclick",this._fireDOMEvent(m,m.type,c)}var x=this._findEventTargets(i,a);if(c){for(var P=[],E=0;E<c.length;E++)c[E].listens(a,!0)&&P.push(c[E]);x=P.concat(x)}if(x.length){a==="contextmenu"&&lt(i);var R=x[0],D={originalEvent:i};if(i.type!=="keypress"&&i.type!=="keydown"&&i.type!=="keyup"){var W=R.getLatLng&&(!R._radius||R._radius<=10);D.containerPoint=W?this.latLngToContainerPoint(R.getLatLng()):this.mouseEventToContainerPoint(i),D.layerPoint=this.containerPointToLayerPoint(D.containerPoint),D.latlng=W?R.getLatLng():this.layerPointToLatLng(D.layerPoint)}for(E=0;E<x.length;E++)if(x[E].fire(a,D,!0),D.originalEvent._stopped||x[E].options.bubblingMouseEvents===!1&&j(this._mouseEvents,a)!==-1)return}},_draggableMoved:function(i){return i=i.dragging&&i.dragging.enabled()?i:this,i.dragging&&i.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var i=0,a=this._handlers.length;i<a;i++)this._handlers[i].disable()},whenReady:function(i,a){return this._loaded?i.call(a||this,{target:this}):this.on("load",i,a),this},_getMapPanePos:function(){return Li(this._mapPane)||new M(0,0)},_moved:function(){var i=this._getMapPanePos();return i&&!i.equals([0,0])},_getTopLeftPoint:function(i,a){var c=i&&a!==void 0?this._getNewPixelOrigin(i,a):this.getPixelOrigin();return c.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(i,a){var c=this.getSize()._divideBy(2);return this.project(i,a)._subtract(c)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(i,a,c){var m=this._getNewPixelOrigin(c,a);return this.project(i,a)._subtract(m)},_latLngBoundsToNewLayerBounds:function(i,a,c){var m=this._getNewPixelOrigin(c,a);
vendor: 13,817 bytes, line 244
244return X([this.project(i.getSouthWest(),a)._subtract(m),this.project(i.getNorthWest(),a)._subtract(m),this.project(i.getSouthEast(),a)._subtract(m),this.project(i.getNorthEast(),a)._subtract(m)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(i){return this.latLngToLayerPoint(i).subtract(this._getCenterLayerPoint())},_limitCenter:function(i,a,c){if(!c)return i;var m=this.project(i,a),x=this.getSize().divideBy(2),P=new Y(m.subtract(x),m.add(x)),E=this._getBoundsOffset(P,c,a);return Math.abs(E.x)<=1&&Math.abs(E.y)<=1?i:this.unproject(m.add(E),a)},_limitOffset:function(i,a){if(!a)return i;var c=this.getPixelBounds(),m=new Y(c.min.add(i),c.max.add(i));return i.add(this._getBoundsOffset(m,a))},_getBoundsOffset:function(i,a,c){var m=X(this.project(a.getNorthEast(),c),this.project(a.getSouthWest(),c)),x=m.min.subtract(i.min),P=m.max.subtract(i.max),E=this._rebound(x.x,-P.x),R=this._rebound(x.y,-P.y);return new M(E,R)},_rebound:function(i,a){return i+a>0?Math.round(i-a)/2:Math.max(0,Math.ceil(i))-Math.max(0,Math.floor(a))},_limitZoom:function(i){var a=this.getMinZoom(),c=this.getMaxZoom(),m=re.any3d?this.options.zoomSnap:1;return m&&(i=Math.round(i/m)*m),Math.max(a,Math.min(c,i))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ke(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(i,a){var c=this._getCenterOffset(i)._trunc();return(a&&a.animate)!==!0&&!this.getSize().contains(c)?!1:(this.panBy(c,a),!0)},_createAnimProxy:function(){var i=this._proxy=ke("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(i),this.on("zoomanim",function(a){var c=_d,m=this._proxy.style[c];Ni(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),m===this._proxy.style[c]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Be(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var i=this.getCenter(),a=this.getZoom();Ni(this._proxy,this.project(i,a),this.getZoomScale(a,1))},_catchTransitionEnd:function(i){this._animatingZoom&&i.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(i,a,c){if(this._animatingZoom)return!0;if(c=c||{},!this._zoomAnimated||c.animate===!1||this._nothingToAnimate()||Math.abs(a-this._zoom)>this.options.zoomAnimationThreshold)return!1;var m=this.getZoomScale(a),x=this._getCenterOffset(i)._divideBy(1-1/m);return c.animate!==!0&&!this.getSize().contains(x)?!1:(G(function(){this._moveStart(!0,c.noMoveStart||!1)._animateZoom(i,a,!0)},this),!0)},_animateZoom:function(i,a,c,m){this._mapPane&&(c&&(this._animatingZoom=!0,this._animateToCenter=i,this._animateToZoom=a,ye(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:i,zoom:a,noUpdate:m}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(l(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ke(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function OS(i,a){return new we(i,a)}var vn=U.extend({options:{position:"topright"},initialize:function(i){_(this,i)},getPosition:function(){return this.options.position},setPosition:function(i){var a=this._map;return a&&a.removeControl(this),this.options.position=i,a&&a.addControl(this),this},getContainer:function(){return this._container},addTo:function(i){this.remove(),this._map=i;var a=this._container=this.onAdd(i),c=this.getPosition(),m=i._controlCorners[c];return ye(a,"leaflet-control"),c.indexOf("bottom")!==-1?m.insertBefore(a,m.firstChild):m.appendChild(a),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Be(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(i){this._map&&i&&i.screenX>0&&i.screenY>0&&this._map.getContainer().focus()}}),Zs=function(i){return new vn(i)};we.include({addControl:function(i){return i.addTo(this),this},removeControl:function(i){return i.remove(),this},_initControlPos:function(){var i=this._controlCorners={},a="leaflet-",c=this._controlContainer=ke("div",a+"control-container",this._container);function m(x,P){var E=a+x+" "+a+P;i[x+P]=ke("div",E,c)}m("top","left"),m("top","right"),m("bottom","left"),m("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)Be(this._controlCorners[i]);Be(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Kg=vn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(i,a,c,m){return c<m?-1:m<c?1:0}},initialize:function(i,a,c){_(this,c),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var m in i)this._addLayer(i[m],m);for(m in a)this._addLayer(a[m],m,!0)},onAdd:function(i){this._initLayout(),this._update(),this._map=i,i.on("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(i){return vn.prototype.addTo.call(this,i),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(i,a){return this._addLayer(i,a),this._map?this._update():this},addOverlay:function(i,a){return this._addLayer(i,a,!0),this._map?this._update():this},removeLayer:function(i){i.off("add remove",this._onLayerChange,this);var a=this._getLayer(h(i));return a&&this._layers.splice(this._layers.indexOf(a),1),this._map?this._update():this},expand:function(){ye(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var i=this._map.getSize().y-(this._container.offsetTop+50);return i<this._section.clientHeight?(ye(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=i+"px"):Ke(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ke(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var i="leaflet-control-layers",a=this._container=ke("div",i),c=this.options.collapsed;a.setAttribute("aria-haspopup",!0),Us(a),Rd(a);var m=this._section=ke("section",i+"-list");c&&(this._map.on("click",this.collapse,this),me(a,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var x=this._layersLink=ke("a",i+"-toggle",a);x.href="#",x.title="Layers",x.setAttribute("role","button"),me(x,{keydown:function(P){P.keyCode===13&&this._expandSafely()},click:function(P){lt(P),this._expandSafely()}},this),c||this.expand(),this._baseLayersList=ke("div",i+"-base",m),this._separator=ke("div",i+"-separator",m),this._overlaysList=ke("div",i+"-overlays",m),a.appendChild(m)},_getLayer:function(i){for(var a=0;a<this._layers.length;a++)if(this._layers[a]&&h(this._layers[a].layer)===i)return this._layers[a]},_addLayer:function(i,a,c){this._map&&i.on("add remove",this._onLayerChange,this),this._layers.push({layer:i,name:a,overlay:c}),this.options.sortLayers&&this._layers.sort(l(function(m,x){return this.options.sortFunction(m.layer,x.layer,m.name,x.name)},this)),this.options.autoZIndex&&i.setZIndex&&(this._lastZIndex++,i.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Sl(this._baseLayersList),Sl(this._overlaysList),this._layerControlInputs=[];var i,a,c,m,x=0;for(c=0;c<this._layers.length;c++)m=this._layers[c],this._addItem(m),a=a||m.overlay,i=i||!m.overlay,x+=m.overlay?0:1;return this.options.hideSingleBase&&(i=i&&x>1,this._baseLayersList.style.display=i?"":"none"),this._separator.style.display=a&&i?"":"none",this},_onLayerChange:function(i){this._handlingClick||this._update();var a=this._getLayer(h(i.target)),c=a.overlay?i.type==="add"?"overlayadd":"overlayremove":i.type==="add"?"baselayerchange":null;c&&this._map.fire(c,a)},_createRadioElement:function(i,a){var c='<input type="radio" class="leaflet-control-layers-selector" name="'+i+'"'+(a?' checked="checked"':"")+"/>",m=document.createElement("div");return m.innerHTML=c,m.firstChild},_addItem:function(i){var a=document.createElement("label"),c=this._map.hasLayer(i.layer),m;i.overlay?(m=document.createElement("input"),m.type="checkbox",m.className="leaflet-control-layers-selector",m.defaultChecked=c):m=this._createRadioElement("leaflet-base-layers_"+h(this),c),this._layerControlInputs.push(m),m.layerId=h(i.layer),me(m,"click",this._onInputClick,this);var x=document.createElement("span");x.innerHTML=" "+i.name;var P=document.createElement("span");a.appendChild(P),P.appendChild(m),P.appendChild(x);var E=i.overlay?this._overlaysList:this._baseLayersList;return E.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){if(!this._preventClick){var i=this._layerControlInputs,a,c,m=[],x=[];this._handlingClick=!0;for(var P=i.length-1;P>=0;P--)a=i[P],c=this._getLayer(a.layerId).layer,a.checked?m.push(c):a.checked||x.push(c);for(P=0;P<x.length;P++)this._map.hasLayer(x[P])&&this._map.removeLayer(x[P]);for(P=0;P<m.length;P++)this._map.hasLayer(m[P])||this._map.addLayer(m[P]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var i=this._layerControlInputs,a,c,m=this._map.getZoom(),x=i.length-1;x>=0;x--)a=i[x],c=this._getLayer(a.layerId).layer,a.disabled=c.options.minZoom!==void 0&&m<c.options.minZoom||c.options.maxZoom!==void 0&&m>c.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var i=this._section;this._preventClick=!0,me(i,"click",lt),this.expand();var a=this;setTimeout(function(){Ae(i,"click",lt),a._preventClick=!1})}}),IS=function(i,a,c){return new Kg(i,a,c)},Id=vn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(i){var a="leaflet-control-zoom",c=ke("div",a+" leaflet-bar"),m=this.options;return this._zoomInButton=this._createButton(m.zoomInText,m.zoomInTitle,a+"-in",c,this._zoomIn),this._zoomOutButton=this._createButton(m.zoomOutText,m.zoomOutTitle,a+"-out",c,this._zoomOut),this._updateDisabled(),i.on("zoomend zoomlevelschange",this._updateDisabled,this),c},onRemove:function(i){i.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(i){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(i.shiftKey?3:1))},_zoomOut:function(i){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(i.shiftKey?3:1))},_createButton:function(i,a,c,m,x){var P=ke("a",c,m);return P.innerHTML=i,P.href="#",P.title=a,P.setAttribute("role","button"),P.setAttribute("aria-label",a),Us(P),me(P,"click",Ai),me(P,"click",x,this),me(P,"click",this._refocusOnMap,this),P},_updateDisabled:function(){var i=this._map,a="leaflet-disabled";Ke(this._zoomInButton,a),Ke(this._zoomOutButton,a),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||i._zoom===i.getMinZoom())&&(ye(this._zoomOutButton,a),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||i._zoom===i.getMaxZoom())&&(ye(this._zoomInButton,a),this._zoomInButton.setAttribute("aria-disabled","true"))}});we.mergeOptions({zoomControl:!0}),we.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Id,this.addControl(this.zoomControl))});var DS=function(i){return new Id(i)},qg=vn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(i){var a="leaflet-control-scale",c=ke("div",a),m=this.options;return this._addScales(m,a+"-line",c),i.on(m.updateWhenIdle?"moveend":"move",this._update,this),i.whenReady(this._update,this),c},onRemove:function(i){i.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(i,a,c){i.metric&&(this._mScale=ke("div",a,c)),i.imperial&&(this._iScale=ke("div",a,c))},_update:function(){var i=this._map,a=i.getSize().y/2,c=i.distance(i.containerPointToLatLng([0,a]),i.containerPointToLatLng([this.options.maxWidth,a]));this._updateScales(c)},_updateScales:function(i){this.options.metric&&i&&this._updateMetric(i),this.options.imperial&&i&&this._updateImperial(i)},_updateMetric:function(i){var a=this._getRoundNum(i),c=a<1e3?a+" m":a/1e3+" km";this._updateScale(this._mScale,c,a/i)},_updateImperial:function(i){var a=i*3.2808399,c,m,x;a>5280?(c=a/5280,m=this._getRoundNum(c),this._updateScale(this._iScale,m+" mi",m/c)):(x=this._getRoundNum(a),this._updateScale(this._iScale,x+" ft",x/a))},_updateScale:function(i,a,c){i.style.width=Math.round(this.options.maxWidth*c)+"px",i.innerHTML=a},_getRoundNum:function(i){var a=Math.pow(10,(Math.floor(i)+"").length-1),c=i/a;return c=c>=10?10:c>=5?5:c>=3?3:c>=2?2:1,a*c}}),FS=function(i){return new qg(i)}
244,zS='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Dd=vn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(re.inlineSvg?zS+" ":"")+"Leaflet</a>"},initialize:function(i){_(this,i),this._attributions={}},onAdd:function(i){i.attributionControl=this,this._container=ke("div","leaflet-control-attribution"),Us(this._container);for(var a in i._layers)i._layers[a].getAttribution&&this.addAttribution(i._layers[a].getAttribution());return this._update(),i.on("layeradd",this._addAttribution,this),this._container},onRemove:function(i){i.off("layeradd",this._addAttribution,this)},_addAttribution:function(i){i.layer.getAttribution&&(this.addAttribution(i.layer.getAttribution()),i.layer.once("remove",function(){this.removeAttribution(i.layer.getAttribution())},this))},setPrefix:function(i){return this.options.prefix=i,this._update(),this},addAttribution:function(i){return i?(this._attributions[i]||(this._attributions[i]=0),this._attributions[i]++,this._update(),this):this},removeAttribution:function(i){return i?(this._attributions[i]&&(this._attributions[i]--,this._update()),this):this},_update:function(){if(this._map){var i=[];for(var a in this._attributions)this._attributions[a]&&i.push(a);var c=[];this.options.prefix&&c.push(this.options.prefix),i.length&&c.push(i.join(", ")),this._container.innerHTML=c.join(' <span aria-hidden="true">|</span> ')}}});we.mergeOptions({attributionControl:!0}),we.addInitHook(function(){this.options.attributionControl&&new Dd().addTo(this)});var BS=function(i){return new Dd(i)};vn.Layers=Kg,vn.Zoom=Id,vn.Scale=qg,vn.Attribution=Dd,Zs.layers=IS,Zs.zoom=DS,Zs.scale=FS,Zs.attribution=BS;var Un=U.extend({initialize:function(i){this._map=i},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Un.addTo=function(i,a){return i.addHandler(a,this),this};var VS={Events:q},Yg=re.touch?"touchstart mousedown":"mousedown",Ir=ue.extend({options:{clickTolerance:3},initialize:function(i,a,c,m){_(this,m),this._element=i,this._dragStartTarget=a||i,this._preventOutline=c},enable:function(){this._enabled||(me(this._dragStartTarget,Yg,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ir._dragging===this&&this.finishDrag(!0),Ae(this._dragStartTarget,Yg,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(i){if(this._enabled&&(this._moved=!1,!kd(this._element,"leaflet-zoom-anim"))){if(i.touches&&i.touches.length!==1){Ir._dragging===this&&this.finishDrag();return}if(!(Ir._dragging||i.shiftKey||i.which!==1&&i.button!==1&&!i.touches)&&(Ir._dragging=this,this._preventOutline&&Ed(this._element),Pd(),Hs(),!this._moving)){this.fire("down");var a=i.touches?i.touches[0]:i,c=Hg(this._element);this._startPoint=new M(a.clientX,a.clientY),this._startPos=Li(this._element),this._parentScale=Nd(c);var m=i.type==="mousedown";me(document,m?"mousemove":"touchmove",this._onMove,this),me(document,m?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(i){if(this._enabled){if(i.touches&&i.touches.length>1){this._moved=!0;return}var a=i.touches&&i.touches.length===1?i.touches[0]:i,c=new M(a.clientX,a.clientY)._subtract(this._startPoint);!c.x&&!c.y||Math.abs(c.x)+Math.abs(c.y)<this.options.clickTolerance||(c.x/=this._parentScale.x,c.y/=this._parentScale.y,lt(i),this._moved||(this.fire("dragstart"),this._moved=!0,ye(document.body,"leaflet-dragging"),this._lastTarget=i.target||i.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ye(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(c),this._moving=!0,this._lastEvent=i,this._updatePosition())}},_updatePosition:function(){var i={originalEvent:this._lastEvent};this.fire("predrag",i),Qe(this._element,this._newPos),this.fire("drag",i)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(i){Ke(document.body,"leaflet-dragging"),this._lastTarget&&(Ke(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ae(document,"mousemove touchmove",this._onMove,this),Ae(document,"mouseup touchend touchcancel",this._onUp,this),Td(),Ws();var a=this._moved&&this._moving;this._moving=!1,Ir._dragging=!1,a&&this.fire("dragend",{noInertia:i,distance:this._newPos.distanceTo(this._startPos)})}});function Qg(i,a,c){var m,x=[1,4,2,8],P,E,R,D,W,Q,de,ve;for(P=0,Q=i.length;P<Q;P++)i[P]._code=Ri(i[P],a);for(R=0;R<4;R++){for(de=x[R],m=[],P=0,Q=i.length,E=Q-1;P<Q;E=P++)D=i[P],W=i[E],D._code&de?W._code&de||(ve=Nl(W,D,de,a,c),ve._code=Ri(ve,a),m.push(ve)):(W._code&de&&(ve=Nl(W,D,de,a,c),ve._code=Ri(ve,a),m.push(ve)),m.push(D));i=m}return i}function Xg(i,a){var c,m,x,P,E,R,D,W,Q;if(!i||i.length===0)throw new Error("latlngs not passed");nn(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var de=se([0,0]),ve=ne(i),Ct=ve.getNorthWest().distanceTo(ve.getSouthWest
244())*ve.getNorthEast().distanceTo(ve.getNorthWest());Ct<1700&&(de=Fd(i));var ot=i.length,rn=[];for(c=0;c<ot;c++){var At=se(i[c]);rn.push(a.project(se([At.lat-de.lat,At.lng-de.lng])))}for(R=D=W=0,c=0,m=ot-1;c<ot;m=c++)x=rn[c],P=rn[m],E=x.y*P.x-P.y*x.x,D+=(x.x+P.x)*E,W+=(x.y+P.y)*E,R+=E*3;R===0?Q=rn[0]:Q=[D/R,W/R];var Po=a.unproject(z(Q));return se([Po.lat+de.lat,Po.lng+de.lng])}function Fd(i){for(var a=0,c=0,m=0,x=0;x<i.length;x++){var P=se(i[x]);a+=P.lat,c+=P.lng,m++}return se([a/m,c/m])}var HS={__proto__:null,clipPolygon:Qg,polygonCenter:Xg,centroid:Fd};function Jg(i,a){if(!a||!i.length)return i.slice();var c=a*a;return i=US(i,c),i=$S(i,c),i}function ey(i,a,c){return Math.sqrt(Gs(i,a,c,!0))}function WS(i,a,c){return Gs(i,a,c)}function $S(i,a){var c=i.length,m=typeof Uint8Array<"u"?Uint8Array:Array,x=new m(c);x[0]=x[c-1]=1,zd(i,x,a,0,c-1);var P,E=[];for(P=0;P<c;P++)x[P]&&E.push(i[P]);return E}function zd(i,a,c,m,x){var P=0,E,R,D;for(R=m+1;R<=x-1;R++)D=Gs(i[R],i[m],i[x],!0),D>P&&(E=R,P=D);P>c&&(a[E]=1,zd(i,a,c,m,E),zd(i,a,c,E,x))}function US(i,a){for(var c=[i[0]],m=1,x=0,P=i.length;m<P;m++)ZS(i[m],i[x])>a&&(c.push(i[m]),x=m);return x<P-1&&c.push(i[P-1]),c}var ty;function ny(i,a,c,m,x){var P=m?ty:Ri(i,c),E=Ri(a,c),R,D,W;for(ty=E;;){if(!(P|E))return[i,a];if(P&E)return!1;R=P||E,D=Nl(i,a,R,c,x),W=Ri(D,c),R===P?(i=D,P=W):(a=D,E=W)}}function Nl(i,a,c,m,x){var P=a.x-i.x,E=a.y-i.y,R=m.min,D=m.max,W,Q;return c&8?(W=i.x+P*(D.y-i.y)/E,Q=D.y):c&4?(W=i.x+P*(R.y-i.y)/E,Q=R.y):c&2?(W=D.x,Q=i.y+E*(D.x-i.x)/P):c&1&&(W=R.x,Q=i.y+E*(R.x-i.x)/P),new M(W,Q,x)}function Ri(i,a){var c=0;return i.x<a.min.x?c|=1:i.x>a.max.x&&(c|=2),i.y<a.min.y?c|=4:i.y>a.max.y&&(c|=8),c}function ZS(i,a){var c=a.x-i.x,m=a.y-i.y;return c*c+m*m}function Gs(i,a,c,m){var x=a.x,P=a.y,E=c.x-x,R=c.y-P,D=E*E+R*R,W;return D>0&&(W=((i.x-x)*E+(i.y-P)*R)/D,W>1?(x=c.x,P=c.y):W>0&&(x+=E*W,P+=R*W)),E=i.x-x,R=i.y-P,m?E*E+R*R:new M(x,P)}function nn(i){return!C(i[0])||typeof i[0][0]!="object"&&typeof i[0][0]<"u"}function ry(i){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),nn(i)}function iy(i,a){var c,m,x,P,E,R,D,W;if(!i||i.length===0)throw new Error("latlngs not passed");nn(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var Q=se([0,0]),de=ne(i),ve=de.getNorthWest().distanceTo(de.getSouthWest
vendor: 4,217 bytes, line 244
244())*de.getNorthEast().distanceTo(de.getNorthWest());ve<1700&&(Q=Fd(i));var Ct=i.length,ot=[];for(c=0;c<Ct;c++){var rn=se(i[c]);ot.push(a.project(se([rn.lat-Q.lat,rn.lng-Q.lng])))}for(c=0,m=0;c<Ct-1;c++)m+=ot[c].distanceTo(ot[c+1])/2;if(m===0)W=ot[0];else for(c=0,P=0;c<Ct-1;c++)if(E=ot[c],R=ot[c+1],x=E.distanceTo(R),P+=x,P>m){D=(P-m)/x,W=[R.x-D*(R.x-E.x),R.y-D*(R.y-E.y)];break}var At=a.unproject(z(W));return se([At.lat+Q.lat,At.lng+Q.lng])}var GS={__proto__:null,simplify:Jg,pointToSegmentDistance:ey,closestPointOnSegment:WS,clipSegment:ny,_getEdgeIntersection:Nl,_getBitCode:Ri,_sqClosestPointOnSegment:Gs,isFlat:nn,_flat:ry,polylineCenter:iy},Bd={project:function(i){return new M(i.lng,i.lat)},unproject:function(i){return new ce(i.y,i.x)},bounds:new Y([-180,-90],[180,90])},Vd={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Y([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(i){var a=Math.PI/180,c=this.R,m=i.lat*a,x=this.R_MINOR/c,P=Math.sqrt(1-x*x),E=P*Math.sin(m),R=Math.tan(Math.PI/4-m/2)/Math.pow((1-E)/(1+E),P/2);return m=-c*Math.log(Math.max(R,1e-10)),new M(i.lng*a*c,m)},unproject:function(i){for(var a=180/Math.PI,c=this.R,m=this.R_MINOR/c,x=Math.sqrt(1-m*m),P=Math.exp(-i.y/c),E=Math.PI/2-2*Math.atan(P),R=0,D=.1,W;R<15&&Math.abs(D)>1e-7;R++)W=x*Math.sin(E),W=Math.pow((1-W)/(1+W),x/2),D=Math.PI/2-2*Math.atan(P*W)-E,E+=D;return new ce(E*a,i.x*a/c)}},KS={__proto__:null,LonLat:Bd,Mercator:Vd,SphericalMercator:yn},qS=o({},_t,{code:"EPSG:3395",projection:Vd,transformation:function(){var i=.5/(Math.PI*Vd.R);return Jt(i,.5,-i,.5)}()}),oy=o({},_t,{code:"EPSG:4326",projection:Bd,transformation:Jt(1/180,1,-1/180,.5)}),YS=o({},ge,{projection:Bd,transformation:Jt(1,0,-1,0),scale:function(i){return Math.pow(2,i)},zoom:function(i){return Math.log(i)/Math.LN2},distance:function(i,a){var c=a.lng-i.lng,m=a.lat-i.lat;return Math.sqrt(c*c+m*m)},infinite:!0});ge.Earth=_t,ge.EPSG3395=qS,ge.EPSG3857=en,ge.EPSG900913=mo,ge.EPSG4326=oy,ge.Simple=YS;var xn=ue.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(i){return i.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(i){return i&&i.removeLayer(this),this},getPane:function(i){return this._map.getPane(i?this.options[i]||i:this.options.pane)},addInteractiveTarget:function(i){return this._map._targets[h(i)]=this,this},removeInteractiveTarget:function(i){return delete this._map._targets[h(i)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(i){var a=i.target;if(a.hasLayer(this)){if(this._map=a,this._zoomAnimated=a._zoomAnimated,this.getEvents){var c=this.getEvents();a.on(c,this),this.once("remove",function(){a.off(c,this)},this)}this.onAdd(a),this.fire("add"),a.fire("layeradd",{layer:this})}}});we.include({addLayer:function(i){if(!i._layerAdd)throw new Error("The provided object is not a Layer.");var a=h(i);return this._layers[a]?this:(this._layers[a]=i,i._mapToAdd=this,i.beforeAdd&&i.beforeAdd(this),this.whenReady(i._layerAdd,i),this)},removeLayer:function(i){var a=h(i);return this._layers[a]?(this._loaded&&i.onRemove(this),delete this._layers[a],this._loaded&&(this.fire("layerremove",{layer:i}),i.fire("remove")),i._map=i._mapToAdd=null,this):this},hasLayer:function(i){return h(i)in this._layers},eachLayer:function(i,a){for(var c in this._layers)i.call(a,this._layers[c]);return this},_addLayers:function(i){i=i?C(i)?i:[i]:[];for(var a=0,c=i.length;a<c;a++)this.addLayer(i[a])},_addZoomLimit:function(i){(!isNaN(i.options.maxZoom)||!isNaN(i.options.minZoom))&&(this._zoomBoundLayers[h(i)]=i,this._updateZoomLevels())},_removeZoomLimit:function(i){var a=h(i);this._zoomBoundLayers[a]&&(delete this._zoomBoundLayers[a],this._updateZoomLevels())},_updateZoomLevels:function(){var i=1/0,a=-1/0,c=this._getZoomSpan();for(var m in this._zoomBoundLayers){var x=this._zoomBoundLayers[m].options;i=x.minZoom===void 0?i:Math.min(i,x.minZoom),a=x.maxZoom===void 0?a:Math.max(a,x.maxZoom)}this._layersMaxZoom=a===-1/0?void 0:a,this._layersMinZoom=i===1/0?void 0:i,c!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
vendor: 12,973 bytes, line 244
244om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var bo=xn.extend({initialize:function(i,a){_(this,a),this._layers={};var c,m;if(i)for(c=0,m=i.length;c<m;c++)this.addLayer(i[c])},addLayer:function(i){var a=this.getLayerId(i);return this._layers[a]=i,this._map&&this._map.addLayer(i),this},removeLayer:function(i){var a=i in this._layers?i:this.getLayerId(i);return this._map&&this._layers[a]&&this._map.removeLayer(this._layers[a]),delete this._layers[a],this},hasLayer:function(i){var a=typeof i=="number"?i:this.getLayerId(i);return a in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(i){var a=Array.prototype.slice.call(arguments,1),c,m;for(c in this._layers)m=this._layers[c],m[i]&&m[i].apply(m,a);return this},onAdd:function(i){this.eachLayer(i.addLayer,i)},onRemove:function(i){this.eachLayer(i.removeLayer,i)},eachLayer:function(i,a){for(var c in this._layers)i.call(a,this._layers[c]);return this},getLayer:function(i){return this._layers[i]},getLayers:function(){var i=[];return this.eachLayer(i.push,i),i},setZIndex:function(i){return this.invoke("setZIndex",i)},getLayerId:function(i){return h(i)}}),QS=function(i,a){return new bo(i,a)},fr=bo.extend({addLayer:function(i){return this.hasLayer(i)?this:(i.addEventParent(this),bo.prototype.addLayer.call(this,i),this.fire("layeradd",{layer:i}))},removeLayer:function(i){return this.hasLayer(i)?(i in this._layers&&(i=this._layers[i]),i.removeEventParent(this),bo.prototype.removeLayer.call(this,i),this.fire("layerremove",{layer:i})):this},setStyle:function(i){return this.invoke("setStyle",i)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var i=new oe;for(var a in this._layers){var c=this._layers[a];i.extend(c.getBounds?c.getBounds():c.getLatLng())}return i}}),XS=function(i,a){return new fr(i,a)},_o=U.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(i){_(this,i)},createIcon:function(i){return this._createIcon("icon",i)},createShadow:function(i){return this._createIcon("shadow",i)},_createIcon:function(i,a){var c=this._getIconUrl(i);if(!c){if(i==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var m=this._createImg(c,a&&a.tagName==="IMG"?a:null);return this._setIconStyles(m,i),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),m},_setIconStyles:function(i,a){var c=this.options,m=c[a+"Size"];typeof m=="number"&&(m=[m,m]);var x=z(m),P=z(a==="shadow"&&c.shadowAnchor||c.iconAnchor||x&&x.divideBy(2,!0));i.className="leaflet-marker-"+a+" "+(c.className||""),P&&(i.style.marginLeft=-P.x+"px",i.style.marginTop=-P.y+"px"),x&&(i.style.width=x.x+"px",i.style.height=x.y+"px")},_createImg:function(i,a){return a=a||document.createElement("img"),a.src=i,a},_getIconUrl:function(i){return re.retina&&this.options[i+"RetinaUrl"]||this.options[i+"Url"]}});function JS(i){return new _o(i)}var Ks=_o.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(i){return typeof Ks.imagePath!="string"&&(Ks.imagePath=this._detectIconPath()),(this.options.imagePath||Ks.imagePath)+_o.prototype._getIconUrl.call(this,i)},_stripUrl:function(i){var a=function(c,m,x){var P=m.exec(c);return P&&P[x]};return i=a(i,/^url\((['"])?(.+)\1\)$/,2),i&&a(i,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var i=ke("div","leaflet-default-icon-path",document.body),a=Vs(i,"background-image")||Vs(i,"backgroundImage");if(document.body.removeChild(i),a=this._stripUrl(a),a)return a;var c=document.querySelector('link[href$="leaflet.css"]');return c?c.href.substring(0,c.href.length-11-1):""}}),sy=Un.extend({initialize:function(i){this._marker=i},addHooks:function(){var i=this._marker._icon;this._draggable||(this._draggable=new Ir(i,i,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ye(i,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ke(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(i){var a=this._marker,c=a._map,m=this._marker.options.autoPanSpeed,x=this._marker.options.autoPanPadding,P=Li(a._icon),E=c.getPixelBounds(),R=c.getPixelOrigin(),D=X(E.min._subtract(R).add(x),E.max._subtract(R).subtract(x));if(!D.contains(P)){var W=z((Math.max(D.max.x,P.x)-D.max.x)/(E.max.x-D.max.x)-(Math.min(D.min.x,P.x)-D.min.x)/(E.min.x-D.min.x),(Math.max(D.max.y,P.y)-D.max.y)/(E.max.y-D.max.y)-(Math.min(D.min.y,P.y)-D.min.y)/(E.min.y-D.min.y)).multiplyBy(m);c.panBy(W,{animate:!1}),this._draggable._newPos._add(W),this._draggable._startPos._add(W),Qe(a._icon,this._draggable._newPos),this._onDrag(i),this._panRequest=G(this._adjustPan.bind(this,i))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(i){this._marker.options.autoPan&&($(this._panRequest),this._panRequest=G(this._adjustPan.bind(this,i)))},_onDrag:function(i){var a=this._marker,c=a._shadow,m=Li(a._icon),x=a._map.layerPointToLatLng(m);c&&Qe(c,m),a._latlng=x,i.latlng=x,i.oldLatLng=this._oldLatLng,a.fire("move",i).fire("drag",i)},_onDragEnd:function(i){$(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",i)}}),Ll=xn.extend({options:{icon:new Ks,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(i,a){_(this,a),this._latlng=se(i)},onAdd:function(i){this._zoomAnimated=this._zoomAnimated&&i.options.markerZoomAnimation,this._zoomAnimated&&i.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(i){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&i.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(i){var a=this._latlng;return this._latlng=se(i),this.update(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},setZIndexOffset:function(i){return this.options.zIndexOffset=i,this.update()},getIcon:function(){return this.options.icon},setIcon:function(i){return this.options.icon=i,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var i=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(i)}return this},_initIcon:function(){var i=this.options,a="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),c=i.icon.createIcon(this._icon),m=!1;c!==this._icon&&(this._icon&&this._removeIcon(),m=!0,i.title&&(c.title=i.title),c.tagName==="IMG"&&(c.alt=i.alt||"")),ye(c,a),i.keyboard&&(c.tabIndex="0",c.setAttribute("role","button")),this._icon=c,i.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&me(c,"focus",this._panOnFocus,this);var x=i.icon.createShadow(this._shadow),P=!1;x!==this._shadow&&(this._removeShadow(),P=!0),x&&(ye(x,a),x.alt=""),this._shadow=x,i.opacity<1&&this._updateOpacity(),m&&this.getPane().appendChild(this._icon),this._initInteraction(),x&&P&&this.getPane(i.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ae(this._icon,"focus",this._panOnFocus,this),Be(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Be(this._shadow),this._shadow=null},_setPos:function(i){this._icon&&Qe(this._icon,i),this._shadow&&Qe(this._shadow,i),this._zIndex=i.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(i){this._icon&&(this._icon.style.zIndex=this._zIndex+i)},_animateZoom:function(i){var a=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center).round();this._setPos(a)},_initInteraction:function(){if(this.options.interactive&&(ye(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),sy)){var i=this.options.draggable;this.dragging&&(i=this.dragging.enabled(),this.dragging.disable()),this.dragging=new sy(this),i&&this.dragging.enable()}},setOpacity:function(i){return this.options.opacity=i,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var i=this.options.opacity;this._icon&&tn(this._icon,i),this._shadow&&tn(this._shadow,i)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var i=this._map;if(i){var a=this.options.icon.options,c=a.iconSize?z(a.iconSize):z(0,0),m=a.iconAnchor?z(a.iconAnchor):z(0,0);i.panInside(this._latlng,{paddingTopLeft:m,paddingBottomRight:c.subtract(m)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function eP(i,a){return new Ll(i,a)}var Dr=xn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(i){this._renderer=i.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(i){return _(this,i),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&i&&Object.prototype.hasOwnProperty.call(i,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Ml=Dr.extend({options:{fill:!0,radius:10},initialize:function(i,a){_(this,a),this._latlng=se(i),this._radius=this.options.radius},setLatLng:function(i){var a=this._latlng;return this._latlng=se(i),this.redraw(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(i){return this.options.radius=this._radius=i,this.redraw()},getRadius:function(){return this._radius},setStyle:function(i){var a=i&&i.radius||this._radius;return Dr.prototype.setStyle.call(this,i),this.setRadius(a),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var i=this._radius,a=this._radiusY||i,c=this._clickTolerance(),m=[i+c,a+c];this._pxBounds=new Y(this._point.subtract(m),this._point.add(m))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(i){return i.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function tP(i,a){return new Ml(i,a)}var Hd=Ml.extend({initialize:function(i,a,c){if(typeof a=="number"&&(a=o({},c,{radius:a})),_(this,a),this._latlng=se(i),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(i){return this._mRadius=i,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var i=[this._radius,this._radiusY||this._radius];return new oe(this._map.layerPointToLatLng(this._point.subtract(i)),this._map.layerPointToLatLng(this._point.add(i)))},setStyle:Dr.prototype.setStyle,_project:function(){var i=this._latlng.lng,a=this._latlng.lat,c=this._map,m=c.options.crs;if(m.distance===_t.distance){var x=Math.PI/180,P=this._mRadius/_t.R/x,E=c.project([a+P,i]),R=c.project([a-P,i]),D=E.add(R).divideBy(2),W=c.unproject(D).lat,Q=Math.acos((Math.cos(P*x)-Math.sin(a*x)*Math.sin(W*x))
244/(Math.cos(a*x)*Math.cos(W*x)))/x;(isNaN(Q)||Q===0)&&(Q=P/Math.cos(Math.PI/180*a)),this._point=D.subtract(c.getPixelOrigin()),this._radius=isNaN(Q)?0:D.x-c.project([W,i-Q]).x,this._radiusY=D.y-E.y}else{var de=m.unproject(m.project(this._latlng).subtract([this._mRadius,0]));this._point=c.latLngToLayerPoint(this._latlng),this._radius=this._point.x-c.latLngToLayerPoint(de).x}this._updateBounds()}});function nP(i,a,c){return new Hd(i,a,c)}var mr=Dr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(i,a){_(this,a),this._setLatLngs(i)},getLatLngs:function(){return this._latlngs},setLatLngs:function(i){return this._setLatLngs(i),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(i){for(var a=1/0,c=null,m=Gs,x,P,E=0,R=this._parts.length;E<R;E++)for(var D=this._parts[E],W=1,Q=D.length;W<Q;W++){x=D[W-1],P=D[W];var de=m(i,x,P,!0);de<a&&(a=de,c=m(i,x,P))}return c&&(c.distance=Math.sqrt(a)),c},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return iy(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(i,a){return a=a||this._defaultShape(),i=se(i),a.push(i),this._bounds.extend(i),this.redraw()},_setLatLngs:function(i){this._bounds=new oe,this._latlngs=this._convertLatLngs(i)},_defaultShape:function(){return nn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(i){for(var a=[],c=nn(i),m=0,x=i.length;m<x;m++)c?(a[m]=se(i[m]),this._bounds.extend(a[m])):a[m]=this._convertLatLngs(i[m]);return a},_project:function(){var i=new Y;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,i),this._bounds.isValid()&&i.isValid()&&(this._rawPxBounds=i,this._updateBounds())},_updateBounds:function(){var i=this._clickTolerance(),a=new M(i,i);this._rawPxBounds&&(this._pxBounds=new Y([this._rawPxBounds.min.subtract(a),this._rawPxBounds.max.add(a)]))},_projectLatlngs:function(i,a,c){var m=i[0]instanceof ce,x=i.length,P,E;if(m){for(E=[],P=0;P<x;P++)E[P]=this._map.latLngToLayerPoint(i[P]),c.extend(E[P]);a.push(E)}else for(P=0;P<x;P++)this._projectLatlngs(i[P],a,c)},_clipPoints:function(){var i=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}var a=this._parts,c,m,x,P,E,R,D;for(c=0,x=0,P=this._rings.length;c<P;c++)for(D=this._rings[c],m=0,E=D.length;m<E-1;m++)R=ny(D[m],D[m+1],i,m,!0),R&&(a[x]=a[x]||[],a[x].push(R[0]),(R[1]!==D[m+1]||m===E-2)&&(a[x].push(R[1]),x++))}},_simplifyPoints:function(){for(var i=this._parts,a=this.options.smoothFactor,c=0,m=i.length;c<m;c++)i[c]=Jg(i[c],a)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(i,a){var c,m,x,P,E,R,D=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(c=0,P=this._parts.length;c<P;c++)for(R=this._parts[c],m=0,E=R.length,x=E-1;m<E;x=m++)if(!(!a&&m===0)&&ey(i,R[x],R[m])<=D)return!0;return!1}});function rP(i,a){return new mr(i,a)}mr._flat=ry;var ko=mr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
244,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Xg(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(i){var a=mr.prototype._convertLatLngs.call(this,i),c=a.length;return c>=2&&a[0]instanceof ce&&a[0].equals(a[c-1])&&a.pop(),a},_setLatLngs:function(i){mr.prototype._setLatLngs.call(this,i),nn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return nn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var i=this._renderer._bounds,a=this.options.weight,c=new M(a,a);if(i=new Y(i.min.subtract(c),i.max.add(c)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}for(var m=0,x=this._rings.length,P;m<x;m++)P=Qg(this._rings[m],i,!0),P.length&&this._parts.push(P)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(i){var a=!1,c,m,x,P,E,R,D,W;if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(P=0,D=this._parts.length;P<D;P++)for(c=this._parts[P],E=0,W=c.length,R=W-1;E<W;R=E++)m=c[E],x=c[R],m.y>i.y!=x.y>i.y&&i.x<(x.x-m.x)*(i.y-m.y)/(x.y-m.y)+m.x&&(a=!a);return a||mr.prototype._containsPoint.call(this,i,!0)}});function iP(i,a){return new ko(i,a)}var pr=fr.extend({initialize:function(i,a){_(this,a),this._layers={},i&&this.addData(i)},addData:function(i){var a=C(i)?i:i.features,c,m,x;if(a){for(c=0,m=a.length;c<m;c++)x=a[c],(x.geometries||x.geometry||x.features||x.coordinates)&&this.addData(x);return this}var P=this.options;if(P.filter&&!P.filter(i))return this;var E=Al(i,P);return E?(E.feature=Il(i),E.defaultOptions=E.options,this.resetStyle(E),P.onEachFeature&&P.onEachFeature(i,E),this.addLayer(E)):this},resetStyle:function(i){return i===void 0?this.eachLayer(this.resetStyle,this):(i.options=o({},i.defaultOptions),this._setLayerStyle(i,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(a){this._setLayerStyle(a,i)},this)},_setLayerStyle:function(i,a){i.setStyle&&(typeof a=="function"&&(a=a(i.feature)),i.setStyle(a))}});function Al(i,a){var c=i.type==="Feature"?i.geometry:i,m=c?c.coordinates:null,x=[],P=a&&a.pointToLayer,E=a&&a.coordsToLatLng||Wd,R,D,W,Q;if(!m&&!c)return null;switch(c.type){case"Point":return R=E(m),ay(P,i,R,a);case"MultiPoint":for(W=0,Q=m.length;W<Q;W++)R=E(m[W]),x.push(ay(P,i,R,a));return new fr(x);case"LineString":case"MultiLineString":return D=Rl(m,c.type==="LineString"?0:1,E),new mr(D,a);case"Polygon":case"MultiPolygon":return D=Rl(m,c.type==="Polygon"?1:2,E),new ko(D,a);case"GeometryCollection":for(W=0,Q=c.geometries.length;W<Q;W++){var de=Al({geometry:c.geometries[W],type:"Feature",properties:i.properties},a);de&&x.push(de)}return new fr(x);case"FeatureCollection":for(W=0,Q=c.features.length;W<Q;W++){var ve=Al(c.features[W],a);ve&&x.push(ve)}return new fr(x);default:throw new Error("Invalid GeoJSON object.")}}function ay(i,a,c,m){return i?i(a,c):new Ll(c,m&&m.markersInheritOptions&&m)}function Wd(i){return new ce(i[1],i[0],i[2])}function Rl(i,a,c){for(var m=[],x=0,P=i.length,E;x<P;x++)E=a?Rl(i[x],a-1,c):(c||Wd)(i[x]),m.push(E);return m}function $d(i,a){return i=se(i),i.alt!==void 0?[y(i.lng,a),y(i.lat,a),y(i.alt,a)]:[y(i.lng,a),y(i.lat,a)]}function Ol(i,a,c,m){for(var x=[],P=0,E=i.length;P<E;P++)x.push(a?Ol(i[P],nn(i[P])?0:a-1,c,m):$d(i[P],m));return!a&&c&&x.length>0&&x.push(x[0].slice()),x}function Co(i,a){return i.feature?o({},i.feature,{geometry:a}):Il(a)}function Il(i){return i.type==="Feature"||i.type==="FeatureCollection"?i:{type:"Feature",properties:{},geometry:i}}var Ud={toGeoJSON:function(i){return Co(this,{type:"Point",coordinates:$d(this.getLatLng(),i)})}};Ll.include(Ud),Hd.include(Ud),Ml.include(Ud),mr.include({toGeoJSON:function(i){var a=!nn(this._latlngs),c=Ol(this._latlngs,a?1:0,!1,i);return Co(this,{type:(a?"Multi":"")+"LineString",coordinates:c})}}),ko.include({toGeoJSON:function(i){var a=!nn(this._latlngs),c=a&&!nn(this._latlngs[0]),m=Ol(this._latlngs,c?2:a?1:0,!0,i);return a||(m=[m]),Co(this,{type:(c?"Multi":"")+"Polygon",coordinates:m})}}),bo.include({toMultiPoint:function(i){var a=[];return this.eachLayer(function(c){a.push(c.toGeoJSON(i).geometry.coordinates)}),Co(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(i){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(a==="MultiPoint")return this.toMultiPoint(i);var c=a==="GeometryCollection",m=[];return this.eachLayer(function(x){if(x.toGeoJSON){var P=x.toGeoJSON(i);if(c)m.push(P.geometry);else{var E=Il(P);E.type==="FeatureCollection"?m.push.apply(m,E.features):m.push(E)}}}),c?Co(this,{geometries:m,type:"GeometryCollection"}):{type:"FeatureCollection",features:m}}});function ly(i,a){return new pr(i,a)}var oP=ly,Dl=xn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(i,a,c){this._url=i,this._bounds=ne(a),_(this,c)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ye(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Be(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(i){return this.options.opacity=i,this._image&&this._updateOpacity(),this},setStyle:function(i){return i.opacity&&this.setOpacity(i.opacity),this},bringToFront:function(){return this._map&&xo(this._image),this},bringToBack:function(){return this._map&&wo(this._image),this},setUrl:function(i){return this._url=i,this._image&&(this._image.src=i),this},setBounds:function(i){return this._bounds=ne(i),this._map&&this._reset(),this},getEvents:function(){var i={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var i=this._url.tagName==="IMG",a=this._image=i?this._url:ke("img");if(ye(a,"leaflet-image-layer"),this._zoomAnimated&&ye(a,"leaflet-zoom-animated"),this.options.className&&ye(a,this.options.className),a.onselectstart=g,a.onmousemove=g,a.onload=l(this.fire,this,"load"),a.onerror=l(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),i){this._url=a.src;return}a.src=this._url,a.alt=this.options.alt},_animateZoom:function(i){var a=this._map.getZoomScale(i.zoom),c=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;Ni(this._image,c,a)},_reset:function(){var i=this._image,a=new Y(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),c=a.getSize();Qe(i,a.min),i.style.width=c.x+"px",i.style.height=c.y+"px"},_updateOpacity:function(){tn(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var i=this.options.errorOverlayUrl;i&&this._url!==i&&(this._url=i,this._image.src=i)},getCenter:function(){return this._bounds.getCenter()}}),sP=function(i,a,c){return new Dl(i,a,c)},uy=Dl.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
vendor: 8,871 bytes, line 244
244ine:!0},_initImage:function(){var i=this._url.tagName==="VIDEO",a=this._image=i?this._url:ke("video");if(ye(a,"leaflet-image-layer"),this._zoomAnimated&&ye(a,"leaflet-zoom-animated"),this.options.className&&ye(a,this.options.className),a.onselectstart=g,a.onmousemove=g,a.onloadeddata=l(this.fire,this,"load"),i){for(var c=a.getElementsByTagName("source"),m=[],x=0;x<c.length;x++)m.push(c[x].src);this._url=c.length>0?m:[a.src];return}C(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(a.style,"objectFit")&&(a.style.objectFit="fill"),a.autoplay=!!this.options.autoplay,a.loop=!!this.options.loop,a.muted=!!this.options.muted,a.playsInline=!!this.options.playsInline;for(var P=0;P<this._url.length;P++){var E=ke("source");E.src=this._url[P],a.appendChild(E)}}});function aP(i,a,c){return new uy(i,a,c)}var cy=Dl.extend({_initImage:function(){var i=this._image=this._url;ye(i,"leaflet-image-layer"),this._zoomAnimated&&ye(i,"leaflet-zoom-animated"),this.options.className&&ye(i,this.options.className),i.onselectstart=g,i.onmousemove=g}});function lP(i,a,c){return new cy(i,a,c)}var Zn=xn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(i,a){i&&(i instanceof ce||C(i))?(this._latlng=se(i),_(this,a)):(_(this,i),this._source=a),this.options.content&&(this._content=this.options.content)},openOn:function(i){return i=arguments.length?i:this._source._map,i.hasLayer(this)||i.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(i){return this._map?this.close():(arguments.length?this._source=i:i=this._source,this._prepareOpen(),this.openOn(i._map)),this},onAdd:function(i){this._zoomAnimated=i._zoomAnimated,this._container||this._initLayout(),i._fadeAnimated&&tn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),i._fadeAnimated&&tn(this._container,1),this.bringToFront(),this.options.interactive&&(ye(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(i){i._fadeAnimated?(tn(this._container,0),this._removeTimeout=setTimeout(l(Be,void 0,this._container),200)):Be(this._container),this.options.interactive&&(Ke(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(i){return this._latlng=se(i),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(i){return this._content=i,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var i={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&xo(this._container),this},bringToBack:function(){return this._map&&wo(this._container),this},_prepareOpen:function(i){var a=this._source;if(!a._map)return!1;if(a instanceof fr){a=null;var c=this._source._layers;for(var m in c)if(c[m]._map){a=c[m];break}if(!a)return!1;this._source=a}if(!i)if(a.getCenter)i=a.getCenter();else if(a.getLatLng)i=a.getLatLng();else if(a.getBounds)i=a.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(i),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var i=this._contentNode,a=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof a=="string")i.innerHTML=a;else{for(;i.hasChildNodes();)i.removeChild(i.firstChild);i.appendChild(a)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var i=this._map.latLngToLayerPoint(this._latlng),a=z(this.options.offset),c=this._getAnchor();this._zoomAnimated?Qe(this._container,i.add(c)):a=a.add(i).add(c);var m=this._containerBottom=-a.y,x=this._containerLeft=-Math.round(this._containerWidth/2)+a.x;this._container.style.bottom=m+"px",this._container.style.left=x+"px"}},_getAnchor:function(){return[0,0]}});we.include({_initOverlay:function(i,a,c,m){var x=a;return x instanceof i||(x=new i(m).setContent(a)),c&&x.setLatLng(c),x}}),xn.include({_initOverlay:function(i,a,c,m){var x=c;return x instanceof i?(_(x,m),x._source=this):(x=a&&!m?a:new i(m,this),x.setContent(c)),x}});var Fl=Zn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(i){return i=arguments.length?i:this._source._map,!i.hasLayer(this)&&i._popup&&i._popup.options.autoClose&&i.removeLayer(i._popup),i._popup=this,Zn.prototype.openOn.call(this,i)},onAdd:function(i){Zn.prototype.onAdd.call(this,i),i.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Dr||this._source.on("preclick",Mi))},onRemove:function(i){Zn.prototype.onRemove.call(this,i),i.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Dr||this._source.off("preclick",Mi))},getEvents:function(){var i=Zn.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(i.preclick=this.close),this.options.keepInView&&(i.moveend=this._adjustPan),i},_initLayout:function(){var i="leaflet-popup",a=this._container=ke("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),c=this._wrapper=ke("div",i+"-content-wrapper",a);if(this._contentNode=ke("div",i+"-content",c),Us(a),Rd(this._contentNode),me(a,"contextmenu",Mi),this._tipContainer=ke("div",i+"-tip-container",a),this._tip=ke("div",i+"-tip",this._tipContainer),this.options.closeButton){var m=this._closeButton=ke("a",i+"-close-button",a);m.setAttribute("role","button"),m.setAttribute("aria-label","Close popup"),m.href="#close",m.innerHTML='<span aria-hidden="true">&#215;</span>',me(m,"click",function(x){lt(x),this.close()},this)}},_updateLayout:function(){var i=this._contentNode,a=i.style;a.width="",a.whiteSpace="nowrap";var c=i.offsetWidth;c=Math.min(c,this.options.maxWidth),c=Math.max(c,this.options.minWidth),a.width=c+1+"px",a.whiteSpace="",a.height="";var m=i.offsetHeight,x=this.options.maxHeight,P="leaflet-popup-scrolled";x&&m>x?(a.height=x+"px",ye(i,P)):Ke(i,P),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){var a=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center),c=this._getAnchor();Qe(this._container,a.add(c))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var i=this._map,a=parseInt(Vs(this._container,"marginBottom"),10)||0,c=this._container.offsetHeight+a,m=this._containerWidth,x=new M(this._containerLeft,-c-this._containerBottom);x._add(Li(this._container));var P=i.layerPointToContainerPoint(x),E=z(this.options.autoPanPadding),R=z(this.options.autoPanPaddingTopLeft||E),D=z(this.options.autoPanPaddingBottomRight||E),W=i.getSize(),Q=0,de=0;P.x+m+D.x>W.x&&(Q=P.x+m-W.x+D.x),P.x-Q-R.x<0&&(Q=P.x-R.x),P.y+c+D.y>W.y&&(de=P.y+c-W.y+D.y),P.y-de-R.y<0&&(de=P.y-R.y),(Q||de)&&(this.options.keepInView&&(this._autopanning=!0),i.fire("autopanstart").panBy([Q,de]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),uP=function(i,a){return new Fl(i,a)};we.mergeOptions({closePopupOnClick:!0}),we.include({openPopup:function(i,a,c){return this._initOverlay(Fl,i,a,c).openOn(this),this},closePopup:function(i){return i=arguments.length?i:this._popup,i&&i.close(),this}}),xn.include({bindPopup:function(i,a){return this._popup=this._initOverlay(Fl,this._popup,i,a),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(i){return this._popup&&(this instanceof fr||(this._popup._source=this),this._popup._prepareOpen(i||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1}
244,setPopupContent:function(i){return this._popup&&this._popup.setContent(i),this},getPopup:function(){return this._popup},_openPopup:function(i){if(!(!this._popup||!this._map)){Ai(i);var a=i.layer||i.target;if(this._popup._source===a&&!(a instanceof Dr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(i.latlng);return}this._popup._source=a,this.openPopup(i.latlng)}},_movePopup:function(i){this._popup.setLatLng(i.latlng)},_onKeyPress:function(i){i.originalEvent.keyCode===13&&this._openPopup(i)}});var zl=Zn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(i){Zn.prototype.onAdd.call(this,i),this.setOpacity(this.options.opacity),i.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(i){Zn.prototype.onRemove.call(this,i),i.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var i=Zn.prototype.getEvents.call(this);return this.options.permanent||(i.preclick=this.close),i},_initLayout:function(){var i="leaflet-tooltip",a=i+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ke("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(i){var a,c,m=this._map,x=this._container,P=m.latLngToContainerPoint(m.getCenter()),E=m.layerPointToContainerPoint(i),R=this.options.direction,D=x.offsetWidth,W=x.offsetHeight,Q=z(this.options.offset),de=this._getAnchor();R==="top"?(a=D/2,c=W):R==="bottom"?(a=D/2,c=0):R==="center"?(a=D/2,c=W/2):R==="right"?(a=0,c=W/2):R==="left"?(a=D,c=W/2):E.x<P.x?(R="right",a=0,c=W/2):(R="left",a=D+(Q.x+de.x)*2,c=W/2),i=i.subtract(z(a,c,!0)).add(Q).add(de),Ke(x,"leaflet-tooltip-right"),Ke(x,"leaflet-tooltip-left"),Ke(x,"leaflet-tooltip-top"),Ke(x,"leaflet-tooltip-bottom"),ye(x,"leaflet-tooltip-"+R),Qe(x,i)},_updatePosition:function(){var i=this._map.latLngToLayerPoint(this._latlng);this._setPosition(i)},setOpacity:function(i){this.options.opacity=i,this._container&&tn(this._container,i)},_animateZoom:function(i){var a=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center);this._setPosition(a)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),cP=function(i,a){return new zl(i,a)};we.include({openTooltip:function(i,a,c){return this._initOverlay(zl,i,a,c).openOn(this),this},closeTooltip:function(i){return i.close(),this}}),xn.include({bindTooltip:function(i,a){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(zl,this._tooltip,i,a),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(i){if(!(!i&&this._tooltipHandlersAdded)){var a=i?"off":"on",c={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?c.add=this._openTooltip:(c.mouseover=this._openTooltip,c.mouseout=this.closeTooltip,c.click=this._openTooltip,this._map?this._addFocusListeners():c.add=this._addFocusListeners),this._tooltip.options.sticky&&(c.mousemove=this._moveTooltip),this[a](c),this._tooltipHandlersAdded=!i}},openTooltip:function(i){return this._tooltip&&(this instanceof fr||(this._tooltip._source=this),this._tooltip._prepareOpen(i)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(i){return this._tooltip&&this._tooltip.setContent(i),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(i){var a=typeof i.getElement=="function"&&i.getElement();a&&(me(a,"focus",function(){this._tooltip._source=i,this.openTooltip()},this),me(a,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(i){var a=typeof i.getElement=="function"&&i.getElement();a&&a.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(i){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var a=this;this._map.once("moveend",function(){a._openOnceFlag=!1,a._openTooltip(i)});return}this._tooltip._source=i.layer||i.target,this.openTooltip(this._tooltip.options.sticky?i.latlng:void 0)}},_moveTooltip:function(i){var a=i.latlng,c,m;this._tooltip.options.sticky&&i.originalEvent&&(c=this._map.mouseEventToContainerPoint(i.originalEvent),m=this._map.containerPointToLayerPoint(c),a=this._map.layerPointToLatLng(m)),this._tooltip.setLatLng(a)}});var dy=_o.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(i){var a=i&&i.tagName==="DIV"?i:document.createElement("div"),c=this.options;if(c.html instanceof Element?(Sl(a),a.appendChild(c.html)):a.innerHTML=c.html!==!1?c.html:"",c.bgPos){var m=z(c.bgPos);a.style.backgroundPosition=-m.x+"px "+-m.y+"px"}return this._setIconStyles(a,"icon"),a},createShadow:function(){return null}});function dP(i){return new dy(i)}_o.Default=Ks;var qs=xn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:re.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(i){_(this,i)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()}
244,beforeAdd:function(i){i._addZoomLimit(this)},onRemove:function(i){this._removeAllTiles(),Be(this._container),i._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(xo(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(wo(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(i){return this.options.opacity=i,this._updateOpacity(),this},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var i=this._clampZoom(this._map.getZoom());i!==this._tileZoom&&(this._tileZoom=i,this._updateLevels()),this._update()}return this},getEvents:function(){var i={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=f(this._onMoveEnd,this.options.updateInterval,this)),i.move=this._onMove),this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},createTile:function(){return document.createElement("div")},getTileSize:function(){var i=this.options.tileSize;return i instanceof M?i:new M(i,i)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(i){for(var a=this.getPane().children,c=-i(-1/0,1/0),m=0,x=a.length,P;m<x;m++)P=a[m].style.zIndex,a[m]!==this._container&&P&&(c=i(c,+P));isFinite(c)&&(this.options.zIndex=c+i(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!re.ielt9){tn(this._container,this.options.opacity);var i=+new Date,a=!1,c=!1;for(var m in this._tiles){var x=this._tiles[m];if(!(!x.current||!x.loaded)){var P=Math.min(1,(i-x.loaded)/200);tn(x.el,P),P<1?a=!0:(x.active?c=!0:this._onOpaqueTile(x),x.active=!0)}}c&&!this._noPrune&&this._pruneTiles(),a&&($(this._fadeFrame),this._fadeFrame=G(this._updateOpacity,this))}},_onOpaqueTile:g,_initContainer:function(){this._container||(this._container=ke("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var i=this._tileZoom,a=this.options.maxZoom;if(i!==void 0){for(var c in this._levels)c=Number(c),this._levels[c].el.children.length||c===i?(this._levels[c].el.style.zIndex=a-Math.abs(i-c),this._onUpdateLevel(c)):(Be(this._levels[c].el),this._removeTilesAtZoom(c),this._onRemoveLevel(c),delete this._levels[c]);var m=this._levels[i],x=this._map;return m||(m=this._levels[i]={},m.el=ke("div","leaflet-tile-container leaflet-zoom-animated",this._container),m.el.style.zIndex=a,m.origin=x.project(x.unproject(x.getPixelOrigin()),i).round(),m.zoom=i,this._setZoomTransform(m,x.getCenter(),x.getZoom()),g(m.el.offsetWidth),this._onCreateLevel(m)),this._level=m,m}},_onUpdateLevel:g,_onRemoveLevel:g,_onCreateLevel:g,_pruneTiles:function(){if(this._map){var i,a,c=this._map.getZoom();if(c>this.options.maxZoom||c<this.options.minZoom){this._removeAllTiles();return}for(i in this._tiles)a=this._tiles[i],a.retain=a.current;for(i in this._tiles)if(a=this._tiles[i],a.current&&!a.active){var m=a.coords;this._retainParent(m.x,m.y,m.z,m.z-5)||this._retainChildren(m.x,m.y,m.z,m.z+2)}for(i in this._tiles)this._tiles[i].retain||this._removeTile(i)}},_removeTilesAtZoom:function(i){for(var a in this._tiles)this._tiles[a].coords.z===i&&this._removeTile(a)},_removeAllTiles:function(){for(var i in this._tiles)this._removeTile(i)},_invalidateAll:function(){for(var i in this._levels)Be(this._levels[i].el),this._onRemoveLevel(Number(i)),delete this._levels[i];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(i,a,c,m){var x=Math.floor(i/2),P=Math.floor(a/2),E=c-1,R=new M(+x,+P);R.z=+E;var D=this._tileCoordsToKey(R),W=this._tiles[D];return W&&W.active?(W.retain=!0,!0):(W&&W.loaded&&(W.retain=!0),E>m?this._retainParent(x,P,E,m):!1)},_retainChildren:function(i,a,c,m){for(var x=2*i;x<2*i+2;x++)for(var P=2*a;P<2*a+2;P++){var E=new M(x,P);E.z=c+1;var R=this._tileCoordsToKey(E),D=this._tiles[R];if(D&&D.active){D.retain=!0;continue}else D&&D.loaded&&(D.retain=!0);c+1<m&&this._retainChildren(x,P,c+1,m)}},_resetView:function(i){var a=i&&(i.pinch||i.flyTo);
vendor: 10,571 bytes, line 244
244this._setView(this._map.getCenter(),this._map.getZoom(),a,a)},_animateZoom:function(i){this._setView(i.center,i.zoom,!0,i.noUpdate)},_clampZoom:function(i){var a=this.options;return a.minNativeZoom!==void 0&&i<a.minNativeZoom?a.minNativeZoom:a.maxNativeZoom!==void 0&&a.maxNativeZoom<i?a.maxNativeZoom:i},_setView:function(i,a,c,m){var x=Math.round(a);this.options.maxZoom!==void 0&&x>this.options.maxZoom||this.options.minZoom!==void 0&&x<this.options.minZoom?x=void 0:x=this._clampZoom(x);var P=this.options.updateWhenZooming&&x!==this._tileZoom;(!m||P)&&(this._tileZoom=x,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),x!==void 0&&this._update(i),c||this._pruneTiles(),this._noPrune=!!c),this._setZoomTransforms(i,a)},_setZoomTransforms:function(i,a){for(var c in this._levels)this._setZoomTransform(this._levels[c],i,a)},_setZoomTransform:function(i,a,c){var m=this._map.getZoomScale(c,i.zoom),x=i.origin.multiplyBy(m).subtract(this._map._getNewPixelOrigin(a,c)).round();re.any3d?Ni(i.el,x,m):Qe(i.el,x)},_resetGrid:function(){var i=this._map,a=i.options.crs,c=this._tileSize=this.getTileSize(),m=this._tileZoom,x=this._map.getPixelWorldBounds(this._tileZoom);x&&(this._globalTileRange=this._pxBoundsToTileRange(x)),this._wrapX=a.wrapLng&&!this.options.noWrap&&[Math.floor(i.project([0,a.wrapLng[0]],m).x/c.x),Math.ceil(i.project([0,a.wrapLng[1]],m).x/c.y)],this._wrapY=a.wrapLat&&!this.options.noWrap&&[Math.floor(i.project([a.wrapLat[0],0],m).y/c.x),Math.ceil(i.project([a.wrapLat[1],0],m).y/c.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(i){var a=this._map,c=a._animatingZoom?Math.max(a._animateToZoom,a.getZoom()):a.getZoom(),m=a.getZoomScale(c,this._tileZoom),x=a.project(i,this._tileZoom).floor(),P=a.getSize().divideBy(m*2);return new Y(x.subtract(P),x.add(P))},_update:function(i){var a=this._map;if(a){var c=this._clampZoom(a.getZoom());if(i===void 0&&(i=a.getCenter()),this._tileZoom!==void 0){var m=this._getTiledPixelBounds(i),x=this._pxBoundsToTileRange(m),P=x.getCenter(),E=[],R=this.options.keepBuffer,D=new Y(x.getBottomLeft().subtract([R,-R]),x.getTopRight().add([R,-R]));if(!(isFinite(x.min.x)&&isFinite(x.min.y)&&isFinite(x.max.x)&&isFinite(x.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var W in this._tiles){var Q=this._tiles[W].coords;(Q.z!==this._tileZoom||!D.contains(new M(Q.x,Q.y)))&&(this._tiles[W].current=!1)}if(Math.abs(c-this._tileZoom)>1){this._setView(i,c);return}for(var de=x.min.y;de<=x.max.y;de++)for(var ve=x.min.x;ve<=x.max.x;ve++){var Ct=new M(ve,de);if(Ct.z=this._tileZoom,!!this._isValidTile(Ct)){var ot=this._tiles[this._tileCoordsToKey(Ct)];ot?ot.current=!0:E.push(Ct)}}if(E.sort(function(At,Po){return At.distanceTo(P)-Po.distanceTo(P)}),E.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var rn=document.createDocumentFragment();for(ve=0;ve<E.length;ve++)this._addTile(E[ve],rn);this._level.el.appendChild(rn)}}}},_isValidTile:function(i){var a=this._map.options.crs;if(!a.infinite){var c=this._globalTileRange;if(!a.wrapLng&&(i.x<c.min.x||i.x>c.max.x)||!a.wrapLat&&(i.y<c.min.y||i.y>c.max.y))return!1}if(!this.options.bounds)return!0;var m=this._tileCoordsToBounds(i);return ne(this.options.bounds).overlaps(m)},_keyToBounds:function(i){return this._tileCoordsToBounds(this._keyToTileCoords(i))},_tileCoordsToNwSe:function(i){var a=this._map,c=this.getTileSize(),m=i.scaleBy(c),x=m.add(c),P=a.unproject(m,i.z),E=a.unproject(x,i.z);return[P,E]},_tileCoordsToBounds:function(i){var a=this._tileCoordsToNwSe(i),c=new oe(a[0],a[1]);return this.options.noWrap||(c=this._map.wrapLatLngBounds(c)),c},_tileCoordsToKey:function(i){return i.x+":"+i.y+":"+i.z},_keyToTileCoords:function(i){var a=i.split(":"),c=new M(+a[0],+a[1]);return c.z=+a[2],c},_removeTile:function(i){var a=this._tiles[i];a&&(Be(a.el),delete this._tiles[i],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(i)}))},_initTile:function(i){ye(i,"leaflet-tile");var a=this.getTileSize();i.style.width=a.x+"px",i.style.height=a.y+"px",i.onselectstart=g,i.onmousemove=g,re.ielt9&&this.options.opacity<1&&tn(i,this.options.opacity)},_addTile:function(i,a){var c=this._getTilePos(i),m=this._tileCoordsToKey(i),x=this.createTile(this._wrapCoords(i),l(this._tileReady,this,i));this._initTile(x),this.createTile.length<2&&G(l(this._tileReady,this,i,null,x)),Qe(x,c),this._tiles[m]={el:x,coords:i,current:!0},a.appendChild(x),this.fire("tileloadstart",{tile:x,coords:i})},_tileReady:function(i,a,c){a&&this.fire("tileerror",{error:a,tile:c,coords:i});var m=this._tileCoordsToKey(i);c=this._tiles[m],c&&(c.loaded=+new Date,this._map._fadeAnimated?(tn(c.el,0),$(this._fadeFrame),this._fadeFrame=G(this._updateOpacity,this)):(c.active=!0,this._pruneTiles()),a||(ye(c.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:c.el,coords:i})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),re.ielt9||!this._map._fadeAnimated?G(this._pruneTiles,this):setTimeout(l(this._pruneTiles,this),250)))},_getTilePos:function(i){return i.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(i){var a=new M(this._wrapX?p(i.x,this._wrapX):i.x,this._wrapY?p(i.y,this._wrapY):i.y);return a.z=i.z,a},_pxBoundsToTileRange:function(i){var a=this.getTileSize();return new Y(i.min.unscaleBy(a).floor(),i.max.unscaleBy(a).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var i in this._tiles)if(!this._tiles[i].loaded)return!1;return!0}});function hP(i){return new qs(i)}var So=qs.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(i,a){this._url=i,a=_(this,a),a.detectRetina&&re.retina&&a.maxZoom>0?(a.tileSize=Math.floor(a.tileSize/2),a.zoomReverse?(a.zoomOffset--,a.minZoom=Math.min(a.maxZoom,a.minZoom+1)):(a.zoomOffset++,a.maxZoom=Math.max(a.minZoom,a.maxZoom-1)),a.minZoom=Math.max(0,a.minZoom)):a.zoomReverse?a.minZoom=Math.min(a.maxZoom,a.minZoom):a.maxZoom=Math.max(a.minZoom,a.maxZoom),typeof a.subdomains=="string"&&(a.subdomains=a.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(i,a){return this._url===i&&a===void 0&&(a=!0),this._url=i,a||this.redraw(),this},createTile:function(i,a){var c=document.createElement("img");return me(c,"load",l(this._tileOnLoad,this,a,c)),me(c,"error",l(this._tileOnError,this,a,c)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(c.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(c.referrerPolicy=this.options.referrerPolicy),c.alt="",c.src=this.getTileUrl(i),c},getTileUrl:function(i){var a={r:re.retina?"@2x":"",s:this._getSubdomain(i),x:i.x,y:i.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var c=this._globalTileRange.max.y-i.y;this.options.tms&&(a.y=c),a["-y"]=c}return b(this._url,o(a,this.options))},_tileOnLoad:function(i,a){re.ielt9?setTimeout(l(i,this,null,a),0):i(null,a)},_tileOnError:function(i,a,c){var m=this.options.errorTileUrl;m&&a.getAttribute("src")!==m&&(a.src=m),i(c,a)},_onTileRemove:function(i){i.tile.onload=null},_getZoomForUrl:function(){var i=this._tileZoom,a=this.options.maxZoom,c=this.options.zoomReverse,m=this.options.zoomOffset;return c&&(i=a-i),i+m},_getSubdomain:function(i){var a=Math.abs(i.x+i.y)%this.options.subdomains.length;return this.options.subdomains[a]},_abortLoading:function(){var i,a;for(i in this._tiles)if(this._tiles[i].coords.z!==this._tileZoom&&(a=this._tiles[i].el,a.onload=g,a.onerror=g,!a.complete)){a.src=N;var c=this._tiles[i].coords;Be(a),delete this._tiles[i],this.fire("tileabort",{tile:a,coords:c})}},_removeTile:function(i){var a=this._tiles[i];if(a)return a.el.setAttribute("src",N),qs.prototype._removeTile.call(this,i)},_tileReady:function(i,a,c){if(!(!this._map||c&&c.getAttribute("src")===N))return qs.prototype._tileReady.call(this,i,a,c)}});function hy(i,a){return new So(i,a)}var fy=So.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(i,a){this._url=i;var c=o({},this.defaultWmsParams);for(var m in a)m in this.options||(c[m]=a[m]);a=_(this,a);var x=a.detectRetina&&re.retina?2:1,P=this.getTileSize();c.width=P.x*x,c.height=P.y*x,this.wmsParams=c},onAdd:function(i){this._crs=this.options.crs||i.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var a=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[a]=this._crs.code,So.prototype.onAdd.call(this,i)},getTileUrl:function(i){var a=this._tileCoordsToNwSe(i),c=this._crs,m=X(c.project(a[0]),c.project(a[1])),x=m.min,P=m.max,E=(this._wmsVersion>=1.3&&this._crs===oy?[x.y,x.x,P.y,P.x]:[x.x,x.y,P.x,P.y]).join(","),R=So.prototype.getTileUrl.call(this,i);return R+T(this.wmsParams,R,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+E},setParams:function(i,a){return o(this.wmsParams,i),a||this.redraw(),this}});function fP(i,a){return new fy(i,a)}So.WMS=fy,hy.wms=fP;var gr=xn.extend({options:{padding:.1},initialize:function(i){_(this,i),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ye(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var i={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(i.zoomanim=this._onAnimZoom),i},_onAnimZoom:function(i){this._updateTransform(i.center,i.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(i,a){var c=this._map.getZoomScale(a,this._zoom),m=this._map.getSize().multiplyBy(.5+this.options.padding),x=this._map.project(this._center,a),P=m.multiplyBy(-c).add(x).subtract(this._map._getNewPixelOrigin(i,a));re.any3d?Ni(this._container,P,c):Qe(this._container,P)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var i in this._layers)this._layers[i]._reset()},_onZoomEnd:function(){for(var i in this._layers)this._layers[i]._project()},_updatePaths:function(){for(var i in this._layers)this._layers[i]._update()},_update:function(){var i=this.options.padding,a=this._map.getSize(),c=this._map.containerPointToLayerPoint(a.multiplyBy(-i)).round();
vendor: 4,450 bytes, line 244
244this._bounds=new Y(c,c.add(a.multiplyBy(1+i*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),my=gr.extend({options:{tolerance:0},getEvents:function(){var i=gr.prototype.getEvents.call(this);return i.viewprereset=this._onViewPreReset,i},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){gr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var i=this._container=document.createElement("canvas");me(i,"mousemove",this._onMouseMove,this),me(i,"click dblclick mousedown mouseup contextmenu",this._onClick,this),me(i,"mouseout",this._handleMouseOut,this),i._leaflet_disable_events=!0,this._ctx=i.getContext("2d")},_destroyContainer:function(){$(this._redrawRequest),delete this._ctx,Be(this._container),Ae(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var i;this._redrawBounds=null;for(var a in this._layers)i=this._layers[a],i._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){gr.prototype._update.call(this);var i=this._bounds,a=this._container,c=i.getSize(),m=re.retina?2:1;Qe(a,i.min),a.width=m*c.x,a.height=m*c.y,a.style.width=c.x+"px",a.style.height=c.y+"px",re.retina&&this._ctx.scale(2,2),this._ctx.translate(-i.min.x,-i.min.y),this.fire("update")}},_reset:function(){gr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(i){this._updateDashArray(i),this._layers[h(i)]=i;var a=i._order={layer:i,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a),this._drawLast=a,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(i){this._requestRedraw(i)},_removePath:function(i){var a=i._order,c=a.next,m=a.prev;c?c.prev=m:this._drawLast=m,m?m.next=c:this._drawFirst=c,delete i._order,delete this._layers[h(i)],this._requestRedraw(i)},_updatePath:function(i){this._extendRedrawBounds(i),i._project(),i._update(),this._requestRedraw(i)},_updateStyle:function(i){this._updateDashArray(i),this._requestRedraw(i)},_updateDashArray:function(i){if(typeof i.options.dashArray=="string"){var a=i.options.dashArray.split(/[, ]+/),c=[],m,x;for(x=0;x<a.length;x++){if(m=Number(a[x]),isNaN(m))return;c.push(m)}i.options._dashArray=c}else i.options._dashArray=i.options.dashArray},_requestRedraw:function(i){this._map&&(this._extendRedrawBounds(i),this._redrawRequest=this._redrawRequest||G(this._redraw,this))},_extendRedrawBounds:function(i){if(i._pxBounds){var a=(i.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Y,this._redrawBounds.extend(i._pxBounds.min.subtract([a,a])),this._redrawBounds.extend(i._pxBounds.max.add([a,a]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var i=this._redrawBounds;if(i){var a=i.getSize();this._ctx.clearRect(i.min.x,i.min.y,a.x,a.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var i,a=this._redrawBounds;if(this._ctx.save(),a){var c=a.getSize();this._ctx.beginPath(),this._ctx.rect(a.min.x,a.min.y,c.x,c.y),this._ctx.clip()}this._drawing=!0;for(var m=this._drawFirst;m;m=m.next)i=m.layer,(!a||i._pxBounds&&i._pxBounds.intersects(a))&&i._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(i,a){if(this._drawing){var c,m,x,P,E=i._parts,R=E.length,D=this._ctx;if(R){for(D.beginPath(),c=0;c<R;c++){for(m=0,x=E[c].length;m<x;m++)P=E[c][m],D[m?"lineTo":"moveTo"](P.x,P.y);a&&D.closePath()}this._fillStroke(D,i)}}},_updateCircle:function(i){if(!(!this._drawing||i._empty())){var a=i._point,c=this._ctx,m=Math.max(Math.round(i._radius),1),x=(Math.max(Math.round(i._radiusY),1)||m)/m;x!==1&&(c.save(),c.scale(1,x)),c.beginPath(),c.arc(a.x,a.y/x,m,0,Math.PI*2,!1),x!==1&&c.restore(),this._fillStroke(c,i)}},_fillStroke:function(i,a){var c=a.options;c.fill&&(i.globalAlpha=c.fillOpacity,i.fillStyle=c.fillColor||c.color,i.fill(c.fillRule||"evenodd")),c.stroke&&c.weight!==0&&(i.setLineDash&&i.setLineDash(a.options&&a.options._dashArray||[]),i.globalAlpha=c.opacity,i.lineWidth=c.weight,i.strokeStyle=c.color,i.lineCap=c.lineCap,i.lineJoin=c.lineJoin,i.stroke())},_onClick:function(i){for(var a=this._map.mouseEventToLayerPoint(i),c,m,x=this._drawFirst;x;
244x=x.next)c=x.layer,c.options.interactive&&c._containsPoint(a)&&(!(i.type==="click"||i.type==="preclick")||!this._map._draggableMoved(c))&&(m=c);this._fireEvent(m?[m]:!1,i)},_onMouseMove:function(i){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var a=this._map.mouseEventToLayerPoint(i);this._handleMouseHover(i,a)}},_handleMouseOut:function(i){var a=this._hoveredLayer;a&&(Ke(this._container,"leaflet-interactive"),this._fireEvent([a],i,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(i,a){if(!this._mouseHoverThrottled){for(var c,m,x=this._drawFirst;x;x=x.next)c=x.layer,c.options.interactive&&c._containsPoint(a)&&(m=c);m!==this._hoveredLayer&&(this._handleMouseOut(i),m&&(ye(this._container,"leaflet-interactive"),this._fireEvent([m],i,"mouseover"),this._hoveredLayer=m)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,i),this._mouseHoverThrottled=!0,setTimeout(l(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(i,a,c){this._map._fireDOMEvent(a,c||a.type,i)},_bringToFront:function(i){var a=i._order;if(a){var c=a.next,m=a.prev;if(c)c.prev=m;else return;m?m.next=c:c&&(this._drawFirst=c),a.prev=this._drawLast,this._drawLast.next=a,a.next=null,this._drawLast=a,this._requestRedraw(i)}},_bringToBack:function(i){var a=i._order;if(a){var c=a.next,m=a.prev;if(m)m.next=c;else return;c?c.prev=m:m&&(this._drawLast=m),a.prev=null,a.next=this._drawFirst,this._drawFirst.prev=a,this._drawFirst=a,this._requestRedraw(i)}}});function py(i){return re.canvas?new my(i):null}var Ys=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(i){return document.createElement("<lvml:"+i+' class="lvml">')}}catch{}return function(i){return document.createElement("<"+i+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),mP={_initContainer:function(){this._container=ke("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(gr.prototype._update.call(this),this.fire("update"))},_initPath:function(i){var a=i._container=Ys("shape");ye(a,"leaflet-vml-shape "+(this.options.className||"")),a.coordsize="1 1",i._path=Ys("path"),a.appendChild(i._path),this._updateStyle(i),this._layers[h(i)]=i},_addPath:function(i){var a=i._container;this._container.appendChild(a),i.options.interactive&&i.addInteractiveTarget(a)},_removePath:function(i){var a=i._container;Be(a),i.removeInteractiveTarget(a),delete this._layers[h(i)]},_updateStyle:function(i){var a=i._stroke,c=i._fill,m=i.options,x=i._container;x.stroked=!!m.stroke,x.filled=!!m.fill,m.stroke?(a||(a=i._stroke=Ys("stroke")),x.appendChild(a),a.weight=m.weight+"px",a.color=m.color,a.opacity=m.opacity,m.dashArray?a.dashStyle=C(m.dashArray)?m.dashArray.join(" "):m.dashArray.replace(/( *, *)/g," "):a.dashStyle="",a.endcap=m.lineCap.replace("butt","flat"),a.joinstyle=m.lineJoin):a&&(x.removeChild(a),i._stroke=null),m.fill?(c||(c=i._fill=Ys("fill")),x.appendChild(c),c.color=m.fillColor||m.color,c.opacity=m.fillOpacity):c&&(x.removeChild(c),i._fill=null)},_updateCircle:function(i){var a=i._point.round(),c=Math.round(i._radius),m=Math.round(i._radiusY||c);this._setPath(i,i._empty()?"M0 0":"AL "+a.x+","+a.y+" "+c+","+m+" 0,"+65535*360)},_setPath:function(i,a){i._path.v=a},_bringToFront:function(i){xo(i._container)},_bringToBack:function(i){wo(i._container)}},Bl=re.vml?Ys:po,Qs=gr.extend({_initContainer:function(){this._container=Bl("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Bl("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Be(this._container),Ae(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){gr.prototype._update.call(this);var i=this._bounds,a=i.getSize(),c=this._container;(!this._svgSize||!this._svgSize.equals(a))&&(this._svgSize=a,c.setAttribute("width",a.x),c.setAttribute("height",a.y)),Qe(c,i.min),c.setAttribute("viewBox",[i.min.x,i.min.y,a.x,a.y].join(" ")),this.fire("update")}},_initPath:function(i){var a=i._path=Bl("path");i.options.className&&ye(a,i.options.className),i.options.interactive&&ye(a,"leaflet-interactive"),this._updateStyle(i),this._layers[h(i)]=i},_addPath:function(i){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(i._path),i.addInteractiveTarget(i._path)},_removePath:function(i){Be(i._path),i.removeInteractiveTarget(i._path),delete this._layers[h(i)]},_updatePath:function(i){i._project(),i._update()},_updateStyle:function(i){var a=i._path,c=i.options;
244a&&(c.stroke?(a.setAttribute("stroke",c.color),a.setAttribute("stroke-opacity",c.opacity),a.setAttribute("stroke-width",c.weight),a.setAttribute("stroke-linecap",c.lineCap),a.setAttribute("stroke-linejoin",c.lineJoin),c.dashArray?a.setAttribute("stroke-dasharray",c.dashArray):a.removeAttribute("stroke-dasharray"),c.dashOffset?a.setAttribute("stroke-dashoffset",c.dashOffset):a.removeAttribute("stroke-dashoffset")):a.setAttribute("stroke","none"),c.fill?(a.setAttribute("fill",c.fillColor||c.color),a.setAttribute("fill-opacity",c.fillOpacity),a.setAttribute("fill-rule",c.fillRule||"evenodd")):a.setAttribute("fill","none"))},_updatePoly:function(i,a){this._setPath(i,Pi(i._parts,a))},_updateCircle:function(i){var a=i._point,c=Math.max(Math.round(i._radius),1),m=Math.max(Math.round(i._radiusY),1)||c,x="a"+c+","+m+" 0 1,0 ",P=i._empty()?"M0 0":"M"+(a.x-c)+","+a.y+x+c*2+",0 "+x+-c*2+",0 ";this._setPath(i,P)},_setPath:function(i,a){i._path.setAttribute("d",a)},_bringToFront:function(i){xo(i._path)},_bringToBack:function(i){wo(i._path)}});re.vml&&Qs.include(mP);function gy(i){return re.svg||re.vml?new Qs(i):null}we.include({getRenderer:function(i){var a=i.options.renderer||this._getPaneRenderer(i.options.pane)||this.options.renderer||this._renderer;return a||(a=this._renderer=this._createRenderer()),this.hasLayer(a)||this.addLayer(a),a},_getPaneRenderer:function(i){if(i==="overlayPane"||i===void 0)return!1;var a=this._paneRenderers[i];return a===void 0&&(a=this._createRenderer({pane:i}),this._paneRenderers[i]=a),a},_createRenderer:function(i){return this.options.preferCanvas&&py(i)||gy(i)}});var yy=ko.extend({initialize:function(i,a){ko.prototype.initialize.call(this,this._boundsToLatLngs(i),a)},setBounds:function(i){return this.setLatLngs(this._boundsToLatLngs(i))}
vendor: 14,336 bytes, line 244
244,_boundsToLatLngs:function(i){return i=ne(i),[i.getSouthWest(),i.getNorthWest(),i.getNorthEast(),i.getSouthEast()]}});function pP(i,a){return new yy(i,a)}Qs.create=Bl,Qs.pointsToPath=Pi,pr.geometryToLayer=Al,pr.coordsToLatLng=Wd,pr.coordsToLatLngs=Rl,pr.latLngToCoords=$d,pr.latLngsToCoords=Ol,pr.getFeature=Co,pr.asFeature=Il,we.mergeOptions({boxZoom:!0});var vy=Un.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane,this._resetStateTimeout=0,i.on("unload",this._destroy,this)},addHooks:function(){me(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ae(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Be(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(i){if(!i.shiftKey||i.which!==1&&i.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Hs(),Pd(),this._startPoint=this._map.mouseEventToContainerPoint(i),me(document,{contextmenu:Ai,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=ke("div","leaflet-zoom-box",this._container),ye(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(i);var a=new Y(this._point,this._startPoint),c=a.getSize();Qe(this._box,a.min),this._box.style.width=c.x+"px",this._box.style.height=c.y+"px"},_finish:function(){this._moved&&(Be(this._box),Ke(this._container,"leaflet-crosshair")),Ws(),Td(),Ae(document,{contextmenu:Ai,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(i){if(!(i.which!==1&&i.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(l(this._resetState,this),0);var a=new oe(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a})}},_onKeyDown:function(i){i.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});we.addInitHook("addHandler","boxZoom",vy),we.mergeOptions({doubleClickZoom:!0});var xy=Un.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(i){var a=this._map,c=a.getZoom(),m=a.options.zoomDelta,x=i.originalEvent.shiftKey?c-m:c+m;a.options.doubleClickZoom==="center"?a.setZoom(x):a.setZoomAround(i.containerPoint,x)}});we.addInitHook("addHandler","doubleClickZoom",xy),we.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var wy=Un.extend({addHooks:function(){if(!this._draggable){var i=this._map;this._draggable=new Ir(i._mapPane,i._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),i.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),i.on("zoomend",this._onZoomEnd,this),i.whenReady(this._onZoomEnd,this))}ye(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ke(this._map._container,"leaflet-grab"),Ke(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var i=this._map;if(i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var a=ne(this._map.options.maxBounds);this._offsetLimit=X(this._map.latLngToContainerPoint(a.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(a.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(i){if(this._map.options.inertia){var a=this._lastTime=+new Date,c=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(c),this._times.push(a),this._prunePositions(a)}this._map.fire("move",i).fire("drag",i)},_prunePositions:function(i){for(;this._positions.length>1&&i-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var i=this._map.getSize().divideBy(2),a=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=a.subtract(i).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(i,a){return i-(i-a)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var i=this._draggable._newPos.subtract(this._draggable._startPos),a=this._offsetLimit;i.x<a.min.x&&(i.x=this._viscousLimit(i.x,a.min.x)),i.y<a.min.y&&(i.y=this._viscousLimit(i.y,a.min.y)),i.x>a.max.x&&(i.x=this._viscousLimit(i.x,a.max.x)),i.y>a.max.y&&(i.y=this._viscousLimit(i.y,a.max.y)),this._draggable._newPos=this._draggable._startPos.add(i)}},_onPreDragWrap:function(){var i=this._worldWidth,a=Math.round(i/2),c=this._initialWorldOffset,m=this._draggable._newPos.x,x=(m-a+c)%i+a-c,P=(m+a+c)%i-a-c,E=Math.abs(x+c)<Math.abs(P+c)?x:P;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=E},_onDragEnd:function(i){var a=this._map,c=a.options,m=!c.inertia||i.noInertia||this._times.length<2;if(a.fire("dragend",i),m)a.fire("moveend");else{this._prunePositions(+new Date);var x=this._lastPos.subtract(this._positions[0]),P=(this._lastTime-this._times[0])/1e3,E=c.easeLinearity,R=x.multiplyBy(E/P),D=R.distanceTo([0,0]),W=Math.min(c.inertiaMaxSpeed,D),Q=R.multiplyBy(W/D),de=W/(c.inertiaDeceleration*E),ve=Q.multiplyBy(-de/2).round();!ve.x&&!ve.y?a.fire("moveend"):(ve=a._limitOffset(ve,a.options.maxBounds),G(function(){a.panBy(ve,{duration:de,easeLinearity:E,noMoveStart:!0,animate:!0})}))}}});we.addInitHook("addHandler","dragging",wy),we.mergeOptions({keyboard:!0,keyboardPanDelta:80});var by=Un.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(i){this._map=i,this._setPanDelta(i.options.keyboardPanDelta),this._setZoomDelta(i.options.zoomDelta)},addHooks:function(){var i=this._map._container;i.tabIndex<=0&&(i.tabIndex="0"),me(i,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ae(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var i=document.body,a=document.documentElement,c=i.scrollTop||a.scrollTop,m=i.scrollLeft||a.scrollLeft;this._map._container.focus(),window.scrollTo(m,c)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(i){var a=this._panKeys={},c=this.keyCodes,m,x;for(m=0,x=c.left.length;m<x;m++)a[c.left[m]]=[-1*i,0];for(m=0,x=c.right.length;m<x;m++)a[c.right[m]]=[i,0];for(m=0,x=c.down.length;m<x;m++)a[c.down[m]]=[0,i];for(m=0,x=c.up.length;m<x;m++)a[c.up[m]]=[0,-1*i]},_setZoomDelta:function(i){var a=this._zoomKeys={},c=this.keyCodes,m,x;for(m=0,x=c.zoomIn.length;m<x;m++)a[c.zoomIn[m]]=i;for(m=0,x=c.zoomOut.length;m<x;m++)a[c.zoomOut[m]]=-i},_addHooks:function(){me(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ae(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(i){if(!(i.altKey||i.ctrlKey||i.metaKey)){var a=i.keyCode,c=this._map,m;if(a in this._panKeys){if(!c._panAnim||!c._panAnim._inProgress)if(m=this._panKeys[a],i.shiftKey&&(m=z(m).multiplyBy(3)),c.options.maxBounds&&(m=c._limitOffset(z(m),c.options.maxBounds)),c.options.worldCopyJump){var x=c.wrapLatLng(c.unproject(c.project(c.getCenter()).add(m)));c.panTo(x)}else c.panBy(m)}else if(a in this._zoomKeys)c.setZoom(c.getZoom()+(i.shiftKey?3:1)*this._zoomKeys[a]);else if(a===27&&c._popup&&c._popup.options.closeOnEscapeKey)c.closePopup();else return;Ai(i)}}});we.addInitHook("addHandler","keyboard",by),we.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var _y=Un.extend({addHooks:function(){me(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ae(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(i){var a=Zg(i),c=this._map.options.wheelDebounceTime;this._delta+=a,this._lastMousePos=this._map.mouseEventToContainerPoint(i),this._startTime||(this._startTime=+new Date);var m=Math.max(c-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(l(this._performZoom,this),m),Ai(i)},_performZoom:function(){var i=this._map,a=i.getZoom(),c=this._map.options.zoomSnap||0;i._stop();var m=this._delta/(this._map.options.wheelPxPerZoomLevel*4),x=4*Math.log(2/(1+Math.exp(-Math.abs(m))))/Math.LN2,P=c?Math.ceil(x/c)*c:x,E=i._limitZoom(a+(this._delta>0?P:-P))-a;this._delta=0,this._startTime=null,E&&(i.options.scrollWheelZoom==="center"?i.setZoom(a+E):i.setZoomAround(this._lastMousePos,a+E))}});we.addInitHook("addHandler","scrollWheelZoom",_y);var gP=600;we.mergeOptions({tapHold:re.touchNative&&re.safari&&re.mobile,tapTolerance:15});var ky=Un.extend({addHooks:function(){me(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ae(this._map._container,"touchstart",this._onDown,this)},_onDown:function(i){if(clearTimeout(this._holdTimeout),i.touches.length===1){var a=i.touches[0];this._startPos=this._newPos=new M(a.clientX,a.clientY),this._holdTimeout=setTimeout(l(function(){this._cancel(),this._isTapValid()&&(me(document,"touchend",lt),me(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",a))},this),gP),me(document,"touchend touchcancel contextmenu",this._cancel,this),me(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function i(){Ae(document,"touchend",lt),Ae(document,"touchend touchcancel",i)},_cancel:function(){clearTimeout(this._holdTimeout),Ae(document,"touchend touchcancel contextmenu",this._cancel,this),Ae(document,"touchmove",this._onMove,this)},_onMove:function(i){var a=i.touches[0];this._newPos=new M(a.clientX,a.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(i,a){var c=new MouseEvent(i,{bubbles:!0,cancelable:!0,view:window,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY});c._simulated=!0,a.target.dispatchEvent(c)}});we.addInitHook("addHandler","tapHold",ky),we.mergeOptions({touchZoom:re.touch,bounceAtZoomLimits:!0});var Cy=Un.extend({addHooks:function(){ye(this._map._container,"leaflet-touch-zoom"),me(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ke(this._map._container,"leaflet-touch-zoom"),Ae(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(i){var a=this._map;if(!(!i.touches||i.touches.length!==2||a._animatingZoom||this._zooming)){var c=a.mouseEventToContainerPoint(i.touches[0]),m=a.mouseEventToContainerPoint(i.touches[1]);this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(c.add(m)._divideBy(2))),this._startDist=c.distanceTo(m),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),me(document,"touchmove",this._onTouchMove,this),me(document,"touchend touchcancel",this._onTouchEnd,this),lt(i)}},_onTouchMove:function(i){if(!(!i.touches||i.touches.length!==2||!this._zooming)){var a=this._map,c=a.mouseEventToContainerPoint(i.touches[0]),m=a.mouseEventToContainerPoint(i.touches[1]),x=c.distanceTo(m)/this._startDist;if(this._zoom=a.getScaleZoom(x,this._startZoom),!a.options.bounceAtZoomLimits&&(this._zoom<a.getMinZoom()&&x<1||this._zoom>a.getMaxZoom()&&x>1)&&(this._zoom=a._limitZoom(this._zoom)),a.options.touchZoom==="center"){if(this._center=this._startLatLng,x===1)return}else{var P=c._add(m)._divideBy(2)._subtract(this._centerPoint);if(x===1&&P.x===0&&P.y===0)return;this._center=a.unproject(a.project(this._pinchStartLatLng,this._zoom).subtract(P),this._zoom)}this._moved||(a._moveStart(!0,!1),this._moved=!0),$(this._animRequest);var E=l(a._move,a,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=G(E,this,!0),lt(i)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,$(this._animRequest),Ae(document,"touchmove",this._onTouchMove,this),Ae(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});we.addInitHook("addHandler","touchZoom",Cy),we.BoxZoom=vy,we.DoubleClickZoom=xy,we.Drag=wy,we.Keyboard=by,we.ScrollWheelZoom=_y,we.TapHold=ky,we.TouchZoom=Cy,n.Bounds=Y,n.Browser=re,n.CRS=ge,n.Canvas=my,n.Circle=Hd,n.CircleMarker=Ml,n.Class=U,n.Control=vn,n.DivIcon=dy,n.DivOverlay=Zn,n.DomEvent=RS,n.DomUtil=MS,n.Draggable=Ir,n.Evented=ue,n.FeatureGroup=fr,n.GeoJSON=pr,n.GridLayer=qs,n.Handler=Un,n.Icon=_o,n.ImageOverlay=Dl,n.LatLng=ce,n.LatLngBounds=oe,n.Layer=xn,n.LayerGroup=bo,n.LineUtil=GS,n.Map=we,n.Marker=Ll,n.Mixin=VS,n.Path=Dr,n.Point=M,n.PolyUtil=HS,n.Polygon=ko,n.Polyline=mr,n.Popup=Fl,n.PosAnimation=Gg,n.Projection=KS,n.Rectangle=yy,n.Renderer=gr,n.SVG=Qs,n.SVGOverlay=cy,n.TileLayer=So,n.Tooltip=zl,n.Transformation=Xt,n.Util=ie,n.VideoOverlay=uy,n.bind=l,n.bounds=X,n.canvas=py,n.circle=nP,n.circleMarker=tP,n.control=Zs,n.divIcon=dP,n.extend=o,n.featureGroup=XS,n.geoJSON=ly,n.geoJson=oP,n.gridLayer=hP,n.icon=JS,n.imageOverlay=sP,n.latLng=se,n.latLngBounds=ne,n.layerGroup=QS,n.map=OS,n.marker=eP,n.point=z,n.pol
244ygon=iP,n.polyline=rP,n.popup=uP,n.rectangle=pP,n.setOptions=_,n.stamp=h,n.svg=gy,n.svgOverlay=lP,n.tileLayer=hy,n.tooltip=cP,n.transformation=Jt,n.version=r,n.videoOverlay=aP;var yP=window.L;n.noConflict=function(){return window.L=yP,this},window.L=n})})(jm,jm.exports);var gl=jm.exports;const b4=Mm(gl);function jg(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function Eg(e,t){return t==null?function(r,o){const s=k.useRef();return s.current||(s.current=e(r,o)),s}:function(r,o){const s=k.useRef();s.current||(s.current=e(r,o));const l=k.useRef(r),{instance:d}=s.current;return k.useEffect(function(){l.current!==r&&(t(d,r,l.current),l.current=r)},[d,r,o]),s}}function _4(e,t){k.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var s;(s=t.layerContainer)==null||s.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function ZC(e){return function(n){const r=$C(),o=e(Tg(n,r),r);return VC(r.map,n.attribution),UC(o.current,n.eventHandlers),_4(o.current,r),o}}function k4(e,t){const n=Eg(e,t),r=ZC(n);return y4(r)}function C4(e,t){const n=Eg(e),r=w4(n,t);return v4(r)}function S4(e,t){const n=Eg(e,t),r=ZC(n);return x4(r)}function P4(e,t,n){const{opacity:r,zIndex:o}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),o!=null&&o!==n.zIndex&&e.setZIndex(o)}function Em(){return Em=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Em.apply(this,arguments)}function T4({bounds:e,boundsOptions:t,center:n,children:r,className:o,id:s,placeholder:l,style:d,whenReady:h,zoom:f,...p},g){const[y]=k.useState({className:o,id:s,style:d}),[v,S]=k.useState(null);k.useImperativeHandle(g,()=>(v==null?void 0:v.map)??null,[v]);const _=k.useCallback(w=>{if(w!==null&&v===null){const b=new gl.Map(w,p);n!=null&&f!=null?b.setView(n,f):e!=null&&b.fitBounds(e,t),h!=null&&b.whenReady(h),S(p4(b))}},[]);k.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const T=v?K.createElement(WC,{value:v},r):l??null;return K.createElement("div",Em({},y,{ref:_}),T)}const j4=k.forwardRef(T4),E4=k4(function({position:t,...n},r){const o=new gl.Marker(t,n);return jg(o,g4(r,{overlayContainer:o}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),N4=C4(function(t,n){const r=new gl.Popup(t,n.overlayContainer);return jg(r,n)},function(t,n,{position:r},o){k.useEffect(function(){const{instance:l}=t;function d(f){f.popup===l&&(l.update(),o(!0))}function h(f){f.popup===l&&o(!1)}return n.map.on({popupopen:d,popupclose:h}),n.overlayContainer==null?(r!=null&&l.setLatLng(r),l.openOn(n.map)):n.overlayContainer.bindPopup(l),function(){var p;n.map.off({popupopen:d,popupclose:h}),(p=n.overlayContainer)==null||p.unbindPopup(),n.map.removeLayer(l)}},[t,n,o,r])}),L4=S4(function({url:t,...n},r){const o=new gl.TileLayer(t,Tg(n,r));return jg(o,r)},function(t,n,r){P4(t,n,r);const{url:o}=n;o!=null&&o!==r.url&&t.setUrl(o)}),te=e=>`https://${e}.foodhub.org.za`,Ng=[{region:"Cape Town",subregions:[{name:"City & Atlantic Seaboard",clubs:[{name:"Food Club!",url:te("20east"),lat:-33.9288,lng:18.4172},{name:"Fresnaye",url:te("fresnaye"),lat:-33.9235,lng:18.384},{name:"Hout Bay",url:te("houtbaygfc"),lat:-34.0188,lng:18.3753},{name:"Tamboerskloof — Belle Ombre",url:te("belleombre"),lat:-33.9299,lng:18.4048},{name:"Vredehoek",url:te("slowfoodclub"),lat:-33.9391,lng:18.4244}]},{name:"Northern Suburbs",clubs:[{name:"Bellville — Lovage & Lemon",url:te("lovageandlemon"),lat:-33.9022,lng:18.6185},{name:"Durbanville — Welgedacht",url:te("welgedacht"),lat:-33.8227,lng:18.6546},{name:"Edgemead — At The Edge",url:te("attheedge"),lat:-33.8736,lng:18.5336},{name:"Kraaifontein — Faith Foods",url:te("faithfoods"),lat:-33.827,lng:18.6481},{name:"Kuils River",url:te("kuilsriverfoodclub"),lat:-34.0446,lng:18.7249},{name:"Milnerton Cafe",url:te("milnertoncafe"),lat:-33.8884,lng:18.4891},{name:"Parklands",url:te("parklands"),lat:-33.8034,lng:18.4961},{name:"Pinelands — Sunrise",url:te("sunrise"),lat:-33.9317,lng:18.5128},{name:"Pinelands — South Way",url:te("southway"),lat:-33.946,lng:18.5005},{name:"Plattekloof Glen",url:te("foodhubintheglen"),lat:-33.8888,lng:18.5582}]},{name:"Southern Suburbs",clubs:[{name:"Bergvliet — Happy Gut",url:te("happygut"),lat:-34.0421,lng:18.4565},{name:"Claremont — Upper Claremont",url:te("upperclaremont"),lat:-33.9879,lng:18.4543},{name:"Constantia",url:te("constantia"),lat:-34.0209,lng:18.4547},{name:"Constantia Heights",url:te("constantiaheights"),lat:-34.0129,lng:18.4537},{name:"Gather & Grow — Meadowridge",url:te("gatherandgrow"),lat:-34.0476,lng:18.4632},{name:"GFC Mowbray",url:te("gfcmowbray"),lat:-33.9529,lng:18.4768},{name:"Plumstead — Real Food",url:te("realfood"),lat:-34.0223,lng:18.4815},{name:"Rondebosch",url:te("rondebosch"),lat:-33.9682,lng:18.4836},{name:"Rondebosch — Abundantly",url:te("abundantly"),lat:-33.9578,lng:18.4881},{name:"Rondebosch — All Good Things",url:te("allgoodthings"),lat:-33.9557,lng:18.4869}]},{name:"South Peninsula",clubs:[{name:"Fish Hoek",url:te("fishhoek"),lat:-34.1331,lng:18.4294},{name:"Lakeside",url:te("lakeside"),lat:-34.0918,lng:18.4667},{name:"Marina Muiz",url:te("marinamuiz"),lat:-34.093,lng:18.4775},{name:"Muizenberg",url:te("goodfoodclubmuizenberg"),lat:-34.0986,lng:18.4779},{name:"Sun Valley — Fresh Connection",url:te("freshconnection"),lat:-34.1,lng:18.454},{name:"Welcome Glen",url:te("welcomeglen"),lat:-34.12,lng:18.44}]}]}
244,{region:"Winelands & Boland",subregions:[{name:"Winelands",clubs:[{name:"Banhoek",url:te("banhoek"),lat:-33.9274,lng:18.9393},{name:"Paarl — Winelands",url:te("winelands"),lat:-33.834,lng:18.9535},{name:"Stellenbosch — Lynedoch",url:te("lynedoch"),lat:-33.9813,lng:18.7712},{name:"Somerset West — Be.Hive",url:te("behive"),lat:-34.0923,lng:18.8536},{name:"Helderberg",url:te("helderberg"),lat:-34.1006,lng:18.8282}]},{name:"Boland",clubs:[{name:"Boland",url:"https://boland.foodhub.org.za",lat:-33.6462,lng:19.4459},{name:"McGregor",url:"https://boland.foodhub.org.za",lat:-33.9492,lng:19.8273},{name:"Robertson",url:"https://boland.foodhub.org.za",lat:-33.8022,lng:19.8836},{name:"Witzenberg",url:"https://boland.foodhub.org.za",lat:-33.4131,lng:19.2017}]},{name:"Overberg",clubs:[{name:"Betty's Bay",url:te("bettysbay"),lat:-34.3689,lng:18.8894},{name:"Greyton",url:te("thegreytlife"),lat:-34.0491,lng:19.5779},{name:"Harvest Club Stanford",url:te("harvestclub"),lat:-34.4382,lng:19.4888},{name:"Montagu",url:te("montagulocal"),lat:-33.787,lng:20.1178},{name:"Oaktree Napier",url:te("oaktreenapier"),lat:-34.4747,lng:19.8981},{name:"Swellendam",url:te("swellendam"),lat:-34.0235,lng:20.4321}]}]},{region:"Garden Route",subregions:[{name:"",clubs:[{name:"George",url:te("george"),lat:-33.9493,lng:22.4438}]}]},{region:"West Coast",subregions:[{name:"",clubs:[{name:"Jacobsbaai",url:te("jacobsbaai"),lat:-32.9667,lng:17.8903},{name:"Langebaan",url:te("langebaan"),lat:-33.0907,lng:18.0349}]}]},{region:"Gauteng",subregions:[{name:"Pretoria",clubs:[{name:"Garsfontein",url:te("garsfonteinfoodclub"),lat:-25.7911,lng:28.2946},{name:"Menlyn",url:te("menlyn"),lat:-25.7911,lng:28.2725},{name:"Montana",url:te("montana"),lat:-25.6769,lng:28.2353},{name:"Monument Park",url:te("monumentpark"),lat:-25.8002,lng:28.2306},{name:"Muckleneuk",url:te("muckleneuk"),lat:-25.7634,lng:28.2088},{name:"Waterkloof",url:te("waterkloof"),lat:-25.7753,lng:28.2411},{name:"Waverley",url:te("pretoria"),lat:-25.6982,lng:28.2556},{name:"Weiland — Die Wilgers",url:te("weiland"),lat:-25.7683,lng:28.3201}]},{name:"Johannesburg & East Rand",clubs:[{name:"Benoni — Earth2You",url:te("earth2you"),lat:-26.1693,lng:28.3071},{name:"Craighall Park — Nature's Pantry",url:te("naturespantry"),lat:-26.127,lng:28.022}]}]},{region:"KwaZulu-Natal",subregions:[{name:"",clubs:[{name:"Durban North",url:te("durbannorth"),lat:-29.7799,lng:31.0408}]}]},{region:"Mpumalanga",subregions:[{name:"",clubs:[{name:"Secunda",url:te("secunda"),lat:-26.5161,lng:29.2028},{name:"Witbank",url:te("witbank"),lat:-25.8967,lng:29.2246}]}]}],M4=Ng.flatMap(e=>e.subregions.flatMap(t=>t.clubs)),A4="/assets/club-marker-CNIIckSO.png",R4=b4.icon({iconUrl:A4,iconSize:[32,32],iconAnchor:[16,32],popupAnchor:[0,-32]}),O4=()=>u.jsx("div",{className:"rounded-lg overflow-hidden border border-border shadow-sm",style:{height:"420px"},children:u.jsxs(j4,{center:[-33.95,18.6],zoom:10,style:{height:"100%",width:"100%"},scrollWheelZoom:!1,children:[u.jsx(L4,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),M4.map((e,t)=>u.jsx(E4,{position:[e.lat,e.lng],icon:R4,children:u.jsxs(N4,{children:[u.jsx("strong",{className:"text-sm",children:e.name}),e.url&&u.jsx("div",{className:"mt-1",children:u.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary underline",children:"Visit shop →"})})]})},`${e.name}-${t}`))]})}),tr=k.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:Vt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));tr.displayName="Input";var I4="Label",GC=k.forwardRef((e,t)=>u.jsx(Ye.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));GC.displayName=I4;var KC=GC;const D4=Dp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Nn=k.forwardRef(({className:e,...t},n)=>u.jsx(KC,{ref:n,className:Vt(D4(),e),...t}));
244Nn.displayName=KC.displayName;function F4(e){const t=[];for(const n of Ng){if(n.region===e){for(const r of n.subregions)for(const o of r.clubs)t.push({...o,regionName:n.region,subregionName:r.name});continue}for(const r of n.subregions){if(r.name===e)for(const o of r.clubs)t.push({...o,regionName:n.region,subregionName:r.name});for(const o of r.clubs)o.name===e&&t.push({...o,regionName:n.region,subregionName:r.name})}}return t}function z4(e){return e.map(t=>({label:t.region,options:[{value:t.region,label:`${t.region} (show all)`},...t.subregions.filter(n=>n.name).map(n=>({value:n.name,label:n.name})),...t.subregions.flatMap(n=>n.clubs.map(r=>({value:r.name,label:r.name})))]}))}const B4=z4(Ng),V4=()=>{const[e,t]=k.useState(""),[n,r]=k.useState(""),[o,s]=k.useState(""),[l,d]=k.useState(""),[h,f]=k.useState(!1),[p,g]=k.useState(null),[y,v]=k.useState(""),S=e.trim()&&n.trim()&&o&&l.trim(),_=async()=>{if(!S)return;const w=F4(o);f(!0);try{await fetch("https://hook.eu1.make.com/vxihhgotg9dfkwnwg28hly4ja7kxk5gc",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({formType:"findaclub",firstName:e.trim(),lastName:n.trim(),email:l.trim(),area:o,matchedClubs:w.length>0?w.map(b=>b.name).join(", "):"No club found"})})}catch{}f(!1),v(e.trim()),g(w)},T=()=>{g(null),v("")};return p!==null?u.jsxs(le.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},children:[p.length>0?u.jsxs(u.Fragment,{children:[u.jsxs("h3",{className:"text-xl font-display font-bold text-secondary mb-2",children:["Hi ",y,", we found ",p.length," Food Club",p.length!==1?"s":""," near you:"]}),u.jsx("div",{className:"space-y-3 mb-4",children:p.map(w=>u.jsxs("div",{className:"bg-card border border-border rounded-lg p-4 hover:border-primary/30 transition-colors",children:[u.jsx("h4",{className:"font-semibold text-foreground mb-0.5",children:w.name}),u.jsxs("p",{className:"text-sm text-muted-foreground mb-2",children:[w.subregionName?`${w.subregionName}, `:"",w.regionName]}),w.url?u.jsxs("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-sm font-medium text-primary hover:text-primary/80 transition-colors",children:["Visit this club ",u.jsx(oL,{className:"h-3.5 w-3.5"})]}):u.jsx("span",{className:"text-sm text-muted-foreground italic",children:"Drop-off point"})]},w.name+w.url))}),u.jsxs("div",{className:"bg-primary/5 border-l-4 border-primary p-4 rounded-r-lg",children:[u.jsx("p",{className:"text-sm font-semibold text-foreground mb-2",children:"What to do next:"}),u.jsxs("ol",{className:"text-sm text-foreground/80 leading-relaxed space-y-1 list-decimal list-inside",children:[u.jsxs("li",{children:["Click ",u.jsx("strong",{children:'"Visit this Club"'})," above."]}),u.jsxs("li",{children:["Hit ",u.jsx("strong",{children:'"Sign up"'})," on the Club page."]}),u.jsx("li",{children:"Your Host will be notified and will reach out to welcome you."}),u.jsxs("li",{children:["Check the ",u.jsx("strong",{children:'"Order dates"'})," section to see when the next shop opens."]}),u.jsx("li",{children:"Prefer to chat first? Email your Host using the details at the top of the page."}),u.jsxs("li",{children:["If you have any issues, please reach out to"," ",u.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline",children:"[email protected]"})," ","and we can direct you."]})]})]})]}):u.jsxs("div",{className:"bg-muted/60 border-l-4 border-primary p-5 rounded-r-lg",children:[u.jsxs("h3",{className:"font-semibold text-foreground mb-2",children:["Hi ",y,", we don't have a club in your area yet."]}),u.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-3",children:"There's no Food Club in your area yet — but that could change. We've noted your details and will let you know 
244when one starts nearby."}),u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Interested in starting one yourself?"," ",u.jsx("a",{href:"#hosts",className:"text-primary font-medium underline",children:"Find out how →"})]})]}),u.jsx("button",{onClick:T,className:"mt-6 text-sm text-primary underline hover:text-primary/80 transition-colors",children:"← Search again"})]}):u.jsxs(le.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},children:[u.jsx("p",{className:"text-sm text-muted-foreground mb-6 text-center",children:"Where are you based?"}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Nn,{htmlFor:"fc-first",className:"text-xs uppercase tracking-wider text-muted-foreground font-medium",children:"First name"}),u.jsx(tr,{id:"fc-first",placeholder:"Your first name",value:e,onChange:w=>t(w.target.value)})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Nn,{htmlFor:"fc-last",className:"text-xs uppercase tracking-wider text-muted-foreground font-medium",children:"Last name"}),u.jsx(tr,{id:"fc-last",placeholder:"Your last name",value:n,onChange:w=>r(w.target.value)})]})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Nn,{htmlFor:"fc-area",className:"text-xs uppercase tracking-wider text-muted-foreground font-medium",children:"Your area"}),u.jsxs("select",{id:"fc-area",value:o,onChange:w=>s(w.target.value),className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
244ing-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:[u.jsx("option",{value:"",children:"Select your area or suburb"}),B4.map(w=>u.jsx("optgroup",{label:w.label,children:w.options.map(b=>u.jsx("option",{value:b.value,children:b.label},b.value))},w.label))]})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Nn,{htmlFor:"fc-email",className:"text-xs uppercase tracking-wider text-muted-foreground font-medium",children:"Email address"}),u.jsx(tr,{id:"fc-email",type:"email",placeholder:"[email protected]",value:l,onChange:w=>d(w.target.value),onKeyDown:w=>w.key==="Enter"&&_()})]}),u.jsxs(Pe,{onClick:_,disabled:!S||h,className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",size:"lg",children:[h?u.jsx(uL,{className:"h-4 w-4 animate-spin mr-2"}):null,"Find my nearest Food Club →"]})]})]})},H4=()=>{const[e,t]=k.useState("map");return u.jsx("section",{id:"join",className:"pt-10 md:pt-12 pb-20 md:pb-28 bg-muted/40 scroll-mt-16",children:u.jsxs("div",{className:"container",children:[u.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-10",children:[u.jsxs("h2",{className:"text-3xl md:text-5xl font-bold font-display text-secondary mb-4 inline-flex items-center justify-center gap-2 flex-wrap",children:["Find your nearest Food Club ",u.jsx("img",{src:Mc,alt:"Food Club House",className:"inline h-10 md:h-14 w-auto"})]}),u.jsx("p",{className:"text-lg md:text-xl font-semibold text-secondary/80 mb-2",children:"Skip the supermarket. Eat with your neighbourhood!"}),u.jsx("p",{className:"text-base text-foreground/70 max-w-lg mx-auto",children:"Find a Food Club near you and start ordering real food from real farmers this week."})]}),u.jsxs("div",{className:"flex justify-center gap-2 mb-8",children:[u.jsxs(Pe,{variant:e==="form"?"default":"outline",size:"sm",onClick:()=>t("form"),className:"gap-2",children:[u.jsx(wL,{className:"h-4 w-4"})," See our Club list"]}),u.jsxs(Pe,{variant:e==="map"?"default":"outline",size:"sm",onClick:()=>t("map"),className:"gap-2",children:[u.jsx(dL,{className:"h-4 w-4"})," Map"]})]}),u.jsx("div",{className:"max-w-xl mx-auto",children:e==="form"?u.jsx(V4,{}):u.jsx(O4,{})}),u.jsxs("div",{className:"flex flex-col items-center gap-4 mt-10",children:[u.jsx(Pe,{asChild:!0,size:"lg",className:"font-bold bg-accent text-accent-foreground hover:bg-accent/90 shadow-md",children:u.jsx("a",{href:"https://foodclubhub.netlify.app",target:"_blank",rel:"noopener noreferrer",children:"Members' Frequently Asked Questions about shopping →"})}),u.jsx(Pe,{asChild:!0,variant:"outline",size:"lg",className:"font-bold border-primary text-primary hover:bg-primary hover:text-primary-foreground transition-colors",children:u.jsx("a",{href:"https://democlub.foodhub.org.za/Suppliers",target:"_blank",rel:"noopener noreferrer",children:"Click here to see some of the farmers and foodmakers supplying Food Clubs →"})})]})]})})},W4="/assets/testimonial-jaime-Db3k6QQS.png",$4="/assets/testimonial-liesl-CqbCEhP1.avif",U4="/assets/testimonial-steph-B1b9TxXx.png",Z4="/assets/testimonial-courtney-noma-Dg5jPRPn.jpg",G4="/assets/testimonial-kari-bkUGAHQd.png",K4="/assets/testimonial-mieke-Ds26_XHD.jpg",Uh=[{image:U4,quote:"Food clubs make a huge difference for us as farmers because they shorten the chain. That means we can focus on farming.",name:"Steph Rowe",role:"Farmer, Veldt Reared Pasture Raised Chicken"},{image:W4,quote:"Being part of a Food Club has completely changed how my family and I think about food.",name:"Jaime Carolissen",role:"Member"},{image:$4,quote:"My kids have grown up crawling around Food Club deliveries, and often helped at market days. This way of alternative food provisioning is a life of ongoing reflection and growth about what we eat.",name:"Liesl Stewart (right)",role:"Host, GFC Mowbray. Pictured with Abby — together they have run Food Clubs for nearly 2 decades."},{image:K4,quote:"I knew Food Club Hub was exactly where I belonged after a long time of floating through the world.",name:"Mieke Boia",role:"Host of Fresnaye Food Club, Co-Host of Constantia Heights Food Club & Certified GAPS Coach"},{image:Z4,quote:"The perks have been building community — Members, Hosts and suppliers — seeing the suppliers we support flourish.",name:"Courtney Atkinson & Noma Matoko-Louemba",role:"Hosts, Constantia Food Club"},{image:G4,quote:"I just ❤️❤️ the concept, and how everything works and the system… I love the closer connection with suppliers, and also with Food Club Hosts ❤️",name:"Kari Doorduin",role:"Ferment-Maker at Kombukarious & Host, Winelands Food Club. Pictured with Head Fermentologist, Behaviour Mabhandu"}],q4=()=>{const[e,t]=k.useState(0),n=k.useRef(null),r=()=>{n.current&&clearInterval(n.current),n.current=setInterval(()=>{t(s=>(s+1)%Uh.length)},6e3)};k.useEffect(()=>(r(),()=>{n.current&&clearInterval(n.current)}),[]);const o=s=>{t(s),r()};return u.jsx("section",{id:"testimonials",className:"py-20 md:py-28 bg-background overflow-hidden scroll-mt-16",children:u.jsxs("div",{className:"container",children:[u.jsx(le.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl md:text-5xl font-bold font-display text-primary text-center mb-16",children:"Voices from the network"}),u.jsxs("div",{className:"relative max-w-4xl mx-auto",children:[u.jsx("div",{className:"overflow-hidden",children:u.jsx("div",{className:"flex transition-transform duration-700 ease-in-out",style:{transform:`translateX(-${e*100}%)`},children:Uh.map((s,l)=>u.jsx("div",{className:"w-full flex-shrink-0 px-4",children:u.jsxs("div",{className:"rounded-2xl overflow-hidden shadow-lg max-w-3xl mx-auto flex flex-col md:flex-row",children:[u.jsx("div",{className:"md:w-1/2 aspect-[4/3] md:aspect-auto overflow-hidden",children:s.image?u.jsx("img",{src:s.image,alt:`${s.name}, ${s.role}`,className:"w-full h-full object-cover object-top",loading:"lazy",width:600,height:450}):u.jsx("div",{className:"w-full h-full min-h-[200px] bg-primary/10 flex items-center justify-center",children:u.jsx("div",{className:"w-24 h-24 rounded-full bg-primary/20 flex items-center justify-center",children:u.jsx("span",{className:"text-3xl font-bold text-primary/40 font-display",children:s.name.charAt(0)})})})}),u.jsxs("div",{className:"md:w-1/2 bg-primary p-6 md:p-8 flex flex-col justify-center",children:[u.jsxs("blockquote",{className:"text-xl md:text-2xl font-display text-white leading-relaxed mb-5",children:['"',s.quote,'"']}),u.jsxs("p",{className:"text-accent font-bold text-base",children:["— ",s.name]}),u.jsx("p",{className:"text-accent/70 text-sm",children:s.role})]})]})},l))})}),u.jsx("div",{className:"flex justify-center gap-3 mt-10",children:Uh.map((s,l)=>u.jsx("button",{onClick:()=>o(l),className:`w-3 h-3 rounded-full transition-all duration-300 ${l===e?"bg-accent scale-125":"bg-primary/30 hover:bg-primary/50"}`,"aria-label":`Go to testimonial ${l+1}`},l))})]})]})})},Y4=[{icon:Fp,label:"Regeneration"}
244,{icon:u1,label:"Transparency"},{icon:lL,label:"Fairness to producers"},{icon:Bp,label:"Community"},{icon:xL,label:"Knowing our farmers"},{icon:zp,label:"Local sourcing"}],Q4=()=>u.jsx("section",{id:"values",className:"py-16 md:py-20 bg-muted/40 scroll-mt-16",children:u.jsxs("div",{className:"container",children:[u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-8",children:Y4.map((e,t)=>u.jsxs(le.div,{initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.07,duration:.4},className:"flex flex-col items-center text-center gap-3",children:[u.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center",children:u.jsx(e.icon,{className:"h-6 w-6 text-muted-teal"})}),u.jsx("span",{className:"text-sm font-semibold text-primary",children:e.label})]},e.label))}),u.jsx(le.p,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.5,duration:.4},className:"text-center mt-8",children:u.jsx(M_,{to:"/why-food-clubs",className:"text-accent font-semibold hover:underline text-base",children:"See our values in action here →"})})]})}),X4="/assets/money-breakdown-photo-B7QkRNqU.png",jo=({children:e})=>u.jsx("span",{className:"percent-safe",children:e}),J4=({img:e,alt:t,circle:n=!0})=>u.jsx("div",{className:`w-[80px] h-[80px] ${n?"rounded-full":"rounded-lg"} overflow-hidden bg-background flex items-center justify-center mx-auto mb-2 border-2 border-primary/20`,children:u.jsx("img",{src:e,alt:t,className:"w-full h-full object-cover"})}),yu=({sign:e})=>u.jsx("div",{className:"flex items-center justify-center px-2 md:px-4 self-center",children:u.jsx("span",{className:"text-3xl md:text-4xl font-bold text-accent select-none",children:e})}),vu=({img:e,alt:t,circle:n=!0,label:r,sub:o,bullets:s})=>u.jsxs("div",{className:"text-center flex-1 min-w-0",children:[u.jsx(J4,{img:e,alt:t,circle:n}),u.jsx("p",{className:"font-display text-[14px] font-bold text-foreground leading-snug",children:r}),o&&u.jsx("p",{className:"text-[12px] font-light text-muted-teal mt-0.5 leading-snug",children:o}),s&&s.length>0&&u.jsx("ul",{className:"text-[11px] font-light text-muted-foreground mt-1 space-y-0 text-left pl-3 list-disc max-w-[180px] mx-auto",children:s.map(l=>u.jsx("li",{children:l},l))})]}),xu=({img:e,alt:t,circle:n=!0,label:r,sub:o,bullets:s})=>u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:`w-[64px] h-[64px] ${n?"rounded-full":"rounded-lg"} overflow-hidden bg-primary/10 flex items-center justify-center mx-auto mb-1.5 border-2 border-primary/20`,children:u.jsx("img",{src:e,alt:t,className:"w-full h-full object-cover"})}),u.jsx("p",{className:"font-display text-[13px] font-bold text-foreground leading-snug",children:r}),o&&u.jsx("p",{className:"text-[11px] font-light text-muted-teal mt-0.5 leading-snug",children:o}),s&&s.length>0&&u.jsx("ul",{className:"text-[11px] font-light text-muted-foreground mt-1 space-y-0 text-left pl-3 list-disc max-w-[170px] mx-auto",children:s.map(l=>u.jsx("li",{children:l},l))})]}),eD=()=>u.jsxs("div",{className:"max-w-4xl mx-auto py-4",children:[u.jsxs("div",{className:"hidden md:flex items-center justify-center gap-0",style:{alignItems:"center"},children:[u.jsx(vu,{img:Lc,alt:"Supplier delivery van",label:"Producer price",sub:"Sets their own price, includes logistics"}),u.jsx(yu,{sign:"+"}),u.jsxs("div",{className:"border-[0.5px] border-border/30 rounded-xl px-5 py-4 flex items-start gap-4 bg-accent/5",children:[u.jsx(xu,{img:Mc,alt:"Food Club Hub",circle:!1,label:u.jsxs(u.Fragment,{children:["Hub fee ",u.jsx(jo,{children:"5%"})]}),bullets:["No fee on Host's own groceries","No fee on Host-to-Host trade","No payment when no sales"]}),u.jsx(xu,{img:Nc,alt:"Host with food box",label:u.jsxs(u.Fragment,{children:["Host fee ",u.jsx(jo,{children:"10–15%"})]}),bullets:["Host chooses markup per product","Can add a market day fee"]})]}),u.jsx(yu,{sign:"="}),u.jsx(vu,{img:Tm,alt:"Members walking",label:"Member's price",sub:u.jsxs(u.Fragment,{children:["Producer ",u.jsx(jo,{children:"%"})," visible on every invoice"]})})]}),u.jsxs("div",{className:"md:hidden flex flex-col items-center gap-4",children:[u.jsx(vu,{img:Lc,alt:"Supplier delivery van",label:"Producer price",sub:"Sets their own price, includes logistics"}),u.jsx(yu,{sign:"+"}),u.jsxs("div",{className:"border-[0.5px] border-border/30 rounded-xl px-5 py-4 flex flex-col items-center gap-3 bg-accent/5 w-full max-w-xs",children:[u.jsx(xu,{img:Mc,alt:"Food Club Hub",circle:!1,label:u.jsxs(u.Fragment,{children:["Hub fee ",u.jsx(jo,{children:"5%"})]}),bullets:["No fee on Host's own groceries","No fee on Host-to-Host trade","No payment when no sales"]}),u.jsx(xu,{img:Nc,alt:"Host with food box",label:u.jsxs(u.Fragment,{children:["Host fee ",u.jsx(jo,{children:"10–15%"})]}),bullets:["Host chooses markup per product","Can add a market day fee"]})]}),u.jsx(yu,{sign:"="}),u.jsx(vu,{img:Tm,alt:"Members walking",label:"Member's price",sub:u.jsxs(u.Fragment,{children:["Producer ",u.jsx(jo,{children:"%"})," visible on every invoice"]})})]})]}),tD=[{amount:"R86.64",label:"Supplier",desc:"the farmer / food-maker + internal logistics",percent:86.64},{amount:"R10.65",label:"Host",desc:"running the club & Market Day fee",percent:10.65}
244,{amount:"R2.55",label:"Food Club Hub",desc:"platform + network + support",percent:2.55},{amount:"R2.15",label:"External logistics & packers",desc:"",percent:2.15},{amount:"R0.14",label:"Debited extras",desc:"",percent:.14}],nD=()=>u.jsxs("div",{className:"space-y-4",children:[u.jsx("h2",{className:"font-display text-4xl md:text-5xl font-bold text-foreground mb-3 text-center",children:"Where does your money go?"}),u.jsx("p",{className:"text-[15px] font-light text-foreground/60 mb-4 text-center",children:"Here is our pricing model."}),u.jsx(eD,{}),u.jsx("p",{className:"text-[15px] font-light text-foreground/60 mb-2 mt-6",children:"To date on 1 April 2026, for every R100 spent through Food Club Hub, this was the breakdown of who received what:"}),u.jsx("div",{className:"space-y-4",children:tD.map(e=>u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-baseline justify-between mb-1.5",children:[u.jsxs("div",{className:"flex items-baseline gap-2",children:[u.jsx("span",{className:"font-display text-xl font-bold text-foreground",children:e.amount}),u.jsxs("span",{className:"text-sm font-medium text-foreground",children:["→ ",e.label]}),e.desc&&u.jsxs("span",{className:"text-sm font-light text-foreground/50",children:["(",e.desc,")"]})]}),u.jsxs("span",{className:"text-xs text-muted-foreground font-light",children:[e.percent,"%"]})]}),u.jsx("div",{className:"w-full h-2 bg-muted rounded-full overflow-hidden",children:u.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-700",style:{width:`${e.percent}%`}})})]},e.label))}),u.jsx("img",{src:X4,alt:"Fresh vegetables being shared at a Food Club market day",className:"w-full rounded-lg mt-10"})]}),rD=()=>u.jsx("section",{id:"money-breakdown",className:"bg-background py-20",children:u.jsx("div",{className:"max-w-3xl mx-auto px-6",children:u.jsx(nD,{})})}),qC=k.forwardRef(({className:e,...t},n)=>u.jsx("textarea",{className:Vt("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
244ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));qC.displayName="Textarea";const iD=()=>{const[e,t]=k.useState(!1),n=async r=>{r.preventDefault(),t(!0);const o=r.currentTarget,s=new FormData(o);try{(await fetch("https://hook.eu1.make.com/mvsl2lu36tj83accj789b8buphs3d1aq",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({formType:s.get("formType"),name:s.get("name"),email:s.get("email"),phone:s.get("phone"),suburb:s.get("suburb"),province:s.get("province"),message:s.get("message")})})).ok?(_h.success("Message sent — we'll be in touch!"),o.reset()):_h.error("Something went wrong. Please try again.")}catch{_h.error("Network error. Please try again.")}finally{t(!1)}};return u.jsxs("section",{id:"contact",className:"scroll-mt-16 bg-primary/5",children:[u.jsx("div",{className:"py-20 md:py-28",children:u.jsx("div",{className:"container",children:u.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center max-w-2xl mx-auto",children:[u.jsx("h2",{className:"text-3xl md:text-5xl font-bold font-display text-primary mb-6",children:"Ready to eat differently?"}),u.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed mb-10",children:"Every order reaches a real farmer, supports a real Host, and builds something fairer — one neighbourhood at a time."}),u.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[u.jsx(Pe,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-bold px-8 text-base",children:u.jsx("a",{href:"#join",children:"Find a Club"})}),u.jsx(Pe,{asChild:!0,size:"lg",className:"bg-white text-primary border border-primary hover:border-accent hover:text-accent font-bold px-8 text-base transition-colors",children:u.jsx("a",{href:"/host-and-supply#hosts",children:"Start a Club"})}),u.jsx(Pe,{asChild:!0,size:"lg",className:"bg-white text-primary border border-primary hover:border-accent hover:text-accent font-bold px-8 text-base transition-colors",children:u.jsx("a",{href:"/host-and-supply#suppliers",children:"Supply a Club"})})]})]})})}),u.jsx("div",{className:"pb-20 md:pb-28",children:u.jsxs("div",{className:"container",children:[u.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"max-w-xl mx-auto text-center",children:[u.jsx("h2",{className:"text-3xl md:text-5xl font-bold font-display text-secondary mb-4",children:"Have a different question for us?"}),u.jsx("p",{className:"text-muted-foreground text-lg mb-10",children:"Drop us a message and we'll get back to you."})]}),u.jsxs(le.form,{onSubmit:n,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"max-w-xl mx-auto space-y-5",children:[u.jsx("input",{type:"hidden",name:"formType",value:"contact"}),u.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Nn,{htmlFor:"name",children:"Name"}),u.jsx(tr,{id:"name",name:"name",required:!0,maxLength:100,placeholder:"Your name"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Nn,{htmlFor:"email",children:"Email"}),u.jsx(tr,{id:"email",name:"email",type:"email",required:!0,maxLength:255,placeholder:"[email protected]"})]})]}),u.jsxs("div",{className:"grid sm:grid-cols-3 gap-5",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Nn,{htmlFor:"phone",children:"Phone"}),u.jsx(tr,{id:"phone",name:"phone",type:"tel",maxLength:20,placeholder:"071 234 5678"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Nn,{htmlFor:"suburb",children:"Suburb"}),u.jsx(tr,{id:"suburb",name:"suburb",maxLength:100,placeholder:"e.g. Rondebosch"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Nn,{htmlFor:"province",children:"Province"}),u.jsx(tr,{id:"province",name:"province",maxLength:100,placeholder:"e.g. Western Cape"})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Nn,{htmlFor:"message",children:"Message"}),u.jsx(qC,{id:"message",name:"message",required:!0,maxLength:1e3,rows:5,placeholder:"How can we help?"})]}),u.jsx(Pe,{type:"submit",size:"lg",disabled:e,className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground font-bold",children:"Send message"})]})]})})]})},Ac="/assets/foodclub_logo_branded-X6S87Rmq.png",oD=[{label:"Find a Club",href:"/#join"},{label:"How It Works",href:"/#how-it-works"},{label:"For Hosts",href:"/host-and-supply#hosts"},{label:"For Suppliers",href:"/host-and-supply#suppliers"},{label:"Contact",href:"/#contact"}],Lg=()=>u.jsxs("footer",{className:"bg-primary text-primary-foreground",children:[u.jsxs("div",{className:"container py-14",children:[u.jsxs("div",{className:"grid md:grid-cols-3 gap-10",children:[u.jsxs("div",{children:[u.jsx("img",{src:Ac,alt:"Food Club Hub",className:"h-8 brightness-0 invert mb-4"}
244),u.jsx("p",{className:"text-primary-foreground/60 text-sm leading-relaxed max-w-xs",children:"Building a regenerative food system in South Africa — one club at a time."}),u.jsx("a",{href:"https://www.instagram.com/foodclubhub/",target:"_blank",rel:"noopener noreferrer",className:"inline-block mt-4 text-primary-foreground/50 hover:text-primary-foreground transition-colors text-sm",children:"@foodclubhub on Instagram"})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-bold text-sm mb-4 text-primary-foreground/40 uppercase tracking-wider",children:"Links"}),u.jsx("ul",{className:"space-y-2",children:oD.map(e=>u.jsx("li",{children:u.jsx("a",{href:e.href,className:"text-sm text-primary-foreground/70 hover:text-primary-foreground transition-colors",children:e.label})},e.label))})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-bold text-sm mb-4 text-primary-foreground/40 uppercase tracking-wider",children:"Get in touch"}),u.jsx("a",{href:"mailto:[email protected]",className:"text-sm text-primary-foreground
244/70 hover:text-primary-foreground transition-colors block mb-2",children:"[email protected]"}),u.jsx("a",{href:"https://www.foodhub.org.za",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary-foreground/70 hover:text-primary-foreground transition-colors",children:"foodhub.org.za"})]})]}),u.jsx("div",{className:"mt-10 text-center",children:u.jsx("p",{className:"text-accent font-display font-bold text-lg",children:"Small act. Big change."})})]}),u.jsx("div",{className:"border-t border-primary-foreground/10",children:u.jsxs("div",{className:"container py-4 flex flex-col sm:flex-row items-center justify-between text-xs text-primary-foreground/40",children:[u.jsx("span",{children:"© 2026 Food Club Hub"}),u.jsx("span",{children:"Privacy Policy"})]})})]}),sD=()=>u.jsxs(u.Fragment,{children:[u.jsx(Qp,{}),u.jsxs("main",{children:[u.jsx(X5,{}),u.jsx(s4,{}),u.jsx(l4,{}),u.jsx(H4,{}),u.jsx(i4,{}),u.jsx(c4,{}),u.jsx(f4,{}),u.jsx(q4,{}),u.jsx(Q4,{}),u.jsx(rD,{}),u.jsx(iD,{})]}),u.jsx(Lg,{})]}),aD="/assets/industrial-farming-D5sEU5si.jpg",YC="/assets/food-club-garage-BNUwKkVo.png",QC="/assets/food-club-sorting-CcK4SWsf.png",lD="/assets/food-club-photo3-new-AzinIxvw.jpeg",uD="/assets/food-club-photo4-new-qNDi2Rmj.jpeg",cD="/assets/food-club-photo5-new-zUg87H9A.jpeg",dD="/assets/food-club-photo6-new-BTTYv07Y.jpg",hD="/assets/practice-photo1-new-BX6qptnZ.avif",fD="/assets/practice-photo2-new-DoDQIOsu.png",mD=()=>u.jsx("section",{className:"py-24 md:py-36 bg-background",children:u.jsxs("div",{className:"container max-w-3xl text-center",children:[u.jsx(le.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-4xl md:text-6xl font-bold font-display text-primary mb-6 leading-tight",children:"The food system cannot be fixed — we need to change it!"}),u.jsxs(le.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.15},className:"text-lg md:text-xl text-foreground/70 leading-relaxed",children:["Our food system wasn't designed for the health of our farmers,",u.jsx("br",{}),"animals or communities."]})]})}),pD=()=>u.jsx("section",{className:"py-20 md:py-28 bg-primary text-primary-foreground",children:u.jsxs("div",{className:"container max-w-3xl",children:[u.jsx(le.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl md:text-5xl font-bold font-display mb-4",children:"How did we get here?"}),u.jsx(le.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"text-lg md:text-xl opacity-80 mb-10",children:"The farmer is far from the consumer. The consumer is far from the land."}),u.jsx(le.div,{initial:{opacity:0}
244,whileInView:{opacity:1},viewport:{once:!0},className:"rounded-xl overflow-hidden mb-10",children:u.jsx("img",{src:aD,alt:"Barren industrial farmland in South Africa — depleted soil with no green vegetation",className:"w-full h-64 md:h-80 object-cover",loading:"lazy"})}),u.jsxs("div",{className:"space-y-6 text-lg leading-relaxed opacity-90",children:[u.jsx("p",{children:"Globally, the top three agricultural input companies control a majority of the commercial seed and agrochemical markets, shaping what farmers can grow and how food is produced, including in South Africa (African Centre for Biodiversity)."}),u.jsxs("p",{children:["At the same time, four major supermarket groups are estimated to control up to ",u.jsx("span",{className:"percent-safe",children:"97%"})," of South Africa's formal retail sector (Tracey Ledger, ",u.jsx("em",{children:"An Empty Plate"}),")."]}),u.jsx("hr",{className:"border-primary-foreground/20 my-2"}),u.jsx("p",{children:"Industrial farming strips nutrients from soil, replaces biodiversity with monocultures, and keeps farmers in debt to the inputs they depen
244d on and farm workers and animals in inhumane conditions. The food chain grows longer. More hands between the farmer and your plate means less accountability at every step."}),u.jsx("p",{children:"We are farming our soil to death — and disconnecting people from their food while we do it."})]}),u.jsx(le.blockquote,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mt-14 border-l-4 border-accent pl-6 md:pl-8",children:u.jsx("p",{className:"text-2xl md:text-3xl font-display italic text-accent leading-snug",children:'"Food clubs are not the answer to all of this. But they are a direct, honest, human response to it."'})})]})}),gD=[{icon:_L,stat:"As little as 6%",body:"The share of the end price some farmers receive. Prices paid to farmers have declined in real terms since the 1990s.",label:"Farmers"},{icon:c1,stat:"67%",body:"Of deaths in South Africa are from non-communicable diseases — many preventable through better eating. 68% of South African women live with obesity.",label:"Health"},{icon:Fp,stat:"10.3 million tonnes",body:"Of food wasted in South Africa every year — while we produce enough food to feed the country.",label:"Waste"},{icon:tL,stat:"As much as 97%",body:"Of formal retail is estimated to be controlled by 4 supermarket chains. Over 50% of SA farming inputs controlled by 4 multinational companies.",label:"Control"}],yD=()=>u.jsx("section",{className:"py-20 md:py-28 bg-background",children:u.jsxs("div",{className:"container",children:[u.jsx(le.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl md:text-5xl font-bold font-display text-primary text-center mb-16",children:"The result"}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:gD.map((e,t)=>u.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"bg-card rounded-xl p-6 shadow-sm border border-border text-center",children:[u.jsx(e.icon,{className:"w-8 h-8 text-accent mx-auto mb-4"}),u.jsx("span",{className:"text-[13px] font-semibold font-display text-muted-foreground mb-2 block",children:e.label}),u.jsx("p",{className:"text-2xl md:text-3xl font-bold percent-safe text-primary mb-3",children:e.stat}),u.jsx("p",{className:"text-sm text-foreground/80 leading-relaxed",children:e.body})]},t))}),u.jsxs("p",{className:"text-sm text-muted-foreground text-center mt-10",children:["Sources: Tracey Ledger, ",u.jsx("em",{children:"An Empty Plate"}),", 2017. Pereira, ",u.jsx("em",{children:"The Future of South Africa's Food System"}),", 2015. WHO. Western Cape Government."]})]})}),vD=[{icon:yL,title:"Farmers come first",body:"We are agents of farmers, not retailers. Farmers set their own price. We share their stories. We market them through our networks."},{icon:nL,title:"Paid fairly and on time",body:"Every farmer in our network is paid the price they set, within 7 days of delivery. No untenable terms. No being dropped for wonky veg."},{icon:u1,title:"Radical transparency",body:"We don't control pricing - but we do ask for honesty. Every invoice shows Members the exact % of their payment that went directly to the producer. We think this is a first in SA. We work hard to prevent greenwashing on our platform. Feedlot meat and trawled fish have no place here. We update supplier profiles so Members can make informed choices - not choices based on clever marketing. We welcome information from our network that teaches us what it really means to farm sustainably. We get things wrong and we make changes. We are here to learn, not to lecture. Accountability isn't a policy - it's personal."},{icon:Bp,title:"Decentralised and resilient",body:"Each club has its own focus: social inequality, climate, health and each is part of our thriving, healthy, often messy network of humans who believe the food system can be fairer. Independent but interdependent. Collaborative by nature. Growing together. During Covid, port strikes, Ukraine war and now the Middle East, our clubs aim to keep our local producers afloat."},{icon:sL,title:"Supporting regenerative farming",body:`Our low-overhead "farmer to garage" model makes regenerative food accessible at better prices than the same products in a store. As soil health improves, so does the nutritional qual
244ity of our food. That's the chain we're investing in, one order at a time.`},{icon:mL,title:"Less waste, fewer miles",body:"Food is harvested to order. We don't reject wonky veg. We work with suppliers to reduce packaging and we have systems to return packaging too. Direct supply chains mean fewer food miles and less carbon."}],xD=()=>u.jsx("section",{className:"py-20 md:py-28 bg-background",children:u.jsxs("div",{className:"container",children:[u.jsx(le.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl md:text-5xl font-bold font-display text-primary text-center mb-16",children:"What food clubs do differently"}),u.jsx("p",{className:"text-[17px] font-light leading-relaxed text-primary max-w-3xl mx-auto text-center mb-10",children:"The food club model isn't complicated. It's just uncommon. Farmers set their own price. Members know exactly where their food comes from. Hosts build something real in their neighbourhood. And every invoice shows exactly where every rand went. We didn't invent these ideas — we just built a platform around them."}),u.jsx("div",{className:"grid md:grid-cols-2 gap-x-12 gap-y-10 max-w-4xl mx-auto",children:vD.map((e,t)=>u.jsxs(le.div,{initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.08},className:"flex gap-4",children:[u.jsx(e.icon,{className:"w-6 h-6 text-accent flex-shrink-0 mt-1"}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold text-primary text-lg mb-1",children:e.title}),u.jsx("p",{className:"text-primary leading-relaxed whitespace-pre-line",children:e.body})]})]},t))}),u.jsx(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mt-16 grid grid-cols-2 md:grid-cols-3 gap-4 max-w-4xl mx-auto",children:[YC,QC,lD,uD,cD,dD].map((e,t)=>u.jsx("div",{className:"rounded-xl overflow-hidden aspect-square",children:u.jsx("img",{src:e,alt:"Food club in action",className:"w-full h-full object-cover",loading:"lazy"})},t))}),u.jsxs(le.blockquote,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center max-w-3xl mx-auto mt-14",children:[u.jsx("p",{className:"text-2xl md:text-3xl font-display italic text-accent leading-snug",children:'"To move toward a more just and equitable foodways, we must begin in this space of connection — this is where true knowledge of food begins."'}),u.jsx("p",{className:"text-sm text-muted-foreground mt-3",children:"— Liesl Stewart, one of Food Club Hub's founding Hosts"})]})]})}),wD=[{title:"The rooikat",body:`A farmer called to say a rooikat had eaten all her chickens. Instead of quietly apologising, we shared the story with our Members. One wrote back: "I was delighted to tell my 8-year-old that we'd have no chicken this month because the rooikat ate them all. It sparked a whole conversation about how the chicken we eat lives outdoors — not in a barn, or on a shelf."
245
246That's what food clubs do. They reconnect people to where food actually comes from.`},{title:"The blueberries",body:`Port strikes left a farmer about to dump 5 tonnes of blueberries he couldn't export. We put the word out. Within days our Hosts had filled their garages, bedrooms and streets — and shifted all 5 tonnes. No food wasted. No water, nutrients or emissions lost.
247
248That's a decentralised network responding to a shock in real time.`},{title:"Covid",body:`When global supply chains buckled, our small connected network kept local producers afloat. Farmers who would otherwise have gone bankrupt kept farming.
249
250Our model isn't just fairer — it's more resilient.`},{title:"Right now",body:`The war in Iran is closing the Strait of Hormuz — the passage for 20‰ of global oil and a third of global fertiliser trade. South Africa imports 80‰ of its fertiliser. Diesel is up. Transport costs are rising. Food prices are following.
251
252Food Club Hub supports farmers that are moving away from fertilisers. Our response has been immediate — because collaboration is built into our DNA. Clubs across our network are pooling orders and combining deliveries so fewer trips cover more ground.
253
254We live in unsettling times. We see collaboration as the new competition.`,badge:"Right now"}],bD=()=>u.jsx("section",{className:"py-20 md:py-28 bg-primary text-primary-foreground",children:u.jsxs("div",{className:"container",children:[u.jsx(le.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl md:text-5xl font-bold font-display text-center mb-16",children:"This is what it looks like in practice"}),u.jsxs(le.blockquote,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center max-w-3xl mx-auto mb-14",children:[u.jsx("p",{className:"text-2xl md:text-3xl font-display italic text-accent leading-snug",children:`"We've never stopped asking questions, so we've never stopped learning about our food system."`}
254),u.jsx("p",{className:"text-sm text-primary-foreground/70 mt-3",children:"— Abby Fehrsen, one of Food Club Hub's founding Hosts"})]}),u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 mb-12",children:[u.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"relative rounded-xl overflow-hidden",children:[u.jsx("img",{src:hD,alt:"5 tonnes of blueberries sold through Food Clubs",className:"w-full h-64 md:h-80 object-cover",loading:"lazy"}),u.jsx("span",{className:"absolute bottom-3 left-3 bg-black/60 text-white text-sm font-semibold px-4 py-1.5 rounded-full",children:"5 tonnes of blueberries sold!"})]}),u.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"relative rounded-xl overflow-hidden",children:[u.jsx("img",{src:fD,alt:"Family making blueberry jam from Food Club produce",className:"w-full h-64 md:h-80 object-cover",loading:"lazy"}),u.jsx("span",{className:"absolute bottom-3 left-3 bg-black/60 text-white text-sm font-semibold px-4 py-1.5 rounded-full",children:"Some families are still living off their blueberry jam"})]})]}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:wD.map((e,t)=>u.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"bg-primary-foreground/10 backdrop-blur-sm rounded-xl p-6 border border-primary-foreground/15 relative",children:[e.badge?u.jsx("span",{className:"absolute top-4 right-4 bg-accent text-accent-foreground text-xs font-bold px-2 py-1 rounded-full",children:e.badge}):u.jsx("span",{className:"inline-block text-[13px] font-semibold font-display text-accent mb-3",children:"Story"}),e.badge&&u.jsx("span",{className:"inline-block text-[13px] font-semibold font-display text-accent mb-3",children:"Story"}),u.jsx("h3",{className:"text-lg font-bold font-display mb-4",children:e.title}),u.jsx("p",{className:"text-sm leading-relaxed opacity-90 whitespace-pre-line",children:e.body})]},t))})]})}),_D=()=>u.jsx("section",{className:"py-20 md:py-28 bg-background",children:u.jsxs("div",{className:"container max-w-3xl text-center",children:[u.jsx(le.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl md:text-5xl font-bold font-display text-primary mb-10",children:"We don't have all the answers"}),u.jsxs("div",{className:"space-y-6 text-lg leading-relaxed text-foreground/80 mb-10",children:[u.jsx("p",{children:"Food clubs are not the answer to all of this. But they are a direct, honest and human response to it. We can't single-handedly address food sovereignty, land rights, or food security for the millions of South Africans who are food insecure. The scale of the problem is much bigger than any of us."}),u.jsx("p",{children:"We aren't all farmers, social scientists or agronomists. We are humans who want change, who are still learning, and who believe that connection is where real knowledge begins."}),u.jsx("p",{children:"But we need to start somewhere. And buying through a food club is a very simple, beautiful place to begin."})]}),u.jsx("p",{className:"text-primary font-bold mb-10",children:"— Jessica Merton, Founder, Food Club Hub"}),u.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[u.jsx(Pe,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",children:u.jsx("a",{href:"/#join",children:"Find a Club"})}),u.jsx(Pe,{asChild:!0,size:"lg",variant:"outline",className:"border-primary text-primary hover:bg-primary/10 font-semibold",children:u.jsx("a",{href:"/#hosts",children:"Start a Club"})}),u.jsx(Pe,{asChild:!0,size:"lg",variant:"outline",className:"border-primary text-primary hover:bg-primary/10 font-semibold",children:u.jsx("a",{href:"/#suppliers",children:"Supply a Club"})})]})]})}),kD=()=>u.jsx("section",{className:"py-16 bg-accent/10",children:u.jsxs("div",{className:"container text-center",children:[u.jsx("p",{className:"text-3xl md:text-4xl font-bold font-display text-accent mb-3",children:"Small act. Big change."}),u.jsx("p",{className:"text-muted-foreground",children:"Every order matters. Every farm matters. Every club matters."})]})}),CD=()=>u.jsxs(u.Fragment,{children:[u.jsx(Qp,{}),u.jsxs("main",{children:[u.jsx(mD,{}),u.jsx(pD,{}),u.jsx(yD,{}),u.jsx(xD,{}),u.jsx(bD,{}),u.jsx(_D,{}),u.jsx(kD,{})]}),u.jsx(Lg,{})]}),SD="/assets/testimonial-cynthia-DQrAZjj2.jpg",PD="https://docs.google.com/forms/d/e/1FAIpQLSdSMS4V554fcfqZjFV1UU7KhipzQojiW60wu3zIlRn1cA2zIg/viewform?usp=header",TD="https://docs.google.com/forms/d/e/1FAIpQLSeywgRLfh4zdTDXhejDD7re74ZE4uRnZf8B9ULbgEqyXJXF5Q/viewform?usp=header",V0=[{title:"Income and flexibility",items:[{text:"Earn income in your spare time, on your own schedule. Once a week, twice a month, once a month — you decide."},{text:"Buy your own food at cost. One of the most tangible perks of hosting, and one that grows as your club grows.",bold:!0},{text:"Monetise logistics you're already doing. Factor in collection costs and cover your transport."},{text:"Run from home with real tax benefits for home-based businesses"},{text:"No flat fees. No platform fees. Hub adds 5% to supplier invoices (currently 2.6% of total invoice) — so we only grow when you do.",bold:!0,linkPrefix:"See ",linkText:'"Where does your money go?"',linkSuffix:" for a real price breakdown →",linkHref:"/#money-breakdown"}]},{title:"The platform",paragraph:"Many years of market days, relationships and learning has gone into this so you don't have to start from scratch.",items:[{text:"Your own personalised club website from day one. No tech knowledge needed."},{text:"A fully built ordering system designed by Hosts for Hosts: pricing engine, packing lists, delivery checklists, batch invoices and full transparency on every invoice."},{text:"We don't control your markup. But every invoice shows Members exactly what percentage went to the supplier — and that transparency is what keeps them loyal."},{text:"Buy at cost from other Hosts. Stock transfers and shared deliveries built in."},{text:"Pricing updates managed centrally. Hosting, maintenance and development all handled. You build and run nothing."}]},{title:"Suppliers and prices",items:[{text:"Access to hundreds of vetted suppliers and thousands of products"},{text:"Great prices due to years of trade and collective volume. Suppliers reward our network with discounts that individual clubs could never negotiate alone."},{text:"Centralised suppliers verified against Food Club Hub's ethical standards. That verification gives your Members confidence to buy."},{text:"Bring your own local suppliers in. Typically around 20% of each Club's products come from their immediate area."},{text:"From time to time we negotiate group buy discounts on lifestyle and non-food products across the network"}]},{title:"Support and community",paragraph:"Nobody starts a Food Club already knowing everything. We certainly didn't. What we've learned has come from many years of Hosts figuring it out together and passing it forward. That knowledge is y
254ours from day one through our Host Onboarding course, covering everything from our values, market day planning to finding your first Members.",items:[{text:"We help you start from zero: site setup, supplier selection, pricing guidance and seven years of accumulated knowledge."},{text:"We send Members your way and grow them month by month."},{text:"A WhatsApp community of Hosts sharing marketing, solving problems and mentoring each other"},{text:"Marketing shared across Hosts. You don't have to create everything from scratch."}]},{title:"The network",paragraph:"This is not just software. This is a living ecosystem built on trust, time and shared values. Hosts mentor each other, celebrate each other, and carry each other through the hard seasons. Food connects people. And that connection extends to everyone in this network, including us.",items:[]}],jD=[{title:"Pricing",items:[{text:"Farmers and food-makers set their price and are paid within 7 days."},{text:"Full pricing transparency on every invoice. Our Members see exactly what percentage went to you."},{text:"No flat fees. No platform fees. Hub adds 5% to supplier invoices (currently 2.6% of total invoice) — so we only grow when you do.",bold:!0,linkPrefix:"See ",linkText:'"Where does your money go?"',linkSuffix:" for a real price breakdown →",linkHref:"/#money-breakdown"}]},{title:"Market access and trust",items:[{text:"Access to 57 active clubs and thousands of values-driven Members across South Africa who specifically seek out regenerative and ethical local food."},{text:"Centralised suppliers verified against Food Club Hub's ethical standards. Your values and farming practices are front and centre on every product listing."},{text:"Members know exactly what they're buying and why. Your story, ethics and farming practices are embedded in every listing."},{text:"No food waste. Members pre-order before you harvest or produce, so you make exactly what's needed. Nothing more.",bold:!0}]},{title:"The platform",items:[{text:"A fully built ordering system. You don't build, Host or maintain anything."},{text:"Members in a neighbourhood consolidate their orders into one club collection, making minimum order quantities achievable and reducing delivery trips."},{text:"Supplier portal if you want to manage your stock and prices live, simple and straightforward."}]},{title:"Operational support",items:[{text:"If you farm regeneratively, supplier onboarding, product listings, stock and pricing are managed on your behalf."},{text:"One point of contact for pricing rather than 55 individual Host relationships."},{text:"Hosts are contractually required to pay within 7 days. We monitor this and step in when it doesn't happen."},{text:"Collaboration organised across the network. Share information with a whole group of clubs in one place."}]},{title:"The network",paragraph:`We work hard on building real relationships between suppliers over years of trust, volume and a shared belief in a better food system. Food Club Hub is a non-profit. Every penny we earn goes back into the network. We are not extracting wealth from your community — we are building it with you.
255
256This is not just software. This is a living ecosystem built on trust, time and shared values.`,items:[]}],ED=[{number:"57",label:"Active Clubs"},{number:"R2.5M+",label:"Sold monthly"},{number:"300+",label:"Vetted suppliers"},{number:"48,000+",label:"Orders processed"}],Zh=({categories:e})=>u.jsx("div",{className:"max-w-3xl mx-auto space-y-10",children:e.map(t=>u.jsxs("div",{children:[u.jsx("p",{className:"text-[13px] font-semibold font-display text-muted-teal pb-3 border-b border-border mb-4",children:t.title}),t.paragraph&&u.jsx("div",{className:"space-y-4 mb-4",children:t.paragraph.split(`
257
258`).map((n,r)=>u.jsx("p",{className:"text-[15px] leading-relaxed text-foreground/80 font-light",children:n},r))}),t.items.length>0&&u.jsx("div",{className:"space-y-0",children:t.items.map((n,r)=>u.jsxs("div",{className:"flex items-start gap-4 py-3 border-b border-border/50 last:border-b-0",children:[u.jsx("span",{className:"mt-2.5 w-1.5 h-1.5 rounded-full bg-muted-teal flex-shrink-0"}),u.jsxs("p",{className:"text-[15px] leading-relaxed text-foreground
258/80 font-light",children:[n.bold?u.jsx("strong",{className:"font-medium text-foreground",children:n.text}):n.text,n.linkText&&n.linkHref&&u.jsxs(u.Fragment,{children:[" ",n.linkPrefix&&u.jsx("span",{children:n.linkPrefix}),u.jsx("a",{href:n.linkHref,className:"text-primary underline underline-offset-2 hover:text-primary/80 transition-colors font-medium",children:n.linkText}),n.linkSuffix&&u.jsx("span",{children:n.linkSuffix})]})]})]},r))})]},t.title))}),ND=()=>{const[e,t]=k.useState(()=>window.location.hash==="#suppliers"?"supply":"Host");return k.useEffect(()=>{const n=()=>{window.location.hash==="#suppliers"?t("supply"):window.location.hash==="#hosts"&&t("Host")};return window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[]),u.jsxs(u.Fragment,{children:[u.jsx(Qp,{}),u.jsxs("main",{className:"min-h-screen bg-background",children:[u.jsxs("div",{className:"sticky top-16 z-40 bg-background border-b border-border flex",children:[u.jsx("button",{onClick:()=>{t("Host"),window.scrollTo(0,0)},className:`flex-1 py-4 text-xs font-medium tracking-[0.06em] uppercase transition-colors border-b-[3px] ${e==="Host"?"text-primary border-primary":"text-muted-foreground border-transparent hover:text-primary"}`,children:"Host a Food Club"}),u.jsx("button",{onClick:()=>{t("supply"),window.scrollTo(0,0)},className:`flex-1 py-4 text-xs font-medium tracking-[0.06em] uppercase transition-colors border-b-[3px] ${e==="supply"?"text-primary border-primary":"text-muted-foreground border-transparent hover:text-primary"}`,children:"Supply a Food Club"})]}),e==="Host"&&u.jsxs(le.div,{initial:{opacity:0}
258,animate:{opacity:1},transition:{duration:.3},children:[u.jsxs("div",{className:"max-w-3xl mx-auto px-6 pt-16 pb-12 flex flex-col-reverse md:flex-row md:items-center md:gap-12",children:[u.jsxs("div",{className:"flex-1",children:[u.jsx("p",{className:"text-[13px] font-semibold font-display text-muted-teal mb-4",children:"Start a Food Club"}),u.jsxs("h1",{className:"font-display text-4xl md:text-5xl font-bold text-foreground leading-tight mb-5",children:["Build community.",u.jsx("br",{}),"Earn income.",u.jsx("br",{}),"Change the food system."]}),u.jsx("p",{className:"text-[17px] font-light leading-relaxed text-foreground/70 max-w-xl mb-8",children:"The food system isn't broken. It just wasn't designed for the health of our farmers, our animals, or our communities."}),u.jsx("p",{className:"text-[17px] font-light leading-relaxed text-foreground/70 max-w-xl",children:"Run a Food Club from your home, garage or community space — on your own schedule, with the full support of a seven-year-old network behind you."})]}),u.jsx("div",{className:"flex justify-center mb-8 md:mb-0 md:flex-shrink-0",children:u.jsx("div",{className:"w-40 md:w-52 rounded-full bg-background overflow-hidden",children:u.jsx("img",{src:Nc,alt:"Host carrying a box of fresh food",className:"w-full h-auto object-contain",loading:"lazy"})})})]}),u.jsx("div",{className:"flex bg-secondary rounded-lg mb-12",children:[{number:"57",label:"Clubs"},{number:"9,800+",label:"Members and counting"},{number:"At cost",label:"You buy your own food at supplier price"},{number:"R0 flat fees",label:"We take a % only when you sell. If you don't grow, we don't earn."},{number:"From home",label:"Make an income from your garage, stoep or afdak"}].map(n=>u.jsxs("div",{className:"flex-1 py-5 text-center border-r border-secondary-foreground/20 last:border-r-0",children:[u.jsx("span",{className:"block font-display text-2xl md:text-3xl font-bold text-accent",children:n.number}),u.jsx("span",{className:"text-xs text-secondary-foreground/70 font-light mt-1",children:n.label})]},n.label))}),u.jsx("div",{className:"px-6 pb-12",children:u.jsx(Zh,{categories:[V0[0]]})}),u.jsx("div",{className:"px-6 pb-12",children:u.jsxs("div",{className:"max-w-3xl mx-auto grid grid-cols-3 gap-3",children:[u.jsx("div",{className:"rounded-xl overflow-hidden aspect-[4/3]",children:u.jsx("img",{src:YC,alt:"Garage collection on market day",className:"w-full h-full object-cover",loading:"lazy"})}),u.jsx("div",{className:"rounded-xl overflow-hidden aspect-[4/3]",children:u.jsx("img",{src:QC,alt:"Man holding FireFruit box",className:"w-full h-full object-cover",loading:"lazy"})}),u.jsx("div",{className:"rounded-xl overflow-hidden aspect-[4/3]",children:u.jsx("img",{src:BC,alt:"Family collecting at the table",className:"w-full h-full object-cover",loading:"lazy"})})]})}),u.jsx("div",{className:"bg-muted-teal py-14 px-6 mb-12",children:u.jsxs("p",{className:"max-w-3xl mx-auto text-center text-white text-lg md:text-xl font-semibold leading-relaxed",children:["We are a non-profit. Every rand we earn goes back into the network.",u.jsx("br",{}),"We are not extracting wealth from your community — we are building it with you."]})}),u.jsx("div",{className:"px-6 pb-12",children:u.jsx(Zh,{categories:V0.slice(1)})}),u.jsx("div",{className:"max-w-3xl mx-auto px-6 py-10",children:u.jsxs("div",{className:"rounded-2xl overflow-hidden shadow-lg flex flex-col md:flex-row",children:[u.jsx("div",{className:"md:w-1/2 aspect-[4/3] md:aspect-auto overflow-hidden",children:u.jsx("img",{src:SD,alt:"Cynthia Dold, Host of Upper Claremont Food Club",className:"w-full h-full object-cover object-top",loading:"lazy"})}),u.jsxs("div",{className:"md:w-1/2 bg-primary p-6 md:p-8 flex flex-col justify-center",children:[u.jsx("blockquote",{className:"text-lg md:text-xl font-display text-white leading-relaxed mb-5",children:`"This is a complete labour of love — and I wouldn't change it. Gosh, do I get excited when all this amazing food is available to my family at supplier pricing, covered by my Members' shopping. No two market days are ever the same. And I could always do with another fridge."`}),u.jsx("p",{className:"text-accent font-bold text-base",children:"— Cynthia Dold"}),u.jsx("p",{className:"text-accent/70 text-sm",children:"Host, Upper Claremont Food Club"})]})]})}),u.jsxs("div",{className:"max-w-3xl mx-auto px-6 py-16 text-center",children:[u.jsx("p",{className:"text-base text-foreground
258/60 font-light leading-relaxed mb-6",children:"Ready to start? Fill in your motivation to Host a Food Club and we'll be in touch."}),u.jsx(Pe,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-bold uppercase tracking-wider text-xs px-10",children:u.jsx("a",{href:PD,target:"_blank",rel:"noopener noreferrer",children:"Apply to Host a Food Club →"})})]})]},"host"),e==="supply"&&u.jsxs(le.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.3},children:[u.jsxs("div",{className:"max-w-3xl mx-auto px-6 pt-16 pb-12 flex flex-col-reverse md:flex-row md:items-center md:gap-12",children:[u.jsxs("div",{className:"flex-1",children:[u.jsx("p",{className:"text-[13px] font-semibold font-display text-muted-teal mb-4",children:"Supply a Food Club"}),u.jsxs("h1",{className:"font-display text-4xl md:text-5xl font-bold text-foreground leading-tight mb-5",children:["Reach conscious consumers.",u.jsx("br",{}),"Get paid fairly.",u.jsx("br",{}),"Grow sustainably."]}),u.jsx("p",{className:"text-[17px] font-light leading-relaxed text-foreground/70 max-w-xl",children:"Join a network of 57 active Food Clubs processing over R2.5 million of food a month — built on seven years of relationships with farmers and food makers who share our values."})]}),u.jsx("div",{className:"flex justify-center mb-8 md:mb-0 md:flex-shrink-0",children:u.jsx("img",{src:Lc,alt:"Supplier delivery van",className:"w-40 md:w-52 h-auto object-contain",loading:"lazy"})})]}),u.jsx("div",{className:"flex bg-secondary rounded-lg mb-12",children:ED.map(n=>u.jsxs("div",{className:"flex-1 py-5 text-center border-r border-secondary-foreground/20 last:border-r-0",children:[u.jsx("span",{className:"block font-display text-3xl font-bold text-accent",children:n.number}),u.jsx("span",{className:"text-xs text-secondary-foreground/70 font-light mt-1",children:n.label})]},n.label))}),u.jsx("div",{className:"max-w-3xl mx-auto px-6 mb-12",children:u.jsx("div",{className:"bg-muted border-l-[3px] border-muted-teal px-6 py-5",children:u.jsx("p",{className:"text-[15px] leading-relaxed text-foreground/80 font-light italic",children:"Supermarkets typically pay farmers a fraction of the shelf price. Through Food Club Hub, suppliers set their own price and receive it in full — with complete transparency on every invoice. Across our network, more than 85 cents in every rand spent goes directly to suppliers."})})}),u.jsx("div",{className:"px-6 pb-12",children:u.jsx(Zh,{categories:jD})}),u.jsx("div",{className:"max-w-3xl mx-auto px-6 pb-12",children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u.jsx("div",{className:"rounded-xl overflow-hidden aspect-[9/16]",children:u.jsx("iframe",{src:"https://www.canva.com/design/DAGqCXx8hvY/PymAKKyKhpjSCuXZsXwmGQ/watch?embed",className:"w-full h-full border-0",allowFullScreen:!0,allow:"fullscreen",loading:"lazy",title:"Food Club Hub supplier video 1"})}),u.jsx("div",{className:"rounded-xl overflow-hidden aspect-[9/16]",children:u.jsx("iframe",{src:"https://www.canva.com/design/DAGqCXaZx3o/cHDL6zwm4WgU_anQA012lQ/watch?embed",className:"w-full h-full border-0",allowFullScreen:!0,allow:"fullscreen",loading:"lazy",title:"Food Club Hub supplier video 2"})})]})}),u.jsxs("div",{className:"max-w-3xl mx-auto px-6 py-16 text-center",children:[u.jsx("p",{className:"text-base text-foreground/60 font-light leading-relaxed mb-6",children:"Ready to supply a Food Club? Tell us about your farm or food business and we'll be in touch."}),u.jsx(Pe,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-bold uppercase tracking-wider text-xs px-10",children:u.jsx("a",{href:TD,target:"_blank",rel:"noopener noreferrer",children:"Apply to supply a food club →"})})]})]},"supply")]}),u.jsx(Lg,{})]})};var LD=k.createContext(void 0);function XC(e){const t=k.useContext(LD);return e||t||"ltr"}var Gh="rovingFocusGroup.onEntryFocus",MD={bubbles:!1,cancelable:!0},yl="RovingFocusGroup",[Nm,JC,AD]=O_(yl),[RD,eS]=Es(yl,[AD]),[OD,ID]=RD(yl),tS=k.forwardRef((e,t)=>u.jsx(Nm.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Nm.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(DD,{...e,ref:t})})}));tS.displayName=yl;var DD=k.forwardRef((e,t)=>
vendor: 4,487 bytes, line 258
258{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:h,onEntryFocus:f,preventScrollOnEntryFocus:p=!1,...g}=e,y=k.useRef(null),v=mn(t,y),S=XC(s),[_,T]=Ap({prop:l,defaultProp:d??null,onChange:h,caller:yl}),[w,b]=k.useState(!1),C=Er(f),j=JC(n),N=k.useRef(!1),[A,I]=k.useState(0);return k.useEffect(()=>{const O=y.current;if(O)return O.addEventListener(Gh,C),()=>O.removeEventListener(Gh,C)},[C]),u.jsx(OD,{scope:n,orientation:r,dir:S,loop:o,currentTabStopId:_,onItemFocus:k.useCallback(O=>T(O),[T]),onItemShiftTab:k.useCallback(()=>b(!0),[]),onFocusableItemAdd:k.useCallback(()=>I(O=>O+1),[]),onFocusableItemRemove:k.useCallback(()=>I(O=>O-1),[]),children:u.jsx(Ye.div,{tabIndex:w||A===0?-1:0,"data-orientation":r,...g,ref:v,style:{outline:"none",...e.style},onMouseDown:Ee(e.onMouseDown,()=>{N.current=!0}),onFocus:Ee(e.onFocus,O=>{const V=!N.current;if(O.target===O.currentTarget&&V&&!w){const F=new CustomEvent(Gh,MD);if(O.currentTarget.dispatchEvent(F),!F.defaultPrevented){const G=j().filter(q=>q.focusable),$=G.find(q=>q.active),ie=G.find(q=>q.id===_),ae=[$,ie,...G].filter(Boolean).map(q=>q.ref.current);iS(ae,p)}}N.current=!1}),onBlur:Ee(e.onBlur,()=>b(!1))})})}),nS="RovingFocusGroupItem",rS=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:l,...d}=e,h=_1(),f=s||h,p=ID(nS,n),g=p.currentTabStopId===f,y=JC(n),{onFocusableItemAdd:v,onFocusableItemRemove:S,currentTabStopId:_}=p;return k.useEffect(()=>{if(r)return v(),()=>S()},[r,v,S]),u.jsx(Nm.ItemSlot,{scope:n,id:f,focusable:r,active:o,children:u.jsx(Ye.span,{tabIndex:g?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:Ee(e.onMouseDown,T=>{r?p.onItemFocus(f):T.preventDefault()}),onFocus:Ee(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:Ee(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){p.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const w=BD(T,p.orientation,p.dir);if(w!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let C=y().filter(j=>j.focusable).map(j=>j.ref.current);if(w==="last")C.reverse();else if(w==="prev"||w==="next"){w==="prev"&&C.reverse();const j=C.indexOf(T.currentTarget);C=p.loop?VD(C,j+1):C.slice(j+1)}setTimeout(()=>iS(C))}}),children:typeof l=="function"?l({isCurrentTabStop:g,hasTabStop:_!=null}):l})})});rS.displayName=nS;var FD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zD(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function BD(e,t,n){const r=zD(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return FD[r]}function iS(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function VD(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var HD=tS,WD=rS,pd="Tabs",[$D,FF]=Es(pd,[eS]),oS=eS(),[UD,Mg]=$D(pd),sS=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:l="horizontal",dir:d,activationMode:h="automatic",...f}=e,p=XC(d),[g,y]=Ap({prop:r,onChange:o,defaultProp:s??"",caller:pd});return u.jsx(UD,{scope:n,baseId:_1(),value:g,onValueChange:y,orientation:l,dir:p,activationMode:h,children:u.jsx(Ye.div,{dir:p,"data-orientation":l,...f,ref:t})})});sS.displayName=pd;var aS="TabsList",lS=k.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=Mg(aS,n),l=oS(n);return u.jsx(HD,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:r,children:u.jsx(Ye.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});lS.displayName=aS;var uS="TabsTrigger",cS=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,l=Mg(uS,n),d=oS(n),h=fS(l.baseId,r),f=mS(l.baseId,r),p=r===l.value;return u.jsx(WD,{asChild:!0,...d,focusable:!o,active:p,children:u.jsx(Ye.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:h,...s,ref:t,onMouseDown:Ee(e.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?l.onValueChange(r):g.preventDefault()}),onKeyDown:Ee(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&l.onValueChange(r)}),onFocus:Ee(e.onFocus,()=>{const g=l.activationMode!=="manual";!p&&!o&&g&&l.onValueChange(r)})})})});cS.displayName=uS;var dS="TabsContent",hS=k.forwardRef((e,t)=>
258{const{__scopeTabs:n,value:r,forceMount:o,children:s,...l}=e,d=Mg(dS,n),h=fS(d.baseId,r),f=mS(d.baseId,r),p=r===d.value,g=k.useRef(p);return k.useEffect(()=>{const y=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(y)},[]),u.jsx(ed,{present:o||p,children:({present:y})=>u.jsx(Ye.div,{"data-state":p?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":h,hidden:!y,id:f,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:y&&s})})});hS.displayName=dS;function fS(e,t){return`${e}-trigger-${t}`}function mS(e,t){return`${e}-content-${t}`}var ZD=sS,pS=lS,gS=cS,yS=hS;const H0=ZD,Lm=k.forwardRef(({className:e,...t},n)=>u.jsx(pS,{ref:n,className:Vt("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Lm.displayName=pS.displayName;const Ur=k.forwardRef(({className:e,...t},n)=>u.jsx(gS,{ref:n,className:Vt("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));Ur.displayName=gS.displayName;const Zr=k.forwardRef(({className:e,...t},n)=>u.jsx(yS,{ref:n,className:Vt("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Zr.displayName=yS.displayName;const We={name:"Slow Food Club",slug:"slowfoodclub",suburb:"Vredehoek",host:"Abby Fehrsen",hostSince:2019,activeMembers:42,frequency:"fortnightly Wednesday",address:"14 Upper Orange St, Vredehoek",collectTimes:"4pm – 6pm",shopCloses:"Sunday 18 May at 8pm",daysToGo:3,status:"open",marketDay:"Wednesday 21 May"},W0=[{id:"veldt",name:"Veldt Reared",location:"Overberg",description:"Pasture-raised chicken and pork from the Overberg hills. No antibiotics, no hormones, no feedlot.",since:2020,practices:["Pasture raised","Chemical free","Regenerative"],image:"https://images.unsplash.com/photo-1500595046743-cd271d694d30?w=400&h=300&fit=crop"},{id:"heritage",name:"Heritage Farm",location:"Stellenbosch",description:"Organic vegetables grown using regenerative methods on a smallholding outside Stellenbosch.",since:2021,practices:["Regenerative","Chemical free","Seasonal"],image:"https://images.unsplash.com/photo-1574943320219-553eb213f72d?w=400&h=300&fit=crop"},{id:"coastal",name:"Coastal Catch",location:"Kalk Bay",description:"Line-caught fish from local fishermen. Never trawled. Seasonal availability.",since:2022,practices:["Line caught","Seasonal","Minimal packaging"],image:"https://images.unsplash.com/photo-1498654200943-1088dd4438ae?w=400&h=300&fit=crop"},{id:"karoo",name:"Karoo Dairy",location:"Klein Karoo",description:"Raw milk, cultured butter, and farmstead cheese from grass-fed Jersey cows.",since:2019,practices:["Pasture raised","Chemical free"],image:"https://images.unsplash.com/photo-1628088062854-d1870b4553da?w=400&h=300&fit=crop"}],_s=[{id:"1",name:"Free-Range Whole Chicken",price:145,category:"Meat & Poultry",supplier:"Veldt Reared",supplierLocation:"Overberg",producerPercent:78,image:"https://images.unsplash.com/photo-1587593810167-a84920ea0781?w=400&h=300&fit=crop",values:["Pasture raised","Chemical free"],moqNeeded:20,moqCurrent:22},{id:"2",name:"Pork Shoulder Roast (1.2kg)",price:189,category:"Meat & Poultry",supplier:"Veldt Reared",supplierLocation:"Overberg",producerPercent:76,image:"https://images.unsplash.com/photo-1602470520998-f4a52199a3d6?w=400&h=300&fit=crop",values:["Pasture raised","Chemical free"],moqNeeded:15,moqCurrent:11},{id:"3",name:"Mixed Seasonal Veg Box",price:95,category:"Fresh Produce",supplier:"Heritage Farm",supplierLocation:"Stellenbosch",producerPercent:82,image:"https://images.unsplash.com/photo-1540420773420-3366772f4999?w=400&h=300&fit=crop",values:["Regenerative","Chemical free","Seasonal"],moqNeeded:25,moqCurrent:25},{id:"4",name:"Baby Spinach (200g)",price:32,category:"Fresh Produce",supplier:"Heritage Farm",supplierLocation:"Stellenbosch",producerPercent:84,image:"https://images.unsplash.com/photo-1576045057995-568f588f82fb?w=400&h=300&fit=crop",values:["Regenerative","Chemical free","Seasonal"],moqNeeded:30,moqCurrent:28},{id:"5",name:"Line-Caught Snoek (whole)",price:120,category:"Meat & Poultry",supplier:"Coastal Catch",supplierLocation:"Kalk Bay",producerPercent:80,image:"https://images.unsplash.com/photo-1534604973900-c43ab4c2e0ab?w=400&h=300&fit=crop",values:["Line caught","Seasonal"],moqNeeded:12,moqCurrent:4},{id:"6",name:"Raw Jersey Milk (1L)",price:38,category:"Dairy & Eggs",supplier:"Karoo Dairy",supplierLocation:"Klein Karoo",producerPercent:75,image:"https://images.unsplash.com/photo-1563636619-e9143da7973b?w=400&h=300&fit=crop",values:["Pasture raised","Chemical free"],moqNeeded:20,moqCurrent:18},{id:"7",name:"Farmstead Cheddar (200g)",price:68,category:"Dairy & Eggs",supplier:"Karoo Dairy",supplierLocation:"Klein Karoo",producerPercent:73,image:"https://images.unsplash.com/photo-1486297678162-eb2a19b0a32d?w=400&h=300&fit=crop",values:["Pasture raised"],moq
258Needed:15,moqCurrent:15},{id:"8",name:"Sourdough Loaf",price:55,category:"Bakery",supplier:"Heritage Farm",supplierLocation:"Stellenbosch",producerPercent:70,image:"https://images.unsplash.com/photo-1509440159596-0249088772ff?w=400&h=300&fit=crop",values:["Minimal packaging","Seasonal"],moqNeeded:10,moqCurrent:10}],GD=()=>u.jsxs("div",{className:"bg-primary text-primary-foreground py-2.5 px-4 text-center text-sm font-semibold tracking-wide",children:[u.jsx(rL,{className:"inline h-4 w-4 mr-1.5 -mt-0.5"}),"Shop closes ",We.shopCloses," · ",We.daysToGo," days to go"]}),KD=({current:e,needed:t})=>{const n=Math.min(e/t*100,100),r=e>=t,o=n<40;return u.jsxs("div",{className:"mt-2",children:[u.jsx("div",{className:"h-1.5 rounded-full bg-muted overflow-hidden",children:u.jsx("div",{className:`h-full rounded-full transition-all ${r?"bg-primary":o?"bg-destructive/70":"bg-accent"}`,style:{width:`${n}%`}})}),u.jsx("p",{className:`text-[11px] mt-1 ${r?"text-primary":o?"text-destructive/80":"text-accent"}`,children:r?"MOQ reached — this product is confirmed":o?"This product may not go ahead — spread the word":`${t-e} more needed — help this farmer reach their minimum`})]})},vS=({product:e})=>u.jsxs("div",{className:"bg-card rounded-lg border border-border overflow-hidden hover:shadow-md transition-shadow",children:[u.jsx("div",{className:"aspect-[4/3] overflow-hidden",children:u.jsx("img",{src:e.image,alt:e.name,className:"w-full h-full object-cover"})}),u.jsxs("div",{className:"p-4",children:[u.jsx("h3",{className:"font-bold text-sm text-foreground leading-tight",children:e.name}),u.jsx("p",{className:"text-accent text-xs font-semibold mt-1 cursor-pointer hover:underline",children:e.supplier}),u.jsx("p",{className:"text-muted-foreground text-[11px]",children:e.supplierLocation}),u.jsxs("div",{className:"flex items-baseline justify-between mt-2",children:[u.jsxs("span",{className:"font-bold text-foreground",children:["R",e.price]}),u.jsxs("span",{className:"text-accent text-[11px] font-semibold",children:[e.producerPercent,"% to farmer"]})]}),u.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:e.values.map(t=>u.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full border border-muted-teal/30 text-muted-foreground",children:t},t))}),u.jsx(KD,{current:e.moqCurrent,needed:e.moqNeeded}),u.jsxs("div",{className:"flex gap-2 mt-3",children:[u.jsx(Pe,{size:"sm",className:"flex-1 text-xs",children:"Add to order"}),e.moqCurrent<e.moqNeeded&&u.jsx(Pe,{size:"sm",variant:"outline",className:"px-2",children:u.jsx(pL,{className:"h-3.5 w-3.5"})})]})]})]}),$0=({supplier:e})=>{const t=_s.some(n=>n.supplier===e.name&&n.moqCurrent<n.moqNeeded*.4);return u.jsxs("div",{className:`bg-card rounded-lg border overflow-hidden hover:shadow-md transition-shadow ${t?"border-accent":"border-border"}`,children:[u.jsx("div",{className:"aspect-[16/9] overflow-hidden",children:u.jsx("img",{src:e.image,alt:e.name,className:"w-full h-full object-cover"})}),u.jsxs("div",{className:"p-4",children:[u.jsx("h3",{className:"font-bold text-foreground",children:e.name}),u.jsx("p",{className:"text-muted-foreground text-xs",children:e.location}),u.jsx("p",{className:"text-sm text-foreground/80 mt-2 leading-relaxed",children:e.description}),u.jsx("div",{className:"flex flex-wrap gap-1 mt-3",children:e.practices.map(n=>u.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full border border-muted-teal/30 text-muted-foreground",children:n},n))}),u.jsxs("p",{className:"text-[11px] text-muted-foreground mt-2",children:["Buying from ",e.name," since ",e.since]}),t&&u.jsx("p",{className:"text-accent text-[11px] mt-1 font-semibold",children:"Some products from this supplier still need support"}),u.jsxs(Pe,{variant:"link",size:"sm",className:"px-0 mt-2 text-xs text-primary",children:["See all products from ",e.name," →"]})]})]})},qD=Array.from(new Set(_s.flatMap(e=>e.values))).sort(),YD=()=>{const[e,t]=k.useState([]),n=o=>t(s=>s.includes(o)?s.filter(l=>l!==o):[...s,o]),r=e.length===0?_s:_s.filter(o=>e.every(s=>o.values.includes(s)));return u.jsxs("div",{children:[u.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:qD.map(o=>u.jsx("button",{onClick:()=>n(o),className:`text-xs px-3 py-1.5 rounded-full border transition-colors ${e.includes(o)?"bg-primary text-primary-foreground border-primary":"border-border text-foreground
258/70 hover:border-primary"}`,children:o},o))}),u.jsx("p",{className:"text-[11px] text-muted-foreground mb-4 italic",children:"We update these ratings regularly. If you have information that helps us improve, please tell us."}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:r.map(o=>u.jsx(vS,{product:o},o.id))}),r.length===0&&u.jsx("p",{className:"text-center text-muted-foreground py-12",children:"No products match these filters."})]})},QD=Array.from(new Set(_s.map(e=>e.category))),XD=()=>u.jsx("div",{className:"space-y-8",children:QD.map(e=>u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold text-foreground mb-3 text-lg",style:{fontFamily:"Recoleta, serif"},children:e}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:_s.filter(t=>t.category===e).map(t=>u.jsx(vS,{product:t},t.id))})]},e))}),JD=()=>u.jsx("div",{className:"max-w-2xl mx-auto space-y-6",children:u.jsxs("div",{className:"bg-card rounded-lg border border-border p-6",children:[u.jsxs("h3",{className:"text-xl font-bold text-foreground mb-2",style:{fontFamily:"Recoleta, serif"},children:["About ",We.name]}),u.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:[We.host," has been Hosting since ",We.hostSince," · ",We.activeMembers," active Members · Market day every ",We.frequency]}),u.jsxs("p",{className:"text-foreground/80 leading-relaxed text-sm",children:["We started this Club because we wanted to know where our food comes from and who grows it. What began as a small group of neighbours has grown into a community of ",We.activeMembers," ","families who care about eating well and supporting farmers who farm with integrity."]}),u.jsxs("div",{className:"mt-4 p-4 bg-muted/50 rounded-lg",children:[u.jsxs("h4",{className:"font-semibold text-foreground text-sm mb-1 flex items-center gap-2",children:[u.jsx(zp,{className:"h-4 w-4 text-primary"})," Collection details"]}),u.jsx("p",{className:"text-sm text-foreground/80",children:We.address}),u.jsx("p",{className:"text-sm text-foreground/80",children:We.collectTimes}),u.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Bring your own bags. Street parking available."})]})]})}),eF=()=>u.jsxs("div",{className:"max-w-2xl mx-auto space-y-4",children:[[{step:"1",title:"Browse and order",desc:`Place your order before ${We.shopCloses}`},{step:"2",title:"We pack your order with care",desc:"Your Host sources everything fresh from local farmers and packs it for collection."},{step:"3",title:"Collect on market day",desc:`Pick up at ${We.address} between ${We.collectTimes}`}].map(e=>u.jsxs("div",{className:"bg-card rounded-lg border border-border p-5 flex gap-4 items-start",children:[u.jsx("span",{className:"bg-primary text-primary-foreground w-8 h-8 rounded-full flex items-center justify-center text-sm font-bold flex-shrink-0",children:e.step}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-bold text-foreground text-sm",children:e.title}),u.jsx("p",{className:"text-foreground/70 text-sm mt-0.5",children:e.desc})]})]},e.step)),u.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 space-y-2 text-sm text-foreground/70 italic",children:[u.jsx("p",{children:"Sometimes a product doesn't reach its minimum order. If that happens we'll let you know and adjust your invoice."}),u.jsx("p",{children:"We never sell your data. Ever. Your orders, your preferences, your community — none of it is a product."})]})]}),tF=()=>{const[e,t]=k.useState(!0);return e?u.jsxs("div",{className:"bg-accent/10 border-b border-accent/20 py-2.5 px-4 text-center text-sm text-foreground/80",children:["Welcome to ",We.name,". This is a community Food Club Hosted by ",We.host," in"," ",We.suburb,"."," ",u.jsx("a",{href:"/why-food-clubs",className:"text-primary underline",children:"What is a Food Club?"}),u.jsx("button",{onClick:()=>t(!1),className:"ml-3 text-muted-foreground hover:text-foreground",children:"✕"})]}):null},nF=()=>{const[e,t]=k.useState(0);return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsxs("header",{className:"sticky top-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:[u.jsxs("div",{className:"container flex items-center justify-between h-14",children:[u.jsx("a",{href:"/",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground text-xs",children:u.jsx("img",{src:Ac,alt:"Food Club Hub",className:"h-6"})}),u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"text-lg font-bold text-foreground leading-tight",style:{fontFamily:"Recoleta, serif"},children:We.name}),u.jsx("p",{className:"text-[11px] text-muted-foreground",children:We.suburb})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("button",{className:"relative",children:[u.jsx(gL,{className:"h-5 w-5 text-foreground
258/70"}),e>0&&u.jsx("span",{className:"absolute -top-1 -right-1 bg-accent text-white text-[10px] w-4 h-4 rounded-full flex items-center justify-center",children:e})]}),u.jsx("button",{className:"text-sm text-foreground/70 hover:text-foreground hidden sm:block",children:u.jsx(bL,{className:"h-5 w-5"})})]})]}),u.jsxs("p",{className:"text-center text-xs text-muted-foreground pb-1.5",children:["Hosted by ",We.host," · ",We.suburb," · Market day ",We.marketDay]})]}),u.jsx(GD,{}),u.jsx(tF,{}),u.jsx("div",{className:"container py-6",children:u.jsxs(H0,{defaultValue:"shop",className:"w-full",children:[u.jsxs(Lm,{className:"w-full justify-start bg-muted/50 mb-6",children:[u.jsx(Ur,{value:"shop",children:"Shop"}),u.jsx(Ur,{value:"suppliers",children:"Our Suppliers"}),u.jsx(Ur,{value:"about",children:"About this Club"}),u.jsx(Ur,{value:"how",children:"How It Works"})]}),u.jsx(Zr,{value:"shop",children:u.jsxs(H0,{defaultValue:"category",children:[u.jsxs(Lm,{className:"mb-4 bg-transparent border border-border",children:[u.jsx(Ur,{value:"category",className:"text-xs",children:"By Category"}),u.jsx(Ur,{value:"supplier",className:"text-xs",children:"By Supplier"}),u.jsx(Ur,{value:"values",className:"text-xs",children:"By Values"})]}),u.jsx(Zr,{value:"category",children:u.jsx(XD,{})}),u.jsx(Zr,{value:"supplier",children:u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:W0.map(n=>u.jsx($0,{supplier:n},n.id))})}),u.jsx(Zr,{value:"values",children:u.jsx(YD,{})})]})}),u.jsx(Zr,{value:"suppliers",children:u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:W0.map(n=>u.jsx($0,{supplier:n},n.id))})}),u.jsx(Zr,{value:"about",children:u.jsx(JD,{})}),u.jsx(Zr,{value:"how",children:u.jsx(eF,{})})]})}),u.jsx("footer",{className:"bg-primary text-primary-foreground py-8",children:u.jsxs("div",{className:"container text-center space-y-3",children:[u.jsx("img",{src:Ac,alt:"Food Club Hub",className:"h-6 mx-auto brightness-0 invert"}),u.jsxs("p",{className:"text-sm",children:["Hosted by ",We.host," in ",We.suburb]}),u.jsx("p",{className:"text-accent font-semibold",style:{fontFamily:"Recoleta, serif"},children:"Small act. Big change."}),u.jsx("p",{className:"text-[11px] text-primary-foreground/60",children:"We never sell your data. Ever."})]})})]})},be=({children:e,first:t})=>u.jsxs("div",{className:t?"":"mt-14",children:[u.jsx("span",{className:"text-sm text-gold block mb-2.5",children:e}
258),u.jsx("hr",{className:"border-t border-foreground/15 mb-7"})]}),xS=({children:e})=>u.jsx("p",{className:"font-display italic text-2xl leading-relaxed text-gold text-center py-12 max-w-[600px] mx-auto",children:e}),rF=({num:e,title:t,desc:n})=>u.jsxs("div",{className:"bg-primary -mx-6 md:-mx-12 px-6 md:px-12 py-10 grid grid-cols-1 md:grid-cols-[auto_1fr] gap-8 items-center my-12",children:[u.jsx("div",{className:"font-display text-7xl font-bold text-gold leading-none",children:e}),u.jsxs("div",{children:[u.jsx("strong",{className:"text-primary-foreground text-lg font-semibold block mb-1.5",children:t}),u.jsx("p",{className:"text-primary-foreground/65 text-sm leading-relaxed",children:n})]})]}),iF=({items:e})=>u.jsx("div",{className:"bg-primary -mx-6 md:-mx-12 grid grid-cols-3 border-t border-primary-foreground/10 mb-12",children:e.map((t,n)=>u.jsxs("div",{className:`px-8 py-7 text-center ${n<e.length-1?"border-r border-primary-foreground/10":""}`,children:[u.jsx("div",{className:"font-display text-4xl font-bold text-gold",children:t.num}),u.jsx("div",{className:"text-xs text-primary-foreground/65 mt-1",children:t.label})]},n))}),so=({cols:e=2,children:t})=>u.jsx("div",{className:`grid gap-4 my-6 ${e===3?"md:grid-cols-3":"md:grid-cols-2"} grid-cols-1`,children:t}),Ne=({icon:e,title:t,desc:n})=>u.jsxs("div",{className:"bg-card rounded-2xl p-7 border border-foreground
258/15",children:[u.jsx("div",{className:"w-12 h-12 bg-background rounded-full flex items-center justify-center text-xl mb-4",children:e}),u.jsx("strong",{className:"text-sm font-semibold block mb-2 text-foreground",children:t}),u.jsx("p",{className:"text-[13.5px] text-muted-foreground leading-relaxed",children:n})]}),Rc=({items:e})=>{const[t,n]=k.useState(new Array(e.length).fill(!1)),r=o=>n(s=>s.map((l,d)=>d===o?!l:l));return u.jsx("ul",{className:"my-6",children:e.map((o,s)=>u.jsxs("li",{className:`flex items-start gap-3.5 py-3.5 border-t border-foreground/15 ${s===e.length-1?"border-b":""}`,children:[u.jsx("button",{onClick:()=>r(s),className:`w-5 h-5 rounded flex-shrink-0 mt-0.5 flex items-center justify-center border-[1.5px] transition-all ${t[s]?"bg-forest-green border-forest-green text-white":"bg-card border-foreground/15"}`,children:t[s]&&u.jsx("span",{className:"text-[11px] font-bold",children:"✓"})}),u.jsx("span",{className:`text-[15px] leading-relaxed ${t[s]?"line-through opacity-40":""}`,children:o})]},s))})},wS=({items:e})=>u.jsx("ul",{className:"my-6",children:e.map((t,n)=>u.jsxs("li",{className:`flex items-start gap-3.5 py-3.5 border-t border-foreground
258/15 text-[15px] leading-relaxed ${n===e.length-1?"border-b":""}`,children:[u.jsx("span",{className:"text-foreground/40 flex-shrink-0 mt-0.5",children:"•"}),t]},n))}),oF=({items:e})=>u.jsx("ul",{className:"my-5",children:e.map((t,n)=>u.jsxs("li",{className:`flex gap-5 py-5 border-t border-foreground/15 items-start ${n===e.length-1?"border-b":""}`,children:[u.jsx("div",{className:"w-7 h-7 bg-primary rounded-full flex items-center justify-center text-xs font-bold text-primary-foreground flex-shrink-0 mt-0.5",children:n+1}),u.jsxs("div",{children:[u.jsx("strong",{className:"text-[15px] font-semibold block mb-1",children:t.title}),u.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t.desc})]})]},n))}),vl=({label:e,items:t})=>u.jsxs("div",{className:"bg-primary rounded-2xl px-6 md:px-10 py-9 mt-14",children:[u.jsx("span",{className:"text-sm text-gold block mb-2",children:e}),u.jsx("hr",{className:"border-t border-primary-foreground/12 mb-6"}),t.map((n,r)=>u.jsxs("div",{className:`flex gap-5 py-4.5 items-start ${r>0?"border-t border-primary-foreground/8":""}`,children:[u.jsx("div",{className:"font-display text-4xl font-bold text-primary-foreground/10 flex-shrink-0 w-11 leading-none",children:r+1}),u.jsxs("div",{children:[u.jsx("strong",{className:"text-primary-foreground text-[15px] font-semibold block mb-1",children:n.title}),u.jsx("p",{className:"text-primary-foreground/58 text-sm leading-relaxed",children:n.desc})]})]},r))]}),pn=({label:e,children:t,variant:n="green"})=>u.jsxs("div",{className:`rounded-xl px-6 py-5 my-6 border-l-[3px] ${n==="gold"?"border-gold bg-gold/[0.06]":"border-forest-green bg-forest-green/[0.06]"}`,children:[u.jsx("span",{className:`text-[11px] font-semibold tracking-wider block mb-2 ${n==="gold"?"text-gold":"text-forest-green"}`,children:e}),u.jsx("div",{className:"text-sm leading-relaxed [&>p]:mb-1.5 [&>p:last-child]:mb-0",children:t})]}),ts=({quote:e,cite:t})=>u.jsxs("div",{className:"border-l-[3px] border-forest-green pl-6 py-1 my-7",children:[u.jsxs("blockquote",{className:"font-display italic text-[17px] leading-relaxed text-foreground mb-2.5",children:['"',e,'"']}),u.jsx("cite",{className:"text-[11px] font-semibold text-gold not-italic tracking-wider",children:t})]}
258),sF={teal:"bg-foreground/[0.08] text-foreground",gold:"bg-gold/10 text-accent-foreground",forest:"bg-forest-green/10 text-forest-green",muted:"bg-muted text-muted-foreground"},aF=({cols:e})=>u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-2 my-6",children:e.map((t,n)=>u.jsxs("div",{className:"bg-card rounded-xl border border-foreground/15 px-3 py-4",children:[u.jsx("div",{className:"text-[10px] font-semibold tracking-widest text-muted-foreground uppercase mb-3",children:t.day}),t.items.map((r,o)=>u.jsx("div",{className:`text-[11.5px] leading-snug rounded-md px-2 py-1.5 mb-1.5 ${sF[r.color]}`,children:r.label},o)),u.jsx("div",{className:"mt-2.5 pt-2 border-t border-foreground/15 text-[11px] text-muted-foreground",children:t.time})]},n))}),lF=()=>u.jsxs("div",{className:"bg-card rounded-2xl border border-foreground/15 px-8 py-9 my-6",children:[u.jsx("div",{className:"flex flex-col md:flex-row items-center gap-2",children:[{label:"Farmer sets",val:"Base price",desc:"Their price, their logistics included",bg:"bg-foreground
258/[0.06]"},{label:"Hub adds",val:"5%",desc:"Platform fee — no sale, no fee",bg:"bg-forest-green/[0.07]",valColor:"text-forest-green"},{label:"You add",val:"10–15%",desc:"Your host fee — you decide",bg:"bg-gold/[0.07]",valColor:"text-gold"},{label:"Member pays",val:"Total",desc:"Producer % shown on every invoice",bg:"bg-muted"}].map((e,t,n)=>u.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto md:flex-1",children:[u.jsxs("div",{className:`${e.bg} rounded-xl px-3 py-5 text-center flex-1`,children:[u.jsx("div",{className:"text-[10px] font-semibold tracking-widest text-muted-foreground uppercase mb-1.5",children:e.label}),u.jsx("div",{className:`font-display text-2xl font-bold ${e.valColor||"text-foreground"}`,children:e.val}),u.jsx("div",{className:"text-[11px] text-muted-foreground mt-1 leading-snug",children:e.desc})]}),t<n.length-1&&u.jsx("span",{className:"text-foreground/15 text-xl flex-shrink-0 hidden md:block",children:t<2?"+":"="})]},t))}),u.jsx("p",{className:"text-[13px] text-muted-foreground mt-4 border-t border-foreground
258/15 pt-4",children:"Most Hosts also charge a market day fee of R20–R50 per order to cover electricity, equipment and help on the day. With 30 Members at R50, that's R1,500 per market day."})]}),uF=({items:e})=>u.jsx("div",{className:"my-6",children:e.map((t,n)=>u.jsxs("div",{className:`py-3 border-t border-foreground/15 ${n===e.length-1?"border-b":""}`,children:[u.jsxs("div",{className:"flex justify-between items-baseline mb-1.5",children:[u.jsxs("span",{className:"text-[15px] font-semibold",children:[t.amount," ",u.jsxs("span",{className:"font-light text-muted-foreground text-[13px] ml-1.5",children:["→ ",t.label]})]}),u.jsx("span",{className:"text-[13px] text-muted-foreground",children:t.pct})]}),u.jsx("div",{className:"h-[5px] bg-muted rounded-sm",children:u.jsx("div",{className:`h-full rounded-sm ${t.color}`,style:{width:t.width}})})]},n))}),cF=({items:e})=>u.jsx("div",{className:"grid md:grid-cols-2 gap-2 my-4",children:e.map((t,n)=>u.jsxs("div",{className:"flex items-center gap-3.5 bg-card border border-foreground
258/15 rounded-lg px-4 py-3 text-[13.5px]",children:[u.jsx("span",{className:"font-display text-xl font-bold text-muted/80 min-w-[28px] leading-none",children:n+1}),t]},n))}),dF=({items:e})=>u.jsx("div",{className:"grid md:grid-cols-3 gap-3 my-5",children:e.map((t,n)=>u.jsxs("div",{className:"bg-card border border-foreground/15 rounded-xl px-5 py-6 text-center",children:[u.jsx("div",{className:"font-display text-4xl font-bold text-foreground mb-1",children:t.deg}),u.jsx("div",{className:"text-xs font-semibold text-foreground mb-2",children:t.label}),u.jsx("div",{className:"text-xs text-muted-foreground leading-snug",children:t.desc})]},n))}),Lo=({children:e})=>u.jsx("div",{className:"bg-[#DDD9CE] rounded-xl p-5 my-5",children:e}),Qr=({host:e,children:t,time:n})=>u.jsxs("div",{className:`max-w-[82%] rounded-xl px-4 py-3 text-[13.5px] leading-relaxed my-1.5 text-foreground ${e?"bg-[#D5EDD0] ml-auto rounded-tr-sm":"bg-card rounded-tl-sm"}`,children:[t,n&&u.jsx("div",{className:"text-[10px] text-[#999] text-right mt-1",children:n})]}),Kh=({children:e})=>u.jsx("div",{className:"text-center text-[11px] text-[#888] bg-white/60 rounded-lg px-3 py-0.5 mx-auto my-2.5 w-fit",children:e}),hF=({message:e,options:t})=>
258u.jsxs("div",{className:"bg-card border border-foreground/15 rounded-xl p-6 my-4",children:[u.jsx("p",{className:"text-sm mb-4",children:e}),t.map((n,r)=>u.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2 bg-background rounded-lg mb-1.5 text-[13px]",children:[n.emoji,u.jsx("div",{className:"h-1 bg-muted rounded flex-1",children:u.jsx("div",{className:"h-full bg-primary rounded",style:{width:`${n.fill}%`}})}),u.jsx("span",{className:"text-muted-foreground text-xs",children:n.label})]},r))]}),ho=({label:e,title:t,lead:n})=>u.jsxs(le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-3xl mx-auto px-6 md:px-12 pt-20 pb-16",children:[u.jsx("span",{className:"text-sm text-gold block mb-5",children:e}),u.jsx("h1",{className:"font-display text-4xl md:text-[52px] font-bold leading-[1.1] text-foreground tracking-tight mb-5 max-w-[580px]",children:t}),u.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed max-w-[560px] font-light",children:n})]}),fo=({children:e})=>u.jsx("div",{className:"max-w-3xl mx-auto px-6 md:px-12 pb-24",children:e}),fF=({children:e,sub:t})=>u.jsxs("div",{className:"text-center py-14 max-w-[540px] mx-auto",children:[u.jsx("div",{className:"font-display italic text-xl leading-relaxed text-foreground mb-4",children:e}),t&&u.jsx("span",{className:"text-[13px] text-muted-foreground font-light",children:t})]}),mF=()=>u.jsxs(u.Fragment,{children:[u.jsx(ho,{label:"Welcome",title:"Before you begin",lead:"Running a Food Club is one of the most meaningful things you can do for your community, your local farmers, and your family's table. Let's make sure you're set up for success from day one."}),u.jsxs(fo,{children:[u.jsx(rF,{num:"86c",title:"In every rand your Members spend goes directly to the farmer.",desc:"Compare this to supermarkets, where farmers may receive as little as 37 cents in the rand. This single fact is the heart of why Food Clubs exist — and the first thing worth sharing with anyone who asks what you're doing."}),u.jsx(be,{first:!0,children:"What is a Food Club?"}),u.jsx("p",{className:"mb-4 font-light",children:"A Food Club is a community buying group. You gather a group of people in your neighbourhood, they browse and order from a curated selection of local regenerative farmers and producers, and once or twice a month you receive all the orders at your home or space and people come to collect."}),u.jsx("p",{className:"mb-4 font-light",children:"You're not a shop. You're not a delivery service. You're a connector — between people who care about where their food comes from, and the farmers who grow it with integrity."}),u.jsx(pn,{label:"A good thing to know upfront",children:u.jsx("p",{children:"The first market day will feel like a lot. The second will be better. By the third, things will start to click. Every Host you admire was once sending their first message into a silent WhatsApp group. Keep going."})}),u.jsx(be,{children:"Readiness checklist"}),u.jsx("p",{className:"mb-4 font-light",children:"Work through this honestly. We'd rather you know 
258what's involved now than be surprised later."}),u.jsx(Rc,{items:[u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"Time"})," — Running a Club twice monthly takes roughly 8–15 hours per cycle when starting out. It gets faster as you find your rhythm."]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"Space"})," — Somewhere to receive, sort and distribute orders. Your garage, kitchen, or home is perfect. No fancy setup needed."]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"A fridge and/or freezer"})," — For meat, dairy and chilled goods. A second-hand chest freezer is ideal — often under R1,000 on Facebook Marketplace."]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"Digital scales (up to 40kg)"})," — For weighing variable produce like whole birds and fresh veg."]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"A cooler box or insulated bags"})," — For keeping things cold during collection. Bubbles Plastics and HQ Ice have good options."]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"A dedicated Club email"})," — Something like [email protected]. Professional and keeps your personal inbox clear."]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"WhatsApp Business"})," — Your main communication tool. Free to download. The Quick Replies feature alone will save you hours each cycle."]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"A community to tap into"})," — Neighbours, school parents, a street WhatsApp group. Starting with 10–15 people is completely fine."]})]}),u.jsx(be,{children:"Time required"}),u.jsx("p",{className:"mb-4 font-light",children:"A realistic example for a Host running twice a month with 20–30 Members."}),u.jsx(aF,{cols:[{day:"Sat–Mon",items:[{label:"Open shop & member comms",color:"teal"},{label:"Reach out to new suppliers",color:"teal"}],time:"30 min – 4 hrs"},{day:"Tuesday",items:[{label:"Reminder + supplier story",color:"teal"},{label:"Focus point for members",color:"gold"}],time:"30 min – 2 hrs"},{day:"Wednesday",items:[{label:"Close orders, place with suppliers",color:"gold"},{label:"Collection schedule comms",color:"teal"}],time:"2 – 4 hrs"},{day:"Thursday",items:[{label:"Receive goods, check invoices",color:"forest"},{label:"Market Day sorting & packing",color:"forest"}],time:"All day"},{day:"Friday",items:[{label:"Pay suppliers within 7 days",color:"muted"},{label:"Reconcile member payments",color:"muted"}],time:"2 – 4 hrs"}]}),u.jsx(be,{children:"How pricing works"}),u.jsx(lF,{}),u.jsx(be,{children:"Where does the money actually go?"}),u.jsx("p",{className:"mb-4 font-light",children:"Based on real network data from 1 April 2026. For every R100 spent through Food Club Hub:"}),u.jsx(uF,{items:[{amount:"R86.64",label:"Supplier (farmer + internal logistics)",pct:"86.64%",width:"86.64%",color:"bg-primary"},{amount:"R10.65",label:"Host (running the Club & market day fee)",pct:"10.65%",width:"50%",color:"bg-forest-green"},{amount:"R2.55",label:"Food Club Hub (platform + network + support)",pct:"2.55%",width:"12%",color:"bg-gold"},{amount:"R2.15",label:"External logistics & packers",pct:"2.15%",width:"10%",color:"bg-muted"}]}),u.jsx(pn,{label:"A first for South Africa",variant:"gold",children:u.jsx("p",{children:"Every Food Club Hub invoice shows Members the exact percentage of their spend that went to the producer. No other food retailer in South Africa does this. It's not just transparency — it's a completely new relationship between eater and farmer."})}),u.jsx(vl,{label:"Before you move on",items:[{title:"Watch the 1-minute intro video",desc:"Get a feel for what Food Clubs look and feel like before you dive into the detail."},{title:"Log into your shop",desc:"You should have received an invite link by email or WhatsApp. Click it, set your password, and have a look around. Don't worry about doing anything yet."},{title:"Create your Club email address",desc:"E.g. [email protected] — something simple and local. You'll use this for all Club 
258communications."}]})]})]}),pF=()=>u.jsxs(u.Fragment,{children:[u.jsx(ho,{label:"Day 1",title:"Values & your why",lead:"People don't join a Food Club because of a website. They join because of you — your story, your conviction, your care. Today is about getting clear on that."}),u.jsxs(fo,{children:[u.jsx(be,{first:!0,children:"Why this matters more than you think"}),u.jsx("p",{className:"mb-4 font-light",children:`Food Clubs work because they're rooted in real relationships. People trust you before they trust the Club. Your "why" is your most powerful tool — it's what you'll say when a neighbour asks what you're doing, what you'll write in your first WhatsApp message, and what will keep you going on a chaotic market day when everything arrives at once.`}),u.jsx(xS,{children:'"When I started a Food Club, I immediately felt like I was part of a fairer food system."'}),u.jsx(be,{children:"Our shared values"}),u.jsxs(so,{cols:3,children:[u.jsx(Ne,{icon:"🤝",title:"Collaboration & connection",desc:"Strengthening local ecosystems together while being empowered to decide for our own communities."}),u.jsx(Ne,{icon:"🌱",title:"Restoration",desc:"Supporting farming that regenerates soil, increases biodiversity, and restores carbon balance — actively healing, not just less bad."}),u.jsx(Ne,{icon:"⚖️",title:"Fairness to producers",desc:"Farmers set their own prices. We pay them promptly. We don't negotiate them down. This is what fair trade actually looks like."}),u.jsx(Ne,{icon:"👁️",title:"Transparency",desc:"Sharing what we know. Being honest about what we don't. No greenwashing. No big claims we can't back up."}),u.jsx(Ne,{icon:"🧑‍🌾",title:"Knowing our farmers",desc:"The stories behind the food matter. Who grew this? Where? How? These are the questions that change how we eat."}),u.jsx(Ne,{icon:"🗺️",title:"The journey",desc:"We don't have all the answers. This is complex, messy, and beautiful. A commitment to stay curious and keep improving."})]}),u.jsx(be,{children:"Write your own why"}),u.jsx("p",{className:"mb-4 font-light",children:"Before anything else today, take 10 minutes and write down your personal reason for Hosting. Don't overthink it — you'll refine it later. Then shape it into two versions:"}),u.jsxs(so,{children:[u.jsx(Ne,{icon:"",title:"Short version (2 lines)",desc:'For WhatsApp, flyers and quick conversations. Something like: "I started [Club Name] because I wanted my family to know our farmers by name — and I wanted my neighbours to have the same."'}),u.jsx(Ne,{icon:"",title:"Longer version (a paragraph)",desc:"For Facebook posts, your welcome message, a community newsletter. This is where you can be more personal, specific, and honest about what drives you."})]}),u.jsxs(pn,{label:"Writing prompts",variant:"gold",children:[u.jsx("p",{children:"What made you first interested in where your food comes from?"}),u.jsx("p",{children:"What do you want your family to eat, and why is it hard to get that through normal channels?"}),u.jsx("p",{children:"What kind of community do you want to build around food?"}),u.jsx("p",{children:'What does "voting with your fork" mean to you personally?'})]}),u.jsx(be,{children:"Why Hosts love it — in their words"}),u.jsx(ts,{quote:"I love getting to influence my community and help them make good choices. It feels wonderful empowering people towards justice, health and community. And giving them amazing value!",cite:"Alex, Food Club Host"}),u.jsx(ts,{quote:"My son is autistic and we've made the choice to heal his body with food. My reasoning for starting my club was to know exactly where his food was coming from. My members are pretty flippen cool and I've made some really awesome friends along the way.",cite:"Mieke, Fresnaye Food Club"}),u.jsx(ts,{quote:"I've always been stunned by the small amount farmers receive compared to supermarket prices. I wanted to find a way to cut out the middleman — that benefits both buyer and seller. I'm meeting so many amazing producers and consumers. I love connecting the two.",cite:"Wilke, Food Club Host"}),u.jsx(be,{children:"Setting up your shop front"}),u.jsx(Rc,{items:[u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"Personalise your front page"})," — Log in and use Canva (linked from your shop admin) to add your Club name, a photo, and a short welcome. It doesn't need to be perfect — it needs to feel like you."]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"Add your Club and market day details"})," — Under Club Admin, fill in your details and bank account for invoicing. Members will see this on their invoices."]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"Draft your Terms & Conditions"})," — Use our template as a starting point. Members click through the full T&Cs when ordering, but your version should highlight things specific to how you run your Club: weighted goods, payment timing, your market day fee."]})]}),u.jsx(vl,{label:"Today's tasks",items:[{title:"Write your why (both versions)",desc:"Short for WhatsApp. Longer for your welcome message. Keep it honest — people can tell the difference."},{title:"Set up your shop front page",desc:"Log in, add your Club name and a short welcome. Watch the short how-to video in your Host handbook if you need it."},{title:"Draft your T&Cs",desc:"Use the template as a base. Share it with Jess and Jaime in your WhatsApp group when done — they'll give you feedback."},{title:'Send a "coming soon" message',desc:"To 5–10 people you already know. You don't need suppliers confirmed yet — just let your community know something is coming."}]})]})]}),gF=()=>
258u.jsxs(u.Fragment,{children:[u.jsx(ho,{label:"Day 2",title:"Choosing your food & suppliers",lead:"This is where the fun really starts. You get to curate what your community eats — choosing farmers and producers you trust, whose stories you believe in."}),u.jsxs(fo,{children:[u.jsx(be,{first:!0,children:"Start small, grow slowly"}),u.jsx("p",{className:"mb-4 font-light",children:"The most common mistake new Hosts make is trying to offer everything at once. A shop with 200 products on day one is overwhelming — for you and for your Members. The best Clubs in the network started with 5–8 core suppliers and grew steadily from there."}),u.jsx("p",{className:"mb-4 font-light",children:"The typical established Club has 28–30 suppliers and 200–220 products. Almost all of them started with fewer than 10."}),u.jsx(be,{children:"Plan your first market day date first"}),u.jsx(Rc,{items:[u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"Target a date 3–4 weeks away"})," — gives you time to confirm suppliers and tell your community about it."]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"Ask each supplier their lead time"})," — how much notice do they need? Most need 3–7 days."]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"Keep your order window to 4–5 days maximum"})," — 90% of Members order the night before closing anyway. Longer windows create more admin and stock issues."]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"Consider launching after payday"})," — the first week of the month often sees higher order values."]})]}),u.jsx(be,{children:"What actually sells"}),u.jsx("p",{className:"mb-4 font-light",children:"Here's what moves through the network right now. Understanding this helps you start with suppliers that will actually generate orders and keep your community engaged from day one."}),u.jsx(cF,{items:["Regen farmed chicken breast fillets","Regen farmed chicken braai packs","Grass-fed beef mince (500g)","Regen farmed whole chicken","Eggs (regen farmed)","Pure farm butter","Chicken sosaties","Biodegradable laundry powder","Organic corn chips","XL eggs"]}),u.jsx(pn,{label:"What this means for your first shop",children:u.jsx("p",{children:"Regen chicken and grass-fed mince are the backbone of almost every Club. If you can secure one good chicken supplier and one grass-fed meat supplier, you're off to a very strong start. Eggs and butter close the deal."})}),u.jsx(be,{children:"The three types of suppliers"}),u.jsxs(so,{cols:3,children:[u.jsx(Ne,{icon:"🌐",title:"Network suppliers",desc:"Already on the system, vetted by the FCH team. Delivery routes established. Start here — they're ready for you immediately."}),u.jsx(Ne,{icon:"🏠",title:"Private suppliers",desc:"Local producers you find yourself — a baker down the road, a neighbour's veg garden. You add them, you manage them, you control pricing."}),u.jsx(Ne,{icon:"🤝",title:"Collaborative suppliers",desc:"Shared with other nearby Hosts to meet minimum order quantities and split delivery costs. Great for smaller or newer Clubs."})]}),u.jsx(pn,{label:"Use the Demo Club",variant:"gold",children:u.jsxs("p",{children:["Visit ",u.jsx("strong",{children:"democlub.foodhub.org.za/Shop"})," to browse every supplier on the system. If you spot one already stocking a nearby Club, there's likely a delivery route heading your way — contact [email protected] to get access."]})}),u.jsx(be,{children:"Vetting suppliers you add yourself"}),u.jsx("p",{className:"mb-4 font-light",children:"Transparency is the bedrock of Food Clubs. When Members ask questions — and they will — be ready to answer honestly."}),u.jsx(Rc,{items:[u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"How do they farm?"})," Pasture-raised, free-range, chemical-free — what exactly do these terms mean for this specific producer?"]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"What are the ingredients?"})," For processed goods, have you read the full label?"]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"What is the minimum order?"})," Can your Club size realistically meet it?"]}),u.jsx(u.Fragment,{children:u.jsx("strong",{className:"font-semibold",children:"What is the delivery fee, and what day do they deliver to your area?"})}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"What lead time do they need?"})," How many days before market day must you place the order?"]}),u.jsxs(u.Fragment,{children:[u.jsx("strong",{className:"font-semibold",children:"Are they comfortable with 7-day payment terms?"})," This is standard in the network — we pay farmers within 7 days of delivery."]})]}
258),u.jsx(vl,{label:"Today's tasks",items:[{title:"Choose your first market day date",desc:"Aim for 3–4 weeks from now. Put it in your calendar as if it's a work deadline — because it is."},{title:'Set up a "Dummy Order" window',desc:"Test the system before your first real order. Watch the 1-min how-to video in your Host handbook."},{title:"Contact your first 5–10 suppliers",desc:"Use the spreadsheet in your Host Handbook. Ask the six vetting questions above. Start with network suppliers — they're already set up and ready."},{title:'Mark your "New & Noteworthy" products',desc:"Once products are added, star the ones you want to feature. They appear on your shop's front page and help new Members know where to start."}]})]})]}),yF=()=>u.jsxs(u.Fragment,{children:[u.jsx(ho,{label:"Day 3",title:"Your space & market day",lead:"Market day is your magic — the moment when everything comes together. Setting up your space thoughtfully makes it feel like a community gathering, not a logistics operation."}),u.jsxs(fo,{children:[u.jsx(be,{first:!0,children:"Your space doesn't need to be perfect"}),u.jsx("p",{className:"mb-4 font-light",children:"A kitchen bench. A garage. A back patio. A small community hall. Hosts run successful Food Clubs out of all of these. What matters isn't the space itself — it's how you organise the flow through it."}),u.jsx(pn,{label:"Host tip from the network",children:u.jsx("p",{children:"Arrange tables in alphabetical supplier order — it makes finding items far faster when you're moving between the packing list and the shelves. Add a small handwritten label on each section."})}),u.jsxs(so,{children:[u.jsx(Ne,{icon:"📦",title:"Receiving deliveries",desc:"Weigh variable items immediately when goods arrive — whole birds, steaks, fresh produce. Don't leave it for market day. Log invoice totals in the supplier Notes field in your admin so you're not hunting for invoices later."}),u.jsx(Ne,{icon:"🗂️",title:"Sorting and packing",desc:'Use a highlighter to mark "similar but different" items on packing lists (e.g. GF oats vs regular oats). Pre-pack Members with big freezer orders the night before — collection goes much faster.'}),u.jsx(Ne,{icon:"🧺",title:"Collection setup",desc:"Separate any overflow stock to a visible browsing table. People love shopping with their eyes — you'll often sell extra items on the day to people who didn't order them."}),u.jsx(Ne,{icon:"🕐",title:"Collection scheduling",desc:"Under 15 Members? Open collection is fine. Over 15? Use Gmail Appointment Schedules or a simple Google Sheet for timed slots. It prevents a rush and makes Members feel organised."})]}),u.jsx(be,{children:"The cold chain — non-negotiable"}),u.jsx("p",{className:"mb-4 font-light",children:"If the cold chain breaks down, food becomes unsafe — and your Members' trust goes with it. Here's the simple rule:"}),u.jsx(dF,{items:[{deg:"≤4°C",label:"Meat, poultry & dairy",desc:"Above this, bacteria like Salmonella multiply fast. Use a thermometer every time."},{deg:"≤5°C",label:"Other chilled foods",desc:"Dairy products, prepared foods, yoghurt, soft cheese."},{deg:"−18°C",label:"Frozen goods",desc:"Required by law. A chest freezer with a dial is ideal — it can double as a fridge."}]}),u.jsxs(pn,{label:"Keeping things cold during collection",variant:"gold",children:[u.jsxs("p",{children:[u.jsx("strong",{children:"Dry ice"})," — 12–24 hours of safe cooling (dryiceafrica.co.za). Best for long collection windows."]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Gel packs or frozen bottles"})," — 6–12 hours depending on box quality. More affordable."]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Ice cubes"})," — 5–10 hours. Wrap in a cloth to protect produce from freezer burn."]}),u.jsx("p",{children:"A DEFY chest freezer with a dial can switch between fridge and freezer mode — very versatile. Tafelberg Furnishers offer 12–24 month credit terms if the upfront cost is a barrier."})]}),u.jsx(be,{children:"Certificate of Acceptability"}),u.jsx("p",{className:"mb-4 font-light",children:"To legally handle food as a 
258small business in South Africa, you need a Certificate of Acceptability (CoA). It's quick, free, and straightforward. An environmental health inspector checks that food is stored off the floor, fridges are at the right temperature, and you have clean water for hand-washing."}),u.jsx(wS,{items:["Submit the S638 form to your nearest Environmental Health Office","Cape Town residents can submit online","Johannesburg: 011 375 5555 · Pretoria: 012 358 4656 · Durban: contact your local municipality"]}),u.jsx(xS,{children:'"This is community buying, not Woolworths."'}),u.jsx("p",{className:"text-center text-muted-foreground text-sm -mt-2.5 mb-6 font-light",children:"Say this to your Members early and often — and mean it warmly."}),u.jsx(ts,{quote:"It's the only shop I feel I can trust that is doing the best they possibly can to get me and my family the best food available. I trust my Host implicitly because she is honest when things don't pan out.",cite:"Claire, Food Club Member"}),u.jsx(vl,{label:"Today's tasks",items:[{title:"Plan your physical space",desc:"Walk through with fresh eyes. Where will fridges go? Where will dry goods be sorted? How will Members move through? Sketch it out on paper."},{title:"Plan your collection flow",desc:"Open collection or timed slots? If you expect more than 15 Members, set up Gmail Appointment Schedules now — it saves chaos later."},{title:"Plan your payment flow",desc:"Most Clubs ask for EFT within 7 days of delivery, or on collection day. Decide which works for you and include it in your T&Cs."},{title:"Apply for your Certificate of Acceptability",desc:"Submit the S638 form to your nearest Environmental Health Office. Cape Town residents can do this online."}]})]})]}),vF=()=>u.jsxs(u.Fragment,{children:[u.jsx(ho,{label:"Day 4",title:"Finding your Members",lead:"People don't join a Food Club — they join you. Your job is to make it easy for the right people to find you, and easy for them to say yes."}),u.jsxs(fo,{children:[u.jsx(be,{first:!0,children:"The mindset shift"}),u.jsx("p",{className:"mb-4 font-light",children:"You are not marketing a product. You are inviting people into a community. Lead with what you care about, not what you're selling. The Members who join for the right reasons will stay — and bring their friends."}),u.jsx(be,{children:"Step 1 — Cast a wide net"}),u.jsx(oF,{items:[{title:"Share a personal post in community spaces",desc:"WhatsApp community groups, local Facebook groups, your personal Instagram. Include a photo of yourself or your family — people respond to faces, not logos. Mention your first market day date to create urgency."},{title:"Make joining easy",desc:"Shorten your sign-up link with bit.ly. Include your T&Cs. List three simple steps: sign up → join WhatsApp group → place an order. The fewer decisions people need to make, the better."},{title:"Capture people in both places",desc:"Not everyone who signs up on the website will join your WhatsApp group, and vice versa. Cross-check your Member list against your group regularly and personally invite anyone missing."},{title:"Welcome new people personally",desc:"A WhatsApp voice note is magical here. Record a quick 30-second welcome — tell them you're glad they're here, when the first order opens, and that they can ask you anything. Simple, warm, and almost no one else does it."}]}),u.jsx(be,{children:"Step 2 — Convert lurkers to buyers"}),u.jsxs(so,{children:[u.jsx(Ne,{icon:"📖",title:"Share supplier stories",desc:"A 2-minute story about a farmer does more for conversions than any discount. People want to care about where their food comes from — give them a reason to."}),u.jsx(Ne,{icon:"📸",title:"Show your own market day",desc:`Even your family's order on the kitchen bench — photograph it and share it. "Another beautiful market day!" with a picture of real food does remarkable things.`}),u.jsx(Ne,{icon:"🗳️",title:"Use WhatsApp polls",desc:`"Which of these would you love to see in the shop?" Let people have a say before they even order — they'll feel invested in the Club's success.`}),u.jsx(Ne,{icon:"💬",title:"Ask why people haven't ordered",desc:`A kind, curious message to non-buyers goes a long way. "Is there anything stopping you? I'd love to help." You'll be surprised what people share.`})]}),u.jsx(hF,{message:"Hi food-clubbers 👋 Quick check-in — if you haven't ordered yet, I'd love to know why. No pressure at all, just trying to make this work better for everyone 💚",options:[{emoji:"📅",label:"I keep missing the deadline",fill:60},{emoji:"❓",label:"I'm not sure how to order",fill:35},{emoji:"🚗",label:"Hard to collect at that time",fill:20},{emoji:"👁️",label:"Just watching for now",fill:45},{emoji:"🔔",label:"I'd love a reminder next time",fill:80}]}),u.jsx(be,{children:"Step 3 — Managing common questions"}),u.jsx("p",{className:"mb-4 font-light",children:"Save these as WhatsApp Quick Replies (Settings → Business Tools → Quick Replies) so you're not typing them out every time."}),u.jsxs(Lo,{children:[u.jsx(Kh,{children:"How to create an account"}),u.jsxs(Qr,{host:!0,time:"10:32 ✓✓",children:["Step 1: Sign up here → [your Club sign-up link]",u.jsx("br",{}),"Step 2: Log in here → [your Club URL]",u.jsx("br",{}),"Step 3: Shop here → [your Club URL]/shop"]}),u.jsx(Kh,{children:"Forgot password"}),u.jsx(Qr,{host:!0,time:"14:15 ✓✓",children:`I can see you have an account already! Click "forgot my password" on the login page — you'll get a reset email within a minute.`}),u.jsx(Kh,{children:"Not receiving emails"}),u.jsx(Qr,{host:!0,time:"09:47 ✓✓",children:"Please check your spam or promotions folder first. If it's not there, please save [email protected] to your safe senders list."})]}),u.jsx(be,{children:"Step 4 — Review and reflect"}),u.jsxs(pn,{label:"Quick monthly review",children:[u.jsxs("p",{children:[u.jsx("strong",{children:"Track:"})," Members in WhatsApp group · Members registered on shop · Orders placed this cycle · Repeat buyers"]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Reflect:"})," Which message got the most engagement? What felt energising vs draining? Which products got great feedback? What would I do differently?"]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Pro tip:"}),` Export your Member Orders as a CSV and drop it into ChatGPT: "Please analyse this and tell me: average spend per Member, most popular products, Members who haven't ordered in 2+ cycles." Instant insights in seconds.`]})]}),u.jsx(vl,{label:"Today's tasks",items:[{title:'Write and send your first "join" post',desc:"Share in at least 3 places — your neighbourhood WhatsApp, a Facebook group, and 
258your personal social. Include a photo. Include your market day date."},{title:"Set up WhatsApp Quick Replies",desc:"Settings → Business Tools → Quick Replies. Save templates for: how to join, how to order, forgotten password, email issues. This alone saves hours."},{title:"Set up a Gmail email template",desc:"Compose → three dots → Templates → Save draft as template. Use this to reply to any email enquiries."},{title:"Plan your first supplier spotlight",desc:"Choose one supplier whose story you love. Write 3–4 lines about what makes them special and share it in your WhatsApp group — even before your shop opens, this builds anticipation and trust."}]})]})]}),xF=()=>u.jsxs(u.Fragment,{children:[u.jsx(ho,{label:"Day 5",title:"What a real order window looks like",lead:"The best way to learn is to see it done. Here's a real week of WhatsApp messages from Greyton Food Club's very first order window — nothing polished, just steady, human communication."}),u.jsxs(fo,{children:[u.jsx(be,{first:!0,children:"About this example"}),u.jsx("p",{className:"mb-4 font-light",children:"The Greyton Food Club launched into a small, tight-knit community with no existing Food Club nearby. Their Host opened the shop on a Wednesday, closed the following Wednesday, and shared something in the group most days."}),u.jsx("p",{className:"mb-4 font-light",children:u.jsx("strong",{className:"font-semibold",children:"They had one of the biggest first order windows in the network's history."})}),u.jsx(pn,{label:"How to use this",variant:"gold",children:u.jsx("p",{children:"Read the rhythm and tone — not just the content. Notice how often they show up. Notice they're not hard-selling. They're educating, sharing stories, and reminding. Don't copy word-for-word — find your own voice. Let this be your benchmark."})}),u.jsx(be,{children:"Wednesday — Shop opens"}),u.jsx(Lo,{children:u.jsxs(Qr,{host:!0,time:"06:00 ✓✓",children:["Welcome to The Greyt Life Food Club! 🌿",u.jsx("br",{}),u.jsx("br",{}),"Hello Greytonians! We're so glad to have you in the group 💚",u.jsx("br",{}),u.jsx("br",{}),"Our community Food Club is all about conscious, collective shopping — supporting local and regional producers, cutting waste, and getting great quality food at better prices.",u.jsx("br",{}),u.jsx("br",{}),"The shop is now OPEN and closes next Wednesday at 1PM. Our first market day is Friday, July 4th.",u.jsx("br",{}),u.jsx("br",{}),"Shop here → thegreytlife.foodhub.org.za/Shop"]})}),u.jsx(be,{children:"Thursday — Supplier spotlight"}),u.jsx(Lo,{children:u.jsxs(Qr,{host:!0,time:"09:15 ✓✓",children:["🐄 Today's supplier spotlight: Langside Meats 🐄",u.jsx("br",{}),u.jsx("br",{}),"100% certified grass-fed beef and lamb from the Eastern Cape. Zero antibiotics, steroids, hormones or GMO. The unique veldt and climate give the lamb a flavour you won't find anywhere else — voted by Food Club Hosts as the most delicious lamb in the network.",u.jsx("br",{}),u.jsx("br",{}),"Shop the range → [link]"]})}),u.jsx(be,{children:"Saturday — Smart shopping guide"}),u.jsx(Lo,{children:u.jsxs(Qr,{host:!0,time:"10:45 ✓✓",children:["Wondering what to order? Here's an example monthly cart for a family of 2 adults + 2 kids 🛒",u.jsx("br",{}),u.jsx("br",{}),u.jsx("strong",{children:"Meat & protein:"})," 2 chicken packs, 2×500g mince, 30 eggs",u.jsx("br",{}),u.jsx("strong",{children:"Pantry:"})," 2kg oats, 1kg rice, nut butter, raw honey, butter",u.jsx("br",{}),u.jsx("strong",{children:"Home:"})," eco laundry powder, dishwashing liquid",u.jsx("br",{}),u.jsx("br",{}),"That's meals, lunchboxes, snacks and cleaning sorted — with better prices thanks to bulk buying 💚",u.jsx("br",{}),u.jsx("br",{}),'Remember to hit "Confirm Order" after any changes!']})}),u.jsx(be,{children:"Tuesday — 24 hours to go"}),u.jsx(Lo,{children:u.jsxs(Qr,{host:!0,time:"08:00 ✓✓",children:["⏰ 24 hours to go before the shop closes!",u.jsx("br",{}),u.jsx("br",{}),"If you're planning to order — now's the moment.",u.jsx("br",{}),u.jsx("br",{}),"Shop here → [link]",u.jsx("br",{}),u.jsx("br",{}),"Don't forget to confirm your order in your cart, otherwise it won't reach me! 🙏"]})}),u.jsx(be,{children:"Wednesday — Shop closes"}),u.jsx(Lo,{children:u.jsxs(Qr,{host:!0,time:"13:05 ✓✓",children:["🎉 And that's a wrap on our very first order window!",u.jsx("br",{}),u.jsx("br",{}),"Thank you so much to everyone who ordered. We had the biggest first-club shop in the network — I'm so grateful to be building this with you all.",u.jsx("br",{}),u.jsx("br",{}),"I'll be in touch with your collection slot for July 4th. This group will go quiet until it's almost time for our next shop 🌿",u.jsx("br",{}),u.jsx("br",{}),u.jsx("em",{children:"Every order really does help make it work."})]})}),u.jsx(be,{children:"What made this work"}),u.jsxs(so,{children:[u.jsx(Ne,{icon:"📅",title:"Consistent presence",desc:"They showed up most days. Not with pressure — with information, stories and reminders. Consistent doesn't mean frequent. It means regular and predictable."}),u.jsx(Ne,{icon:"🧑‍🌾",title:"Supplier storytelling",desc:"Every message wasn't just about ordering — it was about why this food matters. A supplier spotlight is an invitation to care, not a product listing."}),u.jsx(Ne,{icon:"🛒",title:"Practical help",desc:"The example family cart removed the biggest barrier for first-timers: not knowing where to start. Make it easy to say yes."}),u.jsx(Ne,{icon:"💚",title:"Genuine gratitude",desc:"They ended with real warmth. Not marketing. Not a promo for next month. Just: thank you for doing this with me. That sticks."})]}),u.jsx(pn,{label:"Your message bank",children:u.jsx("p",{children:"In your Host Handbook, you'll find a full Message Bank 
258with pre-written WhatsApp posts for every stage of your Club's growth — from your first join post to closing day reminders. Use them as a starting point and make them yours."})})]})]}),wF=()=>u.jsxs(u.Fragment,{children:[u.jsx(ho,{label:"You made it",title:"Phew. You're ready to begin.",lead:"You've taken in more than most people ever do before starting something like this. The truth is, you won't feel 100% ready. No one ever does. But you now have everything you need to begin."}),u.jsxs(fo,{children:[u.jsx(iF,{items:[{num:"55+",label:"Clubs running in the network"},{num:"9,800+",label:"Members and counting"},{num:"R2.5M",label:"Spent with farmers each month"}]}),u.jsx(be,{first:!0,children:"What you're stepping into"}),u.jsxs(so,{children:[u.jsx(Ne,{icon:"🛡️",title:"Creating trust",desc:"A space where people know exactly what they're eating and where it came from. Rare. Valuable. Yours to build."}),u.jsx(Ne,{icon:"🌾",title:"Supporting real farming",desc:"Farmers doing things properly — regenerating soil, raising animals with care, paying their workers fairly."}),u.jsx(Ne,{icon:"🏘️",title:"Building community",desc:"Making good food more accessible, and bringing people into closer relationship with each other around something real."}),u.jsx(Ne,{icon:"🔗",title:"Rebuilding supply chains",desc:"Human-scale, local, transparent — the kind of food system our grandparents would recognise."})]}),u.jsx(be,{children:"What makes a great Host"}),u.jsx(wS,{items:["Show up consistently — not perfectly, but regularly","Communicate clearly and honestly, especially when things don't go to plan","Stay open — to feedback, to learning, to doing things differently","Ask for help when you need it. The network exists for exactly this.","Care. Genuinely. It shows in everything you do."]}),u.jsx(be,{children:"Join your Host community"}),u.jsx("p",{className:"mb-4 font-light",children:"Your biggest asset is the other Hosts. They've been there. They've had the chaotic market days, the supplier no-shows, the Members who disappear after one order. They'll help you through it — and you'll help them too."}),u.jsxs(pn,{label:"Join these WhatsApp groups now",variant:"gold",children:[u.jsxs("p",{children:[u.jsx("strong",{children:"FCH Hosts Western Cape"})," — Your main community. Day-to-day learning, questions, wins and struggles."]}),u.jsxs("p",{children:[u.jsx("strong",{children:"FCH Admin msgs WC"})," — Important updates from the FCH team."]}),u.jsxs("p",{children:[u.jsx("strong",{children:"FCH Marketing Share"})," — Share posts, get ideas, amplify each other's Clubs."]}),u.jsx("p",{children:"Also join supplier-specific groups for any farmers you're stocking — direct relationships with the people growing your food."})]}),u.jsx(ts,{quote:"It takes time to find your rhythm. Your first market day will feel like a lot. Your second will be better. By your third, things will start to click. There is no such thing as a seamless market day. But there is never one that doesn't feel meaningful.",cite:"Food Club Hub"}),u.jsx(ts,{quote:"My favourite thing about food club: hearing the words, 'Oh I'm so excited, I have NO IDEA what I ordered!' The conversations it brings. The deep sense of connection. When the world is so mad around us, it feels so wholesome.",cite:"Jessica, Vredehoek Food Club"}),u.jsxs(fF,{sub:"That's it. And yet, when done well, it changes far more than just what's on the table.",children:["Food Clubs are powerful because they are simple.",u.jsx("br",{}),"People coming together.",u.jsx("br",{}),"To buy good food.",u.jsx("br",{}),"From people they trust."]}),u.jsx(pn,{label:"If you get stuck",children:u.jsx("p",{children:"Reach out to Jessica and Jaime (weekdays 9–5) on your Host WhatsApp group or at [email protected]. No question is too small or too obvious. Seriously — ask."})})]})]}),bF="foodclub2026",Eo=[{id:"pre",label:"Before you begin",short:"0"},{id:"d1",label:"Values",short:"1"},{id:"d2",label:"Food & suppliers",short:"2"},{id:"d3",label:"Your space",short:"3"},{id:"d4",label:"Members",short:"4"}
258,{id:"d5",label:"Order window",short:"5"},{id:"fin",label:"You're ready",short:"✦"}],_F={pre:mF,d1:pF,d2:gF,d3:yF,d4:vF,d5:xF,fin:wF},kF=({onUnlock:e})=>{const[t,n]=k.useState(""),[r,o]=k.useState(!1),s=()=>{t.trim().toLowerCase()===bF?(sessionStorage.setItem("course_access","true"),e()):o(!0)};return u.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-6",children:u.jsxs(le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-sm w-full text-center",children:[u.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-2xl flex items-center justify-center mx-auto mb-6",children:u.jsx(cL,{className:"w-7 h-7 text-primary"})}),u.jsx("h1",{className:"font-display text-3xl font-bold mb-2",children:"Host Course"}),u.jsx("p",{className:"text-muted-foreground text-sm mb-8",children:"Enter your access code to view the course material."}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(tr,{type:"text",placeholder:"Access code",value:t,onChange:l=>{n(l.target.value),o(!1)},onKeyDown:l=>l.key==="Enter"&&s(),className:r?"border-destructive":""}),u.jsx(Pe,{onClick:s,className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",children:"Enter"})]}),r&&u.jsx("p",{className:"text-destructive text-sm mt-2",children:"Incorrect code. Please try again."})]})})},CF=()=>{const[e,t]=k.useState(()=>sessionStorage.getItem("course_access")==="true"),[n,r]=k.useState(0);if(!e)return u.jsx(kF,{onUnlock:()=>t(!0)});const o=Eo[n].id,s=_F[o],l=Math.round((n+1)/Eo.length*100),d=h=>{r(h),window.scrollTo({top:0,behavior:"smooth"})};return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsxs("nav",{className:"sticky top-0 z-50 bg-background/95 backdrop-blur-sm border-b border-foreground
258/15 flex items-center justify-between px-6 md:px-12 h-[60px]",children:[u.jsx("a",{href:"/",className:"flex-shrink-0",children:u.jsx("img",{src:Ac,alt:"Food Club Hub",className:"h-8"})}),u.jsx("div",{className:"flex items-center gap-1",children:Eo.map((h,f)=>u.jsxs("button",{onClick:()=>d(f),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs transition-all whitespace-nowrap ${f===n?"text-foreground font-semibold bg-muted":(f<n,"text-muted-foreground")}`,children:[u.jsx("span",{className:`w-[18px] h-[18px] rounded-full flex items-center justify-center text-[9px] font-bold flex-shrink-0 border-[1.5px] ${f===n?"bg-primary border-primary text-primary-foreground":f<n?"bg-forest-green border-forest-green text-white":"bg-muted border-foreground/15 text-muted-foreground"}`,children:f<n?"✓":h.short}),u.jsx("span",{className:"hidden md:inline",children:h.label})]},h.id))})]}),u.jsx("div",{className:"h-0.5 bg-muted sticky top-[60px] z-40",children:u.jsx("div",{className:"h-full bg-gold transition-all duration-400",style:{width:`${l}%`}})}),u.jsx(Cg,{mode:"wait",children:u.jsx(le.div,{initial:{opacity:0}
258,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:u.jsx(s,{})},o)}),u.jsxs("div",{className:"max-w-3xl mx-auto flex justify-between items-center px-6 md:px-12 py-10",children:[n>0?u.jsxs(Pe,{variant:"outline",onClick:()=>d(n-1),className:"font-semibold",children:["← ",Eo[n-1].label]}):u.jsx("div",{}),n<Eo.length-1?u.jsxs(Pe,{onClick:()=>d(n+1),className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",children:[Eo[n+1].label," →"]}):u.jsx(Pe,{asChild:!0,className:"bg-gold hover:bg-gold/90 text-white font-semibold",children:u.jsx("a",{href:"https://foodhub.org.za",target:"_blank",rel:"noopener noreferrer",children:"Visit foodhub.org.za →"})})]})]})},SF=()=>u.jsxs("main",{className:"min-h-screen bg-background flex flex-col items-center justify-center px-6 py-16",children:[u.jsx("a",{href:"/",className:"mb-10",children:u.jsx("img",{src:J1,alt:"Food Club Hub",className:"h-28 md:h-36"})}),u.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground text-center mb-3",children:"Welcome back"}),u.jsx("p",{className:"text-foreground/70 text-center max-w-md mb-10",children:"Choose where you'd like to log in."}),u.jsxs("div",{className:"w-full max-w-md flex flex-col gap-4",children:[u.jsx(Pe,{asChild:!0,size:"lg",className:"h-auto py-5 bg-primary hover:bg-primary/90 text-primary-foreground font-semibold text-base",children:u.jsxs("a",{href:"https://www.foodhub.org.za/Members/Login",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-3",children:[u.jsx(iL,{className:"h-5 w-5"}),"Log in to Supplier Database"]})}),u.jsx("p",{className:"text-xs text-center text-foreground/60 -mt-2",children:"For collaborating Hosts and Suppliers"}),u.jsx(Pe,{asChild:!0,size:"lg",variant:"outline",className:"h-auto py-5 border-2 border-accent text-foreground hover:bg-accent hover:text-accent-foreground font-semibold text-base mt-4",children:u.jsxs("a",{href:"https://newhostfoodclub.netlify.app",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-3",children:[u.jsx(aL,{className:"h-5 w-5"}),"Log in to New Host Onboarding Course"]})})]}),u.jsx("a",{href:"/",className:"mt-12 text-sm font-semibold text-foreground/60 hover:text-foreground transition-colors",children:"← Back to home"})]}),PF=()=>{const e=js();return k.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),u.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),u.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},Vr=({hash:e})=>{const t=j_();return k.useEffect(()=>{t(`/#${e}`,{replace:!0})},[t,e]),null},TF=new b2,jF=()=>{const{hash:e}=js();return k.useEffect(()=>{e&&setTimeout(()=>{const t=document.querySelector(e);t==null||t.scrollIntoView({behavior:"smooth"})},100)},[e]),null},EF=()=>u.jsx(k2,{client:TF,children:u.jsxs(UA,{children:[u.jsx(iM,{}),u.jsx(eN,{}),u.jsxs(xE,{children:[u.jsx(jF,{}),u.jsxs(hE,{children:[u.jsx(vt,{path:"/",element:u.jsx(sD,{})}),u.jsx(vt,{path:"/why-food-clubs",element:u.jsx(CD,{})}),u.jsx(vt,{path:"/host-and-supply",element:u.jsx(ND,{})}),u.jsx(vt,{path:"/club/demo",element:u.jsx(nF,{})}),u.jsx(vt,{path:"/course",element:u.jsx(CF,{})}),u.jsx(vt,{path:"/login",element:u.jsx(SF,{})}),u.jsx(vt,{path:"/Find-your-Club",element:u.jsx(Vr,{hash:"join"})}),u.jsx(vt,{path:"/how-it-works",element:u.jsx(Vr,{hash:"how-it-works"})}),u.jsx(vt,{path:"/money",element:u.jsx(Vr,{hash:"money-breakdown"})}),u.jsx(vt,{path:"/what-you-get",element:u.jsx(Vr,{hash:"what-you-get"})}),u.jsx(vt,{path:"/market-day",element:u.jsx(Vr,{hash:"market-day"})}),u.jsx(vt,{path:"/testimonials",element:u.jsx(Vr,{hash:"testimonials"})}),u.jsx(vt,{path:"/why-it-matters",element:u.jsx(Vr,{hash:"why-it-matters"})}),u.jsx(vt,{path:"/contact",element:u.jsx(Vr,{hash:"contact"})}),u.jsx(vt,{path:"*",element:u.jsx(PF,{})})]})]})]})});h_(document.getElementById("root")).render(u.jsx(EF,{}));

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.