PageSourceSearch

https://kebchi.fr/assets/index-DAzmh9nZ.js

js kebchi.fr collected 2026-10-02 21:20:59 UTC 666,825 bytes, 195 lines download raw bytes

vendor: 4,709 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProductPage-DQkUzYw5.js","assets/Container-BjTcZsAE.js","assets/NotFoundPage-S_o7OCBx.js","assets/CoordonneesFields-BzKBBdAa.js","assets/useCagnotte-DReKpr2X.js","assets/paiementEnCours-DK5dIu0X.js","assets/Reveal-CqtVMorn.js","assets/CartPage--MIP3No6.js","assets/MonEngagementPage-BDFDJipD.js","assets/DonMerciPage-B_b4Ct3u.js","assets/CagnottesPage-Dgj-AqPw.js","assets/BlogListPage-BsLxgcq6.js","assets/posts-CwRCcBPM.js","assets/BlogPostPage-CaveHBP3.js","assets/jsonLd-0ATwzki2.js","assets/syntax-DDuTCaAM.js","assets/PourquoiKebchiPage-BkLjGIE9.js","assets/LegalPage-mw0ovH89.js","assets/NotreConceptPage-DxoSalwj.js","assets/FaqPage-ByvIQG63.js","assets/QuestionsReligieusesPage-BD81dSdv.js","assets/MentionsLegalesPage-CxVW25Ct.js","assets/ConfidentialitePage-BMgYt7L0.js","assets/CgvPage-QIybnklw.js","assets/KeystaticPage-U10ltzjD.js"])))=>i.map(i=>d[i]);
2var WE=Object.defineProperty;var Ag=e=>{throw TypeError(e)};var HE=(e,t,n)=>t in e?WE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Lr=(e,t,n)=>HE(e,typeof t!="symbol"?t+"":t,n),yd=(e,t,n)=>t.has(e)||Ag("Cannot "+n);var f=(e,t,n)=>(yd(e,t,"read from private field"),n?n.call(e):t.get(e)),I=(e,t,n)=>t.has(e)?Ag("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),P=(e,t,n,r)=>(yd(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),C=(e,t,n)=>(yd(e,t,"access private method"),n);var zl=(e,t,n,r)=>({set _(s){P(e,t,s,n)},get _(){return f(e,t,r)}});function KE(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var C6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function E6(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var u1={exports:{}},Hc={},c1={exports:{}},ie={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var Cl=Symbol.for("react.element"),GE=Symbol.for("react.portal"),qE=Symbol.for("react.fragment"),QE=Symbol.for("react.strict_mode"),ZE=Symbol.for("react.profiler"),YE=Symbol.for("react.provider"),XE=Symbol.for("react.context"),JE=Symbol.for("react.forward_ref"),ek=Symbol.for("react.suspense"),tk=Symbol.for("react.memo"),nk=Symbol.for("react.lazy"),Rg=Symbol.iterator;function rk(e){return e===null||typeof e!="object"?null:(e=Rg&&e[Rg]||e["@@iterator"],typeof e=="function"?e:null)}var d1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f1=Object.assign,h1={};function jo(e,t,n){this.props=e,this.context=t,this.refs=h1,this.updater=n||d1}jo.prototype.isReactComponent={};jo.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")};jo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function p1(){}p1.prototype=jo.prototype;
vendor: 5,875 bytes, lines 10-18
10function Vp(e,t,n){this.props=e,this.context=t,this.refs=h1,this.updater=n||d1}var Fp=Vp.prototype=new p1;Fp.constructor=Vp;f1(Fp,jo.prototype);Fp.isPureReactComponent=!0;var Ig=Array.isArray,m1=Object.prototype.hasOwnProperty,zp={current:null},g1={key:!0,ref:!0,__self:!0,__source:!0};function y1(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)m1.call(t,r)&&!g1.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Cl,type:e,key:i,ref:o,props:s,_owner:zp.current}}function sk(e,t){return{$$typeof:Cl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Up(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cl}function ik(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Lg=/\/+/g;function vd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ik(""+e.key):t.toString(36)}function vu(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Cl:case GE:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+vd(o,0):r,Ig(s)?(n="",e!=null&&(n=e.replace(Lg,"$&/")+"/"),vu(s,t,n,"",function(u){return u})):s!=null&&(Up(s)&&(s=sk(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Lg,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Ig(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+vd(i,a);o+=vu(i,t,n,l,s)}else if(l=rk(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+vd(i,a++),o+=vu(i,t,n,l,s);else if(i==="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 o}function Ul(e,t,n){if(e==null)return e;var r=[],s=0;return vu(e,r,"","",function(i){return t.call(n,i,s++)}),r}function ok(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 Dt={current:null},xu={transition:null},ak={ReactCurrentDispatcher:Dt,ReactCurrentBatchConfig:xu,ReactCurrentOwner:zp};function v1(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:Ul,forEach:function(e,t,n){Ul(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ul(e,function(){t++}),t},toArray:function(e){return Ul(e,function(t){return t})||[]},only:function(e){if(!Up(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=jo;ie.Fragment=qE;ie.Profiler=ZE;ie.PureComponent=Vp;ie.StrictMode=QE;ie.Suspense=ek;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ak;ie.act=v1;ie.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=f1({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=zp.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)m1.call(t,l)&&!g1.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Cl,type:e.type,key:s,ref:i,props:r,_owner:o}};ie.createContext=function(e){return e={$$typeof:XE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:YE,_context:e},e.Consumer=e};ie.createElement=y1;ie.createFactory=function(e){var t=y1.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:JE,render:e}};ie.isValidElement=Up;ie.lazy=function(e){return{$$typeof:nk,_payload:{_status:-1,_result:e},_init:ok}};ie.memo=function(e,t){return{$$typeof:tk,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=xu.transition;xu.transition={};try{e()}finally{xu.transition=t}};ie.unstable_act=v1;ie.useCallback=function(e,t){return Dt.current.useCallback(e,t)};ie.useContext=function(e){return Dt.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return Dt.current.useDeferredValue(e)};ie.useEffect=function(e,t){return Dt.current.useEffect(e,t)};ie.useId=function(){return Dt.current.useId()};ie.useImperativeHandle=function(e,t,n){return Dt.current.useImperativeHandle(e,t,n)};ie.useInsertionEffect=function(e,t){return Dt.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return Dt.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return Dt.current.useMemo(e,t)};ie.useReducer=function(e,t,n){return Dt.current.useReducer(e,t,n)};ie.useRef=function(e){return Dt.current.useRef(e)};ie.useState=function(e){return Dt.current.useState(e)};ie.useSyncExternalStore=function(e,t,n){return Dt.current.useSyncExternalStore(e,t,n)};ie.useTransition=function(){return Dt.current.useTransition()};ie.version="18.3.1";c1.exports=ie;var k=c1.exports;const ae=Wc(k),lk=KE({__proto__:null,default:ae},[k]);/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var uk=k,ck=Symbol.for("react.element"),dk=Symbol.for("react.fragment"),fk=Object.prototype.hasOwnProperty,hk=uk.__SECRET_INT
vendor: 8,903 bytes, lines 18-34
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pk={key:!0,ref:!0,__self:!0,__source:!0};function x1(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)fk.call(t,r)&&!pk.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:ck,type:e,key:i,ref:o,props:s,_owner:hk.current}}Hc.Fragment=dk;Hc.jsx=x1;Hc.jsxs=x1;u1.exports=Hc;var p=u1.exports,w1={exports:{}},sn={},b1={exports:{}},S1={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */(function(e){function t(j,z){var R=j.length;j.push(z);e:for(;0<R;){var oe=R-1>>>1,fe=j[oe];if(0<s(fe,z))j[oe]=z,j[R]=fe,R=oe;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var z=j[0],R=j.pop();if(R!==z){j[0]=R;e:for(var oe=0,fe=j.length,En=fe>>>1;oe<En;){var Pt=2*(oe+1)-1,ze=j[Pt],te=Pt+1,xt=j[te];if(0>s(ze,R))te<fe&&0>s(xt,ze)?(j[oe]=xt,j[te]=R,oe=te):(j[oe]=ze,j[Pt]=R,oe=Pt);else if(te<fe&&0>s(xt,R))j[oe]=xt,j[te]=R,oe=te;else break e}}return z}function s(j,z){var R=j.sortIndex-z.sortIndex;return R!==0?R:j.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,h=3,m=!1,v=!1,x=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(j){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=j)r(u),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(u)}}function S(j){if(x=!1,w(j),!v)if(n(l)!==null)v=!0,ne(_);else{var z=n(u);z!==null&&Fe(S,z.startTime-j)}}function _(j,z){v=!1,x&&(x=!1,y(E),E=-1),m=!0;var R=h;try{for(w(z),d=n(l);d!==null&&(!(d.expirationTime>z)||j&&!q());){var oe=d.callback;if(typeof oe=="function"){d.callback=null,h=d.priorityLevel;var fe=oe(d.expirationTime<=z);z=e.unstable_now(),typeof fe=="function"?d.callback=fe:d===n(l)&&r(l),w(z)}else r(l);d=n(l)}if(d!==null)var En=!0;else{var Pt=n(u);Pt!==null&&Fe(S,Pt.startTime-z),En=!1}return En}finally{d=null,h=R,m=!1}}var A=!1,N=null,E=-1,V=5,L=-1;function q(){return!(e.unstable_now()-L<V)}function ce(){if(N!==null){var j=e.unstable_now();L=j;var z=!0;try{z=N(!0,j)}finally{z?je():(A=!1,N=null)}}else A=!1}var je;if(typeof g=="function")je=function(){g(ce)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,ue=de.port2;de.port1.onmessage=ce,je=function(){ue.postMessage(null)}}else je=function(){b(ce,0)};function ne(j){N=j,A||(A=!0,je())}function Fe(j,z){E=b(function(){j(e.unstable_now())},z)}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(j){j.callback=null},e.unstable_continueExecution=function(){v||m||(v=!0,ne(_))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(j){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var R=h;h=z;try{return j()}finally{h=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,z){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var R=h;h=j;try{return z()}finally{h=R}},e.unstable_scheduleCallback=function(j,z,R){var oe=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?oe+R:oe):R=oe,j){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=R+fe,j={id:c++,callback:z,priorityLevel:j,startTime:R,expirationTime:fe,sortIndex:-1},R>oe?(j.sortIndex=R,t(u,j),n(l)===null&&j===n(u)&&(x?(y(E),E=-1):x=!0,Fe(S,R-oe))):(j.sortIndex=fe,t(l,j),v||m||(v=!0,ne(_))),j},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(j){var z=h;return function(){var R=h;h=z;try{return j.apply(this,arguments)}finally{h=R}}}})(S1);b1.exports=S1;var mk=b1.exports;/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var gk=k,nn=mk;function O(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 C1=new Set,Na={};function pi(e,t){vo(e,t),vo(e+"Capture",t)}function vo(e,t){for(Na[e]=t,e=0;e<t.length;e++)C1.add(t[e])}var _r=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xf=Object.prototype.hasOwnProperty,yk=/^[: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]*$/,jg={},Og={};function vk(e){return xf.call(Og,e)?!0:xf.call(jg,e)?!1:yk.test(e)?Og[e]=!0:(jg[e]=!0,!1)}function xk(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 wk(e,t,n,r){if(t===null||typeof t>"u"||xk(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,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vt[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];vt[t]=new Mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vt[e]=new Mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vt[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){vt[e]=new Mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vt[e]=new Mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vt[e]=new Mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vt[e]=new Mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vt[e]=new Mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var $p=/[\-:]([a-z])/g;function Bp(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
34-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($p,Bp);vt[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($p,Bp);vt[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($p,Bp);vt[t]=new Mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!1,!1)});vt.xlinkHref=new Mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wp(e,t,n,r){var s=vt.hasOwnProperty(t)?vt[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(wk(t,n,s,r)&&(n=null),r||s===null?vk(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Rr=gk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$l=Symbol.for("react.element"),Pi=Symbol.for("react.portal"),Ni=Symbol.for("react.fragment"),Hp=Symbol.for("react.strict_mode"),wf=Symbol.for("react.profiler"),E1=Symbol.for("react.provider"),k1=Symbol.for("react.context"),Kp=Symbol.for("react.forward_ref"),bf=Symbol.for("react.suspense"),Sf=Symbol.for("react.suspense_list"),Gp=Symbol.for("react.memo"),$r=Symbol.for("react.lazy"),_1=Symbol.for("react.offscreen"),Dg=Symbol.iterator;function Bo(e){return e===null||typeof e!="object"?null:(e=Dg&&e[Dg]||e["@@iterator"],typeof e=="function"?e:null)}var Ve=Object.assign,xd;function sa(e){if(xd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);xd=t&&t[1]||""}return`
35`+xd+e}var wd=!1;function bd(e,t){if(!e||wd)return"";wd=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
36`),i=r.stack.split(`
37`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=`
38`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{wd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sa(e):""}function bk(e){switch(e.tag){case 5:return sa(e.type);case 16:return sa("Lazy");case 13:return sa("Suspense");case 19:return sa("SuspenseList");case 0:case 2:case 15:return e=bd(e.type,!1),e;case 11:return e=bd(e.type.render,!1),e;case 1:return e=bd(e.type,!0),e;default:return""}}function Cf(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 Ni:return"Fragment";case Pi:return"Portal";case wf:return"Profiler";case Hp:return"StrictMode";case bf:return"Suspense";case Sf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case k1:return(e.displayName||"Context")+".Consumer";case E1:return(e._context.displayName||"Context")+".Provider";case Kp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gp:return t=e.displayName||null,t!==null?t:Cf(e.type)||"Memo";case $r:t=e._payload,e=e._init;try{return Cf(e(t))}catch{}}return null}function Sk(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 Cf(t);case 8:return t===Hp?"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 ws(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function T1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ck(e){var t=T1(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 s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bl(e){e._valueTracker||(e._valueTracker=Ck(e))}function P1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=T1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ku(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 Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ws(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 N1(e,t){t=t.checked,t!=null&&Wp(e,"checked",t,!1)}function kf(e,t){N1(e,t);var n=ws(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")?_f(e,t.type,n):t.hasOwnProperty("defaultValue")&&_f(e,t.type,ws(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vg(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 _f(e,t,n){(t!=="number"||Ku(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ia=Array.isArray;function Wi(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ws(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Tf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return Ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(ia(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ws(n)}}function A1(e,t){var n=ws(t.value),r=ws(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 zg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function R1(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 Pf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?R1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wl,I1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Wl=Wl||document.createElement("div"),Wl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Aa(e,t){if(t){var n=e.firstChild;
vendor: 8,865 bytes, line 38
38if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ha={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},Ek=["Webkit","ms","Moz","O"];Object.keys(ha).forEach(function(e){Ek.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ha[t]=ha[e]})});function L1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ha.hasOwnProperty(e)&&ha[e]?(""+t).trim():t+"px"}function j1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=L1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var kk=Ve({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 Nf(e,t){if(t){if(kk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(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 Rf=null;function qp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var If=null,Hi=null,Ki=null;function Ug(e){if(e=_l(e)){if(typeof If!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Zc(t),If(e.stateNode,e.type,t))}}function O1(e){Hi?Ki?Ki.push(e):Ki=[e]:Hi=e}function D1(){if(Hi){var e=Hi,t=Ki;if(Ki=Hi=null,Ug(e),t)for(e=0;e<t.length;e++)Ug(t[e])}}function M1(e,t){return e(t)}function V1(){}var Sd=!1;function F1(e,t,n){if(Sd)return e(t,n);Sd=!0;try{return M1(e,t,n)}finally{Sd=!1,(Hi!==null||Ki!==null)&&(V1(),D1())}}function Ra(e,t){var n=e.stateNode;if(n===null)return null;var r=Zc(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(O(231,t,typeof n));return n}var Lf=!1;if(_r)try{var Wo={};Object.defineProperty(Wo,"passive",{get:function(){Lf=!0}}),window.addEventListener("test",Wo,Wo),window.removeEventListener("test",Wo,Wo)}catch{Lf=!1}function _k(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var pa=!1,Gu=null,qu=!1,jf=null,Tk={onError:function(e){pa=!0,Gu=e}};function Pk(e,t,n,r,s,i,o,a,l){pa=!1,Gu=null,_k.apply(Tk,arguments)}function Nk(e,t,n,r,s,i,o,a,l){if(Pk.apply(this,arguments),pa){if(pa){var u=Gu;pa=!1,Gu=null}else throw Error(O(198));qu||(qu=!0,jf=u)}}function mi(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 z1(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 $g(e){if(mi(e)!==e)throw Error(O(188))}function Ak(e){var t=e.alternate;if(!t){if(t=mi(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return $g(s),e;if(i===r)return $g(s),t;i=i.sibling}throw Error(O(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function U1(e){return e=Ak(e),e!==null?$1(e):null}function $1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$1(e);if(t!==null)return t;e=e.sibling}return null}var B1=nn.unstable_scheduleCallback,Bg=nn.unstable_cancelCallback,Rk=nn.unstable_shouldYield,Ik=nn.unstable_requestPaint,Qe=nn.unstable_now,Lk=nn.unstable_getCurrentPriorityLevel,Qp=nn.unstable_ImmediatePriority,W1=nn.unstable_UserBlockingPriority,Qu=nn.unstable_NormalPriority,jk=nn.unstable_LowPriority,H1=nn.unstable_IdlePriority,Kc=null,tr=null;function Ok(e){if(tr&&typeof tr.onCommitFiberRoot=="function")try{tr.onCommitFiberRoot(Kc,e,void 0,(e.current.flags&128)===128)}catch{}}var Vn=Math.clz32?Math.clz32:Vk,Dk=Math.log,Mk=Math.LN2;function Vk(e){return e>>>=0,e===0?32:31-(Dk(e)/Mk|0)|0}var Hl=64,Kl=4194304;function oa(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 Zu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=oa(a):(i&=o,i!==0&&(r=oa(i)))}else o=n&~s,o!==0?r=oa(o):i!==0&&(r=oa(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&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-Vn(t),s=1<<n,r|=e[n],t&=~s;return r}function Fk(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 zk(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Vn(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=Fk(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Of(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function K1(){var e=Hl;return Hl<<=1,!(Hl&4194240)&&(Hl=64),e}function Cd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function El(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vn(t),e[t]=n}function Uk(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 s=31-Vn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Zp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Vn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var we=0;function G1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var q1,Yp,Q1,Z1,Y1,Df=!1,Gl=[],us=null,cs=null,ds=null,Ia=new Map,La=new Map,Hr=[],$k="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 Wg(e,t){switch(e){case"focusin":case"focusout":us=null;break;case"dragenter":case"dragleave":cs=null;break;case"mouseover":case"mouseout":ds=null;break;case"pointerover":case"pointerout":Ia.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":La.delete(t.pointerId)}}function Ho(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=_l(t),t!==null&&Yp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 11,707 bytes, line 38
38function Bk(e,t,n,r,s){switch(t){case"focusin":return us=Ho(us,e,t,n,r,s),!0;case"dragenter":return cs=Ho(cs,e,t,n,r,s),!0;case"mouseover":return ds=Ho(ds,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Ia.set(i,Ho(Ia.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,La.set(i,Ho(La.get(i)||null,e,t,n,r,s)),!0}return!1}function X1(e){var t=Fs(e.target);if(t!==null){var n=mi(t);if(n!==null){if(t=n.tag,t===13){if(t=z1(n),t!==null){e.blockedOn=t,Y1(e.priority,function(){Q1(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 wu(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);Rf=r,n.target.dispatchEvent(r),Rf=null}else return t=_l(n),t!==null&&Yp(t),e.blockedOn=n,!1;t.shift()}return!0}function Hg(e,t,n){wu(e)&&n.delete(t)}function Wk(){Df=!1,us!==null&&wu(us)&&(us=null),cs!==null&&wu(cs)&&(cs=null),ds!==null&&wu(ds)&&(ds=null),Ia.forEach(Hg),La.forEach(Hg)}function Ko(e,t){e.blockedOn===t&&(e.blockedOn=null,Df||(Df=!0,nn.unstable_scheduleCallback(nn.unstable_NormalPriority,Wk)))}function ja(e){function t(s){return Ko(s,e)}if(0<Gl.length){Ko(Gl[0],e);for(var n=1;n<Gl.length;n++){var r=Gl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(us!==null&&Ko(us,e),cs!==null&&Ko(cs,e),ds!==null&&Ko(ds,e),Ia.forEach(t),La.forEach(t),n=0;n<Hr.length;n++)r=Hr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Hr.length&&(n=Hr[0],n.blockedOn===null);)X1(n),n.blockedOn===null&&Hr.shift()}var Gi=Rr.ReactCurrentBatchConfig,Yu=!0;function Hk(e,t,n,r){var s=we,i=Gi.transition;Gi.transition=null;try{we=1,Xp(e,t,n,r)}finally{we=s,Gi.transition=i}}function Kk(e,t,n,r){var s=we,i=Gi.transition;Gi.transition=null;try{we=4,Xp(e,t,n,r)}finally{we=s,Gi.transition=i}}function Xp(e,t,n,r){if(Yu){var s=Mf(e,t,n,r);if(s===null)Ld(e,t,r,Xu,n),Wg(e,r);else if(Bk(s,e,t,n,r))r.stopPropagation();else if(Wg(e,r),t&4&&-1<$k.indexOf(e)){for(;s!==null;){var i=_l(s);if(i!==null&&q1(i),i=Mf(e,t,n,r),i===null&&Ld(e,t,r,Xu,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Ld(e,t,r,null,n)}}var Xu=null;function Mf(e,t,n,r){if(Xu=null,e=qp(r),e=Fs(e),e!==null)if(t=mi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=z1(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 Xu=e,null}function J1(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(Lk()){case Qp:return 1;case W1:return 4;case Qu:case jk:return 16;case H1:return 536870912;default:return 16}default:return 16}}var ss=null,Jp=null,bu=null;function ew(){if(bu)return bu;var e,t=Jp,n=t.length,r,s="value"in ss?ss.value:ss.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return bu=s.slice(e,1<r?1-r:void 0)}function Su(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 ql(){return!0}function Kg(){return!1}function on(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ql:Kg,this.isPropagationStopped=Kg,this}return Ve(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=ql)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ql)},persist:function(){},isPersistent:ql}),t}var Oo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},em=on(Oo),kl=Ve({},Oo,{view:0,detail:0}),Gk=on(kl),Ed,kd,Go,Gc=Ve({},kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tm,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!==Go&&(Go&&e.type==="mousemove"?(Ed=e.screenX-Go.screenX,kd=e.screenY-Go.screenY):kd=Ed=0,Go=e),Ed)},movementY:function(e){return"movementY"in e?e.movementY:kd}}),Gg=on(Gc),qk=Ve({},Gc,{dataTransfer:0}),Qk=on(qk),Zk=Ve({},kl,{relatedTarget:0}),_d=on(Zk),Yk=Ve({},Oo,{animationName:0,elapsedTime:0,pseudoElement:0}),Xk=on(Yk),Jk=Ve({},Oo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),e_=on(Jk),t_=Ve({},Oo,{data:0}),qg=on(t_),n_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r_={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"},s_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=s_[e])?!!t[e]:!1}function tm(){return i_}var o_=Ve({},kl,{key:function(e){if(e.key){var t=n_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Su(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?r_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tm,charCode:function(e){return e.type==="keypress"?Su(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Su(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a_=on(o_),l_=Ve({},Gc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qg=on(l_),u_=Ve({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tm}),c_=on(u_),d_=Ve({},Oo,{propertyName:0,elapsedTime:0,pseudoElement:0}),f_=on(d_),h_=Ve({},Gc,{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}),p_=on(h_),m_=[9,13,27,32],nm=_r&&"CompositionEvent"in window,ma=null;_r&&"documentMode"in document&&(ma=document.documentMode);var g_=_r&&"TextEvent"in window&&!ma,tw=_r&&(!nm||ma&&8<ma&&11>=ma),Zg=" ",Yg=!1;function nw(e,t){switch(e){case"keyup":return m_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ai=!1;function y_(e,t){switch(e){case"compositionend":return rw(t);case"keypress":return t.which!==32?null:(Yg=!0,Zg);case"textInput":return e=t.data,e===Zg&&Yg?null:e;default:return null}}function v_(e,t){if(Ai)return e==="compositionend"||!nm&&nw(e,t)?(e=ew(),bu=Jp=ss=null,Ai=!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 tw&&t.locale!=="ko"?null:t.data;default:return null}}var x_={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 Xg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!x_[e.type]:t==="textarea"}function sw(e,t,n,r){O1(r),t=Ju(t,"onChange"),0<t.length&&(n=new em("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ga=null,Oa=null;function w_(e){mw(e,0)}function qc(e){var t=Li(e);if(P1(t))return e}function b_(e,t){if(e==="change")return t}var iw=!1;if(_r){var Td;if(_r){var Pd="oninput"in document;if(!Pd){var Jg=document.createElement("div");Jg.setAttribute("oninput","return;"),Pd=typeof Jg.oninput=="function"}Td=Pd}else Td=!1;iw=Td&&(!document.documentMode||9<document.documentMode)}function ey(){ga&&(ga.detachEvent("onpropertychange",ow),Oa=ga=null)}function ow(e){if(e.propertyName==="value"&&qc(Oa)){var t=[];sw(t,Oa,e,qp(e)),F1(w_,t)}}function S_(e,t,n){e==="focusin"?(ey(),ga=t,Oa=n,ga.attachEvent("onpropertychange",ow)):e==="focusout"&&ey()}function C_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qc(Oa)}function E_(e,t){if(e==="click")return qc(t)}function k_(e,t){if(e==="input"||e==="change")return qc(t)}function __(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Un=typeof Object.is=="function"?Object.is:__;function Da(e,t){if(Un(e,t))return!0;if(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 s=n[r];if(!xf.call(t,s)||!Un(e[s],t[s]))return!1}return!0}function ty(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ny(e,t){var n=ty(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=ty(n)}}function aw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?aw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lw(){for(var e=window,t=Ku();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ku(e.document)}return t}function rm(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 T_(e){var t=lw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&aw(n.ownerDocument.documentElement,n)){if(r!==null&&rm(n)){if
vendor: 4,424 bytes, line 38
38(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 s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=ny(n,i);var o=ny(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 P_=_r&&"documentMode"in document&&11>=document.documentMode,Ri=null,Vf=null,ya=null,Ff=!1;function ry(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ff||Ri==null||Ri!==Ku(r)||(r=Ri,"selectionStart"in r&&rm(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}),ya&&Da(ya,r)||(ya=r,r=Ju(Vf,"onSelect"),0<r.length&&(t=new em("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ri)))}function Ql(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ii={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionend:Ql("Transition","TransitionEnd")},Nd={},uw={};_r&&(uw=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function Qc(e){if(Nd[e])return Nd[e];if(!Ii[e])return e;var t=Ii[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in uw)return Nd[e]=t[n];return e}var cw=Qc("animationend"),dw=Qc("animationiteration"),fw=Qc("animationstart"),hw=Qc("transitionend"),pw=new Map,sy="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 _s(e,t){pw.set(e,t),pi(t,[e])}for(var Ad=0;Ad<sy.length;Ad++){var Rd=sy[Ad],N_=Rd.toLowerCase(),A_=Rd[0].toUpperCase()+Rd.slice(1);_s(N_,"on"+A_)}_s(cw,"onAnimationEnd");_s(dw,"onAnimationIteration");_s(fw,"onAnimationStart");_s("dblclick","onDoubleClick");_s("focusin","onFocus");_s("focusout","onBlur");_s(hw,"onTransitionEnd");vo("onMouseEnter",["mouseout","mouseover"]);vo("onMouseLeave",["mouseout","mouseover"]);vo("onPointerEnter",["pointerout","pointerover"]);vo("onPointerLeave",["pointerout","pointerover"]);pi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));pi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));pi("onBeforeInput",["compositionend","keypress","textInput","paste"]);pi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));pi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));pi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var aa="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(" "),R_=new Set("cancel close invalid load scroll toggle".split(" ").concat(aa));function iy(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Nk(r,t,void 0,e),e.currentTarget=null}
vendor: 4,874 bytes, line 38
38function mw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;iy(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;iy(s,a,u),i=l}}}if(qu)throw e=jf,qu=!1,jf=null,e}function Te(e,t){var n=t[Wf];n===void 0&&(n=t[Wf]=new Set);var r=e+"__bubble";n.has(r)||(gw(t,e,2,!1),n.add(r))}function Id(e,t,n){var r=0;t&&(r|=4),gw(n,e,r,t)}var Zl="_reactListening"+Math.random().toString(36).slice(2);function Ma(e){if(!e[Zl]){e[Zl]=!0,C1.forEach(function(n){n!=="selectionchange"&&(R_.has(n)||Id(n,!1,e),Id(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zl]||(t[Zl]=!0,Id("selectionchange",!1,t))}}function gw(e,t,n,r){switch(J1(t)){case 1:var s=Hk;break;case 4:s=Kk;break;default:s=Xp}n=s.bind(null,t,n,e),s=void 0,!Lf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ld(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Fs(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}F1(function(){var u=i,c=qp(n),d=[];e:{var h=pw.get(e);if(h!==void 0){var m=em,v=e;switch(e){case"keypress":if(Su(n)===0)break e;case"keydown":case"keyup":m=a_;break;case"focusin":v="focus",m=_d;break;case"focusout":v="blur",m=_d;break;case"beforeblur":case"afterblur":m=_d;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":m=Gg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Qk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=c_;break;case cw:case dw:case fw:m=Xk;break;case hw:m=f_;break;case"scroll":m=Gk;break;case"wheel":m=p_;break;case"copy":case"cut":case"paste":m=e_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Qg}var x=(t&4)!==0,b=!x&&e==="scroll",y=x?h!==null?h+"Capture":null:h;x=[];for(var g=u,w;g!==null;){w=g;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,y!==null&&(S=Ra(g,y),S!=null&&x.push(Va(g,S,w)))),b)break;g=g.return}0<x.length&&(h=new m(h,v,null,n,c),d.push({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&n!==Rf&&(v=n.relatedTarget||n.fromElement)&&(Fs(v)||v[Tr]))break e;if((m||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=u,v=v?Fs(v):null,v!==null&&(b=mi(v),v!==b||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=u),m!==v)){if(x=Gg,S="onMouseLeave",y="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(x=Qg,S="onPointerLeave",y="onPointerEnter",g="pointer"),b=m==null?h:Li(m),w=v==null?h:Li(v),h=new x(S,g+"leave",m,n,c),h.target=b,h.relatedTarget=w,S=null,Fs(c)===u&&(x=new x(y,g+"enter",v,n,c),x.target=w,x.relatedTarget=b,S=x),b=S,m&&v)t:{for(x=m,y=v,g=0,w=x;w;w=yi(w))g++;for(w=0,S=y;S;S=yi(S))w++;for(;0<g-w;)x=yi(x),g--;for(;0<w-g;)y=yi(y),w--;for(;g--;){if(x===y||y!==null&&x===y.alternate)break t;x=yi(x),y=yi(y)}x=null}else x=null;m!==null&&oy(d,h,m,x,!1),v!==null&&b!==null&&oy(d,b,v,x,!0)}}e:{if(h=u?Li(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var _=b_;else if(Xg(h))if(iw)_=k_;else{_=C_;var A=S_}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(_=E_);if(_&&(_=_(e,u))){sw(d,_,n,c);break e}A&&A(e,h,u),e==="focusout"&&(A=h._wrapperState)&&A.controlled&&h.type==="number"&&_f(h,"number",h.value)}switch(A=u?Li(u):window,e){case"focusin":(Xg(A)||A.contentEditable==="true")&&(Ri=A,Vf=u,ya=null);break;case"focusout":ya=Vf=Ri=null;break;case"mousedown":Ff=!0;break;case"contextmenu":case"mouseup":case"dragend":Ff=!1,ry(d,n,c);break;case"selectionchange":if(P_)break;case"keydown":case"keyup":ry(d,n,c)}var N;if(nm)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Ai?nw(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");
vendor: 4,809 bytes, lines 38-39
38E&&(tw&&n.locale!=="ko"&&(Ai||E!=="onCompositionStart"?E==="onCompositionEnd"&&Ai&&(N=ew()):(ss=c,Jp="value"in ss?ss.value:ss.textContent,Ai=!0)),A=Ju(u,E),0<A.length&&(E=new qg(E,e,null,n,c),d.push({event:E,listeners:A}),N?E.data=N:(N=rw(n),N!==null&&(E.data=N)))),(N=g_?y_(e,n):v_(e,n))&&(u=Ju(u,"onBeforeInput"),0<u.length&&(c=new qg("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=N))}mw(d,t)})}function Va(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ju(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ra(e,n),i!=null&&r.unshift(Va(e,i,s)),i=Ra(e,t),i!=null&&r.push(Va(e,i,s))),e=e.return}return r}function yi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oy(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=Ra(n,i),l!=null&&o.unshift(Va(n,l,a))):s||(l=Ra(n,i),l!=null&&o.push(Va(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var I_=/\r\n?/g,L_=/\u0000|\uFFFD/g;function ay(e){return(typeof e=="string"?e:""+e).replace(I_,`
39`).replace(L_,"")}function Yl(e,t,n){if(t=ay(t),ay(e)!==t&&n)throw Error(O(425))}function ec(){}var zf=null,Uf=null;function $f(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 Bf=typeof setTimeout=="function"?setTimeout:void 0,j_=typeof clearTimeout=="function"?clearTimeout:void 0,ly=typeof Promise=="function"?Promise:void 0,O_=typeof queueMicrotask=="function"?queueMicrotask:typeof ly<"u"?function(e){return ly.resolve(null).then(e).catch(D_)}:Bf;function D_(e){setTimeout(function(){throw e})}function jd(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),ja(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ja(t)}function fs(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 uy(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 Do=Math.random().toString(36).slice(2),Xn="__reactFiber$"+Do,Fa="__reactProps$"+Do,Tr="__reactContainer$"+Do,Wf="__reactEvents$"+Do,M_="__reactListeners$"+Do,V_="__reactHandles$"+Do;function Fs(e){var t=e[Xn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tr]||n[Xn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=uy(e);e!==null;){if(n=e[Xn])return n;e=uy(e)}return t}e=n,n=e.parentNode}return null}function _l(e){return e=e[Xn]||e[Tr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Li(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Zc(e){return e[Fa]||null}var Hf=[],ji=-1;function Ts(e){return{current:e}}function Ae(e){0>ji||(e.current=Hf[ji],Hf[ji]=null,ji--)}function ke(e,t){ji++,Hf[ji]=e.current,e.current=t}var bs={},Tt=Ts(bs),Wt=Ts(!1),li=bs;function xo(e,t){var n=e.type.contextTypes;if(!n)return bs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ht(e){return e=e.childContextTypes,e!=null}function tc(){Ae(Wt),Ae(Tt)}function cy(e,t,n){if(Tt.current!==bs)throw Error(O(168));ke(Tt,t),ke(Wt,n)}function yw(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(O(108,Sk(e)||"Unknown",s));return Ve({},n,r)}function nc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bs,li=Tt.current,ke(Tt,e),ke(Wt,Wt.current),!0}function dy(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=yw(e,t,li),r.__reactInternalMemoizedMergedChildContext=e,Ae(Wt),Ae(Tt),ke(Tt,e)):Ae(Wt),ke(Wt,n)}var fr=null,Yc=!1,Od=!1;function vw(e){fr===null?fr=[e]:fr.push(e)}function F_(e){Yc=!0,vw(e)}function Ps(){if(!Od&&fr!==null){Od=!0;var e=0,t=we;try{var n=fr;for(we=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}fr=null,Yc=!1}catch(s){throw fr!==null&&(fr=fr.slice(e+1)),B1(Qp,Ps),s}finally{we=t,Od=!1}}return null}var Oi=[],Di=0,rc=null,sc=0,hn=[],pn=0,ui=null,wr=1,br="";function Os(e,t){Oi[Di++]=sc,Oi[Di++]=rc,rc=e,sc=t}function xw(e,t,n){hn[pn++]=wr,hn[pn++]=br,hn[pn++]=ui,ui=e;var r=wr;e=br;var s=32-Vn(r)-1;r&=~(1<<s),n+=1;var i=32-Vn(t)+s;
vendor: 24,741 bytes, lines 39-41
39if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,wr=1<<32-Vn(t)+s|n<<s|r,br=i+e}else wr=1<<i|n<<s|r,br=e}function sm(e){e.return!==null&&(Os(e,1),xw(e,1,0))}function im(e){for(;e===rc;)rc=Oi[--Di],Oi[Di]=null,sc=Oi[--Di],Oi[Di]=null;for(;e===ui;)ui=hn[--pn],hn[pn]=null,br=hn[--pn],hn[pn]=null,wr=hn[--pn],hn[pn]=null}var en=null,Jt=null,Le=!1,Dn=null;function ww(e,t){var n=mn(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 fy(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,en=e,Jt=fs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,en=e,Jt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ui!==null?{id:wr,overflow:br}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,en=e,Jt=null,!0):!1;default:return!1}}function Kf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Gf(e){if(Le){var t=Jt;if(t){var n=t;if(!fy(e,t)){if(Kf(e))throw Error(O(418));t=fs(n.nextSibling);var r=en;t&&fy(e,t)?ww(r,n):(e.flags=e.flags&-4097|2,Le=!1,en=e)}}else{if(Kf(e))throw Error(O(418));e.flags=e.flags&-4097|2,Le=!1,en=e}}}function hy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;en=e}function Xl(e){if(e!==en)return!1;if(!Le)return hy(e),Le=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$f(e.type,e.memoizedProps)),t&&(t=Jt)){if(Kf(e))throw bw(),Error(O(418));for(;t;)ww(e,t),t=fs(t.nextSibling)}if(hy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Jt=fs(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Jt=null}}else Jt=en?fs(e.stateNode.nextSibling):null;return!0}function bw(){for(var e=Jt;e;)e=fs(e.nextSibling)}function wo(){Jt=en=null,Le=!1}function om(e){Dn===null?Dn=[e]:Dn.push(e)}var z_=Rr.ReactCurrentBatchConfig;function qo(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(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function Jl(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function py(e){var t=e._init;return t(e._payload)}function Sw(e){function t(y,g){if(e){var w=y.deletions;w===null?(y.deletions=[g],y.flags|=16):w.push(g)}}function n(y,g){if(!e)return null;for(;g!==null;)t(y,g),g=g.sibling;return null}function r(y,g){for(y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function s(y,g){return y=gs(y,g),y.index=0,y.sibling=null,y}function i(y,g,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<g?(y.flags|=2,g):w):(y.flags|=2,g)):(y.flags|=1048576,g)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,g,w,S){return g===null||g.tag!==6?(g=$d(w,y.mode,S),g.return=y,g):(g=s(g,w),g.return=y,g)}function l(y,g,w,S){var _=w.type;return _===Ni?c(y,g,w.props.children,S,w.key):g!==null&&(g.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===$r&&py(_)===g.type)?(S=s(g,w.props),S.ref=qo(y,g,w),S.return=y,S):(S=Nu(w.type,w.key,w.props,null,y.mode,S),S.ref=qo(y,g,w),S.return=y,S)}function u(y,g,w,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=Bd(w,y.mode,S),g.return=y,g):(g=s(g,w.children||[]),g.return=y,g)}function c(y,g,w,S,_){return g===null||g.tag!==7?(g=ii(w,y.mode,S,_),g.return=y,g):(g=s(g,w),g.return=y,g)}function d(y,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=$d(""+g,y.mode,w),g.return=y,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case $l:return w=Nu(g.type,g.key,g.props,null,y.mode,w),w.ref=qo(y,null,g),w.return=y,w;case Pi:return g=Bd(g,y.mode,w),g.return=y,g;case $r:var S=g._init;return d(y,S(g._payload),w)}if(ia(g)||Bo(g))return g=ii(g,y.mode,w,null),g.return=y,g;Jl(y,g)}return null}function h(y,g,w,S){var _=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return _!==null?null:a(y,g,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case $l:return w.key===_?l(y,g,w,S):null;case Pi:return w.key===_?u(y,g,w,S):null;case $r:return _=w._init,h(y,g,_(w._payload),S)}if(ia(w)||Bo(w))return _!==null?null:c(y,g,w,S,null);Jl(y,w)}return null}function m(y,g,w,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(w)||null,a(g,y,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case $l:return y=y.get(S.key===null?w:S.key)||null,l(g,y,S,_);case Pi:return y=y.get(S.key===null?w:S.key)||null,u(g,y,S,_);case $r:var A=S._init;return m(y,g,w,A(S._payload),_)}if(ia(S)||Bo(S))return y=y.get(w)||null,c(g,y,S,_,null);Jl(g,S)}return null}function v(y,g,w,S){for(var _=null,A=null,N=g,E=g=0,V=null;N!==null&&E<w.length;E++){N.index>E?(V=N,N=null):V=N.sibling;var L=h(y,N,w[E],S);if(L===null){N===null&&(N=V);break}e&&N&&L.alternate===null&&t(y,N),g=i(L,g,E),A===null?_=L:A.sibling=L,A=L,N=V}if(E===w.length)return n(y,N),Le&&Os(y,E),_;if(N===null){for(;E<w.length;E++)N=d(y,w[E],S),N!==null&&(g=i(N,g,E),A===null?_=N:A.sibling=N,A=N);return Le&&Os(y,E),_}for(N=r(y,N);E<w.length;E++)V=m(N,y,E,w[E],S),V!==null&&(e&&V.alternate!==null&&N.delete(V.key===null?E:V.key),g=i(V,g,E),A===null?_=V:A.sibling=V,A=V);return e&&N.forEach(function(q){return t(y,q)}),Le&&Os(y,E),_}function x(y,g,w,S){var _=Bo(w);if(typeof _!="function")throw Error(O(150));if(w=_.call(w),w==null)throw Error(O(151));for(var A=_=null,N=g,E=g=0,V=null,L=w.next();N!==null&&!L.done;E++,L=w.next()){N.index>E?(V=N,N=null):V=N.sibling;var q=h(y,N,L.value,S);if(q===null){N===null&&(N=V);break}e&&N&&q.alternate===null&&t(y,N),g=i(q,g,E),A===null?_=q:A.sibling=q,A=q,N=V}if(L.done)return n(y,N),Le&&Os(y,E),_;if(N===null){for(;!L.done;E++,L=w.next())L=d(y,L.value,S),L!==null&&(g=i(L,g,E),A===null?_=L:A.sibling=L,A=L);return Le&&Os(y,E),_}for(N=r(y,N);!L.done;E++,L=w.next())L=m(N,y,E,L.value,S),L!==null&&(e&&L.alternate!==null&&N.delete(L.key===null?E:L.key),g=i(L,g,E),A===null?_=L:A.sibling=L,A=L);return e&&N.forEach(function(ce){return t(y,ce)}),Le&&Os(y,E),_}function b(y,g,w,S){if(typeof w=="object"&&w!==null&&w.type===Ni&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case $l:e:{for(var _=w.key,A=g;A!==null;){if(A.key===_){if(_=w.type,_===Ni){if(A.tag===7){n(y,A.sibling),g=s(A,w.props.children),g.return=y,y=g;break e}}else if(A.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===$r&&py(_)===A.type){n(y,A.sibling),g=s(A,w.props),g.ref=qo(y,A,w),g.return=y,y=g;break e}n(y,A);break}else t(y,A);A=A.sibling}w.type===Ni?(g=ii(w.props.children,y.mode,S,w.key),g.return=y,y=g):(S=Nu(w.type,w.key,w.props,null,y.mode,S),S.ref=qo(y,g,w),S.return=y,y=S)}return o(y);case Pi:e:{for(A=w.key;g!==null;){if(g.key===A)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(y,g.sibling),g=s(g,w.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=Bd(w,y.mode,S),g.return=y,y=g}return o(y);case $r:return A=w._init,b(y,g,A(w._payload),S)}if(ia(w))return v(y,g,w,S);if(Bo(w))return x(y,g,w,S);Jl(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(y,g.sibling),g=s(g,w),g.return=y,y=g):(n(y,g),g=$d(w,y.mode,S),g.return=y,y=g),o(y)):n(y,g)}return b}var bo=Sw(!0),Cw=Sw(!1),ic=Ts(null),oc=null,Mi=null,am=null;function lm(){am=Mi=oc=null}function um(e){var t=ic.current;Ae(ic),e._currentValue=t}function qf(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 qi(e,t){oc=e,am=Mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Bt=!0),e.firstContext=null)}function wn(e){var t=e._currentValue;if(am!==e)if(e={context:e,memoizedValue:t,next:null},Mi===null){if(oc===null)throw Error(O(308));Mi=e,oc.dependencies={lanes:0,firstContext:e}}else Mi=Mi.next=e;return t}var zs=null;function cm(e){zs===null?zs=[e]:zs.push(e)}function Ew(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,cm(t)):(n.next=s.next,s.next=n),t.interleaved=n,Pr(e,r)}function Pr(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 Br=!1;function dm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kw(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 hs(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,he&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Pr(e,n)}return s=r.interleaved,s===null?(t.next=t,cm(r)):(t.next=s.next,s.next=t),r.interleaved=t,Pr(e,n)}function Cu(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,Zp(e,n)}}function my(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,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 ac(e,t,n,r){var s=e.updateQueue;Br=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,c=u=l=null,a=i;do{var h=a.lane,m=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,x=a;switch(h=t,m=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){d=v.call(m,d,h);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,h=typeof v=="function"?v.call(m,d,h):v,h==null)break e;d=Ve({},d,h);break e;case 2:Br=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else m={eventTime:m,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(c===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);di|=o,e.lanes=o,e.memoizedState=d}}function gy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(O(191,s));s.call(r)}}}var Tl={},nr=Ts(Tl),za=Ts(Tl),Ua=Ts(Tl);function Us(e){if(e===Tl)throw Error(O(174));return e}function fm(e,t){switch(ke(Ua,t),ke(za,e),ke(nr,Tl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pf(t,e)}Ae(nr),ke(nr,t)}function So(){Ae(nr),Ae(za),Ae(Ua)}function _w(e){Us(Ua.current);var t=Us(nr.current),n=Pf(t,e.type);t!==n&&(ke(za,e),ke(nr,n))}function hm(e){za.current===e&&(Ae(nr),Ae(za))}var De=Ts(0);function lc(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 Dd=[];function pm(){for(var e=0;e<Dd.length;e++)Dd[e]._workInProgressVersionPrimary=null;Dd.length=0}var Eu=Rr.ReactCurrentDispatcher,Md=Rr.ReactCurrentBatchConfig,ci=0,Me=null,st=null,ut=null,uc=!1,va=!1,$a=0,U_=0;function wt(){throw Error(O(321))}function mm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Un(e[n],t[n]))return!1;return!0}function gm(e,t,n,r,s,i){if(ci=i,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Eu.current=e===null||e.memoizedState===null?H_:K_,e=n(r,s),va){i=0;do{if(va=!1,$a=0,25<=i)throw Error(O(301));i+=1,ut=st=null,t.updateQueue=null,Eu.current=G_,e=n(r,s)}while(va)}if(Eu.current=cc,t=st!==null&&st.next!==null,ci=0,ut=st=Me=null,uc=!1,t)throw Error(O(300));return e}function ym(){var e=$a!==0;return $a=0,e}function Wn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Me.memoizedState=ut=e:ut=ut.next=e,ut}function bn(){if(st===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=st.next;var t=ut===null?Me.memoizedState:ut.next;if(t!==null)ut=t,st=e;else{if(e===null)throw Error(O(310));st=e,e={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},ut===null?Me.memoizedState=ut=e:ut=ut.next=e}return ut}function Ba(e,t){return typeof t=="function"?t(e):t}function Vd(e){var t=bn(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=st,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var c=u.lane;if((ci&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,Me.lanes|=c,di|=c}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,Un(r,t.memoizedState)||(Bt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Me.lanes|=i,di|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Fd(e){var t=bn(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Un(i,t.memoizedState)||(Bt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Tw(){}function Pw(e,t){var n=Me,r=bn(),s=t(),i=!Un(r.memoizedState,s);if(i&&(r.memoizedState=s,Bt=!0),r=r.queue,vm(Rw.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ut!==null&&ut.memoizedState.tag&1){if(n.flags|=2048,Wa(9,Aw.bind(null,n,r,s,t),void 0,null),ct===null)throw Error(O(349));ci&30||Nw(n,t,s)}return s}function Nw(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Aw(e,t,n,r){t.value=n,t.getSnapshot=r,Iw(t)&&Lw(e)}function Rw(e,t,n){return n(function(){Iw(t)&&Lw(e)})}function Iw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Un(e,n)}catch{return!0}}function Lw(e){var t=Pr(e,1);t!==null&&Fn(t,e,1,-1)}function yy(e){var t=Wn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ba,lastRenderedState:e},t.queue=e,e=e.dispatch=W_.bind(null,Me,e),[t.memoizedState,e]}function Wa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.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 jw(){return bn().memoizedState}function ku(e,t,n,r){var s=Wn();Me.flags|=e,s.memoizedState=Wa(1|t,n,void 0,r===void 0?null:r)}function Xc(e,t,n,r){var s=bn();r=r===void 0?null:r;var i=void 0;if(st!==null){var o=st.memoizedState;if(i=o.destroy,r!==null&&mm(r,o.deps)){s.memoizedState=Wa(t,n,i,r);return}}Me.flags|=e,s.memoizedState=Wa(1|t,n,i,r)}function vy(e,t){return ku(8390656,8,e,t)}function vm(e,t){return Xc(2048,8,e,t)}function Ow(e,t){return Xc(4,2,e,t)}function Dw(e,t){return Xc(4,4,e,t)}function Mw(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 Vw(e,t,n){return n=n!=null?n.concat([e]):null,Xc(4,4,Mw.bind(null,t,e),n)}function xm(){}function Fw(e,t){var n=bn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&mm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function zw(e,t){var n=bn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&mm(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Uw(e,t,n){return ci&21?(Un(n,t)||(n=K1(),Me.lanes|=n,di|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Bt=!0),e.memoizedState=n)}function $_(e,t){var n=we;we=n!==0&&4>n?n:4,e(!0);var r=Md.transition;Md.transition={};try{e(!1),t()}finally{we=n,Md.transition=r}}function $w(){return bn().memoizedState}function B_(e,t,n){var r=ms(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bw(e))Ww(t,n);else if(n=Ew(e,t,n,r),n!==null){var s=Ot();Fn(n,e,r,s),Hw(n,t,r)}}function W_(e,t,n){var r=ms(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bw(e))Ww(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,Un(a,o)){var l=t.interleaved;l===null?(s.next=s,cm(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=Ew(e,t,s,r),n!==null&&(s=Ot(),Fn(n,e,r,s),Hw(n,t,r))}}function Bw(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function Ww(e,t){va=uc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zp(e,n)}}var cc={readContext:wn,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},H_={readContext:wn,useCallback:function(e,t){return Wn().memoizedState=[e,t===void 0?null:t],e},useContext:wn,useEffect:vy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ku(4194308,4,Mw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ku(4194308,4,e,t)},useInsertionEffect:function(e,t){return ku(4,2,e,t)},useMemo:function(e,t){var n=Wn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wn();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=B_.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=Wn();return e={current:e},t.memoizedState=e},useState:yy,useDebugValue:xm,useDeferredValue:function(e){return Wn().memoizedState=e},useTransition:function(){var e=yy(!1),t=e[0];return e=$_.bind(null,e[1]),Wn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,s=Wn();if(Le){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),ct===null)throw Error(O(349));ci&30||Nw(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,vy(Rw.bind(null,r,i,e),[e]),r.flags|=2048,Wa(9,Aw.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Wn(),t=ct.identifierPrefix;if(Le){var n=br,r=wr;n=(r&~(1<<32-Vn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$a++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=U_++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},K_={readContext:wn,useCallback:Fw,useContext:wn,useEffect:vm,useImperativeHandle:Vw,useInsertionEffect:Ow,useLayoutEffect:Dw,useMemo:zw,useReducer:Vd,useRef:jw,useState:function(){return Vd(Ba)},useDebugValue:xm,useDeferredValue:function(e){var t=bn();return Uw(t,st.memoizedState,e)},useTransition:function(){var e=Vd(Ba)[0],t=bn().memoizedState;return[e,t]},useMutableSource:Tw,useSyncExternalStore:Pw,useId:$w,unstable_isNewReconciler:!1},G_={readContext:wn,useCallback:Fw,useContext:wn,useEffect:vm,useImperativeHandle:Vw,useInsertionEffect:Ow,useLayoutEffect:Dw,useMemo:zw,useReducer:Fd,useRef:jw,useState:function(){return Fd(Ba)},useDebugValue:xm,useDeferredValue:function(e){var t=bn();return st===null?t.memoizedState=e:Uw(t,st.memoizedState,e)},useTransition:function(){var e=Fd(Ba)[0],t=bn().memoizedState;return[e,t]},useMutableSource:Tw,useSyncExternalStore:Pw,useId:$w,unstable_isNewReconciler:!1};function Pn(e,t){if(e&&e.defaultProps){t=Ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Qf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Jc={isMounted:function(e){return(e=e._reactInternals)?mi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ot(),s=ms(e),i=Cr(r,s);i.payload=t,n!=null&&(i.callback=n),t=hs(e,i,s),t!==null&&(Fn(t,e,s,r),Cu(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ot(),s=ms(e),i=Cr(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=hs(e,i,s),t!==null&&(Fn(t,e,s,r),Cu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ot(),r=ms(e),s=Cr(n,r);s.tag=2,t!=null&&(s.callback=t),t=hs(e,s,r),t!==null&&(Fn(t,e,r,n),Cu(t,e,r))}};function xy(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Da(n,r)||!Da(s,i):!0}function Kw(e,t,n){var r=!1,s=bs,i=t.contextType;return typeof i=="object"&&i!==null?i=wn(i):(s=Ht(t)?li:Tt.current,r=t.contextTypes,i=(r=r!=null)?xo(e,s):bs),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Jc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function wy(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&&Jc.enqueueReplaceState(t,t.state,null)}function Zf(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},dm(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=wn(i):(i=Ht(t)?li:Tt.current,s.context=xo(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Qf(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Jc.enqueueReplaceState(s,s.state,null),ac(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Co(e,t){try{var n="",r=t;do n+=bk(r),r=r.return;while(r);var s=n}catch(i){s=`
40Error generating stack: `+i.message+`
41`+i.stack}return{value:e,source:t,stack:s,digest:null}}function zd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Yf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var q_=typeof WeakMap=="function"?WeakMap:Map;function Gw(e,t,n){n=Cr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fc||(fc=!0,ah=r),Yf(e,t)},n}
vendor: 11,411 bytes, line 41
41function qw(e,t,n){n=Cr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Yf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Yf(e,t),typeof r!="function"&&(ps===null?ps=new Set([this]):ps.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function by(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new q_;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=lT.bind(null,e,t,n),t.then(e,e))}function Sy(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 Cy(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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,hs(n,t,1))),n.lanes|=1),e)}var Q_=Rr.ReactCurrentOwner,Bt=!1;function It(e,t,n,r){t.child=e===null?Cw(t,null,n,r):bo(t,e.child,n,r)}function Ey(e,t,n,r,s){n=n.render;var i=t.ref;return qi(t,s),r=gm(e,t,n,r,i,s),n=ym(),e!==null&&!Bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Nr(e,t,s)):(Le&&n&&sm(t),t.flags|=1,It(e,t,r,s),t.child)}function ky(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Tm(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Qw(e,t,i,r,s)):(e=Nu(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Da,n(o,r)&&e.ref===t.ref)return Nr(e,t,s)}return t.flags|=1,e=gs(i,r),e.ref=t.ref,e.return=t,t.child=e}function Qw(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Da(i,r)&&e.ref===t.ref)if(Bt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Bt=!0);else return t.lanes=e.lanes,Nr(e,t,s)}return Xf(e,t,n,r,s)}function Zw(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ke(Fi,Zt),Zt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ke(Fi,Zt),Zt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ke(Fi,Zt),Zt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ke(Fi,Zt),Zt|=r;return It(e,t,s,n),t.child}function Yw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xf(e,t,n,r,s){var i=Ht(n)?li:Tt.current;return i=xo(t,i),qi(t,s),n=gm(e,t,n,r,i,s),r=ym(),e!==null&&!Bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Nr(e,t,s)):(Le&&r&&sm(t),t.flags|=1,It(e,t,n,s),t.child)}function _y(e,t,n,r,s){if(Ht(n)){var i=!0;nc(t)}else i=!1;if(qi(t,s),t.stateNode===null)_u(e,t),Kw(t,n,r),Zf(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=wn(u):(u=Ht(n)?li:Tt.current,u=xo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&wy(t,o,r,u),Br=!1;var h=t.memoizedState;o.state=h,ac(t,r,o,s),l=t.memoizedState,a!==r||h!==l||Wt.current||Br?(typeof c=="function"&&(Qf(t,n,c,r),l=t.memoizedState),(a=Br||xy(t,n,a,r,h,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,kw(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Pn(t.type,a),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=wn(l):(l=Ht(n)?li:Tt.current,l=xo(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&wy(t,o,r,l),Br=!1,h=t.memoizedState,o.state=h,ac(t,r,o,s);var v=t.memoizedState;a!==d||h!==v||Wt.current||Br?(typeof m=="function"&&(Qf(t,n,m,r),v=t.memoizedState),(u=Br||xy(t,n,u,r,h,v,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Jf(e,t,n,r,i,s)}function Jf(e,t,n,r,s,i){Yw(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&dy(t,n,!1),Nr(e,t,i);r=t.stateNode,Q_.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=bo(t,e.child,null,i),t.child=bo(t,null,a,i)):It(e,t,a,i),t.memoizedState=r.state,s&&dy(t,n,!0),t.child}function Xw(e){var t=e.stateNode;t.pendingContext?cy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cy(e,t.context,!1),fm(e,t.containerInfo)}function Ty(e,t,n,r,s){return wo(),om(s),t.flags|=256,It(e,t,n,r),t.child}var eh={dehydrated:null,treeContext:null,retryLane:0};function th(e){return{baseLanes:e,cachePool:null,transitions:null}}function Jw(e,t,n){var r=t.pendingProps,s=De.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ke(De,s&1),e===null)return Gf(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):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=nd(o,r,0,null),e=ii(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=th(n),t.memoizedState=eh,e):wm(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Z_(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=gs(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=gs(a,i):(i=ii(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?th(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=eh,r}return i=e.child,e=i.sibling,r=gs(i,{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 wm(e,t){return t=nd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eu(e,t,n,r){return r!==null&&om(r),bo(t,e.child,null,n),e=wm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Z_(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=zd(Error(O(422))),eu(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=nd({mode:"visible",children:r.children},s,0,null),i=ii(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&bo(t,e.child,null,o),t.child.memoizedState=th(o),t.memoizedState=eh,i);if(!(t.mode&1))return eu(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(O(419)),r=zd(i,r,void 0),eu(e,t,o,r)}if(a=(o&e.childLanes)!==0,Bt||a){if(r=ct,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Pr(e,s),Fn(r,e,s,-1))}return _m(),r=zd(Error(O(421))),eu(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=uT.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Jt=fs(s.nextSibling),en=t,Le=!0,Dn=null,e!==null&&(hn[pn++]=wr,hn[pn++]=br,hn[pn++]=ui,wr=e.id,br=e.overflow,ui=t),t=wm(t,r.children),t.flags|=4096,t)}function Py(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qf(e.return,t,n)}function Ud(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function eb(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(It(e,t,r.children,n),r=De.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&&Py(e,n,t);else if(e.tag===19)Py(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(ke(De,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&lc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ud(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&lc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ud(t,!0,n,null,i);break;case"together":Ud(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _u(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Nr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),di|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=gs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Y_(e,t,n){switch(t.tag){case 3:Xw(t),wo();break;case 5:_w(t);break;case 1:Ht(t.type)&&nc(t);break;case 4:fm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ke(ic,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ke(De,De.current&1),t.flags|=128,null):n&t.child.childLanes?Jw(e,t,n
vendor: 4,178 bytes, line 41
41):(ke(De,De.current&1),e=Nr(e,t,n),e!==null?e.sibling:null);ke(De,De.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return eb(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ke(De,De.current),r)break;return null;case 22:case 23:return t.lanes=0,Zw(e,t,n)}return Nr(e,t,n)}var tb,nh,nb,rb;tb=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}};nh=function(){};nb=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Us(nr.current);var i=null;switch(n){case"input":s=Ef(e,s),r=Ef(e,r),i=[];break;case"select":s=Ve({},s,{value:void 0}),r=Ve({},r,{value:void 0}),i=[];break;case"textarea":s=Tf(e,s),r=Tf(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ec)}Nf(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Na.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Na.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Te("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};rb=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qo(e,t){if(!Le)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 bt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function X_(e,t,n){var r=t.pendingProps;switch(im(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(t),null;case 1:return Ht(t.type)&&tc(),bt(t),null;case 3:return r=t.stateNode,So(),Ae(Wt),Ae(Tt),pm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Xl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dn!==null&&(ch(Dn),Dn=null))),nh(e,t),bt(t),null;case 5:hm(t);var s=Us(Ua.current);if(n=t.type,e!==null&&t.stateNode!=null)nb(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return bt(t),null}if(e=Us(nr.current),Xl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Xn]=t,r[Fa]=i,e=(t.mode&1)!==0,n){case"dialog":Te("cancel",r),Te("close",r);break;case"iframe":case"object":case"embed":Te("load",r);break;case"video":case"audio":for(s=0;s<aa.length;s++)Te(aa[s],r);break;case"source":Te("error",r);break;case"img":case"image":case"link":Te("error",r),Te("load",r);break;case"details":Te("toggle",r);break;case"input":Mg(r,i),Te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Te("invalid",r);break;case"textarea":Fg(r,i),Te("invalid",r)}Nf(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];
vendor: 28,896 bytes, line 41
41o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Yl(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Yl(r.textContent,a,e),s=["children",""+a]):Na.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Te("scroll",r)}switch(n){case"input":Bl(r),Vg(r,i,!0);break;case"textarea":Bl(r),zg(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ec)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=R1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Xn]=t,e[Fa]=r,tb(e,t,!1,!1),t.stateNode=e;e:{switch(o=Af(n,r),n){case"dialog":Te("cancel",e),Te("close",e),s=r;break;case"iframe":case"object":case"embed":Te("load",e),s=r;break;case"video":case"audio":for(s=0;s<aa.length;s++)Te(aa[s],e);s=r;break;case"source":Te("error",e),s=r;break;case"img":case"image":case"link":Te("error",e),Te("load",e),s=r;break;case"details":Te("toggle",e),s=r;break;case"input":Mg(e,r),s=Ef(e,r),Te("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Ve({},r,{value:void 0}),Te("invalid",e);break;case"textarea":Fg(e,r),s=Tf(e,r),Te("invalid",e);break;default:s=r}Nf(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?j1(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&I1(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Aa(e,l):typeof l=="number"&&Aa(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Na.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Te("scroll",e):l!=null&&Wp(e,i,l,o))}switch(n){case"input":Bl(e),Vg(e,r,!1);break;case"textarea":Bl(e),zg(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ws(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Wi(e,!!r.multiple,i,!1):r.defaultValue!=null&&Wi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=ec)}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 bt(t),null;case 6:if(e&&t.stateNode!=null)rb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=Us(Ua.current),Us(nr.current),Xl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Xn]=t,(i=r.nodeValue!==n)&&(e=en,e!==null))switch(e.tag){case 3:Yl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Xn]=t,t.stateNode=r}return bt(t),null;case 13:if(Ae(De),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Le&&Jt!==null&&t.mode&1&&!(t.flags&128))bw(),wo(),t.flags|=98560,i=!1;else if(i=Xl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(O(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(O(317));i[Xn]=t}else wo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;bt(t),i=!1}else Dn!==null&&(ch(Dn),Dn=null),i=!0;if(!i)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||De.current&1?it===0&&(it=3):_m())),t.updateQueue!==null&&(t.flags|=4),bt(t),null);case 4:return So(),nh(e,t),e===null&&Ma(t.stateNode.containerInfo),bt(t),null;case 10:return um(t.type._context),bt(t),null;case 17:return Ht(t.type)&&tc(),bt(t),null;case 19:if(Ae(De),i=t.memoizedState,i===null)return bt(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Qo(i,!1);else{if(it!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=lc(e),o!==null){for(t.flags|=128,Qo(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ke(De,De.current&1|2),t.child}e=e.sibling}i.tail!==null&&Qe()>Eo&&(t.flags|=128,r=!0,Qo(i,!1),t.lanes=4194304)}else{if(!r)if(e=lc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Le)return bt(t),null}else 2*Qe()-i.renderingStartTime>Eo&&n!==1073741824&&(t.flags|=128,r=!0,Qo(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Qe(),t.sibling=null,n=De.current,ke(De,r?n&1|2:n&1),t):(bt(t),null);case 22:case 23:return km(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Zt&1073741824&&(bt(t),t.subtreeFlags&6&&(t.flags|=8192)):bt(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function J_(e,t){switch(im(t),t.tag){case 1:return Ht(t.type)&&tc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return So(),Ae(Wt),Ae(Tt),pm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hm(t),null;case 13:if(Ae(De),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(De),null;case 4:return So(),null;case 10:return um(t.type._context),null;case 22:case 23:return km(),null;case 24:return null;default:return null}}var tu=!1,kt=!1,eT=typeof WeakSet=="function"?WeakSet:Set,B=null;function Vi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){We(e,t,r)}else n.current=null}function rh(e,t,n){try{n()}catch(r){We(e,t,r)}}var Ny=!1;function tT(e,t){if(zf=Yu,e=lw(),rm(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 s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var m;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(m=d.firstChild)!==null;)h=d,d=m;for(;;){if(d===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++c===r&&(l=o),(m=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uf={focusedElem:e,selectionRange:n},Yu=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,b=v.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:Pn(t.type,x),b);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(S){We(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return v=Ny,Ny=!1,v}function xa(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&rh(t,n,i)}s=s.next}while(s!==r)}}function ed(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 sh(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 sb(e){var t=e.alternate;t!==null&&(e.alternate=null,sb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xn],delete t[Fa],delete t[Wf],delete t[M_],delete t[V_])),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 ib(e){return e.tag===5||e.tag===3||e.tag===4}function Ay(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ib(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 ih(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=ec));else if(r!==4&&(e=e.child,e!==null))for(ih(e,t,n),e=e.sibling;e!==null;)ih(e,t,n),e=e.sibling}function oh(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(oh(e,t,n),e=e.sibling;e!==null;)oh(e,t,n),e=e.sibling}var ht=null,On=!1;function jr(e,t,n){for(n=n.child;n!==null;)ob(e,t,n),n=n.sibling}function ob(e,t,n){if(tr&&typeof tr.onCommitFiberUnmount=="function")try{tr.onCommitFiberUnmount(Kc,n)}catch{}switch(n.tag){case 5:kt||Vi(n,t);case 6:var r=ht,s=On;ht=null,jr(e,t,n),ht=r,On=s,ht!==null&&(On?(e=ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ht.removeChild(n.stateNode));break;case 18:ht!==null&&(On?(e=ht,n=n.stateNode,e.nodeType===8?jd(e.parentNode,n):e.nodeType===1&&jd(e,n),ja(e)):jd(ht,n.stateNode));break;case 4:r=ht,s=On,ht=n.stateNode.containerInfo,On=!0,jr(e,t,n),ht=r,On=s;break;case 0:case 11:case 14:case 15:if(!kt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&rh(n,t,o),s=s.next}while(s!==r)}jr(e,t,n);break;case 1:if(!kt&&(Vi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){We(n,t,a)}jr(e,t,n);break;case 21:jr(e,t,n);break;case 22:n.mode&1?(kt=(r=kt)||n.memoizedState!==null,jr(e,t,n),kt=r):jr(e,t,n);break;default:jr(e,t,n)}}function Ry(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new eT),t.forEach(function(r){var s=cT.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function kn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:ht=a.stateNode,On=!1;break e;case 3:ht=a.stateNode.containerInfo,On=!0;break e;case 4:ht=a.stateNode.containerInfo,On=!0;break e}a=a.return}if(ht===null)throw Error(O(160));ob(i,o,s),ht=null,On=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){We(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ab(t,e),t=t.sibling}function ab(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kn(t,e),$n(e),r&4){try{xa(3,e,e.return),ed(3,e)}catch(x){We(e,e.return,x)}try{xa(5,e,e.return)}catch(x){We(e,e.return,x)}}break;case 1:kn(t,e),$n(e),r&512&&n!==null&&Vi(n,n.return);break;case 5:if(kn(t,e),$n(e),r&512&&n!==null&&Vi(n,n.return),e.flags&32){var s=e.stateNode;try{Aa(s,"")}catch(x){We(e,e.return,x)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&N1(s,i),Af(a,o);var u=Af(a,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?j1(s,d):c==="dangerouslySetInnerHTML"?I1(s,d):c==="children"?Aa(s,d):Wp(s,c,d,u)}switch(a){case"input":kf(s,i);break;case"textarea":A1(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Wi(s,!!i.multiple,m,!1):h!==!!i.multiple&&(i.defaultValue!=null?Wi(s,!!i.multiple,i.defaultValue,!0):Wi(s,!!i.multiple,i.multiple?[]:"",!1))}s[Fa]=i}catch(x){We(e,e.return,x)}}break;case 6:if(kn(t,e),$n(e),r&4){if(e.stateNode===null)throw Error(O(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(x){We(e,e.return,x)}}break;case 3:if(kn(t,e),$n(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ja(t.containerInfo)}catch(x){We(e,e.return,x)}break;case 4:kn(t,e),$n(e);break;case 13:kn(t,e),$n(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Cm=Qe())),r&4&&Ry(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(kt=(u=kt)||c,kn(t,e),kt=u):kn(t,e),$n(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(B=e,c=e.child;c!==null;){for(d=B=c;B!==null;){switch(h=B,m=h.child,h.tag){case 0:case 11:case 14:case 15:xa(4,h,h.return);break;case 1:Vi(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(x){We(r,n,x)}}break;case 5:Vi(h,h.return);break;case 22:if(h.memoizedState!==null){Ly(d);continue}}m!==null?(m.return=h,B=m):Ly(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{s=d.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=L1("display",o))}catch(x){We(e,e.return,x)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(x){We(e,e.return,x)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:kn(t,e),$n(e),r&4&&Ry(e);break;case 21:break;default:kn(t,e),$n(e)}}function $n(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ib(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Aa(s,""),r.flags&=-33);var i=Ay(e);oh(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Ay(e);ih(e,a,o);break;default:throw Error(O(161))}}catch(l){We(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function nT(e,t,n){B=e,lb(e)}function lb(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var s=B,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||tu;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||kt;a=tu;var u=kt;if(tu=o,(kt=l)&&!u)for(B=s;B!==null;)o=B,l=o.child,o.tag===22&&o.memoizedState!==null?jy(s):l!==null?(l.return=o,B=l):jy(s);for(;i!==null;)B=i,lb(i),i=i.sibling;B=s,tu=a,kt=u}Iy(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,B=i):Iy(e)}}function Iy(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:kt||ed(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!kt)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Pn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&gy(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}gy(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&ja(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}kt||t.flags&512&&sh(t)}catch(h){We(t,t.return,h)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function Ly(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function jy(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ed(4,t)}catch(l){We(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){We(t,s,l)}}var i=t.return;try{sh(t)}catch(l){We(t,i,l)}break;case 5:var o=t.return;try{sh(t)}catch(l){We(t,o,l)}}}catch(l){We(t,t.return,l)}if(t===e){B=null;break}var a=t.sibling;if(a!==null){a.return=t.return,B=a;break}B=t.return}}var rT=Math.ceil,dc=Rr.ReactCurrentDispatcher,bm=Rr.ReactCurrentOwner,vn=Rr.ReactCurrentBatchConfig,he=0,ct=null,et=null,yt=0,Zt=0,Fi=Ts(0),it=0,Ha=null,di=0,td=0,Sm=0,wa=null,$t=null,Cm=0,Eo=1/0,dr=null,fc=!1,ah=null,ps=null,nu=!1,is=null,hc=0,ba=0,lh=null,Tu=-1,Pu=0;function Ot(){return he&6?Qe():Tu!==-1?Tu:Tu=Qe()}function ms(e){return e.mode&1?he&2&&yt!==0?yt&-yt:z_.transition!==null?(Pu===0&&(Pu=K1()),Pu):(e=we,e!==0||(e=window.event,e=e===void 0?16:J1(e.type)),e):1}function Fn(e,t,n,r){if(50<ba)throw ba=0,lh=null,Error(O(185));El(e,n,r),(!(he&2)||e!==ct)&&(e===ct&&(!(he&2)&&(td|=n),it===4&&Kr(e,yt)),Kt(e,r),n===1&&he===0&&!(t.mode&1)&&(Eo=Qe()+500,Yc&&Ps()))}function Kt(e,t){var n=e.callbackNode;zk(e,t);var r=Zu(e,e===ct?yt:0);if(r===0)n!==null&&Bg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Bg(n),t===1)e.tag===0?F_(Oy.bind(null,e)):vw(Oy.bind(null,e)),O_(function(){!(he&6)&&Ps()}),n=null;else{switch(G1(r)){case 1:n=Qp;break;case 4:n=W1;break;case 16:n=Qu;break;case 536870912:n=H1;break;default:n=Qu}n=gb(n,ub.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ub(e,t){if(Tu=-1,Pu=0,he&6)throw Error(O(327));var n=e.callbackNode;if(Qi()&&e.callbackNode!==n)return null;var r=Zu(e,e===ct?yt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=pc(e,r);else{t=r;var s=he;he|=2;var i=db();(ct!==e||yt!==t)&&(dr=null,Eo=Qe()+500,si(e,t));do try{oT();break}catch(a){cb(e,a)}while(!0);lm(),dc.current=i,he=s,et!==null?t=0:(ct=null,yt=0,t=it)}if(t!==0){if(t===2&&(s=Of(e),s!==0&&(r=s,t=uh(e,s))),t===1)throw n=Ha,si(e,0),Kr(e,r),Kt(e,Qe()),n;if(t===6)Kr(e,r);else{if(s=e.current.alternate,!(r&30)&&!sT(s)&&(t=pc(e,r),t===2&&(i=Of(e),i!==0&&(r=i,t=uh(e,i))),t===1))throw n=Ha,si(e,0),Kr(e,r),Kt(e,Qe()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:Ds(e,$t,dr);break;case 3:if(Kr(e,r),(r&130023424)===r&&(t=Cm+500-Qe(),10<t)){if(Zu(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Ot(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Bf(Ds.bind(null,e,$t,dr),t);break}Ds(e,$t,dr);break;case 4:if(Kr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Vn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Qe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rT(r/1960))-r,10<r){e.timeoutHandle=Bf(Ds.bind(null,e,$t,dr),r);break}Ds(e,$t,dr);break;case 5:Ds(e,$t,dr);break;default:throw Error(O(329))}}}return Kt(e,Qe()),e.callbackNode===n?ub.bind(null,e):null}function uh(e,t){var n=wa;return e.current.memoizedState.isDehydrated&&(si(e,t).flags|=256),e=pc(e,t),e!==2&&(t=$t,$t=n,t!==null&&ch(t)),e}function ch(e){$t===null?$t=e:$t.push.apply($t,e)}function sT(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 s=n[r],i=s.getSnapshot;s=s.value;try{if(!Un(i(),s))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 Kr(e,t){for(t&=~Sm,t&=~td,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vn(t),r=1<<n;e[n]=-1,t&=~r}}function Oy(e){if(he&6)throw Error(O(327));Qi();var t=Zu(e,0);if(!(t&1))return Kt(e,Qe()),null;var n=pc(e,t);if(e.tag!==0&&n===2){var r=Of(e);r!==0&&(t=r,n=uh(e,r))}if(n===1)throw n=Ha,si(e,0),Kr(e,t),Kt(e,Qe()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ds(e,$t,dr),Kt(e,Qe()),null}function Em(e,t){var n=he;he|=1;try{return e(t)}finally{he=n,he===0&&(Eo=Qe()+500,Yc&&Ps())}}function fi(e){is!==null&&is.tag===0&&!(he&6)&&Qi();var t=he;he|=1;var n=vn.transition,r=we;try{if(vn.transition=null,we=1,e)return e()}finally{we=r,vn.transition=n,he=t,!(he&6)&&Ps()}}function km(){Zt=Fi.current,Ae(Fi)}function si(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,j_(n)),et!==null)for(n=et.return;n!==null;){var r=n;switch(im(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&tc();break;case 3:So(),Ae(Wt),Ae(Tt),pm();break;case 5:hm(r);break;case 4:So();break;case 13:Ae(De);break;case 19:Ae(De);break;case 10:um(r.type._context);break;case 22:case 23:km()}n=n.return}if(ct=e,et=e=gs(e.current,null),yt=Zt=t,it=0,Ha=null,Sm=td=di=0,$t=wa=null,zs!==null){for(t=0;t<zs.length;t++)if(n=zs[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}zs=null}return e}function cb(e,t){do{var n=et;try{if(lm(),Eu.current=cc,uc){for(var r=Me.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}uc=!1}if(ci=0,ut=st=Me=null,va=!1,$a=0,bm.current=null,n===null||n.return===null){it=1,Ha=t,et=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=yt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=Sy(o);if(m!==null){m.flags&=-257,Cy(m,o,a,i,t),m.mode&1&&by(i,u,t),t=m,l=u;var v=t.updateQueue;if(v===null){var x=new Set;x.add(l),t.updateQueue=x}else v.add(l);break e}else{if(!(t&1)){by(i,u,t),_m();break e}l=Error(O(426))}}else if(Le&&a.mode&1){var b=Sy(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Cy(b,o,a,i,t),om(Co(l,a));break e}}i=l=Co(l,a),it!==4&&(it=2),wa===null?wa=[i]:wa.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=Gw(i,l,t);my(i,y);break e;case 1:a=l;var g=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(ps===null||!ps.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=qw(i,a,t);my(i,S);break e}}i=i.return}while(i!==null)}hb(n)}catch(_){t=_,et===n&&n!==null&&(et=n=n.return);continue}break}while(!0)}function db(){var e=dc.current;return dc.current=cc,e===null?cc:e}function _m(){(it===0||it===3||it===2)&&(it=4),ct===null||!(di&268435455)&&!(td&268435455)||Kr(ct,yt)}function pc(e,t){var n=he;he|=2;var r=db();(ct!==e||yt!==t)&&(dr=null,si(e,t));do try{iT();break}catch(s){cb(e,s)}while(!0);if(lm(),he=n,dc.current=r,et!==null)throw Error(O(261));return ct=null,yt=0,it}function iT(){for(;et!==null;)fb(et)}function oT(){for(;et!==null&&!Rk();)fb(et)}function fb(e){var t=mb(e.alternate,e,Zt);e.memoizedProps=e.pendingProps,t===null?hb(e):et=t,bm.current=null}function hb(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=J_(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=X_(n,t,Zt),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 Ds(e,t,n){var r=we,s=vn.transition;try{vn.transition=null,we=1,aT(e,t,n,r)}finally{vn.transition=s,we=r}return null}function aT(e,t,n,r){do Qi();while(is!==null);if(he&6)throw Error(O(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Uk(e,i),e===ct&&(et=ct=null,yt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||nu||(nu=!0,gb(Qu,function(){return Qi(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=vn.transition,vn.transition=null;var o=we;we=1;var a=he;he|=4,bm.current=null,tT(e,n),ab(n,e),T_(Uf),Yu=!!zf,Uf=zf=null,e.current=n,nT(n),Ik(),he=a,we=o,vn.transition=i}else e.current=n;if(nu&&(nu=!1,is=e,hc=s),i=e.pendingLanes,i===0&&(ps=null),Ok(n.stateNode),Kt(e,Qe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(fc)throw fc=!1,e=ah,ah=null,e;return hc&1&&e.tag!==0&&Qi(),i=e.pendingLanes,i&1?e===lh?ba++:(ba=0,lh=e):ba=0,Ps(),null}function Qi(){if(is!==null){var e=G1(hc),t=vn.transition,n=we;try{if(vn.transition=null,we=16>e?16:e,is===null)var r=!1;else{if(e=is,is=null,hc=0,he&6)throw Error(O(331));var s=he;for(he|=4,B=e.current;B!==null;){var i=B,o=i.child;if(B.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(B=u;B!==null;){var c=B;switch(c.tag){case 0:case 11:case 15:xa(8,c,i)}var d=c.child;if(d!==null)d.return=c,B=d;else for(;B!==null;){c=B;var h=c.sibling,m=c.return;if(sb(c),c===u){B=null;break}if(h!==null){h.return=m,B=h;break}B=m}}}var v=i.alternate;if(v!==null){var x=v.child;if(x!==null){v.child=null;do{var b=x.sibling;x.sibling=null,x=b}while(x!==null)}}B=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,B=o;else e:for(;B!==null;){if(i=B,i.flags&2048)switch(i.tag){case 0:case 11:case 15:xa(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,B=y;break e}B=i.return}}var g=e.current;for(B=g;B!==null;){o=B;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,B=w;else e:for(o=g;B!==null;){if(a=B,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ed(9,a)}}catch(_){We(a,a.return,_)}if(a===o){B=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,B=S;break e}B=a.return}}if(he=s,Ps(),tr&&typeof tr.onPostCommitFiberRoot=="function")try{tr.onPostCommitFiberRoot(Kc,e)}catch{}r=!0}return r}finally{we=n,vn.transition=t}}return!1}function Dy(e,t,n){t=Co(n,t),t=Gw(e,t,1),e=hs(e,t,1),t=Ot(),e!==null&&(El(e,1,t),Kt(e,t))}function We(e,t,n){if(e.tag===3)Dy(e,e,n);else for(;t!==null;){if(t.tag===3){Dy(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ps===null||!ps.has(r))){e=Co(n,e),e=qw(t,e,1),t=hs(t,e,1),e=Ot(),t!==null&&(El(t,1,e),Kt(t,e));break}}t=t.return}}function lT(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ot(),e.pingedLanes|=e.suspendedLanes&n,ct===e&&(yt&n)===n&&(it===4||it===3&&(yt&130023424)===yt&&500>Qe()-Cm?si(e,0):Sm|=n),Kt(e,t)}function pb(e,t){t===0&&(e.mode&1?(t=Kl,Kl<<=1,!(Kl&130023424)&&(Kl=4194304)):t=1);var n=Ot();e=Pr(e,t),e!==null&&(El(e,t,n),Kt(e,n))}function uT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pb(e,n)}function cT(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),pb(e,n)}var mb;mb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wt.current)Bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Bt=!1,Y_(e,t,n);Bt=!!(e.flags&131072)}else Bt=!1,Le&&t.flags&1048576&&xw(t,sc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_u(e,t),e=t.pendingProps;var s=xo(t,Tt.current);qi(t,n),s=gm(null,t,r,e,s,n);var i=ym();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ht(r)?(i=!0,nc(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,dm(t),s.updater=Jc,t.stateNode=s,s._reactInternals=t,Zf(t,r,e,n),t=Jf(null,t,r,!0,i,n)):(t.tag=0,Le&&i&&sm(t),It(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_u(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=fT(r),e=Pn(r,e),s){case 0:t=Xf(null,t,r,e,n);break e;case 1:t=_y(null,t,r,e,n);break e;case 11:t=Ey(null,t,r,e,n);break e;case 14:t=ky(null,t,r,Pn(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Pn(r,s),Xf(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Pn(r,s),_y(e,t,r,s,n);case 3:e:{if(Xw(t),e===null)throw Error(O(387));
vendor: 4,576 bytes, line 41
41r=t.pendingProps,i=t.memoizedState,s=i.element,kw(e,t),ac(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Co(Error(O(423)),t),t=Ty(e,t,r,n,s);break e}else if(r!==s){s=Co(Error(O(424)),t),t=Ty(e,t,r,n,s);break e}else for(Jt=fs(t.stateNode.containerInfo.firstChild),en=t,Le=!0,Dn=null,n=Cw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wo(),r===s){t=Nr(e,t,n);break e}It(e,t,r,n)}t=t.child}return t;case 5:return _w(t),e===null&&Gf(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,$f(r,s)?o=null:i!==null&&$f(r,i)&&(t.flags|=32),Yw(e,t),It(e,t,o,n),t.child;case 6:return e===null&&Gf(t),null;case 13:return Jw(e,t,n);case 4:return fm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bo(t,null,r,n):It(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Pn(r,s),Ey(e,t,r,s,n);case 7:return It(e,t,t.pendingProps,n),t.child;case 8:return It(e,t,t.pendingProps.children,n),t.child;case 12:return It(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,ke(ic,r._currentValue),r._currentValue=o,i!==null)if(Un(i.value,o)){if(i.children===s.children&&!Wt.current){t=Nr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Cr(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),qf(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(O(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),qf(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}It(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,qi(t,n),s=wn(s),r=r(s),t.flags|=1,It(e,t,r,n),t.child;case 14:return r=t.type,s=Pn(r,t.pendingProps),s=Pn(r.type,s),ky(e,t,r,s,n);case 15:return Qw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Pn(r,s),_u(e,t),t.tag=1,Ht(r)?(e=!0,nc(t)):e=!1,qi(t,n),Kw(t,r,s),Zf(t,r,s,n),Jf(null,t,r,!0,e,n);case 19:return eb(e,t,n);case 22:return Zw(e,t,n)}throw Error(O(156,t.tag))};function gb(e,t){return B1(e,t)}function dT(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 mn(e,t,n,r){return new dT(e,t,n,r)}function Tm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fT(e){if(typeof e=="function")return Tm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Kp)return 11;if(e===Gp)return 14}return 2}function gs(e,t){var n=e.alternate;return n===null?(n=mn(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 Nu(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Tm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ni:return ii(n.children,s,i,t);case Hp:o=8,s|=8;break;case wf:return e=mn(12,n,t,s|2),e.elementType=wf,e.lanes=i,e;case bf:return e=mn(13,n,t,s),e.elementType=bf,e.lanes=i,e;case Sf:return e=mn(19,n,t,s),e.elementType=Sf,e.lanes=i,e;case _1:return nd(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E1:o=10;break e;case k1:o=9;break e;case Kp:o=11;break e;case Gp:o=14;break e;case $r:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=mn(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function ii(e,t,n,r){return e=mn(7,e,r,t),e.lanes=n,e}
vendor: 4,063 bytes, line 41
41function nd(e,t,n,r){return e=mn(22,e,r,t),e.elementType=_1,e.lanes=n,e.stateNode={isHidden:!1},e}function $d(e,t,n){return e=mn(6,e,null,t),e.lanes=n,e}function Bd(e,t,n){return t=mn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hT(e,t,n,r,s){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=Cd(0),this.expirationTimes=Cd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cd(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Pm(e,t,n,r,s,i,o,a,l){return e=new hT(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dm(i),e}function pT(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function yb(e){if(!e)return bs;e=e._reactInternals;e:{if(mi(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ht(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(Ht(n))return yw(e,n,t)}return t}function vb(e,t,n,r,s,i,o,a,l){return e=Pm(n,r,!0,e,s,i,o,a,l),e.context=yb(null),n=e.current,r=Ot(),s=ms(n),i=Cr(r,s),i.callback=t??null,hs(n,i,s),e.current.lanes=s,El(e,s,r),Kt(e,r),e}function rd(e,t,n,r){var s=t.current,i=Ot(),o=ms(s);return n=yb(n),t.context===null?t.context=n:t.pendingContext=n,t=Cr(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=hs(s,t,o),e!==null&&(Fn(e,s,o,i),Cu(e,s,o)),o}function mc(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 My(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Nm(e,t){My(e,t),(e=e.alternate)&&My(e,t)}function mT(){return null}var xb=typeof reportError=="function"?reportError:function(e){console.error(e)};function Am(e){this._internalRoot=e}sd.prototype.render=Am.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));rd(e,t,null,null)};sd.prototype.unmount=Am.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fi(function(){rd(null,e,null,null)}),t[Tr]=null}};function sd(e){this._internalRoot=e}sd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Z1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Hr.length&&t!==0&&t<Hr[n].priority;n++);Hr.splice(n,0,e),n===0&&X1(e)}};function Rm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function id(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vy(){}function gT(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=mc(o);i.call(u)}}var o=vb(t,r,e,0,null,!1,!1,"",Vy);return e._reactRootContainer=o,e[Tr]=o.current,Ma(e.nodeType===8?e.parentNode:e),fi(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=mc(l);a.call(u)}}var l=Pm(e,0,!1,null,null,!1,!1,"",Vy);return e._reactRootContainer=l,e[Tr]=l.current,Ma(e.nodeType===8?e.parentNode:e),fi(function(){rd(t,l,n,r)}),l}function od(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=mc(o);a.call(l)}}rd(t,o,e,s)}else o=gT(n,t,e,s,r);return mc(o)}q1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=oa(t.pendingLanes);
41n!==0&&(Zp(t,n|1),Kt(t,Qe()),!(he&6)&&(Eo=Qe()+500,Ps()))}break;case 13:fi(function(){var r=Pr(e,1);if(r!==null){var s=Ot();Fn(r,e,1,s)}}),Nm(e,1)}};Yp=function(e){if(e.tag===13){var t=Pr(e,134217728);if(t!==null){var n=Ot();Fn(t,e,134217728,n)}Nm(e,134217728)}};Q1=function(e){if(e.tag===13){var t=ms(e),n=Pr(e,t);if(n!==null){var r=Ot();Fn(n,e,t,r)}Nm(e,t)}};Z1=function(){return we};Y1=function(e,t){var n=we;try{return we=e,t()}finally{we=n}};If=function(e,t,n){switch(t){case"input":if(kf(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 s=Zc(r);if(!s)throw Error(O(90));P1(r),kf(r,s)}}}break;case"textarea":A1(e,n);break;case"select":t=n.value,t!=null&&Wi(e,!!n.multiple,t,!1)}};M1=Em;V1=fi;var yT={usingClientEntryPoint:!1,Events:[_l,Li,Zc,O1,D1,Em]},Zo={findFiberByHostInstance:Fs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vT={bundleType:Zo.bundleType,version:Zo.version,rendererPackageName:Zo.rendererPackageName,rendererConfig:Zo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Rr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=U1(e),e===null?null:e.stateNode},findFiberByHostInstance:Zo.findFiberByHostInstance||mT,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 ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{Kc=ru.inject(vT),tr=ru}catch{}}sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yT;sn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rm(t))throw Error(O(200));return pT(e,t,null,n)};sn.createRoot=function(e,t){if(!Rm(e))throw Error(O(299));var n=!1,r="",s=xb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Pm(e,1,!1,null,null,n,!1,r,s),e[Tr]=t.current,Ma(e.nodeType===8?e.parentNode:e),new Am(t)};sn.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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=U1(t),e=e===null?null:e.stateNode,e};sn.flushSync=function(e){return fi(e)};sn.hydrate=function(e,t,n){if(!id(t))throw Error(O(200));return od(null,e,t,!0,n)};sn.hydrateRoot=function(e,t,n){if(!Rm(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=xb;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=vb(t,null,e,1,n??null,s,!1,i,o),e[Tr]=t.current,Ma(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new sd(t)};sn.render=function(e,t,n){if(!id(t))throw Error(O(200));return od(null,e,t,!1,n)};sn.unmountComponentAtNode=function(e){if(!id(e))throw Error(O(40));return e._reactRootContainer?(fi(function(){od(null,null,e,!1,function(){e._reactRootContainer=null,e[Tr]=null})}),!0):!1};sn.unstable_batchedUpdates=Em;sn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!id(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return od(e,t,n,!1,r)};sn.version="18.3.1-next-f1338f8080-20240426";function wb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wb)}catch(e){console.error(e)}}wb(),w1.exports=sn;var bb=w1.exports;const k6=Wc(bb);var Sb,Fy=bb;Sb=Fy.createRoot,Fy.hydrateRoot;/**
42 * @remix-run/router v1.23.3
43 *
44 * Copyright (c) Remix Software Inc.
45 *
46 * This source code is licensed under the MIT license found in the
47 * LICENSE.md file in the root directory of this source tree.
48 *
49 * @license MIT
50 */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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ka.apply(null,arguments)}var os;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(os||(os={}));const zy="popstate";function xT(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return dh("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:gc(s)}return bT(t,n,null,e)}function Ze(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Im(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wT(){return Math.random().toString(36).substr(2,8)}function Uy(e,t){return{usr:e.state,key:e.key,idx:t}}function dh(e,t,n,r){return n===void 0&&(n=null),Ka({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Mo(t):t,{state:n,key:t&&t.key||r||wT()})}function gc(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 Mo(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 bT(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=os.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Ka({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=os.Pop;let b=c(),y=b==null?null:b-u;u=b,l&&l({action:a,location:x.location,delta:y})}function h(b,y){a=os.Push;let g=dh(x.location,b,y);u=c()+1;let w=Uy(g,u),S=x.createHref(g);try{o.pushState(w,"",S)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;s.location.assign(S)}i&&l&&l({action:a,location:x.location,delta:1})}function m(b,y){a=os.Replace;let g=dh(x.location,b,y);u=c();let w=Uy(g,u),S=x.createHref(g);o.replaceState(w,"",S),i&&l&&l({action:a,location:x.location,delta:0})}function v(b){let y=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof b=="string"?b:gc(b);return g=g.replace(/ $/,"%20"),Ze(y,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,y)}let x={get action(){return a},get location(){return e(s,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(zy,d),l=b,()=>{s.removeEventListener(zy,d),l=null}},createHref(b){return t(s,b)},createURL:v,encodeLocation(b){let y=v(b);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:m,go(b){return o.go(b)}};return x}var $y;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($y||($y={}));function ST(e,t,n){return n===void 0&&(n="/"),CT(e,t,n)}function CT(e,t,n,r){let s=typeof t=="string"?Mo(t):t,i=Lm(s.pathname||"/",n);if(i==null)return null;let o=Cb(e);ET(o);let a=null,l=DT(i);for(let u=0;a==null&&u<o.length;++u)a=LT(o[u],l);return a}function Cb(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(Ze(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not val
50id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=ys([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Ze(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Cb(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:RT(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of Eb(i.path))s(i,o,l)}),t}function Eb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=Eb(r.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function ET(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:IT(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const kT=/^:[\w-]+$/,_T=3,TT=2,PT=1,NT=10,AT=-2,By=e=>e==="*";function RT(e,t){let n=e.split("/"),r=n.length;return n.some(By)&&(r+=AT),t&&(r+=TT),n.filter(s=>!By(s)).reduce((s,i)=>s+(kT.test(i)?_T:i===""?PT:NT),r)}function IT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function LT(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",d=jT({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),h=l.route;if(!d)return null;
vendor: 4,770 bytes, lines 50-59
50Object.assign(s,d.params),o.push({params:s,pathname:ys([i,d.pathname]),pathnameBase:UT(ys([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=ys([i,d.pathnameBase]))}return o}function jT(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=OT(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:h,isOptional:m}=c;if(h==="*"){let x=a[d]||"";o=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const v=a[d];return m&&!v?u[h]=void 0:u[h]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function OT(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Im(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=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function DT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Im(!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 Lm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const MT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,VT=e=>MT.test(e);function FT(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Mo(e):e,i;if(n)if(VT(n))i=n;else{if(n.includes("//")){let o=n;n=kb(n),Im(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=Wy(n.substring(1),"/"):i=Wy(n,t)}else i=t;return{pathname:i,search:$T(r),hash:BT(s)}}function Wy(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Wd(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 zT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jm(e,t){let n=zT(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Om(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Mo(e):(s=Ka({},e),Ze(!s.pathname||!s.pathname.includes("?"),Wd("?","pathname","search",s)),Ze(!s.pathname||!s.pathname.includes("#"),Wd("#","pathname","hash",s)),Ze(!s.search||!s.search.includes("#"),Wd("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;s.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=FT(s,a),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const kb=e=>e.replace(/\/\/+/g,"/"),ys=e=>kb(e.join("/")),UT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$T=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,BT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function WT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const _b=["post","put","patch","delete"];new Set(_b);const HT=["get",..._b];new Set(HT);/**
51 * React Router v6.30.4
52 *
53 * Copyright (c) Remix Software Inc.
54 *
55 * This source code is licensed under the MIT license found in the
56 * LICENSE.md file in the root directory of this source tree.
57 *
58 * @license MIT
59 */function Ga(){return Ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ga.apply(null,arguments)}const Dm=k.createContext(null),KT=k.createContext(null),Ns=k.createContext(null),Pl=k.createContext(null),Ir=k.createContext({outlet:null,matches:[],isDataRoute:!1}),Tb=k.createContext(null);function GT(e,t){let{relative:n}=t===void 0?{}:t;Vo()||Ze(!1);let{basename:r,navigator:s}=k.useContext(Ns),{hash:i,pathname:o,search:a}=Nb(e,{relative:n}),l=o;
vendor: 4,802 bytes, line 59
59return r!=="/"&&(l=o==="/"?r:ys([r,o])),s.createHref({pathname:l,search:a,hash:i})}function Vo(){return k.useContext(Pl)!=null}function Sn(){return Vo()||Ze(!1),k.useContext(Pl).location}function qT(){return k.useContext(Pl).navigationType}function Pb(e){k.useContext(Ns).static||k.useLayoutEffect(e)}function Nl(){let{isDataRoute:e}=k.useContext(Ir);return e?aP():QT()}function QT(){Vo()||Ze(!1);let e=k.useContext(Dm),{basename:t,future:n,navigator:r}=k.useContext(Ns),{matches:s}=k.useContext(Ir),{pathname:i}=Sn(),o=JSON.stringify(jm(s,n.v7_relativeSplatPath)),a=k.useRef(!1);return Pb(()=>{a.current=!0}),k.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=Om(u,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:ys([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,i,e])}function _6(){let{matches:e}=k.useContext(Ir),t=e[e.length-1];return t?t.params:{}}function Nb(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(Ns),{matches:s}=k.useContext(Ir),{pathname:i}=Sn(),o=JSON.stringify(jm(s,r.v7_relativeSplatPath));return k.useMemo(()=>Om(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function ZT(e,t){return YT(e,t)}function YT(e,t,n,r){Vo()||Ze(!1);let{navigator:s}=k.useContext(Ns),{matches:i}=k.useContext(Ir),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Sn(),c;if(t){var d;let b=typeof t=="string"?Mo(t):t;l==="/"||(d=b.pathname)!=null&&d.startsWith(l)||Ze(!1),c=b}else c=u;let h=c.pathname||"/",m=h;if(l!=="/"){let b=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(b.length).join("/")}let v=ST(e,{pathname:m}),x=nP(v&&v.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:ys([l,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:ys([l,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&x?k.createElement(Pl.Provider,{value:{location:Ga({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:os.Pop}},x):x}function XT(){let e=oP(),t=WT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={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:s},n):null,null)}const JT=k.createElement(XT,null);class eP 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(Ir.Provider,{value:this.props.routeContext},k.createElement(Tb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tP(e){let{routeContext:t,match:n,children:r}=e,s=k.useContext(Dm);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Ir.Provider,{value:t},r)}function nP(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let c=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||Ze(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<o.length;c++){let d=o[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:h,errors:m}=n,v=d.route.loader&&h[d.route.id]===void 0&&(!m||m[d.route.id]===void 0);if(d.route.lazy||v){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,h)=>{let m,v=!1,x=null,b=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,x=d.route.errorElement||JT,l&&(u<0&&h===0?(lP("route-fallback"),v=!0,b=null):u===h&&(v=!0,b=d.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,h+1)),g=()=>{let w;return m?w=x:v?w=b:d.route.Component?w=k.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=c,k.createElement(tP,{match:d,routeC
59ontext:{outlet:c,matches:y,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?k.createElement(eP,{location:n.location,revalidation:n.revalidation,component:x,error:m,children:g(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):g()},null)}var Ab=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ab||{}),Rb=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}(Rb||{});function rP(e){let t=k.useContext(Dm);return t||Ze(!1),t}function sP(e){let t=k.useContext(KT);return t||Ze(!1),t}function iP(e){let t=k.useContext(Ir);return t||Ze(!1),t}function Ib(e){let t=iP(),n=t.matches[t.matches.length-1];return n.route.id||Ze(!1),n.route.id}function oP(){var e;let t=k.useContext(Tb),n=sP(),r=Ib();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function aP(){let{router:e}=rP(Ab.UseNavigateStable),t=Ib(Rb.UseNavigateStable),n=k.useRef(!1);return Pb(()=>{n.current=!0}),k.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ga({fromRouteId:t},i)))},[e,t])}const Hy={};function lP(e,t,n){Hy[e]||(Hy[e]=!0)}function uP(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function cP(e){let{to:t,replace:n,state:r,relative:s}=e;Vo()||Ze(!1);let{future:i,static:o}=k.useContext(Ns),{matches:a}=k.useContext(Ir),{pathname:l}=Sn(),u=Nl(),c=Om(t,jm(a,i.v7_relativeSplatPath),l,s==="path"),d=JSON.stringify(c);return k.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:s}),[u,d,s,n,r]),null}function Pe(e){Ze(!1)}function dP(e){let{basename:t="/",children:n=null,location:r,navigationType:s=os.Pop,navigator:i,static:o=!1,future:a}=e;Vo()&&Ze(!1);let l=t.replace(/^\/*/,"/"),u=k.useMemo(()=>({basename:l,navigator:i,static:o,future:Ga({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=Mo(r));let{pathname:c="/",search:d="",hash:h="",state:m=null,key:v="default"}=r,x=k.useMemo(()=>{let b=Lm(c,l);return b==null?null:{location:{pathname:b,search:d,hash:h,state:m,key:v},navigationType:s}},[l,c,d,h,m,v,s]);return x==null?null:k.createElement(Ns.Provider,{value:u},k.createElement(Pl.Provider,{children:n,value:x}))}function fP(e){let{children:t,location:n}=e;return ZT(fh(t),n)}new Promise(()=>{});function fh(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,s)=>{if(!k.isValidElement(r))return;let i=[...t,s];if(r.type===k.Fragment){n.push.apply(n,fh(r.props.children,i));return}r.type!==Pe&&Ze(!1),!r.props.index||!r.props.children||Ze(!1);let o={id:r.props.id||i.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&&(o.children=fh(r.props.children,i)),n.push(o)}),n}/**
60 * React Router DOM v6.30.4
61 *
62 * Copyright (c) Remix Software Inc.
63 *
64 * This source code is licensed under the MIT license found in the
65 * LICENSE.md file in the root directory of this source tree.
66 *
67 * @license MIT
68 */function hh(){return hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hh.apply(null,arguments)}function hP(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function mP(e,t){return e.button===0&&(!t||t==="_self")&&!pP(e)}function ph(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function gP(e,t){let n=ph(e);return t&&t.forEach((r,s)=>
68{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const yP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],vP="6";try{window.__reactRouterVersion=vP}catch{}const xP="startTransition",Ky=lk[xP];function wP(e){let{basename:t,children:n,future:r,window:s}=e,i=k.useRef();i.current==null&&(i.current=xT({window:s,v5Compat:!0}));let o=i.current,[a,l]=k.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=k.useCallback(d=>{u&&Ky?Ky(()=>l(d)):l(d)},[l,u]);return k.useLayoutEffect(()=>o.listen(c),[o,c]),k.useEffect(()=>uP(r),[r]),k.createElement(dP,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const bP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",SP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mn=k.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,h=hP(t,yP),{basename:m}=k.useContext(Ns),v,x=!1;if(typeof u=="string"&&SP.test(u)&&(v=u,bP))try{let w=new URL(window.location.href),S=u.startsWith("//")?new URL(w.protocol+u):new URL(u),_=Lm(S.pathname,m);S.origin===w.origin&&_!=null?u=_+S.search+S.hash:x=!0}catch{}let b=GT(u,{relative:s}),y=CP(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:s,viewTransition:d});function g(w){r&&r(w),w.defaultPrevented||y(w)}return k.createElement("a",hh({},h,{href:v||b,onClick:x||i?r:g,ref:n,target:l}))});var Gy;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Gy||(Gy={}));var qy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(qy||(qy={}));function CP(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=Nl(),u=Sn(),c=Nb(e,{relative:o});return k.useCallback(d=>{if(mP(d,n)){d.preventDefault();let h=r!==void 0?r:gc(u)===gc(c);l(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[u,l,c,r,s,n,e,i,o,a])}function T6(e){let t=k.useRef(ph(e)),n=k.useRef(!1),r=Sn(),s=k.useMemo(()=>gP(r.search,n.current?null:t.current),[r.search]),i=Nl(),o=k.useCallback((a,l)=>{const u=ph(typeof a=="function"?a(s):a);n.current=!0,i("?"+u,l)},[i,s]);return[s,o]}var Al=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(){}},Hs,qr,Zi,Xx,EP=(Xx=class extends Al{constructor(){super();I(this,Hs);I(this,qr);I(this,Zi);P(this,Zi,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){f(this,qr)||this.setEventListener(f(this,Zi))}onUnsubscribe(){var t;this.hasListeners()||((t=f(this,qr))==null||t.call(this),P(this,qr,void 0))}setEventListener(t){var n;P(this,Zi,t),(n=f(this,qr))==null||n.call(this),P(this,qr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){f(this,Hs)!==t&&(P(this,Hs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof f(this,Hs)=="boolean"?f(this,Hs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Hs=new WeakMap,qr=new WeakMap,Zi=new WeakMap,Xx),Mm=new EP,kP={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Qr,Mp,Jx,_P=(Jx=class{constructor(){I(this,Qr,kP);I(this,Mp,!1)}setTimeoutProvider(e){P(this,Qr,e)}setTimeout(e,t){return f(this,Qr).setTimeout(e,t)}clearTimeout(e){f(this,Qr).clearTimeout(e)}setInterval(e,t){return f(this,Qr).setInterval(e,t)}clearInterval(e){f(this,Qr).clearInterval(e)}},Qr=new WeakMap,Mp=new WeakMap,Jx),$s=new _P;function TP(e){setTimeout(e,0)}var PP=typeof window>"u"||"Deno"in globalThis;function Ut(){}function NP(e,t){return typeof e=="function"?e(t):e}function mh(e){return typeof e=="number"&&e>=0&&e!==1/0}
68function Lb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vs(e,t){return typeof e=="function"?e(t):e}function Xt(e,t){return typeof e=="function"?e(t):e}function Qy(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Vm(o,t.options))return!1}else if(!Qa(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function Zy(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(qa(t.options.mutationKey)!==qa(i))return!1}else if(!Qa(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Vm(e,t){return((t==null?void 0:t.queryKeyHashFn)||qa)(e)}function qa(e){return JSON.stringify(e,(t,n)=>yh(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Qa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Qa(e[n],t[n])):!1}var AP=Object.prototype.hasOwnProperty;function jb(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Yy(e)&&Yy(t);if(!r&&!(yh(e)&&yh(t)))return t;const i=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),a=o.length,l=r?new Array(a):{};let u=0;for(let c=0;c<a;c++){const d=r?c:o[c],h=e[d],m=t[d];if(h===m){l[d]=h,(r?c<i:AP.call(e,d))&&u++;continue}if(h===null||m===null||typeof h!="object"||typeof m!="object"){l[d]=m;continue}const v=jb(h,m,n+1);l[d]=v,v===h&&u++}return i===a&&u===i?e:l}function gh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Yy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function yh(e){if(!Xy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Xy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Xy(e){return Object.prototype.toString.call(e)==="[object Object]"}function RP(e){return new Promise(t=>{$s.setTimeout(t,e)})}function vh(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?jb(e,t):t}function IP(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function LP(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Fm=Symbol();function Ob(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Fm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Db(e,t){return typeof e=="function"?e(...t):!!e}function jP(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var Za=(()=>{let e=()=>PP;return{isServer(){return e()},setIsServer(t){e=t}}})();function xh(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var OP=TP;function DP(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=OP;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var mt=DP(),Yi,Zr,Xi,e1,MP=(e1=class extends Al{constructor(){super();I(this,Yi,!0);I(this,Zr);I(this,Xi);P(this,Xi,t=>{if(typeof window<"u"&&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(){f(this,Zr)||this.setEventListener(f(this,Xi))}onUnsubscribe(){var t;this.hasListeners()||((t=f(this,Zr))==null||t.call(this),P(this,Zr,void 0))}setEventListener(t){var n;P(this,Xi,t),(n=f(this,Zr))==null||n.call(this),P(this,Zr,t(this.setOnline.bind(this)))}setOnline(t){f(this,Yi)!==t&&(P(this,Yi,t),this.listeners.forEac
68h(r=>{r(t)}))}isOnline(){return f(this,Yi)}},Yi=new WeakMap,Zr=new WeakMap,Xi=new WeakMap,e1),yc=new MP;function VP(e){return Math.min(1e3*2**e,3e4)}function Mb(e){return(e??"online")==="online"?yc.isOnline():!0}var wh=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Vb(e){let t=!1,n=0,r;const s=xh(),i=()=>s.status!=="pending",o=x=>{var b;if(!i()){const y=new wh(x);h(y),(b=e.onCancel)==null||b.call(e,y)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>Mm.isFocused()&&(e.networkMode==="always"||yc.isOnline())&&e.canRun(),c=()=>Mb(e.networkMode)&&e.canRun(),d=x=>{i()||(r==null||r(),s.resolve(x))},h=x=>{i()||(r==null||r(),s.reject(x))},m=()=>new Promise(x=>{var b;r=y=>{(i()||u())&&x(y)},(b=e.onPause)==null||b.call(e)}).then(()=>{var x;r=void 0,i()||(x=e.onContinue)==null||x.call(e)}),v=()=>{if(i())return;let x;const b=n===0?e.initialPromise:void 0;try{x=b??e.fn()}catch(y){x=Promise.reject(y)}Promise.resolve(x).then(d).catch(y=>{var A;if(i())return;const g=e.retry??(Za.isServer()?0:3),w=e.retryDelay??VP,S=typeof w=="function"?w(n,y):w,_=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,y);if(t||!_){h(y);return}n++,(A=e.onFail)==null||A.call(e,n,y),RP(S).then(()=>u()?void 0:m()).then(()=>{t?h(y):v()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(r==null||r(),s),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?v():m().then(v),s)}}var Ks,t1,Fb=(t1=class{constructor(){I(this,Ks)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mh(this.gcTime)&&P(this,Ks,$s.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Za.isServer()?1/0:5*60*1e3))}clearGcTimeout(){f(this,Ks)!==void 0&&($s.clearTimeout(f(this,Ks)),P(this,Ks,void 0))}},Ks=new WeakMap,t1);function FP(e){return{onFetch:(t,n)=>{var c,d,h,m,v;const r=t.options,s=(h=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let x=!1;const b=w=>{jP(w,()=>t.signal,()=>x=!0)},y=Ob(t.options,t.fetchOptions),g=async(w,S,_)=>{if(x)return Promise.reject(t.signal.reason);if(S==null&&w.pages.length)return Promise.resolve(w);const N=(()=>{const q={client:t.client,queryKey:t.queryKey,pageParam:S,direction:_?"backward":"forward",meta:t.options.meta};return b(q),q})(),E=await y(N),{maxPages:V}=t.options,L=_?LP:IP;return{pages:L(w.pages,E,V),pageParams:L(w.pageParams,S,V)}};if(s&&i.length){const w=s==="backward",S=w?zP:Jy,_={pages:i,pageParams:o},A=S(r,_);a=await g(_,A,w)}else{const w=e??i.length;do{const S=l===0?o[0]??r.initialPageParam:Jy(r,a);if(l>0&&S==null)break;a=await g(a,S),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var x,b;return(b=(x=t.options).persister)==null?void 0:b.call(x,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Jy(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 zP(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 Ji,Gs,eo,ln,qs,lt,ll,Qs,Yt,zb,ar,n1,UP=(n1=class extends Fb{constructor(t){super();I(this,Yt);I(this,Ji);I(this,Gs);I(this,eo);I(this,ln);I(this,qs);I(this,lt);I(this,ll);I(this,Qs);P(this,Qs,!1),P(this,ll,t.defaultOptions),this.setOptions(t.options),this.observers=[],P(this,qs,t.client),P(this,ln,f(this,qs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,P(this,Gs,t0(this.options)),this.state=t.state??f(this,Gs),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return f(this,Ji)}get promise(){var t;return(t=f(this,lt))==null?void 0:t.promise}setOptions(t){if(this.options={...f(this,ll),...t},t!=null&&t._type&&P(this,Ji,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=t0(this.options);n.data!==void 0&&(this.setState(e0(n.data,n.dataUpdatedAt)),P(this,Gs,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&f(this,ln).remove(this)}setData(t,n){const r=vh(this.state.data,t,this.options);return C(this,Yt,ar).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){C(this,Yt,ar).call(this,{type:"setState",state:t})}cancel(t){var r,s;const n=(r=f(this,lt))==null?void 0:r.promise;
68return(s=f(this,lt))==null||s.cancel(t),n?n.then(Ut).catch(Ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return f(this,Gs)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Xt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Fm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>vs(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:!Lb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=f(this,lt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=f(this,lt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),f(this,ln).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(f(this,lt)&&(f(this,Qs)||C(this,Yt,zb).call(this)?f(this,lt).cancel({revert:!0}):f(this,lt).cancelRetry()),this.scheduleGc()),f(this,ln).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||C(this,Yt,ar).call(this,{type:"invalidate"})}async fetch(t,n){var u,c,d,h,m,v,x,b,y,g,w;if(this.state.fetchStatus!=="idle"&&((u=f(this,lt))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(f(this,lt))return f(this,lt).continueRetry(),f(this,lt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(_=>_.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,s=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(P(this,Qs,!0),r.signal)})},i=()=>{const S=Ob(this.options,n),A=(()=>{const N={client:f(this,qs),queryKey:this.queryKey,meta:this.meta};return s(N),N})();return P(this,Qs,!1),this.options.persister?this.options.persister(S,A,this):S(A)},a=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:f(this,qs),state:this.state,fetchFn:i};return s(S),S})(),l=f(this,Ji)==="infinite"?FP(this.options.pages):this.options.behavior;l==null||l.onFetch(a,this),P(this,eo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&C(this,Yt,ar).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),P(this,lt,Vb({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:S=>{S instanceof wh&&S.revert&&this.setState({...f(this,eo),fetchStatus:"idle"}),r.abort()},onFail:(S,_)=>{C(this,Yt,ar).call(this,{type:"failed",failureCount:S,error:_})},onPause:()=>{C(this,Yt,ar).call(this,{type:"pause"})},onContinue:()=>{C(this,Yt,ar).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const S=await f(this,lt).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(m=(h=f(this,ln).config).onSuccess)==null||m.call(h,S,this),(x=(v=f(this,ln).config).onSettled)==null||x.call(v,S,this.state.error,this),S}catch(S){if(S instanceof wh){if(S.silent)return f(this,lt).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw C(this,Yt,ar).call(this,{type:"error",error:S}),(y=(b=f(this,ln).config).onError)==null||y.call(b,S,this),(w=(g=f(this,ln).config).onSettled)==null||w.call(g,this.state.data,S,this),S}finally{this.scheduleGc()}}},Ji=new WeakMap,Gs=new WeakMap,eo=new WeakMap,ln=new WeakMap,qs=new WeakMap,lt=new WeakMap,ll=new WeakMap,Qs=new WeakMap,Yt=new WeakSet,zb=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ar=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,...Ub(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,...e0(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return P(this,eo,t.manual?s:void 0),s;case"error":const i=t.error;
vendor: 10,044 bytes, line 68
68return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),mt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),f(this,ln).notify({query:this,type:"updated",action:t})})},n1);function Ub(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Mb(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function e0(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function t0(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 Ft,le,ul,At,Zs,to,hr,Yr,cl,no,ro,Ys,Xs,Xr,so,xe,la,bh,Sh,Ch,Eh,kh,_h,Th,$b,r1,$P=(r1=class extends Al{constructor(t,n){super();I(this,xe);I(this,Ft);I(this,le);I(this,ul);I(this,At);I(this,Zs);I(this,to);I(this,hr);I(this,Yr);I(this,cl);I(this,no);I(this,ro);I(this,Ys);I(this,Xs);I(this,Xr);I(this,so,new Set);this.options=n,P(this,Ft,t),P(this,Yr,null),P(this,hr,xh()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(f(this,le).addObserver(this),n0(f(this,le),this.options)?C(this,xe,la).call(this):this.updateResult(),C(this,xe,Eh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ph(f(this,le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ph(f(this,le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,C(this,xe,kh).call(this),C(this,xe,_h).call(this),f(this,le).removeObserver(this)}setOptions(t){const n=this.options,r=f(this,le);if(this.options=f(this,Ft).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xt(this.options.enabled,f(this,le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");C(this,xe,Th).call(this),f(this,le).setOptions(this.options),n._defaulted&&!gh(this.options,n)&&f(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:f(this,le),observer:this});const s=this.hasListeners();s&&r0(f(this,le),r,this.options,n)&&C(this,xe,la).call(this),this.updateResult(),s&&(f(this,le)!==r||Xt(this.options.enabled,f(this,le))!==Xt(n.enabled,f(this,le))||vs(this.options.staleTime,f(this,le))!==vs(n.staleTime,f(this,le)))&&C(this,xe,bh).call(this);const i=C(this,xe,Sh).call(this);s&&(f(this,le)!==r||Xt(this.options.enabled,f(this,le))!==Xt(n.enabled,f(this,le))||i!==f(this,Xr))&&C(this,xe,Ch).call(this,i)}getOptimisticResult(t){const n=f(this,Ft).getQueryCache().build(f(this,Ft),t),r=this.createResult(n,t);return WP(this,r)&&(P(this,At,r),P(this,to,this.options),P(this,Zs,f(this,le).state)),r}getCurrentResult(){return f(this,At)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&f(this,hr).status==="pending"&&f(this,hr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(t){f(this,so).add(t)}getCurrentQuery(){return f(this,le)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=f(this,Ft).defaultQueryOptions(t),r=f(this,Ft).getQueryCache().build(f(this,Ft),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return C(this,xe,la).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),f(this,At)))}createResult(t,n){var V;const r=f(this,le),s=this.options,i=f(this,At),o=f(this,Zs),a=f(this,to),u=t!==r?t.state:f(this,ul),{state:c}=t;let d={...c},h=!1,m;if(n._optimisticResults){const L=this.hasListeners(),q=!L&&n0(t,n),ce=L&&r0(t,r,n,s);(q||ce)&&(d={...d,...Ub(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:v,errorUpdatedAt:x,status:b}=d;m=d.data;let y=!1;if(n.placeholderData!==void 0&&m===void 0&&b==="pending"){let L;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(L=i.data,y=!0):L=typeof n.placeholderData=="function"?n.placeholderData((V=f(this,ro))==null?void 0:V.state.data,f(this,ro)):n.placeholderData,L!==void 0&&(b="success",m=vh(i==null?void 0:i.data,L,n),h=!0)}if(n.select&&m!==void 0&&!y)if(i&&m===(o==null?void 0:o.data)&&n.select===f(this,cl))m=f(this,no);else try{P(this,cl,n.select),m=n.select(m),m=vh(i==null?void 0:i.data,m,n),P(this,no,m),P(this,Yr,null)}catch(L){P(this,Yr,L)}f(this,Yr)&&(v=f(this,Yr),m=f(this,no),x=Date.now(),b="error");const g=d.fetchStatus==="fetching",w=b==="pending",S=b==="error",_=w&&g,A=m!==void 0,E={status:b,fetchStatus:d.fetchStatus,isPending:w,isSuccess:b==="success",isError:S,isInitialLoading:_,isLoading:_,data:m,dataUpdatedAt:d.dataUpdatedAt,error:v,errorUpdatedAt:x,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!w,isLoadingError:S&&!A,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:S&&A,isStale:zm(t,n),refetch:this.refetch,promise:f(this,hr),isEnabled:Xt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const L=E.data!==void 0,q=E.status==="error"&&!L,ce=ue=>{q?ue.reject(E.error):L&&ue.resolve(E.data)},je=()=>{const ue=P(this,hr,E.promise=xh());ce(ue)},de=f(this,hr);switch(de.status){case"pending":t.queryHash===r.queryHash&&ce(de);break;case"fulfilled":(q||E.data!==de.value)&&je();break;case"rejected":(!q||E.error!==de.reason)&&je();break}}return E}updateResult(){const t=f(this,At),n=this.createResult(f(this,le),this.options);if(P(this,Zs,f(this,le).state),P(this,to,this.options),f(this,Zs).data!==void 0&&P(this,ro,f(this,le)),gh(n,t))return;P(this,At,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!f(this,so).size)return!0;const o=new Set(i??f(this,so));return this.options.throwOnError&&o.add("error"),Object.keys(f(this,At)).some(a=>{const l=a;return f(this,At)[l]!==t[l]&&o.has(l)})};C(this,xe,$b).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&C(this,xe,Eh).call(this)}},Ft=new WeakMap,le=new WeakMap,ul=new WeakMap,At=new WeakMap,Zs=new WeakMap,to=new WeakMap,hr=new WeakMap,Yr=new WeakMap,cl=new WeakMap,no=new WeakMap,ro=new WeakMap,Ys=new WeakMap,Xs=new WeakMap,Xr=new WeakMap,so=new WeakMap,xe=new WeakSet,la=function(t){C(this,xe,Th).call(this);let n=f(this,le).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ut)),n},bh=function(){C(this,xe,kh).call(this);const t=vs(this.options.staleTime,f(this,le));if(Za.isServer()||f(this,At).isStale||!mh(t))return;const r=Lb(f(this,At).dataUpdatedAt,t)+1;P(this,Ys,$s.setTimeout(()=>{f(this,At).isStale||this.updateResult()},r))},Sh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(f(this,le)):this.options.refetchInterval)??!1},Ch=function(t){C(this,xe,_h).call(this),P(this,Xr,t),!(Za.isServer()||Xt(this.options.enabled,f(this,le))===!1||!mh(f(this,Xr))||f(this,Xr)===0)&&P(this,Xs,$s.setInterval(()=>{(this.options.refetchIntervalInBackground||Mm.isFocused())&&C(this,xe,la).call(this)},f(this,Xr)))},Eh=function(){C(this,xe,bh).call(this),C(this,xe,Ch).call(this,C(this,xe,Sh).call(this))},kh=function(){f(this,Ys)!==void 0&&($s.clearTimeout(f(this,Ys)),P(this,Ys,void 0))},_h=function(){f(this,Xs)!==void 0&&($s.clearInterval(f(this,Xs)),P(this,Xs,void 0))},Th=function(){const t=f(this,Ft).getQueryCache().build(f(this,Ft),this.options);if(t===f(this,le))return;const n=f(this,le);P(this,le,t),P(this,ul,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},$b=function(t){mt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(f(this,At))}),f(this,Ft).getQueryCache().notify({query:f(this,le),type:"observerResultsUpdated"})})},r1);function BP(e,t){return Xt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Xt(t.retryOnMount,e)===!1)}function n0(e,t){return BP(e,t)||e.state.data!==void 0&&Ph(e,t,t.refetchOnMount)}function Ph(e,t,n){if(Xt(t.enabled,e)!==!1&&vs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&zm(e,t)}return!1}function r0(e,t,n,r){return(e!==t||Xt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&zm(e,n)}function zm(e,t){return Xt(t.enabled,e)!==!1&&e.isStaleByTime(vs(t.staleTime,e))}function WP(e,t){return!gh(e.getCurrentResult(),t)}var dl,Kn,Et,Js,Gn,Dr,s1,HP=(s1=class extends Fb{constructor(t){super();I(this,Gn);I(this,dl);I(this,Kn);I(this,Et);I(this,Js);P(this,dl,t.client),this.mutationId=t.mutationId,P(this,Et,t.mutationCache),P(this,Kn,[]),this.state=t.state||KP(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){f(this,Kn).includes(t)||(f(this,Kn).push(t),this.clearGcTimeout(),f(this,Et).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){P(this,Kn,f(this,Kn).filter(n=>n!==t)),this.scheduleGc(),f(this,Et).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){f(this,Kn).length||(this.state.status==="pending"?this.scheduleGc():f(this,Et).remove(this))}continue(){var t;return((t=f(this,Js))==null?void 0:t.continue())??this.execute(this.state.variables)}
68async execute(t){var o,a,l,u,c,d,h,m,v,x,b,y,g,w,S,_,A,N;const n=()=>{C(this,Gn,Dr).call(this,{type:"continue"})},r={client:f(this,dl),meta:this.options.meta,mutationKey:this.options.mutationKey};P(this,Js,Vb({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(E,V)=>{C(this,Gn,Dr).call(this,{type:"failed",failureCount:E,error:V})},onPause:()=>{C(this,Gn,Dr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>f(this,Et).canRun(this)}));const s=this.state.status==="pending",i=!f(this,Js).canStart();try{if(s)n();else{C(this,Gn,Dr).call(this,{type:"pending",variables:t,isPaused:i}),f(this,Et).config.onMutate&&await f(this,Et).config.onMutate(t,this,r);const V=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t,r));V!==this.state.context&&C(this,Gn,Dr).call(this,{type:"pending",context:V,variables:t,isPaused:i})}const E=await f(this,Js).start();return await((u=(l=f(this,Et).config).onSuccess)==null?void 0:u.call(l,E,t,this.state.context,this,r)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,E,t,this.state.context,r)),await((m=(h=f(this,Et).config).onSettled)==null?void 0:m.call(h,E,null,this.state.variables,this.state.context,this,r)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,E,null,t,this.state.context,r)),C(this,Gn,Dr).call(this,{type:"success",data:E}),E}catch(E){try{await((y=(b=f(this,Et).config).onError)==null?void 0:y.call(b,E,t,this.state.context,this,r))}catch(V){Promise.reject(V)}try{await((w=(g=this.options).onError)==null?void 0:w.call(g,E,t,this.state.context,r))}catch(V){Promise.reject(V)}try{await((_=(S=f(this,Et).config).onSettled)==null?void 0:_.call(S,void 0,E,this.state.variables,this.state.context,this,r))}catch(V){Promise.reject(V)}try{await((N=(A=this.options).onSettled)==null?void 0:N.call(A,void 0,E,t,this.state.context,r))}catch(V){Promise.reject(V)}throw C(this,Gn,Dr).call(this,{type:"error",error:E}),E}finally{f(this,Et).runNext(this)}}},dl=new WeakMap,Kn=new WeakMap,Et=new WeakMap,Js=new WeakMap,Gn=new WeakSet,Dr=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),mt.batch(()=>{f(this,Kn).forEach(r=>{r.onMutationUpdate(t)}),f(this,Et).notify({mutation:this,type:"updated",action:t})})},s1);function KP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pr,Nn,fl,i1,GP=(i1=class extends Al{constructor(t={}){super();I(this,pr);I(this,Nn);I(this,fl);this.config=t,P(this,pr,new Set),P(this,Nn,new Map),P(this,fl,0)}build(t,n,r){const s=new HP({client:t,mutationCache:this,mutationId:++zl(this,fl)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){f(this,pr).add(t);const n=su(t);if(typeof n=="string"){const r=f(this,Nn).get(n);r?r.push(t):f(this,Nn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(f(this,pr).delete(t)){const n=su(t);if(typeof n=="string"){const r=f(this,Nn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&f(this,Nn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=su(t);if(typeof n=="string"){const r=f(this,Nn).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=su(t);if(typeof n=="string"){const s=(r=f(this,Nn).get(n))==null?void 0:r.find(i=>
vendor: 4,478 bytes, line 68
68i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){mt.batch(()=>{f(this,pr).forEach(t=>{this.notify({type:"removed",mutation:t})}),f(this,pr).clear(),f(this,Nn).clear()})}getAll(){return Array.from(f(this,pr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zy(n,r))}findAll(t={}){return this.getAll().filter(n=>Zy(t,n))}notify(t){mt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return mt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ut))))}},pr=new WeakMap,Nn=new WeakMap,fl=new WeakMap,i1);function su(e){var t;return(t=e.options.scope)==null?void 0:t.id}var qn,o1,qP=(o1=class extends Al{constructor(t={}){super();I(this,qn);this.config=t,P(this,qn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Vm(s,n);let o=this.get(i);return o||(o=new UP({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){f(this,qn).has(t.queryHash)||(f(this,qn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=f(this,qn).get(t.queryHash);n&&(t.destroy(),n===t&&f(this,qn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){mt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return f(this,qn).get(t)}getAll(){return[...f(this,qn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Qy(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Qy(t,r)):n}notify(t){mt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){mt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){mt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},qn=new WeakMap,o1),$e,Jr,es,io,oo,ts,ao,lo,a1,QP=(a1=class{constructor(e={}){I(this,$e);I(this,Jr);I(this,es);I(this,io);I(this,oo);I(this,ts);I(this,ao);I(this,lo);P(this,$e,e.queryCache||new qP),P(this,Jr,e.mutationCache||new GP),P(this,es,e.defaultOptions||{}),P(this,io,new Map),P(this,oo,new Map),P(this,ts,0)}mount(){zl(this,ts)._++,f(this,ts)===1&&(P(this,ao,Mm.subscribe(async e=>{e&&(await this.resumePausedMutations(),f(this,$e).onFocus())})),P(this,lo,yc.subscribe(async e=>{e&&(await this.resumePausedMutations(),f(this,$e).onOnline())})))}unmount(){var e,t;zl(this,ts)._--,f(this,ts)===0&&((e=f(this,ao))==null||e.call(this),P(this,ao,void 0),(t=f(this,lo))==null||t.call(this),P(this,lo,void 0))}isFetching(e){return f(this,$e).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return f(this,Jr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=f(this,$e).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=f(this,$e).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(vs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return f(this,$e).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=f(this,$e).get(r.queryHash),i=s==null?void 0:s.state.data,o=NP(t,i);if(o!==void 0)return f(this,$e).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return mt.batch(()=>f(this,$e).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=f(this,$e).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=f(this,$e);mt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=f(this,$e);return mt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=mt.batch(()=>f(this,$e).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Ut).catch(Ut)}invalidateQueries(e,t={}){return mt.batch(()=>(f(this,$e).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=mt.batch(()=>f(this,$e).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ut)),s.state.fetchStatus==="paused"?Promise.resolve():i}
68));return Promise.all(r).then(Ut)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=f(this,$e).build(this,t);return n.isStaleByTime(vs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ut).catch(Ut)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ut).catch(Ut)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return yc.isOnline()?f(this,Jr).resumePausedMutations():Promise.resolve()}getQueryCache(){return f(this,$e)}getMutationCache(){return f(this,Jr)}getDefaultOptions(){return f(this,es)}setDefaultOptions(e){P(this,es,e)}setQueryDefaults(e,t){f(this,io).set(qa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...f(this,io).values()],n={};return t.forEach(r=>{Qa(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){f(this,oo).set(qa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...f(this,oo).values()],n={};return t.forEach(r=>{Qa(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...f(this,es).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vm(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===Fm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...f(this,es).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){f(this,$e).clear(),f(this,Jr).clear()}},$e=new WeakMap,Jr=new WeakMap,es=new WeakMap,io=new WeakMap,oo=new WeakMap,ts=new WeakMap,ao=new WeakMap,lo=new WeakMap,a1),Bb=k.createContext(void 0),ZP=e=>{const t=k.useContext(Bb);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},YP=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(Bb.Provider,{value:e,children:t})),Wb=k.createContext(!1),XP=()=>k.useContext(Wb);Wb.Provider;function JP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var eN=k.createContext(JP()),tN=()=>k.useContext(eN),nN=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Db(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},rN=e=>{k.useEffect(()=>{e.clearReset()},[e])},sN=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||Db(n,[e.error,r])),iN=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},oN=(e,t)=>e.isLoading&&e.isFetching&&!t,aN=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,s0=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function lN(e,t,n){var m,v,x,b;const r=XP(),s=tN(),i=ZP(),o=i.defaultQueryOptions(e);(v=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||v.call(m,o);const a=i.getQueryCache().get(o.queryHash),l=e.subscribed!==!1;o._optimisticResults=r?"isRestoring":l?"optimistic":void 0,iN(o),nN(o,s,a),rN(s);const u=!i.getQueryCache().get(o.queryHash),[c]=k.useState(()=>new t(i,o)),d=c.getOptimisticResult(o),h=!r&&l;if(k.useSyncExternalStore(k.useCallback(y=>{const g=h?c.subscribe(mt.batchCalls(y)):Ut;return c.updateResult(),g},[c,h]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),k.useEffect(()=>{c.setOptions(o)},[o,c]),aN(o,d))throw s0(o,c,s);if(sN({result:d,errorResetBoundary:s,throwOnError:o.throwOnError,query:a,suspense:o.suspense}))throw d.error;if((b=(x=i.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||b.call(x,o,d),o.experimental_prefetchInRender&&!Za.isServer()&&oN(d,r)){const y=u?s0(o,c,s):a==null?void 0:a.promise;y==null||y.catch(Ut).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?d:c.trackResult(d)}function uN(e,t){return lN(e,$P)}const cN=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,dN={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},fN=e=>dN[e],hN=e=>e.replace(cN,fN);let Nh={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:hN};const pN=(e={})=>{Nh={...Nh,...e}},P6=()=>Nh;let Hb;const mN=e=>{Hb=e},N6=()=>Hb,gN={type:"3rdParty",init(e){pN(e.options.react),mN(e)}},yN=k.createContext();class A6{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function vN({i18n:e,defaultNS:t,children:n}){const r=k.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return k.createElement(yN.Provider,{value:r},n)}const Kb=k.createContext({});function Gb(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const xN=typeof window<"u",wN=xN?k.useLayoutEffect:k.useEffect,Um=k.createContext(null);function $m(e,t){e.indexOf(t)===-1&&e.push(t)}function vc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}
vendor: 28,764 bytes, line 68
68const ir=(e,t,n)=>n>t?t:n<e?e:n;let Bm=()=>{};const Ss={},qb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Qb=e=>typeof e=="object"&&e!==null,Zb=e=>/^0[^.\s]+$/u.test(e);function Yb(e){let t;return()=>(t===void 0&&(t=e()),t)}const xn=e=>e,Rl=(...e)=>e.reduce((t,n)=>r=>n(t(r))),Ya=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class Wm{constructor(){this.subscriptions=[]}add(t){return $m(this.subscriptions,t),()=>vc(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const tn=e=>e*1e3,gn=e=>e/1e3,Xb=(e,t)=>t?e*(1e3/t):0,Jb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,bN=1e-7,SN=12;function CN(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Jb(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>bN&&++a<SN);return o}function Il(e,t,n,r){if(e===t&&n===r)return xn;const s=i=>CN(i,0,1,e,n);return i=>i===0||i===1?i:Jb(s(i),t,r)}const eS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tS=e=>t=>1-e(1-t),nS=Il(.33,1.53,.69,.99),Hm=tS(nS),rS=eS(Hm),sS=e=>e>=1?1:(e*=2)<1?.5*Hm(e):.5*(2-Math.pow(2,-10*(e-1))),Km=e=>1-Math.sin(Math.acos(e)),iS=tS(Km),oS=eS(Km),EN=Il(.42,0,1,1),kN=Il(0,0,.58,1),aS=Il(.42,0,.58,1),_N=e=>Array.isArray(e)&&typeof e[0]!="number",lS=e=>Array.isArray(e)&&typeof e[0]=="number",TN={linear:xn,easeIn:EN,easeInOut:aS,easeOut:kN,circIn:Km,circInOut:oS,circOut:iS,backIn:Hm,backInOut:rS,backOut:nS,anticipate:sS},PN=e=>typeof e=="string",i0=e=>{if(lS(e)){Bm(e.length===4);const[t,n,r,s]=e;return Il(t,n,r,s)}else if(PN(e))return TN[e];return e},iu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function NN(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,c=!1,d=!1)=>{const m=d&&r?t:n;return c&&i.add(u),m.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(o=u,r){s=!0;return}r=!0;const c=t;t=n,n=c,t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(u))}};return l}const AN=40;function uS(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=iu.reduce((w,S)=>(w[S]=NN(i),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:m,postRender:v}=o,x=()=>{const w=Ss.useManualTiming,S=w?s.timestamp:performance.now();n=!1,w||(s.delta=r?1e3/60:Math.max(Math.min(S-s.timestamp,AN),1)),s.timestamp=S,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),d.process(s),h.process(s),m.process(s),v.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(x))},b=()=>{n=!0,r=!0,s.isProcessing||e(x)};return{schedule:iu.reduce((w,S)=>{const _=o[S];return w[S]=(A,N=!1,E=!1)=>(n||b(),_.schedule(A,N,E)),w},{}),cancel:w=>{for(let S=0;S<iu.length;S++)o[iu[S]].cancel(w)},state:s,steps:o}}const{schedule:Ce,cancel:Cs,state:pt,steps:Hd}=uS(typeof requestAnimationFrame<"u"?requestAnimationFrame:xn,!0);let Au;function RN(){Au=void 0}const Lt={now:()=>(Au===void 0&&Lt.set(pt.isProcessing||Ss.useManualTiming?pt.timestamp:performance.now()),Au),set:e=>{Au=e,queueMicrotask(RN)}},cS=e=>t=>typeof t=="string"&&t.startsWith(e),dS=cS("--"),IN=cS("var(--"),Gm=e=>IN(e)?LN.test(e.split("/*")[0].trim()):!1,LN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function o0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Fo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Xa={...Fo,transform:e=>ir(0,1,e)},ou={...Fo,default:1},Sa=e=>Math.round(e*1e5)/1e5,qm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jN(e){return e==null}const ON=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qm=(e,t)=>n=>!!(typeof n=="string"&&ON.test(n)&&n.startsWith(e)||t&&!jN(n)&&Object.prototype.hasOwnProperty.call(n,t)),fS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(qm);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},DN=e=>ir(0,255,e),Kd={...Fo,transform:e=>Math.round(DN(e))},Bs={test:Qm("rgb","red"),parse:fS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Kd.transform(e)+", "+Kd.transform(t)+", "+Kd.transform(n)+", "+Sa(Xa.transform(r))+")"};function MN(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Ah={test:Qm("#"),parse:MN,transform:Bs.transform},Ll=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),lr=Ll("deg"),rr=Ll("%"),W=Ll("px"),VN=Ll("vh"),FN=Ll("vw"),a0={...rr,parse:e=>rr.parse(e)/100,transform:e=>rr.transform(e*100)},zi={test:Qm("hsl","hue"),parse:fS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rr.transform(Sa(t))+", "+rr.transform(Sa(n))+", "+Sa(Xa.transform(r))+")"},Xe={test:e=>Bs.test(e)||Ah.test(e)||zi.test(e),parse:e=>Bs.test(e)?Bs.parse(e):zi.test(e)?zi.parse(e):Ah.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Bs.transform(e):zi.transform(e),getAnimatableNone:e=>{const t=Xe.parse(e);return t.alpha=0,Xe.transform(t)}},zN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function UN(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(qm))==null?void 0:t.length)||0)+(((n=e.match(zN))==null?void 0:n.length)||0)>0}const hS="number",pS="color",$N="var",BN="var(",l0="${}",WN=/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 ko(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(WN,l=>(Xe.test(l)?(r.color.push(i),s.push(pS),n.push(Xe.parse(l))):l.startsWith(BN)?(r.var.push(i),s.push($N),n.push(l)):(r.number.push(i),s.push(hS),n.push(parseFloat(l))),++i,l0)).split(l0);return{values:n,split:a,indexes:r,types:s}}function HN(e){return ko(e).values}function mS({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const o=t[i];o===hS?s+=Sa(r[i]):o===pS?s+=Xe.transform(r[i]):s+=r[i]}return s}}function KN(e){return mS(ko(e))}const GN=e=>typeof e=="number"?0:Xe.test(e)?Xe.getAnimatableNone(e):e,qN=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:GN(e);function QN(e){const t=ko(e);return mS(t)(t.values.map((r,s)=>qN(r,t.split[s])))}const zn={test:UN,parse:HN,createTransformer:KN,getAnimatableNone:QN};function Gd(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 ZN({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=Gd(l,a,e+1/3),i=Gd(l,a,e),o=Gd(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function xc(e,t){return n=>n>0?t:e}const Se=(e,t,n)=>e+(t-e)*n,qd=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},YN=[Ah,Bs,zi],XN=e=>YN.find(t=>t.test(e));function u0(e){const t=XN(e);if(!t)return!1;let n=t.parse(e);return t===zi&&(n=ZN(n)),n}const c0=(e,t)=>{const n=u0(e),r=u0(t);if(!n||!r)return xc(e,t);const s={...n};return i=>(s.red=qd(n.red,r.red,i),s.green=qd(n.green,r.green,i),s.blue=qd(n.blue,r.blue,i),s.alpha=Se(n.alpha,r.alpha,i),Bs.transform(s))},Rh=new Set(["none","hidden"]);function JN(e,t){return Rh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function eA(e,t){return n=>Se(e,t,n)}function Zm(e){return typeof e=="number"?eA:typeof e=="string"?Gm(e)?xc:Xe.test(e)?c0:rA:Array.isArray(e)?gS:typeof e=="object"?Xe.test(e)?c0:tA:xc}function gS(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Zm(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function tA(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Zm(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function nA(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const rA=(e,t)=>{const n=zn.createTransformer(t),r=ko(e),s=ko(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Rh.has(e)&&!s.values.length||Rh.has(t)&&!r.values.length?JN(e,t):Rl(gS(nA(r,s),s.values),n):xc(e,t)};function yS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Se(e,t,n):Zm(e)(e,t)}const sA=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ce.update(t,n),stop:()=>Cs(t),now:()=>pt.isProcessing?pt.timestamp:Lt.now()}},vS=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},wc=2e4;function Ym(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<wc;)t+=n,r=e.next(t);return t>=wc?1/0:t}function iA(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Ym(r),wc);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:gn(s)}}const Be={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 Ih(e,t){return e*Math.sqrt(1-t*t)}const oA=12;function aA(e,t,n){let r=n;for(let s=1;s<oA;s++)r=r-e(r)/t(r);return r}const Qd=.001;function lA({duration:e=Be.duration,bounce:t=Be.bounce,velocity:n=Be.velocity,mass:r=Be.mass}){let s,i,o=1-t;o=ir(Be.minDamping,Be.maxDamping,o),e=ir(Be.minDuration,Be.maxDuration,gn(e)),o<1?(s=u=>{const c=u*o,d=c*e,h=c-n,m=Ih(u,o),v=Math.exp(-d);return Qd-h/m*v},i=u=>{const d=u*o*e,h=d*n+n,m=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-d),x=Ih(Math.pow(u,2),o);return(-s(u)+Qd>0?-1:1)*((h-m)*v)/x}):(s=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Qd+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=aA(s,i,a);if(e=tn(e),isNaN(l))return{stiffness:Be.stiffness,damping:Be.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const uA=["duration","bounce"],cA=["stiffness","damping","mass"];function d0(e,t){return t.some(n=>e[n]!==void 0)}function dA(e){let t={velocity:Be.velocity,stiffness:Be.stiffness,damping:Be.damping,mass:Be.mass,isResolvedFromDuration:!1,...e};if(!d0(e,cA)&&d0(e,uA))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*ir(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Be.mass,stiffness:s,damping:i}}else{const n=lA({...e,velocity:0});t={...t,...n,mass:Be.mass},t.isResolvedFromDuration=!0}return t}function bc(e=Be.visualDuration,t=Be.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:m}=dA({...n,velocity:-gn(n.velocity||0)}),v=h||0,x=u/(2*Math.sqrt(l*c)),b=o-i,y=gn(Math.sqrt(l/c)),g=Math.abs(b)<5;r||(r=g?Be.restSpeed.granular:Be.restSpeed.default),s||(s=g?Be.restDelta.granular:Be.restDelta.default);let w,S,_,A,N,E;if(x<1)_=Ih(y,x),A=(v+x*y*b)/_,w=L=>{const q=Math.exp(-x*y*L);return o-q*(A*Math.sin(_*L)+b*Math.cos(_*L))},N=x*y*A+b*_,E=x*y*b-A*_,S=L=>Math.exp(-x*y*L)*(N*Math.sin(_*L)+E*Math.cos(_*L));else if(x===1){w=q=>o-Math.exp(-y*q)*(b+(v+y*b)*q);const L=v+y*b;S=q=>Math.exp(-y*q)*(y*L*q-v)}else{const L=y*Math.sqrt(x*x-1);w=de=>{const ue=Math.exp(-x*y*de),ne=Math.min(L*de,300);return o-ue*((v+x*y*b)*Math.sinh(ne)+L*b*Math.cosh(ne))/L};const q=(v+x*y*b)/L,ce=x*y*q-b*L,je=x*y*b-q*L;S=de=>{const ue=Math.exp(-x*y*de),ne=Math.min(L*de,300);return ue*(ce*Math.sinh(ne)+je*Math.cosh(ne))}}const V={calculatedDuration:m&&d||null,velocity:L=>tn(S(L)),next:L=>{if(!m&&x<1){const ce=Math.exp(-x*y*L),je=Math.sin(_*L),de=Math.cos(_*L),ue=o-ce*(A*je+b*de),ne=tn(ce*(N*je+E*de));return a.done=Math.abs(ne)<=r&&Math.abs(o-ue)<=s,a.value=a.done?o:ue,a}const q=w(L);if(m)a.done=L>=d;else{const ce=tn(S(L));a.done=Math.abs(ce)<=r&&Math.abs(o-q)<=s}return a.value=a.done?o:q,a},toString:()=>{const L=Math.min(Ym(V),wc),q=vS(ce=>V.next(L*ce).value,L,30);return L+"ms "+q},toTransition:()=>{}};return V}bc.applyToOptions=e=>{const t=iA(e,100,bc);return e.ease=t.ease,e.duration=tn(t.duration),e.type="keyframes",e};const fA=5;function xS(e,t,n){const r=Math.max(t-fA,0);return Xb(n-e(r),t-r)}function Lh({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],h={done:!1,value:d},m=E=>a!==void 0&&E<a||l!==void 0&&E>l,v=E=>a===void 0?l:l===void 0||Math.abs(a-E)<Math.abs(l-E)?a:l;let x=n*t;const b=d+x,y=o===void 0?b:o(b);y!==b&&(x=y-d);const g=E=>-x*Math.exp(-E/r),w=E=>y+g(E),S=E=>{const V=g(E),L=w(E);h.done=Math.abs(V)<=u,h.value=h.done?y:L};let _,A;const N=E=>{m(h.value)&&(_=E,A=bc({keyframes:[h.value,v(h.value)],velocity:xS(w,E,h.value),damping:s,stiffness:i,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:E=>{let V=!1;return!A&&_===void 0&&(V=!0,S(E),N(E)),_!==void 0&&E>=_?A.next(E-_):(!V&&S(E),h)}}}function hA(e,t,n){const r=[],s=n||Ss.mix||yS,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||xn:t;a=Rl(l,a)}r.push(a)}return r}function pA(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Bm(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=hA(t,r,s),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const h=Ya(e[d],e[d+1],c);return a[d](h)};return n?c=>u(ir(e[0],e[i-1],c)):u}function mA(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Ya(0,t,r);e.push(Se(n,1,s))}}function gA(e){const t=[0];return mA(t,e.length-1),t}function yA(e,t){return e.map(n=>n*t)}function vA(e,t){return e.map(()=>t||aS).splice(0,e.length-1)}function Ca({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=_N(r)?r.map(i0):i0(r),i={done:!1,value:t[0]},o=yA(n&&n.length===t.length?n:gA(t),e),a=pA(o,t,{ease:Array.isArray(s)?s:vA(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const xA=e=>e!==null;function ad(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(xA),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const wA={decay:Lh,inertia:Lh,tween:Ca,keyframes:Ca,spring:bc};function wS(e){typeof e.type=="string"&&(e.type=wA[e.type])}class Xm{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 bA=e=>e/100;class Sc extends Xm{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,s;const{motionValue:n}=this.options;n&&n.updatedAt!==Lt.now()&&this.tick(Lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;wS(t);const{type:n=Ca,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Ca;l!==Ca&&typeof a[0]!="number"&&(this.mixKeyframes=Rl(bA,yS(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Ym(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=u}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:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:h,repeatDelay:m,type:v,onUpdate:x,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let w=this.currentTime,S=r;if(d){const E=Math.min(this.currentTime,s)/a;let V=Math.floor(E),L=E%1;!L&&E>=1&&(L=1),L===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(h==="reverse"?(L=1-L,m&&(L-=m/a)):h==="mirror"&&(S=o)),w=ir(0,1,L)*a}let _;g?(this.delayState.value=c[0],_=this.delayState):_=S.next(w),i&&!g&&(_.value=i(_.value));let{done:A}=_;!g&&l!==null&&(A=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return N&&v!==Lh&&(_.value=ad(c,this.options,b,this.speed)),x&&x(_.value),N&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return gn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+gn(t)}get time(){return gn(this.currentTime)}set time(t){t=tn(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;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return xS(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(Lt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=gn(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=sA,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);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(Lt.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 SA(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ws=e=>e*180/Math.PI,jh=e=>{const t=Ws(Math.atan2(e[1],e[0]));return Oh(t)},CA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:jh,rotateZ:jh,skewX:e=>Ws(Math.atan(e[1])),skewY:e=>Ws(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Oh=e=>(e=e%360,e<0&&(e+=360),e),f0=jh,h0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),p0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),EA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:h0,scaleY:p0,scale:e=>(h0(e)+p0(e))/2,rotateX:e=>Oh(Ws(Math.atan2(e[6],e[5]))),rotateY:e=>Oh(Ws(Math.atan2(-e[2],e[0]))),rotateZ:f0,rotate:f0,skewX:e=>Ws(Math.atan(e[4])),skewY:e=>Ws(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Dh(e){return e.includes("scale")?1:0}function Mh(e,t){if(!e||e==="none")return Dh(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=EA,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=CA,s=a}if(!s)return Dh(t);const i=r[t],o=s[1].split(",").map(_A);return typeof i=="function"?i(o):o[i]}const kA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Mh(n,t)};function _A(e){return parseFloat(e.trim())}const zo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Uo=new Set([...zo,"pathRotation"]),m0=e=>e===Fo||e===W,TA=new Set(["x","y","z"]),PA=zo.filter(e=>!TA.has(e));function NA(e){const t=[];return PA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const as={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-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})=>Mh(t,"x"),y:(e,{transform:t})=>Mh(t,"y")};as.translateX=as.x;as.translateY=as.y;const oi=new Set;let Vh=!1,Fh=!1,zh=!1;function bS(){if(Fh){const e=Array.from(oi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=NA(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Fh=!1,Vh=!1,oi.forEach(e=>e.complete(zh)),oi.clear()}function SS(){oi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fh=!0)})}function AA(){zh=!0,SS(),bS(),zh=!1}class Jm{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(oi.add(this),Vh||(Vh=!0,Ce.read(SS),Ce.resolveKeyframes(bS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}SA(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),oi.delete(this)}cancel(){this.state==="scheduled"&&(oi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const RA=e=>e.startsWith("--");function CS(e,t,n){RA(t)?e.style.setProperty(t,n):e.style[t]=n}const IA={};function ES(e,t){const n=Yb(e);return()=>IA[t]??n()}const LA=ES(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),kS=ES(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ua=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,g0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ua([0,.65,.55,1]),circOut:ua([.55,0,1,.45]),backIn:ua([.31,.01,.66,-.59]),backOut:ua([.33,1.53,.69,.99])};function _S(e,t){if(e)return typeof e=="function"?kS()?vS(e,t):"ease-out":lS(e)?ua(e):Array.isArray(e)?e.map(n=>_S(n,t)||g0.easeOut):g0[e]}function jA(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=_S(a,s);Array.isArray(d)&&(c.easing=d);const h={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(c,h)}function TS(e){return typeof e=="function"&&"applyToOptions"in e}function OA({type:e,...t}){return TS(e)&&kS()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class PS extends Xm{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Bm(typeof t.type!="string");const u=OA(t);this.animation=jA(n,r,s,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const c=ad(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),CS(n,r,c),this.animation.cancel()}l==null||l(),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,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.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 gn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+gn(t)}get time(){return gn(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tn(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:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&LA()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),xn):s(this)}}const NS={anticipate:sS,backInOut:rS,circInOut:oS};function DA(e){return e in NS}function MA(e){typeof e.ease=="string"&&DA(e.ease)&&(e.ease=NS[e.ease])}const Zd=10;class VA extends PS{constructor(t){MA(t),wS(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:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Sc({...o,autoplay:!1}),l=Math.max(Zd,Lt.now()-this.startTime),u=ir(0,Zd,l-Zd),c=a.sample(l).value,{name:d}=this.options;i&&d&&CS(i,d,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const y0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(zn.test(e)||e==="0")&&!e.startsWith("url("));function FA(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 zA(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=y0(s,t),a=y0(i,t);return!o||!a?!1:FA(e)||(n==="spring"||TS(n))&&r}function Uh(e){e.duration=0,e.type="keyframes"}const AS=new Set(["opacity","clipPath","filter","transform"]),UA=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function $A(e){for(let t=0;t<e.length;
68t++)if(typeof e[t]=="string"&&UA.test(e[t]))return!0;return!1}const BA=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),WA=Yb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function HA(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return WA()&&n&&(AS.has(n)||BA.has(n)&&$A(a))&&(n!=="transform"||!c)&&!u&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const KA=40;class GA extends Xm{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var v;super(),this.stop=()=>{var x,b;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=Lt.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:u,element:c,...d},m=(c==null?void 0:c.KeyframeResolver)||Jm;this.keyframeResolver=new m(a,(x,b,y)=>this.onKeyframesResolved(x,b,h,!y),l,u,c),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,s){var y,g;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Lt.now();let d=!0;zA(t,i,o,a)||(d=!1,(Ss.instantAnimations||!l)&&(c==null||c(ad(t,r,n))),t[0]=t[t.length-1],Uh(r),r.repeat=0);const m={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>KA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},v=d&&!u&&HA(m),x=(g=(y=m.motionValue)==null?void 0:y.owner)==null?void 0:g.current;let b;if(v)try{b=new VA({...m,element:x})}catch{b=new Sc(m)}else b=new Sc(m);b.finished.then(()=>{this.notifyFinished()}).catch(xn),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}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(),AA()),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 RS(e,t,n,r=0,s=1){const i=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const v0=30,qA=e=>!isNaN(parseFloat(e));class QA{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=Lt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=qA(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 Wm);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ce.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=Lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>v0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,v0);return Xb(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 _o(e,t){return new QA(e,t)}function eg(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function tg(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?eg(n,e):n}const ZA={type:"spring",stiffness:500,damping:25,restSpeed:10},YA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),XA={type:"keyframes",duration:.8},JA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eR=(e,{keyframes:t})=>t.length>2?XA:Uo.has(e)?e.startsWith("scale")?YA(t[1]):ZA:JA,tR=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function nR(e){for(const t in e)if(!tR.has(t))return!0;return!1}const ng=(e,t,n,r={},s,i)=>o=>{const a=tg(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-tn(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};nR(a)||Object.assign(c,eR(e,c)),c.duration&&(c.duration=tn(c.duration)),c.repeatDelay&&(c.repeatDelay=tn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Uh(c),c.delay===0&&(
vendor: 48,965 bytes, line 68
68d=!0)),(Ss.instantAnimations||Ss.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(d=!0,Uh(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=ad(c.keyframes,a);if(h!==void 0){Ce.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new Sc(c):new GA(c)},rR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sR(e){const t=rR.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function IS(e,t,n=1){const[r,s]=sR(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return qb(o)?parseFloat(o):o}return Gm(s)?IS(s,t,n+1):s}function x0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function rg(e,t,n,r){if(typeof t=="function"){const[s,i]=x0(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=x0(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function ai(e,t,n){const r=e.getProps();return rg(r,t,n!==void 0?n:r.custom,e)}const LS=new Set(["width","height","top","left","right","bottom",...zo]),$h=e=>Array.isArray(e);function iR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_o(n))}function oR(e){return $h(e)?e[e.length-1]||0:e}function aR(e,t){const n=ai(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=oR(i[o]);iR(e,o,a)}}const gt=e=>!!(e&&e.getVelocity);function lR(e){return!!(gt(e)&&e.add)}function Bh(e,t){const n=e.getValue("willChange");if(lR(n))return n.add(t);if(!n&&Ss.WillChange){const r=new Ss.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function sg(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const uR="framerAppearId",jS="data-"+sg(uR);function OS(e){return e.props[jS]}function cR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function DS(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?eg(i,l):l;const u=i==null?void 0:i.reduceMotion,c=i==null?void 0:i.skipAnimations;r&&(i=r);const d=[],h=s&&e.animationState&&e.animationState.getState()[s],m=i==null?void 0:i.path;m&&m.animateVisualElement(e,a,i,n,d);for(const v in a){const x=e.getValue(v,e.latestValues[v]??null),b=a[v];if(b===void 0||h&&cR(h,v))continue;const y={delay:n,...tg(i||{},v)};c&&(y.skipAnimations=!0);const g=x.get();if(g!==void 0&&!x.isAnimating()&&!Array.isArray(b)&&b===g&&!y.velocity){Ce.update(()=>x.set(b));continue}let w=!1;if(window.MotionHandoffAnimation){const A=OS(e);if(A){const N=window.MotionHandoffAnimation(A,v,Ce);N!==null&&(y.startTime=N,w=!0)}}Bh(e,v);const S=u??e.shouldReduceMotion;x.start(ng(v,x,b,S&&LS.has(v)?{type:!1}:y,e,w));const _=x.animation;_&&d.push(_)}if(o){const v=()=>Ce.update(()=>{o&&aR(e,o)});d.length?Promise.all(d).then(v):v()}return d}function Wh(e,t,n={}){var l;const r=ai(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(DS(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:h}=s;return dR(e,t,u,c,d,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,c]=a==="beforeChildren"?[i,o]:[o,i];return u().then(()=>c())}else return Promise.all([i(),o(n.delay)])}function dR(e,t,n=0,r=0,s=0,i=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Wh(l,t,{...o,delay:n+(typeof r=="function"?0:r)+RS(e.variantChildren,l,r,s,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function fR(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Wh(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Wh(e,t,n);else{const s=typeof t=="function"?ai(e,t,n.custom):t;r=Promise.all(DS(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const hR={test:e=>e==="auto",parse:e=>e},MS=e=>t=>t.test(e),VS=[Fo,W,rr,lr,FN,VN,hR],w0=e=>VS.find(MS(e));function pR(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Zb(e):!0}const mR=new Set(["brightness","contrast","saturate","opacity"]);function gR(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qm)||[];if(!r)return e;const s=n.replace(r,"");let i=mR.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const yR=/\b([a-z-]*)\(.*?\)/gu,Hh={...zn,getAnimatableNone:e=>{const t=e.match(yR);return t?t.map(gR).join(" "):e}},Kh={...zn,getAnimatableNone:e=>{const t=zn.parse(e);return zn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},b0={...Fo,transform:Math.round},vR={rotate:lr,pathRotation:lr,rotateX:lr,rotateY:lr,rotateZ:lr,scale:ou,scaleX:ou,scaleY:ou,scaleZ:ou,skew:lr,skewX:lr,skewY:lr,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:Xa,originX:a0,originY:a0,originZ:W},Cc={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,...vR,zIndex:b0,fillOpacity:Xa,strokeOpacity:Xa,numOctaves:b0},xR={...Cc,color:Xe,backgroundColor:Xe,outlineColor:Xe,fill:Xe,stroke:Xe,borderColor:Xe,borderTopColor:Xe,borderRightColor:Xe,borderBottomColor:Xe,borderLeftColor:Xe,filter:Hh,WebkitFilter:Hh,mask:Kh,WebkitMask:Kh},FS=e=>xR[e],wR=new Set([Hh,Kh]);function zS(e,t){let n=FS(e);return wR.has(n)||(n=zn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const bR=new Set(["auto","none","0"]);function SR(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!bR.has(i)&&ko(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=zS(n,s)}class CR extends Jm{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Gm(d))){const h=IS(d,n.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!LS.has(r)||t.length!==2)return;const[s,i]=t,o=w0(s),a=w0(i),l=o0(s),u=o0(i);if(l!==u&&as[r]){this.needsMeasurement=!0;return}if(o!==a)if(m0(o)&&m0(a))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else as[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||pR(t[s]))&&r.push(s);r.length&&SR(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=as[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=as[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function US(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const Gh=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ER(e){return Qb(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:ig}=uS(queueMicrotask,!1),Tn={x:!1,y:!1};function $S(){return Tn.x||Tn.y}function kR(e){return e==="x"||e==="y"?Tn[e]?null:(Tn[e]=!0,()=>{Tn[e]=!1}):Tn.x||Tn.y?null:(Tn.x=Tn.y=!0,()=>{Tn.x=Tn.y=!1})}function BS(e,t){const n=US(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function _R(e){return!(e.pointerType==="touch"||$S())}function TR(e,t,n={}){const[r,s,i]=BS(e,n);return r.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",v)},d=b=>{u&&(u(b),u=void 0),c()},h=b=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(b))},m=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},v=b=>{if(b.pointerType!=="touch"){if(a){l=!0;return}d(b)}},x=b=>{if(!_R(b))return;l=!1;const y=t(o,b);typeof y=="function"&&(u=y,o.addEventListener("pointerleave",v,s))};o.addEventListener("pointerenter",x,s),o.addEventListener("pointerdown",m,s)}),i}const WS=(e,t)=>t?e===t?!0:WS(e,t.parentElement):!1,og=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,PR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function NR(e){return PR.has(e.tagName)||e.isContentEditable===!0}const AR=new Set(["INPUT","SELECT","TEXTAREA"]);function RR(e){return AR.has(e.tagName)||e.isContentEditable===!0}const Ru=new WeakSet;function S0(e){return t=>{t.key==="Enter"&&e(t)}}function Yd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const IR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=S0(()=>{if(Ru.has(n))return;Yd(n,"down");const s=S0(()=>{Yd(n,"up")}),i=()=>Yd(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function C0(e){return og(e)&&!$S()}const E0=new WeakSet;function LR(e,t,n={}){const[r,s,i]=BS(e,n),o=a=>{const l=a.currentTarget;if(!C0(a)||E0.has(a))return;Ru.add(l),n.stopPropagation&&E0.add(a);const u=t(l,a),c={...s,capture:!0},d=(v,x)=>{window.removeEventListener("pointerup",h,c),window.removeEventListener("pointercancel",m,c),Ru.has(l)&&Ru.delete(l),C0(v)&&typeof u=="function"&&u(v,{success:x})},h=v=>{d(v,l===window||l===document||n.useGlobalTarget||WS(l,v.target))},m=v=>{d(v,!1)};window.addEventListener("pointerup",h,c),window.addEventListener("pointercancel",m,c)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),ER(a)&&(a.addEventListener("focus",u=>IR(u,s)),!NR(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function ag(e){return Qb(e)&&"ownerSVGElement"in e}const Iu=new WeakMap;let Mr;const HS=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:ag(r)&&"getBBox"in r?r.getBBox()[t]:r[n],jR=HS("inline","width","offsetWidth"),OR=HS("block","height","offsetHeight");function DR({target:e,borderBoxSize:t}){var n;(n=Iu.get(e))==null||n.forEach(r=>{r(e,{get width(){return jR(e,t)},get height(){return OR(e,t)}})})}function MR(e){e.forEach(DR)}function VR(){typeof ResizeObserver>"u"||(Mr=new ResizeObserver(MR))}function FR(e,t){Mr||VR();const n=US(e);return n.forEach(r=>{let s=Iu.get(r);s||(s=new Set,Iu.set(r,s)),s.add(t),Mr==null||Mr.observe(r)}),()=>{n.forEach(r=>{const s=Iu.get(r);s==null||s.delete(t),s!=null&&s.size||Mr==null||Mr.unobserve(r)})}}const Lu=new Set;let Ui;function zR(){Ui=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Lu.forEach(t=>t(e))},window.addEventListener("resize",Ui)}function UR(e){return Lu.add(e),Ui||zR(),()=>{Lu.delete(e),!Lu.size&&typeof Ui=="function"&&(window.removeEventListener("resize",Ui),Ui=void 0)}}function k0(e,t){return typeof e=="function"?UR(e):FR(e,t)}function $R(e){return ag(e)&&e.tagName==="svg"}const BR=[...VS,Xe,zn],WR=e=>BR.find(MS(e)),_0=()=>({translate:0,scale:1,origin:0,originPoint:0}),$i=()=>({x:_0(),y:_0()}),T0=()=>({min:0,max:0}),rt=()=>({x:T0(),y:T0()}),HR=new WeakMap;function ld(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ja(e){return typeof e=="string"||Array.isArray(e)}const lg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ug=["initial",...lg];function ud(e){return ld(e.animate)||ug.some(t=>Ja(e[t]))}function KS(e){return!!(ud(e)||e.variants)}function KR(e,t,n){for(const r in t){const s=t[r],i=n[r];if(gt(s))e.addValue(r,s);else if(gt(i))e.addValue(r,_o(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,_o(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const qh={current:null},GS={current:!1},GR=typeof window<"u";function qR(){if(GS.current=!0,!!GR)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>qh.current=e.matches;e.addEventListener("change",t),t()}else qh.current=!1}const P0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ec={};function qS(e){Ec=e}function QR(){return Ec}class ZR{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){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=Jm,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 m=Lt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Ce.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=ud(n),this.isVariantNode=KS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const v=h[m];u[m]!==void 0&&gt(v)&&v.set(u[m])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,HR.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((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(GS.current||qR(),this.shouldReduceMotion=qh.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(),Cs(this.notifyUpdate),Cs(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&&AS.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,d=new PS({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:tn(c)}),h=o(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const r=Uo.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}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 Ec){const n=Ec[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rt()}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<P0.length;r++){const s=P0[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=KR(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=_o(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"&&(qb(r)||Zb(r))?r=parseFloat(r):!WR(r)&&zn.test(n)&&(r=zS(t,n)),this.setBaseTarget(t,gt(r)?r.get():r)),gt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=rg(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!gt(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Wm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ig.render(this.render)}}class QS extends ZR{constructor(){super(...arguments),this.KeyframeResolver=CR}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;gt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class As{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ZS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function YR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function XR(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 Xd(e){return e===void 0||e===1}function Qh({scale:e,scaleX:t,scaleY:n}){return!Xd(e)||!Xd(t)||!Xd(n)}function Ms(e){return Qh(e)||YS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function YS(e){return N0(e.x)||N0(e.y)}function N0(e){return e&&e!=="0%"}function kc(e,t,n){const r=e-n,s=t*r;return n+s}function A0(e,t,n,r,s){return s!==void 0&&(e=kc(e,s,r)),kc(e,n,r)+t}function Zh(e,t=0,n=1,r,s){e.min=A0(e.min,t,n,r,s),e.max=A0(e.max,t,n,r,s)}function XS(e,{x:t,y:n}){Zh(e.x,t.translate,t.scale,t.originPoint),Zh(e.y,n.translate,n.scale,n.originPoint)}const R0=.999999999999,I0=1.0000000000001;function JR(e,t,n,r=!1){var a;const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let l=0;l<s;l++){i=n[l],o=i.projectionDelta;const{visualElement:u}=i.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(Yn(e.x,-i.scroll.offset.x),Yn(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,XS(e,o)),r&&Ms(i.latestValues)&&ju(e,i.latestValues,(a=i.layout)==null?void 0:a.layoutBox))}t.x<I0&&t.x>R0&&(t.x=1),t.y<I0&&t.y>R0&&(t.y=1)}function Yn(e,t){e.min+=t,e.max+=t}function L0(e,t,n,r,s=.5){const i=Se(e.min,e.max,s);Zh(e,t,n,i,r)}function j0(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ju(e,t,n){const r=n??e;L0(e.x,j0(t.x,r.x),t.scaleX,t.scale,t.originX),L0(e.y,j0(t.y,r.y),t.scaleY,t.scale,t.originY)}function JS(e,t){return ZS(XR(e.getBoundingClientRect(),t))}function eI(e,t,n){const r=JS(e,n),{scroll:s}=t;return s&&(Yn(r.x,s.offset.x),Yn(r.y,s.offset.y)),r}const tI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nI=zo.length;function rI(e,t,n){let r="",s=!0;for(let o=0;o<nI;o++){const a=zo[o],l=e[a];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(a.startsWith("scale")?1:0);else{const c=parseFloat(l);u=a.startsWith("scale")?c===1:c===0}if(!u||n){const c=Gh(l,Cc[a]);if(!u){s=!1;const d=tI[a]||a;r+=`${d}(${c}) `}n&&(t[a]=c)}}const i=e.pathRotation;return i&&(s=!1,r+=`rotate(${Gh(i,Cc.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function cg(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(Uo.has(l)){o=!0;continue}else if(dS(l)){s[l]=u;continue}else{const c=Gh(u,Cc[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=rI(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}function e2(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function O0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(W.test(e))e=parseFloat(e);else return e;const n=O0(e,t.target.x),r=O0(e,t.target.y);return`${n}% ${r}%`}},sI={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=zn.parse(e);if(s.length>5)return r;const i=zn.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const u=Se(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),i(s)}},Yh={borderRadius:{...Yo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yo,borderTopRightRadius:Yo,borderBottomLeftRadius:Yo,borderBottomRightRadius:Yo,boxShadow:sI};function t2(e,{layout:t,layoutId:n}){return Uo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Yh[e]||e==="opacity")}function dg(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(gt(r[a])||s&&gt(s[a])||t2(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function iI(e){return window.getComputedStyle(e)}class oI extends QS{constructor(){super(...arguments),this.type="html",this.renderInstance=e2}readValueFromInstance(t,n){var r;if(Uo.has(n))return(r=this.projection)!=null&&r.isProjecting?Dh(n):kA(t,n);{const s=iI(t),i=(dS(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return JS(t,n)}build(t,n,r){cg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return dg(t,n,r)}}const aI={offset:"stroke-dashoffset",array:"stroke-dasharray"},lI={offset:"strokeDashoffset",array:"strokeDasharray"};function uI(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?aI:lI;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const cI=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function n2(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,u,c){if(cg(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox);for(const m of cI)d[m]!==void 0&&(h[m]=d[m],delete d[m]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&uI(d,s,i,o,!1)}const r2=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"]),s2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function dI(e,t,n,r){e2(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(r2.has(s)?s:sg(s),t.attrs[s])}function i2(e,t,n){const r=dg(e,t,n);for(const s in e)if(gt(e[s])||gt(t[s])){const i=zo.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class fI extends QS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Uo.has(n)){const r=FS(n);return r&&r.default||0}return n=r2.has(n)?n:sg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return i2(t,n,r)}build(t,n,r){n2(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){dI(t,n,r,s)}mount(t){this.isSVGTag=s2(t.tagName),super.mount(t)}}const hI=ug.length;function o2(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?o2(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<hI;n++){const r=ug[n],s=e.props[r];(Ja(s)||s===!1)&&(t[r]=s)}return t}function a2(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 pI=[...lg].reverse(),mI=lg.length;function gI(e){return t=>Promise.all(t.map(({animation:n,options:r})=>fR(e,n,r)))}function yI(e){let t=gI(e),n=D0(),r=!0,s=!1;const i=u=>(c,d)=>{var m;const h=ai(e,d,u==="exit"?(m=e.presenceContext)==null?void 0:m.custom:void 0);if(h){const{transition:v,transitionEnd:x,...b}=h;c={...c,...b,...x}}return c};function o(u){t=u(e)}function a(u){const{props:c}=e,d=o2(e.parent)||{},h=[],m=new Set;let v={},x=1/0;for(let y=0;y<mI;y++){const g=pI[y],w=n[g],S=c[g]!==void 0?c[g]:d[g],_=Ja(S),A=g===u?w.isActive:null;A===!1&&(x=y);let N=S===d[g]&&S!==c[g]&&_;if(N&&(r||s)&&e.manuallyAnimateOnMount&&(N=!1),w.protectedKeys={...v},!w.isActive&&A===null||!S&&!w.prevProp||ld(S)||typeof S=="boolean")continue;if(g==="exit"&&w.isActive&&A!==!0){w.prevResolvedValues&&(v={...v,...w.prevResolvedValues});continue}const E=vI(w.prevProp,S);let V=E||g===u&&w.isActive&&!N&&_||y>x&&_,L=!1;const q=Array.isArray(S)?S:[S];let ce=q.reduce(i(g),{});A===!1&&(ce={});const{prevResolvedValues:je={}}=w,de={...je,...ce},ue=j=>{V=!0,m.has(j)&&(L=!0,m.delete(j)),w.needsAnimating[j]=!0;const z=e.getValue(j);z&&(z.liveStyle=!1)};for(const j in de){const z=ce[j],R=je[j];if(v.hasOwnProperty(j))continue;let oe=!1;$h(z)&&$h(R)?oe=!a2(z,R)||E:oe=z!==R,oe?z!=null?ue(j):m.add(j):z!==void 0&&m.has(j)?ue(j):w.protectedKeys[j]=!0}w.prevProp=S,w.prevResolvedValues=ce,w.isActive&&(v={...v,...ce}),(r||s)&&e.blockInitialAnimation&&(V=!1);const ne=N&&E;V&&(!ne||L)&&h.push(...q.map(j=>{const z={type:g};if(typeof j=="string"&&(r||s)&&!ne&&e.manuallyAnimateOnMount&&e.parent){const{parent:R}=e,oe=ai(R,j);if(R.enteringChildren&&oe){const{delayChildren:fe}=oe.transition||{};z.delay=RS(R.enteringChildren,e,fe)}}return{animation:j,options:z}}))}if(m.size){const y={};if(typeof c.initial!="boolean"){const g=ai(e,Array.isArray(c.initial)?c.initial[0]:c.initial);g&&g.transition&&(y.transition=g.transition)}m.forEach(g=>{const w=e.getBaseTarget(g),S=e.getValue(g);S&&(S.liveStyle=!0),y[g]=w??null}),h.push({animation:y})}let b=!!h.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,s=!1,b?t(h):Promise.resolve()}function l(u,c){var h;if(n[u].isActive===c)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(m=>{var v;return(v=m.animationState)==null?void 0:v.setActive(u,c)}),n[u].isActive=c;const d=a(u);for(const m in n)n[m].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=D0(),s=!0}}}function vI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!a2(t,e):!1}function Is(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function D0(){return{animate:Is(!0),whileInView:Is(),whileHover:Is(),whileTap:Is(),whileDrag:Is(),whileFocus:Is(),exit:Is()}}function Xh(e,t){e.min=t.min,e.max=t.max}function _n(e,t){Xh(e.x,t.x),Xh(e.y,t.y)}function M0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const l2=1e-4,xI=1-l2,wI=1+l2,u2=.01,bI=0-u2,SI=0+u2;function jt(e){return e.max-e.min}function CI(e,t,n){return Math.abs(e-t)<=n}function V0(e,t,n,r=.5){e.origin=r,e.originPoint=Se(t.min,t.max,e.origin),e.scale=jt(n)/jt(t),e.translate=Se(n.min,n.max,e.origin)-e.originPoint,(e.scale>=xI&&e.scale<=wI||isNaN(e.scale))&&(e.scale=1),(e.translate>=bI&&e.translate<=SI||isNaN(e.translate))&&(e.translate=0)}function Ea(e,t,n,r){V0(e.x,t.x,n.x,r?r.originX:void 0),V0(e.y,t.y,n.y,r?r.originY:void 0)}function F0(e,t,n,r=0){const s=r?Se(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+jt(t)}function EI(e,t,n,r){F0(e.x,t.x,n.x,r==null?void 0:r.x),F0(e.y,t.y,n.y,r==null?void 0:r.y)}function z0(e,t,n,r=0){const s=r?Se(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+jt(t)}function _c(e,t,n,r){z0(e.x,t.x,n.x,r==null?void 0:r.x),z0(e.y,t.y,n.y,r==null?void 0:r.y)}function U0(e,t,n,r,s){return e-=t,e=kc(e,1/n,r),s!==void 0&&(e=kc(e,1/s,r)),e}function kI(e,t=0,n=1,r=.5,s,i=e,o=e){if(rr.test(t)&&(t=parseFloat(t),t=Se(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Se(i.min,i.max,r);e===i&&(a-=t),e.min=U0(e.min,t,n,a,s),e.max=U0(e.max,t,n,a,s)}function $0(e,t,[n,r,s],i,o){kI(e,t[n],t[r],t[s],t.scale,i,o)}const _I=["x","scaleX","originX"],TI=["y","scaleY","originY"];function B0(e,t,n,r){$0(e.x,t,_I,n?n.x:void 0,r?r.x:void 0),$0(e.y,t,TI,n?n.y:void 0,r?r.y:void 0)}function W0(e){return e.translate===0&&e.scale===1}function c2(e){return W0(e.x)&&W0(e.y)}function H0(e,t){return e.min===t.min&&e.max===t.max}function PI(e,t){return H0(e.x,t.x)&&H0(e.y,t.y)}function K0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function d2(e,t){return K0(e.x,t.x)&&K0(e.y,t.y)}function G0(e){return jt(e.x)/jt(e.y)}function q0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Hn(e){return[e("x"),e("y")]}function NI(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,pathRotation:d,rotateX:h,rotateY:m,skewX:v,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),v&&(r+=`skewX(${v}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const f2=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],AI=f2.length,Q0=e=>typeof e=="string"?parseFloat(e):e,Z0=e=>typeof e=="number"||W.test(e);function RI(e,t,n,r,s,i){s?(e.opacity=Se(0,n.opacity??1,II(r)),e.opacityExit=Se(t.opacity??1,0,LI(r))):i&&(e.opacity=Se(t.opacity??1,n.opacity??1,r));for(let o=0;o<AI;o++){const a=f2[o];let l=Y0(t,a),u=Y0(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Z0(l)===Z0(u)?(e[a]=Math.max(Se(Q0(l),Q0(u),r),0),(rr.test(u)||rr.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Se(t.rotate||0,n.rotate||0,r))}function Y0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const II=h2(0,.5,iS),LI=h2(.5,.95,xn);function h2(e,t,n){return r=>r<e?0:r>t?1:n(Ya(e,t,r))}function jI(e,t,n){const r=gt(e)?e:_o(e);return r.start(ng("",r,t,n)),r.animation}function el(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const OI=(e,t)=>e.depth-t.depth;class DI{constructor(){this.children=[],this.isDirty=!1}add(t){$m(this.children,t),this.isDirty=!0}remove(t){vc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(OI),this.isDirty=!1,this.children.forEach(t)}}function MI(e,t){const n=Lt.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Cs(r),e(i-t))};return Ce.setup(r,!0),()=>Cs(r)}function Ou(e){return gt(e)?e.get():e}class VI{constructor(){this.members=[]}add(t){$m(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 s=r.instance;(!s||s.isConnected===!1)&&!r.snapshot&&(vc(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(vc(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 s=this.members[r];if(s.isPresent!==!1&&((n=s.instance)==null?void 0:n.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,n){var s;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:o}=t.options;(i===void 0||i!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,s,i,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(s=t.resumingFrom)==null?void 0:(i=s.options).onExitComplete)==null||o.call(i)})}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 Du={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Jd=["","X","Y","Z"],FI=1e3;let zI=0;function ef(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function p2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=OS(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ce,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&p2(r)}function m2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=zI++,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(BI),this.nodes.forEach(QI),this.nodes.forEach(ZI),this.nodes.forEach(WI)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new DI)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Wm),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=ag(o)&&!$R(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,d=0;const h=()=>this.root.updateBlockedByResize=!1;Ce.read(()=>{d=window.innerWidth}),e(o,()=>{const m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,c&&c(),c=MI(h,250),Du.hasAnimatedSinceResize&&(Du.hasAnimatedSinceResize=!1,this.nodes.forEach(ev)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||tL,{onLayoutAnimationStart:x,onLayoutAnimationComplete:b}=u.getProps(),y=!this.targetLayout||!d2(this.targetLayout,m),g=!d&&h;if(this.options.layoutRoot||this.resumeFrom||g||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...tg(v,"layout"),onPlay:x,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(c,g,w.path)}else d||ev(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Cs(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(YI),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&p2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(KI),this.nodes.forEach(X0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(J0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(GI),this.nodes.forEach(qI),this.nodes.forEach(UI),this.nodes.forEach($I)):this.nodes.forEach(J0),this.clearAllSnapshots();const a=Lt.now();pt.delta=ir(0,1e3/60,a-pt.timestamp),pt.timestamp=a,pt.isProcessing=!0,Hd.update.process(pt),Hd.preRender.process(pt),Hd.render.process(pt),pt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ig.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(HI),this.sharedNodes.forEach(XI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ce.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ce.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!jt(this.snapshot.measuredBox.x)&&!jt(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=rt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!c2(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||Ms(this.latestValues)||c)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),nL(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return rt();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(rL))){const{scroll:c}=this.root;c&&(Yn(a.x,c.offset.x),Yn(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=rt();if(_n(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:h}=c;c!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&_n(a,o),Yn(a.x,d.offset.x),Yn(a.y,d.offset.y))}return a}applyTransform(o,a=!1,l){var c,d;const u=l||rt();_n(u,o);for(let h=0;h<this.path.length;h++){const m=this.path[h];!a&&m.options.layoutScroll&&m.scroll&&m!==m.root&&(Yn(u.x,-m.scroll.offset.x),Yn(u.y,-m.scroll.offset.y)),Ms(m.latestValues)&&ju(u,m.latestValues,(c=m.layout)==null?void 0:c.layoutBox)}return Ms(this.latestValues)&&ju(u,this.latestValues,(d=this.layout)==null?void 0:d.layoutBox),u}removeTransform(o){var l;const a=rt();_n(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!Ms(c.latestValues))continue;let d;c.instance&&(Qh(c.latestValues)&&c.updateSnapshot(),d=rt(),_n(d,c.measurePageBox())),B0(a,c.latestValues,(l=c.snapshot)==null?void 0:l.layoutBox,d)}return Ms(this.latestValues)&&B0(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==pt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var m;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=pt.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=rt(),this.targetWithTransforms=rt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),EI(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),XS(this.target,this.targetDelta)):_n(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Qh(this.parent.latestValues)||YS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rt(),this.relativeTargetOrigin=rt(),_c(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),_n(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var v;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty)&&
vendor: 5,713 bytes, line 68
68(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===pt.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;_n(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;JR(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=rt());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(M0(this.prevProjectionDelta.x,this.projectionDelta.x),M0(this.prevProjectionDelta.y,this.projectionDelta.y)),Ea(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!q0(this.projectionDelta.x,this.prevProjectionDelta.x)||!q0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=$i(),this.projectionDelta=$i(),this.projectionDeltaWithTransform=$i()}setAnimationOrigin(o,a=!1,l){const u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},h=$i();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=rt(),v=u?u.source:void 0,x=this.layout?this.layout.source:void 0,b=v!==x,y=this.getStack(),g=!y||y.members.length<=1,w=!!(b&&!g&&this.options.crossfade===!0&&!this.path.some(eL));this.animationProgress=0;let S;const _=l==null?void 0:l.interpolateProjection(o);this.mixTargetDelta=A=>{const N=A/1e3,E=_==null?void 0:_(N);E?(h.x.translate=E.x,h.x.scale=Se(o.x.scale,1,N),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=E.y,h.y.scale=Se(o.y.scale,1,N),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(tv(h.x,o.x,N),tv(h.y,o.y,N)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_c(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),JI(this.relativeTarget,this.relativeTargetOrigin,m,N),S&&PI(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=rt()),_n(S,this.relativeTarget)),b&&(this.animationValues=d,RI(d,c,this.latestValues,N,w,g)),E&&E.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=E.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Cs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ce.update(()=>{Du.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_o(0)),this.motionValue.jump(0,!1),this.currentAnimation=jI(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.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 o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&g2(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||rt();const d=jt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=jt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}_n(a,l),ju(a,c),Ea(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new VI),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 9,202 bytes, line 68
68resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ef("z",o,u,this.animationValues);for(let c=0;c<Jd.length;c++)ef(`rotate${Jd[c]}`,o,u,this.animationValues),ef(`skew${Jd[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Ou(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Ou(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ms(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=NI(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),o.transform=d;const{x:h,y:m}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const v in Yh){if(c[v]===void 0)continue;const{correct:x,applyTo:b,isCSSVariable:y}=Yh[v],g=d==="none"?c[v]:x(c[v],u);if(b){const w=b.length;for(let S=0;S<w;S++)o[b[S]]=g}else y?this.options.visualElement.renderState.vars[v]=g:o[v]=g}this.options.layoutId&&(o.pointerEvents=u===this?Ou(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(X0),this.root.sharedNodes.clear()}}}function UI(e){e.updateLayout()}function $I(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:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if(i==="size")Hn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],m=jt(h);h.min=r[d].min,h.max=h.min+m});else if(i==="x"||i==="y"){const d=i==="x"?"y":"x";Xh(o?t.measuredBox[d]:t.layoutBox[d],r[d])}else g2(i,t.layoutBox,r)&&Hn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],m=jt(r[d]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=$i();Ea(a,r,t.layoutBox);const l=$i();o?Ea(l,e.applyTransform(s,!0),t.measuredBox):Ea(l,r,t.layoutBox);const u=!c2(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:m}=d;if(h&&m){const v=e.options.layoutAnchor||void 0,x=rt();_c(x,t.layoutBox,h.layoutBox,v);const b=rt();_c(b,r,m.layoutBox,v),d2(x,b)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=x,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function BI(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 WI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function HI(e){e.clearSnapshot()}function X0(e){e.clearMeasurements()}function KI(e){e.isLayoutDirty=!0,e.updateLayout()}function J0(e){e.isLayoutDirty=!1}function GI(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function qI(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ev(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function QI(e){e.resolveTargetDelta()}function ZI(e){e.calcProjection()}function YI(e){e.resetSkewAndRotation()}function XI(e){e.removeLeadSnapshot()}function tv(e,t,n){e.translate=Se(t.translate,0,n),e.scale=Se(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nv(e,t,n,r){e.min=Se(t.min,n.min,r),e.max=Se(t.max,n.max,r)}function JI(e,t,n,r){nv(e.x,t.x,n.x,r),nv(e.y,t.y,n.y,r)}function eL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const tL={duration:.45,ease:[.4,0,.1,1]},rv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sv=rv("applewebkit/")&&!rv("chrome/")?Math.round:xn;function iv(e){e.min=sv(e.min),e.max=sv(e.max)}function nL(e){iv(e.x),iv(e.y)}function g2(e,t,n){return e==="position"||e==="preserve-aspect"&&!CI(G0(t),G0(n),.2)}function rL(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const sL=m2({attachResizeListener:(e,t)=>el(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}),tf={current:void 0},y2=m2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!tf.current){const e=new sL({});e.mount(window),e.setOptions({layoutScroll:!0}),tf.current=e}return tf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Tc=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function iL(e=!0){const t=k.useContext(Um);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=k.useId();k.useEffect(()=>{if(e)return s(i)},[e]);const o=k.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const v2=k.createContext({strict:!1}),ov={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 av=!1;function oL(){if(av)return;const e={};for(const t in ov)e[t]={isEnabled:n=>ov[t].some(r=>!!n[r])};qS(e),av=!0}function x2(){return oL(),QR()}function aL(e){const t=x2();for(const n in e)t[n]={...t[n],...e[n]};qS(t)}const lL=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 Pc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lL.has(e)}let w2=e=>!Pc(e);function b2(e){typeof e=="function"&&(w2=t=>t.startsWith("on")?!Pc(t):e(t))}try{b2(require("@emotion/is-prop-valid").default)}catch{}function uL(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||gt(e[s])||(w2(s)||n===!0&&Pc(s)||!t&&!Pc(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function cL({children:e,isValidProp:t,...n}){t&&b2(t);const r=k.useContext(Tc);n={...r,...n},n.transition=eg(n.transition,r.transition),n.isStatic=Gb(()=>n.isStatic);const s=k.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return p.jsx(Tc.Provider,{value:s,children:e})}const cd=k.createContext({});function dL(e,t){if(ud(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ja(n)?n:void 0,animate:Ja(r)?r:void 0}}return e.inherit!==!1?t:{}}function fL(e){const{initial:t,animate:n}=dL(e,k.useContext(cd));return k.useMemo(()=>({initial:t,animate:n}),[lv(t),lv(n)])}function lv(e){return Array.isArray(e)?e.join(" "):e}const fg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function S2(e,t,n){for(const r in t)!gt(t[r])&&!t2(r,n)&&(e[r]=t[r])}function hL({transformTemplate:e},t){return k.useMemo(()=>{const n=fg();return cg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function pL(e,t){const n=e.style||{},r={};return S2(r,n,e),Object.assign(r,hL(e,t)),r}function mL(e,t){const n={},r=pL(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"}
68`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const C2=()=>({...fg(),attrs:{}});function gL(e,t,n,r){const s=k.useMemo(()=>{const i=C2();return n2(i,t,s2(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};S2(i,e.style,e),s.style={...i,...s.style}}return s}const yL=["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 hg(e){return typeof e!="string"||e.includes("-")?!1:!!(yL.indexOf(e)>-1||/[A-Z]/u.test(e))}function vL(e,t,n,{latestValues:r},s,i=!1,o){const l=(o??hg(e)?gL:mL)(t,r,s,e),u=uL(t,typeof e=="string",i),c=e!==k.Fragment?{...u,...l,ref:n}:{},{children:d}=t,h=k.useMemo(()=>gt(d)?d.get():d,[d]);return k.createElement(e,{...c,children:h})}function xL({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:wL(n,r,s,e),renderState:t()}}function wL(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=Ou(i[h]);let{initial:o,animate:a}=e;const l=ud(e),u=KS(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!ld(d)){const h=Array.isArray(d)?d:[d];for(let m=0;m<h.length;m++){const v=rg(e,h[m]);if(v){const{transitionEnd:x,transition:b,...y}=v;for(const g in y){let w=y[g];if(Array.isArray(w)){const S=c?w.length-1:0;w=w[S]}w!==null&&(s[g]=w)}for(const g in x)s[g]=x[g]}}}return s}const E2=e=>(t,n)=>{const r=k.useContext(cd),s=k.useContext(Um),i=()=>xL(e,t,r,s);return n?i():Gb(i)},bL=E2({scrapeMotionValuesFromProps:dg,createRenderState:fg}),SL=E2({scrapeMotionValuesFromProps:i2,createRenderState:C2}),CL=Symbol.for("motionComponentSymbol");function EL(e,t,n){const r=k.useRef(n);k.useInsertionEffect(()=>{r.current=n});const s=k.useRef(null);return k.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i)),t&&(i?t.mount(i):t.unmount());const o=r.current;if(typeof o=="function")if(i){const l=o(i);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[t])}const k2=k.createContext({});function Ci(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function kL(e,t,n,r,s,i){var w,S;const{visualElement:o}=k.useContext(cd),a=k.useContext(v2),l=k.useContext(Um),u=k.useContext(Tc),c=u.reducedMotion,d=u.skipAnimations,h=k.useRef(null),m=k.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:i}),m.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const v=h.current,x=k.useContext(k2);v&&!v.projection&&s&&(v.type==="html"||v.type==="svg")&&_L(h.current,n,s,x);const b=k.useRef(!1);k.useInsertionEffect(()=>{v&&b.current&&v.update(n,l)});const y=n[jS],g=k.useRef(!!y&&typeof window<"u"&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,y))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,y)));return wN(()=>{m.current=!0,v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),g.current&&v.animationState&&v.animationState.animateChanges())}),k.useEffect(()=>{v&&(!g.current&&v.animationState&&v.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)==null||_.call(window,y)}),g.current=!1),v.enteringChildren=void 0)}),v}function _L(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:_2(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Ci(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function _2(e){if(e)return e.options.allowProjection!==!1?e.projection:_2(e.parent)}function nf(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&aL(r);const i=n?n==="svg":hg(e),o=i?SL:bL;function a(u,c){let d;const h={...k.useContext(Tc),...u,layoutId:TL(u)},{isStatic:m}=h,v=fL(u),x=o(u,m);if(!m&&typeof window<"u"){PL();const b=NL(h);d=b.MeasureLayout,v.visualElement=kL(e,x,h,s,b.ProjectionNode,i)}return p.jsxs(cd.Provider,{value:v,children:[d&&v.visualElement?p.jsx(d,{visualElement:v.visualElement,...h}):null,vL(e,u,EL(x,v.visualElement,c),x,m,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=k.forwardRef(a);return l[CL]=e,l}function TL({layoutId:e}){const t=k.useContext(Kb).id;return t&&e!==void 0?t+"-"+e:e}function PL(e,t){k.useContext(v2).strict}function NL(e){const t=x2(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
vendor: 18,488 bytes, line 68
68function AL(e,t){if(typeof Proxy>"u")return nf;const n=new Map,r=(i,o)=>nf(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,nf(o,void 0,e,t)),n.get(o))})}const RL=(e,t)=>t.isSVG??hg(e)?new fI(t):new oI(t,{allowProjection:e!==k.Fragment});class IL extends As{constructor(t){super(t),t.animationState||(t.animationState=yI(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ld(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 LL=0;class jL extends As{constructor(){super(...arguments),this.id=LL++,this.isExitComplete=!1}update(){var i;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:o,custom:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=ai(this.node,o,a);if(l){const{transition:u,transitionEnd:c,...d}=l;for(const h in d)(i=this.node.getValue(h))==null||i.jump(d[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.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 OL={animation:{Feature:IL},exit:{Feature:jL}};function jl(e){return{point:{x:e.pageX,y:e.pageY}}}const DL=e=>t=>og(t)&&e(t,jl(t));function ka(e,t,n,r){return el(e,t,DL(n),r)}const T2=({current:e})=>e?e.ownerDocument.defaultView:null,uv=(e,t)=>Math.abs(e-t);function ML(e,t){const n=uv(e.x,t.x),r=uv(e.y,t.y);return Math.sqrt(n**2+r**2)}const cv=new Set(["auto","scroll"]);class P2{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){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=au(this.lastRawMoveEventInfo,this.transformPagePoint));const v=rf(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,b=ML(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!b)return;const{point:y}=v,{timestamp:g}=pt;this.history.push({...y,timestamp:g});const{onStart:w,onMove:S}=this.handlers;x||(w&&w(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,v)},this.handlePointerMove=(v,x)=>{this.lastMoveEvent=v,this.lastRawMoveEventInfo=x,this.lastMoveEventInfo=au(x,this.transformPagePoint),Ce.update(this.updatePoint,!0)},this.handlePointerUp=(v,x)=>{this.end();const{onEnd:b,onSessionEnd:y,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=rf(v.type==="pointercancel"?this.lastMoveEventInfo:au(x,this.transformPagePoint),this.history);this.startEvent&&b&&b(v,w),y&&y(v,w)},!og(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=jl(t),u=au(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=pt;this.history=[{...c,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,rf(u,this.history));const m={passive:!0,capture:!0};this.removeListeners=Rl(ka(this.contextWindow,"pointermove",this.handlePointerMove,m),ka(this.contextWindow,"pointerup",this.handlePointerUp,m),ka(this.contextWindow,"pointercancel",this.handlePointerUp,m)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(cv.has(r.overflowX)||cv.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,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),Ce.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Cs(this.updatePoint)}}function au(e,t){return t?{point:t(e.point)}:e}function dv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rf({point:e},t){return{point:e,delta:dv(e,N2(t)),offset:dv(e,VL(t)),velocity:FL(t,.1)}}function VL(e){return e[0]}function N2(e){return e[e.length-1]}function FL(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=N2(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>tn(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>tn(t)*2&&(r=e[1]);const i=gn(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function zL(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Se(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Se(n,e,r.max):Math.min(e,n)),e}function fv(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 UL(e,{top:t,left:n,bottom:r,right:s}){return{x:fv(e.x,n,s),y:fv(e.y,t,r)}}function hv(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 $L(e,t){return{x:hv(e.x,t.x),y:hv(e.y,t.y)}}function BL(e,t){let n=.5;const r=jt(e),s=jt(t);return s>r?n=Ya(t.min,t.max-r,e.min):r>s&&(n=Ya(e.min,e.max-s,t.min)),ir(0,1,n)}function WL(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 Jh=.35;function HL(e=Jh){return e===!1?e=0:e===!0&&(e=Jh),{x:pv(e,"left","right"),y:pv(e,"top","bottom")}}function pv(e,t,n){return{min:mv(e,t),max:mv(e,n)}}function mv(e,t){return typeof e=="number"?e:e[t]||0}const KL=new WeakMap;class GL{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=rt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=d=>{n&&this.snapToCursor(jl(d).point),this.stopAnimation()},o=(d,h)=>{const{drag:m,dragPropagation:v,onDragStart:x}=this.getProps();if(m&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kR(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Hn(y=>{let g=this.getAxisMotionValue(y).get()||0;if(rr.test(g)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[y];S&&(g=jt(S)*(parseFloat(g)/100))}}this.originPoint[y]=g}),x&&Ce.update(()=>x(d,h),!1,!0),Bh(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:v,onDirectionLock:x,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:y}=h;if(v&&this.currentDirection===null){this.currentDirection=QL(y),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),b&&Ce.update(()=>b(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new P2(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:T2(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Ce.postRender(()=>a(r,s))}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:s}=this.getProps();if(!r||!lu(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=zL(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&Ci(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=UL(r.layoutBox,t):this.constraints=!1,this.elastic=HL(n),s!==this.constraints&&!Ci(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Hn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=WL(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ci(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());const i=eI(r,s.root,this.visualElement.getTransformPagePoint());let o=$L(s.layout.layoutBox,i);if(n){const a=n(YR(o));this.hasMutatedConstraints=!!a,a&&(o=ZS(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Hn(c=>{if(!lu(c,n,this.currentDirection))return;let d=l&&l[c]||{};(o===!0||o===c)&&(d={min:0,max:0});const h=s?200:1e6,m=s?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Bh(this.visualElement,t),r.start(ng(t,r,0,n,this.visualElement,!1))}stopAnimation(){Hn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps()[n];return s||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Hn(n=>{const{drag:r}=this.getProps();if(!lu(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-Se(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ci(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Hn(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=BL({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Hn(o=>{if(!lu(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Se(l,u,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;KL.set(this.visualElement,this);const t=this.visualElement.current,n=ka(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps(),h=u.target,m=h!==t&&RR(h);c&&d&&!m&&this.start(u)});let r;const s=()=>{const{dragConstraints:u}=this.getProps();Ci(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=qL(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ce.read(s);const a=el(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Hn(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=u[d].translate,h.set(h.get()+u[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Jh,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function gv(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function qL(e,t,n){const r=k0(e,gv(n)),s=k0(t,gv(n));return()=>{r(),s()}}function lu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function QL(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ZL extends As{constructor(t){super(t),this.removeGroupControls=xn,this.removeListeners=xn,this.controls=new GL(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xn}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 sf=e=>(t,n)=>{e&&Ce.update(()=>e(t,n),!1,!0)};class YL extends As{constructor(){super(...arguments),this.removePointerDownListener=xn}onPointerDown(t){this.session=new P2(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:T2(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:sf(t),onStart:sf(n),onMove:sf(r),onEnd:(i,o)=>{delete this.session,s&&Ce.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=ka(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 of=!1;class XL extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),of&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Du.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),of=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Ce.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),ig.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;of=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function A2(e){const[t,n]=iL(),r=k.useContext(Kb);return p.jsx(XL,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(k2),isPresent:t,safeToRemove:n})}const JL={pan:{Feature:YL},drag:{Feature:ZL,ProjectionNode:y2,MeasureLayout:A2}};function yv(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Ce.postRender(()=>i(t,jl(t)))}class ej extends As{mount(){const{current:t}=this.node;t&&(this.unmount=TR(t,(n,r)=>(yv(this.node,r,"Start"),s=>yv(this.node,s,"End"))))}unmount(){}}class tj extends As{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=Rl(el(this.node.current,"focus",()=>this.onFocus()),el(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vv(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 s="onTap"+(n==="End"?"":n),i=r[s];i&&Ce.postRender(()=>i(t,jl(t)))}class nj extends As{mount(){const{current:t}=this.node;if(!t)return;
68const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=LR(t,(s,i)=>(vv(this.node,i,"Start"),(o,{success:a})=>vv(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const ep=new WeakMap,af=new WeakMap,rj=e=>{const t=ep.get(e.target);t&&t(e)},sj=e=>{e.forEach(rj)};function ij({root:e,...t}){const n=e||document;af.has(n)||af.set(n,{});const r=af.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(sj,{root:e,...t})),r[s]}function oj(e,t,n){const r=ij(t);return ep.set(e,n),r.observe(e),()=>{ep.delete(e),r.unobserve(e)}}const aj={some:0,all:1};class lj extends As{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:aj[s]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),m=c?d:h;m&&m(u)};this.stopObserver=oj(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(uj(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function uj({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const cj={inView:{Feature:lj},tap:{Feature:nj},focus:{Feature:tj},hover:{Feature:ej}},dj={layout:{ProjectionNode:y2,MeasureLayout:A2}},fj={...OL,...cj,...JL,...dj},He=AL(fj,RL),Y=e=>typeof e=="string",Xo=()=>{let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n},xv=e=>e==null?"":""+e,hj=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},pj=/###/g,wv=e=>e&&e.indexOf("###")>-1?e.replace(pj,"."):e,bv=e=>!e||Y(e),_a=(e,t,n)=>{const r=Y(t)?t.split("."):t;let s=0;for(;s<r.length-1;){if(bv(e))return{};const i=wv(r[s]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++s}return bv(e)?{}:{obj:e,k:wv(r[s])}},Sv=(e,t,n)=>{const{obj:r,k:s}=_a(e,t,Object);if(r!==void 0||t.length===1){r[s]=n;return}let i=t[t.length-1],o=t.slice(0,t.length-1),a=_a(e,o,Object);for(;a.obj===void 0&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),a=_a(e,o,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},mj=(e,t,n,r)=>{const{obj:s,k:i}=_a(e,t,Object);s[i]=s[i]||[],s[i].push(n)},Nc=(e,t)=>{const{obj:n,k:r}=_a(e,t);if(n)return n[r]},gj=(e,t,n)=>{const r=Nc(e,n);return r!==void 0?r:Nc(t,n)},R2=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Y(e[r])||e[r]instanceof String||Y(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):R2(e[r],t[r],n):e[r]=t[r]);return e},vi=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var yj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const vj=e=>Y(e)?e.replace(/[&<>"'\/]/g,t=>yj[t]):e;class xj{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const wj=[" ",",","?","!",";"],bj=new xj(20),Sj=(e,t,n)=>{t=t||"",n=n||"";const r=wj.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=bj.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(e);if(!i){const o=e.indexOf(n);o>0&&!s.test(e.substring(0,o))&&(i=!0)}return i},tp=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let i=0;i<r.length;){if(!s||typeof s!="object")return;let o,a="";for(let l=i;l<r.length;++l)if(l!==i&&(a+=n),a+=r[l],o=s[a],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<r.length-1)continue;i+=l-i+1;break}s=o}return s},Ac=e=>e&&e.replace("_","-"),Cj={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Rc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Cj,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(Y(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Rc(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Rc(this.logger,t)}}var Jn=new Rc;class dd{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&Array.from(this.observers[t].entries()).forEac
vendor: 3,019 bytes, line 68
68h(o=>{let[a,l]=o;for(let u=0;u<l;u++)a(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[a,l]=o;for(let u=0;u<l;u++)a.apply(a,[t,...r])})}}class Cv extends dd{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):Y(r)&&i?a.push(...r.split(i)):a.push(r)));const l=Nc(this.data,a);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!o||!Y(r)?l:tp(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),s=n,n=a[1]),this.addNamespaces(n),Sv(this.data,a,s),i.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(Y(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),s=r,r=n,n=a[1]),this.addNamespaces(n);let l=Nc(this.data,a)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?R2(l,r,i):l={...l,...r},Sv(this.data,a,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var I2={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,s))}),t}};const Ev={};class Ic extends dd{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),hj(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
68i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Jn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Sj(t,r,s);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Y(i)?[i]:i};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(s)}return{key:t,namespaces:Y(i)?[i]:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const S=n.nsSeparator||this.options.nsSeparator;return s?{res:`${l}${S}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${S}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const d=this.resolve(t,n);let h=d&&d.res;const m=d&&d.usedKey||o,v=d&&d.exactUsedKey||o,x=Object.prototype.toString.apply(h),b=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,w=!Y(h)&&typeof h!="boolean"&&typeof h!="number";if(g&&h&&w&&b.indexOf(x)<0&&!(Y(y)&&Array.isArray(h))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(d.res=S,d.usedParams=this.getUsedParamsDetails(n),d):S}if(i){const S=Array.isArray(h),_=S?[]:{},A=S?v:m;for(const N in h)if(Object.prototype.hasOwnProperty.call(h,N)){const E=`${A}${i}${N}`;_[N]=this.translate(E,{...n,joinArrays:!1,ns:a}),_[N]===E&&(_[N]=h[N])}h=_}}else if(g&&Y(y)&&Array.isArray(h))h=h.join(y),h&&(h=this.extendTranslation(h,t,n,r));else{let S=!1,_=!1;const A=n.count!==void 0&&!Y(n.count),N=Ic.hasDefaultValue(n),E=A?this.pluralResolver.getSuffix(u,n.count,n):"",V=n.ordinal&&A?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",L=A&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),q=L&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${E}`]||n[`defaultValue${V}`]||n.defaultValue;!this.isValidLookup(h)&&N&&(S=!0,h=q),this.isValidLookup(h)||(_=!0,h=o);const je=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&_?void 0:h,de=N&&q!==h&&this.options.updateMissing;if(_||S||de){if(this.logger.log(de?"updateKey":"missingKey",u,l,o,de?q:h),i){const j=this.resolve(o,{...n,keySeparator:!1});j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ue=[];const ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ne&&ne[0])for(let j=0;j<ne.length;j++)ue.push(ne[j]);else this.options.saveMissingTo==="all"?ue=this.languageUtils.toResolveHierarchy(n.lng||this.language):ue.push(n.lng||this.language);const Fe=(j,z,R)=>{const oe=N&&R!==h?R:je;this.options.missingKeyHandler?this.options.missingKeyHandler(j,l,z,oe,de,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(j,l,z,oe,de,n),this.emit
vendor: 11,996 bytes, line 68
68("missingKey",j,l,z,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?ue.forEach(j=>{const z=this.pluralResolver.getSuffixes(j,n);L&&n[`defaultValue${this.options.pluralSeparator}zero`]&&z.indexOf(`${this.options.pluralSeparator}zero`)<0&&z.push(`${this.options.pluralSeparator}zero`),z.forEach(R=>{Fe([j],o+R,n[`defaultValue${R}`]||q)})}):Fe(ue,o,q))}h=this.extendTranslation(h,t,n,d,r),_&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(_||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,S?h:void 0):h=this.options.parseMissingKeyHandler(h))}return s?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}extendTranslation(t,n,r,s,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=Y(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const h=t.match(this.interpolator.nestingRegexp);c=h&&h.length}let d=r.replace&&!Y(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||s.usedLng,r),u){const h=t.match(this.interpolator.nestingRegexp),m=h&&h.length;c<m&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,m=new Array(h),v=0;v<h;v++)m[v]=arguments[v];return i&&i[0]===m[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):o.translate(...m,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=Y(a)?[a]:a;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=I2.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,i,o,a;return Y(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;s=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=n.count!==void 0&&!Y(n.count),m=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(Y(n.context)||typeof n.context=="number")&&n.context!=="",x=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(b=>{this.isValidLookup(r)||(a=b,!Ev[`${x[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Ev[`${x[0]}-${b}`]=!0,this.logger.warn(`key "${s}" for languages "${x.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(y=>{if(this.isValidLookup(r))return;o=y;const g=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(g,c,y,b,n);else{let S;h&&(S=this.pluralResolver.getSuffix(y,n.count,n));const _=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(g.push(c+S),n.ordinal&&S.indexOf(A)===0&&g.push(c+S.replace(A,this.options.pluralSeparator)),m&&g.push(c+_)),v){const N=`${c}${this.options.contextSeparator}${n.context}`;g.push(N),h&&(g.push(N+S),n.ordinal&&S.indexOf(A)===0&&g.push(N+S.replace(A,this.options.pluralSeparator)),m&&g.push(N+_))}}let w;for(;w=g.pop();)this.isValidLookup(r)||(i=w,r=this.getResource(y,b,w,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Y(t.replace);let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const lf=e=>e.charAt(0).toUpperCase()+e.slice(1);class kv{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jn.create("languageUtils")}getScriptPartFromCode(t){if(t=Ac(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ac(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Y(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(t)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=lf(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=lf(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=lf(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&(i.indexOf("-")>0&&s.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===s||i.indexOf(s)===0&&s.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Y(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return Y(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):Y(t)&&i(this.formatLanguageCode(t)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}let Ej=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],kj={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const _j=["v1","v2","v3"],Tj=["v4"],_v={zero:0,one:1,two:2,few:3,many:4,other:5},Pj=()=>{const e={};return Ej.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:kj[t.fc]}})}),e};class Nj{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Jn.create("pluralResolver"),(!this.options.compatibilityJSON||Tj.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Pj(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=Ac(t==="dev"?"en":t),s=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(r,{type:s})}catch{if(!t.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,n)}return this.pluralRulesCache[i]=o,o}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};
vendor: 1,299 bytes, line 68
68return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,i)=>_v[s]-_v[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const i=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}
vendor: 23,986 bytes, line 68
68shouldUseIntlApi(){return!_j.includes(this.options.compatibilityJSON)}}const Tv=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=gj(e,t,n);return!i&&s&&Y(n)&&(i=tp(e,n,r),i===void 0&&(i=tp(t,n,r))),i},uf=e=>e.replace(/\$/g,"$$$$");class Aj{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Jn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:h,nestingPrefixEscaped:m,nestingSuffix:v,nestingSuffixEscaped:x,nestingOptionsSeparator:b,maxReplaces:y,alwaysFormat:g}=t.interpolation;this.escape=n!==void 0?n:vj,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?vi(i):o||"{{",this.suffix=a?vi(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=h?vi(h):m||vi("$t("),this.nestingSuffix=v?vi(v):x||vi(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=y||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,s){let i,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(m.indexOf(this.formatSeparator)<0){const y=Tv(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,r,{...s,...n,interpolationkey:m}):y}const v=m.split(this.formatSeparator),x=v.shift().trim(),b=v.join(this.formatSeparator).trim();return this.format(Tv(n,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...s,...n,interpolationkey:x})};this.resetRegExp();const c=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,d=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>uf(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?uf(this.escape(m)):uf(m)}].forEach(m=>{for(a=0;i=m.regex.exec(t);){const v=i[1].trim();if(o=u(v),o===void 0)if(typeof c=="function"){const b=c(t,i,s);o=Y(b)?b:""}else if(s&&Object.prototype.hasOwnProperty.call(s,v))o="";else if(d){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),o="";else!Y(o)&&!this.useRawValueToEscape&&(o=xv(o));const x=m.safeValue(o);if(t=t.replace(i[0],x),d?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,o;const a=(l,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,o);const m=h.match(/'/g),v=h.match(/"/g);(m&&m.length%2===0&&!v||v.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o={...u,...o})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,x),`${l}${c}${h}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;s=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&!Y(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(d=>d.trim());s[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,s[1].trim(),o),o),i&&s[0]===t&&!Y(i))return i;Y(i)||(i=xv(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}const Rj=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(o){const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},xi=e=>{const t={};return(n,r,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const o=r+JSON.stringify(i);let a=t[o];return a||(a=e(Ac(r),s),t[o]=a),a(n)}};class Ij{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Jn.create("formatter"),this.options=t,this.formats={number:xi((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return i=>s.format(i)}),currency:xi((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>s.format(i)}),datetime:xi((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return i=>s.format(i)}),relativetime:xi((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return i=>s.format(i,r.range||"day")}),list:xi((n,r)=>{const s=new Intl.ListFormat(n,{...r});return i=>s.format(i)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=xi(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{const{formatName:u,formatOptions:c}=Rj(l);if(this.formats[u]){let d=a;try{const h=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},m=h.locale||h.lng||s.locale||s.lng||r;d=this.formats[u](a,m,{...c,...s,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}const Lj=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class jj extends dd{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=Jn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const i={},o={},a={},l={};return t.forEach(u=>{let c=!0;n.forEach(d=>{const h=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,c=!1,o[h]===void 0&&(o[h]=!0),i[h]===void 0&&(i[h]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const s=t.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),!n&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(l=>{mj(l.loaded,[i],o),Lj(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,i*2,o)},i);return}o(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();Y(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Y(n)&&(n=[n]);const i=this.queueLoad(t,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,s,l):c=u(t,n,r,s),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,s,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}const Pv=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Y(e[1])&&(t.defaultValue=e[1]),Y(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Nv=e=>(Y(e.ns)&&(e.ns=[e.ns]),Y(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Y(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),uu=()=>{},Oj=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class tl extends dd{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Nv(t),this.services={},this.logger=Jn,this.modules={external:[]},Oj(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Y(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Pv();this.options={...s,...this.options,...Nv(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Jn.init(i(this.modules.logger),this.options):Jn.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=Ij);const d=new kv(this.options);this.store=new Cv(this.options.resources,this.options);const h=this.services;h.logger=Jn,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new Nj(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(h.formatter=i(c),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new Aj(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new jj(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(m){for(var v=arguments.length,x=new Array(v>1?v-1:0),b=1;b<v;b++)x[b-1]=arguments[b];t.emit(m,...x)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Ic(this.services,this.options),this.translator.on("*",function(m){for(var v=arguments.length,x=new Array(v>1?v-1:0),b=1;b<v;b++)x[b-1]=arguments[b];t.emit(m,...x)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=uu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=Xo(),u=()=>{const c=(d,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(h),r(d,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:uu;const s=Y(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const s=Xo();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=uu),this.services.backendConnector.reload(t,n,i=>{s.resolve(),r(i)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&I2.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=Xo();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=Y(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{o(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),s}getFixedT(t,n,r){var s=this;const i=function(o,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];l=s.options.overloadTranslationOptionHandler([o,a].concat(c))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const h=s.options.keySeparator||".";let m;return l.keyPrefix&&Array.isArray(o)?m=o.map(v=>`${l.keyPrefix}${h}${v}`):m=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,s.t(m,l)};return Y(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!s||o(i,t)))}loadNamespaces(t,n){const r=Xo();return this.options.ns?(Y(t)&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Xo();Y(t)&&(t=[t]);const s=this.options.preload||[],i=t.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new kv(Pv());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new tl(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:uu;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},i=new tl(s);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Cv(this.store.data,s),i.services.resourceStore=i.store),i.translator=new Ic(i.services,s),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];i.emit(a,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ot=tl.createInstance();ot.createInstance=tl.createInstance;ot.createInstance;ot.dir;ot.init;ot.loadResources;ot.reloadResources;ot.use;ot.changeLanguage;ot.getFixedT;ot.t;ot.exists;ot.setDefaultNamespace;ot.hasLoadedNamespace;ot.loadNamespaces;ot.loadLanguages;const{slice:Dj,forEach:Mj}=[];function Vj(e){return Mj.call(Dj.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}
vendor: 6,088 bytes, line 68
68function Fj(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const Av=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,zj=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},s=encodeURIComponent(t);let i=`${e}=${s}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!Av.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!Av.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(i+="; Partitioned"),i},Rv={create(e,t,n,r){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+n*60*1e3)),r&&(s.domain=r),document.cookie=zj(e,t,s)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let s=n[r];for(;s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var Uj={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return Rv.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:s,cookieOptions:i}=t;n&&typeof document<"u"&&Rv.create(n,e,r,s,i)}},$j={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:s}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(s=window.location.hash.substring(window.location.hash.indexOf("?")));const o=s.substring(1).split("&");for(let a=0;a<o.length;a++){const l=o[a].indexOf("=");l>0&&o[a].substring(0,l)===t&&(n=o[a].substring(l+1))}}return n}},Bj={name:"hash",lookup(e){var s;let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const o=i.substring(1);if(t){const a=o.split("&");for(let l=0;l<a.length;l++){const u=a[l].indexOf("=");u>0&&a[l].substring(0,u)===t&&(r=a[l].substring(u+1))}}if(r)return r;if(!r&&n>-1){const a=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?(s=a[typeof n=="number"?n:0])==null?void 0:s.replace("/",""):void 0}}}return r}};let wi=null;const Iv=()=>{if(wi!==null)return wi;try{if(wi=typeof window<"u"&&window.localStorage!==null,!wi)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{wi=!1}return wi};var Wj={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&Iv())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&Iv()&&window.localStorage.setItem(n,e)}};let bi=null;const Lv=()=>{if(bi!==null)return bi;try{if(bi=typeof window<"u"&&window.sessionStorage!==null,!bi)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{bi=!1}return bi};var Hj={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&Lv())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&Lv()&&window.sessionStorage.setItem(n,e)}},Kj={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:s}=navigator;if(n)for(let i=0;i<n.length;i++)t.push(n[i]);r&&t.push(r),s&&t.push(s)}return t.length>0?t:void 0}},Gj={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},qj={name:"path",lookup(e){var s;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(s=n[typeof t=="number"?t:0])==null?void 0:s.replace("/",""):void 0}},Qj={name:"subdomain",lookup(e){var s,i;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((i=(s=window.location)==null?void 0:s.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};let L2=!1;try{document.cookie,L2=!0}catch{}const j2=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];L2||j2.splice(1,1);const Zj=()=>({order:j2,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class O2{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=Vj(n,this.options||{},Zj()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=s=>s.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Uj),this.addDetector($j),this.addDetector(Wj),this.addDetector(Hj),this.addDetector(Kj),this.addDetector(Gj),this.addDetector(q
68j),this.addDetector(Qj),this.addDetector(Bj)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let s=this.detectors[r].lookup(this.options);s&&typeof s=="string"&&(s=[s]),s&&(n=n.concat(s))}}),n=n.filter(r=>r!=null&&!Fj(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}O2.type="languageDetector";const np="fr",Yj=new Set(["ar"]),Xj={donate:"Faire un don",account:"Mon compte",cart:"Panier"},Jj={heroTitle:"Challenge Solidaire 2026",heroSubtitle:"Plantez des arbres fruitiers pour les familles les plus démunies. L'association humanitaire la mieux notée de France.",treesPlanted:"{{count}} arbres plantés",goal:"Objectif : {{goal}} arbres",featured:"Nos actions",seeAll:"Tout voir"},eO={donate:"Donner",from:"À partir de",comingBack:"Cette campagne revient bientôt."},tO={loading:"Chargement…",error:"Une erreur est survenue."},nO={tagline:"Une ONG nouvelle génération dédiée à l'impact durable.",legal:"Mentions légales",privacy:"Confidentialité",cgv:"CGV"},rO={nav:Xj,home:Jj,product:eO,common:tO,footer:nO};ot.use(O2).use(gN).init({resources:{fr:{translation:rO}},fallbackLng:np,supportedLngs:["fr","en","ar","de","es","nl","id"],interpolation:{escapeValue:!1}});function jv(e){typeof document>"u"||(document.documentElement.lang=e,document.documentElement.dir=Yj.has(e)?"rtl":"ltr")}typeof document<"u"&&(jv(ot.resolvedLanguage??np),ot.on("languageChanged",e=>jv(e??np)));const sO=new QP({defaultOptions:{queries:{staleTime:6e4,retry:1,refetchOnWindowFocus:!1}}});function iO({children:e}){return p.jsx(vN,{i18n:ot,children:p.jsx(YP,{client:sO,children:p.jsx(cL,{reducedMotion:"user",children:p.jsx(wP,{children:e})})})})}const oO="modulepreload",aO=function(e){return"/"+e},Ov={},at=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=aO(l),l in Ov)return;Ov[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":oO,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((h,m)=>{d.addEventListener("load",h),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};function D2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=D2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function M2(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=D2(e))&&(r&&(r+=" "),r+=t);return r}const lO=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},uO=(e,t)=>({classGroupId:e,validator:t}),V2=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Lc="-",Dv=[],cO="arbitrary..",dO=e=>{const t=hO(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return fO(o);const a=o.split(Lc),l=a[0]===""&&a.length>1?1:0;return F2(a,l,t)},getConflictingClassGroupIds:(o,a)=>
vendor: 7,146 bytes, line 68
68{if(a){const l=r[o],u=n[o];return l?u?lO(u,l):l:u||Dv}return n[o]||Dv}}},F2=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],i=n.nextPart.get(s);if(i){const u=F2(e,t+1,i);if(u)return u}const o=n.validators;if(o===null)return;const a=t===0?e.join(Lc):e.slice(t).join(Lc),l=o.length;for(let u=0;u<l;u++){const c=o[u];if(c.validator(a))return c.classGroupId}},fO=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?cO+r:void 0})(),hO=e=>{const{theme:t,classGroups:n}=e;return pO(n,t)},pO=(e,t)=>{const n=V2();for(const r in e){const s=e[r];pg(s,n,r,t)}return n},pg=(e,t,n,r)=>{const s=e.length;for(let i=0;i<s;i++){const o=e[i];mO(o,t,n,r)}},mO=(e,t,n,r)=>{if(typeof e=="string"){gO(e,t,n);return}if(typeof e=="function"){yO(e,t,n,r);return}vO(e,t,n,r)},gO=(e,t,n)=>{const r=e===""?t:z2(t,e);r.classGroupId=n},yO=(e,t,n,r)=>{if(xO(e)){pg(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(uO(n,e))},vO=(e,t,n,r)=>{const s=Object.entries(e),i=s.length;for(let o=0;o<i;o++){const[a,l]=s[o];pg(l,z2(t,a),n,r)}},z2=(e,t)=>{let n=e;const r=t.split(Lc),s=r.length;for(let i=0;i<s;i++){const o=r[i];let a=n.nextPart.get(o);a||(a=V2(),n.nextPart.set(o,a)),n=a}return n},xO=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,wO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(i,o)=>{n[i]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let o=n[i];if(o!==void 0)return o;if((o=r[i])!==void 0)return s(i,o),o},set(i,o){i in n?n[i]=o:s(i,o)}}},rp="!",Mv=":",bO=[],Vv=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),SO=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const i=[];let o=0,a=0,l=0,u;const c=s.length;for(let x=0;x<c;x++){const b=s[x];if(o===0&&a===0){if(b===Mv){i.push(s.slice(l,x)),l=x+1;continue}if(b==="/"){u=x;continue}}b==="["?o++:b==="]"?o--:b==="("?a++:b===")"&&a--}const d=i.length===0?s:s.slice(l);let h=d,m=!1;d.endsWith(rp)?(h=d.slice(0,-1),m=!0):d.startsWith(rp)&&(h=d.slice(1),m=!0);const v=u&&u>l?u-l:void 0;return Vv(i,m,h,v)};if(t){const s=t+Mv,i=r;r=o=>o.startsWith(s)?i(o.slice(s.length)):Vv(bO,!1,o,void 0,!0)}if(n){const s=r;r=i=>n({className:i,parseClassName:s})}return r},CO=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let i=0;i<n.length;i++){const o=n[i],a=o[0]==="[",l=t.has(o);a||l?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(o)):s.push(o)}return s.length>0&&(s.sort(),r.push(...s)),r}},EO=e=>({cache:wO(e.cacheSize),parseClassName:SO(e),sortModifiers:CO(e),postfixLookupClassGroupIds:kO(e),...dO(e)}),kO=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},_O=/\s+/,TO=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i,postfixLookupClassGroupIds:o}=t,a=[],l=e.trim().split(_O);let u="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{isExternal:h,modifiers:m,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:b}=n(d);if(h){u=d+(u.length>0?" "+u:u);continue}let y=!!b,g;if(y){const N=x.substring(0,b);g=r(N);const E=g&&o[g]?r(x):void 0;E&&E!==g&&(g=E,y=!1)}else g=r(x);if(!g){if(!y){u=d+(u.length>0?" "+u:u);continue}if(g=r(x),!g){u=d+(u.length>0?" "+u:u);continue}y=!1}const w=m.length===0?"":m.length===1?m[0]:i(m).join(":"),S=v?w+rp:w,_=S+g;if(a.indexOf(_)>-1)continue;a.push(_);const A=s(g,y);for(let N=0;N<A.length;++N){const E=A[N];a.push(S+E)}u=d+(u.length>0?" "+u:u)}return u},PO=(...e)=>{let t=0,n,r,s="";for(;t<e.length;)(n=e[t++])&&(r=U2(n))&&(s&&(s+=" "),s+=r);return s},U2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=U2(e[r]))&&(n&&(n+=" "),n+=t);return n},NO=(e,...t)=>{let n,r,s,i;const o=l=>{const u=t.reduce((c,d)=>d(c),e());return n=EO(u),r=n.cache.get,s=n.cache.set,i=a,a(l)},a=l=>{const u=r(l);if(u)return u;const c=TO(l,n);return s(l,c),c};return i=o,(...l)=>i(PO(...l))},AO=[],nt=e=>{const t=n=>n[e]||AO;return t.isThemeGetter=!0,t},$2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,B2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,RO=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,IO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LO=/\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$/,jO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,OO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,DO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Or=e=>RO.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),Bn=e=>!!e&&Number.isInteger(Number(e)),cf=e=>e.endsWith("%")&&re(e.slice(0,-1)),or=e=>IO.test(e),W2=()=>!0,MO=e=>LO.test(e)&&!jO.test(e),mg=()=>!1,VO=e=>OO.test(e),FO=e=>DO.test(e),zO=e=>!U(e)&&!$(e),UO=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),$O=e=>Rs(e,G2,mg),U=e=>$2.test(e),Ls=e=>Rs(e,q2,MO),Fv=e=>Rs(e,ZO,re),BO=e=>Rs(e,Z2,W2),WO=e=>Rs(e,Q2,mg),zv=e=>Rs(e,H2,mg),HO=e=>Rs(e,K2,FO),cu=e=>Rs(e,Y2,VO),$=e=>B2.test(e),Jo=e=>gi(e,q2),KO=e=>gi(e,Q2),Uv=e=>gi(e,H2),GO=e=>gi(e,G2),qO=e=>gi(e,K2),du=e=>gi(e,Y2,!0),QO=e=>gi(e,Z2,!0),Rs=(e,t,n)=>{const r=$2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},gi=(e,t,n=!1)=>{const r=B2.exec(e);return r?r[1]?t(r[1]):n:!1},H2=e=>e==="position"||e==="percentage",K2=e=>e==="image"||e==="url",G2=e=>e==="length"||e==="size"||e==="bg-size",q2=e=>e==="length",ZO=e=>e==="number",Q2=e=>e==="family-name",Z2=e=>e==="number"||e==="weight",Y2=e=>e==="shadow",YO=()=>{const e=nt("color"),t=nt("font"),n=nt("text"),r=nt("font-weight"),s=nt("tracking"),i=nt("leading"),o=nt("breakpoint"),a=nt("container"),l=nt("spacing"),u=nt("radius"),c=nt("shadow"),d=nt("inset-shadow"),h=nt("text-shadow"),m=nt("drop-shadow"),v=nt("blur"),x=nt("perspective"),b=nt("aspect"),y=nt("ease"),g=nt("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...S(),$,U],A=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],E=()=>[$,U,l],V=()=>[Or,"full","auto",...E()],L=()=>[Bn,"none","subgrid",$,U],q=()=>["auto",{span:["full",Bn,$,U]},Bn,$,U],ce=()=>[Bn,"auto",$,U],je=()=>["auto","min","max","fr",$,U],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],ne=()=>["auto",...E()],Fe=()=>[Or,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],j=()=>[Or,"screen","full","dvw","lvw","svw","min","max","fit",...E()],z=()=>[Or,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],R=()=>[e,$,U],oe=()=>[...S(),Uv,zv,{position:[$,U]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],En=()=>["auto","cover","contain",GO,$O,{size:[$,U]}],Pt=()=>
vendor: 7,208 bytes, line 68
68[cf,Jo,Ls],ze=()=>["","none","full",u,$,U],te=()=>["",re,Jo,Ls],xt=()=>["solid","dashed","dotted","double"],Dl=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ge=()=>[re,cf,Uv,zv],$o=()=>["","none",v,$,U],Ml=()=>["none",re,$,U],Vl=()=>["none",re,$,U],gd=()=>[re,$,U],Fl=()=>[Or,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[or],breakpoint:[or],color:[W2],container:[or],"drop-shadow":[or],ease:["in","out","in-out"],font:[zO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[or],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[or],shadow:[or],spacing:["px",re],text:[or],"text-shadow":[or],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Or,U,$,b]}],container:["container"],"container-type":[{"@container":["","normal","size",$,U]}],"container-named":[UO],columns:[{columns:[re,U,$,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{"inset-s":V(),start:V()}],end:[{"inset-e":V(),end:V()}],"inset-bs":[{"inset-bs":V()}],"inset-be":[{"inset-be":V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Bn,"auto",$,U]}],basis:[{basis:[Or,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,Or,"auto","initial","none",U]}],grow:[{grow:["",re,$,U]}],shrink:[{shrink:["",re,$,U]}],order:[{order:[Bn,"first","last","none",$,U]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":je()}],"auto-rows":[{"auto-rows":je()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:ne()}],mx:[{mx:ne()}],my:[{my:ne()}],ms:[{ms:ne()}],me:[{me:ne()}],mbs:[{mbs:ne()}],mbe:[{mbe:ne()}],mt:[{mt:ne()}],mr:[{mr:ne()}],mb:[{mb:ne()}],ml:[{ml:ne()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:Fe()}],"inline-size":[{inline:["auto",...j()]}],"min-inline-size":[{"min-inline":["auto",...j()]}],"max-inline-size":[{"max-inline":["none",...j()]}],"block-size":[{block:["auto",...z()]}],"min-block-size":[{"min-block":["auto",...z()]}],"max-block-size":[{"max-block":["none",...z()]}],w:[{w:[a,"screen",...Fe()]}],"min-w":[{"min-w":[a,"screen","none",...Fe()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...Fe()]}],h:[{h:["screen","lh",...Fe()]}],"min-h":[{"min-h":["screen","lh","none",...Fe()]}],"max-h":[{"max-h":["screen","lh",...Fe()]}],"font-size":[{text:["base",n,Jo,Ls]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,QO,BO]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cf,U]}],"font-family":[{font:[KO,WO,t]}],"font-features":[{"font-features":[U]}],"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:[s,$,U]}],"line-clamp":[{"line-clamp":[re,"none",$,Fv]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",$,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xt(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",$,Ls]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[re,"auto",$,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"tab-size":[{tab:[Bn,$,U]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:En()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Bn,$,U],radial:["",$,U],conic:[Bn,$,U]},qO,HO]}
68],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:Pt()}],"gradient-via-pos":[{via:Pt()}],"gradient-to-pos":[{to:Pt()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:ze()}],"rounded-s":[{"rounded-s":ze()}],"rounded-e":[{"rounded-e":ze()}],"rounded-t":[{"rounded-t":ze()}],"rounded-r":[{"rounded-r":ze()}],"rounded-b":[{"rounded-b":ze()}],"rounded-l":[{"rounded-l":ze()}],"rounded-ss":[{"rounded-ss":ze()}],"rounded-se":[{"rounded-se":ze()}],"rounded-ee":[{"rounded-ee":ze()}],"rounded-es":[{"rounded-es":ze()}],"rounded-tl":[{"rounded-tl":ze()}],"rounded-tr":[{"rounded-tr":ze()}],"rounded-br":[{"rounded-br":ze()}],"rounded-bl":[{"rounded-bl":ze()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xt(),"hidden","none"]}],"divide-style":[{divide:[...xt(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}
vendor: 4,792 bytes, line 68
68],"divide-color":[{divide:R()}],"outline-style":[{outline:[...xt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,$,U]}],"outline-w":[{outline:["",re,Jo,Ls]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",c,du,cu]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",d,du,cu]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[re,Ls]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",h,du,cu]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[re,$,U]}],"mix-blend":[{"mix-blend":[...Dl(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Dl()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ge()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":Ge()}],"mask-image-t-to-pos":[{"mask-t-to":Ge()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":Ge()}],"mask-image-r-to-pos":[{"mask-r-to":Ge()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":Ge()}],"mask-image-b-to-pos":[{"mask-b-to":Ge()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":Ge()}],"mask-image-l-to-pos":[{"mask-l-to":Ge()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":Ge()}],"mask-image-x-to-pos":[{"mask-x-to":Ge()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":Ge()}],"mask-image-y-to-pos":[{"mask-y-to":Ge()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[$,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ge()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ge()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:En()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,U]}],filter:[{filter:["","none",$,U]}],blur:[{blur:$o()}],brightness:[{brightness:[re,$,U]}],contrast:[{contrast:[re,$,U]}],"drop-shadow":[{"drop-shadow":["","none",m,du,cu]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",re,$,U]}],"hue-rotate":[{"hue-rotate":[re,$,U]}],invert:[{invert:["",re,$,U]}],saturate:[{saturate:[re,$,U]}],sepia:[{sepia:["",re,$,U]}],"backdrop-filter":[{"backdrop-filter":["","none",$,U]}],"backdrop-blur":[{"backdrop-blur":$o()}],"backdrop-brightness":[{"backdrop-brightness":[re,$,U]}],"backdrop-contrast":[{"backdrop-contrast":[re,$,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,$,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,$,U]}],"backdrop-invert":[{"backdrop-invert":["",re,$,U]}],"backdrop-opacity":[{"backdrop-opacity":[re,$,U]}],"backdrop-saturate":[{"backdrop-saturate":[re,$,U]}],"backdrop-sepia":[{"backdrop-sepia":["",re,$,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",$,U]}],ease:[{ease:["linear","initial",y,$,U]}
vendor: 6,585 bytes, line 68
68],delay:[{delay:[re,$,U]}],animate:[{animate:["none",g,$,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,$,U]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:Ml()}],"rotate-x":[{"rotate-x":Ml()}],"rotate-y":[{"rotate-y":Ml()}],"rotate-z":[{"rotate-z":Ml()}],scale:[{scale:Vl()}],"scale-x":[{"scale-x":Vl()}],"scale-y":[{"scale-y":Vl()}],"scale-z":[{"scale-z":Vl()}],"scale-3d":["scale-3d"],skew:[{skew:gd()}],"skew-x":[{"skew-x":gd()}],"skew-y":[{"skew-y":gd()}],transform:[{transform:[$,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Fl()}],"translate-x":[{"translate-x":Fl()}],"translate-y":[{"translate-y":Fl()}],"translate-z":[{"translate-z":Fl()}],"translate-none":["translate-none"],zoom:[{zoom:[Bn,$,U]}],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$,U]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":R()}],"scrollbar-track-color":[{"scrollbar-track":R()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",$,U]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[re,Jo,Ls,Fv]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},XO=NO(YO);function G(...e){return XO(M2(e))}var ye;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o}
vendor: 5,815 bytes, line 68
68,e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(ye||(ye={}));var $v;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})($v||($v={}));const H=ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Wr=e=>{switch(typeof e){case"undefined":return H.undefined;case"string":return H.string;case"number":return Number.isNaN(e)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(e)?H.array:e===null?H.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?H.promise:typeof Map<"u"&&e instanceof Map?H.map:typeof Set<"u"&&e instanceof Set?H.set:typeof Date<"u"&&e instanceof Date?H.date:H.object;default:return H.unknown}},D=ye.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ar extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,l=0;for(;l<o.path.length;){const u=o.path[l];l===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(o))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return s(this),r}static assert(t){if(!(t instanceof Ar))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];n[i]=n[i]||[],n[i].push(t(s))}else r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Ar.create=e=>new Ar(e);const sp=(e,t)=>{let n;switch(e.code){case D.invalid_type:e.received===H.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case D.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ye.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:n=`Unrecognized key(s) in object: ${ye.joinValues(e.keys,", ")}`;break;case D.invalid_union:n="Invalid input";break;case D.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ye.joinValues(e.options)}`;break;case D.invalid_enum_value:n=`Invalid enum value. Expected ${ye.joinValues(e.options)}, received '${e.received}'`;break;case D.invalid_arguments:n="Invalid function arguments";break;case D.invalid_return_type:n="Invalid function return type";break;case D.invalid_date:n="Invalid date";break;case D.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ye.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case D.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case D.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case D.custom:n="Invalid input";break;case D.invalid_intersection_types:n="Intersection results could not be merged";break;case D.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case D.not_finite:n="Number must be finite";break;default:n=t.defaultError,ye.assertNever(e)}return{message:n}};let JO=sp;function e4(){return JO}const t4=e=>
vendor: 17,767 bytes, line 68
68{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(o,{data:t,defaultError:a}).message;return{...s,path:i,message:a}};function F(e,t){const n=e4(),r=t4({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===sp?void 0:sp].filter(s=>!!s)});e.common.issues.push(r)}class rn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return J;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const i=await s.key,o=await s.value;r.push({key:i,value:o})}return rn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return J;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const J=Object.freeze({status:"aborted"}),ca=e=>({status:"dirty",value:e}),Cn=e=>({status:"valid",value:e}),Bv=e=>e.status==="aborted",Wv=e=>e.status==="dirty",To=e=>e.status==="valid",jc=e=>typeof Promise<"u"&&e instanceof Promise;var K;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(K||(K={}));class Es{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Hv=(e,t)=>{if(To(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Ar(e.common.issues);return this._error=n,this._error}}};function se(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>{const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:s}}class pe{get description(){return this._def.description}_getType(t){return Wr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Wr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new rn,ctx:{common:t.parent.common,data:t.data,parsedType:Wr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(jc(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)},s=this._parseSync({data:t,path:r.path,parent:r});return Hv(r,s)}"~validate"(t){var r,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:n});return To(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(s=(r=i==null?void 0:i.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>To(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(jc(s)?s:Promise.resolve(s));return Hv(r,i)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=t(s),a=()=>i.addIssue({code:D.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new No({schema:this,typeName:ee.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return xs.create(this,this._def)}nullable(){return Ao.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return sr.create(this)}promise(){return Vc.create(this,this._def)}or(t){return Dc.create([this,t],this._def)}and(t){return Mc.create(this,t,this._def)}transform(t){return new No({...se(this._def),schema:this,typeName:ee.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ap({...se(this._def),innerType:this,defaultValue:n,typeName:ee.ZodDefault})}brand(){return new E4({typeName:ee.ZodBranded,type:this,...se(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new lp({...se(this._def),innerType:this,catchValue:n,typeName:ee.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return gg.create(this,t)}readonly(){return up.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const n4=/^c[^\s-]{8,}$/i,r4=/^[0-9a-z]+$/,s4=/^[0-9A-HJKMNP-TV-Z]{26}$/i,i4=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,o4=/^[a-z0-9_-]{21}$/i,a4=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,l4=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,u4=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,c4="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let df;const d4=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,f4=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,h4=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,p4=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,m4=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,g4=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,X2="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",y4=new RegExp(`^${X2}$`);function J2(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function v4(e){return new RegExp(`^${J2(e)}$`)}function x4(e){let t=`${X2}T${J2(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function w4(e,t){return!!((t==="v4"||!t)&&d4.test(e)||(t==="v6"||!t)&&h4.test(e))}function b4(e,t){if(!a4.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function S4(e,t){return!!((t==="v4"||!t)&&f4.test(e)||(t==="v6"||!t)&&p4.test(e))}class ls extends pe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==H.string){const i=this._getOrReturnCtx(t);return F(i,{code:D.invalid_type,expected:H.string,received:i.parsedType}),J}const r=new rn;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),F(s,{code:D.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),F(s,{code:D.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(t,s),o?F(s,{code:D.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&F(s,{code:D.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")u4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"email",code:D.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")df||(df=new RegExp(c4,"u")),df.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"emoji",code:D.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")i4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"uuid",code:D.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")o4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"nanoid",code:D.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")n4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"cuid",code:D.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")r4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"cuid2",code:D.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")s4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"ulid",code:D.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),F(s,{validation:"url",code:D.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"regex",code:D.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),F(s,{code:D.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),F(s,{code:D.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),F(s,{code:D.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?x4(i).test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{code:D.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?y4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{code:D.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?v4(i).test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{code:D.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?l4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"duration",code:D.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?w4(t.data,i.version)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"ip",code:D.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?b4(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"jwt",code:D.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?S4(t.data,i.version)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"cidr",code:D.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?m4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"base64",code:D.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?g4.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"base64url",code:D.invalid_string,message:i.message}),r.dirty()):ye.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(s=>t.test(s),{validation:n,code:D.invalid_string,...K.errToObj(r)})}_addCheck(t){return new ls({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...K.errToObj(t)})}url(t){return this._addCheck({kind:"url",...K.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...K.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...K.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...K.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...K.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...K.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...K.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...K.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...K.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...K.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...K.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...K.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...K.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...K.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...K.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...K.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...K.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...K.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...K.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...K.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...K.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...K.errToObj(n)})}nonempty(t){return this.min(1,K.errToObj(t))}trim(){return new ls({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ls({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ls({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,641 bytes, line 68
68get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}ls.create=e=>new ls({checks:[],typeName:ee.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...se(e)});function C4(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,i=Number.parseInt(e.toFixed(s).replace(".","")),o=Number.parseInt(t.toFixed(s).replace(".",""));return i%o/10**s}class nl extends pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==H.number){const i=this._getOrReturnCtx(t);return F(i,{code:D.invalid_type,expected:H.number,received:i.parsedType}),J}let r;const s=new rn;for(const i of this._def.checks)i.kind==="int"?ye.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),F(r,{code:D.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),F(r,{code:D.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),F(r,{code:D.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?C4(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),F(r,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),F(r,{code:D.not_finite,message:i.message}),s.dirty()):ye.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,K.toString(n))}gt(t,n){return this.setLimit("min",t,!1,K.toString(n))}lte(t,n){return this.setLimit("max",t,!0,K.toString(n))}lt(t,n){return this.setLimit("max",t,!1,K.toString(n))}setLimit(t,n,r,s){return new nl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:K.toString(s)}]})}_addCheck(t){return new nl({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:K.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:K.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:K.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:K.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:K.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:K.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:K.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:K.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:K.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ye.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}
vendor: 6,650 bytes, line 68
68}nl.create=e=>new nl({checks:[],typeName:ee.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...se(e)});class rl extends pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==H.bigint)return this._getInvalidInput(t);let r;const s=new rn;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),F(r,{code:D.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),F(r,{code:D.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),F(r,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):ye.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return F(n,{code:D.invalid_type,expected:H.bigint,received:n.parsedType}),J}gte(t,n){return this.setLimit("min",t,!0,K.toString(n))}gt(t,n){return this.setLimit("min",t,!1,K.toString(n))}lte(t,n){return this.setLimit("max",t,!0,K.toString(n))}lt(t,n){return this.setLimit("max",t,!1,K.toString(n))}setLimit(t,n,r,s){return new rl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:K.toString(s)}]})}_addCheck(t){return new rl({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:K.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:K.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:K.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:K.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:K.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}rl.create=e=>new rl({checks:[],typeName:ee.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...se(e)});class Kv extends pe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==H.boolean){const r=this._getOrReturnCtx(t);return F(r,{code:D.invalid_type,expected:H.boolean,received:r.parsedType}),J}return Cn(t.data)}}Kv.create=e=>new Kv({typeName:ee.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...se(e)});class Oc extends pe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==H.date){const i=this._getOrReturnCtx(t);return F(i,{code:D.invalid_type,expected:H.date,received:i.parsedType}),J}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return F(i,{code:D.invalid_date}),J}const r=new rn;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),F(s,{code:D.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),F(s,{code:D.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):ye.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Oc({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:K.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:K.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Oc.create=e=>new Oc({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ee.ZodDate,...se(e)});class Gv extends pe{_parse(t){if(this._getType(t)!==H.symbol){const r=this._getOrReturnCtx(t);return F(r,{code:D.invalid_type,expected:H.symbol,received:r.parsedType}),J}return Cn(t.data)}}Gv.create=e=>new Gv({typeName:ee.ZodSymbol,...se(e)});class qv extends pe{_parse(t){if(this._getType(t)!==H.undefined){const r=this._getOrReturnCtx(t);return F(r,{code:D.invalid_type,expected:H.undefined,received:r.parsedType}),J}return Cn(t.data)}}qv.create=e=>new qv({typeName:ee.ZodUndefined,...se(e)});class Qv extends pe{_parse(t){if(this._getType(t)!==H.null){const r=this._getOrReturnCtx(t);return F(r,{code:D.invalid_type,expected:H.null,received:r.parsedType}),J}return Cn(t.data)}}Qv.create=e=>new Qv({typeName:ee.ZodNull,...se(e)});class Zv extends pe{constructor(){super(...arguments),this._any=!0}_parse(t){return Cn(t.data)}}Zv.create=e=>new Zv({typeName:ee.ZodAny,...se(e)});class Yv extends pe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Cn(t.data)}}Yv.create=e=>new Yv({typeName:ee.ZodUnknown,...se(e)});class ks extends pe{_parse(t){const n=this._getOrReturnCtx(t);return F(n,{code:D.invalid_type,expected:H.never,received:n.parsedType}),J}}ks.create=e=>new ks({typeName:ee.ZodNever,...se(e)});class Xv extends pe{_parse(t){if(this._getType(t)!==H.undefined){const r=this._getOrReturnCtx(t);return F(r,{code:D.invalid_type,expected:H.void,received:r.parsedType}),J}return Cn(t.data)}}Xv.create=e=>new Xv({typeName:ee.ZodVoid,...se(e)});class sr extends pe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==H.array)return F(n,{code:D.invalid_type,expected:H.array,received:n.parsedType}),J;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(o||a)&&(F(n,{code:o?D.too_big:D.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(F(n,{code:D.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(F(n,{code:D.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new Es(n,o,n.path,a)))).then(o=>rn.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new Es(n,o,n.path,a)));return rn.mergeArray(r,i)}
vendor: 5,073 bytes, line 68
68get element(){return this._def.type}min(t,n){return new sr({...this._def,minLength:{value:t,message:K.toString(n)}})}max(t,n){return new sr({...this._def,maxLength:{value:t,message:K.toString(n)}})}length(t,n){return new sr({...this._def,exactLength:{value:t,message:K.toString(n)}})}nonempty(t){return this.min(1,t)}}sr.create=(e,t)=>new sr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ee.ZodArray,...se(t)});function Ei(e){if(e instanceof Je){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=xs.create(Ei(r))}return new Je({...e._def,shape:()=>t})}else return e instanceof sr?new sr({...e._def,type:Ei(e.element)}):e instanceof xs?xs.create(Ei(e.unwrap())):e instanceof Ao?Ao.create(Ei(e.unwrap())):e instanceof hi?hi.create(e.items.map(t=>Ei(t))):e}class Je extends pe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ye.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==H.object){const u=this._getOrReturnCtx(t);return F(u,{code:D.invalid_type,expected:H.object,received:u.parsedType}),J}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof ks&&this._def.unknownKeys==="strip"))for(const u in s.data)o.includes(u)||a.push(u);const l=[];for(const u of o){const c=i[u],d=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Es(s,d,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof ks){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:s.data[c]}});else if(u==="strict")a.length>0&&(F(s,{code:D.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of a){const d=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Es(s,d,s.path,c)),alwaysSet:c in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key,h=await c.value;u.push({key:d,value:h,alwaysSet:c.alwaysSet})}return u}).then(u=>rn.mergeObjectSync(r,u)):rn.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return K.errToObj,new Je({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o;const s=((o=(i=this._def).errorMap)==null?void 0:o.call(i,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:K.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new Je({...this._def,unknownKeys:"strip"})}passthrough(){return new Je({...this._def,unknownKeys:"passthrough"})}extend(t){return new Je({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Je({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ee.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Je({...this._def,catchall:t})}pick(t){const n={};for(const r of ye.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Je({...this._def,shape:()=>n})}omit(t){const n={};for(const r of ye.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Je({...this._def,shape:()=>n})}deepPartial(){return Ei(this)}partial(t){const n={};for(const r of ye.objectKeys(this.shape)){const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}return new Je({...this._def,shape:()=>n})}required(t){const n={};for(const r of ye.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof xs;)i=i._def.innerType;n[r]=i}return new Je({...this._def,shape:()=>n})}keyof(){return eC(ye.objectKeys(this.shape))}}Je.create=(e,t)=>new Je({shape:()=>e,unknownKeys:"strip",catchall:ks.create(),typeName:ee.ZodObject,...se(t)});Je.strictCreate=(e,t)=>new Je({shape:()=>e,unknownKeys:"strict",catchall:ks.create(),typeName:ee.ZodObject,...se(t)});Je.lazycreate=(e,t)=>new Je({shape:e,unknownKeys:"strip",catchall:ks.create(),typeName:ee.ZodObject,...se(t)});class Dc extends pe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new Ar(a.ctx.common.issues));return F(n,{code:D.invalid_union,unionErrors:o}),J}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;
vendor: 4,507 bytes, line 68
68const a=o.map(l=>new Ar(l));return F(n,{code:D.invalid_union,unionErrors:a}),J}}get options(){return this._def.options}}Dc.create=(e,t)=>new Dc({options:e,typeName:ee.ZodUnion,...se(t)});function ip(e,t){const n=Wr(e),r=Wr(t);if(e===t)return{valid:!0,data:e};if(n===H.object&&r===H.object){const s=ye.objectKeys(t),i=ye.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=ip(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(n===H.array&&r===H.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],l=ip(o,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===H.date&&r===H.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Mc extends pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=(i,o)=>{if(Bv(i)||Bv(o))return J;const a=ip(i.value,o.value);return a.valid?((Wv(i)||Wv(o))&&n.dirty(),{status:n.value,value:a.data}):(F(r,{code:D.invalid_intersection_types}),J)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Mc.create=(e,t,n)=>new Mc({left:e,right:t,typeName:ee.ZodIntersection,...se(n)});class hi extends pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.array)return F(r,{code:D.invalid_type,expected:H.array,received:r.parsedType}),J;if(r.data.length<this._def.items.length)return F(r,{code:D.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&r.data.length>this._def.items.length&&(F(r,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Es(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>rn.mergeArray(n,o)):rn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new hi({...this._def,rest:t})}}hi.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new hi({items:e,typeName:ee.ZodTuple,rest:null,...se(t)})};class Jv extends pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.map)return F(r,{code:D.invalid_type,expected:H.map,received:r.parsedType}),J;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,l],u)=>({key:s._parse(new Es(r,a,r.path,[u,"key"])),value:i._parse(new Es(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return J;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of o){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return J;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}}Jv.create=(e,t,n)=>new Jv({valueType:t,keyType:e,typeName:ee.ZodMap,...se(n)});class sl extends pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.set)return F(r,{code:D.invalid_type,expected:H.set,received:r.parsedType}),J;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(F(r,{code:D.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(F(r,{code:D.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(l){const u=new Set;for(const c of l){if(c.status==="aborted")return J;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>i._parse(new Es(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,n){return new sl({...this._def,minSize:{value:t,message:K.toString(n)}})}max(t,n){return new sl({...this._def,maxSize:{value:t,message:K.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}sl.create=(e,t)=>
vendor: 4,623 bytes, line 68
68new sl({valueType:e,minSize:null,maxSize:null,typeName:ee.ZodSet,...se(t)});class ex extends pe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}ex.create=(e,t)=>new ex({getter:e,typeName:ee.ZodLazy,...se(t)});class op extends pe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return F(n,{received:n.data,code:D.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:t.data}}get value(){return this._def.value}}op.create=(e,t)=>new op({value:e,typeName:ee.ZodLiteral,...se(t)});function eC(e,t){return new Po({values:e,typeName:ee.ZodEnum,...se(t)})}class Po extends pe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return F(n,{expected:ye.joinValues(r),received:n.parsedType,code:D.invalid_type}),J}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return F(n,{received:n.data,code:D.invalid_enum_value,options:r}),J}return Cn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Po.create(t,{...this._def,...n})}exclude(t,n=this._def){return Po.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Po.create=eC;class tx extends pe{_parse(t){const n=ye.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==H.string&&r.parsedType!==H.number){const s=ye.objectValues(n);return F(r,{expected:ye.joinValues(s),received:r.parsedType,code:D.invalid_type}),J}if(this._cache||(this._cache=new Set(ye.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=ye.objectValues(n);return F(r,{received:r.data,code:D.invalid_enum_value,options:s}),J}return Cn(t.data)}get enum(){return this._def.values}}tx.create=(e,t)=>new tx({values:e,typeName:ee.ZodNativeEnum,...se(t)});class Vc extends pe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.promise&&n.common.async===!1)return F(n,{code:D.invalid_type,expected:H.promise,received:n.parsedType}),J;const r=n.parsedType===H.promise?n.data:Promise.resolve(n.data);return Cn(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Vc.create=(e,t)=>new Vc({type:e,typeName:ee.ZodPromise,...se(t)});class No extends pe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ee.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{F(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return J;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?J:l.status==="dirty"||n.value==="dirty"?ca(l.value):l});{if(n.value==="aborted")return J;const a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?J:a.status==="dirty"||n.value==="dirty"?ca(a.value):a}}if(s.type==="refinement"){const o=a=>{const l=s.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?J:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?J:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!To(o))return J;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>To(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):J);ye.assertNever(s)}}
vendor: 4,309 bytes, line 68
68No.create=(e,t,n)=>new No({schema:e,typeName:ee.ZodEffects,effect:t,...se(n)});No.createWithPreprocess=(e,t,n)=>new No({schema:t,effect:{type:"preprocess",transform:e},typeName:ee.ZodEffects,...se(n)});class xs extends pe{_parse(t){return this._getType(t)===H.undefined?Cn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}xs.create=(e,t)=>new xs({innerType:e,typeName:ee.ZodOptional,...se(t)});class Ao extends pe{_parse(t){return this._getType(t)===H.null?Cn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ao.create=(e,t)=>new Ao({innerType:e,typeName:ee.ZodNullable,...se(t)});class ap extends pe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===H.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ap.create=(e,t)=>new ap({innerType:e,typeName:ee.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...se(t)});class lp extends pe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return jc(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ar(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ar(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}lp.create=(e,t)=>new lp({innerType:e,typeName:ee.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...se(t)});class nx extends pe{_parse(t){if(this._getType(t)!==H.nan){const r=this._getOrReturnCtx(t);return F(r,{code:D.invalid_type,expected:H.nan,received:r.parsedType}),J}return{status:"valid",value:t.data}}}nx.create=e=>new nx({typeName:ee.ZodNaN,...se(e)});class E4 extends pe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class gg extends pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?J:i.status==="dirty"?(n.dirty(),ca(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?J:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new gg({in:t,out:n,typeName:ee.ZodPipeline})}}class up extends pe{_parse(t){const n=this._def.innerType._parse(t),r=s=>(To(s)&&(s.value=Object.freeze(s.value)),s);return jc(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}up.create=(e,t)=>new up({innerType:e,typeName:ee.ZodReadonly,...se(t)});var ee;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ee||(ee={}));const Re=ls.create;ks.create;sr.create;const yg=Je.create;Dc.create;Mc.create;hi.create;const k4=op.create,tC=Po.create;Vc.create;xs.create;Ao.create;const _4={VITE_API_BASE_URL:"https://api.kebchi.fr/api",VITE_API_DRIVER:"rest",VITE_ENV:"production",VITE_GOOGLE_CONVERSIONS:"AW-621324820/cTWkCKi4qKAZEJTUoqgC,AW-10879482109/WUdZCP3527wDEP3x3sMo,AW-18158155788/dEQhCN3yx6wcEIzwvdJD",VITE_GOOGLE_TAG_IDS:"GT-K4LKZJM
687,AW-621324820,AW-10879482109,AW-18158155788",VITE_GTM_ID:"GTM-WK78VK8L",VITE_META_PIXEL_ID:"1470077016882589",VITE_STRIPE_PUBLISHABLE_KEY:"pk_live_cim9uuMYWLWsFtqg6EEiHScc00S7J81tio",VITE_TIKTOK_PIXEL_ID:"CPCT97RC77UF7LI84DLG",VITE_TURNSTILE_SITE_KEY:"0x4AAAAAAFKTOUR3Qiy4UB3j"},T4=tC(["rest","mock"]),rx=Re().optional().transform(e=>(e??"").split(",").map(t=>t.trim()).filter(Boolean));function P4(e){return yg({API_BASE_URL:Re().default("/api/v1"),API_DRIVER:T4.default("rest"),ALLOW_MOCK_IN_PROD:Re().optional().transform(t=>t==="true"),STRIPE_PUBLISHABLE_KEY:Re().optional(),TURNSTILE_SITE_KEY:Re().optional(),CLOUDINARY_CLOUD_NAME:Re().optional(),CDN_BASE_URL:Re().default("https://cdn.kebchi.fr"),ENV:Re().default("development"),SITE_URL:Re().default("https://kebchi.fr").transform(t=>t.replace(/\/$/,"")),INDEXABLE:Re().optional().transform(t=>t==="true"),META_PIXEL_ID:Re().optional(),TIKTOK_PIXEL_ID:Re().optional(),GTM_ID:Re().optional(),GOOGLE_TAG_IDS:rx,GOOGLE_CONVERSIONS:rx})}function N4(e,t){const n=P4().safeParse({API_BASE_URL:e.VITE_API_BASE_URL,API_DRIVER:e.VITE_API_DRIVER,ALLOW_MOCK_IN_PROD:e.VITE_ALLOW_MOCK_IN_PROD,STRIPE_PUBLISHABLE_KEY:e.VITE_STRIPE_PUBLISHABLE_KEY,TURNSTILE_SITE_KEY:e.VITE_TURNSTILE_SITE_KEY,CLOUDINARY_CLOUD_NAME:e.VITE_CLOUDINARY_CLOUD_NAME,CDN_BASE_URL:e.VITE_CDN_BASE_URL,ENV:e.VITE_ENV,SITE_URL:e.VITE_SITE_URL,INDEXABLE:e.VITE_INDEXABLE,META_PIXEL_ID:e.VITE_META_PIXEL_ID,TIKTOK_PIXEL_ID:e.VITE_TIKTOK_PIXEL_ID,GTM_ID:e.VITE_GTM_ID,GOOGLE_TAG_IDS:e.VITE_GOOGLE_TAG_IDS,GOOGLE_CONVERSIONS:e.VITE_GOOGLE_CONVERSIONS});if(!n.success)throw console.error("Configuration .env invalide :",n.error.flatten().fieldErrors),new Error("Configuration .env invalide — voir .env.example");if(n.data.API_DRIVER==="mock"&&!n.data.ALLOW_MOCK_IN_PROD)throw new Error("Build de production en driver 'mock' : le tunnel de don confirmerait des paiements factices. Pose VITE_API_DRIVER=rest (et vérifie que la variable est bien une « Build Variable » côté Coolify), ou VITE_ALLOW_MOCK_IN_PROD=true si la démo est voulue.");return n.data}const yn=N4(_4),A4=`${yn.CDN_BASE_URL}/site_kebchi`;function nC(e,t="fr"){return new Intl.NumberFormat(t,{style:"currency",currency:e.currency}).format(e.amount/100)}function I6(e){return e.toLocaleString("fr-FR")}function L6(e,t="EUR",n="fr"){return nC({amount:e,currency:t},n)}const R4={"/":{titreExact:"Kebchi — Donnez du sens à vos dons : aqiqa, puits, arbres",description:"Puits, arbres, orphelins, Aqiqas, colis alimentaires : Kebchi vous garantit un don simple, sécurisé et transparent avec preuves et suivi en temps réel."},"/dons":{title:"Toutes nos actions solidaires",description:"Aqiqa, puits, orphelins, colis alimentaires, arbres fruitiers, Omra : choisissez votre don et recevez les preuves de sa réalisation."},"/dons/aqiqa":{titreExact:"Achetez votre mouton pour la naissance de votre fille — Kebchi.fr",description:"Commandez votre bête et restez serein pour le sacrifice en vue de la naissance de votre fille"},"/dons/mouton":{titreExact:"Faites un don de mouton aux plus démunis : Sadaqa avec Kebchi",description:"Faites confiance aux expert Kebchi en faisant un don de mouton pour une aumône. Nous sacrifions votre bête pour les plus démunis du monde."},"/dons/puits":{titreExact:"Construire un puits — Kebchi.fr",description:"Construisez un puits en Afrique au nom d’un proche ou d’un défunt : une sadaqa jariya durable, avec photos, vidéo et plaque gravée en preuve."},"/dons/orphelins":{titreExact:"Soutenir des orphelins — Kebchi.fr",description:"Lorsque vous effectuez un don pour soutenir les orphelins, vous sauvez littéralement la vie de ces enfants."},"/dons/colis-alimentaire":{titreExact:"Nourrir des familles démunies — Kebchi.fr",description:"Offrez un colis alimentaire à une famille dans le besoin. Kebchi le compose, le distribue et vous envoie les preuves de la distribution."},"/dons/arbre-fruitier":{titreExact:"Planter un arbre fruitier — Kebchi.fr",description:"Planter un arbre fruitier: choisir la plantation d’arbre avec Kebchi pour venir en aide aux plus démunis en Afrique et réaliser une sadaqa avec des fruits"},"/dons/cheveux":{titreExact:"Raser les cheveux de bébé en Islam — Kebchi.fr",description:"Raser cheveux bébé islam : respecter la sunna lors de la naissance de votre enfant en réalisant un don pour les plus démunis"},"/dons/libre":{titreExact:"Don association Kebchi.fr",description:"Soutenez notre association en luttant contre la pauvreté."},"/dons/fidya-ramadan":{titreExact:"Fidya et Kaffara du Ramadan — Kebchi.fr",description:"Acquittez-vous de votre fidya ou de votre kaffara : Kebchi nourrit un jeûneur démuni pour chaque jour non jeûné et vous en envoie la preuve."},"/dons/parrainage":{title:"Parrainer un orphelin",description:"Parrainez un orphelin chaque mois : nourriture, scolarité et suivi. Vous recevez des nouvelles et les preuves de votre parrainage."},"/dons/omra-procuration":{title:"Omra pour un défunt",description:"Faites accomplir une Omra par procuration au nom d’un défunt ou d’un proche. Kebchi mandate le pèlerin et vous remet son attestation."},"/dons/abonnement":{titreExact:"Kebchi+ — le don mensuel qui ne s’arrête jamais",description:"Donnez chaque mois le montant de votre choix : Kebchi répartit votre don entre puits, orphelins, colis et sacrifices, et vous en montre les preuves."},"/cagnottes":{title:"Cagnottes solidaires",description:"Lancez une cagnotte pour un puits, une aqiqa ou un orphelin et collectez auprès de vos proches. Kebchi réalise l’action et envoie les preuves."},"/blog":{titreExact:"Articles du blog Kebchi.fr",description:"Aqiqa, sacrifice, puits, Ramadan : nos articles pour comprendre les règles religieuses et choisir le don qui vous correspond."},"/faq":{title:"Questions fréquentes",description:"Délais, preuves, pays d’intervention, certification halal, reçu fiscal : les réponses aux questions les plus posées sur vos dons Kebchi."},"/questions-religieuses":{title:"Questions religieuses",description:"Aqiqa, sacrifice, zakat, fidya : les règles religieuses expliquées simplement, sources à l’appui, pour donner en toute sérénité."},"/pourquoi-kebchi":{title:"Pourquoi choisir Kebchi",description:"Preuves photo et vidéo de chaque don, suivi en temps réel, équipes sur le terrain : ce qui distingue Kebchi des autres associations."}
68,"/notre-concept":{title:"Notre concept",description:"De votre don à la distribution : comment Kebchi réalise votre sacrifice ou votre projet et vous en rapporte la preuve, étape par étape."},"/mentions-legales":{title:"Mentions légales",index:!1},"/confidentialite":{title:"Politique de confidentialité",index:!1},"/cgv":{title:"Conditions générales de vente",index:!1}},I4=["/donner","/panier","/don/","/mon-compte","/connexion","/mot-de-passe-oublie","/keystatic","/t/"];function L4(e){const t=e==="/"?"/":e.replace(/\/+$/,""),n=R4[t],r=!I4.some(s=>t===s.replace(/\/$/,"")||t.startsWith(s));return{...n,index:(n==null?void 0:n.index)??r}}const j4="Kebchi — Donnez du sens à vos dons : aqiqa, puits, arbres",sx="https://cdn.kebchi.fr/site_kebchi/puit/images/puits_boy_raz1yh.jpg",fd="data-seo";function O4(e){return e.titreExact?e.titreExact:e.title?`${e.title} — Kebchi`:j4}function D4(e){const t=e.split("?")[0].split("#")[0],n=t==="/"?"/":t.replace(/\/+$/,"");return yn.SITE_URL+n}function Gt(e,t,n){let r=document.head.querySelector(`meta[${e}="${t}"]`);r||(r=document.createElement("meta"),r.setAttribute(e,t),r.setAttribute(fd,""),document.head.appendChild(r)),r.setAttribute("content",n)}function M4(e,t){let n=document.head.querySelector(`link[rel="${e}"]`);n||(n=document.createElement("link"),n.setAttribute("rel",e),n.setAttribute(fd,""),document.head.appendChild(n)),n.setAttribute("href",t)}function V4(e){const t=Array.isArray(e)?e:[e];for(const n of t){const r=document.createElement("script");r.type="application/ld+json",r.setAttribute(fd,"jsonld"),r.textContent=JSON.stringify(n),document.head.appendChild(r)}}function F4(e){const{title:t,titreExact:n,description:r,canonical:s,image:i,type:o,index:a,jsonLd:l}=e,u=l?JSON.stringify(l):"";k.useEffect(()=>{const c=O4({title:t,titreExact:n}),d=s??window.location.pathname,h=D4(d),m=yn.INDEXABLE&&a!==!1;if(document.title=c,Gt("name","robots",m?"index, follow, max-image-preview:large":"noindex, nofollow"),r&&Gt("name","description",r),M4("canonical",h),Gt("property","og:site_name","Kebchi"),Gt("property","og:locale","fr_FR"),Gt("property","og:type",o??"website"),Gt("property","og:title",c),Gt("property","og:url",h),Gt("property","og:image",i??sx),r&&Gt("property","og:description",r),Gt("name","twitter:card","summary_large_image"),Gt("name","twitter:title",c),Gt("name","twitter:image",i??sx),r&&Gt("name","twitter:description",r),!!u)return V4(JSON.parse(u)),()=>{document.head.querySelectorAll(`script[${fd}="jsonld"]`).forEach(v=>v.remove())}},[t,n,r,s,i,o,a,u])}function z4(e,t){const{pathname:n}=Sn();F4({title:e,...L4(n),...t})}const U4={},ix=e=>{let t;const n=new Set,r=(c,d)=>{const h=typeof c=="function"?c(t):c;if(!Object.is(h,t)){const m=t;t=d??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(v=>v(t,m))}},s=()=>t,l={setState:r,getState:s,getInitialState:()=>u,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(U4?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,s,l);return l},$4=e=>e?ix(e):ix;var rC={exports:{}},sC={},iC={exports:{}},oC={};/**
69 * @license React
70 * use-sync-external-store-shim.production.js
71 *
72 * Copyright (c) Meta Platforms, Inc. and affiliates.
73 *
74 * This source code is licensed under the MIT license found in the
75 * LICENSE file in the root directory of this source tree.
76 */var Ro=k;function B4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var W4=typeof Object.is=="function"?Object.is:B4,H4=Ro.useState,K4=Ro.useEffect,G4=Ro.useLayoutEffect,q4=Ro.useDebugValue;function Q4(e,t){var n=t(),r=H4({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return G4(function(){s.value=n,s.getSnapshot=t,ff(s)&&i({inst:s})},[e,n,t]),K4(function(){return ff(s)&&i({inst:s}),e(function(){ff(s)&&i({inst:s})})},[e]),q4(n),n}function ff(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!W4(e,n)}catch{return!0}}function Z4(e,t){return t()}var Y4=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Z4:Q4;oC.useSyncExternalStore=Ro.useSyncExternalStore!==void 0?Ro.useSyncExternalStore:Y4;iC.exports=oC;var X4=iC.exports;/**
77 * @license React
78 * use-sync-external-store-shim/with-selector.production.js
79 *
80 * Copyright (c) Meta Platforms, Inc. and affiliates.
81 *
82 * This source code is licensed under the MIT license found in the
83 * LICENSE file in the root directory of this source tree.
84 */var hd=k,J4=X4;function e3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var t3=typeof Object.is=="function"?Object.is:e3,n3=J4.useSyncExternalStore,r3=hd.useRef,s3=hd.useEffect,i3=hd.useMemo,o3=hd.useDebugValue;
84sC.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=r3(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=i3(function(){function l(m){if(!u){if(u=!0,c=m,m=r(m),s!==void 0&&o.hasValue){var v=o.value;if(s(v,m))return d=v}return d=m}if(v=d,t3(c,m))return v;var x=r(m);return s!==void 0&&s(v,x)?(c=m,v):(c=m,d=x)}var u=!1,c,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,s]);var a=n3(e,i[0],i[1]);return s3(function(){o.hasValue=!0,o.value=a},[a]),o3(a),a};rC.exports=sC;var a3=rC.exports;const l3=Wc(a3),aC={},{useDebugValue:u3}=ae,{useSyncExternalStoreWithSelector:c3}=l3;let ox=!1;const d3=e=>e;function f3(e,t=d3,n){(aC?"production":void 0)!=="production"&&n&&!ox&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ox=!0);const r=c3(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return u3(r),r}const h3=e=>{(aC?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?$4(e):e,n=(r,s)=>f3(t,r,s);return Object.assign(n,t),n},lC=e=>h3,p3={};function uC(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var i;const o=l=>l===null?null:JSON.parse(l,void 0),a=(i=n.getItem(s))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(s,i)=>n.setItem(s,JSON.stringify(i,void 0)),removeItem:s=>n.removeItem(s)}}const il=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return il(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return il(r)(n)}}}},m3=(e,t)=>(n,r,s)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:b=>b,version:0,merge:(b,y)=>({...y,...b}),...t},o=!1;const a=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...b)},r,s);const c=il(i.serialize),d=()=>{const b=i.partialize({...r()});let y;const g=c({state:b,version:i.version}).then(w=>u.setItem(i.name,w)).catch(w=>{y=w});if(y)throw y;return g},h=s.setState;s.setState=(b,y)=>{h(b,y),d()};const m=e((...b)=>{n(...b),d()},r,s);let v;const x=()=>{var b;if(!u)return;o=!1,a.forEach(g=>g(r()));const y=((b=i.onRehydrateStorage)==null?void 0:b.call(i,r()))||void 0;return il(u.getItem.bind(u))(i.name).then(g=>{if(g)return i.deserialize(g)}).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==i.version){if(i.migrate)return i.migrate(g.state,g.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return g.state}).then(g=>{var w;return v=i.merge(g,(w=r())!=null?w:m),n(v,!0),d()}).then(()=>{y==null||y(v,void 0),o=!0,l.forEach(g=>g(v))}).catch(g=>{y==null||y(void 0,g)})};return s.persist={setOptions:b=>{i={...i,...b},b.getStorage&&(u=b.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>x(),hasHydrated:()=>o,onHydrate:b=>(a.add(b),()=>{a.delete(b)}),onFinishHydration:b=>(l.add(b),()=>{l.delete(b)})},x(),v||m},g3=(e,t)=>(n,r,s)=>{let i={storage:uC(()=>localStorage),partialize:x=>x,version:0,merge:(x,b)=>({...b,...x}),...t},o=!1;const a=new Set,l=new Set;let u=i.storage;if(!u)return e((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...x)},r,s);const c=()=>{const x=i.partialize({...r()});return u.setItem(i.name,{state:x,version:i.version})},d=s.setState;s.setState=(x,b)=>{d(x,b),c()};const h=e((...x)=>{n(...x),c()},r,s);s.getInitialState=()=>h;let m;const v=()=>{var x,b;if(!u)return;o=!1,a.forEach(g=>{var w;return g((w=r())!=null?w:h)});const y=((b=i.onRehydrateStorage)==null?void 0:b.call(i,(x=r())!=null?x:h))||void 0;return il(u.getItem.bind(u))(i.name).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==i.version){if(i.migrate)return[!0,i.migrate(g.state,g.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,g.state];return[!1,void 0]}).then(g=>{var w;const[S,_]=g;if(m=i.merge(_,(w=r())!=null?w:h),n(m,!0),S)return c()}).then(()=>{y==null||y(m,void 0),m=r(),o=!0,l.forEach(g=>g(m))}).catch(g=>{y==null||y(void 0,g)})};return s.persist={setOptions:x=>{i={...i,...x},x.storage&&(u=x.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>v(),hasHydrated:()=>o,onHydrate:x=>(a.add(x),()=>{a.delete(x)}),onFinishHydration:x=>(l.add(x),()=>{l.delete(x)})},i.skipHydration||v(),m||h},y3=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((p3?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),m3(e,t)):g3(e,t),cC=y3;
84class Ta extends Error{constructor(t,n,r){super(n),this.status=t,this.body=r,this.name="HttpError"}}class v3{constructor(t){Lr(this,"middlewares",[]);this.baseURL=t}use(t){this.middlewares.push(t)}async get(t,n){return this.request("GET",this.withQuery(t,n))}async post(t,n){return this.request("POST",t,n)}withQuery(t,n){if(!n)return t;const r=new URLSearchParams;for(const[i,o]of Object.entries(n))o!==void 0&&r.append(i,String(o));const s=r.toString();return s?`${t}?${s}`:t}async request(t,n,r){const s=new Headers({Accept:"application/json"}),i={method:t,credentials:"include",headers:s};r!==void 0&&(s.set("Content-Type","application/json"),i.body=JSON.stringify(r));for(const a of this.middlewares)a({headers:s,init:i});const o=await fetch(`${this.baseURL}${n}`,i);if(!o.ok){const a=await o.json().catch(()=>{});throw new Ta(o.status,`HTTP ${o.status} sur ${n}`,a)}if(o.status!==204){if((o.headers.get("Content-Type")||"").includes("html"))throw new Ta(o.status,`Page HTML reçue sur ${n} : API non atteinte (VITE_API_BASE_URL ?)`);try{return await o.json()}catch{throw new Ta(o.status,`Réponse illisible sur ${n} : API non atteinte (VITE_API_BASE_URL ?)`)}}}}const Er=new v3(yn.API_BASE_URL);Er.use(({headers:e})=>{const t=typeof document<"u"&&document.documentElement.lang||"fr";e.set("Accept-Language",t)});function ax(e){if(!e||typeof e!="object")return null;const t=e;return typeof t.amount=="number"&&typeof t.currency=="string"?{amount:t.amount,currency:t.currency}:null}function x3(e){return typeof e=="number"?{amount:e,currency:"EUR"}:null}function lx(e){return{slug:String(e.slug??""),title:String(e.title??e.name??e.nom??""),category:e.category??e.categorie??"general",status:e.status??(e.active===!1?"inactive":"active"),seasonal:!!e.seasonal,redirectTo:e.redirectTo??null,code:e.code??null,price:ax(e.price)??x3(e.price_cents),compareAtPrice:ax(e.compareAtPrice),emoji:e.emoji??null,badge:e.badge??null,description:e.description??null,seo:e.seo??null}}class w3{async list(t){const n=await Er.get("/products/",{status:t==null?void 0:t.status,category:t==null?void 0:t.category});return(Array.isArray(n)?n:n.data??n.results??[]).map(lx)}async getBySlug(t){try{const n=await Er.get(`/products/${encodeURIComponent(t)}`);return lx(n.data)}catch(n){if(n instanceof Ta&&n.status===404)return null;throw n}}}const b3={mouton:"mouton","don-libre":"don_libre","frais-paiement":"frais_paiement",parrainage:"parrainage",fidya:"fidya",cheveux:"cheveux","orphelins-once":"colis_orphelins_once","orphelins-monthly":"colis_orphelins_monthly","aqiqa-boy":"aqiqa_garcon","aqiqa-girl":"aqiqa_fille",oranger:"oranger",passion:"fruit_passion","upsell-passion":"fruit_passion",manguier:"manguier",bananier:"bananier",dattier:"dattier","pack-couple":"pack_couple","pack-petite-famille":"pack_petite_famille","pack-famille-nombreuse":"pack_famille_nombreuse","pack-groupe":"pack_groupe","pack-foret":"pack_foret","colis-petit-once":"colis_petit_once","colis-petit-monthly":"colis_petit_monthly","colis-standard-once":"colis_standard_once","colis-standard-monthly":"colis_standard_monthly","colis-maxi-once":"colis_maxi_once","colis-maxi-monthly":"colis_maxi_monthly"};function cp(e){return(e.id??"").split("#")[0]}function S3(e,t){const n=cp(e);switch(e.slug){case"puits":return t==="installments"?"puits_4x":"puits_once";case"omra-procuration":return"omra_procuration";case"abonnement":return"abonnement_kebchi"}return n.startsWith("omra-")?"omra_procuration":n?b3[n]??null:null}function C3(e,t,n){const r=t.meta??{},s=i=>Array.from({length:n},()=>({...i}));if(t.slug==="omra-procuration"||cp(t).startsWith("omra-")){const i=r.situation==="incapacite"?"incapacite":"defunt",o=r.sexe==="female"?"female":"male";return s({beneficiary_name:(r.beneficiaire??"").trim()||"Non précisé",beneficiary_stat:i,beneficiary_sex:o})}switch(e.family){case"tree":{const i=(r.destinataires??r.destinataire??"Anonyme").split(" | ");return Array.from({length:n},(o,a)=>({procuration_name:(i[a]??i[0]??"Anonyme").trim()||"Anonyme"}))}case"sheep":{const i=(r.procuration??"").split(" | ");return Array.from({length:n},(o,a)=>({procuration_name:(i[a]??i[0]??"").trim()||"Anonyme"}))}case"aqiqa":{const i=cp(t)==="aqiqa-boy"?"garcon":"fille",o=String(r.moment??"").toLowerCase().startsWith("ap")?"apres":"avant";return s({child_first_name:(r.enfant??"").trim(),procuration_name:(r.parent??"").trim(),aqiqa_date:r.naissance??"",aqiqa_genre:i,aqiqa_timing:o})}case"well":return s({procuration_name:(r.plaque??"").trim()||"Sans mention"});case"fidya":return s({nbr_jours_nj:1});case"hair":return s({nbr_gramme_cheveux:1});case"kplus":return s({allocation_mosques:Number(r.alloc_mosques??20),allocation_trees:Number(r.alloc_trees??20),allocation_wells:Number(r.alloc_wells??20),allocation_food_packs:Number(r.alloc_food_packs??20),allocation_orphans:Number(r.alloc_orphans??20)});case"pack":{const i=String(r.destinataires??"").trim();if(i){const a=i.split(" | ").map(l=>({procuration_name:l.trim()||"Anonyme"}));return Array.from({length:n},()=>a).flat()}return{procuration_name:String(r.destinataire??"").trim()||"Anonyme"}}default:return}}
84function E3(e){return e.is_free_donation||e.family==="kplus"}const k3=yg({orderId:Re(),clientSecret:Re().nullable(),status:tC(["requires_payment","succeeded"]),order_code:Re().nullish()});class _3{constructor(){Lr(this,"catalogByCode",null)}loadCatalog(){return this.catalogByCode||(this.catalogByCode=Er.get("/products/").then(t=>{const n=(Array.isArray(t)?t:t.results)??[];if(!Array.isArray(n)||n.length===0)throw new Error("Catalogue backend vide ou illisible (GET /products/).");const r=new Map;for(const s of n)r.set(s.code,s);return r}).catch(t=>{throw this.catalogByCode=null,t})),this.catalogByCode}async createSession(t){var o;const n=t.lines.find(a=>a.slug==="cagnotte");if(n){const a=await Er.post("/checkout/",{fundraising:{campaign_slug:(o=n.meta)==null?void 0:o.cagnotte,amount_cents:n.unitPrice.amount},return_url:this.returnUrl(),customer:t.customer,turnstile_token:t.turnstileToken});return this.toSession(a)}const r=await this.loadCatalog(),s=t.lines.map(a=>{const l=S3(a,t.mode),u=l?r.get(l):void 0;if(!u)throw new Error(`Produit backend introuvable pour la ligne « ${a.id??a.slug} ». Ajoute la correspondance dans productMapping.ts (CART_ID_TO_BACKEND_CODE).`);const c={product_id:u.id,quantity:a.quantity,slug:a.slug};E3(u)&&(c.amount_cents=a.unitPrice.amount);const d=C3(u,a,a.quantity);return d&&(c.metadata=d),c}),i=await Er.post("/checkout/",{items:s,return_url:this.returnUrl(),customer:t.customer,turnstile_token:t.turnstileToken});return this.toSession(i)}toSession(t){const n=k3.parse(t);return{orderId:n.orderId,clientSecret:n.clientSecret,status:n.status,orderCode:n.order_code??void 0}}returnUrl(){return`${typeof window<"u"?window.location.origin:""}/don/merci?session_id={CHECKOUT_SESSION_ID}`}}const dp="kb_visiteur";function T3(){if(typeof document>"u")return{};const e=Object.fromEntries(document.cookie.split("; ").map(t=>[t.slice(0,t.indexOf("=")),t.slice(t.indexOf("=")+1)]));return Object.fromEntries([["fbp","_fbp"],["fbc","_fbc"],["ttp","_ttp"]].flatMap(([t,n])=>e[n]?[[t,e[n]]]:[]))}function P3(){try{return localStorage.getItem(dp)??void 0}catch{return}}const N3=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","gbraid","wbraid","dclid","fbclid","ttclid","msclkid","twclid","li_fat_id","sccid","epik"];function A3(){const e=new URLSearchParams(window.location.search??"");return Object.fromEntries(N3.flatMap(t=>e.get(t)?[[t,e.get(t)]]:[]))}class R3{async ouvrirLien(t,n){try{const r=await Er.get(`/marketing/t/${encodeURIComponent(t)}/`,n);return r!=null&&r.visiteur&&localStorage.setItem(dp,r.visiteur),(r==null?void 0:r.target_url)??null}catch{return null}}async track(t){try{const n={...A3(),...t.properties},r=await Er.post("/marketing/events/",[{type:t.name,page:window.location.pathname,metadata:Object.keys(n).length?n:void 0,visiteur:P3(),...T3()}]);r!=null&&r.visiteur&&localStorage.setItem(dp,r.visiteur)}catch{}}}const js=e=>({amount:e,currency:"EUR"}),ux=[{slug:"arbre-fruitier",title:"Planter un arbre fruitier",category:"arbre",status:"active",seasonal:!1,redirectTo:null,code:"ARB",price:js(900),compareAtPrice:null,emoji:"🌳",badge:"Le plus offert",description:"Un arbre fruitier planté pour une famille démunie.",seo:null},{slug:"puits",title:"Faire construire un puits",category:"eau",status:"active",seasonal:!1,redirectTo:null,code:"PUI",price:js(89900),compareAtPrice:null,emoji:"💧",badge:null,description:"Accès à l'eau potable pour tout un village.",seo:null},{slug:"mouton-afrique",title:"Offrir un mouton (Afrique)",category:"mouton",status:"active",seasonal:!0,redirectTo:null,code:"MOUA",price:js(12e3),compareAtPrice:js(13500),emoji:"🐑",badge:"Aïd",description:"Un sacrifice distribué aux familles les plus démunies.",seo:null},{slug:"colis-alimentaire",title:"Colis alimentaire",category:"alimentaire",status:"active",seasonal:!1,redirectTo:null,code:"COL",price:js(3e3),compareAtPrice:null,emoji:"🍚",badge:null,description:"De quoi nourrir une famille pour un mois.",seo:null},{slug:"orphelins",title:"Soutenir des orphelins",category:"orphelins",status:"active",seasonal:!1,redirectTo:null,code:"ORP",price:js(5e3),compareAtPrice:null,emoji:"🧡",badge:null,description:"Un soutien direct aux orphelins.",seo:null},{slug:"village-ramadan",title:"Construire un village",category:"village",status:"inactive",seasonal:!0,redirectTo:null,code:"VIL",price:js(5e4),compareAtPrice:null,emoji:"🏘️",badge:null,description:"Campagne saisonnière (actuellement hors saison).",seo:null}],dC={slug:"source-d-espoir",badge:"💧 Cagnotte Puits",titre:"Source Espoir",lead:"Ensemble, construisons un puits pour offrir l'eau potable à une communauté entière. Chaque contribution compte, pas de minimum requis.",image:"https://cdn.kebchi.fr/site_kebchi/general/action-puits.png",imageAlt:"Puits Kebchi",objectif:899,collecte:587,donateurs:42,derniers:[]},fp={"source-espoir":dC},cx=(e=150)=>new Promise(t=>setTimeout(t,e));class I3{async list(t){await cx();const n=(t==null?void 0:t.status)??"active";return ux.filter(r=>r.status===n&&(!(t!=null&&t.category)||r.category===t.category))}async getBySlug(t){return await cx(),ux.find(n=>n.slug===t)??null}}let L3=14266770;class j3{async createSession(t){const n=L3+=1;return{orderId:`A2501${n}`,clientSecret:null,status:"succeeded",orderCode:`KB-DEMO${n}`}}}class O3{async getBySlug(t){return fp[t]??dC}}
84const D3={"source-espoir":"source-d-espoir"};class M3{async getBySlug(t){const n=D3[t]??t;let r;try{r=await Er.get(`/cagnottes/publiques/${encodeURIComponent(n)}/`)}catch(i){if(i instanceof Ta&&i.status===404)return null;throw i}const s=fp[t]??fp["source-espoir"];return{...s,slug:r.slug,titre:r.titre||s.titre,objectif:r.objectif_cents/100,collecte:r.collecte_cents/100,donateurs:r.donateurs,ouverte:r.ouverte,derniers:r.derniers.map(i=>({nom:i.prenom,montant:i.montant_cents/100,time:i.le?new Date(i.le).toLocaleDateString("fr-FR"):""}))}}}class V3{async track(t){}async ouvrirLien(t){return"/"}}const F3={products:new I3,checkout:new j3,cagnotte:new O3,tracking:new V3},vg=yn.API_DRIVER==="rest"?{products:new w3,checkout:new _3,cagnotte:new M3,tracking:new R3}:F3,Vs={meta:yn.META_PIXEL_ID,tiktok:yn.TIKTOK_PIXEL_ID,gtm:yn.GTM_ID,google:yn.GOOGLE_TAG_IDS},dx=Vs.google.filter(e=>e.startsWith("AW-")),z3=yn.GOOGLE_CONVERSIONS;let ol=!1;function kr(e){try{e()}catch{}}function U3(){ol||!window.kebchiRegies||!Vs.meta&&!Vs.tiktok&&!Vs.gtm&&!Vs.google.length||(ol=!0,kr(()=>{var e;return(e=window.kebchiRegies)==null?void 0:e.charger(Vs)}))}function $3(){ol&&(kr(()=>{var e;return(e=window.fbq)==null?void 0:e.call(window,"track","PageView")}),kr(()=>{var e;return(e=window.ttq)==null?void 0:e.page()}),dx.length&&kr(()=>{var e;return(e=window.gtag)==null?void 0:e.call(window,"event","page_view",{send_to:dx})}))}const B3={ViewContent:"view_item",AddToCart:"add_to_cart",InitiateCheckout:"begin_checkout"};function W3(e,t,n){if(!ol)return;const r=(n??t.reduce((s,i)=>s+(i.prixCents??0)*(i.quantite??1),0))/100;kr(()=>{var s;return(s=window.fbq)==null?void 0:s.call(window,"track",e,{content_ids:t.map(i=>i.id),contents:t.map(i=>({id:i.id,quantity:i.quantite??1})),content_type:"product",value:r,currency:"EUR"})}),kr(()=>{var s;return(s=window.ttq)==null?void 0:s.track(e,{contents:t.map(i=>({content_id:i.id,content_name:i.nom,quantity:i.quantite??1,price:(i.prixCents??0)/100})),content_type:"product",value:r,currency:"EUR"})}),fC(B3[e],{currency:"EUR",value:r,items:t.map(K3)})}function H3(e){const t=(e==null?void 0:e.replace(/[\s.-]/g,""))??"";if(/^\+\d{10,14}$/.test(t))return t;if(/^0[1-9]\d{8}$/.test(t))return`+33${t.slice(1)}`}function j6(e,t,n={}){var a;if(!ol)return;const r=`kb_achat_signale:${e}`;try{if(sessionStorage.getItem(r))return;sessionStorage.setItem(r,"1")}catch{}const s=(a=n.email)==null?void 0:a.trim().toLowerCase(),i=H3(n.tel);(s||i)&&kr(()=>{var l;return(l=window.gtag)==null?void 0:l.call(window,"set","user_data",{...s&&{email:s},...i&&{phone_number:i}})});const o={transaction_id:e,currency:"EUR",value:t/100};z3.forEach(l=>kr(()=>{var u;return(u=window.gtag)==null?void 0:u.call(window,"event","conversion",{send_to:l,...o})})),fC("purchase",o)}function K3(e){return{item_id:e.id,item_name:e.nom,price:(e.prixCents??0)/100,quantity:e.quantite??1}}function fC(e,t){Vs.gtm&&kr(()=>{window.dataLayer=window.dataLayer??[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:e,ecommerce:t})})}function G3(e,t){return(e.mode??"oneshot")===(t.mode??"oneshot")&&e.unitPrice.amount===t.unitPrice.amount&&e.unitPrice.currency===t.unitPrice.currency&&JSON.stringify(e.meta??{})===JSON.stringify(t.meta??{})}function fu(e){return Array.isArray(e)?e.filter(t=>{var n;return typeof t=="object"&&t!==null&&typeof t.id=="string"&&typeof t.name=="string"&&typeof t.quantity=="number"&&t.quantity>0&&typeof t.unitPrice=="object"&&typeof((n=t.unitPrice)==null?void 0:n.amount)=="number"}):[]}const xg=e=>e==="subscription"||e==="installments";function hC(e,t){const n=e.find(r=>r.id===t.id);if(n&&G3(n,t))return e.map(r=>r.id===t.id?{...r,quantity:r.quantity+t.quantity}:r);if(n){let r=2;for(;e.some(s=>s.id===`${t.id}#${r}`);)r+=1;return[...e,{...t,id:`${t.id}#${r}`}]}return[...e,t]}function fx(e,t=[]){return[...e,...t].filter(n=>!xg(n.mode??"oneshot")).reduce(hC,[])}function Mu(e,t,n){n<=0||(e==="ajout_panier"&&W3("AddToCart",[{id:t.slug,nom:t.name,prixCents:t.unitPrice.amount,quantite:n}]),vg.tracking.track({name:e,properties:{slug:t.slug,nom:t.name,quantite:n,montant_cents:t.unitPrice.amount,mode:t.mode??"oneshot"}}))}const wg=lC()(cC((e,t)=>({items:[],add:(n,r=1)=>{const s={...n,mode:n.mode??"oneshot",unitPrice:{...n.unitPrice,amount:Math.round(n.unitPrice.amount)}};xg(s.mode)||(Mu("ajout_panier",s,r),e({items:hC(t().items,{...s,quantity:r})}))},setQuantity:(n,r)=>{const s=t().items.find(o=>o.id===n);if(!s)return;const i=Math.max(r,0)-s.quantity;Mu(i>0?"ajout_panier":"retrait_panier",s,Math.abs(i)),e(o=>({items:r<=0?o.items.filter(a=>a.id!==n):o.items.map(a=>a.id===n?{...a,quantity:r}:a)}))},remove:n=>{const r=t().items.find(s=>s.id===n);r&&Mu("retrait_panier",r,r.quantity),e(s=>({items:s.items.filter(i=>i.id!==n)}))},clear:()=>e({items:[]}),clearModes:n=>e(r=>({items:r.items.filter(s=>!n.includes(s.mode??"oneshot"))}))}),{name:"kebchi-cart",version:4,migrate:e=>{const t=e;return{items:fx(fu(t==null?void 0:t.items),fu(t==null?void 0:t.misDeCote))}},partialize:e=>({items:e.items}),merge:(e,t)=>
84{const n=e;return{...t,items:fx(fu(n==null?void 0:n.items),fu(n==null?void 0:n.misDeCote))}}})),O6=e=>e.mode??"oneshot",q3=()=>wg(e=>e.items.reduce((t,n)=>t+n.quantity,0)),Q3=()=>wg(e=>e.items.reduce((t,n)=>t+n.unitPrice.amount*n.quantity,0));function bg(){return typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches?"instant":"smooth"}function D6(e,t="start"){for(const n of e){const r=document.getElementById(n);if(r){r.scrollIntoView({behavior:bg(),block:t});return}}}const hp=16;function Z3(e,t,n="nearest"){const{scrollY:r,height:s,maskedTop:i,safeTop:o}=t,a=s-i,l=e.bottom-e.top,u=Math.max(0,Math.round(r+e.top-o));if(n==="start")return Math.abs(u-r)<1?null:u;if(e.top>=i&&e.bottom<=s)return null;if(n==="center"){const d=r+e.top-i-(a-l)/2;return Math.max(0,Math.round(l>a?r+e.top-o:d))}return e.top<i?u:l>a-hp?e.top<=i+a/2?null:u:Math.max(0,Math.round(r+e.bottom-s+hp))}function Y3(){const e=document.querySelector("[data-site-navbar]");return!e||getComputedStyle(e).position!=="fixed"?0:Math.max(0,Math.round(e.getBoundingClientRect().bottom))}function pp(e,t="nearest",n=bg()){if(!e)return;const r=Y3(),s=parseFloat(getComputedStyle(e).scrollMarginTop)||0,i=e.getBoundingClientRect(),o=Z3(i,{scrollY:window.scrollY,height:window.innerHeight,maskedTop:r,safeTop:Math.max(r+hp,s)},t);o!==null&&window.scrollTo({top:o,behavior:n})}function X3(e){e&&(e.focus({preventScroll:!0}),pp(e,"center"))}const an={name:80,email:120,tel:20,address:120,city:80,cp:5},J3=/[^\p{L}\p{M}\p{N}\s'’.-]/gu,pC=/[<>{}[\]\\^~|`\u0000-\u001f\u007f]/g;function M6(e){return e.replace(J3,"")}function V6(e){return e.replace(pC,"")}function F6(e){return e.replace(/\D/g,"")}function z6(e){return e.replace(pC,"").replace(/\s/g,"")}function U6(e,t){if(!(e instanceof HTMLFormElement))return;const n=Array.from(e.elements).find(r=>r instanceof HTMLElement&&(t.includes(r.id)||t.includes(r.getAttribute("name")??"")));X3(n??null)}const hf=/^[\p{L}\p{M}\p{N}\s'’.-]+$/u,e5=/^[^<>{}[\]\\^~|`]+$/,$6=yg({prenom:Re().trim().min(1,"Prénom requis").max(an.name,`Prénom trop long (${an.name} caractères max)`).regex(hf,"Caractères non autorisés"),nom:Re().trim().min(1,"Nom requis").max(an.name,`Nom trop long (${an.name} caractères max)`).regex(hf,"Caractères non autorisés"),tel:Re().trim().min(1,"Téléphone requis").transform(e=>e.replace(/[\s.-]/g,"")).refine(e=>/^\+[1-9]\d{6,14}$/.test(e)||/^0[1-9]\d{8}$/.test(e),"Numéro de téléphone invalide"),email:Re().trim().min(1,"Email requis").max(an.email,`Email trop long (${an.email} caractères max)`).email("Email invalide"),email2:Re().trim().min(1,"Confirmez l'email").max(an.email,`Email trop long (${an.email} caractères max)`).email("Email invalide"),adresse:Re().trim().min(1,"Adresse requise").max(an.address,`Adresse trop longue (${an.address} caractères max)`).regex(e5,"Caractères non autorisés"),ville:Re().trim().min(1,"Ville requise").max(an.city,`Ville trop longue (${an.city} caractères max)`).regex(hf,"Caractères non autorisés"),cp:Re().trim().regex(/^\d{5}$/,"Code postal invalide (5 chiffres)"),terms:k4(!0,{errorMap:()=>({message:"Veuillez accepter les conditions pour continuer."})})}).refine(e=>e.email===e.email2,{path:["email2"],message:"Les emails ne correspondent pas"}),hx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,px=M2,mC=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return px(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const h=hx(c)||hx(d);return s[u][h]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,h]=c;return h===void 0||(u[d]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:h,...m}=c;return Object.entries(m).every(v=>{let[x,b]=v;return Array.isArray(b)?b.includes({...i,...a}[x]):{...i,...a}[x]===b})?[...u,d,h]:u},[]);return px(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},gC=mC("inline-flex items-center justify-center gap-2 font-bold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-purple disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{amber:"bg-gradient-to-r from-brand-amberLight to-brand-amber text-primary shadow-[0_0_15px_rgba(var(--kc-rgb-amber-light),0.3)] hover:brightness-105",primary:"bg-primary text-white shadow-md hover:bg-primary-hover",white:"bg-white text-primary shadow-lg hover:bg-surface-purple-light",outline:"border-2 border-primary text-primary hover:bg-surface-indigo",ghost:"text-primary hover:bg-surface-indigo",gradient:"border-b-4 border-indigo-800 bg-gradient-to-r from-purple-600 to-indigo-600 text-white transition-all hover:from-purple-500 hover:to-indigo-500"},size:{sm:"rounded-lg px-3 py-1.5 text-xs",md:"rounded-xl px-5 py-2.5 text-sm",lg:"rounded-xl px-6 py-3 text-base",xl:"rounded-xl px-8 py-4 text-base"}},defaultVariants:{variant:"primary",size:"md"}}),t5=k.forwardRef(({className:e,variant:t,size:n,type:r="button",...s},i)=>p.jsx("button",{ref:i,type:r,className:G(gC({variant:t,size:n}),e),...s}));t5.displayName="Button";var yC={exports:{}},n5="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",r5=n5,s5=r5;function vC(){}function xC(){}xC.resetWarningCache=vC;var i5=function(){function e(r,s,i,o,a,l){if(l!==s5){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
84:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xC,resetWarningCache:vC};return n.PropTypes=n,n};yC.exports=i5();var o5=yC.exports;const Ue=Wc(o5);function mx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a5(e){if(Array.isArray(e))return e}function wC(e,t,n){return(t=h5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l5(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,s,i,o,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,s=c}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw s}}return a}}function u5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function yx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gx(Object(n),!0).forEach(function(r){wC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c5(e,t){if(e==null)return{};var n,r,s=d5(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function d5(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function bC(e,t){return a5(e)||l5(e,t)||p5(e,t)||u5()}function f5(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h5(e){var t=f5(e,"string");return typeof t=="symbol"?t:t+""}function mp(e){"@babel/helpers - typeof";return mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mp(e)}function p5(e,t){if(e){if(typeof e=="string")return mx(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mx(e,t):void 0}}var St=function(t,n,r){var s=!!r,i=ae.useRef(r);ae.useEffect(function(){i.current=r},[r]),ae.useEffect(function(){if(!s||!t)return function(){};var o=function(){if(i.current)return i.current.apply(i,arguments)};return t.on(n,o),function(){t.off(n,o)}},[s,n,t,i])},gp=function(t){var n=ae.useRef(t);return ae.useEffect(function(){n.current=t},[t]),n.current},Io=function(t){return t!==null&&mp(t)==="object"},m5=function(t){return Io(t)&&typeof t.then=="function"},g5=function(t){return Io(t)&&typeof t.elements=="function"&&typeof t.createToken=="function"&&typeof t.createPaymentMethod=="function"&&typeof t.confirmCardPayment=="function"},vx="[object Object]",y5=function e(t,n){if(!Io(t)||!Io(n))return t===n;var r=Array.isArray(t),s=Array.isArray(n);if(r!==s)return!1;var i=Object.prototype.toString.call(t)===vx,o=Object.prototype.toString.call(n)===vx;if(i!==o)return!1;if(!i&&!r)return t===n;var a=Object.keys(t),l=Object.keys(n);if(a.length!==l.length)return!1;for(var u={},c=0;c<a.length;c+=1)u[a[c]]=!0;for(var d=0;d<l.length;d+=1)u[l[d]]=!0;var h=Object.keys(u);if(h.length!==a.length)return!1;var m=t,v=n,x=function(y){return e(m[y],v[y])};return h.every(x)},v5=function(t,n,r){return Io(t)?Object.keys(t).reduce(function(s,i){var o=!Io(n)||!y5(t[i],n[i]);return r.includes(i)?(o&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),s):o?yx(yx({},s||{}),{},wC({},i,t[i])):s},null):null},SC="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",xx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:SC;if(t===null||g5(t))return t;throw new Error(n)},x5=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:SC;if(m5(t))return{tag:"async",stripePromise:Promise.resolve(t).then(function(s){return xx(s,n)})};var r=xx(t,n);return r===null?{tag:"empty"}:{tag:"sync",stripe:r}},w5=function(t){!t||!t._registerWrapper||!t.registerAppInfo||(t._registerWrapper({name:"react-stripe-js",version:"6.7.0"}),t.registerAppInfo({name:"react-stripe-js",version:"6.7.0",url:"https://stripe.com/docs/stripe-js/react"}))},CC=ae.createContext(null);CC.displayName="ElementsContext";var b5=function(t,n){if(!t)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(n," in an <Elements> provider."));return t};Ue.any,Ue.object;Ue.func.isRequired;var EC=ae.createContext(null);EC.displayName="CheckoutContext";var wx=function(t){var n=ae.useContext(EC),r=ae.useContext(CC);if(n){if(r)throw new Error("You cannot wrap the part of your app that ".concat(t," in both a checkout provider and <Elements> provider."));return n}else return b5(r,t)},S5=["mode"],C5=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Ye=function(t,n,r){var s="".concat(C5(t),"Element"),i=function(u){var c=u.id,d=u.className,h=u.options,m=h===void 0?{}:h,v=u.onBlur,x=u.onFocus,b=u.onReady,y=u.onChange,g=u.onEscape,w=u.onClick,S=u.onLoadError,_=u.onLoaderStart,A=u.onNetworksChange,N=u.onConfirm,E=u.onCancel,V=u.onShippingAddressChange,L=u.onShippingRateChange,q=u.onSavedPaymentMethodRemove,ce=u.onSavedPaymentMethodUpdate,je=u.onAvailablePaymentMethodsChange,de
85=wx("mounts <".concat(s,">")),ue="elements"in de?de.elements:null,ne="checkoutState"in de?de.checkoutState:null,Fe=(ne==null?void 0:ne.type)==="success"||(ne==null?void 0:ne.type)==="loading"?ne.sdk:null,j=ae.useState(null),z=bC(j,2),R=z[0],oe=z[1],fe=ae.useRef(null),En=ae.useRef(null);St(R,"blur",v),St(R,"focus",x),St(R,"escape",g),St(R,"click",w),St(R,"loaderror",S),St(R,"loaderstart",_),St(R,"networkschange",A),St(R,"confirm",N),St(R,"cancel",E),St(R,"shippingaddresschange",V),St(R,"shippingratechange",L),St(R,"savedpaymentmethodremove",q),St(R,"savedpaymentmethodupdate",ce),St(R,"availablepaymentmethodschange",je),St(R,"change",y);var Pt;b&&(t==="expressCheckout"?Pt=b:Pt=function(){b(R)}),St(R,"ready",Pt),ae.useLayoutEffect(function(){if(fe.current===null&&En.current!==null&&(ue||Fe)){var te=null;if(Fe){var xt=Fe,Dl=Fe;switch(t){case"paymentForm":te=Dl.createForm(m);break;case"payment":te=xt.createPaymentElement(m);break;case"address":if("mode"in m){var Ge=m.mode,$o=c5(m,S5);if(Ge==="shipping")te=xt.createShippingAddressElement($o);else if(Ge==="billing")te=xt.createBillingAddressElement($o);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":te=xt.createExpressCheckoutElement(m);break;case"currencySelector":te=Fe.createCurrencySelectorElement();break;case"taxId":te=xt.createTaxIdElement(m);break;case"contactDetails":te=xt.createContactDetailsElement();break;default:throw new Error("<".concat(s,"> is not supported inside a checkout provider. Use an <Elements> provider instead."))}}else ue&&(te=ue.create(t,m));fe.current=te,oe(te),te&&te.mount(En.current)}},[ue,Fe,m]);var ze=gp(m);return ae.useEffect(function(){if(fe.current){var te=v5(m,ze,["paymentRequest"]);te&&"update"in fe.current&&fe.current.update(te)}},[m,ze]),ae.useLayoutEffect(function(){return function(){if(fe.current&&typeof fe.current.destroy=="function")try{fe.current.destroy(),fe.current=null}catch{}}},[]),ae.createElement("div",{id:c,className:d,ref:En})},o=function(u){wx("mounts <".concat(s,">"));var c=u.id,d=u.className;return ae.createElement("div",{id:c,className:d})},a=n?o:i;return a.propTypes={id:Ue.string,className:Ue.string,onChange:Ue.func,onBlur:Ue.func,onFocus:Ue.func,onReady:Ue.func,onEscape:Ue.func,onClick:Ue.func,onLoadError:Ue.func,onLoaderStart:Ue.func,onNetworksChange:Ue.func,onConfirm:Ue.func,onCancel:Ue.func,onShippingAddressChange:Ue.func,onShippingRateChange:Ue.func,onSavedPaymentMethodRemove:Ue.func,onSavedPaymentMethodUpdate:Ue.func,onAvailablePaymentMethodsChange:Ue.func,options:Ue.object},a.displayName=s,a.__elementType=t,a},Ke=typeof window>"u",Sg=ae.createContext(null);Sg.displayName="EmbeddedCheckoutProviderContext";var kC=function(){var t=ae.useContext(Sg);if(!t)throw new Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return t},E5="Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",B6=function(t){var n=t.stripe,r=t.options,s=t.children,i=ae.useMemo(function(){return x5(n,E5)},[n]),o=ae.useRef(null),a=ae.useRef(null),l=ae.useState({embeddedCheckout:null}),u=bC(l,2),c=u[0],d=u[1];ae.useEffect(function(){if(!(a.current||o.current)){var v=function(b){a.current||o.current||(a.current=b,o.current=a.current.createEmbeddedCheckoutPage(r).then(function(y){d({embeddedCheckout:y})}))};i.tag==="async"&&!a.current&&(r.clientSecret||r.fetchClientSecret)?i.stripePromise.then(function(x){x&&v(x)}):i.tag==="sync"&&!a.current&&(r.clientSecret||r.fetchClientSecret)&&v(i.stripe)}},[i,r,c,a]),ae.useEffect(function(){return function(){c.embeddedCheckout?(o.current=null,c.embeddedCheckout.destroy()):o.current&&o.current.then(function(){o.current=null,c.embeddedCheckout&&c.embeddedCheckout.destroy()})}},[c.embeddedCheckout]),ae.useEffect(function(){w5(a)},[a]);var h=gp(n);ae.useEffect(function(){h!==null&&h!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")},[h,n]);var m=gp(r);return ae.useEffect(function(){if(m!=null){if(r==null){console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them.");return}r.clientSecret===void 0&&r.fetchClientSecret===void 0&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),m.clientSecret!=null&&r.clientSecret!==m.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),m.fetchClientSecret!=null&&r.fetchClientSecret!==m.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),m.onComplete!=null&&r.onComplete!==m.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),m.onShippingDetailsChange!=null&&r.onShippingDetailsChange!==m.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),m.onLineItemsChange!=null&&r.onLineItemsChange!==m.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")}},[m,r]),ae.createElement(Sg.Provider,{value:c},s)},k5=function(t){var n=t.id,r=t.className,s=kC(),i=s.embeddedCheckout,o=ae.useRef(!1),a=ae.useRef(null);return ae.useLayoutEffect(function(){return!o.current&&i&&a.current!==null&&(i.mount(a.current),o.current=!0),function(){if(o.current&&i)try{i.unmount(),o.current=!1}catch{}}},[i]),ae.createElement("div",{ref:a,id:n,className:r})},_5=function(t){var n=t.id,r=t.className;return kC(),ae.createElement("div",{id:n,className:r})},W6=Ke?_5:k5;Ye("auBankAccount",Ke);Ye("card",Ke);Ye("cardNumber",Ke);Ye("cardExpiry",Ke);Ye("cardCvc",Ke);Ye("currencySelector",Ke);Ye("iban",Ke);Ye("payment",Ke);Ye("expressCheckout",Ke);Ye("paymentRequestButton",Ke);Ye("linkAuthentication",Ke);Ye("contactDetails",Ke);Ye("address",Ke);Ye("shippingAddress",Ke);Ye("paymentMethodMessaging",Ke);Ye("taxId",Ke);
85Ye("issuingCardNumberDisplay",Ke);Ye("issuingCardCvcDisplay",Ke);Ye("issuingCardExpiryDisplay",Ke);Ye("issuingCardPinDisplay",Ke);Ye("issuingCardCopyButton",Ke);function Vu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vu=function(t){return typeof t}:Vu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vu(e)}var _C="dahlia",T5=function(t){return t===3?"v3":t},TC="https://js.stripe.com",P5="".concat(TC,"/").concat(_C,"/stripe.js"),N5=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,A5=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;var R5=function(t){return N5.test(t)||A5.test(t)},I5=function(){for(var t=document.querySelectorAll('script[src^="'.concat(TC,'"]')),n=0;n<t.length;n++){var r=t[n];if(R5(r.src))return r}return null},bx=function(t){var n="",r=document.createElement("script");r.src="".concat(P5).concat(n);var s=document.head||document.body;if(!s)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return s.appendChild(r),r},L5=function(t,n){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"9.9.0",startTime:n})},ea=null,hu=null,pu=null,j5=function(t){return function(n){t(new Error("Failed to load Stripe.js",{cause:n}))}},O5=function(t,n){return function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))}},D5=function(t){return ea!==null?ea:(ea=new Promise(function(n,r){if(typeof window>"u"||typeof document>"u"){n(null);return}if(window.Stripe){n(window.Stripe);return}try{var s=I5();if(!(s&&t)){if(!s)s=bx(t);else if(s&&pu!==null&&hu!==null){var i;s.removeEventListener("load",pu),s.removeEventListener("error",hu),(i=s.parentNode)===null||i===void 0||i.removeChild(s),s=bx(t)}}pu=O5(n,r),hu=j5(r),s.addEventListener("load",pu),s.addEventListener("error",hu)}catch(o){r(o);return}}),ea.catch(function(n){return ea=null,Promise.reject(n)}))},M5=function(t,n,r){if(t===null)return null;var s=n[0];if(typeof s!="string")throw new Error("Expected publishable key to be of type string, got type ".concat(Vu(s)," instead."));var i=s.match(/^pk_test/),o=T5(t.version),a=_C;i&&o!==a&&console.warn("Stripe.js@".concat(o," was loaded on the page, but @stripe/stripe-js@").concat("9.9.0"," expected Stripe.js@").concat(a,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var l=t.apply(void 0,n);return L5(l,r),l},ta,PC=!1,NC=function(){return ta||(ta=D5(null).catch(function(t){return ta=null,Promise.reject(t)}),ta)};Promise.resolve().then(function(){return NC()}).catch(function(e){PC||console.warn(e)});var V5=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];PC=!0;var s=Date.now();return NC().then(function(i){return M5(i,n,s)})};const H6=yn.STRIPE_PUBLISHABLE_KEY?V5(yn.STRIPE_PUBLISHABLE_KEY).catch(()=>null):null;function F5({label:e="Chargement…"}){return p.jsxs("div",{role:"status","aria-live":"polite",className:"flex items-center gap-2 text-ink-muted",children:[p.jsx("span",{className:"h-5 w-5 animate-spin rounded-full border-2 border-border border-t-primary","aria-hidden":"true"}),p.jsx("span",{className:"sr-only",children:e})]})}var z5=[["af","93",0,null,"0"],["ax","358",1,["18","4"],"0"],["al","355",0,null,"0"],["dz","213",0,null,"0"],["as","1",5,["684"],"1"],["ad","376"],["ao","244"],["ai","1",6,["264"],"1"],["ag","1",7,["268"],"1"],["ar","54",0,null,"0"],["am","374",0,null,"0"],["aw","297"],["ac","247"],["au","61",0,["4"],"0"],["at","43",0,null,"0"],["az","994",0,null,"0"],["bs","1",8,["242"],"1"],["bh","973"],["bd","880",0,null,"0"],["bb","1",9,["246"],"1"],["by","375",0,null,"8"],["be","32",0,null,"0"],["bz","501"],["bj","229"],["bm","1",10,["441"],"1"],["bt","975"],["bo","591",0,null,"0"],["ba","387",0,null,"0"],["bw","267"],["br","55",0,null,"0"],["io","246"],["vg","1",11,["284"],"1"],["bn","673"],["bg","359",0,null,"0"],["bf","226"],["bi","257"],["kh","855",0,null,"0"],["cm","237"],["ca","1",1,["204","226","236","249","250","257","263","289","306","343","354","365","367","368","382","403","416","418","428","431","437","438","450","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905","942"],"1"],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"],"1"],["cf","236"],["td","235"],["cl","56"],["cn","86",0,null,"0"],["cx","61",2,["4","89164"],"0"],["cc","61",1,["4","89162"],"0"],["co","57",0,null,"0"],["km","269"],["cg","242"],["cd","243",0,null,"0"],["ck","682"],["cr","506"],["ci","225"],["hr","385",0,null,"0"],["cu","53",0,null,"0"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"],"1"],["do","1",2,["809","829","849"],"1"],["ec","593",0,null,"0"],["eg","20",0,null,"0"],["sv","503"],["gq","240"],["er","291",0,null,"0"],["ee","372"],["sz","268"],["et","251",0,null,"0"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0,["4"],"0"],["fr","33",0,null,"0"],["gf","594",0,null,"0"],["pf","689"],["ga","241"],["gm","220"],["ge","995",0,null,"0"],["de","49",0,null,"0"],["gh","233",0,null,"0"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"],"1"],["gp","590",0,null,"0"],["gu","1",15,["671"],"1"],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36",0,null,"06"],["is","354"],["in","91",0,null,"0"],["id","62",0,null,"0"],["ir","98",0,null,"0"],["iq","964",0,null,"0"],["ie","353",0,null,"0"],["im","44",2,["1624","74576","7524","7624","7924"],"0"],["il","972",0,null,"0"],["it","39",0,["3"]],["jm","1",4,["658","876"],"1"],["jp","81",0,null,"0"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962",0,null,"0"],["kz","7",1,["33","7"],"8"],["ke","254",0,null,"0"],["ki","686",0,null,"0"],["xk","383",0,null,"0"],["kw","965"],["kg","996",0,null,"0"],["la","856",0,null,"0"],["lv","371"],["lb","961",0,null,"0"],["ls","266"],["lr","231",0,null,"0"],["ly","218",0,null,"0"],["li","423",0,null,"0"],["lt","370",0,null,"0"],["lu","352"],["mo","853"],["mg","261",0,null,"0"],["mw","265",0,null,"0"],["my","60",0,null,"0"],["mv","960"],["ml","223"],["mt","356"],["mh","692",0,null,"1"],["mq","596",0,null,"0"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373",0,null,"0"],["mc","377",0,null,"0"],["mn","976",0,null,"0"],["me","382",0,null,"0"],["ms","1",16,["664"],"1"],["ma","212",0,["6","7"],"0"],["mz","258"],["mm","95",0,null,"0"],["na","264",0,null,"0"],["nr","674"],["np","977",0,null,"0"],["nl","31",0,null,"0"],["nc","687"],["nz","64",0,null,"0"],["ni","505"],["ne","227"],["ng","234",0,null,"0"],["nu","683"],["nf","672"],["kp","850",0,null,"0"],["mk","389",0,null,"0"],["mp","1",17,["670"],"1"],["no","47",0,["4","9"]],["om","968"],["pk","92",0,null,"0"],["pw","680"],["ps","970",0,null,"0"],["pa","507"],["pg","675"],["py","595",0,null,"0"],["pe","51",0,null,"0"],["ph","63",0,null,"0"],["pl","48"],["pt","351"],["pr","1",3,["787","939"],"1"],["qa","974"],["re","262",0,null,"0"],["ro","40",0,null,"0"],["ru","7",0,["33"],"8"],["rw","250",0,null,"0"],["ws","685"],["sm","378"],["st","239"],["sa","966",0,null,"0"],["sn","221"],["rs","381",0,null,"0"],["sc","248"],["sl","232",0,null,"0"],["sg","65"],["sx","1",21,["721"],"1"],["sk","421",0,null,"0"],["si","386",0,null,"0"],["sb","677"],["so","252",0,null,"0"],["za","27",0,null,"0"],["kr","82",0,null,"0"],["ss","211",0,null,"0"],["es","34"],["lk","94",0,null,"0"],["bl","590",1,null,"0"],["sh","290"],["kn","1",18,["869"],"1"],["lc","1",19,["758"],"1"],["mf","590",2,null,"0"],["pm","508",0,null,"0"],["vc","1",20,["784"],"1"],["sd","249",0,null,"0"],["sr","597"],["sj","47",1,["4","79","9"]],["se","46",0,null,"0"],["ch","41",0,null,"0"],["sy","963",0,null,"0"],["tw","886",0,null,"0"],["tj","992"],["tz","255",0,null,"0"],["th","66",0,null,"0"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"],"1"],["tn","216"],["tr","90",0,null,"0"],["tm","993",0,null,"8"],["tc","1",23,["649"],"1"],["tv","688"],["vi","1",24,["340"],"1"],["ug","256",0,null,"0"],["ua","380",0,null,"0"],["ae","971",0,null,"0"],["gb","44",0,null,"0"],["us","1",0,null,"1"],["uy","598",0,null,"0"],["uz","998"],["vu","678"],["va","39",1,["06698","3"]],["ve","58",0,null,"0"],["vn","84",0,null,"0"],["wf","681"],["eh","212",1,["5288","5289","6","7"],"0"],["ye","967",0,null,"0"],["zm","260",0,null,"0"],["zw","263",0,null,"0"]],Cg=[];for(const e of z5)Cg.push({name:"",iso2:e[0],dialCode:e[1],priority:e[2]||0,areaCodes:e[3]||null,
85nationalPrefix:e[4]||null});var U5=new Set(Cg.map(e=>e.iso2)),Pa=e=>U5.has(e),Fu=Cg,qt={OPEN_COUNTRY_SELECTOR:"open:countryselector",CLOSE_COUNTRY_SELECTOR:"close:countryselector",COUNTRY_CHANGE:"countrychange",INPUT:"input",STRICT_REJECT:"strict:reject"},me={HIDE:"iti__hide",V_HIDE:"iti__v-hide",ARROW_UP:"iti__arrow--up",GLOBE:"iti__globe",FLAG:"iti__flag",LOADING:"iti__loading",COUNTRY_ITEM:"iti__country",HIGHLIGHT:"iti__highlight",STRICT_REJECT_ANIMATION:"iti__strict-reject-animation"},Nt={ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",SPACE:" ",ENTER:"Enter",ESC:"Escape",TAB:"Tab"},Sx={PASTE:"insertFromPaste",DELETE_FORWARD:"deleteContentForward"},Vr={ALPHA_UNICODE:new RegExp("\\p{L}","u"),NON_PLUS_NUMERIC:/[^+0-9]/,NON_PLUS_NUMERIC_GLOBAL:/[^+0-9]/g,HIDDEN_SEARCH_CHAR:/^[a-zA-ZÀ-ÿа-яА-Я ]$/},Cx={SEARCH_DEBOUNCE_MS:100,HIDDEN_SEARCH_RESET_MS:1e3},ur={NARROW_VIEWPORT_WIDTH:500,FALLBACK_SELECTED_COUNTRY_WITH_DIAL_WIDTH:78,FALLBACK_SELECTED_COUNTRY_NO_DIAL_WIDTH:42,INPUT_PADDING_EXTRA_LEFT:6,DROPDOWN_MARGIN:3,FALLBACK_DROPDOWN_HEIGHT:200},AC={NANP:"1"},pf={DIAL_CODE:"44",MOBILE_PREFIX:"7",MOBILE_CORE_LENGTH:10},$5={ISO2:"us"},al={AGGRESSIVE:"AGGRESSIVE",POLITE:"POLITE",OFF:"OFF"},yp=["OFF","DROPDOWN","FULLSCREEN","AUTO"],B5=["E164","INTERNATIONAL","NATIONAL","RFC3966"],da=["FIXED_LINE","MOBILE","FIXED_LINE_OR_MOBILE","TOLL_FREE","PREMIUM_RATE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL","UNKNOWN"],W5=["IS_POSSIBLE","INVALID_COUNTRY_CODE","TOO_SHORT","TOO_LONG","IS_POSSIBLE_LOCAL_ONLY","INVALID_LENGTH"],pd=e=>Object.fromEntries(e.map(t=>[t,t])),_t=pd(B5),zu=pd(da),H5=pd(W5),Ie=pd(yp),Gr={ISO2:"iso2",DIAL_CODE:"dialCode",INSTANCE_ID:"intlTelInputId"},Ee={EXPANDED:"aria-expanded",LABEL:"aria-label",SELECTED:"aria-selected",ACTIVE_DESCENDANT:"aria-activedescendant",HASPOPUP:"aria-haspopup",CONTROLS:"aria-controls",HIDDEN:"aria-hidden",AUTOCOMPLETE:"aria-autocomplete",MODAL:"aria-modal"},K5={selectedCountryAriaLabel:"Change country for phone number, currently selected ${countryName} (${dialCode})",noCountrySelected:"Select country for phone number",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",searchEmptyState:"No results found",searchSummaryAria(e){return e===0?"No results found":e===1?"1 result found":`${e} results found`}}
85,G5=K5,vp=e=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(e).matches,RC=()=>vp(`(max-width: ${ur.NARROW_VIEWPORT_WIDTH}px)`),q5=()=>{if(typeof navigator<"u"&&typeof window<"u"){const e=vp("(max-height: 600px)"),t=vp("(pointer: coarse)");if(RC()||t&&e)return Ie.FULLSCREEN}return Ie.DROPDOWN},Eg={countrySelectorMode:Ie.AUTO,allowedNumberTypes:[zu.MOBILE,zu.FIXED_LINE],allowNumberExtensions:!1,allowPhonewords:!1,containerClass:"",countryNameLocale:"en",countryNameOverrides:{},countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownAlwaysOpen:!1,dropdownParent:null,excludeCountries:null,matchDropdownWidth:!0,formatAsYouType:!0,hiddenInputs:null,uiTranslations:{},initialCountry:"",initialCountryLookup:null,loadUtils:null,numberDisplayFormat:_t.INTERNATIONAL,onlyCountries:null,placeholderNumberPolicy:al.POLITE,placeholderNumberType:zu.MOBILE,searchInputClass:"",separateDialCode:!0,strictRejectAnimation:!0,showFlags:!0,strictMode:!0},IC=e=>JSON.stringify(e),mf=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Q5=e=>typeof e=="function",Z5=e=>{if(!e||typeof e!="object")return!1;const t=e;return t.nodeType===1&&typeof t.tagName=="string"&&typeof t.appendChild=="function"},Ex=new Set(Object.values(al)),Fc=e=>{console.warn(`[intl-tel-input] ${e}`)},Ct=(e,t,n)=>{Fc(`Option '${e}' must be ${t}; got ${IC(n)}. Ignoring.`)},kx=(e,t)=>{const n="an array of iso2 country code strings";if(!Array.isArray(t))return Ct(e,n,t),!1;const r=[];for(const s of t){if(typeof s!="string")return Ct(e,n,t),!1;const i=s.toLowerCase();Pa(i)?r.push(s):Fc(`Invalid iso2 code in '${e}': '${s}'. Skipping.`)}return r},Y5=e=>{if(e===void 0)return{};if(!mf(e)){const n=`The second argument must be an options object; got ${IC(e)}. Using defaults.`;return Fc(n),{}}const t={};for(const[n,r]of Object.entries(e)){if(!Object.hasOwn(Eg,n)){Fc(`Unknown option '${n}'. Ignoring.`);continue}switch(n){case"allowNumberExtensions":case"allowPhonewords":case"countrySearch":case"dropdownAlwaysOpen":case"matchDropdownWidth":case"formatAsYouType":case"showFlags":case"separateDialCode":case"strictMode":case"strictRejectAnimation":if(typeof r!="boolean"){Ct(n,"a boolean",r);break}t[n]=r;break;case"countrySelectorMode":if(typeof r!="string"||!yp.includes(r)){Ct("countrySelectorMode",`one of ${yp.map(s=>`"${s}"`).join(", ")}`,r);break}t[n]=r;break;case"numberDisplayFormat":if(typeof r!="string"||r===_t.RFC3966||!(r===_t.E164||r===_t.INTERNATIONAL||r===_t.NATIONAL)){Ct("numberDisplayFormat",'one of "E164", "INTERNATIONAL", "NATIONAL"',r);break}t[n]=r;break;case"placeholderNumberPolicy":if(typeof r!="string"||!Ex.has(r)){const s=Array.from(Ex).join(", ");Ct("placeholderNumberPolicy",`one of ${s}`,r);break}t[n]=r;break;case"containerClass":case"searchInputClass":case"countryNameLocale":if(typeof r!="string"){Ct(n,"a string",r);break}t[n]=r;break;case"countryOrder":{if(r===null)t[n]=r;else{const s=kx(n,r);s!==!1&&(t[n]=s)}break}case"customPlaceholder":case"hiddenInputs":case"initialCountryLookup":case"loadUtils":if(r!==null&&!Q5(r)){Ct(n,"a function or null",r);break}t[n]=r;break;case"dropdownParent":if(r!==null&&!Z5(r)){Ct("dropdownParent","an HTMLElement or null",r);break}t[n]=r;break;case"excludeCountries":case"onlyCountries":{if(r===null)t[n]=r;else{const s=kx(n,r);s!==!1&&(t[n]=s)}break}case"uiTranslations":if(r&&!mf(r)){Ct("uiTranslations","an object",r);break}t[n]=r;break;case"countryNameOverrides":if(r&&!mf(r)){Ct("countryNameOverrides","an object",r);break}t[n]=r;break;case"initialCountry":{if(typeof r!="string"){Ct("initialCountry","a string",r);break}const s=r.toLowerCase();if(s&&!Pa(s)){Ct("initialCountry","a valid iso2 country code",r);break}t[n]=r;break}case"placeholderNumberType":if(typeof r!="string"||!da.includes(r)){const s=da.join(", ");Ct("placeholderNumberType",`one of ${s}`,r);break}t[n]=r;break;case"allowedNumberTypes":if(r!==null){if(!Array.isArray(r)){Ct("allowedNumberTypes","an array of number types or null",r);break}let s=!0;for(const i of r)if(typeof i!="string"||!da.includes(i)){const o=da.join(", ");Ct("allowedNumberTypes",`an array of valid number types (${o})`,i),s=!1;break}s&&(t[n]=r)}else t[n]=null;break}}return t},X5=e=>{var t,n;e.initialCountry&&(e.initialCountry=e.initialCountry.toLowerCase()),(t=e.onlyCountries)!=null&&t.length&&(e.onlyCountries=e.onlyCountries.map(r=>r.toLowerCase())),(n=e.excludeCountries)!=null&&n.length&&(e.excludeCountries=e.excludeCountries.map(r=>r.toLowerCase())),e.countryOrder&&(e.countryOrder=e.countryOrder.map(r=>r.toLowerCase()))},J5=e=>{var t;e.countrySelectorMode===Ie.AUTO&&(e.countrySelectorMode=q5()),e.dropdownAlwaysOpen&&(e.countrySelectorMode=Ie.DROPDOWN),e.countrySelectorMode===Ie.FULLSCREEN?e.matchDropdownWidth=!1:RC()&&(e.matchDropdownWidth=!0),((t=e.onlyCountries)==null?void 0:t.length)===1&&(e.initialCountry=e.onlyCountries[0]),e.separateDialCode&&e.numberDis
85playFormat===_t.NATIONAL&&(e.numberDisplayFormat=_t.INTERNATIONAL),e.countrySelectorMode!==Ie.OFF&&!e.showFlags&&!e.separateDialCode&&e.numberDisplayFormat===_t.NATIONAL&&(e.numberDisplayFormat=_t.INTERNATIONAL),e.uiTranslations={...G5,...e.uiTranslations}},Bi=e=>e.replace(/\D/g,""),LC=(e="")=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),gf=e=>Object.keys(e).filter(t=>!!e[t]).join(" "),_e=(e,t,n)=>{const r=document.createElement(e);return t&&Object.entries(t).forEach(([s,i])=>r.setAttribute(s,i)),n&&n.appendChild(r),r},eD="http://www.w3.org/2000/svg",Ol=([e,t,n])=>{const r=document.createElementNS(eD,e);if(t)for(const s in t)r.setAttribute(s,String(t[s]));if(n)for(const s of n)r.appendChild(Ol(s));return r},tD=()=>Ol(["svg",{class:"iti__search-icon-svg",width:14,height:14,viewBox:"0 0 24 24",focusable:"false",[Ee.HIDDEN]:"true"},[["circle",{cx:11,cy:11,r:7}],["line",{x1:21,y1:21,x2:16.65,y2:16.65}]]]),nD=e=>{const t=`iti-${e}-clear-mask`;return Ol(["svg",{class:"iti__search-clear-svg",width:12,height:12,viewBox:"0 0 16 16",[Ee.HIDDEN]:"true",focusable:"false"},[["mask",{id:t,maskUnits:"userSpaceOnUse"},[["rect",{width:16,height:16,fill:"white"}],["path",{d:"M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8",stroke:"black","stroke-linecap":"round",class:"iti__search-clear-x"}]]],["circle",{cx:8,cy:8,r:8,class:"iti__search-clear-bg",mask:`url(#${t})`}]]])},rD=()=>Ol(["svg",{class:"iti__country-check-svg",width:14,height:14,viewBox:"0 0 16 16",fill:"currentColor",focusable:"false",[Ee.HIDDEN]:"true"},[["path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"}]]]),_x=()=>Ol(["svg",{width:256,height:256,viewBox:"0 0 512 512",class:"iti__globe-svg"},[["path",{d:"M508 213a240 240 0 0 0-449-87l-2 5-2 5c-8 14-13 30-17 46a65 65 0 0 1 56 4c16-10 35-19 56-27l9-3c-6 23-10 48-10 74h-16l4 6c3 4 5 8 6 13h6c0 22 3 44 8 65l2 10-25-10-4 5 12 18 9 3 6 2 8 3 9 26 1 2 16-7h1l-5-13-1-2c24 6 49 9 75 10v26l11 10 7 7v-30l1-13c22 0 44-3 65-8l10-2-21 48-1 1a317 317 0 0 1-14 23l-21 5h-2c6 16 7 33 1 50a240 240 0 0 0 211-265m-401-56-11 6c19-44 54-79 98-98-11 20-21 44-29 69-21 6-40 15-58 23m154 182v4c-29-1-57-6-81-13-7-25-12-52-13-81h94zm0-109h-94c1-29 6-56 13-81 24-7 52-12 81-13zm0-112c-22 1-44 4-65 8l-10 2 12-30 9-17 1-2a332 332 0 0 1 13-23c13-4 26-6 40-7zm187 69 6 4c4 12 6 25 6 38v1h-68c-1-26-4-51-10-74l48 20 1 1 14 8zm-14-44 10 20c-20-11-43-21-68-29-8-25-18-49-29-69 37 16 67 44 87 78M279 49h1c13 1 27 3 39 7l14 23 1 2a343 343 0 0 1 12 26l2 5 6 16c-23-6-48-9-74-10h-1zm0 87h1c29 1 56 6 81 13 7 24 12 51 12 80v1h-94zm2 207h-2v-94h95c-1 29-6 56-13 81-24 7-51 12-80 13m86 60-20 10c11-20 21-43 29-68 25-8 48-18 68-29-16 37-43 67-77 87m87-115-7 5-16 9-2 1a337 337 0 0 1-47 21c6-24 9-49 10-75h68c0 13-2 27-6 39"}],["path",{d:"m261 428-2-2-22-21a40 40 0 0 0-32-11h-1a37 37 0 0 0-18 8l-1 1-4 2-2 2-5 4c-9-3-36-31-47-44s-32-45-34-55l3-2a151 151 0 0 0 11-9v-1a39 39 0 0 0 5-48l-3-3-11-19-3-4-5-7h-1l-3-3-4-3-5-2a35 35 0 0 0-16-3h-5c-4 1-14 5-24 11l-4 2-4 3-4 2c-9 8-17 17-18 27a380 380 0 0 0 212 259h3c12 0 25-10 36-21l10-12 6-11a39 39 0 0 0-8-40"}]]]),kg=e=>LC(e).replace(/[^\p{L}]+/gu," ").trim(),sD=e=>{const t=new Map;for(const n of e){const r=kg(n.name),s=r.split(" ").filter(Boolean),i=s.map(o=>o[0]||"").join("");t.set(n.iso2,{normalisedName:r,words:s,initials:i,dialCodePlus:`+${n.dialCode}`})}return t},iD=(e,t,n)=>{const r=LC(n),s=kg(n),i=r!==""&&s==="",o=[],a=[],l=[],u=[],c=[],d=[],h=[];for(const x of e){const b=t.get(x.iso2);x.iso2===r?o.push(x):!i&&b.normalisedName.startsWith(s)?a.push(x):!i&&b.normalisedName.includes(s)?l.push(x):r===x.dialCode||r===b.dialCodePlus?u.push(x):b.dialCodePlus.includes(r)?c.push(x):b.initials.includes(r)&&d.push(x)}const m=s.split(" ").filter(Boolean);if(m.length>1&&o.length===0&&a.length===0&&l.length===0){const x=new Set([...u.map(b=>b.iso2),...c.map(b=>b.iso2),...d.map(b=>b.iso2)]);for(const b of e){if(x.has(b.iso2))continue;const y=t.get(b.iso2);m.some(g=>y.words.some(w=>w.startsWith(g)))&&h.push(b)}}const v=(x,b)=>x.priority-b.priority;return[...o,...a,...l,...u.sort(v),...c.sort(v),...d,...h]},oD=(e,t,n)=>{const r=kg(n);for(const s of e){const{normalisedName:i}=t.get(s.iso2);if(i.startsWith(r))return s}return null},un,hl,xp,uo,jC=(uo=class{constructor(t){I(this,hl);I(this,un);t&&C(this,hl,xp).call(this,t)}static toAscii(t){return t?t.replace(/[Ù -Ù©]/g,n=>String.fromCharCode(48+(n.charCodeAt(0)-1632))).replace(/[Û°-Û¹]/g,n=>String.fromCharCode(48+(n.charCodeAt(0)-1776))):""}denormalise(t){if(!f(this,un)||f(this,un)==="ascii")return t;const n=f(this,un)==="arabic-indic"?1632:1776;return t.replace(/[0-9]/g,r=>String.fromCharCode(n+Number(r)))}normalise(t){return t?(C(this,hl,xp).call(this,t),f(this,un)==="ascii"?t:uo.toAscii(t)):""}isAscii(){return!f(this,un)||f(this,un)==="ascii"}},un=new WeakMap,hl=new WeakSet,xp=function(t){/[Ù -Ù©]/.test(t)?P(this,un,"arabic-indic"):/[Û°-Û¹]/.test(t)?P(this,un,"persian"):P(this,un,"ascii")},uo),Tx=typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("anchor-name: --x"),ve,cn,ei,pl,mr,co,ti,fo,ml,An,be,gr,gl,ho,Ne,yl,Rt,
85ns,ft,yr,vr,xr,vl,Oe,Rn,zt,ni,rs,po,M,OC,DC,MC,wp,VC,FC,zC,UC,Uu,$C,BC,WC,HC,bp,Sp,$u,KC,GC,Cp,Fr,qC,QC,ZC,YC,XC,JC,eE,tE,nE,rE,Ep,sE,iE,oE,l1,Px=(l1=class{constructor(e,t,n){I(this,M);I(this,ve);I(this,cn);I(this,ei);I(this,pl,"");I(this,mr);I(this,co);I(this,ti,null);I(this,fo);I(this,ml,!1);I(this,An);I(this,be);I(this,gr);I(this,gl);I(this,ho);I(this,Ne);I(this,yl);I(this,Rt);I(this,ns);I(this,ft);I(this,yr);I(this,vr);I(this,xr);I(this,vl);I(this,Oe);I(this,Rn,null);I(this,zt,null);I(this,ni,new Map);I(this,rs,null);I(this,po);Lr(this,"telInputEl");Lr(this,"hadInitialPlaceholder");e.dataset[Gr.INSTANCE_ID]=n.toString(),this.telInputEl=e,P(this,ve,t),P(this,cn,n),this.hadInitialPlaceholder=!!e.getAttribute("placeholder"),P(this,ei,!!this.telInputEl.closest("[dir=rtl]")),P(this,pl,this.telInputEl.style.paddingLeft)}static validateInput(e){const t=e==null?void 0:e.tagName;if(!(!!e&&typeof e=="object"&&t==="INPUT"&&typeof e.setAttribute=="function")){const r=Object.prototype.toString.call(e);throw new TypeError(`The first argument must be an HTMLInputElement, not ${r}`)}}buildMarkup(e,t){P(this,mr,e),P(this,co,t),this.telInputEl.classList.add("iti__tel-input"),this.telInputEl.hasAttribute("type")||this.telInputEl.setAttribute("type","tel"),this.telInputEl.hasAttribute("autocomplete")||this.telInputEl.setAttribute("autocomplete","tel"),this.telInputEl.hasAttribute("inputmode")||this.telInputEl.setAttribute("inputmode","tel");const n=C(this,M,OC).call(this);C(this,M,DC).call(this,n),n.appendChild(this.telInputEl),C(this,M,FC).call(this),C(this,M,$C).call(this),C(this,M,zC).call(this,n),this.ensureDropdownWidthSet()}ensureDropdownWidthSet(){const{matchDropdownWidth:e,countrySelectorMode:t}=f(this,ve);if(t===Ie.OFF||!e||f(this,Ne).style.width)return;const n=this.telInputEl.offsetWidth;n>0&&(f(this,Ne).style.width=`${n}px`)}prefillSearchWithPlus(){f(this,Rt).value="+",f(this,Rt).focus(),C(this,M,Sp).call(this,"")}bindHiddenInputSubmitListener(e,t,n){const r=this.telInputEl.form;!r||!f(this,yr)&&!f(this,vr)||r.addEventListener("submit",()=>{f(this,yr)&&(f(this,yr).value=t()),f(this,vr)&&(f(this,vr).value=n())},{signal:e})}bindAllInitialCountrySelectorListeners(e,t,n){const r=this.telInputEl.closest("label");r&&r.addEventListener("click",s=>{this.isCountrySelectorOpen()?s.preventDefault():this.telInputEl.focus()},{signal:e}),f(this,be).addEventListener("click",()=>{!this.isCountrySelectorOpen()&&!this.telInputEl.disabled&&!this.telInputEl.readOnly&&t()},{signal:e}),f(this,An).addEventListener("keydown",s=>{const i=[Nt.ARROW_UP,Nt.ARROW_DOWN,Nt.SPACE,Nt.ENTER];!this.isCountrySelectorOpen()&&i.includes(s.key)&&(s.preventDefault(),s.stopPropagation(),t()),s.key===Nt.TAB&&n()},{signal:e})}openCountrySelector(e,t){const{countrySearch:n,dropdownAlwaysOpen:r}=f(this,ve);if(P(this,rs,new AbortController),f(this,ve).countrySelectorMode!==Ie.FULLSCREEN&&C(this,M,WC).call(this),this.ensureDropdownWidthSet(),f(this,Oe))C(this,M,sE).call(this);else{const i=C(this,M,Ep).call(this),o=this.telInputEl.offsetHeight+ur.DROPDOWN_MARGIN;i?f(this,Ne).style.top=`${o}px`:f(this,Ne).style.bottom=`${o}px`}f(this,Ne).classList.remove(me.HIDE),f(this,be).setAttribute(Ee.EXPANDED,"true");const s=f(this,Rn)??f(this,ft).firstElementChild;s&&C(this,M,Fr).call(this,s),n&&!r&&f(this,Rt).focus(),f(this,ve).countrySelectorMode===Ie.FULLSCREEN&&f(this,Oe)&&window.visualViewport&&window.visualViewport.addEventListener("resize",()=>{C(this,M,oE).call(this),f(this,zt)&&C(this,M,Cp).call(this,f(this,zt))},{signal:f(this,rs).signal}),f(this,ho).classList.add(me.ARROW_UP),C(this,M,qC).call(this,e,t)}closeCountrySelector(){const{countrySearch:e}=f(this,ve);f(this,rs).abort(),P(this,rs,null),f(this,Ne).classList.add(me.HIDE),f(this,be).setAttribute(Ee.EXPANDED,"false"),e&&(f(this,Rt).removeAttribute(Ee.ACTIVE_DESCENDANT),f(this,Rt).value="",C(this,M,$u).call(this),f(this,zt)&&(f(this,zt).classList.remove(me.HIGHLIGHT),P(this,zt,null))),f(this,ho).classList.remove(me.ARROW_UP),f(this,Oe)?(f(this,Oe).remove(),f(this,Oe).style.top="",f(this,Oe).style.bottom="",f(this,Oe).style.paddingLeft="",f(this,Oe).style.paddingRight=""):(f(this,Ne).style.top="",f(this,Ne).style.bottom="")}isCountrySelectorOpen(){return!f(this,Ne).classList.contains(me.HIDE)}setLoading(e){f(this,gr).classList.toggle(me.LOADING,e)}playStrictRejectAnimation(){if(!f(this,ve).strictRejectAnimation)return;const e=this.telInputEl.parentElement;
85e&&(e.classList.remove(me.STRICT_REJECT_ANIMATION),e.offsetWidth,e.classList.add(me.STRICT_REJECT_ANIMATION),e.addEventListener("animationend",()=>e.classList.remove(me.STRICT_REJECT_ANIMATION),{once:!0}))}isLoading(){return f(this,gr).classList.contains(me.LOADING)}setDisabled(e){this.telInputEl.disabled=e,f(this,be)&&(e?f(this,be).setAttribute("disabled","true"):f(this,be).removeAttribute("disabled"))}setReadonly(e){this.telInputEl.readOnly=e,f(this,be)&&(e?f(this,be).setAttribute("disabled","true"):f(this,be).removeAttribute("disabled"))}setSelectedCountry(e){const{countrySelectorMode:t,showFlags:n,separateDialCode:r,uiTranslations:s}=f(this,ve),i=e==null?void 0:e.name,o=e==null?void 0:e.dialCode,a=(e==null?void 0:e.iso2)??"";if(t!==Ie.OFF&&C(this,M,nE).call(this,a),f(this,be)){const l=a&&n?`${me.FLAG} iti__${a}`:`${me.FLAG} ${me.GLOBE}`;let u,c,d=null;a?(c=i,u=s.selectedCountryAriaLabel.replace("${countryName}",i).replace("${dialCode}",`+${o}`),n||(d=_x())):(c=s.noCountrySelected,u=s.noCountrySelected,d=_x()),f(this,gr).className=l,f(this,be).setAttribute("title",c),f(this,be).setAttribute(Ee.LABEL,u),d?f(this,gr).replaceChildren(d):f(this,gr).replaceChildren()}if(r){const l=o?`+${o}`:"";f(this,gl).textContent=l,C(this,M,Uu).call(this)}}destroy(){var t;this.telInputEl.iti=void 0,delete this.telInputEl.dataset[Gr.INSTANCE_ID],(t=f(this,po))==null||t.disconnect(),this.telInputEl.style.paddingLeft=f(this,pl);const e=this.telInputEl.parentNode;e&&(e.before(this.telInputEl),e.remove()),f(this,ni).clear()}},ve=new WeakMap,cn=new WeakMap,ei=new WeakMap,pl=new WeakMap,mr=new WeakMap,co=new WeakMap,ti=new WeakMap,fo=new WeakMap,ml=new WeakMap,An=new WeakMap,be=new WeakMap,gr=new WeakMap,gl=new WeakMap,ho=new WeakMap,Ne=new WeakMap,yl=new WeakMap,Rt=new WeakMap,ns=new WeakMap,ft=new WeakMap,yr=new WeakMap,vr=new WeakMap,xr=new WeakMap,vl=new WeakMap,Oe=new WeakMap,Rn=new WeakMap,zt=new WeakMap,ni=new WeakMap,rs=new WeakMap,po=new WeakMap,M=new WeakSet,OC=function(){const{countrySelectorMode:e,showFlags:t,containerClass:n}=f(this,ve),r=gf({iti:!0,"iti--input-container":!0,"iti--has-country-selector":e!==Ie.OFF,"iti--show-flags":t,"iti--inline-country-selector":e!==Ie.FULLSCREEN,[n]:!!n}),s=_e("div",{class:r});return f(this,ei)&&s.setAttribute("dir","ltr"),this.telInputEl.before(s),s},DC=function(e){const{countrySelectorMode:t,separateDialCode:n,showFlags:r}=f(this,ve),s=t!==Ie.OFF;if(!s&&!r&&!n)return;P(this,An,_e("div",{class:`iti__country-container ${me.V_HIDE}`},e)),s?(P(this,be,_e("button",{type:"button",class:"iti__selected-country",[Ee.EXPANDED]:"false",[Ee.LABEL]:f(this,ve).uiTranslations.noCountrySelected,[Ee.HASPOPUP]:"dialog",[Ee.CONTROLS]:`iti-${f(this,cn)}__country-selector`},f(this,An))),this.telInputEl.disabled&&f(this,be).setAttribute("disabled","true")):P(this,be,_e("div",{class:"iti__selected-country"},f(this,An)));const i=_e("div",{class:"iti__selected-country-primary"},f(this,be));P(this,gr,_e("div",{class:me.FLAG},i)),s&&P(this,ho,_e("div",{class:"iti__arrow",[Ee.HIDDEN]:"true"},i)),n&&P(this,gl,_e("div",{class:"iti__selected-dial-code"},f(this,be))),s&&C(this,M,MC).call(this)},MC=function(){const{matchDropdownWidth:e,countrySelectorMode:t,countrySearch:n,uiTranslations:r,containerClass:s}=f(this,ve),i=t===Ie.FULLSCREEN,o=C(this,M,wp).call(this),a=e?"":"iti--flexible-dropdown-width";if(P(this,Ne,_e("div",{id:`iti-${f(this,cn)}__country-selector`,class:`iti__country-selector ${me.HIDE} ${a}`,role:"dialog",[Ee.MODAL]:"true"})),f(this,ei)&&f(this,Ne).setAttribute("dir","rtl"),n&&C(this,M,VC).call(this),P(this,ft,_e("ul",{class:"iti__country-list",id:`iti-${f(this,cn)}__country-listbox`,role:"listbox",[Ee.LABEL]:r.countryListAriaLabel},f(this,Ne))),C(this,M,UC).call(this),n&&C(this,M,bp).call(this),o){const l=gf({iti:!0,"iti--detached-country-selector":!0,"iti--fullscreen-popup":i,"iti--inline-country-selector":!i,[s]:!!s});P(this,Oe,_e("div",{class:l})),f(this,Oe).appendChild(f(this,Ne))}else f(this,An).appendChild(f(this,Ne))},wp=function(){const{countrySelectorMode:e,dropdownParent:t}=f(this,ve);return e===Ie.FULLSCREEN?document.body:e===Ie.DROPDOWN?t:null},VC=function(){const{uiTranslations:e,searchInputClass:t}=f(this,ve),n=_e("div",{class:"iti__search-input-wrapper"},f(this,Ne));P(this,yl,_e("span",{class:"iti__search-icon",[Ee.HIDDEN]:"true"},n)),f(this,yl).appendChild(tD()),P(this,Rt,_e("input",{id:`iti-${f(this,cn)}__search-input`,type:"search",class:`iti__search-input ${t}`,placeholder:e.searchPlaceholder,role:"combobox",[Ee.EXPANDED]:"true",[Ee.LABEL]:e.searchPlaceholder,[Ee.CONTROLS]:`iti-${f(this,cn)}__country-listbox`,[Ee.AUTOCOMPLETE]:"list",autocomplete:"off"},n)),P(this,ns,_e("button",{type:"button",class:`iti__search-clear ${me.HIDE}`,[Ee.LABEL]:e.clearSearchAriaLabel,tabindex:"-1"},n)),f(this,ns).appendChild(nD(f(this,cn))),P(this,vl,_e("span",{class:"iti__a11y-text"},f(this,Ne))),P(this,xr,_e("div",{class:`iti__no-results ${me.HIDE}`,[Ee.HIDDEN]:"true"},f(this,Ne))),f(this,xr).textContent=e.searchEmptyState??null},FC=function(){f(this,An)&&(C(this,M,Uu).call(this),f(this,An).classList.remove(me.V_HIDE))},zC=function(e){var s,i;
85const{hiddenInputs:t}=f(this,ve);if(!t)return;const n=this.telInputEl.getAttribute("name")||"",r=t(n);if(r.phone){const o=(s=this.telInputEl.form)==null?void 0:s.querySelector(`input[name="${r.phone}"]`);o?P(this,yr,o):(P(this,yr,_e("input",{type:"hidden",name:r.phone})),e.appendChild(f(this,yr)))}if(r.country){const o=(i=this.telInputEl.form)==null?void 0:i.querySelector(`input[name="${r.country}"]`);o?P(this,vr,o):(P(this,vr,_e("input",{type:"hidden",name:r.country})),e.appendChild(f(this,vr)))}},UC=function(){const e=document.createDocumentFragment();for(let t=0;t<f(this,mr).length;t++){const n=f(this,mr)[t],r=gf({[me.COUNTRY_ITEM]:!0}),s=_e("li",{id:`iti-${f(this,cn)}__item-${n.iso2}`,class:r,tabindex:"-1",role:"option",[Ee.SELECTED]:"false"});s.dataset[Gr.DIAL_CODE]=n.dialCode,s.dataset[Gr.ISO2]=n.iso2,f(this,ni).set(n.iso2,s),f(this,ve).showFlags&&_e("div",{class:`${me.FLAG} iti__${n.iso2}`},s);const i=_e("span",{class:"iti__country-name"},s);i.textContent=`${n.name} `;const o=_e("span",{class:"iti__dial-code"},i);f(this,ei)&&o.setAttribute("dir","ltr"),o.textContent=`(+${n.dialCode})`,e.appendChild(s)}f(this,ft).appendChild(e)},Uu=function(){if(f(this,be)){const e=f(this,ve).separateDialCode?ur.FALLBACK_SELECTED_COUNTRY_WITH_DIAL_WIDTH:ur.FALLBACK_SELECTED_COUNTRY_NO_DIAL_WIDTH,n=(f(this,be).offsetWidth||C(this,M,BC).call(this)||e)+ur.INPUT_PADDING_EXTRA_LEFT;this.telInputEl.style.paddingLeft=`${n}px`}},$C=function(){!f(this,be)||typeof ResizeObserver>"u"||(P(this,po,new ResizeObserver(()=>{var e;(e=f(this,be))!=null&&e.offsetWidth&&C(this,M,Uu).call(this)})),f(this,po).observe(f(this,be)))},BC=function(){if(!this.telInputEl.parentNode)return 0;const e=document.body,t=this.telInputEl.parentNode.cloneNode(!1);t.style.visibility="hidden",e.appendChild(t);const n=f(this,An).cloneNode();t.appendChild(n);const r=f(this,be).cloneNode(!0);n.appendChild(r);const s=r.offsetWidth;return e.removeChild(t),s},WC=function(){if(f(this,fo)!==void 0)return;const{countrySearch:e,matchDropdownWidth:t}=f(this,ve),{height:n,width:r}=C(this,M,HC).call(this);P(this,fo,n),e&&(f(this,Ne).style.height=`${n}px`,!t&&r>0&&(f(this,Ne).style.width=`${r}px`))},HC=function(){const e=document.body,t=f(this,Ne),n=t.parentNode,r=t.nextSibling;t.classList.remove(me.HIDE);const s=_e("div",{class:"iti iti--inline-country-selector"});s.appendChild(t),s.style.visibility="hidden",e.appendChild(s);const i=t.offsetHeight,o=t.offsetWidth;return e.removeChild(s),t.classList.add(me.HIDE),n&&n.insertBefore(t,r),{height:i>0?i:ur.FALLBACK_DROPDOWN_HEIGHT,width:o}},bp=function(){const{uiTranslations:e}=f(this,ve),t=f(this,ft).childElementCount;f(this,vl).textContent=e.searchSummaryAria(t)},Sp=function(e){let t;if(e==="")t=f(this,mr);else{const n=jC.toAscii(e);t=iD(f(this,mr),f(this,co),n)}C(this,M,rE).call(this,t)},$u=function(){const e=f(this,Rt).value.trim();C(this,M,Sp).call(this,e),f(this,Rt).value?f(this,ns).classList.remove(me.HIDE):f(this,ns).classList.add(me.HIDE)},KC=function(){f(this,ti)&&clearTimeout(f(this,ti)),P(this,ti,setTimeout(()=>{C(this,M,$u).call(this),P(this,ti,null)},Cx.SEARCH_DEBOUNCE_MS))},GC=function(){f(this,Rt).value="",f(this,Rt).focus(),C(this,M,$u).call(this)},Cp=function(e){const t=f(this,ft),n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),s=r.top-n.top+t.scrollTop;r.top<n.top?t.scrollTop=s:r.bottom>n.bottom&&(t.scrollTop=s-n.height+r.height)},Fr=function(e,t=!0){var n;if((n=f(this,zt))==null||n.classList.remove(me.HIGHLIGHT),e){if(e.classList.add(me.HIGHLIGHT),f(this,ve).countrySearch){const r=e.getAttribute("id")||"";f(this,Rt).setAttribute(Ee.ACTIVE_DESCENDANT,r)}t&&C(this,M,Cp).call(this,e),P(this,zt,e)}else P(this,zt,null)},qC=function(e,t){const n=f(this,rs).signal;C(this,M,QC).call(this,n),C(this,M,ZC).call(this,n,e),f(this,ve).dropdownAlwaysOpen||C(this,M,YC).call(this,n,t),C(this,M,XC).call(this,n,e,t),f(this,ve).countrySearch&&C(this,M,JC).call(this,n),f(this,ve).countrySelectorMode===Ie.DROPDOWN&&f(this,ve).dropdownParent&&!Tx&&document.addEventListener("scroll",t,{signal:n,capture:!0,passive:!0})},QC=function(e){f(this,ft).addEventListener("mouseover",t=>{var r;const n=(r=t.target)==null?void 0:r.closest(`.${me.COUNTRY_ITEM}`);n&&C(this,M,Fr).call(this,n,!1)},{signal:e})},ZC=function(e,t){f(this,ft).addEventListener("click",n=>{var s;const r=(s=n.target)==null?void 0:s.closest(`.${me.COUNTRY_ITEM}`);r&&t(r)},{signal:e})},YC=function(e,t){setTimeout(()=>{document.documentElement.addEventListener("click",n=>{f(this,Ne).contains(n.target)||t()},{signal:e})},0)},XC=function(e,t,n){var o,a;let r="",s=null;const i=l=>
85{[Nt.ARROW_UP,Nt.ARROW_DOWN,Nt.ENTER,Nt.ESC].includes(l.key)&&(l.preventDefault(),l.stopPropagation(),l.key===Nt.ARROW_UP||l.key===Nt.ARROW_DOWN?C(this,M,tE).call(this,l.key):l.key===Nt.ENTER&&!l.isComposing?t(f(this,zt)):l.key===Nt.ESC&&(n(),f(this,be).focus())),!f(this,ve).countrySearch&&Vr.HIDDEN_SEARCH_CHAR.test(l.key)&&(l.stopPropagation(),s&&clearTimeout(s),r+=l.key.toLowerCase(),C(this,M,eE).call(this,r),s=setTimeout(()=>{r=""},Cx.HIDDEN_SEARCH_RESET_MS))};(o=f(this,be))==null||o.addEventListener("keydown",i,{signal:e}),(a=f(this,Ne))==null||a.addEventListener("keydown",i,{signal:e})},JC=function(e){f(this,Rt).addEventListener("input",()=>C(this,M,KC).call(this),{signal:e}),f(this,ns).addEventListener("click",()=>C(this,M,GC).call(this),{signal:e})},eE=function(e){const t=oD(f(this,mr),f(this,co),e);if(t){const n=f(this,ni).get(t.iso2);C(this,M,Fr).call(this,n)}},tE=function(e){var n,r;let t=e===Nt.ARROW_UP?(n=f(this,zt))==null?void 0:n.previousElementSibling:(r=f(this,zt))==null?void 0:r.nextElementSibling;!t&&f(this,ft).childElementCount>1&&(t=e===Nt.ARROW_UP?f(this,ft).lastElementChild:f(this,ft).firstElementChild),t&&C(this,M,Fr).call(this,t)},nE=function(e){var t;if(f(this,Rn)&&f(this,Rn).dataset[Gr.ISO2]!==e&&(f(this,Rn).setAttribute(Ee.SELECTED,"false"),(t=f(this,Rn).querySelector(".iti__country-check"))==null||t.remove(),P(this,Rn,null)),e&&!f(this,Rn)){const n=f(this,ft).querySelector(`[data-iso2="${e}"]`);n&&(n.setAttribute(Ee.SELECTED,"true"),_e("span",{class:"iti__country-check",[Ee.HIDDEN]:"true"},n).appendChild(rD()),P(this,Rn,n),f(this,ve).dropdownAlwaysOpen&&C(this,M,Fr).call(this,n))}},rE=function(e){f(this,ft).replaceChildren();let t=!0;for(const n of e){const r=f(this,ni).get(n.iso2);r&&(f(this,ft).appendChild(r),t&&(C(this,M,Fr).call(this,r,!1),t=!1))}t?(C(this,M,Fr).call(this,null),f(this,xr)&&f(this,xr).classList.remove(me.HIDE)):f(this,xr)&&f(this,xr).classList.add(me.HIDE),f(this,ft).scrollTop=0,C(this,M,bp).call(this)},Ep=function(){if(f(this,ve).dropdownAlwaysOpen)return!0;const e=this.telInputEl.getBoundingClientRect(),t=e.top,n=window.innerHeight-e.bottom;return n>=f(this,fo)||n>=t},sE=function(){const e=f(this,ve).countrySelectorMode===Ie.FULLSCREEN,t=C(this,M,wp).call(this);if(e){if(window.innerWidth>=ur.NARROW_VIEWPORT_WIDTH){const n=this.telInputEl.getBoundingClientRect();f(this,Oe).style.paddingLeft=`${n.left}px`,f(this,Oe).style.paddingRight=`${window.innerWidth-n.right}px`}}else C(this,M,iE).call(this);if(!e&&!Tx){const n=this.telInputEl.getBoundingClientRect();f(this,Oe).style.left=`${n.left}px`,C(this,M,Ep).call(this)?f(this,Oe).style.top=`${n.bottom+ur.DROPDOWN_MARGIN}px`:(f(this,Oe).style.top="unset",f(this,Oe).style.bottom=`${window.innerHeight-n.top+ur.DROPDOWN_MARGIN}px`)}t.appendChild(f(this,Oe))},iE=function(){if(f(this,ml))return;P(this,ml,!0);const e=`--iti-anchor-${f(this,cn)}`,t=getComputedStyle(this.telInputEl).anchorName;this.telInputEl.style.anchorName=t&&t!=="none"?`${t}, ${e}`:e,f(this,Oe).style.positionAnchor=e},oE=function(){const e=window.visualViewport;if(!e||!f(this,Oe))return;const t=window.innerHeight-e.height;f(this,Oe).style.bottom=`${t}px`},l1),aD=e=>{const{onlyCountries:t,excludeCountries:n}=e;return t!=null&&t.length?Fu.filter(r=>t.includes(r.iso2)):n!=null&&n.length?Fu.filter(r=>!n.includes(r.iso2)):[...Fu]},lD=(e,t)=>{const{countryNameLocale:n,countryNameOverrides:r,uiTranslations:s}=t,i=s==null?void 0:s.countryNames;let o;try{typeof Intl<"u"&&typeof Intl.DisplayNames=="function"?o=new Intl.DisplayNames(n,{type:"region"}):o=null}catch(a){console.error(a),o=null}for(const a of e)a.name=r[a.iso2]||(i==null?void 0:i[a.iso2])||(o==null?void 0:o.of(a.iso2.toUpperCase()))||""},uD=e=>{const t=new Set;let n=0;const r={},s=(o,a)=>{if(!o||!a)return;a.length>n&&(n=a.length),Object.hasOwn(r,a)||(r[a]=[]);const l=r[a];l.includes(o)||l.push(o)},i=[...e].sort((o,a)=>o.priority-a.priority);for(const o of i){t.has(o.dialCode)||t.add(o.dialCode);for(let a=1;a<o.dialCode.length;a++){const l=o.dialCode.substring(0,a);s(o.iso2,l)}if(s(o.iso2,o.dialCode),o.areaCodes){const a=r[o.dialCode][0];for(const l of o.areaCodes){for(let u=1;u<l.length;u++){const c=l.substring(0,u),d=o.dialCode+c;s(a,d),s(o.iso2,d)}s(o.iso2,o.dialCode+l)}}}return{dialCodes:t,dialCodeMaxLength:n,dialCodeToIso2Map:r}},cD=(e,t)=>{const{countryOrder:n}=t;e.sort((r,s)=>{if(n){const i=n.indexOf(r.iso2),o=n.indexOf(s.iso2),a=i>-1,l=o>-1;if(a||l)return a&&l?i-o:a?-1:1}return r.name.localeCompare(s.name)})},dD=new Set(["800","808","870","881","882","883","888","979"]),Nx=e=>{const t=Bi(e).slice(0,3);return e.startsWith("+")&&dD.has(t)},Ax=(e,t,n,r)=>{if(!n||!t)return e;const s=`+${r.dialCode}`,i=e[s.length]===" "||e[s.length]==="-"?s.length+1:s.length;return e.substring(i)}
85,fD=(e,t,n,r,s)=>{const i=n?n.formatNumberAsYouType(e,r==null?void 0:r.iso2):e,o=r==null?void 0:r.dialCode;return s&&t.charAt(0)!=="+"&&i.includes(`+${o}`)?(i.split(`+${o}`)[1]||"").trim():i},hD=(e,t,n,r)=>{if(n===0&&!r)return 0;let s=0;for(let i=0;i<t.length;i++){if(/[+0-9]/.test(t[i])&&s++,s===e&&!r)return i+1;if(r&&s===e+1)return i}return t.length},pD=new Set(["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"]),Rx=e=>{const t=Bi(e);if(t.startsWith(AC.NANP)&&t.length>=4){const n=t.substring(1,4);return pD.has(n)}return!1},mD=0,Si=e=>{if(!Z.utils)throw new Error(`intlTelInput.utils is required for ${e}(). See: https://intl-tel-input.com/docs/utils`)},Ix=()=>{let e,t;return{promise:new Promise((r,s)=>{e=r,t=s}),resolve:e,reject:t}},Q,ge,mo,Qn,xl,go,wl,bl,Sl,X,In,Zn,qe,Ln,dn,ri,yo,fn,jn,T,Qt,zr,aE,lE,uE,_p,cE,dE,fE,Tp,Pp,hE,pE,mE,gE,yE,vE,Uc,xE,$c,wE,Bc,bE,Bu,SE,Vt,ki,Wu,CE,Np,EE,cr,Ap,Hu,kE,_i,Rp,Ti,Ip,Ur,Lp,fa,jp,_E,TE,PE,Op,Sr,kp=(Sr=class{constructor(t,n={}){I(this,T);Lr(this,"id");Lr(this,"promise");I(this,Q);I(this,ge);I(this,mo);I(this,Qn);I(this,xl);I(this,go);I(this,wl);I(this,bl);I(this,Sl);I(this,X,null);I(this,In,null);I(this,Zn);I(this,qe,!0);I(this,Ln);I(this,dn);I(this,ri,!1);I(this,yo,null);I(this,fn);I(this,jn);I(this,Uc,t=>{const{strictMode:n,formatAsYouType:r,separateDialCode:s,countrySelectorMode:i,countrySearch:o}=f(this,ge),a=t==null?void 0:t.detail;if(a!=null&&a.isCountryChange)return;let l=C(this,T,Qt).call(this);const u=(t==null?void 0:t.inputType)===Sx.PASTE,c=n&&u;if(f(this,mo)&&!u&&(t==null?void 0:t.data)==="+"&&s&&i!==Ie.OFF&&o){C(this,T,pE).call(this,l);return}if(f(this,mo)&&!u&&n&&((t==null?void 0:t.data)===" "||(t==null?void 0:t.data)==="-"||(t==null?void 0:t.data)===".")){C(this,T,mE).call(this,l,t.data);return}if(c){if(C(this,T,bE).call(this))return;l=C(this,T,Qt).call(this)}C(this,T,Wu).call(this,l)&&(C(this,T,fa).call(this),C(this,T,Vt).call(this,qt.INPUT,{isCountryChange:!0})),!c&&(t==null?void 0:t.data)&&Vr.NON_PLUS_NUMERIC.test(t.data)||u&&l&&!n?P(this,ri,!0):Vr.NON_PLUS_NUMERIC.test(l)||P(this,ri,!1),r&&!f(this,ri)&&!(a!=null&&a.isSetNumber)&&f(this,dn).isAscii()&&C(this,T,gE).call(this,l,(t==null?void 0:t.inputType)===Sx.DELETE_FORWARD),s&&C(this,T,yE).call(this,l)});I(this,$c,t=>{var A;const{strictMode:n,separateDialCode:r,countrySelectorMode:s,countrySearch:i}=f(this,ge);if(!t.key||t.key.length!==1||t.altKey||t.ctrlKey||t.metaKey)return;if(r&&s!==Ie.OFF&&i&&t.key==="+"){t.preventDefault(),C(this,T,Tp).call(this);return}if(!n)return;const o=C(this,T,Qt).call(this),l=!o.startsWith("+")&&f(this,Q).telInputEl.selectionStart===0&&t.key==="+",u=f(this,dn).normalise(t.key),c=/^[0-9]$/.test(u),d=r?c:l||c,h=f(this,Q).telInputEl,m=h.selectionStart,v=h.selectionEnd,x=o.slice(0,m??void 0),b=o.slice(v??void 0),y=x+u+b,g=C(this,T,Ip).call(this,y);let w=!1;Z.utils&&f(this,In)&&(w=Z.utils.getCoreNumber(g,(A=f(this,X))==null?void 0:A.iso2).length>f(this,In));const _=C(this,T,Np).call(this,g)!==null;
85(!d||w&&!_&&!l)&&(f(this,Q).playStrictRejectAnimation(),C(this,T,Vt).call(this,qt.STRICT_REJECT,{source:"key",rejectedInput:t.key,reason:d?"max-length":"invalid"}),t.preventDefault())});I(this,Bc,t=>{var s;const n=f(this,Q).telInputEl,r=C(this,T,Qt).call(this);P(this,yo,{pastedRaw:((s=t.clipboardData)==null?void 0:s.getData("text"))??"",value:r,selectionStart:n.selectionStart??r.length,selectionEnd:n.selectionEnd??r.length})});this.id=mD++,Px.validateInput(t);const r=Y5(n);P(this,ge,{...Eg,...r}),X5(f(this,ge)),J5(f(this,ge)),P(this,Q,new Px(t,f(this,ge),this.id)),P(this,mo,typeof navigator<"u"&&/Android/i.test(navigator.userAgent)),P(this,dn,new jC(t.value)),this.promise=C(this,T,aE).call(this,f(this,ge)),P(this,Qn,aD(f(this,ge)));const{dialCodes:s,dialCodeMaxLength:i,dialCodeToIso2Map:o}=uD(f(this,Qn));P(this,wl,s),P(this,xl,i),P(this,go,o),P(this,bl,new Map(f(this,Qn).map(a=>[a.iso2,a]))),C(this,T,lE).call(this)}openCountrySelector(){f(this,Q).isCountrySelectorOpen()||(f(this,Q).openCountrySelector(t=>C(this,T,kE).call(this,t),()=>C(this,T,_i).call(this)),C(this,T,Vt).call(this,qt.OPEN_COUNTRY_SELECTOR))}closeCountrySelector(){C(this,T,_i).call(this)}destroy(){f(this,qe)&&(P(this,qe,!1),f(this,ge).countrySelectorMode!==Ie.OFF&&C(this,T,_i).call(this,!0),f(this,Ln).abort(),f(this,Q).destroy(),Z.instances.delete(String(this.id)))}isActive(){return f(this,qe)}getExtension(){var t;return f(this,qe)?(Si("getExtension"),Z.utils.getExtension(C(this,T,Ur).call(this),(t=f(this,X))==null?void 0:t.iso2)):""}getNumber(t){var i;if(!f(this,qe))return"";Si("getNumber");const n=(i=f(this,X))==null?void 0:i.iso2,r=C(this,T,Ur).call(this),s=Z.utils.formatNumber(r,n,t);return f(this,dn).denormalise(s)}getNumberType(){var t;return f(this,qe)?(Si("getNumberType"),Z.utils.getNumberType(C(this,T,Ur).call(this),(t=f(this,X))==null?void 0:t.iso2)):null}getSelectedCountry(){return f(this,X)??null}getValidationError(){var n;if(!f(this,qe))return null;Si("getValidationError");const t=(n=f(this,X))==null?void 0:n.iso2;return Z.utils.getValidationError(C(this,T,Ur).call(this),t)}isValidNumber(){var i,o;if(!f(this,qe))return null;Si("isValidNumber");const t=(i=f(this,X))==null?void 0:i.dialCode,n=(o=f(this,X))==null?void 0:o.iso2,r=C(this,T,Ur).call(this),s=Z.utils.getCoreNumber(r,n);if(s){if(t===pf.DIAL_CODE&&s[0]===pf.MOBILE_PREFIX&&s.length!==pf.MOBILE_CORE_LENGTH)return!1;if(!Vr.ALPHA_UNICODE.test(r)&&t){const l=r.startsWith("+")?r.slice(1+t.length):r,u=Bi(l).length;if(s.length>u)return!1}}return C(this,T,Op).call(this,"possible")}isValidNumberPrecise(){return f(this,qe)?(Si("isValidNumberPrecise"),C(this,T,Op).call(this,"precise")):null}setSelectedCountry(t){var o,a;if(!f(this,qe))return;const n=t==null?void 0:t.toLowerCase();if(!Pa(n))throw new Error(`Invalid iso2 code: '${n}'`);const r=(o=f(this,X))==null?void 0:o.iso2;if(!(t&&n!==r||!t&&r))return;C(this,T,cr).call(this,n),C(this,T,Rp).call(this,((a=f(this,X))==null?void 0:a.dialCode)||"");const i=C(this,T,Qt).call(this);C(this,T,ki).call(this,i),C(this,T,fa).call(this),C(this,T,Vt).call(this,qt.INPUT,{isCountryChange:!0})}setNumber(t){if(!f(this,qe))return;const n=f(this,dn).normalise(t),r=C(this,T,Wu).call(this,n);C(this,T,ki).call(this,n),r&&C(this,T,fa).call(this),C(this,T,Vt).call(this,qt.INPUT,{isSetNumber:!0})}setPlaceholderNumberType(t){f(this,qe)&&(f(this,ge).placeholderNumberType=t,C(this,T,Hu).call(this))}setDisabled(t){f(this,qe)&&f(this,Q).setDisabled(t)}setReadonly(t){f(this,qe)&&f(this,Q).setReadonly(t)}static forEachInstance(t,...n){const r=[...Z.instances.values()],s=n[0];r.forEach(i=>{var o,a,l,u;if(i instanceof Sr)switch(t){case"handleUtilsLoaded":C(o=i,T,TE).call(o);break;case"handleUtilsFailure":C(a=i,T,PE).call(a,s);break;case"handleAutoCountryLoaded":C(l=i,T,jp).call(l);break;case"handleAutoCountryFailure":C(u=i,T,_E).call(u);break}})}},Q=new WeakMap,ge=new WeakMap,mo=new WeakMap,Qn=new WeakMap,xl=new WeakMap,go=new WeakMap,wl=new WeakMap,bl=new WeakMap,Sl=new WeakMap,X=new WeakMap,In=new WeakMap,Zn=new WeakMap,qe=new WeakMap,Ln=new WeakMap,dn=new WeakMap,ri=new WeakMap,yo=new WeakMap,fn=new WeakMap,jn=new WeakMap,T=new WeakSet,Qt=function(){const t=f(this,Q).telInputEl.value.trim();return f(this,dn).normalise(t)},zr=function(t){f(this,Q).telInputEl.value=f(this,dn).denormalise(t)},aE=function(t){var a,l;const{initialCountry:n,initialCountryLookup:r,loadUtils:s}=t,i=!n&&!!r,o=!!s&&!Z.utils;return i&&P(this,fn,Ix()),o&&P(this,jn,Ix()),Promise.all([(a=f(this,fn))==null?void 0:a.promise,(l=f(this,jn))==null?void 0:l.promise]).then(()=>{})},lE=function(){P(this,Ln,new AbortController),C(this,T,uE).call(this),f(this,Q).buildMarkup(f(this,Qn),f(this,Sl)),C(this,T,_p).call(this),C(this,T,cE).call(this),C(this,T,dE).call(this),f(this,ge).dropdownAlwaysOpen&&this.openCountrySelector()},uE=function(){lD(f(this,Qn),f(this,ge)),cD(f(this,Qn),f(this,ge)),P(this,Sl,sD(f(this,Qn)))},_p=function(t=!1){const n=f(this,Q).telInputEl.getAttribute("value"),r=f(this,dn).normalise(n??""),s=C(this,T,Qt).call(this),o=r&&r.startsWith("+")&&(!s||!s.startsWith("+"))?r:s,a=C(this,T,Ti).call(this,o),l=Rx(o),{initialCountry:u,initialCountryLookup:c}=f(this,ge),d=!u&&!!c,h=d&&Z.autoCountry?Z.autoCountry:u,m=d&&!t&&!Z.autoCountry,v=Pa(h);a?l?v?C(this,T,cr).call(this,h):m||C(this,T,cr).call(this,$5.ISO2):(v&&C(this,T,cr).call(this,h),C(this,T,Wu).call(this,o)):v?C(this,T,cr).call(this,h):m||C(this,T,cr).call(this,""),o&&C(this,T,ki).call(this,o)},cE=function(){C(this,T,hE).call(this),f(this,ge).countrySelectorMode!==Ie.OFF&&f(this,Q).bindAllInitialCountrySelectorListeners(f(this,Ln).signal,()=>this.openCountrySelector(),()=>C(this,T,_i).call(this)),f(this,Q).bindHiddenInputSubmitListener(f(this,Ln).signal,()=>this.getNumber(),()=>{var t;return((t=f(this,X))==null?void 0:t.iso2)||""})},dE=function(){if(f(this,jn)){const{loadUtils:t}=f(this,ge),n=()=>
85{Z.attachUtils(t).catch(()=>{})};Z.documentReady()?n():window.addEventListener("load",n,{signal:f(this,Ln).signal})}f(this,fn)&&(f(this,X)?f(this,fn).resolve():C(this,T,fE).call(this))},fE=async function(){if(Z.autoCountry){C(this,T,jp).call(this);return}if(f(this,Q).setLoading(!0),!Z.startedLoadingAutoCountry&&(Z.startedLoadingAutoCountry=!0,typeof f(this,ge).initialCountryLookup=="function")){let t;try{const n=await Promise.race([f(this,ge).initialCountryLookup(),new Promise((s,i)=>{t=setTimeout(()=>i(new Error("intl-tel-input: initialCountryLookup timed out after 10s")),1e4)})]),r=typeof n=="string"?n.toLowerCase():"";if(!Pa(r)){Z.startedLoadingAutoCountry=!1,Sr.forEachInstance("handleAutoCountryFailure");return}Z.autoCountry=r,setTimeout(()=>Sr.forEachInstance("handleAutoCountryLoaded"))}catch{Z.startedLoadingAutoCountry=!1,Sr.forEachInstance("handleAutoCountryFailure")}finally{t!==void 0&&clearTimeout(t)}}},Tp=function(){this.openCountrySelector(),f(this,Q).prefillSearchWithPlus()},Pp=function(t){const n=f(this,Q).telInputEl.selectionStart||0,r=t.substring(0,n-1),s=t.substring(n);return C(this,T,zr).call(this,r+s),n-1},hE=function(){C(this,T,vE).call(this),C(this,T,xE).call(this),C(this,T,wE).call(this)},pE=function(t){C(this,T,Pp).call(this,t),C(this,T,Tp).call(this)},mE=function(t,n){const r=C(this,T,Pp).call(this,t);f(this,Q).telInputEl.setSelectionRange(r,r),f(this,Q).playStrictRejectAnimation(),C(this,T,Vt).call(this,qt.STRICT_REJECT,{source:"key",rejectedInput:n,reason:"invalid"})},gE=function(t,n){const r=f(this,Q).telInputEl.selectionStart||0,i=t.substring(0,r).replace(Vr.NON_PLUS_NUMERIC_GLOBAL,"").length,o=C(this,T,Ur).call(this),a=fD(o,t,Z.utils,f(this,X),f(this,ge).separateDialCode),l=hD(i,a,r,n);C(this,T,zr).call(this,a),f(this,Q).telInputEl.setSelectionRange(l,l)},yE=function(t){if(t.startsWith("+")&&f(this,X)&&C(this,T,Ti).call(this,t)){const n=Ax(t,!0,!0,f(this,X));C(this,T,zr).call(this,n)}},vE=function(){P(this,ri,Vr.ALPHA_UNICODE.test(C(this,T,Qt).call(this))),f(this,Q).telInputEl.addEventListener("input",f(this,Uc),{signal:f(this,Ln).signal})},Uc=new WeakMap,xE=function(){const{strictMode:t,separateDialCode:n}=f(this,ge);!t&&!n||f(this,Q).telInputEl.addEventListener("keydown",f(this,$c),{signal:f(this,Ln).signal})},$c=new WeakMap,wE=function(){f(this,ge).strictMode&&f(this,Q).telInputEl.addEventListener("paste",f(this,Bc),{signal:f(this,Ln).signal})},Bc=new WeakMap,bE=function(){var S;const t=f(this,Q).telInputEl,n=f(this,yo);if(P(this,yo,null),!n)return!1;const r=n.pastedRaw,s=n.value,i=n.selectionStart,o=n.selectionEnd,a=s.slice(0,i),l=s.slice(o),u=(S=f(this,X))==null?void 0:S.iso2,c=f(this,dn).normalise(r),d=i===0&&o>0,h=!s.startsWith("+")||d,m=c.replace(Vr.NON_PLUS_NUMERIC_GLOBAL,""),v=m.startsWith("+"),x=m.replace(/\+/g,""),b=v&&h?`+${x}`:x;let y=a+b+l,g=b!==c?"invalid":null;if(y.length>30)return f(this,Q).playStrictRejectAnimation(),C(this,T,Vt).call(this,qt.STRICT_REJECT,{source:"paste",rejectedInput:r,reason:"max-length"}),C(this,T,Bu).call(this,n),!0;if(y.length>5&&Z.utils){let _=Z.utils.getCoreNumber(y,u);for(;_.length===0&&y.length>0;)y=y.slice(0,-1),_=Z.utils.getCoreNumber(y,u);if(!_)return f(this,Q).playStrictRejectAnimation(),C(this,T,Vt).call(this,qt.STRICT_REJECT,{source:"paste",rejectedInput:r,reason:"max-length"}),C(this,T,Bu).call(this,n),!0;if(f(this,In)&&_.length>f(this,In))if(o===s.length){const A=_.length-f(this,In);y=y.slice(0,y.length-A),g="max-length"}else return f(this,Q).playStrictRejectAnimation(),C(this,T,Vt).call(this,qt.STRICT_REJECT,{source:"paste",rejectedInput:r,reason:"max-length"}),C(this,T,Bu).call(this,n),!0}C(this,T,zr).call(this,y);const w=i+b.length;return t.setSelectionRange(w,w),g&&(c.length>0&&b.length===0&&f(this,Q).playStrictRejectAnimation(),C(this,T,Vt).call(this,qt.STRICT_REJECT,{source:"paste",rejectedInput:r,reason:g})),!1},Bu=function(t){C(this,T,zr).call(this,t.value),f(this,Q).telInputEl.setSelectionRange(t.selectionStart,t.selectionEnd)},SE=function(t){const n=Number(f(this,Q).telInputEl.getAttribute("maxlength"));return n&&t.length>n?t.substring(0,n):t}
85,Vt=function(t,n={}){const r=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});f(this,Q).telInputEl.dispatchEvent(r)},ki=function(t){var i;const{numberDisplayFormat:n,separateDialCode:r}=f(this,ge);let s=t;if(Z.utils&&f(this,X)){const o=Nx(t),a=!s.startsWith("+")&&!r,l=n===_t.NATIONAL&&!o||a;let u;l?u=_t.NATIONAL:n===_t.E164&&!o?u=_t.E164:u=_t.INTERNATIONAL,s=Z.utils.formatNumber(s,(i=f(this,X))==null?void 0:i.iso2,u)}s=C(this,T,Lp).call(this,s),C(this,T,zr).call(this,s)},Wu=function(t){const n=C(this,T,Np).call(this,t);return n!==null?C(this,T,cr).call(this,n):!1},CE=function(t){var a,l;const n=(a=f(this,X))==null?void 0:a.dialCode,r=(l=f(this,X))==null?void 0:l.nationalPrefix;if(t.startsWith("+")||!n)return t;const o=r&&t.startsWith(r)&&!f(this,ge).separateDialCode?t.substring(1):t;return`+${n}${o}`},Np=function(t){var a,l;const n=t.indexOf("+");let r=n>0?t.substring(n):t;const s=(a=f(this,X))==null?void 0:a.iso2;r=C(this,T,CE).call(this,r);const i=C(this,T,Ti).call(this,r,!0),o=Bi(r);if(i){const u=Bi(i),c=f(this,go)[u];return c.length===1?c[0]===s?null:c[0]:C(this,T,EE).call(this,c,u,o)}else if(r.startsWith("+")&&o.length){const u=((l=f(this,X))==null?void 0:l.dialCode)||"";return u&&u.startsWith(o)?null:""}else if((!r||r==="+")&&!s&&f(this,Zn))return f(this,Zn);return null},EE=function(t,n,r){var m,v,x,b;const s=(m=f(this,X))==null?void 0:m.iso2,i=(v=f(this,X))==null?void 0:v.dialCode;if(!s&&f(this,Zn)&&t.includes(f(this,Zn)))return f(this,Zn);if(i===AC.NANP&&Rx(r))return null;const a=(x=f(this,X))==null?void 0:x.areaCodes,l=(b=f(this,X))==null?void 0:b.priority;if(a){const y=a.map(g=>`${i}${g}`);for(const g of y)if(r.startsWith(g))return null}const c=a&&!(l===0)&&r.length>n.length,d=s&&t.includes(s)&&!c,h=s===t[0];return!d&&!h?t[0]:null},cr=function(t){var r;const n=((r=f(this,X))==null?void 0:r.iso2)||"";return P(this,X,t?f(this,bl).get(t):null),f(this,X)&&P(this,Zn,f(this,X).iso2),f(this,Q).setSelectedCountry(f(this,X)),C(this,T,Hu).call(this),C(this,T,Ap).call(this),n!==t},Ap=function(){var l;const{strictMode:t,placeholderNumberType:n,allowedNumberTypes:r}=f(this,ge);if(!t||!Z.utils)return;const s=(l=f(this,X))==null?void 0:l.iso2;if(!s){P(this,In,null);return}let i=Z.utils.getExampleNumber(s,n,_t.E164),o=i;for(;Z.utils.isValidNumber(i,s,r);)o=i,i+="0";const a=Z.utils.getCoreNumber(o,s);P(this,In,a.length),s==="by"&&P(this,In,a.length+1)},Hu=function(){const{placeholderNumberPolicy:t,placeholderNumberType:n,numberDisplayFormat:r,customPlaceholder:s}=f(this,ge),i=t===al.AGGRESSIVE||!f(this,Q).hadInitialPlaceholder&&t===al.POLITE;if(!Z.utils||!i)return;let o=f(this,X)?Z.utils.getExampleNumber(f(this,X).iso2,n,r):"";o=C(this,T,Lp).call(this,o),typeof s=="function"&&(o=s(o,f(this,X))),f(this,Q).telInputEl.setAttribute("placeholder",o)},kE=function(t){if(!t)return;const n=t.dataset[Gr.ISO2],r=C(this,T,cr).call(this,n);C(this,T,_i).call(this);const s=t.dataset[Gr.DIAL_CODE];C(this,T,Rp).call(this,s);const i=C(this,T,Qt).call(this);C(this,T,ki).call(this,i),f(this,Q).telInputEl.focus(),r&&(C(this,T,fa).call(this),C(this,T,Vt).call(this,qt.INPUT,{isCountryChange:!0}))},_i=function(t){!f(this,Q).isCountrySelectorOpen()||f(this,ge).dropdownAlwaysOpen&&!t||(f(this,Q).closeCountrySelector(),C(this,T,Vt).call(this,qt.CLOSE_COUNTRY_SELECTOR))},Rp=function(t){const n=C(this,T,Qt).call(this);if(!n.startsWith("+"))return;const r=`+${t}`,s=C(this,T,Ti).call(this,n);let i;s?i=n.replace(s,r):i=r,C(this,T,zr).call(this,i)},Ti=function(t,n){if(!t.startsWith("+"))return"";let r="",s="",i=!1;for(let o=0;o<t.length;o++){const a=t.charAt(o);if(!/[0-9]/.test(a))continue;if(s+=a,!!!f(this,go)[s])break;if(f(this,wl).has(s)){if(r=t.substring(0,o+1),i=!0,!n)break}else n&&i&&(r=t.substring(0,o+1));if(s.length===f(this,xl))break}return r},Ip=function(t){var i;const n=(i=f(this,X))==null?void 0:i.dialCode,r=Bi(t);return(f(this,ge).separateDialCode&&!t.startsWith("+")&&n&&r?`+${n}`:"")+t},Ur=function(){const t=C(this,T,Qt).call(this);return C(this,T,Ip).call(this,t)},Lp=function(t){const n=!!C(this,T,Ti).call(this,t),r=Ax(t,n,f(this,ge).separateDialCode,f(this,X));return C(this,T,SE).call(this,r)},fa=function(){C(this,T,Vt).call(this,qt.COUNTRY_CHANGE,f(this,X)??null)},jp=function(){if(!f(this,fn)||!Z.autoCountry)return;if(!f(this,qe)){f(this,fn).resolve();return}const t=document.activeElement===f(this,Q).telInputEl,n=!!C(this,T,Qt).call(this);f(this,Q).isLoading()&&!(t&&n)?this.setSelectedCountry(Z.autoCountry):P(this,Zn,Z.autoCountry),f(this,Q).setLoa
85ding(!1),f(this,fn).resolve()},_E=function(){var t,n;if(!f(this,qe)){(t=f(this,fn))==null||t.reject();return}C(this,T,_p).call(this,!0),f(this,Q).setLoading(!1),(n=f(this,fn))==null||n.reject()},TE=function(){var r,s,i;if(!f(this,qe)){(r=f(this,jn))==null||r.resolve();return}if(!Z.utils){(s=f(this,jn))==null||s.resolve();return}const t=C(this,T,Qt).call(this),n=document.activeElement===f(this,Q).telInputEl;t&&!n&&C(this,T,ki).call(this,t),f(this,X)&&(C(this,T,Hu).call(this),C(this,T,Ap).call(this)),(i=f(this,jn))==null||i.resolve()},PE=function(t){var n,r;if(!f(this,qe)){(n=f(this,jn))==null||n.reject(t);return}(r=f(this,jn))==null||r.reject(t)},Op=function(t){var l;const{allowNumberExtensions:n,allowPhonewords:r,allowedNumberTypes:s}=f(this,ge),i=(l=f(this,X))==null?void 0:l.iso2,o=C(this,T,Ur).call(this);return!f(this,X)&&!Nx(o)||!(t==="precise"?Z.utils.isValidNumberPrecise:Z.utils.isValidNumber)(o,i,s)?!1:Vr.ALPHA_UNICODE.test(o)?!!Z.utils.getExtension(o,i)?n:r:!0},Sr),gD=async e=>{if(Z.utils||Z.startedLoadingUtils)return null;if(typeof e!="function")throw new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utils module, not ${typeof e}`);Z.startedLoadingUtils=!0;try{const t=await e(),n=t==null?void 0:t.default;if(!n||typeof n!="object")throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return Z.utils=n,kp.forEachInstance("handleUtilsLoaded"),!0}catch(t){throw kp.forEachInstance("handleUtilsFailure",t),t}},Z=Object.assign((e,t)=>{const n=new kp(e,t);return Z.instances.set(String(n.id),n),e.iti=n,n},{defaults:Eg,documentReady:()=>document.readyState==="complete",getAllCountries:()=>Fu,getInstance:e=>{const t=e.dataset[Gr.INSTANCE_ID];return t?Z.instances.get(t)??null:null},instances:new Map,attachUtils:gD,startedLoadingUtils:!1,startedLoadingAutoCountry:!1,version:"29.1.2",NUMBER_FORMAT:_t,NUMBER_TYPE:zu,VALIDATION_ERROR:H5,PLACEHOLDER_POLICY:al,COUNTRY_SELECTOR_MODE:Ie}),K6=Z;function NE(){return uN({queryKey:["catalog"],staleTime:5*60*1e3,queryFn:async()=>{var n;const e=await vg.products.list(),t=new Map;for(const r of e)r.code&&t.set(r.code,{priceCents:(n=r.price)==null?void 0:n.amount,active:r.status==="active"});return t}})}function yD(e){var n;const{data:t}=NE();if(!(!e||!t))return(n=t.get(e))==null?void 0:n.priceCents}function G6(e){const{data:t}=NE();if(!e||!t)return!0;const n=t.get(e);return n?n.active:!0}const _g="/mon-engagement",q6="Je m'engage",AE=lC()(cC(e=>({engagement:null,prendre:t=>{const n={...t,unitPrice:{...t.unitPrice,amount:Math.round(t.unitPrice.amount)},quantity:1};Mu("ajout_panier",n,1),e({engagement:n})},oublier:()=>e({engagement:null})}),{name:"kebchi-engagement",version:1,storage:uC(()=>sessionStorage)}));function vD(e){e!==_g&&AE.getState().oublier()}function xD(){const{pathname:e}=Sn();k.useEffect(()=>vD(e),[e])}function wD(e,t,n,r){if(xg(e.mode??"oneshot")){AE.getState().prendre(e),n(_g);return}wg.getState().add(e,t),r==null||r()}function Q6(){const e=Nl();return(t,n=1,r)=>wD(t,n,e,r)}function bD(e=typeof window<"u"?window.location.hostname:""){return/(^|\.)kebchi\.dev$/.test(e)?"https://espace.kebchi.dev":"https://espace.kebchi.fr"}const RE=[{to:"/dons/arbre-fruitier",emoji:"🌳",label:"Arbres fruitiers"},{to:"/dons/colis-alimentaire",emoji:"📦",label:"Colis alimentaires"},{to:"/dons/orphelins",emoji:"🧒",label:"Don pour orphelin"},{to:"/dons/omra-procuration",emoji:"🕋",label:"Omra pour défunt"},{to:"/dons/puits",emoji:"💧",label:"Puits"},{to:"/dons/aqiqa",emoji:"🍼",label:"Aqiqa (nouveau né)"},{to:"/dons/abonnement",emoji:"⭐",label:"Kebchi+"}],SD="/dons/abonnement",IE="/dons/omra-procuration",LE="/blog",zc=bD(),CD="/donner";function ED({size:e,strokeWidth:t,className:n}){return p.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",className:n,"aria-hidden":"true",children:[p.jsx("path",{d:"M3 20.5h18"}),p.jsx("path",{d:"M5.5 20.5V5.5h13v15"}),p.jsx("path",{d:"M5.5 9.5h13"}),p.jsx("path",{d:"M13.5 20.5V14h3.5v6.5"})]})}function jE({className:e}){return p.jsx("svg",{width:"10",height:"6",viewBox:"0 0 10 6",fill:"none","aria-hidden":"true",className:e,children:p.jsx("path",{d:"M1 1L5 5L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function kD(){const e=q3(),t=nC({amount:Q3(),currency:"EUR"});return p.jsxs(Mn,{to:CD,id:"panier-link","aria-label":`Panier : ${e} article${e>1?"s":""}, ${t}`,className:"relative flex items-center rounded-[8px] p-[0.35rem] text-primary transition-transform duration-200 hover:scale-105 lg:gap-3 lg:border lg:border-night/10 lg:bg-night/5 lg:px-4 lg:py-2",children:[p.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-5 w-5 shrink-0 text-amber-400","aria-hidden":"true",children:[p.jsx("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),p.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),p.jsx("path",{d:"M16 10a4 4 0 0 1-8 0"})]}),p.jsxs("div",{className:"hidden flex-col items-end leading-none lg:flex","aria-hidden":"true",children:[p.jsx("span",{className:"text-[10px] uppercase tracking-[0.05em] text-violet-300",children:"Panier"}),p.jsx("span",{className:"text-sm font-bold leading-none text-white",children:t})]}),p.jsx("span",{"aria-hidden":"true",className:"absolute -right-[5px] -top-[3px] flex h-4 min-w-[1rem] items-center justify-center rounded-full bg-amber-400 px-[0.2rem] text-[9px] font-bold leading-none text-night shadow-[0_0_10px_rgba(251,191,36,0.5)] lg:static lg:h-5 lg:min-w-[1.25rem] lg:rounded-[4px] lg:px-1.5 lg:text-[10px]",children:e})]})}const Lx="flex w-full items-center justify-between rounded-[10px] px-4 py-3.5 text-base font-semibold text-indigo-200 transition-[background-color,transform] duration-200 hover:translate-x-1 hover:bg-navbar-line/50 hover:text-white";function _D({open:e,onNavigate:t}){const[n,r]=k.useState(!1),s=e?void 0:-1;return p.jsx("div",{id:"navbar-mobile-menu","data-nav-mobile-menu":!0,"aria-hidden":!e,className:G("fixed left-[3%] right-[3%] top-[4.5rem] z-[9999] rounded-[16px] font-[family-name:var
85(--kc-font-system)] leading-[1.5] border border-navbar-line bg-navbar-ink/[0.98] text-primary [transition:max-height_0.5s_cubic-bezier(0.4,0,0.2,1),box-shadow_0.3s_ease,opacity_0.3s_ease] sm:left-[2.5%] sm:right-[2.5%] sm:top-[5.5rem] lg:hidden",e?"max-h-[80vh] overflow-y-auto opacity-100 shadow-[0_20px_40px_rgba(45,0,84,0.15)]":"max-h-0 overflow-hidden opacity-0"),children:p.jsx("div",{className:"px-6 pb-6 pt-4",children:p.jsxs("ul",{children:[p.jsxs("li",{children:[p.jsxs("button",{type:"button","data-nav-mobile-actions":!0,tabIndex:s,"aria-expanded":n,onClick:()=>r(i=>!i),className:G(Lx,n&&"border border-navbar-line bg-navbar-line/50"),children:[p.jsx("span",{children:"Nos actions"}),p.jsx(jE,{className:G("h-3 w-3 transition-transform duration-300",n&&"rotate-180")})]}),p.jsx("ul",{className:G("mb-1 overflow-hidden rounded-b-[10px] bg-navbar-deep/80 [transition:max-height_0.4s_cubic-bezier(0.4,0,0.2,1),padding_0.3s_ease]",n?"max-h-[500px] py-2":"max-h-0 py-0"),children:RE.map(i=>p.jsx("li",{className:G("transition duration-200",n?"translate-x-0 opacity-100":"-translate-x-2.5 opacity-0"),children:p.jsxs(Mn,{to:i.to,tabIndex:n?s:-1,onClick:t,className:"flex items-center justify-start gap-3 px-4 py-2.5 text-base font-semibold text-indigo-200 transition-colors duration-200 hover:bg-navbar-line/50 hover:text-white",children:[p.jsx("span",{className:"text-xl leading-[1.5]","aria-hidden":"true",children:i.emoji})," ",i.label]})},i.to))})]}),p.jsx("li",{children:p.jsxs(Mn,{to:LE,tabIndex:s,onClick:t,className:Lx,children:[p.jsx("span",{className:"text-xl leading-[1.5]","aria-hidden":"true",children:"📝"})," ","Blog"]})}),p.jsx("li",{children:p.jsxs("a",{href:zc,tabIndex:s,onClick:t,className:"mt-2 flex w-full items-center justify-center rounded-[50px] px-6 py-4 text-base font-semibold text-indigo-200 shadow-[0_4px_15px_rgba(124,58,237,0.35)] transition-colors duration-200 hover:bg-navbar-line/50 hover:text-white",children:[p.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"mr-2 stroke-white","aria-hidden":"true",children:[p.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),p.jsx("circle",{cx:"12",cy:"7",r:"4"})]}),"Mon compte"]})})]})})})}const yf="relative flex items-center gap-2 overflow-hidden px-2 py-1 text-sm leading-[1.5] transition-colors duration-300 after:absolute after:bottom-0 after:left-0 after:h-[2px] after:w-full after:origin-left after:scale-x-0 after:rounded-[2px] after:bg-white after:transition-transform after:duration-300 after:content-[''] hover:after:scale-x-100";function TD({position:e="fixed"}){const[t,n]=k.useState(!1),[r,s]=k.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsxs("nav",{"aria-label":"Navigation principale","data-site-navbar":"",className:G(e,"animate-navbar-enter left-1/2 top-3 z-50 -translate-x-1/2 flex w-[94%] max-w-[80rem] items-center justify-between overflow-hidden rounded-[20px] border border-navbar-line bg-brand-navbar px-3 py-2 font-sans leading-[1.5] text-night shadow-[0_10px_40px_rgba(0,0,0,0.5)] outline outline-1 outline-white/10 backdrop-blur-[24px] sm:top-6 sm:w-[95%] sm:px-6 sm:py-3 lg:overflow-visible"),children:[p.jsx("div",{className:"min-w-0 shrink overflow-hidden",children:p.jsx(Mn,{to:"/","aria-label":"Accueil Kebchi",className:"flex min-w-0 items-center",children:p.jsx("img",{src:`${A4}/general/kebchi-logo-white.png`,alt:"Kebchi Solidarity",className:"block h-[20px] w-auto object-contain min-[400px]:h-[22px] sm:h-[23px] lg:h-[25px]"})})}),p.jsxs("div",{className:"hidden items-center gap-8 text-sm font-medium leading-[1.5] lg:flex",children:[p.jsxs("div",{className:"group relative","data-nav-actions":!0,onKeyDown:i=>i.key==="Escape"&&s(!1),onBlur:i=>!i.currentTarget.contains(i.relatedTarget)&&s(!1),children:[p.jsxs("button",{type:"button","aria-haspopup":"true","aria-expanded":r,onClick:()=>s(i=>!i),className:G(yf,"font-medium text-indigo-300 hover:text-white"),children:[p.jsx("span",{children:"Nos actions"}),p.jsx(jE,{className:G("h-[6px] w-[10px] transition-transform duration-200 group-hover:rotate-180",r&&"rotate-180")}
85)]}),p.jsx("div",{"data-nav-actions-menu":!0,className:G("absolute left-1/2 top-full z-10 -translate-x-1/2 pt-3 transition-[opacity,visibility] duration-200 group-hover:visible group-hover:opacity-100",r?"visible opacity-100":"invisible opacity-0"),children:p.jsx("div",{className:"grid min-w-[520px] grid-cols-2 gap-1 rounded-[20px] border border-navbar-line bg-navbar-deep p-5 shadow-[0_20px_25px_-5px_rgba(0,0,0,0.1)]",children:RE.map(i=>p.jsxs(Mn,{to:i.to,onClick:()=>s(!1),className:"flex items-center gap-3 rounded-[12px] px-3 py-2.5 text-sm font-medium leading-[1.5] text-indigo-200 transition-colors duration-150 hover:bg-navbar-line/60",children:[p.jsx("span",{className:"w-8 text-center text-xl leading-[1.5]","aria-hidden":"true",children:i.emoji})," ",i.label]},i.to))})})]}),p.jsxs(Mn,{to:IE,className:"inline-flex items-center gap-1.5 rounded-[12px] border border-amber-400/50 bg-gradient-to-r from-amber-400 to-amber-500 px-4 py-2 text-sm font-bold leading-[1.5] text-night shadow-[0_0_15px_rgba(251,191,36,0.3)] transition-transform duration-200 hover:scale-105 hover:from-amber-200 hover:to-amber-400 hover:shadow-none active:scale-95",children:[p.jsx(ED,{size:16,strokeWidth:2,className:"shrink-0 stroke-night"}),"Omra pour un défunt"]}),p.jsx(Mn,{to:LE,className:G(yf,"font-medium text-indigo-300 hover:text-white"),children:"Blog"}),p.jsx("a",{href:zc,className:G(yf,"font-medium text-indigo-300 hover:text-white"),children:"Mon compte"})]}),p.jsxs("div",{className:"flex shrink-0 items-center gap-2 min-[400px]:gap-2.5 sm:gap-3",children:[p.jsx(kD,{}),p.jsx("button",{type:"button","data-nav-burger":!0,"aria-label":t?"Fermer le menu":"Ouvrir le menu","aria-expanded":t,"aria-controls":"navbar-mobile-menu",onClick:()=>n(i=>!i),className:"flex h-9 w-9 flex-col justify-center gap-[5px] p-1.5 text-indigo-200 opacity-80 transition-opacity duration-150 hover:opacity-100 lg:hidden",children:[t&&"translate-y-[7px] rotate-45",t&&"opacity-0",t&&"-translate-y-[7px] -rotate-45"].map((i,o)=>p.jsx("span",{className:G("block h-[2px] w-full rounded-[2px] bg-current transition duration-300",i)},o))})]})]}),p.jsx(_D,{open:t,onNavigate:()=>n(!1)})]})}const PD=[{to:"/dons/arbre-fruitier",label:"Arbres fruitiers"},{to:"/dons/colis-alimentaire",label:"Colis alimentaires"},{to:"/dons/parrainage",label:"Parrainage orphelins"},{to:"/dons/orphelins",label:"Orphelin"},{to:"/dons/omra-procuration",label:"Omra pour défunt"},{to:"/dons/puits",label:"Puits"},{to:"/dons/aqiqa",label:"Aqiqa"},{to:"/dons/mouton",label:"Mouton solidaire"},{to:"/cagnottes/source-espoir",label:"Cagnotte puits"},{to:"/dons/cheveux",label:"Cheveux de bébé"},{to:"/dons/fidya-ramadan",label:"Fidya"},{to:"/dons/libre",label:"Don libre"},{to:"/dons/abonnement",label:"Kebchi+"}],ND=[{to:"/pourquoi-kebchi",label:"Qui sommes-nous ?"},{to:"/notre-concept",label:"Notre concept"},{to:"/blog",label:"Articles"},{to:"/faq",label:"Foire aux questions"},{to:"/questions-religieuses",label:"Questions religieuses",newTab:!0},{to:"https://kebchi.fr/transparence.pdf",label:"Transparence",external:!0,newTab:!0}],AD=[{to:"/mentions-legales",label:"Mentions légales"},{to:"/confidentialite",label:"Confidentialité"},{to:"/cgv",label:"CGV"}],RD=[{label:"TikTok",href:"https://www.tiktok.com/@kebchi.fr",icon:p.jsx("path",{d:"M224 72a48.05 48.05 0 0 1-48-48 8 8 0 0 0-8-8h-40a8 8 0 0 0-8 8v132a20 20 0 1 1-28.57-18.08 8 8 0 0 0 4.57-7.23V88a8 8 0 0 0-9.43-7.88C52.2 84.55 24 116.58 24 156a76 76 0 0 0 152 0v-39.71A103.25 103.25 0 0 0 224 128a8 8 0 0 0 8-8V80a8 8 0 0 0-8-8"})},{label:"Facebook",href:"https://www.facebook.com/Kebchi.fr",icon:p.jsx("path",{d:"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m8 191.63V152h24a8 8 0 0 0 0-16h-24v-24a16 16 0 0 1 16-16h16a8 8 0 0 0 0-16h-16a32 32 0 0 0-32 32v24H96a8 8 0 0 0 0 16h24v63.63a88 88 0 1 1 16 0"})},{label:"YouTube",href:"https://www.youtube.com/@Kebchi",icon:p.jsx("path",{d:"M234.33 69.52a24 24 0 0 0-14.49-16.4C185.56 39.88 131 40 128 40s-57.56-.12-91.84 13.12a24 24 0 0 0-14.49 16.4C19.08 79.5 16 97.74 16 128s3.08 48.5 5.67 58.48a24 24 0 0 0 14.49 16.41C69 215.56 120.4 216 127.34 216h1.32c6.94 0 58.37-.44 91.18-13.11a24 24 0 0 0 14.49-16.41c2.59-10 5.67-28.22 5.67-58.48s-3.08-48.5-5.67-58.48M112 160V96l48 32Z"})},{label:"Instagram",href:"https://www.instagram.com/kebchisolidarity/",icon:p.jsx("path",{d:"M176 24H80a56.06 56.06 0 0 0-56 56v96a56.06 56.06 0 0 0 56 56h96a56.06 56.06 0 0 0 56-56V80a56.06 56.06 0 0 0-56-56m-48 152a48 48 0 1 1 48-48 48.05 48.05 0 0 1-48 48m60-96a12 12 0 1 1 12-12 12 12 0 0 1-12 12m-28 48a32 32 0 1 1-32-32 32 32 0 0 1 32 32"})}],OE="mb-6 text-lg font-bold leading-[1.2] text-white",ID="text-sm leading-[1.5] text-purple-200 transition-colors duration-200 hover:text-white",jx="mb-4 flex items-start justify-center gap-3 text-sm leading-[1.5] text-purple-200 md:justify-start",Ox="mt-[2px] shrink-0 text-purple-400";function DE({link:e,className:t}){const n=e.newTab?{target:"_blank",rel:"noreferrer"}:{};return e.external?p.jsx("a",{href:e.to,className:t,...n,children:e.label}):p.jsx(Mn,{to:e.to,className:t,...n,children:e.label})}function Dx({title:e,links:t}){return p.jsxs("div",{children:[p.jsx("h3",{className:OE,children:e}),p.jsx("ul",{className:"flex flex-col gap-3",children:t.map(n=>p.jsx("li",{children:p.jsx(DE,{link:n,className:ID})},n.label))})]})}function LD(){return p.jsx("footer",{className:"border-t border-white/5 bg-night-deep pb-10 pt-20 font-sans leading-[1.5] text-white",children:p.jsxs("div",{className:"mx-auto max-w-[80rem] px-4 sm:px-6 lg:px-8",children:[p.jsxs("div",{className:"mb-16 grid grid-cols-1 gap-12 text-center md:grid-cols-2 md:text-left lg:grid-cols-4",children:[p.jsxs("div",{className:"flex flex-col items-center gap-6 md:items-start",children:[p.jsxs("span",{className:"text-[1.875rem] font-extrabold leading-none tracking-[-0.05em] text-white",children:["kebchi",p.jsx("span",{className:"font-light text-purple-400",children:"solidarity"})]}),p.jsx("p",{className:"m-0 text-sm leading-[1.7] text-purple-200",children:"Une ONG nouvelle génération dédiée à l'impact durable. Transparence, efficacité et proximité sont nos piliers pour un monde meilleur."}),p.jsx("div",{className:"flex gap-4",children:RD.map(e=>p.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer","aria-label":e.label,className:"text-xl leading-[1.5] text-purple-200 transition-colors duration-200 hover:text-white",children:p.jsx("svg",{width:"20",height:"20",viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":"true",children:e.icon})},e.label))})]}),p.jsx(Dx,{title:"Nos Actions",links:PD}),p.jsx(Dx,{title:"Informations",links:ND}),p.jsxs("div",{children:[p.jsx("h3",{className:OE,children:"Service Client"}),p.jsxs("div",{className:"mb-3 flex items-center justify-center gap-2 text-xs font-bold uppercase leading-[1.5] tracking-[0.05em] text-green-400 md:justify-start",children:[p.jsx("span",{className:"animate-dot-pulse h-2 w-2 rounded-[50%] bg-green-500"}),"De 9h30 à 12h30 et de 14h à 17h du lundi au vendredi."]}),p.jsxs("a",{href:"tel:0180893532",className:"mb-1 inline-flex items-center gap-3 rounded-[20px] bg-green-700 px-4 py-3 text-lg font-bold leading-[1.5] text-white shadow-[0_10px_15px_-3px_rgba(22,101,52,0.2)] transition-colors duration-200 hover:bg-green-800",children:[p.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"white",stroke:"none","aria-hidden":"true",children:p.jsx("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.72c.127.96.361 1.903.7 2.81a2 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-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"})}),"01 80 89 35 32"]}),p.jsx("p",{className:"mb-6 ml-1 mt-0 text-xs leading-[1.5] text-purple-200",children:"Appel non surtaxé"}),p.jsxs("div",{className:jx,children:[p.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Ox,"aria-hidden":"true",children:[p.jsx("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),p.jsx("circle",{cx:"12",cy:"10",r:"3"})]}),p.jsx("span",{children:"58 Rue de Dantzig, 75015 Paris"})]}),p.jsxs("div",{className:jx,children:[p.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Ox,"aria-hidden":"true",children:[p.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),p.jsx("polyline",{points:"22,6 12,13 2,6"})]}),p.jsx("span",{children:"[email protected]"})]})]})]}),p.jsxs("div",{className:"flex flex-col items-center gap-4 border-t border-white/10 pt-8 text-xs leading-[1.5] text-purple-400 md:flex-row md:justify-between",children:[p.jsxs("span",{children:["© ",new Date().getFullYear()," Kebchi Association. Tous droits réservés."]}),p.jsx("div",{className:"flex gap-6",children:AD.map(e=>p.jsx(DE,{link:e,className:"text-purple-400 transition-colors duration-200 hover:text-white"},e.label))})]})]})})}const jD=400;function OD(){const[e,t]=k.useState(!1);k.useEffect(()=>{const r=()=>t(window.scrollY>jD);return r(),window.addEventListener("scroll",r,{passive:!0}),()=>window.removeEventListener("scroll",r)},[]);const n=()=>{const r=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.scrollTo({top:0,behavior:r?"auto":"smooth"})};return p.jsx("button",{type:"button",onClick:n,"aria-label":"Retour en haut","aria-hidden":!e,tabIndex:e?0:-1,className:G("fixed bottom-6 left-4 z-[2000] flex h-10 w-10 items-center justify-center rounded-full","bg-primary text-white shadow-[0_14px_32px_rgba(var(--kc-rgb-primary),0.26)]","transition-[opacity,transform,box-shadow,background-color] duration-300","hover:-translate-y-0.5 hover:bg-primary-hover hover:shadow-[0_22px_45px_rgba(var(--kc-rgb-primary),0.35)]","focus-visible:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40","sm:bottom-6 sm:left-6 sm:h-12 sm:w-12",e?"translate-y-0 opacity-100":"pointer-events-none translate-y-20 opacity-0"),children:p.jsx("span",{"aria-hidden":"true",className:"text-base font-bold leading-none sm:text-xl",children:"↑"})})}const ME="e5017607-b7f5-4587-83a8-cb832b81f1c3",VE=()=>ME.length>0;function DD(){if(!VE()||window.$crisp)return;window.$crisp=[],window.CRISP_WEBSITE_ID=ME,window.CRISP_RUNTIME_CONFIG={locale:"fr"};const e=()=>{if(document.querySelector("script[data-crisp]"))return;const n=document.createElement("script");n.src="https://client.crisp.chat/l.js",n.async=!0,n.dataset.crisp="",document.head.appendChild(n)};(typeof window.requestIdleCallback=="function"?n=>window.requestIdleCallback(n,{timeout:4e3}):n=>window.setTimeout(n,2e3))(e)}function Mx(e){var t;(t=window.$crisp)==null||t.push(["do",e?"chat:show":"chat:hide"])}const MD=["/donner","/mon-engagement","/don/merci","/keystatic"],VD=e=>MD.some(t=>e.startsWith(t));function FD(){const{pathname:e}=Sn();return k.useEffect(()=>{if(VE()){if(VD(e)){Mx(!1);return}DD(),Mx(!0)}},[e]),null}/**
86 * @license lucide-react v0.344.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */var zD={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"};/**
91 * @license lucide-react v0.344.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const UD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),tt=(e,t)=>{const n=k.forwardRef(({color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:a="",children:l,...u},c)=>k.createElement("svg",{ref:c,...zD,width:s,height:s,stroke:r,strokeWidth:o?Number(i)*24/Number(s):i,className:["lucide",`lucide-${UD(e)}`,a].join(" "),...u},[...t.map(([d,h])=>k.createElement(d,h)),...Array.isArray(l)?l:[l]]));return n.displayName=`${e}`,n};/**
96 * @license lucide-react v0.344.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const Lo=tt("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
101 * @license lucide-react v0.344.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const $D=tt("Baby",[["path",{d:"M9 12h.01",key:"157uk2"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"5yv0yz"}]]);/**
106 * @license lucide-react v0.344.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const BD=tt("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
111 * @license lucide-react v0.344.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const WD=tt("Compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76",key:"m9r19z"}]]);/**
116 * @license lucide-react v0.344.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const HD=tt("Droplet",[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]]);/**
121 * @license lucide-react v0.344.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const Vx=tt("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3v0a2 2 0 0 1 2 2v0c0 1.1.9 2 2 2v0a2 2 0 0 0 2-2v0c0-1.1.9-2 2-2h3.17",key:"1fi5u6"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2v0a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"xsiumc"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
126 * @license lucide-react v0.344.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const KD=tt("HandCoins",[["path",{d:"M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17",key:"geh8rc"}],["path",{d:"m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"1fto5m"}],["path",{d:"m2 16 6 6",key:"1pfhp9"}],["circle",{cx:"16",cy:"9",r:"2.9",key:"1n0dlu"}],["circle",{cx:"6",cy:"5",r:"3",key:"151irh"}]]);/**
131 * @license lucide-react v0.344.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const GD=tt("HandHeart",[["path",{d:"M11 14h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16",key:"1ifwr1"}],["path",{d:"m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"17abbs"}],["path",{d:"m2 15 6 6",key:"10dquu"}],["path",{d:"M19.5 8.5c.7-.7 1.5-1.6 1.5-2.7A2.73 2.73 0 0 0 16 4a2.78 2.78 0 0 0-5 1.8c0 1.2.8 2 1.5 2.8L16 12Z",key:"1h3036"}]]);/**
136 * @license lucide-react v0.344.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const Tg=tt("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"}]]);/**
141 * @license lucide-react v0.344.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const qD=tt("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
146 * @license lucide-react v0.344.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const QD=tt(
150"MessageCircleHeart",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M15.8 9.2a2.5 2.5 0 0 0-3.5 0l-.3.4-.35-.3a2.42 2.42 0 1 0-3.2 3.6l3.6 3.5 3.6-3.5c1.2-1.2 1.1-2.7.2-3.7",key:"43lnbm"}]]);/**
151 * @license lucide-react v0.344.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const Fx=tt("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
156 * @license lucide-react v0.344.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const ZD=tt("MousePointerClick",[["path",{d:"m9 9 5 12 1.8-5.2L21 14Z",key:"1b76lo"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}]]);/**
161 * @license lucide-react v0.344.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const zx=tt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
166 * @license lucide-react v0.344.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const FE=tt("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
171 * @license lucide-react v0.344.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const YD=tt("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
176 * @license lucide-react v0.344.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const XD=tt("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"}]]);/**
181 * @license lucide-react v0.344.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const Pg=tt("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
186 * @license lucide-react v0.344.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const zE=tt("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"1ogz0v"}]]);/**
191 * @license lucide-react v0.344.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const Ux=tt("Video",[["path",{d:"m22 8-6 4 6 4V8Z",key:"50v9me"}],["rect",{width:"14",height:"12",x:"2",y:"6",rx:"2",ry:"2",key:"1rqjg6"}]]);function Ng({className:e="w-5 h-5"}){return p.jsxs("svg",{viewBox:"0 0 24 24",className:e,xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[p.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),p.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.04-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),p.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),p.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]})}function Dp({size:e,className:t,starClassName:n="fill-google-star",strokeWidth:r}){return p.jsx("div",{className:G("flex",t),children:[0,1,2,3,4].map(s=>p.jsx(Pg,{size:e,strokeWidth:r,className:n},s))})}
195function JD(e){return`https://ui-avatars.com/api/?name=${e.replace(/ /g,"+")}&background=7c4dff&color=fff&size=100`}function eM({review:e,animateEntrance:t=!1,placement:n="bottom"}){const r=n==="top";return p.jsx(He.div,{initial:t?{opacity:0,scale:.9,y:r?-20:20,x:"-50%"}:!1,animate:{opacity:1,scale:1,y:0,x:"-50%"},transition:{duration:.3},className:G("absolute left-1/2 z-20 w-max",r?"-top-6":"-bottom-6"),children:p.jsxs("div",{className:"kb-card-pulse flex max-w-[220px] flex-col gap-2 rounded-2xl border border-slate-50 bg-white p-3 shadow-xl shadow-purple-900/10 sm:max-w-[250px] sm:p-4",children:[p.jsxs("div",{className:"flex items-center justify-between gap-3",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"h-8 w-8 overflow-hidden rounded-full border border-slate-100 bg-slate-100",children:p.jsx("img",{src:JD(e.avatarName),alt:e.avatarName,className:"h-full w-full object-cover"})}),p.jsxs("div",{className:"flex flex-col",children:[p.jsx("span",{className:"text-[10px] font-bold leading-none text-night",children:e.author}),p.jsx(Dp,{size:8,className:"mt-0.5 gap-0.5",starClassName:"fill-google-yellow text-google-yellow"})]})]}),p.jsx(Ng,{className:"h-4 w-4"})]}),p.jsx("p",{className:"text-[10px] font-semibold leading-tight text-slate-600",children:e.text})]})})}const $x={purple:{halo:"bg-purple-900/5",veil:"from-purple-900/60"},night:{halo:"bg-night/5",veil:"from-night/60"}};function tM({videoUrl:e,posterUrl:t,imageUrl:n,preload:r,tone:s="purple",badges:i,review:o,animateReview:a=!1,reviewPlacement:l="bottom",forceAutoplay:u=!1}){const c=k.useRef(null);return k.useEffect(()=>{const d=c.current;!u||!d||(d.defaultMuted=!0,d.muted=!0,d.play().catch(()=>{}))},[u]),p.jsxs("div",{className:"relative z-10 mx-auto w-full max-w-md",children:[p.jsx("div",{className:G("absolute inset-0 -z-10 hidden rotate-6 scale-105 rounded-[40px] border border-purple-100 backdrop-blur-sm sm:block",$x[s].halo)}),p.jsxs("div",{className:"relative h-[380px] w-full overflow-hidden rounded-3xl border-4 border-white bg-slate-900 shadow-xl shadow-purple-900/10 sm:h-[480px] sm:rounded-[32px]",children:[p.jsx("div",{className:G("pointer-events-none absolute inset-0 z-10 bg-gradient-to-t via-transparent to-transparent",$x[s].veil)}),n?p.jsxs(p.Fragment,{children:[p.jsx("img",{src:n,alt:"","aria-hidden":"true",className:"pointer-events-none absolute left-[-50%] top-0 h-full w-[172%] max-w-none select-none blur-2xl"}),p.jsx("img",{src:n,alt:"",className:G("pointer-events-none absolute bottom-[12%] left-[-50%] w-[172%] max-w-none select-none","[-webkit-mask-image:linear-gradient(to_bottom,transparent,#000_120px,#000_calc(100%_-_70px),transparent)] [mask-image:linear-gradient(to_bottom,transparent,#000_120px,#000_calc(100%_-_70px),transparent)]")})]}):p.jsx("video",{ref:c,src:e,poster:t,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:r,className:"pointer-events-none h-full w-full select-none object-cover"})]}),i,p.jsx(eM,{review:o,animateEntrance:a,placement:l})]})}const nM=mC("inline-flex items-center rounded-full font-bold uppercase tracking-wider",{variants:{tone:{night:"border border-purple-200/60 bg-night/5 text-night shadow-sm",water:"border border-blue-200/60 bg-night/5 text-night shadow-sm",lilac:"border border-purple-100 bg-purple-50 text-night",white:"border border-purple-100 bg-white text-night shadow-sm",glass:"border border-white/20 bg-white/10 text-white"},size:{sm:"gap-2 px-3 py-1 text-[10px]",md:"gap-2 px-4 py-1.5 text-xs"}},defaultVariants:{tone:"night",size:"sm"}});function md({tone:e,size:t,className:n,...r}){return p.jsx(He.div,{className:G(nM({tone:e,size:t}),n),...r})}function rM({className:e="font-extrabold tracking-tighter text-night",accentClassName:t="font-light text-purple-500"}){return p.jsxs("span",{className:G(e),children:["kebchi",p.jsx("span",{className:G(t),children:"solidarity"})]})}const sM={[-4]:"-rotate-[4deg]",[-3]:"-rotate-[3deg]",[-2]:"-rotate-[2deg]",[-1]:"-rotate-[1deg]",0:"",1:"rotate-[1deg]",2:"rotate-[2deg]",3:"rotate-[3deg]",4:"rotate-[4deg]",5:"rotate-[5deg]"};function iM({tags:e,borderClassName:t="border-purple-100"}){return p.jsx("div",{className:"flex w-full flex-wrap justify-center gap-1.5 md:w-[90%] md:gap-2",children:e.map((n,r)=>p.jsx("span",{className:G("cursor-default rounded-full border bg-white px-2.5 py-1.5 text-[10px] font-bold text-night shadow-sm md:text-xs",t,sM[n.rotate]),children:n.label},`${n.label}-${r}`))})}function er({x:e,y:t,delay:n,once:r=!0}={}){return{initial:{opacity:0,...e!==void 0&&{x:e},...t!==void 0&&{y:t}},whileInView:{opacity:1,...e!==void 0&&{x:0},...t!==void 0&&{y:0}},viewport:{once:r},...n!==void 0&&{transition:{delay:n}}}}function oM({media:e,toneClassName:t,layout:n}){if("image"in e)return p.jsx("div",{className:"h-14 w-14 shrink-0 overflow-hidden rounded-xl bg-slate-100 shadow-inner",children:p.jsx("img",{src:e.image,alt:e.alt,className:"h-full w-full object-cover"})});const r=e.icon,s=p.jsx(r,{size:26,className:e.iconClassName});return n==="flat"?p.jsx("div",{className:G("flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-xl shadow-inner",t),children:s}):p.jsx("div",{className:"h-14 w-14 shrink-0 overflow-hidden rounded-xl bg-slate-100 shadow-inner",children:p.jsx("div",{className:G("flex h-full w-full items-center justify-center",t),children:s})})}function Bx({step:e,className:t,tagClassName:n,tagIconClassName:r,mediaClassName:s,mediaLayout:i,titleAddon:o}){const a=e.tag.icon;return p.jsxs("div",{className:t,children:[p.jsx("div",{className:"mb-3 flex justify-center",children:p.jsxs("span",{className:G("inline-flex items-center gap-1.5 rounded-full border px-3.5 py-1 text-xs font-extrabold uppercase tracking-widest shadow-sm",n
195),children:[p.jsx(a,{size:13,className:r}),e.tag.label]})}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(oM,{media:e.media,toneClassName:s,layout:i}),p.jsxs("div",{children:[p.jsxs("h3",{className:G("mb-0.5 text-base font-bold leading-tight text-night",o&&"flex items-center gap-1"),children:[e.title,o]}),p.jsx("p",{className:"text-xs leading-normal text-slate-600",children:e.text})]})]})]})}const mu="M 0,0 C 70,0 100,12 100,33 C 100,55 0,45 0,66 C 0,85 50,85 50,100";function aM({energy:e=!1}){return p.jsx("div",{className:G("pointer-events-none absolute bottom-[48px] left-[23%] right-[23%] top-[40px] z-0 hidden md:block",!e&&"opacity-25"),children:p.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[e&&p.jsxs("defs",{children:[p.jsx("filter",{id:"ccGlow",x:"-60%",y:"-60%",width:"220%",height:"220%",children:p.jsx("feGaussianBlur",{stdDeviation:"2.2"})}),p.jsx("mask",{id:"ccDashMask",children:p.jsx("path",{d:mu,fill:"none",className:"stroke-white",strokeWidth:"3",strokeDasharray:"6 6"})})]}),p.jsx("path",{d:mu,fill:"none",className:"stroke-night",strokeWidth:"2.5",strokeDasharray:"6 6",opacity:e?.25:void 0}),e&&p.jsxs("g",{mask:"url(#ccDashMask)",opacity:"0.47",children:[p.jsx("path",{d:mu,fill:"none",className:"kb-energy stroke-purple-400",strokeWidth:"6",strokeLinecap:"round",pathLength:1,strokeDasharray:"0.35 0.65",filter:"url(#ccGlow)"}),p.jsx("path",{d:mu,fill:"none",className:"kb-energy stroke-purple-100",strokeWidth:"3",strokeLinecap:"round",pathLength:1,strokeDasharray:"0.35 0.65"})]})]})})}const lM={water:{card:"shadow-blue-900/5 hover:border-blue-200",tag:"border-blue-200/70 bg-blue-50 text-blue-700",tagIcon:"text-blue-600",media:"bg-blue-50 text-blue-600",outcomeCard:"border-blue-200 hover:border-blue-200",outcomeTag:"border-blue-300 bg-blue-100 text-blue-800",outcomeTagIcon:"text-blue-600 fill-blue-600/15",outcomeHeart:"text-blue-600 fill-blue-600"},violet:{card:"shadow-purple-900/5 hover:border-purple-200",tag:"border-purple-200/70 bg-purple-50 text-purple-700",tagIcon:"text-purple-600",media:"bg-purple-50 text-purple-600",outcomeCard:"border-purple-200 hover:border-purple-200",outcomeTag:"border-purple-300 bg-purple-100 text-purple-800",outcomeTagIcon:"fill-purple-600/15",outcomeHeart:"text-purple-600 fill-purple-600"},mist:{card:"shadow-purple-900/5 hover:border-purple-200",tag:"border-purple-200/70 bg-purple-50",tagIcon:"text-purple-600",media:"bg-purple-50 text-purple-600",outcomeCard:"border-purple-200 hover:border-purple-200",outcomeTag:"bg-purple-100 text-purple-800",outcomeTagIcon:"fill-purple-600/15",outcomeHeart:"text-purple-600 fill-purple-600"},lilac:{card:"shadow-purple-900/5 hover:border-purple-200",tag:"border-purple-200/70 bg-purple-50 text-purple-700",tagIcon:"text-purple-600",media:"bg-purple-50 text-purple-600",outcomeCard:"border-purple-200 hover:border-purple-200",outcomeTag:"bg-purple-100 text-purple-800",outcomeTagIcon:"fill-purple-600/15",outcomeHeart:"text-purple-600 fill-purple-600"}},Wx="relative z-10 w-full border bg-white p-4 transition-colors md:w-[46%]",uM=["rounded-bl-[2rem] rounded-br-xl rounded-tl-xl rounded-tr-[2rem]","rounded-bl-xl rounded-br-[2rem] rounded-tl-[2rem] rounded-tr-xl"];function cM({steps:e,outcome:t,tone:n,mediaLayout:r="nested",energy:s=!1,heartBeat:i=!1}){const o=lM[n];return p.jsxs("div",{className:"relative",children:[p.jsx(aM,{energy:s}),p.jsxs("div",{className:"flex flex-col gap-4 pb-0 md:gap-5",children:[e.map((a,l)=>p.jsxs(He.div,{...er({y:20}),className:G("relative flex w-full flex-col items-center",l%2?"md:items-end":"md:items-start"),children:[p.jsx("div",{className:"absolute bottom-[-18px] left-1/2 h-5 w-0.5 -translate-x-1/2 border-l-2 border-dashed border-slate-300 md:hidden"}),p.jsx(Bx,{step:a,className:G(Wx,"border-slate-100 shadow-md",o.card,uM[l%2]),tagClassName:o.tag,tagIconClassName:o.tagIcon,mediaClassName:o.media,mediaLayout:r})]},a.tag.label)),p.jsx(He.div,{...er({y:20}),className:"relative flex w-full flex-col items-center md:mt-2",children:p.jsx(Bx,{step:t,className:G(Wx,"rounded-2xl text-left shadow-lg",o.outcomeCard),tagClassName:o.outcomeTag,tagIconClassName:o.outcomeTagIcon,mediaClassName:o.media,mediaLayout:r,titleAddon:p.jsx(Tg,{size:15,className:G("shrink-0",o.outcomeHeart,i&&"kb-heart-beat")})})})]})]})}function dM({id:e,className:t,accent:n="purple",eyebrow:r,subtitle:s,steps:i,outcome:o,tone:a,tags:l,tagBorderClassName:u,timeline:c}){const d=n==="blue",h=d?"bg-blue-200/20":"bg-purple-200/20";return p.jsxs("section",{className:G("relative overflow-hidden",t),id:e,children:[p.jsx("div",{className:G("pointer-events-none absolute left-[-10%] top-[10%] h-[400px] w-[400px] rounded-full blur-[80px]",h)}),p.jsx("div",{className:G("pointer-events-none absolute bottom-[20%] right-[-10%] h-[300px] w-[300px] rounded-full blur-[80px]",h)}),p.jsxs("div",{className:"relative z-10 mx-auto max-w-4xl px-4",children:[p.jsxs("div",{className:"mb-10 text-center",children:[p.jsxs(md,{tone:d?"water":"night",className:"mb-4",...er({y:15}),children:[p.jsx(WD,{size:12,className:d?"text-blue-600 fill-blue-600/10":"text-purple-600 fill-purple-600/10"})," ",r]}),p.jsxs(He.h2,{...er({y:15,delay:.1}),className:"mb-4 flex flex-wrap items-center justify-center gap-x-2 gap-y-1 text-3xl font-extrabold leading-tight text-night md:text-5xl",children:[p.jsx(rM,{accentClassName:d?"font-light text-blue-500":"font-light text-purple-500"})," ","s'occupe de tout"," ",p.jsxs("span",{className:"inline-flex items-center gap-1.5 whitespace-nowrap",children:["à 100%",p.jsx(Tg,{className:G("h-[0.75em] w-[0.75em] shrink-0 animate-pulse",d?"text-blue-500 fill-blue-500":"text-purple-500 fill-purple-500")})]})]}),p.jsx(He.p,{...er({y:15,delay:.2}),className:"mx-auto max-w-lg text-base leading-relaxed text-slate-500 md:text-lg",children:s})]}),p.jsx(cM,{steps:i,outcome:o,tone:a,...c}),p.jsx(He.div,{...er({y:15}),className:"mt-8 flex w-full flex-col items-center md:mt-12",children:p.jsx(iM,{tags:l,borderClassName:u})})]})]})}function fM({lines:e,source:t,className:n,eyebrowClassName:r,children:s}){return p.jsxs("div",{className:G("mx-auto max-w-4xl px-6 text-center",n),children:[p.jsxs(md,{tone:"glass",size:"md",className:G("mb-8 shadow-2xl",r),...er({y:10}),children:[p.jsx(BD,{size:14,className:"text-white"})," Hadith"]}),p.jsx(He.h2,{...er({y:20,delay:.2}),className:"mb-8 text-2xl font-bold leading-tight tracking-tight text-white drop-shadow-md md:text-4xl lg:text-5xl",children:e.map((i,o)=>p.jsxs(k.Fragment,{children:[o>0&&p.jsx("br",{}),i]},o))}),p.jsxs(He.div,{...er({delay:.4}),className:"inline-flex flex-col items-center gap-2",children:[p.jsx("div",{className:"mb-3 h-px w-24 bg-white/30"}),p.jsx("span",{className:"text-sm font-semibold tracking-wide text-purple-200",children:t})]}),s]})}const hM=["ennour-gennevilliers.png","tariq-ibn-ziyad-les-mureaux.png","essalam-creil.png","foi-et-unicite-sarcelles.webp","fsip-paris.png","kitab-wa-sunnah-amis-sarcelles.png","amu-mosquee-des-alpes-grenoble.png","aman-nancy-noir.png","amlf-limoges.png","afmv-villiers-le-bel.png","abmoshs-bagneux.png","amc-compiegne.png"],pM={light:{section:"bg-white",title:"text-night",highlight:"text-purple-700",subtitle:"text-slate-400",track:"opacity-75 will-change-transform",logo:"grayscale hover:grayscale-0 hover:opacity-100"},dark:{section:"bg-transparent",title:"text-white",highlight:"text-amber-300",subtitle:"text-purple-200",track:"w-max opacity-90",logo:"brightness-0 invert opacity-80 hover:opacity-100"}};function mM({theme:e,logoBaseUrl:t,loops:n,children:r}){const s=pM[e];return p.jsxs("section",{className:G("relative z-10 overflow-hidden pb-10 pt-6 md:pb-12 md:pt-8",s.section),children:[p.jsxs("div",{className:"mx-auto mb-5 max-w-7xl px-6 text-center md:mb-6",children:[p.jsxs(md,{tone:e==="light"?"lilac":"glass",className:"gap-1.5",children:[p.jsx(FE,{size:12})," Partenaires"]}),p.jsxs("h3",{className:G("mb-1.5 mt-3 text-xl font-extrabold leading-tight md:text-2xl",s.title),children:["Kebchi, partenaire de"," ",p.jsx("span",{className:G("font-extrabold",s.highlight),children:"+100 mosquées"})," dans toute la France"]}),p.jsx("p",{className:G("text-xs font-medium md:text-sm",s.subtitle),children:"Ils nous ont fait confiance pour un impact durable"})]}),p.jsx("div",{className:G("group relative flex overflow-x-hidden",e==="dark"&&"mb-7 md:mb-9"),children:p.jsx("div",{className:G("kb-marquee-p35 flex items-center gap-12 whitespace-nowrap px-6 transition-opacity duration-300 hover:opacity-100 md:gap-16",s.track),children:Array.from({length:n},(i,o)=>hM.map((a,l)=>p.jsx("div",{className:"shrink-0 transform transition-transform duration-300 hover:scale-105",children:p.jsx("img",{src:`${t}/${a}`,alt:`Partenaire ${l+1}`,className:G("h-10 w-auto max-w-[140px] object-contain transition-all duration-300 md:h-12",s.logo)})},`${o}-${a}`)))})}),r]})}
195const Hx=[{name:"Nadia. L",avatarUrl:"https://ui-avatars.com/api/?name=Nadia+L&background=7c4dff&color=fff&size=128",text:"Site fiable et sérieux. Milles merciiis à Kebchi de m'avoir permis de faire une Sadaqa Jariya pour ma défunte maman (paix à son âme) en finançant un puits à Madagascar. Photos et videos m'ont été ..."},{name:"Soulimen Elmesoudi",avatarUrl:"https://ui-avatars.com/api/?name=Soulimen+E&background=7b1fa2&color=fff&size=128",text:"je recommande fortement kebchi, service professionnel, tout est bien expliquer dans les règles al Hamdulilah. C'est un organisme très correct je recommande."},{name:"Wassim Ouchen",avatarUrl:"https://ui-avatars.com/api/?name=Wassim+O&background=7986cb&color=fff&size=128",text:"Comment vous remercier pour tout votre engagement. Grâce à vous, nous pouvons faire de bonnes actions dans ce bas monde. Qu'Allah vous récompense fi Dounia oua3ira"},{name:"Ouardia Hedrache",avatarUrl:"https://ui-avatars.com/api/?name=Ouardia+H&background=ef6c00&color=fff&size=128",text:"Je suis toute emue.franchement c'est une tres bonne nouvelle.je recommande Kebchi,l équipe est tres reactive. qu'Allah nous facilite., Puisse Allah accepter cet..."},{name:"Dadi Dou",avatarUrl:"https://ui-avatars.com/api/?name=Dadi+D&background=e65100&color=fff&size=128",text:"Je vous recommande à 200% . Cela fait des années que nous passons par vous pour les moutons de l'aid el adh7a, plantation d'arbre .. et nous avons à chaque fois été pleinement satisfait."}];function gM({review:e,variant:t}){const n=t==="compact";return p.jsxs("div",{className:n?"relative flex w-[320px] shrink-0 flex-col rounded-2xl border border-slate-100 bg-white p-4 shadow-[0_4px_16px_rgba(46,26,105,0.06)] md:w-[400px] md:p-5":"relative flex w-[320px] shrink-0 flex-col rounded-2xl border border-slate-100 bg-white p-6 shadow-2xl md:w-[400px]",children:[p.jsxs("div",{className:n?"mb-2.5 flex items-center justify-between":"mb-4 flex items-start justify-between",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:n?"h-10 w-10 shrink-0 overflow-hidden rounded-full border border-slate-100":"h-12 w-12 shrink-0 overflow-hidden rounded-full border border-slate-100",children:p.jsx("img",{src:e.avatarUrl,alt:e.name,className:"h-full w-full object-cover"})}),p.jsxs("div",{children:[p.jsx("div",{className:"text-sm font-bold leading-tight text-slate-900",children:e.name}),n&&p.jsx(Dp,{size:13,strokeWidth:0,className:"mt-0.5 gap-[1px]"})]})]}),p.jsx(Ng,{className:"h-6 w-6"})]}),!n&&p.jsx("div",{className:"mb-4 flex items-center gap-2",children:p.jsx(Dp,{size:16,strokeWidth:0,className:"gap-[1px]"})}),p.jsxs("p",{className:n?"line-clamp-3 text-sm leading-snug text-slate-600":"line-clamp-5 text-sm leading-relaxed text-slate-600",children:['"',e.text,'"']})]})}const yM={light:{header:"mb-6 md:mb-8",title:"text-night",lead:"text-slate-500",strong:"text-night",marquee:"py-2"},dark:{header:"relative z-10 mb-12 md:mb-16",title:"",lead:"text-purple-200 opacity-90",strong:"text-white",marquee:"py-4"}};function vM({theme:e}){const t=yM[e],n=[...Hx,...Hx];return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:G("mx-auto max-w-7xl px-6 text-center",t.header),children:[p.jsxs(md,{tone:e==="light"?"lilac":"glass",size:"md",className:"mb-4",children:[p.jsx(QD,{size:14})," Vos avis"]}),p.jsx("h2",{className:G("mb-4 text-4xl font-bold md:text-5xl",t.title),children:"+ 2 000 avis positifs !"}),p.jsxs("p",{className:G("mx-auto max-w-2xl text-lg",t.lead),children:[p.jsx("span",{className:G("font-bold",t.strong),children:"Kebchi"})," est l'association en"," ",p.jsx("span",{className:G("font-bold",t.strong),children:"France"})," la mieux notée sur"," ",p.jsx("span",{className:G("font-bold",t.strong),children:"Google"}),"."]})]}),p.jsx("div",{className:G("group relative flex overflow-hidden",t.marquee),children:p.jsx("div",{className:"kb-marquee-t60 flex items-stretch gap-6 px-6",children:n.map((r,s)=>p.jsx(gM,{review:r,variant:e==="light"?"compact":"detailed"},s))})})]})}const xM="https://cdn.kebchi.fr/site_kebchi/accueil/2026/videos/Landing_page_orphelins_eixogr.mp4",wM="https://cdn.kebchi.fr/site_kebchi/accueil/2026/images/download%20(1).jpg",bM={author:"Ouardia Hedrache",avatarName:"Ouardia Hedrache",text:`"Je suis toute emue.franchement c'est une tres bonne nouvelle.je recommande Kebchi,l équipe est tres reactive. qu'Allah nous facilite., Puisse Allah accepter cet..."`};function SM(){return p.jsx(tM,{videoUrl:xM,imageUrl:wM,preload:"auto",tone:"night",review:bM,animateReview:!0,reviewPlacement:"top"})}const CM=[{icon:p.jsx(qD,{size:15}),label:"Association française 🇫🇷"},{icon:p.jsx(FE,{size:15}),label:"Paiement 100% sécurisé"}],na={hidden:{opacity:0,y:18},show:e=>({opacity:1,y:0,transition:{duration:.5,delay:e*.08}})};function EM(){return p.jsxs("section",{className:"relative pt-32 pb-16 lg:pt-44 lg:pb-24 px-4 overflow-hidden isolate",children:[p.jsx("div",{className:"absolute inset-0 z-0 bg-home-glow"}),p.jsx("div",{className:"absolute top-[-15%] right-[-8%] w-[520px] h-[520px] bg-purple-200/25 rounded-full blur-[130px] z-0 pointer-events-none"}),p.jsx("div",{className:"absolute bottom-[-20%] left-[-8%] w-[440px] h-[440px] bg-indigo-100/40 rounded-full blur-[120px] z-0 pointer-events-none"}),p.jsx("div",{className:"absolute inset-x-0 bottom-0 h-1/3 z-0 pointer-events-none bg-gradient-to-b from-transparent to-white"}),p.jsxs("div",{className:"max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-x-10 lg:gap-y-6 lg:items-center relative z-10",children:[p.jsxs("div",{className:"flex flex-col items-center lg:items-start text-center lg:text-left gap-5 lg:col-start-1 lg:row-start-1",children:[p.jsxs(He.div,{variants:na,custom:0,initial:"hidden",animate:"show",className:"inline-flex items-center gap-3 bg-white rounded-full pl-3 pr-4 py-2 shadow-sm border border-slate-100",children:[p.jsx(Ng,{className:"w-5 h-5"}),p.jsx("div",{className:"flex text-google-yellow",children:[1,2,3,4,5].map(e=>p.jsx(Pg,{size:16,className:"fill-google-yellow"},e))}),p.jsx("span",{className:"text-slate-700 font-bold text-base",children:"4,7/5"}),p.jsx("span",{className:"text-slate-400 text-sm sm:text-base",children:"· +8 100 avis"})]}),p.jsxs(He.h1,{variants:na,custom:1,initial:"hidden",animate:"show",className:"text-4xl sm:text-5xl lg:text-[52px] font-extrabold text-night leading-[1.1] tracking-tight",children:["Offrez-leur"," ",p.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-purple-600 to-indigo-600",children:"la Omra"})," ","qu'ils n'ont pas pu accomplir."]}),p.jsxs(He.div,{variants:na,custom:2,initial:"hidden",animate:"show",className:"flex flex-col gap-3 text-slate-500 text-base sm:text-lg max-w-xl leading-relaxed",children:[p.jsx("p",{children:"Pour un parent disparu ou un proche malade, une personne de confiance accomplit la Omra en leur nom, avec sincérité et dans le respect de chaque rite. Vous êtes informé à chaque étape."}),p.jsx("p",{className:"font-semibold text-night",children:"Un acte de foi pour ceux que vous aimez."})]})]}),p.jsx(He.div,{initial:{opacity:0,scale:.96}
195,animate:{opacity:1,scale:1},transition:{duration:.6,delay:.2},className:"relative w-full max-w-[540px] mx-auto lg:mx-0 lg:ml-auto lg:col-start-2 lg:row-start-1 lg:row-span-2 lg:self-center",children:p.jsx(SM,{})}),p.jsxs("div",{className:"flex flex-col items-center lg:items-start text-center lg:text-left gap-5 lg:col-start-1 lg:row-start-2",children:[p.jsxs(He.div,{variants:na,custom:3,initial:"hidden",animate:"show",className:"flex flex-col items-center lg:items-start gap-3 w-full sm:w-auto",children:[p.jsxs(Mn,{to:IE,className:G(gC({variant:"gradient"}),"flex w-full cursor-pointer gap-2.5 rounded-2xl px-14 py-5 text-lg shadow-xl shadow-purple-900/20 duration-200 hover:scale-[1.02] active:scale-[0.98] sm:w-auto sm:min-w-[360px] sm:text-xl"),children:["En savoir plus",p.jsx(Lo,{size:22})]}),p.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-500 font-medium",children:[p.jsxs("div",{className:"relative flex h-2 w-2 shrink-0",children:[p.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75"}),p.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-emerald-500"})]}),"Rejoignez nos ",p.jsx("strong",{className:"text-night",children:"+8 100 donateurs"})]})]}),p.jsx(He.div,{variants:na,custom:4,initial:"hidden",animate:"show",className:"flex flex-wrap items-center gap-x-5 gap-y-2 justify-center lg:justify-start pt-3 border-t border-slate-100 w-full lg:w-auto",children:CM.map(e=>p.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-semibold text-slate-500",children:[p.jsx("span",{className:"text-night",children:e.icon}),e.label]},e.label))})]})]})]})}function kM(){return p.jsx("section",{className:"relative overflow-hidden bg-white py-8 md:py-10",children:p.jsx("div",{className:"text-slate-700",children:p.jsx(vM,{theme:"light"})})})}const gu="https://cdn.kebchi.fr/site_kebchi/accueil/2026/images",Kx=[{name:"Omra par procuration",tag:"Spiritualité",desc:"Faites accomplir une Omra au nom d'un proche, vivant ou défunt.",img:`${gu}/omra-01.jpg`,to:"/dons/omra-procuration"},{name:"Construction de puits",tag:"Sadaqa Jariya",desc:"Un accès à l'eau potable durable pour tout un village.",img:`${gu}/puits_boy_raz1yh.jpg`,to:"/dons/puits"},{name:"Plantation d'arbre",tag:"Sadaqa Jariya",desc:"Un arbre fruitier au nom d'un proche, avec GPS et certificat.",img:`${gu}/arbre-fruitier-unsplash.jpg`,to:"/dons/arbre-fruitier"},{name:"Soutien aux orphelins",tag:"Sunnah",desc:"Un don unique ou mensuel pour aider des orphelins.",img:`${gu}/Photo_de_Ibrahim_Jassat_Riad_Mahrez_2_noqxij.jpg`,to:"/dons/orphelins"}];function _M(){return p.jsx("section",{id:"nos-actions",className:"scroll-mt-24 py-11 md:py-14 bg-gradient-to-b from-white to-violet-50 relative overflow-hidden",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 relative z-10",children:[p.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-5 md:mb-6",children:[p.jsxs("span",{className:"inline-flex items-center gap-2 px-3 py-1 bg-purple-50 text-night border border-purple-100 rounded-full text-[11px] font-bold uppercase tracking-wider mb-2.5",children:[p.jsx(YD,{size:13,className:"text-purple-500 fill-purple-500/20"})," Nos actions solidaires"]}),p.jsxs("h2",{className:"text-2xl md:text-3xl font-extrabold text-night leading-tight mb-1.5",children:["Choisissez ",p.jsx("br",{className:"sm:hidden"}),"votre bonne ",p.jsx("br",{className:"sm:hidden"}),"action"]}),p.jsx("p",{className:"text-slate-500 text-sm md:text-base",children:"Une aide concrète aux plus démunis, réalisée en votre nom — avec une preuve pour chaque don."})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-3 sm:gap-4 lg:gap-5 max-w-4xl mx-auto",children:[Kx.map((e,t)=>p.jsx(He.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.4,delay:t*.05},className:"relative",children:p.jsxs(Mn,{to:e.to,className:"group flex h-full flex-col bg-white rounded-2xl sm:rounded-[26px] overflow-hidden border border-slate-100 shadow-[0_2px_16px_rgba(46,26,105,0.06)] hover:shadow-[0_20px_44px_-12px_rgba(46,26,105,0.18)] hover:-translate-y-1.5 transition-all duration-300",children:[p.jsxs("div",{className:"relative h-28 sm:h-36 lg:h-40 overflow-hidden bg-slate-100",children:[p.jsx("img",{src:e.img,alt:e.name,referrerPolicy:"no-referrer",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700 ease-out"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/25 to-transparent opacity-60"}),p.jsx("span",{className:"absolute top-2.5 left-2.5 sm:top-4 sm:left-4 bg-white/95 backdrop-blur text-night text-[8px] sm:text-[10px] font-extrabold uppercase tracking-widest px-2 py-0.5 
195sm:px-3 sm:py-1.5 rounded-full shadow-sm",children:e.tag})]}),p.jsxs("div",{className:"p-2.5 sm:p-3 flex flex-col flex-1",children:[p.jsx("h3",{className:"text-sm sm:text-base md:text-lg font-extrabold text-night mb-0.5 leading-tight",children:e.name}),p.jsx("p",{className:"text-slate-500 text-xs sm:text-sm leading-snug flex-1 line-clamp-2",children:e.desc}),p.jsx("div",{className:"mt-2 pt-2 border-t border-slate-100",children:p.jsx("span",{className:"kb-inox kb-neon-pulse inline-flex items-center justify-center w-full bg-purple-50 text-night group-hover:bg-night group-hover:text-white font-bold text-xs sm:text-sm px-4 py-1.5 rounded-full transition-all duration-300 group-hover:shadow-lg group-hover:shadow-purple-900/20",children:p.jsxs("span",{className:"relative z-[2] inline-flex items-center gap-1.5 sm:gap-2",children:["Découvrir",p.jsx(Lo,{size:15,className:"group-hover:translate-x-0.5 transition-transform"})]})})})]})]})},e.to)),p.jsx(He.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.4,delay:Kx.length*.05},className:"col-span-2",children:p.jsxs(Mn,{to:SD,className:"group flex items-center gap-3 sm:gap-5 rounded-2xl sm:rounded-[26px] bg-night p-3 sm:p-5 shadow-[0_2px_16px_rgba(46,26,105,0.06)] transition-all duration-300 hover:-translate-y-1.5 hover:shadow-[0_20px_44px_-12px_rgba(46,26,105,0.35)]",children:[p.jsx("span",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl bg-gradient-to-br from-amber-300 to-amber-500 text-xl font-extrabold tracking-tight text-white shadow-lg shadow-amber-500/30 sm:h-14 sm:w-14",children:"K+"}),p.jsxs("span",{className:"min-w-0 flex-1",children:[p.jsx("span",{className:"block text-[8px] font-extrabold uppercase tracking-widest text-amber-200 sm:text-[10px]",children:"Engagement mensuel"}),p.jsx("span",{className:"block text-sm font-extrabold leading-tight text-white sm:text-base md:text-lg",children:"Kebchi+"}),p.jsx("span",{className:"block text-xs leading-snug text-purple-200 sm:text-sm",children:"Soutenez 5 causes en un seul geste, dès 5 € par mois. Ajustable à tout moment."})]}),p.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-gradient-to-r from-amber-300 to-amber-500 text-night transition-transform duration-300 group-hover:translate-x-0.5 sm:h-11 sm:w-11",children:p.jsx(Lo,{size:18})})]})})]})]})})}const TM=[{tag:{icon:ZD,label:"ÉTAPE 01"},media:{icon:KD},title:"Vous choisissez",text:"Vous sélectionnez une action solidaire (Omra, puits, colis, aqiqa, arbre…) et effectuez votre don en quelques clics."},{tag:{icon:Vx,label:"ÉTAPE 02"},media:{icon:Vx},title:"Nous agissons sur le terrain",text:"Nos équipes et nos partenaires locaux réalisent votre action avec sérieux, dans le respect des prescriptions religieuses."},{tag:{icon:Ux,label:"ÉTAPE 03"},media:{icon:Ux},title:"Vous recevez vos preuves",text:"Nous vous envoyons des photos et vidéos de la réalisation de votre action — transparence totale."}],PM={tag:{icon:Tg,label:"ET ENSUITE ..."},media:{icon:GD},title:"Laissez agir la Baraka",text:"Une aide concrète et durable pour les bénéficiaires, et de magnifiques récompenses qui continuent pour vous."},NM=[{label:"Hassanates 🤲",rotate:-3},{label:"Baraka ✨",rotate:2},{label:"Sadaqa Jariya 🌾",rotate:-2},{label:"Vies changées ❤️",rotate:4},{label:"Familles aidées 👨‍👩‍👧‍👦",rotate:-3},{label:"Eau potable 💧",rotate:1},{label:"Sunnah honorée 🕋",rotate:-4},{label:"Solidarité 🤝",rotate:3},{label:"Espoir 🌅",rotate:-2},{label:"Récompense éternelle ♾️",rotate:5}];function AM(){return p.jsx(dM,{id:"comment-ca-marche",className:"bg-gradient-to-b from-violet-50 to-white pb-10 pt-8 md:pb-14 md:pt-12",eyebrow:"Comment ça marche ?",subtitle:"Votre don concrétisé en 4 étapes simples et transparentes, quelle que soit l'action choisie.",steps:TM,outcome:PM,tone:"lilac",tags:NM,timeline:{mediaLayout:"flat",energy:!0,heartBeat:!0}})}const UE="https://cdn.kebchi.fr/site_kebchi/accueil/2026/images",RM=["omra-01.jpg","puits_boy_raz1yh.jpg","dji_fly_20240430_163652_0147_1714937201640_photo_bepxdx.jpg","Photo_de_Ibrahim_Jassat_Riad_Mahrez_2_noqxij.jpg","omra-03.jpg","Image_3_bvr14c.jpg"].map(e=>`${UE}/${e}`),IM=["Photo_sourire_i5jcv9.jpg","IMG-20241213-WA0020_xpxkxx.jpg","Puits_Otman_Jabbour_-_377_-_1_pfkgou.jpg","omra-07.jpg","WhatsApp_Image_2025-09-15_at_10.11.21_2_1_xvcqs2.jpg","dji_fly_20240430_161410_0131_1714937234302_photo_lfkjpn.jpg"].map(e=>`${UE}/${e}`);function LM({src:e,i:t}){return p.jsxs("div",{className:"w-[240px] h-[160px] md:w-[320px] md:h-[210px] rounded-2xl overflow-hidden shadow-lg flex-shrink-0 bg-slate-900 border-[3px] border-white relative group",children:[p.jsx("img",{src:e,alt:`Réalisation Kebchi ${t+1}`,referrerPolicy:"no-referrer",className:"absolute inset-0 w-full h-full object-cover group-hover:scale-110 transition-transform duration-700 ease-out"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/25 to-transparent pointer-events-none"})]})}function Gx({images:e,className:t}){const n=[...e,...e,...e];return p.jsx("div",{className:"flex w-max overflow-visible",children:p.jsx("div",{className:`${t} flex gap-4 md:gap-5 px-2.5 w-max`,children:n.map((r,s)=>p.jsx(LM,{src:r,i:s%e.length},s))})})}function jM(){return p.jsxs("section",{className:"py-14 md:py-20 bg-white relative overflow-hidden",children:[p.jsxs("div",{className:"max-w-7xl mx-auto px-6 mb-9 md:mb-14 text-center relative z-10",children:[p.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-1.5 bg-white text-night rounded-full text-xs font-bold uppercase tracking-wider mb-4 border border-purple-100 shadow-sm",children:[p.jsxs("span",{className:"relative flex h-2 w-2",children:[p.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),p.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-green-500"})]}),"Galerie Live"]}),p.jsx("h2",{className:"text-2xl md:text-5xl font-extrabold text-night mb-3",children:"Vos dons en action"}),p.jsx("p",{className:"text-slate-500 text-sm md:text-lg max-w-2xl mx-auto",children:"Immersion totale : retrouvez les sourires, les plantations et les distributions sur le terrain."})]}),p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"absolute top-0 left-0 bottom-0 w-16 md:w-32 z-20 bg-gradient-to-r from-white to-transparent pointer-events-none"}),p.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-16 md:w-32 z-20 bg-gradient-to-l from-white to-transparent pointer-events-none"}),p.jsxs("div",{className:"flex flex-col gap-4 md:gap-5",children:[p.jsx(Gx,{images:RM,className:"kb-home-gal-row1"}),p.jsx(Gx,{images:IM,className:"kb-home-gal-row2"})]})]})]})}const ra=e=>{const t=Math.sin(e)*1e4;return t-Math.floor(t)},OM=Array.from({length:70},(e,t)=>({left:ra(t*1.1)*100,top:ra(t*2.3)*100,size:1+ra(t*3.7)*2.2,delay:ra(t*4.9)*5,duration:2+ra(t*5.5)*3}));function DM(){return p.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none z-0","aria-hidden":!0,
195children:OM.map((e,t)=>p.jsx("span",{className:"absolute rounded-full bg-white kb-twinkle",style:{left:`${e.left}%`,top:`${e.top}%`,width:e.size,height:e.size,animationDuration:`${e.duration}s`,animationDelay:`${e.delay}s`}},t))})}const MM={hills:["M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z"],hillsRise:["M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z"],dunes:["M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z"],dunesHang:["M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V0H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z"],ripple:["M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V120H0Z"],layers:["M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z","M0,0V15.81C13,36.92,46,62.34,81,71.21c35,8.87,83,7.1,128-4.73s102-39.75,146.49-47.53c44.49-7.79,84.42,1.21,124.36,10.22,39.93,9,90,14.62,140,8.19s104-20,154-22.18c50-2.19,95,7.76,140.16,17.72,45.16,9.95,90.32,19.9,136,19.9,45.68,0,90.34-9.95,136-19.9,45.16-9.95,90.32-19.9,136-19.9V0Z","M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z"]},VM=[".25",".5",void 0];function FM({shape:e,className:t,svgClassName:n}){return p.jsx("div",{className:G("absolute left-0 w-full overflow-hidden leading-[0]",t),children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1200 120",preserveAspectRatio:"none",className:G("relative block w-full",n),"aria-hidden":"true",children:MM[e].map((r,s)=>p.jsx("path",{d:r,opacity:e==="layers"?VM[s]:void 0},s))})})}function zM({children:e}){return p.jsxs("section",{id:"projets",className:"relative bg-gradient-to-b from-night via-night-dusk to-night-midnight pt-16 md:pt-24 pb-28 md:pb-40 overflow-hidden text-white -mt-px",children:[p.jsx("div",{className:"absolute top-0 inset-x-0 h-2/5 pointer-events-none z-0 bg-[linear-gradient(to_bottom,rgba(251,146,60,0.38)_0%,rgba(244,114,182,0.22)_32%,rgba(129,74,200,0.10)_60%,transparent_100%)]"}),p.jsx("div",{className:"absolute -top-16 left-1/2 -translate-x-1/2 w-[420px] h-[420px] bg-amber-300/25 rounded-full blur-[110px] pointer-events-none z-0"}),p.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2 w-40 h-40 bg-orange-200/40 rounded-full blur-[60px] pointer-events-none z-0"}),p.jsx(FM,{shape:"hills",className:"pointer-events-none top-0 z-10 select-none",svgClassName:"h-[40px] -translate-y-px fill-white md:h-[80px]"}),p.jsx("div",{className:"absolute top-1/4 left-0 w-[420px] h-[420px] bg-purple-500/25 rounded-full blur-[120px] -translate-x-1/3 pointer-events-none"}),p.jsx("div",{className:"absolute bottom-0 right-0 w-[480px] h-[480px] bg-indigo-500/20 rounded-full blur-[120px] translate-x-1/4 translate-y-1/4 pointer-events-none"}),p.jsx(DM,{}),p.jsx("div",{className:"relative z-10",children:e})]})}const $E={oranger:1900,fruit_passion:1600,manguier:2200,bananier:2400,dattier:3900,pack_couple:4e3,pack_petite_famille:5500,pack_famille_nombreuse:6900,pack_groupe:12500,pack_foret:6e4,mouton:17900,puits_once:89900,colis_orphelins_once:3900,parrainage:3900,fidya:900,cheveux:14e3,aqiqa_fille:18900,aqiqa_garcon:33800,omra_procuration:29900,colis_petit_once:1900,colis_standard_once:4900,colis_maxi_once:9900};function Z6(e){return $E[e]/100}function qx({glowClassName:e,delay:t,icon:n,tag:r,tagClassName:s,title:i,desc:o,children:a}){return p.jsxs(He.div,{whileHover:{y:-6},initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:t?{delay:t}:void 0,className:"group relative overflow-hidden rounded-[28px] border border-white/10 bg-white/[0.06] backdrop-blur-xl px-6 py-9 md:px-8 md:py-11 shadow-2xl shadow-black/20 sm:min-h-[280px] flex flex-col justify-center",children:[p.jsx("div",{className:`absolute -top-16 -right-12 w-52 h-52 rounded-full ${e} blur-[70px] pointer-events-none`}),p.jsx("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none bg-[linear-gradient(115deg,transparent_35%,rgba(255,255,255,0.06)_48%,transparent_60%)]"}),p.jsxs("div",{className:"relative flex flex-col sm:flex-row sm:items-center gap-6",children:[p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n,p.jsx("span",{className:`inline-flex items-center px-2.5 py-1 bg-white/10 ${s} rounded-full text-[10px] font-bold uppercase tracking-wider border border-white/15`,children:r})]}),p.jsx("h3",{className:"text-2xl md:text-3xl font-bold text-white mb-2",children:i}),p.jsx("p",{className:"text-purple-200/80 text-sm md:text-base leading-relaxed",children:o})]}),p.jsx("div",{className:"w-full sm:w-56 lg:w-60 shrink-0 rounded-2xl bg-white/[0.05] border border-white/10 p-4",children:a})]})]})}const yu="flex items-center justify-center bg-white/10 hover:bg-white/20 text-white rounded-xl border border-white/10 transition-colors";function UM(){const e=Nl(),[t,n]=k.useState(8),[r,s]=k.useState(1),i=(yD("fidya")??$E.fidya)/100;return p.jsx("section",{className:"relative overflow-hidden",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6 relative z-10 pt-10",children:[p.jsxs("div",{className:"mb-10 md:mb-20 max-w-3xl mx-auto text-center",children:[p.jsxs(He.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"inline-flex items-center gap-2 px-4 py-1.5 bg-white text-night rounded-full text-xs font-bold uppercase tracking-wider mb-6 border border-purple-100 shadow-sm",children:[p.jsx(Pg,{size:12,className:"text-night fill-night"})," Découvrir nos autres actions"]}),p.jsxs(He.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-4xl md:text-6xl font-bold text-white mb-6 leading-[1.1]",children:["Avez-vous déjà réalisé ",p.jsx("br",{})," ces Sunnah ?"]}),p.jsx(He.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"text-purple-200 text-lg md:text-xl leading-relaxed",children:"Rattrapez ce qui n'a pas encore été fait. Mettez vos compteurs à jour, en toute simplicité."})]}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5 md:gap-6",children:[p.jsxs(qx,{glowClassName:"bg-amber-400/20",icon:p.jsx("div",{className:"w-14 h-14 roun
195ded-2xl bg-gradient-to-br from-amber-300 to-amber-500 flex items-center justify-center shadow-lg shadow-amber-500/30 shrink-0",children:p.jsx("span",{className:"text-white font-extrabold text-xl tracking-tight",children:"K+"})}),tag:"Une Sunnah répartie",tagClassName:"text-amber-200",title:"Kebchi+",desc:"Soutenez 5 causes en un seul geste. Simple, flexible et ajustable à tout moment.",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("button",{type:"button","aria-label":"Diminuer le montant",onClick:()=>n(o=>Math.max(5,o-1)),className:`w-11 h-11 ${yu}`,children:p.jsx(Fx,{size:17})}),p.jsxs("div",{className:"flex flex-col items-center px-2",children:[p.jsxs("span",{className:"text-4xl md:text-[42px] font-extrabold text-transparent bg-clip-text bg-gradient-to-br from-amber-200 to-amber-400 leading-none",children:[t,"€"]}),p.jsx("span",{className:"text-[11px] text-purple-300 mt-1.5 font-semibold",children:"par mois"})]}),p.jsx("button",{type:"button","aria-label":"Augmenter le montant",onClick:()=>n(o=>o+1),className:`w-11 h-11 ${yu}`,children:p.jsx(zx,{size:17})})]}),p.jsxs("button",{type:"button",onClick:()=>e(`/dons/abonnement?montant=${t}`),className:"mt-4 w-full bg-gradient-to-r from-amber-300 to-amber-500 text-night font-bold py-2.5 rounded-xl text-sm transition-all hover:brightness-105 hover:shadow-lg hover:shadow-amber-500/30 flex items-center justify-center gap-1.5",children:["Comment ça marche ? ",p.jsx(Lo,{size:15})]})]}),p.jsxs(qx,{glowClassName:"bg-indigo-400/25",delay:.08,icon:p.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-br from-purple-400 to-indigo-500 flex items-center justify-center shadow-lg shadow-indigo-500/30 shrink-0",children:p.jsx(zE,{size:26,className:"text-white"})}),tag:"Jours manqués",tagClassName:"text-purple-200",title:"Fidya Ramadan",desc:"Compensez les jours de jeûne manqués en nourrissant une personne dans le besoin.",children:[p.jsxs("div",{className:"flex items-center justify-between mb-3",children:[p.jsx("button",{type:"button","aria-label":"Retirer un jour",onClick:()=>s(o=>Math.max(1,o-1)),className:`w-9 h-9 ${yu}`,children:p.jsx(Fx,{size:15})}),p.jsxs("div",{className:"flex flex-col items-center",children:[p.jsxs("span",{className:"text-base font-bold text-white leading-none",children:[r," ",r>1?"jours":"jour"]}),p.jsx("span",{className:"text-[9px] text-purple-300 mt-1",children:"à compenser"})]}),p.jsx("button",{type:"button","aria-label":"Ajouter un jour",onClick:()=>s(o=>o+1),className:`w-9 h-9 ${yu}`,children:p.jsx(zx,{size:15})})]}),p.jsxs("div",{className:"text-center py-2 mb-1",children:[p.jsxs("span",{className:"text-3xl font-extrabold text-transparent bg-clip-text bg-gradient-to-br from-purple-200 to-indigo-300",children:[r*i,"€"]}),p.jsx("span",{className:"text-[10px] text-purple-300 block",children:"total"})]}),p.jsxs("button",{type:"button",onClick:()=>e(`/dons/fidya-ramadan?jours=${r}`),className:"w-full bg-gradient-to-r from-purple-500 to-indigo-500 text-white font-bold py-2.5 rounded-xl text-sm transition-all hover:brightness-110 hover:shadow-lg hover:shadow-indigo-500/30 flex items-center justify-center gap-1.5",children:["Comment ça marche ? ",p.jsx(Lo,{size:15})]})]})]})]})})}const $M=[{label:"Moutons sacrifiés",value:"+ 90 000",icon:zE},{label:"Arbres plantés",value:"+ 50 000",icon:XD},{label:"Puits construits",value:"+ 1 500",icon:HD},{label:"Orphelins soutenus",value:"+ 5 000",icon:$D}];function BM(){return p.jsx(mM,{theme:"dark",logoBaseUrl:"https://cdn.kebchi.fr/site_kebchi/accueil/2026/logos",loops:2,children:p.jsx("div",{className:"mx-auto w-[89%] max-w-[76rem] sm:w-[90%]",children:p.jsxs("div",{className:"relative flex h-11 items-center overflow-hidden rounded-full border border-white/15 bg-night-plum shadow-sm md:h-12",children:[p.jsx("div",{className:"pointer-events-none absolute bottom-0 left-0 top-0 z-10 w-10 bg-gradient-to-r from-night-plum to-transparent"}),p.jsx("div",{className:"pointer-events-none absolute bottom-0 right-0 top-0 z-10 w-10 bg-gradient-to-l from-night-plum to-transparent"}),p.jsx("div",{className:"kb-marquee-s18 flex w-max items-center gap-8 whitespace-nowrap px-6 md:gap-12",children:[0,1].map(e=>$M.map(t=>p.jsxs("span",{className:"inline-flex shrink-0 items-center gap-2",children:[p.jsx(t.icon,{size:15,className:"shrink-0 text-amber-300"}),p.jsx("span",{className:"text-sm font-extrabold text-white",children:t.value}),p.jsx("span",{className:"text-xs font-semibold text-purple-200 md:text-sm",children:t.label}),p.jsx("span",{className:"ml-2 text-purple-300/60",children:"•"})]},`${e}-${t.label}`)))})]})})})}function WM(){return p.jsx(fM,{lines:["« Les personnes les plus aimées d'Allah sont celles qui sont les plus utiles aux autres. »"],source:"(At-Tabarani dans el-Mu ‘jam el-Awsat (n° 6026))",className:"text-white",eyebrowClassName:"border-white/15",children:p.jsx(He.div,{...er({y:15,delay:.5}),className:"mt-10",children:p.jsxs("a",{href:"#nos-actions",className:"inline-flex items-center justify-center gap-2 rounded-xl border-b-4 border-purple-200 bg-white px-8 py-4 text-base font-bold text-night shadow-xl shadow-black/20 transition-all duration-200 hover:scale-[1.02] hover:bg-purple-50 active:scale-[0.98]",children:["Faire un don ",p.jsx(Lo,{size:18})]})})})}function HM(){return z4(),p.jsxs("div",{className:"kc-theme-refonte overflow-x-hidden bg-white",children:[p.jsx(EM,{}),p.jsx(kM,{}),p.jsx(_M,{}),p.jsx(AM,{}),p.jsx(jM,{}),p.jsxs(zM,{children:[p.jsx(UM,{}),p.jsx("div",{className:"mt-16 md:mt-24",children:p.jsx(BM,{})}),p.jsx("div",{className:"mt-16 md:mt-24",children:p.jsx(WM,{})})]})]})}function vf(){return k.useEffect(()=>{window.location.replace(zc)},[]),p.jsx("div",{className:"bg-surface-page-2 px-5 py-16 text-center",children:p.jsxs("p",{className:"text-ink-muted-purple",children:["Redirection vers votre espace donateur…"," ",p.jsx("a",{href:zc,className:"font-bold text-primary underline",children:"Ouvrir mon espace donateur"})]})})}const dt=(e,t)=>
195k.lazy(()=>e().then(n=>({default:n[t]}))),KM=dt(()=>at(()=>import("./ProductPage-DQkUzYw5.js"),__vite__mapDeps([0,1,2,3,4,5,6])),"ProductPage"),GM=dt(()=>at(()=>import("./CatalogPage-DkNxsH40.js"),[]),"CatalogPage"),qM=dt(()=>at(()=>import("./LienTrackePage-Bb6ABpFG.js"),[]),"LienTrackePage"),QM=dt(()=>at(()=>import("./CartPage--MIP3No6.js"),__vite__mapDeps([7,3,5])),"CartPage"),ZM=dt(()=>at(()=>import("./MonEngagementPage-BDFDJipD.js"),__vite__mapDeps([8,7,3,5])),"MonEngagementPage"),YM=dt(()=>at(()=>import("./DonMerciPage-B_b4Ct3u.js"),__vite__mapDeps([9,5])),"DonMerciPage"),XM=dt(()=>at(()=>import("./DonAnnulePage-B9dOnLfi.js"),[]),"DonAnnulePage"),Qx=dt(()=>at(()=>import("./CagnottesPage-Dgj-AqPw.js"),__vite__mapDeps([10,3,4,5,2])),"CagnottesPage"),JM=dt(()=>at(()=>import("./BlogListPage-BsLxgcq6.js"),__vite__mapDeps([11,1,6,12])),"BlogListPage"),e6=dt(()=>at(()=>import("./BlogPostPage-CaveHBP3.js"),__vite__mapDeps([13,14,1,2,12,15])),"BlogPostPage"),t6=dt(()=>at(()=>import("./PourquoiKebchiPage-BkLjGIE9.js"),__vite__mapDeps([16,17])),"PourquoiKebchiPage"),n6=dt(()=>at(()=>import("./NotreConceptPage-DxoSalwj.js"),__vite__mapDeps([18,17])),"NotreConceptPage"),r6=dt(()=>at(()=>import("./FaqPage-ByvIQG63.js"),__vite__mapDeps([19,14,17])),"FaqPage"),s6=dt(()=>at(()=>import("./QuestionsReligieusesPage-BD81dSdv.js"),__vite__mapDeps([20,17])),"QuestionsReligieusesPage"),i6=dt(()=>at(()=>import("./MentionsLegalesPage-CxVW25Ct.js"),__vite__mapDeps([21,17])),"MentionsLegalesPage"),o6=dt(()=>at(()=>import("./ConfidentialitePage-BMgYt7L0.js"),__vite__mapDeps([22,17])),"ConfidentialitePage"),a6=dt(()=>at(()=>import("./CgvPage-QIybnklw.js"),__vite__mapDeps([23,17])),"CgvPage"),l6=dt(()=>at(()=>import("./NotFoundPage-S_o7OCBx.js").then(e=>e.a),[]),"NotFoundPage");function u6(){return p.jsx("div",{className:"flex min-h-[40vh] items-center justify-center",children:p.jsx(F5,{})})}function c6(){const{pathname:e}=Sn();return k.useEffect(()=>{e.startsWith("/t/")||(vg.tracking.track({name:"page_vue",properties:{referrer:document.referrer}}),$3())},[e]),p.jsx(k.Suspense,{fallback:p.jsx(u6,{}),children:p.jsxs(fP,{children:[p.jsx(Pe,{path:"/",element:p.jsx(HM,{})}),p.jsx(Pe,{path:"/t/:code",element:p.jsx(qM,{})}),p.jsx(Pe,{path:"/dons",element:p.jsx(GM,{})}),p.jsx(Pe,{path:"/dons/:slug",element:p.jsx(KM,{})}),p.jsx(Pe,{path:"/donner",element:p.jsx(QM,{})}),p.jsx(Pe,{path:_g,element:p.jsx(ZM,{})}),p.jsx(Pe,{path:"/panier",element:p.jsx(cP,{to:"/donner",replace:!0})}),p.jsx(Pe,{path:"/don/merci",element:p.jsx(YM,{})}),p.jsx(Pe,{path:"/don/annule",element:p.jsx(XM,{})}),p.jsx(Pe,{path:"/connexion",element:p.jsx(vf,{})}),p.jsx(Pe,{path:"/mot-de-passe-oublie",element:p.jsx(vf,{})}),p.jsx(Pe,{path:"/mon-compte/*",element:p.jsx(vf,{})}),p.jsx(Pe,{path:"/cagnottes",element:p.jsx(Qx,{})}),p.jsx(Pe,{path:"/cagnottes/:slug",element:p.jsx(Qx,{})}),p.jsx(Pe,{path:"/blog",element:p.jsx(JM,{})}),p.jsx(Pe,{path:"/blog/:slug",element:p.jsx(e6,{})}),p.jsx(Pe,{path:"/pourquoi-kebchi",element:p.jsx(t6,{})}),p.jsx(Pe,{path:"/notre-concept",element:p.jsx(n6,{})}),p.jsx(Pe,{path:"/faq",element:p.jsx(r6,{})}),p.jsx(Pe,{path:"/questions-religieuses",element:p.jsx(s6,{})}),p.jsx(Pe,{path:"/mentions-legales",element:p.jsx(i6,{})}),p.jsx(Pe,{path:"/confidentialite",element:p.jsx(o6,{})}),p.jsx(Pe,{path:"/cgv",element:p.jsx(a6,{})}),p.jsx(Pe,{path:"*",element:p.jsx(l6,{})})]})})}class d6 extends k.Component{constructor(){super(...arguments);Lr(this,"state",{erreur:!1})}static getDerivedStateFromError(){return{erreur:!0}}componentDidUpdate(n){n.chemin!==this.props.chemin&&this.state.erreur&&this.setState({erreur:!1})}componentDidCatch(n,r){console.error("Page en erreur :",n,r.componentStack)}render(){return this.state.erreur?p.jsx("div",{className:"bg-surface-page-2 px-5 py-16",children:p.jsxs("div",{role:"alert",className:"mx-auto max-w-[560px] rounded-2xl bg-white p-8 text-center shadow-[0_4px_20px_rgba(var(--kc-rgb-primary),0.1)]",children:[p.jsx("h1",{className:"text-2xl font-extrabold text-primary",children:"Cette page n'a pas pu s'afficher"}),p.jsx("p",{className:"mt-3 text-ink-muted-purple",children:"Rechargez la page. Si le problème continue, appelez-nous au 01 80 89 35 32 ou écrivez à [email protected]."}),p.jsxs("div",{className:"mt-6 flex flex-col justify-center gap-3 sm:flex-row",children:[p.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"rounded-[10px] bg-primary px-5 py-3 text-sm font-bold text-white",children:"Recharger la page"}),p.jsx("a",{href:"/",className:"rounded-[10px] border border-primary/20 px-5 py-3 text-sm font-bold text-primary no-underline",children:"Retour à l'accueil"})]})]})}):this.props.children}}const f6=3e3,Zx="smooth-anchor";function h6(){const e=Sn(),t=qT(),[n]=k.useState(e);k.useLayoutEffect(()=>{const r=e===n;if(e.hash&&(r||t!=="POP"))return p6(e.hash,r?"instant":bg());t!=="POP"&&window.scrollTo({top:0,left:0,behavior:"instant"})},[e,n,t]),k.useEffect(()=>{const r=document.documentElement;let s=0;const i=()=>{window.clearTimeout(s),window.removeEventListener("scrollend",i),r.classList.remove(Zx)},o=a=>{!(a.target instanceof Element)||!a.target.closest('a[href^="#"]')||(r.classList.add(Zx),window.clearTimeout(s),s=window.setTimeout(i,1500),window.addEventListener("scrollend",i))};return document.addEventListener("click",o,!0),()=>{document.removeEventListener("click",o,!0),i()}},[])}function p6(e,t){let n=e.slice(1);try{n=decodeURIComponent(n)}catch{}const r=performance.now()+f6;let s=0,i=0;const o=()=>{cancelAnimationFrame(i);for(const l of Yx)window.removeEventListener(l,o)},a=()=>{const l=performance.now(),u=document.getElementById(n);
195u&&!s?(pp(u,"start",t),s=t==="instant"?l+m6:l):u&&pp(u,"start","instant"),(u?l<s:l<r)?i=requestAnimationFrame(a):o()};for(const l of Yx)window.addEventListener(l,o,{passive:!0});return a(),o}const m6=1200,Yx=["wheel","touchstart","keydown"];function g6(){if(typeof window>"u")return"http://localhost:8000/";const e=window.location.hostname;return e.endsWith(".dev")?"https://api.kebchi.dev":e.endsWith(".fr")?"https://api.kebchi.fr":"http://localhost:8000/"}function y6(){return k.useMemo(()=>g6(),[])}const v6=k.lazy(()=>at(()=>import("./KeystaticPage-U10ltzjD.js"),__vite__mapDeps([24,15])).then(e=>({default:e.KeystaticPage}))),x6=["/","/dons/aqiqa","/dons/arbre-fruitier","/dons/colis-alimentaire","/dons/omra-procuration","/dons/orphelins","/dons/puits"];function w6(e){return x6.includes(e)?"absolute":"fixed"}function b6(){const{pathname:e}=Sn();h6(),xD();const t=y6();if(k.useEffect(()=>{console.log("[API Detection] API à utiliser :",t)},[t]),e.startsWith("/keystatic"))return p.jsx(k.Suspense,{fallback:null,children:p.jsx(v6,{})});const n=e==="/"||/^\/dons\/.+/.test(e),r=w6(e);return p.jsxs("div",{className:"flex min-h-screen flex-col",children:[p.jsx("a",{href:"#main",className:"sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-[100] focus:rounded-lg focus:bg-primary focus:px-4 focus:py-2 focus:font-bold focus:text-white",children:"Aller au contenu"}),p.jsx(TD,{position:r}),p.jsx("main",{id:"main",className:n?"flex-1":"flex-1 bg-surface-page pt-28",children:p.jsx(d6,{chemin:e,children:p.jsx(c6,{})})}),p.jsx(LD,{}),p.jsx(OD,{}),p.jsx(FD,{})]})}U3();window.addEventListener("vite:preloadError",e=>{try{const t=Number(sessionStorage.getItem("kebchi-rechargement")||0);if(Date.now()-t<6e4)return;sessionStorage.setItem("kebchi-rechargement",String(Date.now()))}catch{return}e.preventDefault(),window.location.reload()});const BE=document.getElementById("root");if(!BE)throw new Error("Élément #root introuvable");Sb(BE).render(p.jsx(k.StrictMode,{children:p.jsx(iO,{children:p.jsx(b6,{})})}));export{Tg as $,He as A,er as B,Q6 as C,Nl as D,I6 as E,t5 as F,an as G,M6 as H,yN as I,q6 as J,T6 as K,Kb as L,Tc as M,z4 as N,G6 as O,Um as P,yD as Q,ae as R,gC as S,A4 as T,Z6 as U,L6 as V,mM as W,dM as X,md as Y,rM as Z,BD as _,k6 as a,FM as a0,vM as a1,fM as a2,Lo as a3,tM as a4,Ux as a5,Ng as a6,Dp as a7,ZD as a8,$D as a9,$6 as aA,xg as aB,nC as aC,Sn as aD,j6 as aE,Al as aF,gh as aG,qa as aH,KP as aI,mt as aJ,ZP as aK,Ut as aL,Db as aM,pp as aN,yn as aO,H6 as aP,B6 as aQ,W6 as aR,K6 as aS,at as aT,z6 as aU,V6 as aV,F6 as aW,F4 as aX,KD as aa,FE as ab,D6 as ac,NE as ad,$E as ae,YD as af,HD as ag,zE as ah,DM as ai,X3 as aj,Pg as ak,Fx as al,zx as am,bg as an,qD as ao,_6 as ap,W3 as aq,F5 as ar,cP as as,AE as at,wg as au,q3 as av,Q3 as aw,O6 as ax,U6 as ay,Mn as az,bb as b,M2 as c,lk as d,C6 as e,E6 as f,Wc as g,A6 as h,P6 as i,p as j,N6 as k,ER as l,wN as m,iL as n,GS as o,qR as p,qh as q,k as r,X4 as s,US as t,Gb as u,tt as v,G as w,uN as x,vg as y,mC as z};

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.