1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GenderDetector-D6OpVl8V.js","assets/ToolEducationAccordion-S-RcibWi.js","assets/i18n-BJnwxXTQ.js","assets/dialog-BeF8OuCE.js","assets/useExchangeRates-ChE78FkA.js","assets/useCurrency-DT6QB3nL.js","assets/triangle-alert-BxkCZDXV.js","assets/badge-BWWn3Mk5.js","assets/clock-DuomGwjK.js","assets/useAnalysisSession-B1UNdlJ8.js","assets/alert-DbmU_q7_.js","assets/camera-BVYP4Imv.js","assets/ToolsTabInterface-CBPTM3Vm.js","assets/circle-user-5H5mT7jv.js","assets/share-2-Cr4Y0V6T.js","assets/download-QX5DKn5b.js","assets/progress-BSdIr7ke.js","assets/TipsTabDeepLink-BmPTANym.js","assets/skeleton-5nx0dtBQ.js","assets/BlogSection-DNrnyJfC.js","assets/useQuery-Bl6CV96-.js","assets/external-link-DeYI4Mpd.js","assets/SensitiveToolAgeNote-BDaEB3oq.js","assets/apiClient-C51Yr6aq.js","assets/usePersistedAnalysisState-Djcf7hnH.js","assets/AgeDetector-7llKHrtp.js","assets/FaceShapeDetector-1hDsiIT2.js","assets/hexagon-VtIE9Kkk.js","assets/EmotionDetector-B9UfrKBf.js","assets/LipShapeDetector-Crj_0LKj.js","assets/award-DGD5BulA.js","assets/EyeShapeDetector-WmlhOf0z.js","assets/FaceSymmetry-hq4r0GEt.js","assets/GoldenRatioCalculator-BOib9CCw.js","assets/CelebrityLookalike-CECMMCFF.js","assets/StyleWizard-DTzpON7D.js","assets/switch-CNLOnTEn.js","assets/SkinToneDetector-BFx1hMfh.js","assets/analyzeMappers-DskDjqii.js","assets/GlassesFinder-BVuKBzgi.js","assets/HairstyleRecommender-wgA5JsJF.js","assets/BodyShapeDetector-CSb04REX.js","assets/runBodyVision-Ba_0KJjH.js","assets/silhouette-DmG3Uer7.js","assets/BodyShapeDetectorAI-BkXVqwrJ.js","assets/BodyAnalysis-Clr9Lmem.js","assets/tf-BHxrLyI5.js","assets/About-CXoBBXJm.js","assets/Pricing-
1DOnERKml.js","assets/CurrencySelector-BnG0fZlM.js","assets/select-BEUVItE4.js","assets/index-jVOyRz7F.js","assets/chevron-up-Dr9OhOPO.js","assets/PrivacyPolicy-DYf04i4E.js","assets/TermsOfService-BQFaEIgi.js","assets/Methodology-MIqlCgrW.js","assets/FaceAnalysisPage-Egk4VxWa.js","assets/shirt-B0b1QXeE.js","assets/AnalysisResults-DQhe9iio.js","assets/ProfilePage-JCF2KFV3.js","assets/textarea-47RR4J3j.js","assets/shield-DraNW1PL.js","assets/en-US-DqYvuH28.js","assets/chart-column-CZ6Gh0u-.js","assets/trending-up-CFIBwK6o.js","assets/file-text-B2gTs8KR.js","assets/SystemHealthDashboard-Bydn_ygk.js","assets/server-CKdGukm4.js","assets/analytics-login-Cr8OzKw-.js","assets/ProtectedAnalytics-CNmu4NTN.js","assets/generateCategoricalChart-BLL0ZMv0.js","assets/DeveloperPortal-WfHwyhW0.js"])))=>i.map(i=>d[i]); 2var e,t,n,r,a,s,i,o,l,c,u,d,h,f,p,m,g,y,v,b,x,w,k,j,_,S,A,E,N,I,T,C,O,P,R,F,D,L,M,z,$,U,V,B=Object.defineProperty,W=e=>{throw TypeError(e)},q=(e,t,n)=>((e,t,n)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),K=(e,t,n)=>t.has(e)||W("Cannot "+n),H=(e,t,n)=>(K(e,t,"read from private field"),n?n.call(e):t.get(e)),G=(e,t,n)=>t.has(e)?W("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Z=(e,t,n,r)=>(K(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),J=(e,t,n)=>(K(e,t,"access private method"),n),Q=(e,t,n,r)=>({set _(r){Z(e,t,r,n)},get _(){return H(e,t,r)}});import{r as Y,g as X,i as ee,B as te,b as ne,R as re,d as ae,_ as se,a as ie,c as oe,u as le}from"./i18n-BJnwxXTQ.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var ce={exports:{}},ue={},de=Y,he=Symbol.for("react.element"),fe=Symbol.for("react.fragment"),pe=Object.prototype.hasOwnProperty,me=de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ge={key:!0,ref:!0,__self:!0,__source:!0};function ye(e,t,n){var r,a={},s=null,i=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(i=t.ref),t)pe.call(t,r)&&!ge.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:he,type:e,key:s,ref:i,props:a,_owner:me.current}}ue.Fragment=fe,ue.jsx=ye,ue.jsxs=ye,ce.exports=ue;var ve=ce.exports,be={exports:{}},xe={},we={exports:{}},ke={};!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,s=e[r];if(!(0<a(s,t)))break e;e[r]=t,e[n]=s,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,s=e.length,i=s>>>1;r<i;){var o=2*(r+1)-1,l=e[o],c=o+1,u=e[c];if(0>a(l,n))c<s&&0>a(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[o]=n,r=o);else{if(!(c<s&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var l=[],c=[],u=1,d=null,h=3,f=!1,p=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var a=n(c);null!==a;){if(null===a.callback)r(c);else{if(!(a.startTime<=e))break;r(c),a.sortIndex=a.expirationTime,t(l,a)}a=n(c)}}function x(e){if(m=!1,b(e),!p)if(null!==n(l))p=!0,O(w);else{var t=n(c);null!==t&&P(x,t.startTime-e)}}function w(t,a){p=!1,m&&(m=!1,y(S),S=-1),f=!0;var s=h;try{for(b(a),d=n(l);null!==d&&(!(d.expirationTime>a)||t&&!N());){var i=d.callback;if("function"==typeof i){d.callback=null,h=d.priorityLevel;var o=i(d.expirationTime<=a);a=e.unstable_now(),"function"==typeof o?d.callback=o:d===n(l)&&r(l),b(a)}else r(l);d=n(l)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&P(x,g.startTime-a),u=!1}return u}finally{d=null,h=s,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,j=!1,_=null,S=-1,A=5,E=-1;function N(){return!(e.unstable_now()-E<A)}function I(){if(null!==_){var t=e.unstable_now();E=t;var n=!0;try{n=_(!0,t)}finally{n?k():(j=!1,_=null)}}else j=!1}
vendor: 28,543 bytes, line 2
2if("function"==typeof v)k=function(){v(I)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,C=T.port2;T.port1.onmessage=I,k=function(){C.postMessage(null)}}else k=function(){g(I,0)};function O(e){_=e,j||(j=!0,k())}function P(t,n){S=g(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_continueExecution=function(){p||f||(p=!0,O(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},e.unstable_scheduleCallback=function(r,a,s){var i=e.unstable_now();switch("object"==typeof s&&null!==s?s="number"==typeof(s=s.delay)&&0<s?i+s:i:s=i,r){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return r={id:u++,callback:a,priorityLevel:r,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>i?(r.sortIndex=s,t(c,r),null===n(l)&&r===n(c)&&(m?(y(S),S=-1):m=!0,P(x,s-i))):(r.sortIndex=o,t(l,r),p||f||(p=!0,O(w))),r},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}}(ke),we.exports=ke;var je=we.exports,_e=Y,Se=je;function Ae(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 Ee=new Set,Ne={};function Ie(e,t){Te(e,t),Te(e+"Capture",t)}function Te(e,t){for(Ne[e]=t,e=0;e<t.length;e++)Ee.add(t[e])}var Ce=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Oe=Object.prototype.hasOwnProperty,Pe=/^[: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]*$/,Re={},Fe={};function De(e,t,n,r,a,s,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new De(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new De(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new De(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){Le[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new De(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Le[e]=new De(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Le[e]=new De(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Le[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var Me=/[\-:]([a-z])/g;function ze(e){return e[1].toUpperCase()}function $e(e,t,n,r){var a=Le.hasOwnProperty(t)?Le[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!Oe.call(Fe,e)||!Oe.call(Re,e)&&(Pe.test(e)?Fe[e]=!0:(Re[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Me,ze);Le[t]=new De(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(Me,ze);Le[t]=new De(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(Me,ze);Le[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)}),Le.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Le[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});var Ue=_e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ve=Symbol.for("react.element"),Be=Symbol.for("react.portal"),We=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),Ke=Symbol.for("react.profiler"),He=Symbol.for("react.provider"),Ge=Symbol.for("react.context"),Ze=Symbol.for("react.forward_ref"),Je=Symbol.for("react.suspense"),Qe=Symbol.for("react.suspense_list"),Ye=Symbol.for("react.memo"),Xe=Symbol.for("react.lazy"),et=Symbol.for("react.offscreen"),tt=Symbol.iterator;function nt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=tt&&e[tt]||e["@@iterator"])?e:null}var rt,at=Object.assign;function st(e){if(void 0===rt)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);rt=t&&t[1]||""}return"\n"+rt+e}var it=!1;function ot(e,t){if(!e||it)return"";it=!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()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var a=c.stack.split("\n"),s=r.stack.split("\n"),i=a.length-1,o=s.length-1;1<=i&&0<=o&&a[i]!==s[o];)o--;for(;1<=i&&0<=o;i--,o--)if(a[i]!==s[o]){if(1!==i||1!==o)do{if(i--,0>--o||a[i]!==s[o]){var l="\n"+a[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=o);break}}}finally{it=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?st(e):""}function lt(e){switch(e.tag){case 5:return st(e.type);case 16:return st("Lazy");case 13:return st("Suspense");case 19:return st("SuspenseList");case 0:case 2:case 15:return e=ot(e.type,!1);case 11:return e=ot(e.type.render,!1);case 1:return e=ot(e.type,!0);default:return""}}function ct(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case We:return"Fragment";case Be:return"Portal";case Ke:return"Profiler";case qe:return"StrictMode";case Je:return"Suspense";case Qe:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ge:return(e.displayName||"Context")+".Consumer";case He:return(e._context.displayName||"Context")+".Provider";case Ze:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ye:return null!==(t=e.displayName||null)?t:ct(e.type)||"Memo";case Xe:t=e._payload,e=e._init;try{return ct(e(t))}catch(n){}}return null}function ut(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=(e=t.render).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 ct(t);case 8:return t===qe?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function dt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ft(e){e._valueTracker||(e._valueTracker=function(e){var t=ht(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function mt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function gt(e,t){var n=t.checked;return at({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function yt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=dt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function vt(e,t){null!=(t=t.checked)&&$e(e,"checked",t,!1)}function bt(e,t){vt(e,t);var n=dt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?wt(e,t.type,n):t.hasOwnProperty("defaultValue")&&wt(e,t.type,dt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function xt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function wt(e,t,n){"number"===t&&mt(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var kt=Array.isArray;function jt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function _t(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Ae(91));return at({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function St(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Ae(92));if(kt(n)){if(1<n.length)throw Error(Ae(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:dt(n)}}function At(e,t){var n=dt(t.value),r=dt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Et(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Nt(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 It(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Nt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Tt,Ct,Ot=(Ct=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Tt=Tt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Tt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Ct(e,t)})}:Ct);function Pt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Rt={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},Ft=["Webkit","ms","Moz","O"];function Dt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Rt.hasOwnProperty(e)&&Rt[e]?(""+t).trim():t+"px"}function Lt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=Dt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(Rt).forEach(function(e){Ft.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rt[t]=Rt[e]})});var Mt=at({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 zt(e,t){if(t){if(Mt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Ae(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Ae(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ae(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Ae(62))}}function $t(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 Ut=null;function Vt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Bt=null,Wt=null,qt=null;function Kt(e){if(e=$s(e)){if("function"!=typeof Bt)throw Error(Ae(280));var t=e.stateNode;t&&(t=Vs(t),Bt(e.stateNode,e.type,t))}}function Ht(e){Wt?qt?qt.push(e):qt=[e]:Wt=e}function Gt(){if(Wt){var e=Wt,t=qt;if(qt=Wt=null,Kt(e),t)for(e=0;e<t.length;e++)Kt(t[e])}}function Zt(e,t){return e(t)}function Jt(){}var Qt=!1;function Yt(e,t,n){if(Qt)return e(t,n);Qt=!0;try{return Zt(e,t,n)}finally{Qt=!1,(null!==Wt||null!==qt)&&(Jt(),Gt())}}function Xt(e,t){var n=e.stateNode;if(null===n)return null;var r=Vs(n);if(null===r)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)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(Ae(231,t,typeof n));return n}var en=!1;if(Ce)try{var tn={};Object.defineProperty(tn,"passive",{get:function(){en=!0}}),window.addEventListener("test",tn,tn),window.removeEventListener("test",tn,tn)}catch(Ct){en=!1}function nn(e,t,n,r,a,s,i,o,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var rn=!1,an=null,sn=!1,on=null,ln={onError:function(e){rn=!0,an=e}};function cn(e,t,n,r,a,s,i,o,l){rn=!1,an=null,nn.apply(ln,arguments)}function un(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function dn(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function hn(e){if(un(e)!==e)throw Error(Ae(188))}function fn(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=un(e)))throw Error(Ae(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(r=a.return)){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return hn(a),e;if(s===r)return hn(a),t;s=s.sibling}throw Error(Ae(188))}if(n.return!==r.return)n=a,r=s;else{for(var i=!1,o=a.child;o;){if(o===n){i=!0,n=a,r=s;break}if(o===r){i=!0,r=a,n=s;break}o=o.sibling}if(!i){for(o=s.child;o;){if(o===n){i=!0,n=s,r=a;break}if(o===r){i=!0,r=s,n=a;break}o=o.sibling}if(!i)throw Error(Ae(189))}}if(n.alternate!==r)throw Error(Ae(190))}if(3!==n.tag)throw Error(Ae(188));return n.stateNode.current===n?e:t}(e))?pn(e):null}function pn(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=pn(e);if(null!==t)return t;e=e.sibling}return null}var mn=Se.unstable_scheduleCallback,gn=Se.unstable_cancelCallback,yn=Se.unstable_shouldYield,vn=Se.unstable_requestPaint,bn=Se.unstable_now,xn=Se.unstable_getCurrentPriorityLevel,wn=Se.unstable_ImmediatePriority,kn=Se.unstable_UserBlockingPriority,jn=Se.unstable_NormalPriority,_n=Se.unstable_LowPriority,Sn=Se.unstable_IdlePriority,An=null,En=null;var Nn=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(In(e)/Tn|0)|0},In=Math.log,Tn=Math.LN2;var Cn=64,On=4194304;function Pn(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rn(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,s=e.pingedLanes,i=268435455&n;if(0!==i){var o=i&~a;0!==o?r=Pn(o):0!==(s&=i)&&(r=Pn(s))}else 0!==(i=n&~a)?r=Pn(i):0!==s&&(r=Pn(s));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(s=t&-t)||16===a&&4194240&s))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-Nn(t)),r|=e[n],t&=~a;return r}function Fn(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;default:return-1}}function Dn(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ln(){var e=Cn;return!(4194240&(Cn<<=1))&&(Cn=64),e}function Mn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Nn(t)]=n}function $n(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var Un=0;function Vn(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Bn,Wn,qn,Kn,Hn,Gn=!1,Zn=[],Jn=null,Qn=null,Yn=null,Xn=new Map,er=new Map,tr=[],nr="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 rr(e,t){switch(e){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Yn=null;break;case"pointerover":case"pointerout":Xn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":er.delete(t.pointerId)}}function ar(e,t,n,r,a,s){return null===e||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[a]},null!==t&&(null!==(t=$s(t))&&Wn(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function sr(e){var t=zs(e.target);if(null!==t){var n=un(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=dn(n)))return e.blockedOn=t,void Hn(e.priority,function(){qn(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function ir(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=yr(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=$s(n))&&Wn(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ut=r,n.target.dispatchEvent(r),Ut=null,t.shift()}return!0}function or(e,t,n){ir(e)&&n.delete(t)}function lr(){Gn=!1,null!==Jn&&ir(Jn)&&(Jn=null),null!==Qn&&ir(Qn)&&(Qn=null),null!==Yn&&ir(Yn)&&(Yn=null),Xn.forEach(or),er.forEach(or)}function cr(e,t){e.blockedOn===t&&(e.blockedOn=null,Gn||(Gn=!0,Se.unstable_scheduleCallback(Se.unstable_NormalPriority,lr)))}function ur(e){function t(t){return cr(t,e)}if(0<Zn.length){cr(Zn[0],e);for(var n=1;n<Zn.length;n++){var r=Zn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Jn&&cr(Jn,e),null!==Qn&&cr(Qn,e),null!==Yn&&cr(Yn,e),Xn.forEach(t),er.forEach(t),n=0;n<tr.length;n++)(r=tr[n]).blockedOn===e&&(r.blockedOn=null);for(;0<tr.length&&null===(n=tr[0]).blockedOn;)sr(n),null===n.blockedOn&&tr.shift()}var dr=Ue.ReactCurrentBatchConfig,hr=!0;function fr(e,t,n,r){var a=Un,s=dr.transition;dr.transition=null;try{Un=1,mr(e,t,n,r)}finally{Un=a,dr.transition=s}}function pr(e,t,n,r){var a=Un,s=dr.transition;dr.transition=null;try{Un=4,mr(e,t,n,r)}finally{Un=a,dr.transition=s}}function mr(e,t,n,r){if(hr){var a=yr(e,t,n,r);if(null===a)ds(e,t,r,gr,n),rr(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Jn=ar(Jn,e,t,n,r,a),!0;case"dragenter":return Qn=ar(Qn,e,t,n,r,a),!0;case"mouseover":return Yn=ar(Yn,e,t,n,r,a),!0;case"pointerover":var s=a.pointerId;return Xn.set(s,ar(Xn.get(s)||null,e,t,n,r,a)),!0;case"gotpointercapture":return s=a.pointerId,er.set(s,ar(er.get(s)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(rr(e,r),4&t&&-1<nr.indexOf(e)){for(;null!==a;){var s=$s(a);if(null!==s&&Bn(s),null===(s=yr(e,t,n,r))&&ds(e,t,r,gr,n),s===a)break;a=s}null!==a&&r.stopPropagation()}else ds(e,t,r,null,n)}}var gr=null;function yr(e,t,n,r){if(gr=null,null!==(e=zs(e=Vt(r))))if(null===(t=un(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=dn(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return gr=e,null}function vr(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(xn()){case wn:return 1;case kn:return 4;case jn:case _n:return 16;case Sn:return 536870912;default:return 16}default:return 16}}var br=null,xr=null,wr=null;function kr(){if(wr)return wr;var e,t,n=xr,r=n.length,a="value"in br?br.value:br.textContent,s=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[s-t];t++);return wr=a.slice(e,1<t?1-t:void 0)}function jr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function _r(){return!0}function Sr(){return!1}function Ar(e){function t(t,n,r,a,s){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=s,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?_r:Sr,this.isPropagationStopped=Sr,this}return at(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=_r)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=_r)},persist:function(){},isPersistent:_r}),t}var Er,Nr,Ir,Tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cr=Ar(Tr),Or=at({},Tr,{view:0,detail:0}),Pr=Ar(Or),Rr=at({},Or,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,363 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ir&&(Ir&&"mousemove"===e.type?(Er=e.screenX-Ir.screenX,Nr=e.screenY-Ir.screenY):Nr=Er=0,Ir=e),Er)},movementY:function(e){return"movementY"in e?e.movementY:Nr}}),Fr=Ar(Rr),Dr=Ar(at({},Rr,{dataTransfer:0})),Lr=Ar(at({},Or,{relatedTarget:0})),Mr=Ar(at({},Tr,{animationName:0,elapsedTime:0,pseudoElement:0})),zr=at({},Tr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$r=Ar(zr),Ur=Ar(at({},Tr,{data:0})),Vr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Br={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"},Wr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Wr[e])&&!!t[e]}function Kr(){return qr}var Hr=at({},Or,{key:function(e){if(e.key){var t=Vr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=jr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Br[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kr,charCode:function(e){return"keypress"===e.type?jr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?jr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Gr=Ar(Hr),Zr=Ar(at({},Rr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Jr=Ar(at({},Or,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kr})),Qr=Ar(at({},Tr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Yr=at({},Rr,{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}),Xr=Ar(Yr),ea=[9,13,27,32],ta=Ce&&"CompositionEvent"in window,na=null;Ce&&"documentMode"in document&&(na=document.documentMode);var ra=Ce&&"TextEvent"in window&&!na,aa=Ce&&(!ta||na&&8<na&&11>=na),sa=String.fromCharCode(32),ia=!1;function oa(e,t){switch(e){case"keyup":return-1!==ea.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function la(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ca=!1;var ua={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 da(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ua[e.type]:"textarea"===t}function ha(e,t,n,r){Ht(r),0<(t=fs(t,"onChange")).length&&(n=new Cr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var fa=null,pa=null;function ma(e){ss(e,0)}function ga(e){if(pt(Us(e)))return e}function ya(e,t){if("change"===e)return t}var va=!1;if(Ce){var ba;if(Ce){var xa="oninput"in document;if(!xa){var wa=document.createElement("div");wa.setAttribute("oninput","return;"),xa="function"==typeof wa.oninput}ba=xa}else ba=!1;va=ba&&(!document.documentMode||9<document.documentMode)}function ka(){fa&&(fa.detachEvent("onpropertychange",ja),pa=fa=null)}function ja(e){if("value"===e.propertyName&&ga(pa)){var t=[];ha(t,pa,e,Vt(e)),Yt(ma,t)}}function _a(e,t,n){"focusin"===e?(ka(),pa=n,(fa=t).attachEvent("onpropertychange",ja)):"focusout"===e&&ka()}function Sa(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return ga(pa)}function Aa(e,t){if("click"===e)return ga(t)}function Ea(e,t){if("input"===e||"change"===e)return ga(t)}var Na="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Ia(e,t){if(Na(e,t))return!0;
vendor: 4,841 bytes, line 2
2if("object"!=typeof e||null===e||"object"!=typeof t||null===t)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 a=n[r];if(!Oe.call(t,a)||!Na(e[a],t[a]))return!1}return!0}function Ta(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ca(e,t){var n,r=Ta(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ta(r)}}function Oa(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Oa(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Pa(){for(var e=window,t=mt();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function Ra(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Fa(e){var t=Pa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Oa(n.ownerDocument.documentElement,n)){if(null!==r&&Ra(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var a=n.textContent.length,s=Math.min(r.start,a);r=void 0===r.end?s:Math.min(r.end,a),!e.extend&&s>r&&(a=r,r=s,s=a),a=Ca(n,s);var i=Ca(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Da=Ce&&"documentMode"in document&&11>=document.documentMode,La=null,Ma=null,za=null,$a=!1;function Ua(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;$a||null==La||La!==mt(r)||("selectionStart"in(r=La)&&Ra(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},za&&Ia(za,r)||(za=r,0<(r=fs(Ma,"onSelect")).length&&(t=new Cr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=La)))}function Va(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ba={animationend:Va("Animation","AnimationEnd"),animationiteration:Va("Animation","AnimationIteration"),animationstart:Va("Animation","AnimationStart"),transitionend:Va("Transition","TransitionEnd")},Wa={},qa={};function Ka(e){if(Wa[e])return Wa[e];if(!Ba[e])return e;var t,n=Ba[e];for(t in n)if(n.hasOwnProperty(t)&&t in qa)return Wa[e]=n[t];return e}Ce&&(qa=document.createElement("div").style,"AnimationEvent"in window||(delete Ba.animationend.animation,delete Ba.animationiteration.animation,delete Ba.animationstart.animation),"TransitionEvent"in window||delete Ba.transitionend.transition);var Ha=Ka("animationend"),Ga=Ka("animationiteration"),Za=Ka("animationstart"),Ja=Ka("transitionend"),Qa=new Map,Ya="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 Xa(e,t){Qa.set(e,t),Ie(t,[e])}for(var es=0;es<Ya.length;es++){var ts=Ya[es];Xa(ts.toLowerCase(),"on"+(ts[0].toUpperCase()+ts.slice(1)))}Xa(Ha,"onAnimationEnd"),Xa(Ga,"onAnimationIteration"),Xa(Za,"onAnimationStart"),Xa("dblclick","onDoubleClick"),Xa("focusin","onFocus"),Xa("focusout","onBlur"),Xa(Ja,"onTransitionEnd"),Te("onMouseEnter",["mouseout","mouseover"]),Te("onMouseLeave",["mouseout","mouseover"]),Te("onPointerEnter",["pointerout","pointerover"]),Te("onPointerLeave",["pointerout","pointerover"]),Ie("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ie("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),Ie("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ie("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ie("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ie("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ns="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(" "),rs=new Set("cancel close invalid load scroll toggle".split(" ").concat(ns));function as(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,s,i,o,l){if(cn.apply(this,arguments),rn){if(!rn)throw Error(Ae(198));var c=an;rn=!1,an=null,sn||(sn=!0,on=c)}}(r,t,void 0,e),e.currentTarget=null}function ss(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var o=r[i],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==s&&a.isPropagationStopped())break e;as(a,o,c),s=l}else for(i=0;i<r.length;i++){if(l=(o=r[i]).instance,c=o.currentTarget,o=o.listener,l!==s&&a.isPropagationStopped())break e;as(a,o,c),s=l}}}if(sn)throw e=on,sn=!1,on=null,e}function is(e,t){var n=t[Ds];void 0===n&&(n=t[Ds]=new Set);var r=e+"__bubble";n.has(r)||(us(t,e,2,!1),n.add(r))}function os(e,t,n){var r=0;t&&(r|=4),us(n,e,r,t)}var ls="_reactListening"+Math.random().toString(36).slice(2);function cs(e){if(!e[ls]){e[ls]=!0,Ee.forEach(function(t){"selectionchange"!==t&&(rs.has(t)||os(t,!1,e),os(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ls]||(t[ls]=!0,os("selectionchange",!1,t))}}function us(e,t,n,r){switch(vr(t)){case 1:var a=fr;break;case 4:a=pr;break;default:a=mr}n=a.bind(null,t,n,e),a=void 0,!en||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function ds(e,t,n,r,a){var s=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var o=r.stateNode.containerInfo;if(o===a||8===o.nodeType&&o.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==o;){if(null===(i=zs(o)))return;if(5===(l=i.tag)||6===l){r=s=i;continue e}o=o.parentNode}}r=r.return}Yt(function(){var r=s,a=Vt(n),i=[];e:{var o=Qa.get(e);if(void 0!==o){var l=Cr,c=e;switch(e){case"keypress":if(0===jr(n))break e;case"keydown":case"keyup":l=Gr;break;case"focusin":c="focus",l=Lr;break;case"focusout":c="blur",l=Lr;break;case"beforeblur":case"afterblur":l=Lr;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=Dr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Jr;break;case Ha:case Ga:case Za:l=Mr;break;case Ja:l=Qr;break;case"scroll":l=Pr;break;case"wheel":l=Xr;break;case"copy":case"cut":case"paste":l=$r;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Zr}var u=!!(4&t),d=!u&&"scroll"===e,h=u?null!==o?o+"Capture":null:o;u=[];for(var f,p=r;null!==p;){var m=(f=p).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==h&&(null!=(m=Xt(p,h))&&u.push(hs(p,m,f)))),d)break;p=p.return}0<u.length&&(o=new l(o,c,null,n,a),i.push({event:o,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===Ut||!(c=n.relatedTarget||n.fromElement)||!zs(c)&&!c[Fs])&&(l||o)&&(o=a.window===a?a:(o=a.ownerDocument)?o.defaultView||o.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?zs(c):null)&&(c!==(d=un(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=Fr,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Zr,m="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?o:Us(l),f=null==c?o:Us(c),(o=new u(m,p+"leave",l,n,a)).target=d,o.relatedTarget=f,m=null,zs(a)===r&&((u=new u(h,p+"enter",c,n,a)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(h=c,p=0,f=u=l;f;f=ps(f))p++;for(f=0,m=h;m;m=ps(m))f++;for(;0<p-f;)u=ps(u),p--;for(;0<f-p;)h=ps(h),f--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=ps(u),h=ps(h)}u=null}else u=null;null!==l&&ms(i,o,l,u,!1),null!==c&&null!==d&&ms(i,d,c,u,!0)}if("select"===(l=(o=r?Us(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===l&&"file"===o.type)var g=ya;else if(da(o))if(va)g=Ea;else{g=Sa;var y=_a}else(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(g=Aa);switch(g&&(g=g(e,r))?ha(i,g,n,a):(y&&y(e,o,r),"focusout"===e&&(y=o._wrapperState)&&y.controlled&&"number"===o.type&&wt(o,"number",o.value)),y=r?Us(r):window,e){case"focusin":(da(y)||"true"===y.contentEditable)&&(La=y,Ma=r,za=null);break;case"focusout":za=Ma=La=null;break;case"mousedown":$a=!0;break;case"contextmenu":case"mouseup":case"dragend":$a=!1,Ua(i,n,a);break;case"selectionchange":if(Da)break;case"keydown":case"keyup":Ua(i,n,a)}var v;if(ta)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else ca?oa(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(aa&&"ko"!==n.locale&&(ca||"onCompositionStart"!==b?"onCompositionEnd"===b&&ca&&(v=kr()):(xr="value"in(br=a)?br.value:br.textContent,ca=!0)),0<(y=fs(r,b)).length&&(b=new Ur(b,e,null,n,a),i.push({event:b,listeners:y}),v?b.data=v:null!==(v=la(n))&&(b.data=v))),(v=ra?function(e,t){switch(e){case"compositionend":return la(t);case"keypress":return 32!==t.which?null:(ia=!0,sa);case"textInput":return(e=t.data)===sa&&ia?null:e;default:return null}}(e,n):function(e,t){if(ca)return"compositionend"===e||!ta&&oa(e,t)?(e=kr(),wr=xr=br=null,ca=!1,e):null;switch(e){case"paste":default: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 aa&&"ko"!==t.locale?null:t.data}}
vendor: 4,614 bytes, line 2
2(e,n))&&(0<(r=fs(r,"onBeforeInput")).length&&(a=new Ur("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=v))}ss(i,t)})}function hs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fs(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,s=a.stateNode;5===a.tag&&null!==s&&(a=s,null!=(s=Xt(e,n))&&r.unshift(hs(e,s,a)),null!=(s=Xt(e,t))&&r.push(hs(e,s,a))),e=e.return}return r}function ps(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ms(e,t,n,r,a){for(var s=t._reactName,i=[];null!==n&&n!==r;){var o=n,l=o.alternate,c=o.stateNode;if(null!==l&&l===r)break;5===o.tag&&null!==c&&(o=c,a?null!=(l=Xt(n,s))&&i.unshift(hs(n,l,o)):a||null!=(l=Xt(n,s))&&i.push(hs(n,l,o))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var gs=/\r\n?/g,ys=/\u0000|\uFFFD/g;function vs(e){return("string"==typeof e?e:""+e).replace(gs,"\n").replace(ys,"")}function bs(e,t,n){if(t=vs(t),vs(e)!==t&&n)throw Error(Ae(425))}function xs(){}var ws=null,ks=null;function js(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var _s="function"==typeof setTimeout?setTimeout:void 0,Ss="function"==typeof clearTimeout?clearTimeout:void 0,As="function"==typeof Promise?Promise:void 0,Es="function"==typeof queueMicrotask?queueMicrotask:void 0!==As?function(e){return As.resolve(null).then(e).catch(Ns)}:_s;function Ns(e){setTimeout(function(){throw e})}function Is(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void ur(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);ur(t)}function Ts(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Cs(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Os=Math.random().toString(36).slice(2),Ps="__reactFiber$"+Os,Rs="__reactProps$"+Os,Fs="__reactContainer$"+Os,Ds="__reactEvents$"+Os,Ls="__reactListeners$"+Os,Ms="__reactHandles$"+Os;function zs(e){var t=e[Ps];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Fs]||n[Ps]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Cs(e);null!==e;){if(n=e[Ps])return n;e=Cs(e)}return t}n=(e=n).parentNode}return null}function $s(e){return!(e=e[Ps]||e[Fs])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Us(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Ae(33))}function Vs(e){return e[Rs]||null}var Bs=[],Ws=-1;function qs(e){return{current:e}}function Ks(e){0>Ws||(e.current=Bs[Ws],Bs[Ws]=null,Ws--)}function Hs(e,t){Ws++,Bs[Ws]=e.current,e.current=t}var Gs={},Zs=qs(Gs),Js=qs(!1),Qs=Gs;function Ys(e,t){var n=e.type.contextTypes;if(!n)return Gs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,s={};for(a in n)s[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Xs(e){return null!=(e=e.childContextTypes)}function ei(){Ks(Js),Ks(Zs)}function ti(e,t,n){if(Zs.current!==Gs)throw Error(Ae(168));Hs(Zs,t),Hs(Js,n)}function ni(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(Ae(108,ut(e)||"Unknown",a));return at({},n,r)}function ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gs,Qs=Zs.current,Hs(Zs,e),Hs(Js,Js.current),!0}function ai(e,t,n){var r=e.stateNode;if(!r)throw Error(Ae(169));n?(e=ni(e,t,Qs),r.__reactInternalMemoizedMergedChildContext=e,Ks(Js),Ks(Zs),Hs(Zs,e)):Ks(Js),Hs(Js,n)}var si=null,ii=!1,oi=!1;function li(e){null===si?si=[e]:si.push(e)}function ci(){if(!oi&&null!==si){oi=!0;var e=0,t=Un;try{var n=si;for(Un=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}si=null,ii=!1}catch(a){throw null!==si&&(si=si.slice(e+1)),mn(wn,ci),a}finally{Un=t,oi=!1}}return null}var ui=[],di=0,hi=null,fi=0,pi=[],mi=0,gi=null,yi=1,vi="";function bi(e,t){ui[di++]=fi,ui[di++]=hi,hi=e,fi=t}function xi(e,t,n){pi[mi++]=yi,pi[mi++]=vi,pi[mi++]=gi,gi=e;var r=yi;e=vi;var a=32-Nn(r)-1;r&=~(1<<a),n+=1;var s=32-Nn(t)+a;if(30<s){var i=a-a%5;s=(r&(1<<i)-1).toString(32),r>>=i,a-=i,yi=1<<32-Nn(t)+a|n<<a|r,vi=s+e}else yi=1<<s|n<<a|r,vi=e}
vendor: 5,328 bytes, line 2
2function wi(e){null!==e.return&&(bi(e,1),xi(e,1,0))}function ki(e){for(;e===hi;)hi=ui[--di],ui[di]=null,fi=ui[--di],ui[di]=null;for(;e===gi;)gi=pi[--mi],pi[mi]=null,vi=pi[--mi],pi[mi]=null,yi=pi[--mi],pi[mi]=null}var ji=null,_i=null,Si=!1,Ai=null;function Ei(e,t){var n=Yu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Ni(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ji=e,_i=Ts(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ji=e,_i=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==gi?{id:yi,overflow:vi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Yu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ji=e,_i=null,!0);default:return!1}}function Ii(e){return!(!(1&e.mode)||128&e.flags)}function Ti(e){if(Si){var t=_i;if(t){var n=t;if(!Ni(e,t)){if(Ii(e))throw Error(Ae(418));t=Ts(n.nextSibling);var r=ji;t&&Ni(e,t)?Ei(r,n):(e.flags=-4097&e.flags|2,Si=!1,ji=e)}}else{if(Ii(e))throw Error(Ae(418));e.flags=-4097&e.flags|2,Si=!1,ji=e}}}function Ci(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ji=e}function Oi(e){if(e!==ji)return!1;if(!Si)return Ci(e),Si=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!js(e.type,e.memoizedProps)),t&&(t=_i)){if(Ii(e))throw Pi(),Error(Ae(418));for(;t;)Ei(e,t),t=Ts(t.nextSibling)}if(Ci(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Ae(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){_i=Ts(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}_i=null}}else _i=ji?Ts(e.stateNode.nextSibling):null;return!0}function Pi(){for(var e=_i;e;)e=Ts(e.nextSibling)}function Ri(){_i=ji=null,Si=!1}function Fi(e){null===Ai?Ai=[e]:Ai.push(e)}var Di=Ue.ReactCurrentBatchConfig;function Li(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(Ae(309));var r=n.stateNode}if(!r)throw Error(Ae(147,e));var a=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:((t=function(e){var t=a.refs;null===e?delete t[s]:t[s]=e})._stringRef=s,t)}if("string"!=typeof e)throw Error(Ae(284));if(!n._owner)throw Error(Ae(290,e))}return e}function Mi(e,t){throw e=Object.prototype.toString.call(t),Error(Ae(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zi(e){return(0,e._init)(e._payload)}function $i(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=ed(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function o(e,t,n,r){return null===t||6!==t.tag?((t=ad(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function l(e,t,n,r){var s=n.type;return s===We?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===Xe&&zi(s)===t.type)?((r=a(t,n.props)).ref=Li(e,t,n),r.return=e,r):((r=td(n.type,n.key,n.props,null,e.mode,r)).ref=Li(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=sd(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function u(e,t,n,r,s){return null===t||7!==t.tag?((t=nd(n,e.mode,r,s)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ad(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ve:return(n=td(t.type,t.key,t.props,null,e.mode,n)).ref=Li(e,null,t),n.return=e,n;case Be:return(t=sd(t,e.mode,n)).return=e,t;case Xe:return d(e,(0,t._init)(t._payload),n)}if(kt(t)||nt(t))return(t=nd(t,e.mode,n,null)).return=e,t;Mi(e,t)}return null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:o(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ve:return n.key===a?l(e,t,n,r):null;case Be:return n.key===a?c(e,t,n,r):null;case Xe:return h(e,t,(a=n._init)(n._payload),r)}if(kt(n)||nt(n))return null!==a?null:u(e,t,n,r,null);Mi(e,n)}return null}function f(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return o(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ve:return l(t,e=e.get(null===r.key?n:r.key)||null,r,a);case Be:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case Xe:return f(e,t,n,(0,r._init)(r._payload),a)}if(kt(r)||nt(r))return u(t,e=e.get(n)||null,r,a,null);Mi(t,r)}return null}return function o(l,c,u,p){if("object"==typeof u&&null!==u&&u.type===We&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case Ve:e:{for(var m=u.key,g=c;
vendor: 4,208 bytes, line 2
2null!==g;){if(g.key===m){if((m=u.type)===We){if(7===g.tag){n(l,g.sibling),(c=a(g,u.props.children)).return=l,l=c;break e}}else if(g.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===Xe&&zi(m)===g.type){n(l,g.sibling),(c=a(g,u.props)).ref=Li(l,g,u),c.return=l,l=c;break e}n(l,g);break}t(l,g),g=g.sibling}u.type===We?((c=nd(u.props.children,l.mode,p,u.key)).return=l,l=c):((p=td(u.type,u.key,u.props,null,l.mode,p)).ref=Li(l,c,u),p.return=l,l=p)}return i(l);case Be:e:{for(g=u.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(c=a(c,u.children||[])).return=l,l=c;break e}n(l,c);break}t(l,c),c=c.sibling}(c=sd(u,l.mode,p)).return=l,l=c}return i(l);case Xe:return o(l,c,(g=u._init)(u._payload),p)}if(kt(u))return function(a,i,o,l){for(var c=null,u=null,p=i,m=i=0,g=null;null!==p&&m<o.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=h(a,p,o[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(a,p),i=s(y,i,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===o.length)return n(a,p),Si&&bi(a,m),c;if(null===p){for(;m<o.length;m++)null!==(p=d(a,o[m],l))&&(i=s(p,i,m),null===u?c=p:u.sibling=p,u=p);return Si&&bi(a,m),c}for(p=r(a,p);m<o.length;m++)null!==(g=f(p,a,m,o[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),i=s(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach(function(e){return t(a,e)}),Si&&bi(a,m),c}(l,c,u,p);if(nt(u))return function(a,i,o,l){var c=nt(o);if("function"!=typeof c)throw Error(Ae(150));if(null==(o=c.call(o)))throw Error(Ae(151));for(var u=c=null,p=i,m=i=0,g=null,y=o.next();null!==p&&!y.done;m++,y=o.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=h(a,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(a,p),i=s(v,i,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(a,p),Si&&bi(a,m),c;if(null===p){for(;!y.done;m++,y=o.next())null!==(y=d(a,y.value,l))&&(i=s(y,i,m),null===u?c=y:u.sibling=y,u=y);return Si&&bi(a,m),c}for(p=r(a,p);!y.done;m++,y=o.next())null!==(y=f(p,a,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),i=s(y,i,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach(function(e){return t(a,e)}),Si&&bi(a,m),c}(l,c,u,p);Mi(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(c=a(c,u)).return=l,l=c):(n(l,c),(c=ad(u,l.mode,p)).return=l,l=c),i(l)):n(l,c)}}var Ui=$i(!0),Vi=$i(!1),Bi=qs(null),Wi=null,qi=null,Ki=null;function Hi(){Ki=qi=Wi=null}function Gi(e){var t=Bi.current;Ks(Bi),e._currentValue=t}function Zi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ji(e,t){Wi=e,Ki=qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&($l=!0),e.firstContext=null)}function Qi(e){var t=e._currentValue;if(Ki!==e)if(e={context:e,memoizedValue:t,next:null},null===qi){if(null===Wi)throw Error(Ae(308));qi=e,Wi.dependencies={lanes:0,firstContext:e}}else qi=qi.next=e;return t}var Yi=null;function Xi(e){null===Yi?Yi=[e]:Yi.push(e)}function eo(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Xi(t)):(n.next=a.next,a.next=n),t.interleaved=n,to(e,r)}function to(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var no=!1;function ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ao(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 so(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function io(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Zc){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,to(e,n)}return null===(a=r.interleaved)?(t.next=t,Xi(r)):(t.next=a.next,a.next=t),r.interleaved=t,to(e,n)}
vendor: 4,146 bytes, line 2
2function oo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,$n(e,n)}}function lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,s=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===s?a=s=i:s=s.next=i,n=n.next}while(null!==n);null===s?a=s=t:s=s.next=t}else a=s=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:s,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function co(e,t,n,r){var a=e.updateQueue;no=!1;var s=a.firstBaseUpdate,i=a.lastBaseUpdate,o=a.shared.pending;if(null!==o){a.shared.pending=null;var l=o,c=l.next;l.next=null,null===i?s=c:i.next=c,i=l;var u=e.alternate;null!==u&&((o=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===o?u.firstBaseUpdate=c:o.next=c,u.lastBaseUpdate=l))}if(null!==s){var d=a.baseState;for(i=0,u=c=l=null,o=s;;){var h=o.lane,f=o.eventTime;if((r&h)===h){null!==u&&(u=u.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,m=o;switch(h=t,f=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=m.payload)?p.call(f,d,h):p))break e;d=at({},d,h);break e;case 2:no=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(h=a.effects)?a.effects=[o]:h.push(o))}else f={eventTime:f,lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=h;if(null===(o=o.next)){if(null===(o=a.shared.pending))break;o=(h=o).next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}if(null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===s&&(a.shared.lanes=0);ru|=i,e.lanes=i,e.memoizedState=d}}function uo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(Ae(191,a));a.call(r)}}}var ho={},fo=qs(ho),po=qs(ho),mo=qs(ho);function go(e){if(e===ho)throw Error(Ae(174));return e}function yo(e,t){switch(Hs(mo,t),Hs(po,e),Hs(fo,ho),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:It(null,"");break;default:t=It(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ks(fo),Hs(fo,t)}function vo(){Ks(fo),Ks(po),Ks(mo)}function bo(e){go(mo.current);var t=go(fo.current),n=It(t,e.type);t!==n&&(Hs(po,e),Hs(fo,n))}function xo(e){po.current===e&&(Ks(fo),Ks(po))}var wo=qs(0);function ko(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jo=[];function _o(){for(var e=0;e<jo.length;e++)jo[e]._workInProgressVersionPrimary=null;jo.length=0}var So=Ue.ReactCurrentDispatcher,Ao=Ue.ReactCurrentBatchConfig,Eo=0,No=null,Io=null,To=null,Co=!1,Oo=!1,Po=0,Ro=0;function Fo(){throw Error(Ae(321))}function Do(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Na(e[n],t[n]))return!1;return!0}function Lo(e,t,n,r,a,s){if(Eo=s,No=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,So.current=null===e||null===e.memoizedState?xl:wl,e=n(r,a),Oo){s=0;do{if(Oo=!1,Po=0,25<=s)throw Error(Ae(301));s+=1,To=Io=null,t.updateQueue=null,So.current=kl,e=n(r,a)}while(Oo)}if(So.current=bl,t=null!==Io&&null!==Io.next,Eo=0,To=Io=No=null,Co=!1,t)throw Error(Ae(300));return e}function Mo(){var e=0!==Po;return Po=0,e}function zo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===To?No.memoizedState=To=e:To=To.next=e,To}function $o(){if(null===Io){var e=No.alternate;e=null!==e?e.memoizedState:null}
vendor: 24,634 bytes, line 2
2else e=Io.next;var t=null===To?No.memoizedState:To.next;if(null!==t)To=t,Io=e;else{if(null===e)throw Error(Ae(310));e={memoizedState:(Io=e).memoizedState,baseState:Io.baseState,baseQueue:Io.baseQueue,queue:Io.queue,next:null},null===To?No.memoizedState=To=e:To=To.next=e}return To}function Uo(e,t){return"function"==typeof t?t(e):t}function Vo(e){var t=$o(),n=t.queue;if(null===n)throw Error(Ae(311));n.lastRenderedReducer=e;var r=Io,a=r.baseQueue,s=n.pending;if(null!==s){if(null!==a){var i=a.next;a.next=s.next,s.next=i}r.baseQueue=a=s,n.pending=null}if(null!==a){s=a.next,r=r.baseState;var o=i=null,l=null,c=s;do{var u=c.lane;if((Eo&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(o=l=d,i=r):l=l.next=d,No.lanes|=u,ru|=u}c=c.next}while(null!==c&&c!==s);null===l?i=r:l.next=o,Na(r,t.memoizedState)||($l=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{s=a.lane,No.lanes|=s,ru|=s,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bo(e){var t=$o(),n=t.queue;if(null===n)throw Error(Ae(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,s=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{s=e(s,i.action),i=i.next}while(i!==a);Na(s,t.memoizedState)||($l=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Wo(){}function qo(e,t){var n=No,r=$o(),a=t(),s=!Na(r.memoizedState,a);if(s&&(r.memoizedState=a,$l=!0),r=r.queue,rl(Go.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==To&&1&To.memoizedState.tag){if(n.flags|=2048,Yo(9,Ho.bind(null,n,r,a,t),void 0,null),null===Jc)throw Error(Ae(349));30&Eo||Ko(n,t,a)}return a}function Ko(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=No.updateQueue)?(t={lastEffect:null,stores:null},No.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ho(e,t,n,r){t.value=n,t.getSnapshot=r,Zo(t)&&Jo(e)}function Go(e,t,n){return n(function(){Zo(t)&&Jo(e)})}function Zo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Na(e,n)}catch(r){return!0}}function Jo(e){var t=to(e,1);null!==t&&ju(t,e,1,-1)}function Qo(e){var t=zo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Uo,lastRenderedState:e},t.queue=e,e=e.dispatch=ml.bind(null,No,e),[t.memoizedState,e]}function Yo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=No.updateQueue)?(t={lastEffect:null,stores:null},No.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Xo(){return $o().memoizedState}function el(e,t,n,r){var a=zo();No.flags|=e,a.memoizedState=Yo(1|t,n,void 0,void 0===r?null:r)}function tl(e,t,n,r){var a=$o();r=void 0===r?null:r;var s=void 0;if(null!==Io){var i=Io.memoizedState;if(s=i.destroy,null!==r&&Do(r,i.deps))return void(a.memoizedState=Yo(t,n,s,r))}No.flags|=e,a.memoizedState=Yo(1|t,n,s,r)}function nl(e,t){return el(8390656,8,e,t)}function rl(e,t){return tl(2048,8,e,t)}function al(e,t){return tl(4,2,e,t)}function sl(e,t){return tl(4,4,e,t)}function il(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ol(e,t,n){return n=null!=n?n.concat([e]):null,tl(4,4,il.bind(null,t,e),n)}function ll(){}function cl(e,t){var n=$o();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Do(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ul(e,t){var n=$o();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Do(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function dl(e,t,n){return 21&Eo?(Na(n,t)||(n=Ln(),No.lanes|=n,ru|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$l=!0),e.memoizedState=n)}function hl(e,t){var n=Un;Un=0!==n&&4>n?n:4,e(!0);var r=Ao.transition;Ao.transition={};try{e(!1),t()}finally{Un=n,Ao.transition=r}}function fl(){return $o().memoizedState}function pl(e,t,n){var r=ku(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gl(e))yl(t,n);else if(null!==(n=eo(e,t,n,r))){ju(n,e,r,wu()),vl(n,t,r)}}function ml(e,t,n){var r=ku(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gl(e))yl(t,a);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var i=t.lastRenderedState,o=s(i,n);if(a.hasEagerState=!0,a.eagerState=o,Na(o,i)){var l=t.interleaved;return null===l?(a.next=a,Xi(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(c){}null!==(n=eo(e,t,a,r))&&(ju(n,e,r,a=wu()),vl(n,t,r))}}function gl(e){var t=e.alternate;return e===No||null!==t&&t===No}function yl(e,t){Oo=Co=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vl(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,$n(e,n)}}var bl={readContext:Qi,useCallback:Fo,useContext:Fo,useEffect:Fo,useImperativeHandle:Fo,useInsertionEffect:Fo,useLayoutEffect:Fo,useMemo:Fo,useReducer:Fo,useRef:Fo,useState:Fo,useDebugValue:Fo,useDeferredValue:Fo,useTransition:Fo,useMutableSource:Fo,useSyncExternalStore:Fo,useId:Fo,unstable_isNewReconciler:!1},xl={readContext:Qi,useCallback:function(e,t){return zo().memoizedState=[e,void 0===t?null:t],e},useContext:Qi,useEffect:nl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,el(4194308,4,il.bind(null,t,e),n)},useLayoutEffect:function(e,t){return el(4194308,4,e,t)},useInsertionEffect:function(e,t){return el(4,2,e,t)},useMemo:function(e,t){var n=zo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zo();return t=void 0!==n?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=pl.bind(null,No,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},zo().memoizedState=e},useState:Qo,useDebugValue:ll,useDeferredValue:function(e){return zo().memoizedState=e},useTransition:function(){var e=Qo(!1),t=e[0];return e=hl.bind(null,e[1]),zo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=No,a=zo();if(Si){if(void 0===n)throw Error(Ae(407));n=n()}else{if(n=t(),null===Jc)throw Error(Ae(349));30&Eo||Ko(r,t,n)}a.memoizedState=n;var s={value:n,getSnapshot:t};return a.queue=s,nl(Go.bind(null,r,s,e),[e]),r.flags|=2048,Yo(9,Ho.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=zo(),t=Jc.identifierPrefix;if(Si){var n=vi;t=":"+t+"R"+(n=(yi&~(1<<32-Nn(yi)-1)).toString(32)+n),0<(n=Po++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ro++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},wl={readContext:Qi,useCallback:cl,useContext:Qi,useEffect:rl,useImperativeHandle:ol,useInsertionEffect:al,useLayoutEffect:sl,useMemo:ul,useReducer:Vo,useRef:Xo,useState:function(){return Vo(Uo)},useDebugValue:ll,useDeferredValue:function(e){return dl($o(),Io.memoizedState,e)},useTransition:function(){return[Vo(Uo)[0],$o().memoizedState]},useMutableSource:Wo,useSyncExternalStore:qo,useId:fl,unstable_isNewReconciler:!1},kl={readContext:Qi,useCallback:cl,useContext:Qi,useEffect:rl,useImperativeHandle:ol,useInsertionEffect:al,useLayoutEffect:sl,useMemo:ul,useReducer:Bo,useRef:Xo,useState:function(){return Bo(Uo)},useDebugValue:ll,useDeferredValue:function(e){var t=$o();return null===Io?t.memoizedState=e:dl(t,Io.memoizedState,e)},useTransition:function(){return[Bo(Uo)[0],$o().memoizedState]},useMutableSource:Wo,useSyncExternalStore:qo,useId:fl,unstable_isNewReconciler:!1};function jl(e,t){if(e&&e.defaultProps){for(var n in t=at({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function _l(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:at({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Sl={isMounted:function(e){return!!(e=e._reactInternals)&&un(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=wu(),a=ku(e),s=so(r,a);s.payload=t,null!=n&&(s.callback=n),null!==(t=io(e,s,a))&&(ju(t,e,a,r),oo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=wu(),a=ku(e),s=so(r,a);s.tag=1,s.payload=t,null!=n&&(s.callback=n),null!==(t=io(e,s,a))&&(ju(t,e,a,r),oo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wu(),r=ku(e),a=so(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=io(e,a,r))&&(ju(t,e,r,n),oo(t,e,r))}};function Al(e,t,n,r,a,s,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,s,i):!t.prototype||!t.prototype.isPureReactComponent||(!Ia(n,r)||!Ia(a,s))}function El(e,t,n){var r=!1,a=Gs,s=t.contextType;return"object"==typeof s&&null!==s?s=Qi(s):(a=Xs(t)?Qs:Zs.current,s=(r=null!=(r=t.contextTypes))?Ys(e,a):Gs),t=new t(n,s),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Sl,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=s),t}function Nl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Sl.enqueueReplaceState(t,t.state,null)}function Il(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},ro(e);var s=t.contextType;"object"==typeof s&&null!==s?a.context=Qi(s):(s=Xs(t)?Qs:Zs.current,a.context=Ys(e,s)),a.state=e.memoizedState,"function"==typeof(s=t.getDerivedStateFromProps)&&(_l(e,t,s,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Sl.enqueueReplaceState(a,a.state,null),co(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Tl(e,t){try{var n="",r=t;do{n+=lt(r),r=r.return}while(r);var a=n}catch(s){a="\nError generating stack: "+s.message+"\n"+s.stack}return{value:e,source:t,stack:a,digest:null}}function Cl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Ol(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Pl="function"==typeof WeakMap?WeakMap:Map;function Rl(e,t,n){(n=so(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){du||(du=!0,hu=r),Ol(0,t)},n}function Fl(e,t,n){(n=so(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){Ol(0,t)}}var s=e.stateNode;return null!==s&&"function"==typeof s.componentDidCatch&&(n.callback=function(){Ol(0,t),"function"!=typeof r&&(null===fu?fu=new Set([this]):fu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Dl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Pl;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ll(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Ml(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=so(-1,1)).tag=2,io(n,t,1))),n.lanes|=1),e)}var zl=Ue.ReactCurrentOwner,$l=!1;function Ul(e,t,n,r){t.child=null===e?Vi(t,null,n,r):Ui(t,e.child,n,r)}function Vl(e,t,n,r,a){n=n.render;var s=t.ref;return Ji(t,a),r=Lo(e,t,n,r,s,a),n=Mo(),null===e||$l?(Si&&n&&wi(t),t.flags|=1,Ul(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,dc(e,t,a))}function Bl(e,t,n,r,a){if(null===e){var s=n.type;return"function"!=typeof s||Xu(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=td(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Wl(e,t,s,r,a))}if(s=e.child,0===(e.lanes&a)){var i=s.memoizedProps;if((n=null!==(n=n.compare)?n:Ia)(i,r)&&e.ref===t.ref)return dc(e,t,a)}return t.flags|=1,(e=ed(s,r)).ref=t.ref,e.return=t,t.child=e}function Wl(e,t,n,r,a){if(null!==e){var s=e.memoizedProps;if(Ia(s,r)&&e.ref===t.ref){if($l=!1,t.pendingProps=r=s,0===(e.lanes&a))return t.lanes=e.lanes,dc(e,t,a);131072&e.flags&&($l=!0)}}return Hl(e,t,n,r,a)}function ql(e,t,n){var r=t.pendingProps,a=r.children,s=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==s?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Hs(eu,Xc),Xc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==s?s.baseLanes:n,Hs(eu,Xc),Xc|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Hs(eu,Xc),Xc|=n;else null!==s?(r=s.baseLanes|n,t.memoizedState=null):r=n,Hs(eu,Xc),Xc|=r;return Ul(e,t,a,n),t.child}function Kl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hl(e,t,n,r,a){var s=Xs(n)?Qs:Zs.current;return s=Ys(t,s),Ji(t,a),n=Lo(e,t,n,r,s,a),r=Mo(),null===e||$l?(Si&&r&&wi(t),t.flags|=1,Ul(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,dc(e,t,a))}function Gl(e,t,n,r,a){if(Xs(n)){var s=!0;ri(t)}else s=!1;if(Ji(t,a),null===t.stateNode)uc(e,t),El(t,n,r),Il(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,o=t.memoizedProps;i.props=o;var l=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Qi(c):c=Ys(t,c=Xs(n)?Qs:Zs.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==r||l!==c)&&Nl(t,i,r,c),no=!1;var h=t.memoizedState;i.state=h,co(t,r,i,a),l=t.memoizedState,o!==r||h!==l||Js.current||no?("function"==typeof u&&(_l(t,n,u,r),l=t.memoizedState),(o=no||Al(t,n,o,r,h,l,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=o):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ao(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:jl(t.type,o),i.props=c,d=t.pendingProps,h=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=Qi(l):l=Ys(t,l=Xs(n)?Qs:Zs.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==d||h!==l)&&Nl(t,i,r,l),no=!1,h=t.memoizedState,i.state=h,co(t,r,i,a);var p=t.memoizedState;o!==d||h!==p||Js.current||no?("function"==typeof f&&(_l(t,n,f,r),p=t.memoizedState),(c=no||Al(t,n,c,r,h,p,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Zl(e,t,n,r,s,a)}function Zl(e,t,n,r,a,s){Kl(e,t);var i=!!(128&t.flags);if(!r&&!i)return a&&ai(t,n,!1),dc(e,t,s);r=t.stateNode,zl.current=t;var o=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ui(t,e.child,null,s),t.child=Ui(t,null,o,s)):Ul(e,t,o,s),t.memoizedState=r.state,a&&ai(t,n,!0),t.child}function Jl(e){var t=e.stateNode;t.pendingContext?ti(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ti(0,t.context,!1),yo(e,t.containerInfo)}function Ql(e,t,n,r,a){return Ri(),Fi(a),t.flags|=256,Ul(e,t,n,r),t.child}var Yl,Xl,ec,tc,nc={dehydrated:null,treeContext:null,retryLane:0};function rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function ac(e,t,n){var r,a=t.pendingProps,s=wo.current,i=!1,o=!!(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&!!(2&s)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Hs(wo,1&s),null===e)return Ti(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=a.children,e=a.fallback,i?(a=t.mode,i=t.child,o={mode:"hidden",children:o},1&a||null===i?i=rd(o,a,0,null):(i.childLanes=0,i.pendingProps=o),e=nd(e,a,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=rc(n),t.memoizedState=nc,e):sc(t,o));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,a,s,i){if(n)return 256&t.flags?(t.flags&=-257,ic(e,t,i,r=Cl(Error(Ae(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,a=t.mode,r=rd({mode:"visible",children:r.children},a,0,null),(s=nd(s,a,i,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,1&t.mode&&Ui(t,e.child,null,i),t.child.memoizedState=rc(i),t.memoizedState=nc,s);if(!(1&t.mode))return ic(e,t,i,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var o=r.dgst;return r=o,ic(e,t,i,r=Cl(s=Error(Ae(419)),r,void 0))}if(o=0!==(i&e.childLanes),$l||o){if(null!==(r=Jc)){switch(i&-i){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(r.suspendedLanes|i))?0:a)&&a!==s.retryLane&&(s.retryLane=a,to(e,a),ju(r,e,a,-1))}return Du(),ic(e,t,i,r=Cl(Error(Ae(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Gu.bind(null,e),a._reactRetry=t,null):(e=s.treeContext,_i=Ts(a.nextSibling),ji=t,Si=!0,Ai=null,null!==e&&(pi[mi++]=yi,pi[mi++]=vi,pi[mi++]=gi,yi=e.id,vi=e.overflow,gi=t),t=sc(t,r.children),t.flags|=4096,t)}(e,t,o,a,r,s,n);if(i){i=a.fallback,o=t.mode,r=(s=e.child).sibling;var l={mode:"hidden",children:a.children};return 1&o||t.child===s?(a=ed(s,l)).subtreeFlags=14680064&s.subtreeFlags:((a=t.child).childLanes=0,a.pendingProps=l,t.deletions=null),null!==r?i=ed(r,i):(i=nd(i,o,n,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,o=null===(o=e.child.memoizedState)?rc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=nc,a}return e=(i=e.child).sibling,a=ed(i,{mode:"visible",children:a.children}),!(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function sc(e,t){return(t=rd({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function ic(e,t,n,r){return null!==r&&Fi(r),Ui(t,e.child,null,n),(e=sc(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function oc(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Zi(e.return,t,n)}function lc(e,t,n,r,a){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=a)}function cc(e,t,n){var r=t.pendingProps,a=r.revealOrder,s=r.tail;if(Ul(e,t,r.children,n),2&(r=wo.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&oc(e,n,t);else if(19===e.tag)oc(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Hs(wo,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ko(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),lc(t,!1,a,n,s);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ko(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}lc(t,!0,n,null,s);break;case"together":lc(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function uc(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dc(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ru|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Ae(153));if(null!==t.child){for(n=ed(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ed(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function hc(e,t){if(!Si)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fc(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pc(e,t,n){var r=t.pendingProps;switch(ki(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fc(t),null;case 1:case 17:return Xs(t.type)&&ei(),fc(t),null;case 3:return r=t.stateNode,vo(),Ks(Js),Ks(Zs),_o(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Oi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Ai&&(Eu(Ai),Ai=null))),Xl(e,t),fc(t),null;case 5:xo(t);var a=go(mo.current);if(n=t.type,null!==e&&null!=t.stateNode)ec(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(Ae(166));return fc(t),null}if(e=go(fo.current),Oi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ps]=t,r[Rs]=s,e=!!(1&t.mode),n){case"dialog":is("cancel",r),is("close",r);break;case"iframe":case"object":case"embed":is("load",r);break;case"video":case"audio":for(a=0;a<ns.length;a++)is(ns[a],r);break;case"source":is("error",r);break;case"img":case"image":case"link":is("error",r),is("load",r);break;case"details":is("toggle",r);break;case"input":yt(r,s),is("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},is("invalid",r);break;case"textarea":St(r,s),is("invalid",r)}for(var i in zt(n,s),a=null,s)if(s.hasOwnProperty(i)){var o=s[i];"children"===i?"string"==typeof o?r.textContent!==o&&(!0!==s.suppressHydrationWarning&&bs(r.textContent,o,e),a=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(!0!==s.suppressHydrationWarning&&bs(r.textContent,o,e),a=["children",""+o]):Ne.hasOwnProperty(i)&&null!=o&&"onScroll"===i&&is("scroll",r)}switch(n){case"input":ft(r),xt(r,s,!0);break;case"textarea":ft(r),Et(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=xs)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{i=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Nt(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}
vendor: 9,016 bytes, line 2
2):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ps]=t,e[Rs]=r,Yl(e,t,!1,!1),t.stateNode=e;e:{switch(i=$t(n,r),n){case"dialog":is("cancel",e),is("close",e),a=r;break;case"iframe":case"object":case"embed":is("load",e),a=r;break;case"video":case"audio":for(a=0;a<ns.length;a++)is(ns[a],e);a=r;break;case"source":is("error",e),a=r;break;case"img":case"image":case"link":is("error",e),is("load",e),a=r;break;case"details":is("toggle",e),a=r;break;case"input":yt(e,r),a=gt(e,r),is("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=at({},r,{value:void 0}),is("invalid",e);break;case"textarea":St(e,r),a=_t(e,r),is("invalid",e)}for(s in zt(n,a),o=a)if(o.hasOwnProperty(s)){var l=o[s];"style"===s?Lt(e,l):"dangerouslySetInnerHTML"===s?null!=(l=l?l.__html:void 0)&&Ot(e,l):"children"===s?"string"==typeof l?("textarea"!==n||""!==l)&&Pt(e,l):"number"==typeof l&&Pt(e,""+l):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(Ne.hasOwnProperty(s)?null!=l&&"onScroll"===s&&is("scroll",e):null!=l&&$e(e,s,l,i))}switch(n){case"input":ft(e),xt(e,r,!1);break;case"textarea":ft(e),Et(e);break;case"option":null!=r.value&&e.setAttribute("value",""+dt(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?jt(e,!!r.multiple,s,!1):null!=r.defaultValue&&jt(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=xs)}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)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return fc(t),null;case 6:if(e&&null!=t.stateNode)tc(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Ae(166));if(n=go(mo.current),go(fo.current),Oi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ps]=t,(s=r.nodeValue!==n)&&null!==(e=ji))switch(e.tag){case 3:bs(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&bs(r.nodeValue,n,!!(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Ps]=t,t.stateNode=r}return fc(t),null;case 13:if(Ks(wo),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Si&&null!==_i&&1&t.mode&&!(128&t.flags))Pi(),Ri(),t.flags|=98560,s=!1;else if(s=Oi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(Ae(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(Ae(317));s[Ps]=t}else Ri(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fc(t),s=!1}else null!==Ai&&(Eu(Ai),Ai=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&wo.current?0===tu&&(tu=3):Du())),null!==t.updateQueue&&(t.flags|=4),fc(t),null);case 4:return vo(),Xl(e,t),null===e&&cs(t.stateNode.containerInfo),fc(t),null;case 10:return Gi(t.type._context),fc(t),null;case 19:if(Ks(wo),null===(s=t.memoizedState))return fc(t),null;if(r=!!(128&t.flags),null===(i=s.rendering))if(r)hc(s,!1);else{if(0!==tu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=ko(e))){for(t.flags|=128,hc(s,!1),null!==(r=i.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(i=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Hs(wo,1&wo.current|2),t.child}e=e.sibling}null!==s.tail&&bn()>cu&&(t.flags|=128,r=!0,hc(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ko(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),hc(s,!0),null===s.tail&&"hidden"===s.tailMode&&!i.alternate&&!Si)return fc(t),null}else 2*bn()-s.renderingStartTime>cu&&1073741824!==n&&(t.flags|=128,r=!0,hc(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=s.last)?n.sibling=i:t.child=i,s.last=i)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=bn(),t.sibling=null,n=wo.current,Hs(wo,r?1&n|2:1&n),t):(fc(t),null);case 22:case 23:return Ou(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Xc)&&(fc(t),6&t.subtreeFlags&&(t.flags|=8192)):fc(t),null;case 24:case 25:return null}throw Error(Ae(156,t.tag))}function mc(e,t){switch(ki(t),t.tag){case 1:return Xs(t.type)&&ei(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vo(),Ks(Js),Ks(Zs),_o(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return xo(t),null;case 13:if(Ks(wo),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Ae(340));Ri()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ks(wo),null;case 4:return vo(),null;case 10:return Gi(t.type._context),null;case 22:case 23:return Ou(),null;default:return null}}Yl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Xl=function(){},ec=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,go(fo.current);var s,i=null;switch(n){case"input":a=gt(e,a),r=gt(e,r),i=[];break;case"select":a=at({},a,{value:void 0}),r=at({},r,{value:void 0}),i=[];break;case"textarea":a=_t(e,a),r=_t(e,r),i=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=xs)}for(c in zt(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var o=a[c];for(s in o)o.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Ne.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(o=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&l!==o&&(null!=l||null!=o))if("style"===c)if(o){for(s in o)!o.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&o[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,o=o?o.__html:void 0,null!=l&&o!==l&&(i=i||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(Ne.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&is("scroll",e),i||o===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},tc=function(e,t,n,r){n!==r&&(t.flags|=4)};var gc=!1,yc=!1,vc="function"==typeof WeakSet?WeakSet:Set,bc=null;function xc(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){qu(e,t,r)}else n.current=null}function wc(e,t,n){try{n()}catch(r){qu(e,t,r)}}var kc=!1;function jc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var s=a.destroy;a.destroy=void 0,void 0!==s&&wc(t,n,s)}a=a.next}while(a!==r)}}function _c(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 Sc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function Ac(e){var t=e.alternate;null!==t&&(e.alternate=null,Ac(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Ps],delete t[Rs],delete t[Ds],delete t[Ls],delete t[Ms])),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 Ec(e){return 5===e.tag||3===e.tag||4===e.tag}function Nc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ec(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ic(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=xs));else if(4!==r&&null!==(e=e.child))for(Ic(e,t,n),e=e.sibling;null!==e;)Ic(e,t,n),e=e.sibling}function Tc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);
vendor: 16,448 bytes, line 2
2else if(4!==r&&null!==(e=e.child))for(Tc(e,t,n),e=e.sibling;null!==e;)Tc(e,t,n),e=e.sibling}var Cc=null,Oc=!1;function Pc(e,t,n){for(n=n.child;null!==n;)Rc(e,t,n),n=n.sibling}function Rc(e,t,n){if(En&&"function"==typeof En.onCommitFiberUnmount)try{En.onCommitFiberUnmount(An,n)}catch(o){}switch(n.tag){case 5:yc||xc(n,t);case 6:var r=Cc,a=Oc;Cc=null,Pc(e,t,n),Oc=a,null!==(Cc=r)&&(Oc?(e=Cc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Cc.removeChild(n.stateNode));break;case 18:null!==Cc&&(Oc?(e=Cc,n=n.stateNode,8===e.nodeType?Is(e.parentNode,n):1===e.nodeType&&Is(e,n),ur(e)):Is(Cc,n.stateNode));break;case 4:r=Cc,a=Oc,Cc=n.stateNode.containerInfo,Oc=!0,Pc(e,t,n),Cc=r,Oc=a;break;case 0:case 11:case 14:case 15:if(!yc&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var s=a,i=s.destroy;s=s.tag,void 0!==i&&(2&s||4&s)&&wc(n,t,i),a=a.next}while(a!==r)}Pc(e,t,n);break;case 1:if(!yc&&(xc(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){qu(n,t,o)}Pc(e,t,n);break;case 21:Pc(e,t,n);break;case 22:1&n.mode?(yc=(r=yc)||null!==n.memoizedState,Pc(e,t,n),yc=r):Pc(e,t,n);break;default:Pc(e,t,n)}}function Fc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new vc),t.forEach(function(t){var r=Zu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Dc(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var s=e,i=t,o=i;e:for(;null!==o;){switch(o.tag){case 5:Cc=o.stateNode,Oc=!1;break e;case 3:case 4:Cc=o.stateNode.containerInfo,Oc=!0;break e}o=o.return}if(null===Cc)throw Error(Ae(160));Rc(s,i,a),Cc=null,Oc=!1;var l=a.alternate;null!==l&&(l.return=null),a.return=null}catch(c){qu(a,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Lc(t,e),t=t.sibling}function Lc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dc(t,e),Mc(e),4&r){try{jc(3,e,e.return),_c(3,e)}catch(m){qu(e,e.return,m)}try{jc(5,e,e.return)}catch(m){qu(e,e.return,m)}}break;case 1:Dc(t,e),Mc(e),512&r&&null!==n&&xc(n,n.return);break;case 5:if(Dc(t,e),Mc(e),512&r&&null!==n&&xc(n,n.return),32&e.flags){var a=e.stateNode;try{Pt(a,"")}catch(m){qu(e,e.return,m)}}if(4&r&&null!=(a=e.stateNode)){var s=e.memoizedProps,i=null!==n?n.memoizedProps:s,o=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===o&&"radio"===s.type&&null!=s.name&&vt(a,s),$t(o,i);var c=$t(o,s);for(i=0;i<l.length;i+=2){var u=l[i],d=l[i+1];"style"===u?Lt(a,d):"dangerouslySetInnerHTML"===u?Ot(a,d):"children"===u?Pt(a,d):$e(a,u,d,c)}switch(o){case"input":bt(a,s);break;case"textarea":At(a,s);break;case"select":var h=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?jt(a,!!s.multiple,f,!1):h!==!!s.multiple&&(null!=s.defaultValue?jt(a,!!s.multiple,s.defaultValue,!0):jt(a,!!s.multiple,s.multiple?[]:"",!1))}a[Rs]=s}catch(m){qu(e,e.return,m)}}break;case 6:if(Dc(t,e),Mc(e),4&r){if(null===e.stateNode)throw Error(Ae(162));a=e.stateNode,s=e.memoizedProps;try{a.nodeValue=s}catch(m){qu(e,e.return,m)}}break;case 3:if(Dc(t,e),Mc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{ur(t.containerInfo)}catch(m){qu(e,e.return,m)}break;case 4:default:Dc(t,e),Mc(e);break;case 13:Dc(t,e),Mc(e),8192&(a=e.child).flags&&(s=null!==a.memoizedState,a.stateNode.isHidden=s,!s||null!==a.alternate&&null!==a.alternate.memoizedState||(lu=bn())),4&r&&Fc(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(yc=(c=yc)||u,Dc(t,e),yc=c):Dc(t,e),Mc(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(bc=e,u=e.child;null!==u;){for(d=bc=u;null!==bc;){switch(f=(h=bc).child,h.tag){case 0:case 11:case 14:case 15:jc(4,h,h.return);break;case 1:xc(h,h.return);var p=h.stateNode;if("function"==typeof p.componentWillUnmount){r=h,n=h.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(m){qu(r,n,m)}}break;case 5:xc(h,h.return);break;case 22:if(null!==h.memoizedState){Vc(d);continue}}null!==f?(f.return=h,bc=f):Vc(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{a=d.stateNode,c?"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none":(o=d.stateNode,i=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,o.style.display=Dt("display",i))}catch(m){qu(e,e.return,m)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){qu(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Dc(t,e),Mc(e),4&r&&Fc(e);case 21:}}function Mc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Ec(n)){var r=n;break e}n=n.return}throw Error(Ae(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(Pt(a,""),r.flags&=-33),Tc(e,Nc(e),a);break;case 3:case 4:var s=r.stateNode.containerInfo;Ic(e,Nc(e),s);break;default:throw Error(Ae(161))}}catch(i){qu(e,e.return,i)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function zc(e,t,n){bc=e,$c(e)}function $c(e,t,n){for(var r=!!(1&e.mode);null!==bc;){var a=bc,s=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||gc;if(!i){var o=a.alternate,l=null!==o&&null!==o.memoizedState||yc;o=gc;var c=yc;if(gc=i,(yc=l)&&!c)for(bc=a;null!==bc;)l=(i=bc).child,22===i.tag&&null!==i.memoizedState?Bc(a):null!==l?(l.return=i,bc=l):Bc(a);for(;null!==s;)bc=s,$c(s),s=s.sibling;bc=a,gc=o,yc=c}Uc(e)}else 8772&a.subtreeFlags&&null!==s?(s.return=a,bc=s):Uc(e)}}function Uc(e){for(;null!==bc;){var t=bc;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:yc||_c(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!yc)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:jl(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&uo(t,s,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}uo(t,i,n)}break;case 5:var o=t.stateNode;if(null===n&&4&t.flags){n=o;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:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&ur(d)}}}break;default:throw Error(Ae(163))}yc||512&t.flags&&Sc(t)}catch(h){qu(t,t.return,h)}}if(t===e){bc=null;break}if(null!==(n=t.sibling)){n.return=t.return,bc=n;break}bc=t.return}}function Vc(e){for(;null!==bc;){var t=bc;if(t===e){bc=null;break}var n=t.sibling;if(null!==n){n.return=t.return,bc=n;break}bc=t.return}}function Bc(e){for(;null!==bc;){var t=bc;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{_c(4,t)}catch(l){qu(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(l){qu(t,a,l)}}var s=t.return;try{Sc(t)}catch(l){qu(t,s,l)}break;case 5:var i=t.return;try{Sc(t)}catch(l){qu(t,i,l)}}}catch(l){qu(t,t.return,l)}if(t===e){bc=null;break}var o=t.sibling;if(null!==o){o.return=t.return,bc=o;break}bc=t.return}}var Wc,qc=Math.ceil,Kc=Ue.ReactCurrentDispatcher,Hc=Ue.ReactCurrentOwner,Gc=Ue.ReactCurrentBatchConfig,Zc=0,Jc=null,Qc=null,Yc=0,Xc=0,eu=qs(0),tu=0,nu=null,ru=0,au=0,su=0,iu=null,ou=null,lu=0,cu=1/0,uu=null,du=!1,hu=null,fu=null,pu=!1,mu=null,gu=0,yu=0,vu=null,bu=-1,xu=0;function wu(){return 6&Zc?bn():-1!==bu?bu:bu=bn()}function ku(e){return 1&e.mode?2&Zc&&0!==Yc?Yc&-Yc:null!==Di.transition?(0===xu&&(xu=Ln()),xu):0!==(e=Un)?e:e=void 0===(e=window.event)?16:vr(e.type):1}function ju(e,t,n,r){if(50<yu)throw yu=0,vu=null,Error(Ae(185));zn(e,n,r),2&Zc&&e===Jc||(e===Jc&&(!(2&Zc)&&(au|=n),4===tu&&Nu(e,Yc)),_u(e,r),1===n&&0===Zc&&!(1&t.mode)&&(cu=bn()+500,ii&&ci()))}function _u(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Nn(s),o=1<<i,l=a[i];-1===l?0!==(o&n)&&0===(o&r)||(a[i]=Fn(o,t)):l<=t&&(e.expiredLanes|=o),s&=~o}}(e,t);var r=Rn(e,e===Jc?Yc:0);if(0===r)null!==n&&gn(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&gn(n),1===t)0===e.tag?function(e){ii=!0,li(e)}(Iu.bind(null,e)):li(Iu.bind(null,e)),Es(function(){!(6&Zc)&&ci()}),n=null;else{switch(Vn(r)){case 1:n=wn;break;case 4:n=kn;break;case 16:default:n=jn;break;case 536870912:n=Sn}n=Ju(n,Su.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Su(e,t){if(bu=-1,xu=0,6&Zc)throw Error(Ae(327));var n=e.callbackNode;if(Bu()&&e.callbackNode!==n)return null;var r=Rn(e,e===Jc?Yc:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=Lu(e,r);else{t=r;var a=Zc;Zc|=2;var s=Fu();for(Jc===e&&Yc===t||(uu=null,cu=bn()+500,Pu(e,t));;)try{zu();break}catch(o){Ru(e,o)}Hi(),Kc.current=s,Zc=a,null!==Qc?t=0:(Jc=null,Yc=0,t=tu)}if(0!==t){if(2===t&&(0!==(a=Dn(e))&&(r=a,t=Au(e,a))),1===t)throw n=nu,Pu(e,0),Nu(e,r),_u(e,bn()),n;if(6===t)Nu(e,r);else{if(a=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],s=a.getSnapshot;a=a.value;try{if(!Na(s(),a))return!1}catch(i){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)||(t=Lu(e,r),2===t&&(s=Dn(e),0!==s&&(r=s,t=Au(e,s))),1!==t)))throw n=nu,Pu(e,0),Nu(e,r),_u(e,bn()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(Ae(345));case 2:case 5:Vu(e,ou,uu);break;case 3:if(Nu(e,r),(130023424&r)===r&&10<(t=lu+500-bn())){if(0!==Rn(e,0))break;if(((a=e.suspendedLanes)&r)!==r){wu(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=_s(Vu.bind(null,e,ou,uu),t);break}Vu(e,ou,uu);break;case 4:if(Nu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var i=31-Nn(r);s=1<<i,(i=t[i])>a&&(a=i),r&=~s}if(r=a,10<(r=(120>(r=bn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qc(r/1960))-r)){e.timeoutHandle=_s(Vu.bind(null,e,ou,uu),r);break}Vu(e,ou,uu);break;default:throw Error(Ae(329))}}}return _u(e,bn()),e.callbackNode===n?Su.bind(null,e):null}function Au(e,t){var n=iu;return e.current.memoizedState.isDehydrated&&(Pu(e,t).flags|=256),2!==(e=Lu(e,t))&&(t=ou,ou=n,null!==t&&Eu(t)),e}function Eu(e){null===ou?ou=e:ou.push.apply(ou,e)}function Nu(e,t){for(t&=~su,t&=~au,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nn(t),r=1<<n;e[n]=-1,t&=~r}}function Iu(e){if(6&Zc)throw Error(Ae(327));Bu();var t=Rn(e,0);if(!(1&t))return _u(e,bn()),null;var n=Lu(e,t);if(0!==e.tag&&2===n){var r=Dn(e);0!==r&&(t=r,n=Au(e,r))}if(1===n)throw n=nu,Pu(e,0),Nu(e,t),_u(e,bn()),n;if(6===n)throw Error(Ae(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vu(e,ou,uu),_u(e,bn()),null}function Tu(e,t){var n=Zc;Zc|=1;try{return e(t)}finally{0===(Zc=n)&&(cu=bn()+500,ii&&ci())}}function Cu(e){null!==mu&&0===mu.tag&&!(6&Zc)&&Bu();var t=Zc;Zc|=1;var n=Gc.transition,r=Un;try{if(Gc.transition=null,Un=1,e)return e()}finally{Un=r,Gc.transition=n,!(6&(Zc=t))&&ci()}}function Ou(){Xc=eu.current,Ks(eu)}function Pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Ss(n)),null!==Qc)for(n=Qc.return;null!==n;){var r=n;switch(ki(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&ei();break;case 3:vo(),Ks(Js),Ks(Zs),_o();break;case 5:xo(r);break;case 4:vo();break;case 13:case 19:Ks(wo);break;case 10:Gi(r.type._context);break;case 22:case 23:Ou()}n=n.return}if(Jc=e,Qc=e=ed(e.current,null),Yc=Xc=t,tu=0,nu=null,su=au=ru=0,ou=iu=null,null!==Yi){for(t=0;t<Yi.length;t++)if(null!==(r=(n=Yi[t]).interleaved)){n.interleaved=null;var a=r.next,s=n.pending;if(null!==s){var i=s.next;s.next=a,r.next=i}n.pending=r}Yi=null}return e}function Ru(e,t){for(;;){var n=Qc;try{if(Hi(),So.current=bl,Co){for(var r=No.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}Co=!1}if(Eo=0,To=Io=No=null,Oo=!1,Po=0,Hc.current=null,null===n||null===n.return){tu=1,nu=t,Qc=null;break}e:{var s=e,i=n.return,o=n,l=t;if(t=Yc,o.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=o,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Ll(i);if(null!==f){f.flags&=-257,Ml(f,i,o,0,t),1&f.mode&&Dl(s,c,t),l=c;var p=(t=f).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(!(1&t)){Dl(s,c,t),Du();break e}l=Error(Ae(426))}else if(Si&&1&o.mode){var g=Ll(i);if(null!==g){!(65536&g.flags)&&(g.flags|=256),Ml(g,i,o,0,t),Fi(Tl(l,o));break e}}s=l=Tl(l,o),4!==tu&&(tu=2),null===iu?iu=[s]:iu.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,lo(s,Rl(0,l,t));break e;case 1:o=l;var y=s.type,v=s.stateNode;if(!(128&s.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==fu&&fu.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t,lo(s,Fl(s,o,t));break e}}s=s.return}while(null!==s)}Uu(n)}catch(b){t=b,Qc===n&&null!==n&&(Qc=n=n.return);continue}break}}function Fu(){var e=Kc.current;return Kc.current=bl,null===e?bl:e}function Du(){0!==tu&&3!==tu&&2!==tu||(tu=4),null===Jc||!(268435455&ru)&&!(268435455&au)||Nu(Jc,Yc)}function Lu(e,t){var n=Zc;Zc|=2;var r=Fu();for(Jc===e&&Yc===t||(uu=null,Pu(e,t));;)try{Mu();break}catch(a){Ru(e,a)}if(Hi(),Zc=n,Kc.current=r,null!==Qc)throw Error(Ae(261));return Jc=null,Yc=0,tu}function Mu(){for(;null!==Qc;)$u(Qc)}function zu(){for(;null!==Qc&&!yn();)$u(Qc)}function $u(e){var t=Wc(e.alternate,e,Xc);e.memoizedProps=e.pendingProps,null===t?Uu(e):Qc=t,Hc.current=null}function Uu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=mc(n,t)))return n.flags&=32767,void(Qc=n);if(null===e)return tu=6,void(Qc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=pc(n,t,Xc)))return void(Qc=n);if(null!==(t=t.sibling))return void(Qc=t);Qc=t=e}while(null!==t);0===tu&&(tu=5)}function Vu(e,t,n){var r=Un,a=Gc.transition;try{Gc.transition=null,Un=1,function(e,t,n,r){do{Bu()}while(null!==mu);if(6&Zc)throw Error(Ae(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Ae(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(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 a=31-Nn(n),s=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~s}}(e,s),e===Jc&&(Qc=Jc=null,Yc=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||pu||(pu=!0,Ju(jn,function(){return Bu(),null})),s=!!(15990&n.flags),!!(15990&n.subtreeFlags)||s){s=Gc.transition,Gc.transition=null;var i=Un;Un=1;var o=Zc;Zc|=4,Hc.current=null,function(e,t){if(ws=hr,Ra(e=Pa())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(x){n=null;break e}var i=0,o=-1,l=-1,c=0,u=0,d=e,h=null;t:for(;;){for(var f;d!==n||0!==a&&3!==d.nodeType||(o=i+a),d!==s||0!==r&&3!==d.nodeType||(l=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(f=d.firstChild);)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===a&&(o=i),h===s&&++u===r&&(l=i),null!==(f=d.nextSibling))break;h=(d=h).parentNode}d=f}n=-1===o||-1===l?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ks={focusedElem:e,selectionRange:n},hr=!1,bc=t;null!==bc;)if(e=(t=bc).child,1028&t.subtreeFlags&&null!==e)e.return=t,bc=e;else for(;null!==bc;){t=bc;try{var p=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case
vendor: 4,259 bytes, line 2
26:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:jl(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(Ae(163))}}catch(x){qu(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,bc=e;break}bc=t.return}p=kc,kc=!1}(e,n),Lc(n,e),Fa(ks),hr=!!ws,ks=ws=null,e.current=n,zc(n),vn(),Zc=o,Un=i,Gc.transition=s}else e.current=n;if(pu&&(pu=!1,mu=e,gu=a),s=e.pendingLanes,0===s&&(fu=null),function(e){if(En&&"function"==typeof En.onCommitFiberRoot)try{En.onCommitFiberRoot(An,e,void 0,!(128&~e.current.flags))}catch(t){}}(n.stateNode),_u(e,bn()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(du)throw du=!1,e=hu,hu=null,e;!!(1&gu)&&0!==e.tag&&Bu(),s=e.pendingLanes,1&s?e===vu?yu++:(yu=0,vu=e):yu=0,ci()}(e,t,n,r)}finally{Gc.transition=a,Un=r}return null}function Bu(){if(null!==mu){var e=Vn(gu),t=Gc.transition,n=Un;try{if(Gc.transition=null,Un=16>e?16:e,null===mu)var r=!1;else{if(e=mu,mu=null,gu=0,6&Zc)throw Error(Ae(331));var a=Zc;for(Zc|=4,bc=e.current;null!==bc;){var s=bc,i=s.child;if(16&bc.flags){var o=s.deletions;if(null!==o){for(var l=0;l<o.length;l++){var c=o[l];for(bc=c;null!==bc;){var u=bc;switch(u.tag){case 0:case 11:case 15:jc(8,u,s)}var d=u.child;if(null!==d)d.return=u,bc=d;else for(;null!==bc;){var h=(u=bc).sibling,f=u.return;if(Ac(u),u===c){bc=null;break}if(null!==h){h.return=f,bc=h;break}bc=f}}}var p=s.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}bc=s}}if(2064&s.subtreeFlags&&null!==i)i.return=s,bc=i;else e:for(;null!==bc;){if(2048&(s=bc).flags)switch(s.tag){case 0:case 11:case 15:jc(9,s,s.return)}var y=s.sibling;if(null!==y){y.return=s.return,bc=y;break e}bc=s.return}}var v=e.current;for(bc=v;null!==bc;){var b=(i=bc).child;if(2064&i.subtreeFlags&&null!==b)b.return=i,bc=b;else e:for(i=v;null!==bc;){if(2048&(o=bc).flags)try{switch(o.tag){case 0:case 11:case 15:_c(9,o)}}catch(w){qu(o,o.return,w)}if(o===i){bc=null;break e}var x=o.sibling;if(null!==x){x.return=o.return,bc=x;break e}bc=o.return}}if(Zc=a,ci(),En&&"function"==typeof En.onPostCommitFiberRoot)try{En.onPostCommitFiberRoot(An,e)}catch(w){}r=!0}return r}finally{Un=n,Gc.transition=t}}return!1}function Wu(e,t,n){e=io(e,t=Rl(0,t=Tl(n,t),1),1),t=wu(),null!==e&&(zn(e,1,t),_u(e,t))}function qu(e,t,n){if(3===e.tag)Wu(e,e,n);else for(;null!==t;){if(3===t.tag){Wu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===fu||!fu.has(r))){t=io(t,e=Fl(t,e=Tl(n,e),1),1),e=wu(),null!==t&&(zn(t,1,e),_u(t,e));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=wu(),e.pingedLanes|=e.suspendedLanes&n,Jc===e&&(Yc&n)===n&&(4===tu||3===tu&&(130023424&Yc)===Yc&&500>bn()-lu?Pu(e,0):su|=n),_u(e,t)}function Hu(e,t){0===t&&(1&e.mode?(t=On,!(130023424&(On<<=1))&&(On=4194304)):t=1);var n=wu();null!==(e=to(e,t))&&(zn(e,t,n),_u(e,n))}function Gu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Hu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ae(314))}null!==r&&r.delete(t),Hu(e,n)}function Ju(e,t){return mn(e,t)}function Qu(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 Yu(e,t,n,r){return new Qu(e,t,n,r)}function Xu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ed(e,t){var n=e.alternate;return null===n?((n=Yu(e.tag,t,e.key,e.mode)).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.deleti
vendor: 11,426 bytes, line 2
2ons=null),n.flags=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function td(e,t,n,r,a,s){var i=2;if(r=e,"function"==typeof e)Xu(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case We:return nd(n.children,a,s,t);case qe:i=8,a|=8;break;case Ke:return(e=Yu(12,n,t,2|a)).elementType=Ke,e.lanes=s,e;case Je:return(e=Yu(13,n,t,a)).elementType=Je,e.lanes=s,e;case Qe:return(e=Yu(19,n,t,a)).elementType=Qe,e.lanes=s,e;case et:return rd(n,a,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case He:i=10;break e;case Ge:i=9;break e;case Ze:i=11;break e;case Ye:i=14;break e;case Xe:i=16,r=null;break e}throw Error(Ae(130,null==e?e:typeof e,""))}return(t=Yu(i,n,t,a)).elementType=e,t.type=r,t.lanes=s,t}function nd(e,t,n,r){return(e=Yu(7,e,r,t)).lanes=n,e}function rd(e,t,n,r){return(e=Yu(22,e,r,t)).elementType=et,e.lanes=n,e.stateNode={isHidden:!1},e}function ad(e,t,n){return(e=Yu(6,e,null,t)).lanes=n,e}function sd(e,t,n){return(t=Yu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function id(e,t,n,r,a){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=Mn(0),this.expirationTimes=Mn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mn(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function od(e,t,n,r,a,s,i,o,l){return e=new id(e,t,n,o,l),1===t?(t=1,!0===s&&(t|=8)):t=0,s=Yu(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ro(s),e}function ld(e){if(!e)return Gs;e:{if(un(e=e._reactInternals)!==e||1!==e.tag)throw Error(Ae(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xs(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(Ae(171))}if(1===e.tag){var n=e.type;if(Xs(n))return ni(e,n,t)}return t}function cd(e,t,n,r,a,s,i,o,l){return(e=od(n,r,!0,e,0,s,0,o,l)).context=ld(null),n=e.current,(s=so(r=wu(),a=ku(n))).callback=null!=t?t:null,io(n,s,a),e.current.lanes=a,zn(e,a,r),_u(e,r),e}function ud(e,t,n,r){var a=t.current,s=wu(),i=ku(a);return n=ld(n),null===t.context?t.context=n:t.pendingContext=n,(t=so(s,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=io(a,t,i))&&(ju(e,a,i,s),oo(e,a,i)),i}function dd(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function hd(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function fd(e,t){hd(e,t),(e=e.alternate)&&hd(e,t)}Wc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Js.current)$l=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return $l=!1,function(e,t,n){switch(t.tag){case 3:Jl(t),Ri();break;case 5:bo(t);break;case 1:Xs(t.type)&&ri(t);break;case 4:yo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Hs(Bi,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Hs(wo,1&wo.current),t.flags|=128,null):0!==(n&t.child.childLanes)?ac(e,t,n):(Hs(wo,1&wo.current),null!==(e=dc(e,t,n))?e.sibling:null);Hs(wo,1&wo.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return cc(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Hs(wo,wo.current),r)break;return null;case 22:case 23:return t.lanes=0,ql(e,t,n)}return dc(e,t,n)}(e,t,n);$l=!!(131072&e.flags)}else $l=!1,Si&&1048576&t.flags&&xi(t,fi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;uc(e,t),e=t.pendingProps;var a=Ys(t,Zs.current);Ji(t,n),a=Lo(null,t,r,e,a,n);var s=Mo();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xs(r)?(s=!0,ri(t)):s=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,ro(t),a.updater=Sl,t.stateNode=a,a._reactInternals=t,Il(t,r,e,n),t=Zl(null,t,r,!0,s,n)):(t.tag=0,Si&&s&&wi(t),Ul(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(uc(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"==typeof e)return Xu(e)?1:0;if(null!=e){if((e=e.$$typeof)===Ze)return 11;if(e===Ye)return 14}return 2}(r),e=jl(r,e),a){case 0:t=Hl(null,t,r,e,n);break e;case 1:t=Gl(null,t,r,e,n);break e;case 11:t=Vl(null,t,r,e,n);break e;case 14:t=Bl(null,t,r,jl(r.type,e),n);break e}throw Error(Ae(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Hl(e,t,r,a=t.elementType===r?a:jl(r,a),n);case 1:return r=t.type,a=t.pendingProps,Gl(e,t,r,a=t.elementType===r?a:jl(r,a),n);case 3:e:{if(Jl(t),null===e)throw Error(Ae(387));r=t.pendingProps,a=(s=t.memoizedState).element,ao(e,t),co(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ql(e,t,r,n,a=Tl(Error(Ae(423)),t));break e}if(r!==a){t=Ql(e,t,r,n,a=Tl(Error(Ae(424)),t));break e}for(_i=Ts(t.stateNode.containerInfo.firstChild),ji=t,Si=!0,Ai=null,n=Vi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Ri(),r===a){t=dc(e,t,n);break e}Ul(e,t,r,n)}t=t.child}return t;case 5:return bo(t),null===e&&Ti(t),r=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,i=a.children,js(r,a)?i=null:null!==s&&js(r,s)&&(t.flags|=32),Kl(e,t),Ul(e,t,i,n),t.child;case 6:return null===e&&Ti(t),null;case 13:return ac(e,t,n);case 4:return yo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ui(t,null,r,n):Ul(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Vl(e,t,r,a=t.elementType===r?a:jl(r,a),n);case 7:return Ul(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ul(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,s=t.memoizedProps,i=a.value,Hs(Bi,r._currentValue),r._currentValue=i,null!==s)if(Na(s.value,i)){if(s.children===a.children&&!Js.current){t=dc(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var o=s.dependencies;if(null!==o){i=s.child;for(var l=o.firstContext;null!==l;){if(l.context===r){if(1===s.tag){(l=so(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Zi(s.return,n,t),o.lanes|=n;break}l=l.next}}else if(10===s.tag)i=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(i=s.return))throw Error(Ae(341));i.lanes|=n,null!==(o=i.alternate)&&(o.lanes|=n),Zi(i,n,t),i=s.sibling}else i=s.child;if(null!==i)i.return=s;else for(i=s;null!==i;){if(i===t){i=null;break}if(null!==(s=i.sibling)){s.return=i.return,i=s;break}i=i.return}s=i}Ul(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Ji(t,n),r=r(a=Qi(a)),t.flags|=1,Ul(e,t,r,n),t.child;case 14:return a=jl(r=t.type,t.pendingProps),Bl(e,t,r,a=jl(r.type,a),n);case 15:return Wl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:jl(r,a),uc(e,t),t.tag=1,Xs(r)?(e=!0,ri(t)):e=!1,Ji(t,n),El(t,r,a),Il(t,r,a,n),Zl(null,t,r,!0,e,n);case 19:return cc(e,t,n);case 22:return ql(e,t,n)}throw Error(Ae(156,t.tag))};var pd="function"==typeof reportError?reportError:function(e){console.error(e)};function md(e){this._internalRoot=e}function gd(e){this._internalRoot=e}function yd(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function vd(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function bd(){}function xd(e,t,n,r,a){var s=n._reactRootContainer;if(s){var i=s;if("function"==typeof a){var o=a;a=function(){var e=dd(i);o.call(e)}}ud(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var s=r;r=function(){var e=dd(i);s.call(e)}}var i=cd(t,r,e,0,null,!1,0,"",bd);return e._reactRootContainer=i,e[Fs]=i.current,cs(8===e.nodeType?e.parentNode:e),Cu(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var o=r;r=function(){var e=dd(l);o.call(e)}}var l=od(e,0,!1,null,0,!1,0,"",bd);return e._reactRootContainer=l,e[Fs]=l.current,cs(8===e.nodeType?e.parentNode:e),Cu(function(){ud(t,l,n,r)}),l}(n,t,e,a,r);return dd(i)}gd.prototype.render=md.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Ae(409));ud(e,t,null,null)},gd.prototype.unmount=md.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Cu(function(){ud(null,e,null,null)}),t[Fs]=null}},gd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tr.length&&0!==t&&t<tr[n].priority;n++);tr.splice(n,0,e),0===n&&sr(e)}},Bn=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pn(t.pendingLanes);0!==n&&($n(t,1|n),_u(t,bn()),!(6&Zc)&&(cu=bn()+500,ci()))}break;case 13:Cu(function(){var t=to(e,1);if(null!==t){var n=wu();ju(t,e,1,n)}}),fd(e,1)}},Wn=function(e){if(13===e.tag){var t=to(e,134217728);if(null!==t)ju(t,e,134217728,wu());fd(e,134217728)}},qn=function(e){if(13===e.tag){var t=ku(e),n=to(e,t);if(null!==n)ju(n,e,t,wu());fd(e,t)}},Kn=function(){return Un},Hn=function(e,t){var n=Un;try{return Un=e,t()}finally{Un=n}},Bt=function(e,t,n){switch(t){case"input":if(bt(e,n),t=n.name,"radio"===n.type&&null!=t){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 a=Vs(r);if(!a)throw Error(Ae(90));pt(r),bt(r,a)}}}break;case"textarea":At(e,n);break;case"select":null!=(t=n.value)&&jt(e,!!n.multiple,t,!1)}},Zt=Tu,Jt=Cu;var wd={usingClientEntryPoint:!1,Events:[$s,Us,Vs,Ht,Gt,Tu]},kd={findFiberByHostInstance:zs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},jd={bundleType:kd.bundleType,version:kd.version,rendererPackageName:kd.rendererPackageName,rendererConfig:kd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ue.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=fn(e))?null:e.stateNode},findFiberByHostInstance:kd.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var _d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_d.isDisabled&&_d.supportsFiber)try{An=_d.inject(jd),En=_d}catch(Ct){}}
2xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wd,xe.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!yd(t))throw Error(Ae(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Be,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},xe.createRoot=function(e,t){if(!yd(e))throw Error(Ae(299));var n=!1,r="",a=pd;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=od(e,1,!1,null,0,n,0,r,a),e[Fs]=t.current,cs(8===e.nodeType?e.parentNode:e),new md(t)},xe.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(Ae(188));throw e=Object.keys(e).join(","),Error(Ae(268,e))}return e=null===(e=fn(t))?null:e.stateNode},xe.flushSync=function(e){return Cu(e)},xe.hydrate=function(e,t,n){if(!vd(t))throw Error(Ae(200));return xd(null,e,t,!0,n)},xe.hydrateRoot=function(e,t,n){if(!yd(e))throw Error(Ae(405));var r=null!=n&&n.hydratedSources||null,a=!1,s="",i=pd;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=cd(t,null,e,1,null!=n?n:null,a,0,s,i),e[Fs]=t.current,cs(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new gd(t)},xe.render=function(e,t,n){if(!vd(t))throw Error(Ae(200));return xd(null,e,t,!1,n)},xe.unmountComponentAtNode=function(e){if(!vd(e))throw Error(Ae(40));return!!e._reactRootContainer&&(Cu(function(){xd(null,null,e,!1,function(){e._reactRootContainer=null,e[Fs]=null})}),!0)},xe.unstable_batchedUpdates=Tu,xe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!vd(n))throw Error(Ae(200));if(null==e||void 0===e._reactInternals)throw Error(Ae(38));return xd(e,t,n,!1,r)},xe.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),be.exports=xe;var Sd=be.exports;const Ad=X(Sd);var Ed,Nd=Sd;Ed=Nd.createRoot,Nd.hydrateRoot;const Id="undefined"!=typeof window?window.__I18N_BOOTSTRAP__:void 0,Td=(null==Id?void 0:Id.lng)||function(){if("undefined"!=typeof window&&window.__INITIAL_LANGUAGE__)return window.__INITIAL_LANGUAGE__,window.__INITIAL_LANGUAGE__;const e=window.location.pathname.split("/").filter(Boolean)[0];return["es","hi","de","fil","fr"].includes(e)?e:"en"}(),Cd=(null==(e=null==Id?void 0:Id.resources)?void 0:e[Td])?Object.keys(Id.resources[Td]):["common"];ee.use(te).use(ne).init({lng:Td,fallbackLng:"en",debug:!1,resources:null==Id?void 0:Id.resources,interpolation:{escapeValue:!1},backend:{loadPath:(e,t)=>{const n=e[0];return`/locales/${"de"===n?"de-DE":n}/${t[0]}.json`},allowMultiLoading:!1},supportedLngs:["en","es","hi","de","fil","fr"],ns:Cd,defaultNS:"common",partialBundledLanguages:!0,load:"languageOnly",cleanCode:!0,react:{useSuspense:!1,bindI18n:"languageChanged loaded",bindI18nStore:"added removed",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["br","strong","i"],transWrapTextNodes:""}}),"undefined"!=typeof window&&ee.on("languageChanged",e=>{});var Od={exports:{}},Pd={},Rd=Y;var Fd="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Dd=Rd.useState,Ld=Rd.useEffect,Md=Rd.useLayoutEffect,zd=Rd.useDebugValue;function $d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fd(e,n)}catch(r){return!0}}var Ud="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=Dd({inst:{value:n,getSnapshot:t}}),a=r[0].inst,s=r[1];return Md(function(){a.value=n,a.getSnapshot=t,$d(a)&&s({inst:a})},[e,n,t]),Ld(function(){return $d(a)&&s({inst:a}),e(function(){$d(a)&&s({inst:a})})},[e]),zd(n),n};
2Pd.useSyncExternalStore=void 0!==Rd.useSyncExternalStore?Rd.useSyncExternalStore:Ud,Od.exports=Pd;var Vd=Od.exports;const Bd=re.useInsertionEffect,Wd=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?Y.useLayoutEffect:Y.useEffect,qd=Bd||Wd,Kd=e=>{const t=Y.useRef([e,(...e)=>t[0](...e)]).current;return qd(()=>{t[0]=e}),t[1]},Hd="pushState",Gd="replaceState",Zd=["popstate",Hd,Gd,"hashchange"],Jd=e=>{for(const t of Zd)addEventListener(t,e);return()=>{for(const t of Zd)removeEventListener(t,e)}},Qd=(e,t)=>Vd.useSyncExternalStore(Jd,e,t),Yd=()=>location.search,Xd=()=>location.pathname,eh=({ssrPath:e}={})=>Qd(Xd,e?()=>e:Xd),th=(e,{replace:t=!1,state:n=null}={})=>history[t?Gd:Hd](n,"",e),nh=Symbol.for("wouter_v3");if("undefined"!=typeof history&&void 0===window[nh]){for(const e of[Hd,Gd]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,nh,{value:!0})}const rh=(e="")=>"/"===e?"":e,ah=(e="",t)=>((e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/")(sh(rh(e)),sh(t)),sh=e=>{try{return decodeURI(e)}catch(t){return e}},ih={hook:(e={})=>[eh(e),th],searchHook:({ssrSearch:e=""}={})=>Qd(Yd,()=>e),parser:function(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,a,s,i=[],o="",l=e.split("/");for(l[0]||l.shift();a=l.shift();)"*"===(n=a[0])?(i.push(n),o+="?"===a[1]?"(?:/(.*))?":"/(.*)"):":"===n?(r=a.indexOf("?",1),s=a.indexOf(".",1),i.push(a.substring(1,~r?r:~s?s:a.length)),o+=~r&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(o+=(~r?"?":"")+"\\"+a.substring(s))):o+="/"+a;return{keys:i,pattern:new RegExp("^"+o+(t?"(?=$|/)":"/?$"),"i")}},base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},oh=Y.createContext(ih),lh=()=>Y.useContext(oh),ch={},uh=Y.createContext(ch),dh=()=>Y.useContext(uh),hh=e=>{const[t,n]=e.hook(e);return[ah(e.base,t),Kd((t,r)=>n(((e,t)=>"~"===e[0]?e.slice(1):rh(t)+e)(t,e.base),r))]},fh=()=>hh(lh()),ph=(e,t,n,r)=>{const{pattern:a,keys:s}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),i=a.exec(n)||[],[o,...l]=i;return void 0!==o?[!0,(()=>{const e=!1!==s?Object.fromEntries(s.map((e,t)=>[e,l[t]])):i.groups;let t={...l};return e&&Object.assign(t,e),t})(),...r?[o]:[]]:[!1,null]},mh=({children:e,...t})=>{var n,r;const a=lh(),s=t.hook?ih:a;let i=s;const[o,l]=(null==(n=t.ssrPath)?void 0:n.split("?"))??[];l&&(t.ssrSearch=l,t.ssrPath=o),t.hrefs=t.hrefs??(null==(r=t.hook)?void 0:r.hrefs);let c=Y.useRef({}),u=c.current,d=u;for(let h in s){const e="base"===h?s[h]+(t[h]||""):t[h]||s[h];u===d&&e!==d[h]&&(c.current=d={...d}),d[h]=e,e!==s[h]&&(i=d)}return Y.createElement(oh.Provider,{value:i,children:e})},gh=({children:e,component:t},n)=>t?Y.createElement(t,{params:n}):"function"==typeof e?e(n):e,yh=({path:e,nest:t,match:n,...r})=>{const a=lh(),[s]=hh(a),[i,o,l]=n??ph(a.parser,e,s,t),c=(e=>{let t=Y.useRef(ch),n=t.current;for(const r in e)e[r]!==n[r]&&(n=e);return 0===Object.keys(e).length&&(n=e),t.current=n})({...dh(),...o});if(!i)return null;const u=l?Y.createElement(mh,{base:l},gh(r,c)):gh(r,c);return Y.createElement(uh.Provider,{value:c,children:u})},vh=Y.forwardRef((e,t)=>{const n=lh(),[r,a]=hh(n),{to:s="",href:i=s,onClick:o,asChild:l,children:c,className:u,replace:d,state:h,...f}=e,p=Kd(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(null==o||o(t),t.defaultPrevented||(t.preventDefault(),a(i,e)))}),m=n.hrefs("~"===i[0]?i.slice(1):n.base+i,n);return l&&Y.isValidElement(c)?Y.cloneElement(c,{onClick:p,href:m}):Y.createElement("a",{...f,onClick:p,href:m,className:(null==u?void 0:u.call)?u(r===i):u,children:c,ref:t})}),bh=e=>Array.isArray(e)?e.flatMap(e=>bh(e&&e.type===Y.Fragment?e.props.children:e)):[e],xh=({children:e,location:t})=>{const n=lh(),[r]=hh(n);for(const a of bh(e)){let e=0;if(Y.isValidElement(a)&&(e=ph(n.parser,a.props.path,t||r,a.props.nest))[0])return Y.cloneElement(a,{match:e})}return null};function wh(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>Y.createContext(e));return function(n){const r=(null==n?void 0:n[e])||t;return Y.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const a=Y.createContext(r),s=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...o}=t,l=(null==(n=null==r?void 0:r[e])?void 0:n[s])||a,c=Y.useMemo(()=>o,Object.values(o));return ve.jsx(l.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var o;const l=(null==(o=null==i?void 0:i[e])?void 0:o[s])||a,c=Y.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},kh(r,...t)]}function kh(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return Y.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function jh(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function _h(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Sh(...e){return t=>{let n=!1;const r=e.map(e=>{const r=_h(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():_h(e[t],null)}}}}function Ah(...e){return Y.useCallback(Sh(...e),e)}
2function Eh(e){const t=Ih(e),n=Y.forwardRef((e,n)=>{const{children:r,...a}=e,s=Y.Children.toArray(r),i=s.find(Oh);if(i){const e=i.props.children,r=s.map(t=>t===i?Y.Children.count(e)>1?Y.Children.only(null):Y.isValidElement(e)?e.props.children:null:t);return ve.jsx(t,{...a,ref:n,children:Y.isValidElement(e)?Y.cloneElement(e,void 0,r):null})}return ve.jsx(t,{...a,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Nh=Eh("Slot");function Ih(e){const t=Y.forwardRef((e,t)=>{const{children:n,...r}=e;if(Y.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],s=t[r];/^on[A-Z]/.test(r)?a&&s?n[r]=(...e)=>{const t=s(...e);return a(...e),t}:a&&(n[r]=a):"style"===r?n[r]={...a,...s}:"className"===r&&(n[r]=[a,s].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==Y.Fragment&&(a.ref=t?Sh(t,e):e),Y.cloneElement(n,a)}return Y.Children.count(n)>1?Y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Th=Symbol("radix.slottable");function Ch(e){const t=({children:e})=>ve.jsx(ve.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Th,t}function Oh(e){return Y.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Th}var Ph=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=Eh(`Primitive.${t}`),r=Y.forwardRef((e,r)=>{const{asChild:a,...s}=e,i=a?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),ve.jsx(i,{...s,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Rh(e,t){e&&Sd.flushSync(()=>e.dispatchEvent(t))}var Fh=(null==globalThis?void 0:globalThis.document)?Y.useLayoutEffect:()=>{},Dh=re[" useInsertionEffect ".trim().toString()]||Fh;function Lh({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,s,i]=function({defaultProp:e,onChange:t}){const[n,r]=Y.useState(e),a=Y.useRef(n),s=Y.useRef(t);return Dh(()=>{s.current=t},[t]),Y.useEffect(()=>{var e;a.current!==n&&(null==(e=s.current)||e.call(s,n),a.current=n)},[n,a]),[n,r,s]}({defaultProp:t,onChange:n}),o=void 0!==e,l=o?e:a;{const t=Y.useRef(void 0!==e);Y.useEffect(()=>{const e=t.current;if(e!==o){const t=e?"controlled":"uncontrolled",n=o?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=o},[o,r])}const c=Y.useCallback(t=>{var n;if(o){const r=function(e){return"function"==typeof e}(t)?t(e):t;r!==e&&(null==(n=i.current)||n.call(i,r))}else s(t)},[o,e,s,i]);return[l,c]}var Mh=Y.createContext(void 0);function zh(e){const t=Y.useContext(Mh);return e||t||"ltr"}var $h=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=Y.useState(),r=Y.useRef(null),a=Y.useRef(e),s=Y.useRef("none"),i=e?"mounted":"unmounted",[o,l]=function(e,t){return Y.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Y.useEffect(()=>{const e=Uh(r.current);s.current="mounted"===o?e:"none"},[o]),Fh(()=>{const t=r.current,n=a.current;if(n!==e){const r=s.current,i=Uh(t);if(e)l("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}},[e,l]),Fh(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=s=>{const i=Uh(r.current).includes(CSS.escape(s.animationName));if(s.target===t&&i&&(l("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},o=e=>{e.target===t&&(s.current=Uh(r.current))};return t.addEventListener("animationstart",o),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",o),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:Y.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),a="function"==typeof n?n({present:r.isPresent}):Y.Children.only(n),s=Ah(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?Y.cloneElement(a,{ref:s}):null};function Uh(e){return(null==e?void 0:e.animationName)||"none"}$h.displayName="Presence";var Vh=re[" useId ".trim().toString()]||(()=>{}),Bh=0;function Wh(e){const[t,n]=Y.useState(Vh());return Fh(()=>{e||n(e=>e??String(Bh++))},[e]),e||(t?`radix-${t}`:"")}function qh(e){const t=e+"CollectionProvider",[n,r]=wh(t),[a,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=ae.useRef(null),s=ae.useRef(new Map).current;return ve.jsx(a,{scope:t,itemMap:s,collectionRef:r,children:n})};i.displayName=t;const o=e+"CollectionSlot",l=Eh(o),c=ae.forwardRef((e,t)=>
2{const{scope:n,children:r}=e,a=Ah(t,s(o,n).collectionRef);return ve.jsx(l,{ref:a,children:r})});c.displayName=o;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=Eh(u),f=ae.forwardRef((e,t)=>{const{scope:n,children:r,...a}=e,i=ae.useRef(null),o=Ah(t,i),l=s(u,n);return ae.useEffect(()=>(l.itemMap.set(i,{ref:i,...a}),()=>{l.itemMap.delete(i)})),ve.jsx(h,{[d]:"",ref:o,children:r})});return f.displayName=u,[{Provider:i,Slot:c,ItemSlot:f},function(t){const n=s(e+"CollectionConsumer",t),r=ae.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`)),r=Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return r},[n.collectionRef,n.itemMap]);return r},r]}function Kh(e){const t=Y.useRef(e);return Y.useEffect(()=>{t.current=e}),Y.useMemo(()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}var Hh,Gh="dismissableLayer.update",Zh="dismissableLayer.pointerDownOutside",Jh="dismissableLayer.focusOutside",Qh=Y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yh=Y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:i,onDismiss:o,...l}=e,c=Y.useContext(Qh),[u,d]=Y.useState(null),h=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,f]=Y.useState({}),p=Ah(t,e=>d(e)),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),v=u?m.indexOf(u):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=v>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=Kh(e),r=Y.useRef(!1),a=Y.useRef(()=>{});return Y.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){tf(Zh,n,s,{discrete:!0})};const s={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...c.branches].some(e=>e.contains(t));x&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==o||o())},h),k=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=Kh(e),r=Y.useRef(!1);return Y.useEffect(()=>{const e=e=>{if(e.target&&!r.current){tf(Jh,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...c.branches].some(e=>e.contains(t))||(null==s||s(e),null==i||i(e),e.defaultPrevented||null==o||o())},h);return function(e,t=(null==globalThis?void 0:globalThis.document)){const n=Kh(e);Y.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{v===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&o&&(e.preventDefault(),o()))},h),Y.useEffect(()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(Hh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),ef(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Hh)}},[u,h,n,c]),Y.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),ef())},[u,c]),Y.useEffect(()=>{const e=()=>f({});return document.addEventListener(Gh,e),()=>document.removeEventListener(Gh,e)},[]),ve.jsx(Ph.div,{...l,ref:p,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:jh(e.onFocusCapture,k.onFocusCapture),onBlurCapture:jh(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:jh(e.onPointerDownCapture,w.onPointerDownCapture)})});Yh.displayName="DismissableLayer";var Xh=Y.forwardRef((e,t)=>
2{const n=Y.useContext(Qh),r=Y.useRef(null),a=Ah(t,r);return Y.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),ve.jsx(Ph.div,{...e,ref:a})});function ef(){const e=new CustomEvent(Gh);document.dispatchEvent(e)}function tf(e,t,n,{discrete:r}){const a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Rh(a,s):a.dispatchEvent(s)}Xh.displayName="DismissableLayerBranch";var nf=Yh,rf=Xh;function af(e){const t=Y.useRef({value:e,previous:e});return Y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var sf=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),of=Y.forwardRef((e,t)=>ve.jsx(Ph.span,{...e,ref:t,style:{...sf,...e.style}}));of.displayName="VisuallyHidden";var lf=of,cf="NavigationMenu",[uf,df,hf]=qh(cf),[ff,pf,mf]=qh(cf),[gf,yf]=wh(cf,[hf,mf]),[vf,bf]=gf(cf),[xf,wf]=gf(cf),kf=Y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:a,defaultValue:s,delayDuration:i=200,skipDelayDuration:o=300,orientation:l="horizontal",dir:c,...u}=e,[d,h]=Y.useState(null),f=Ah(t,e=>h(e)),p=zh(c),m=Y.useRef(0),g=Y.useRef(0),y=Y.useRef(0),[v,b]=Y.useState(!0),[x,w]=Lh({prop:r,onChange:e=>{const t=o>0;""!==e?(window.clearTimeout(y.current),t&&b(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>b(!0),o)),null==a||a(e)},defaultProp:s??"",caller:cf}),k=Y.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>w(""),150)},[w]),j=Y.useCallback(e=>{window.clearTimeout(g.current),w(e)},[w]),_=Y.useCallback(e=>{x===e?window.clearTimeout(g.current):m.current=window.setTimeout(()=>{window.clearTimeout(g.current),w(e)},i)},[x,w,i]);return Y.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(g.current),window.clearTimeout(y.current)},[]),ve.jsx(_f,{scope:n,isRootMenu:!0,value:x,dir:p,orientation:l,rootNavigationMenu:d,onTriggerEnter:e=>{window.clearTimeout(m.current),v?_(e):j(e)},onTriggerLeave:()=>{window.clearTimeout(m.current),k()},onContentEnter:()=>window.clearTimeout(g.current),onContentLeave:k,onItemSelect:e=>{w(t=>t===e?"":e)},onItemDismiss:()=>w(""),children:ve.jsx(Ph.nav,{"aria-label":"Main","data-orientation":l,dir:p,...u,ref:f})})});kf.displayName=cf;var jf="NavigationMenuSub";Y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:a,defaultValue:s,orientation:i="horizontal",...o}=e,l=bf(jf,n),[c,u]=Lh({prop:r,onChange:a,defaultProp:s??"",caller:jf});return ve.jsx(_f,{scope:n,isRootMenu:!1,value:c,dir:l.dir,orientation:i,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:e=>u(e),onItemSelect:e=>u(e),onItemDismiss:()=>u(""),children:ve.jsx(Ph.div,{"data-orientation":i,...o,ref:t})})}).displayName=jf;var _f=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:a,orientation:s,children:i,value:o,onItemSelect:l,onItemDismiss:c,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:h,onContentLeave:f}=e,[p,m]=Y.useState(null),[g,y]=Y.useState(new Map),[v,b]=Y.useState(null);return ve.jsx(vf,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:o,previousValue:af(o),baseId:Wh(),dir:a,orientation:s,viewport:p,onViewportChange:m,indicatorTrack:v,onIndicatorTrackChange:b,onTriggerEnter:Kh(u),onTriggerLeave:Kh(d),onContentEnter:Kh(h),onContentLeave:Kh(f),onItemSelect:Kh(l),onItemDismiss:Kh(c),onViewportContentChange:Y.useCallback((e,t)=>{y(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:Y.useCallback(e=>{y(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:ve.jsx(uf.Provider,{scope:t,children:ve.jsx(xf,{scope:t,items:g,children:i})})})},Sf="NavigationMenuList",Af=Y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,a=bf(Sf,n),s=ve.jsx(Ph.ul,{"data-orientation":a.orientation,...r,ref:t});return ve.jsx(Ph.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:ve.jsx(uf.Slot,{scope:n,children:a.isRootMenu?ve.jsx(qf,{asChild:!0,children:s}):s})})});Af.displayName=Sf;var Ef="NavigationMenuItem",[Nf,If]=gf(Ef),Tf=Y.forwardRef((e,t)=>
2{const{__scopeNavigationMenu:n,value:r,...a}=e,s=Wh(),i=r||s||"LEGACY_REACT_AUTO_VALUE",o=Y.useRef(null),l=Y.useRef(null),c=Y.useRef(null),u=Y.useRef(()=>{}),d=Y.useRef(!1),h=Y.useCallback((e="start")=>{if(o.current){u.current();const t=Gf(o.current);t.length&&Zf("start"===e?t:t.reverse())}},[]),f=Y.useCallback(()=>{if(o.current){const e=Gf(o.current);e.length&&(u.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{const t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return ve.jsx(Nf,{scope:n,value:i,triggerRef:l,contentRef:o,focusProxyRef:c,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:f,onContentFocusOutside:f,children:ve.jsx(Ph.li,{...a,ref:t})})});Tf.displayName=Ef;var Cf="NavigationMenuTrigger",Of=Y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...a}=e,s=bf(Cf,e.__scopeNavigationMenu),i=If(Cf,e.__scopeNavigationMenu),o=Y.useRef(null),l=Ah(o,i.triggerRef,t),c=Yf(s.baseId,i.value),u=Xf(s.baseId,i.value),d=Y.useRef(!1),h=Y.useRef(!1),f=i.value===s.value;return ve.jsxs(ve.Fragment,{children:[ve.jsx(uf.ItemSlot,{scope:n,value:i.value,children:ve.jsx(Hf,{asChild:!0,children:ve.jsx(Ph.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":Qf(f),"aria-expanded":f,"aria-controls":u,...a,ref:l,onPointerEnter:jh(e.onPointerEnter,()=>{h.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:jh(e.onPointerMove,ep(()=>{r||h.current||i.wasEscapeCloseRef.current||d.current||(s.onTriggerEnter(i.value),d.current=!0)})),onPointerLeave:jh(e.onPointerLeave,ep(()=>{r||(s.onTriggerLeave(),d.current=!1)})),onClick:jh(e.onClick,()=>{s.onItemSelect(i.value),h.current=f}),onKeyDown:jh(e.onKeyDown,e=>{const t={horizontal:"ArrowDown",vertical:"rtl"===s.dir?"ArrowLeft":"ArrowRight"}[s.orientation];f&&e.key===t&&(i.onEntryKeyDown(),e.preventDefault())})})})}),f&&ve.jsxs(ve.Fragment,{children:[ve.jsx(lf,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:e=>{const t=i.contentRef.current,n=e.relatedTarget,r=n===o.current,a=null==t?void 0:t.contains(n);!r&&a||i.onFocusProxyEnter(r?"start":"end")}}),s.viewport&&ve.jsx("span",{"aria-owns":u})]})]})});Of.displayName=Cf;var Pf="navigationMenu.linkSelect";Y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:a,...s}=e;return ve.jsx(Hf,{asChild:!0,children:ve.jsx(Ph.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...s,ref:t,onClick:jh(e.onClick,e=>{const t=e.target,n=new CustomEvent(Pf,{bubbles:!0,cancelable:!0});if(t.addEventListener(Pf,e=>null==a?void 0:a(e),{once:!0}),Rh(t,n),!n.defaultPrevented&&!e.metaKey){Rh(t,new CustomEvent($f,{bubbles:!0,cancelable:!0}))}},{checkForDefaultPrevented:!1})})})}).displayName="NavigationMenuLink";var Rf="NavigationMenuIndicator",Ff=Y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=bf(Rf,e.__scopeNavigationMenu),s=Boolean(a.value);return a.indicatorTrack?Ad.createPortal(ve.jsx($h,{present:n||s,children:ve.jsx(Df,{...r,ref:t})}),a.indicatorTrack):null});Ff.displayName=Rf;var Df=Y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,a=bf(Rf,n),s=df(n),[i,o]=Y.useState(null),[l,c]=Y.useState(null),u="horizontal"===a.orientation,d=Boolean(a.value);Y.useEffect(()=>{var e;const t=null==(e=s().find(e=>e.value===a.value))?void 0:e.ref.current;t&&o(t)},[s,a.value]);const h=()=>{i&&c({size:u?i.offsetWidth:i.offsetHeight,offset:u?i.offsetLeft:i.offsetTop})};return Jf(i,h),Jf(a.indicatorTrack,h),l?ve.jsx(Ph.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":a.orientation,...r,ref:t,style:{position:"absolute",...u?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),Lf="NavigationMenuContent",Mf=Y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=bf(Lf,e.__scopeNavigationMenu),s=If(Lf,e.__scopeNavigationMenu),i=Ah(s.contentRef,t),o=s.value===a.value,l={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...r};return a.viewport?ve.jsx(zf,{forceMount:n,...l,ref:i}):ve.jsx($h,{present:n||o,children:ve.jsx(Uf,{"data-state":Qf(o),...l,ref:i,onPointerEnter:jh(e.onPointerEnter,a.onContentEnter),onPointerLeave:jh(e.onPointerLeave,ep(a.onContentLeave)),style:{pointerEvents:!o&&a.isRootMenu?"none":void 0,...l.style}})})});Mf.displayName=Lf;var zf=Y.forwardRef((e,t)=>
2{const n=bf(Lf,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:a}=n;return Fh(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Fh(()=>()=>a(e.value),[e.value,a]),null}),$f="navigationMenu.rootContentDismiss",Uf=Y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:a,focusProxyRef:s,wasEscapeCloseRef:i,onRootContentClose:o,onContentFocusOutside:l,...c}=e,u=bf(Lf,n),d=Y.useRef(null),h=Ah(d,t),f=Yf(u.baseId,r),p=Xf(u.baseId,r),m=df(n),g=Y.useRef(null),{onItemDismiss:y}=u;Y.useEffect(()=>{const e=d.current;if(u.isRootMenu&&e){const t=()=>{var t;y(),o(),e.contains(document.activeElement)&&(null==(t=a.current)||t.focus())};return e.addEventListener($f,t),()=>e.removeEventListener($f,t)}},[u.isRootMenu,e.value,a,y,o]);const v=Y.useMemo(()=>{const e=m().map(e=>e.value);"rtl"===u.dir&&e.reverse();const t=e.indexOf(u.value),n=e.indexOf(u.previousValue),a=r===u.value,s=n===e.indexOf(r);if(!a&&!s)return g.current;const i=(()=>{if(t!==n){if(a&&-1!==n)return t>n?"from-end":"from-start";if(s&&-1!==t)return t>n?"to-start":"to-end"}return null})();return g.current=i,i},[u.previousValue,u.value,u.dir,m,r]);return ve.jsx(qf,{asChild:!0,children:ve.jsx(Yh,{id:p,"aria-labelledby":f,"data-motion":v,"data-orientation":u.orientation,...c,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;const t=new Event($f,{bubbles:!0,cancelable:!0});null==(e=d.current)||e.dispatchEvent(t)},onFocusOutside:jh(e.onFocusOutside,e=>{var t;l();const n=e.target;(null==(t=u.rootNavigationMenu)?void 0:t.contains(n))&&e.preventDefault()}),onPointerDownOutside:jh(e.onPointerDownOutside,e=>{var t;const n=e.target,r=m().some(e=>{var t;return null==(t=e.ref.current)?void 0:t.contains(n)}),a=u.isRootMenu&&(null==(t=u.viewport)?void 0:t.contains(n));(r||a||!u.isRootMenu)&&e.preventDefault()}),onKeyDown:jh(e.onKeyDown,e=>{var t;const n=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!n){const n=Gf(e.currentTarget),r=document.activeElement,a=n.findIndex(e=>e===r);Zf(e.shiftKey?n.slice(0,a).reverse():n.slice(a+1,n.length))?e.preventDefault():null==(t=s.current)||t.focus()}}),onEscapeKeyDown:jh(e.onEscapeKeyDown,e=>{i.current=!0})})})}),Vf="NavigationMenuViewport",Bf=Y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=bf(Vf,e.__scopeNavigationMenu),s=Boolean(a.value);return ve.jsx($h,{present:n||s,children:ve.jsx(Wf,{...r,ref:t})})});Bf.displayName=Vf;var Wf=Y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...a}=e,s=bf(Vf,n),i=Ah(t,s.onViewportChange),o=wf(Lf,e.__scopeNavigationMenu),[l,c]=Y.useState(null),[u,d]=Y.useState(null),h=l?(null==l?void 0:l.width)+"px":void 0,f=l?(null==l?void 0:l.height)+"px":void 0,p=Boolean(s.value),m=p?s.value:s.previousValue;return Jf(u,()=>{u&&c({width:u.offsetWidth,height:u.offsetHeight})}),ve.jsx(Ph.div,{"data-state":Qf(p),"data-orientation":s.orientation,...a,ref:i,style:{pointerEvents:!p&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":f,...a.style},onPointerEnter:jh(e.onPointerEnter,s.onContentEnter),onPointerLeave:jh(e.onPointerLeave,ep(s.onContentLeave)),children:Array.from(o.items).map(([e,{ref:t,forceMount:n,...r}])=>{const a=m===e;return ve.jsx($h,{present:n||a,children:ve.jsx(Uf,{...r,ref:Sh(t,e=>{a&&e&&d(e)})})},e)})})}),qf=Y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,a=bf("FocusGroup",n);return ve.jsx(ff.Provider,{scope:n,children:ve.jsx(ff.Slot,{scope:n,children:ve.jsx(Ph.div,{dir:a.dir,...r,ref:t})})})}),Kf=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Hf=Y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,a=pf(n),s=bf("FocusGroupItem",n);return ve.jsx(ff.ItemSlot,{scope:n,children:ve.jsx(Ph.button,{...r,ref:t,onKeyDown:jh(e.onKeyDown,e=>{if(["Home","End",...Kf].includes(e.key)){let t=a().map(e=>e.ref.current);if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),Kf.includes(e.key)){const n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>Zf(t)),e.preventDefault()}})})})});function Gf(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zf(e){const t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function Jf(e,t){const n=Kh(t);Fh(()=>{let t=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function Qf(e){return e?"open":"closed"}function Yf(e,t){return`${e}-trigger-${t}`}function Xf(e,t){return`${e}-content-${t}`}function ep(e){return t=>
2"mouse"===t.pointerType?e(t):void 0}var tp=kf,np=Af,rp=Tf,ap=Of,sp=Ff,ip=Mf,op=Bf;function lp(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=lp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const cp=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,up=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=lp(e))&&(r&&(r+=" "),r+=t);return r},dp=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return up(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:a,defaultVariants:s}=t,i=Object.keys(a).map(e=>{const t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;const i=cp(t)||cp(r);return a[e][i]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...o}[t]):{...s,...o}[t]===n})?[...e,n,r]:e},[]);return up(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},hp=(...e)=>e.filter((e,t,n)=>Boolean(e)&&n.indexOf(e)===t).join(" ");var fp={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"};const pp=Y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:i,...o},l)=>Y.createElement("svg",{ref:l,...fp,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:hp("lucide",a),...o},[...i.map(([e,t])=>Y.createElement(e,t)),...Array.isArray(s)?s:[s]])),mp=(e,t)=>{const n=Y.forwardRef(({className:n,...r},a)=>{return Y.createElement(pp,{ref:a,iconNode:t,className:hp(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var s});return n.displayName=`${e}`,n},gp=mp("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),yp=mp("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),vp=mp("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),bp=mp("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),xp=mp("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),wp=mp("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]),kp=mp("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]),jp=mp("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),_p=mp("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Sp=mp("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Ap=mp("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),Ep=mp("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),Np=mp("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Ip=mp("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),Tp=mp("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]),Cp=mp("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Op=mp("Glasses",[["circle",{cx:"6",cy:"15",r:"4",key:"vux9w4"}],["circle",{cx:"18",cy:"15",r:"4",key:"18o8ve"}],["path",{d:"M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2",key:"1ag4bs"}],["path",{d:"M2.5 13 5 7c.7-1.3 1.4-2 3-2",key:"1hm1gs"}],["path",{d:"M21.5 13 19 7c-.7-1.3-1.5-2-3-2",key:"1r31ai"}]]),Pp=mp("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),Rp=mp("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"}]]),Fp=mp("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),Dp=mp("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Lp=mp("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}
2]]),Mp=mp("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),zp=mp("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]),$p=mp("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),Up=mp("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),Vp=mp("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]),Bp=mp("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),Wp=mp("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]),qp=mp("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Kp=mp("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Hp=mp("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"}]]),Gp=mp("ShieldX",[["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:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]),Zp=mp("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]),Jp=mp("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Qp=mp("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),Yp=mp("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),Xp=mp("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),em=mp("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 12,913 bytes, line 2
2],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),tm=mp("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function nm(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=nm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rm(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=nm(e))&&(r&&(r+=" "),r+=t);return r}const am=e=>{const t=lm(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),sm(n,t)||om(e)},getConflictingClassGroupIds:(e,t)=>{const a=n[e]||[];return t&&r[e]?[...a,...r[e]]:a}}},sm=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),s=a?sm(e.slice(1),a):void 0;if(s)return s;if(0===t.validators.length)return;const i=e.join("-");return null==(n=t.validators.find(({validator:e})=>e(i)))?void 0:n.classGroupId},im=/^\[(.+)\]$/,om=e=>{if(im.test(e)){const t=im.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},lm=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return hm(Object.entries(e.classGroups),n).forEach(([e,n])=>{cm(n,r,e,t)}),r},cm=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:um(t,e)).classGroupId=n)}if("function"==typeof e)return dm(e)?void cm(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,a])=>{cm(a,um(t,e),n,r)})})},um=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},dm=e=>e.isThemeGetter,hm=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,fm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(a(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):a(e,t)}}},pm=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,a=t[0],s=t.length,i=e=>{const n=[];let i,o=0,l=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===o){if(c===a&&(r||e.slice(d,d+s)===t)){n.push(e.slice(l,d)),l=d+s;continue}if("/"===c){i=d;continue}}"["===c?o++:"]"===c&&o--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},mm=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},gm=/\s+/;function ym(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=vm(e))&&(r&&(r+=" "),r+=t);return r}const vm=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=vm(e[r]))&&(n&&(n+=" "),n+=t);return n};function bm(e,...t){let n,r,a,s=function(o){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:fm(e.cacheSize),parseClassName:pm(e),...am(e)}))(l),r=n.cache.get,a=n.cache.set,s=i,i(o)};function i(e){const t=r(e);if(t)return t;const s=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,s=[],i=e.trim().split(gm);let o="";for(let l=i.length-1;l>=0;l-=1){const e=i[l],{modifiers:t,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(e);let h=Boolean(d),f=r(h?u.substring(0,d):u);if(!f){if(!h){o=e+(o.length>0?" "+o:o);continue}if(f=r(u),!f){o=e+(o.length>0?" "+o:o);continue}h=!1}const p=mm(t).join(":"),m=c?p+"!":p,g=m+f;if(s.includes(g))continue;s.push(g);const y=a(f,h);for(let n=0;n<y.length;++n){const e=y[n];s.push(m+e)}o=e+(o.length>0?" "+o:o)}return o})(e,n);return a(e,s),s}return function(){return s(ym.apply(null,arguments))}}const xm=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},wm=/^\[(?:([a-z-]+):)?(.+)\]$/i,km=/^\d+\/\d+$/,jm=new Set(["px","full","screen"]),_m=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sm=/\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$/,Am=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Em=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Im=e=>Cm(e)||jm.has(e)||km.test(e),Tm=e=>Wm(e,"length",qm),Cm=e=>Boolean(e)&&!Number.isNaN(Number(e)),Om=e=>Wm(e,"number",Cm),Pm=e=>Boolean(e)&&Number.isInteger(Number(e)),Rm=e=>e.endsWith("%")&&Cm(e.slice(0,-1)),Fm=e=>wm.test(e),Dm=e=>_m.test(e),Lm=new Set(["length","size","percentage"]),Mm=e=>Wm(e,Lm,Km),zm=e=>Wm(e,"position",Km),$m=new Set(["image","url"]),Um=e=>Wm(e,$m,Gm),Vm=e=>Wm(e,"",Hm),Bm=()=>!0,Wm=(e,t,n)=>{const r=wm.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},qm=e=>Sm.test(e)&&!Am.test(e),Km=()=>!1,Hm=e=>Em.test(e),Gm=e=>Nm.test(e),Zm=bm(()=>{const e=xm("colors"),t=xm("spacing"),n=xm("blur"),r=xm("brightness"),a=xm("borderColor"),s=xm("borderRadius"),i=xm("borderSpacing"),o=xm("borderWidth"),l=xm("contrast"),c=xm("grayscale"),u=xm("hueRotate"),d=xm("invert"),h=xm("gap"),f=xm("gradientColorStops"),p=xm("gradientColorStopPositions"),m=xm("inset"),g=xm("margin"),y=xm("opacity"),v=xm("padding"),b=xm("saturate"),x=xm("scale"),w=xm("sepia"),k=xm("skew"),j=xm("space"),_=xm("translate"),S=()=>["auto",Fm,t],A=()=>[Fm,t],E=()=>["",Im,Tm],N=()=>["auto",Cm,Fm],I=()=>["","0",Fm],T=()=>[Cm,Fm];return{cacheSize:500,separator:":",theme:{colors:[Bm],spacing:[Im,Tm],blur:["none","",Dm,Fm],brightness:T(),borderColor:[e],borderRadius:["none","","full",Dm,Fm],borderSpacing:A(),borderWidth:E(),contrast:T(),grayscale:I(),hueRotate:T(),invert:I(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Rm,Tm],inset:S(),margin:S(),opacity:T(),padding:A(),saturate:T(),scale:T(),sepia:I(),skew:T(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",Fm]}],container:["container"],columns:[{columns:[Dm]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Fm]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pm,Fm]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Fm]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",Pm,Fm]}],"grid-cols":[{"grid-cols":[Bm]}],"col-start-end":[{col:["auto",{span:["full",Pm,Fm]},Fm]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Bm]}],"row-start-end":[{row:["auto",{span:[Pm,Fm]},Fm]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Fm]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Fm]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Fm,t]}],"min-w":[{"min-w":[Fm,t,"min","max","fit"]}],"max-w":[{"max-w":[Fm,t,"none","full","min","max","fit","prose",{screen:[Dm]},Dm]}],h:[{h:[Fm,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Fm,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Fm,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Fm,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Dm,Tm]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Om]}],"font-family":[{font:[Bm]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Fm]}],"line-clamp":[{"line-clamp":["none",Cm,Om]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Im,Fm]}],"list-image":[{"list-image":["none",Fm]}],"list-style-type":[{list:["none","disc","decimal",Fm]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Im,Tm]}],"underline-offset":[{"underline-offset":["auto",Im,Fm]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Fm]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Fm]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",zm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Um]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}
2],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,419 bytes, line 2
2],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Im,Fm]}],"outline-w":[{outline:[Im,Tm]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Im,Tm]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Dm,Vm]}],"shadow-color":[{shadow:[Bm]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Dm,Fm]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Fm]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",Fm]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",Fm]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Pm,Fm]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Fm]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Fm]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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"]}
2],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",Fm]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Im,Tm,Om]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function Jm(...e){return Zm(rm(e))}const Qm=Y.forwardRef(({className:e,children:t,...n},r)=>ve.jsxs(tp,{ref:r,className:Jm("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,ve.jsx(rg,{})]}));Qm.displayName=tp.displayName;const Ym=Y.forwardRef(({className:e,...t},n)=>ve.jsx(np,{ref:n,className:Jm("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));Ym.displayName=np.displayName;const Xm=rp,eg=dp("group inline-flex h-10 w-max items-center justify-center rounded-md bg-transparent px-4 py-2 text-sm font-medium transition-colors hover:text-luxury-gold focus:outline-none focus-visible:text-luxury-gold focus-visible:ring-2 focus-visible:ring-luxury-purple/40 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[active]:text-luxury-gold data-[state=open]:text-luxury-gold"),tg=Y.forwardRef(({className:e,children:t,...n},r)=>ve.jsxs(ap,{ref:r,className:Jm(eg(),"group",e),...n,children:[t," ",ve.jsx(_p,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));tg.displayName=ap.displayName;const ng=Y.forwardRef(({className:e,...t},n)=>ve.jsx(ip,{ref:n,className:Jm("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));ng.displayName=ip.displayName;const rg=Y.forwardRef(({className:e,...t},n)=>ve.jsx("div",{className:Jm("absolute left-0 top-full flex justify-start"),children:ve.jsx(op,{className:Jm("origin-top-left relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-visible rounded-xl border-0 bg-transparent text-popover-foreground shadow-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 md:w-[var(--radix-navigation-menu-viewport-width)] motion-reduce:transition-none motion-reduce:data-[state=open]:animate-none motion-reduce:data-[state=closed]:animate-none",e),ref:n,...t})}));rg.displayName=op.displayName;Y.forwardRef(({className:e,...t},n)=>ve.jsx(sp,{ref:n,className:Jm("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:ve.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})).displayName=sp.displayName;const ag=dp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 tracking-[2px] font-heading relative",{variants:{variant:{default:"bg-luxury-black text-luxury-white hover:bg-black/90 before:content-[''] before:absolute before:top-0 before:left-0 before:bottom-0 before:w-1 before:bg-luxury-gold before:rounded-l-md",de
2structive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border-2 border-luxury-black text-luxury-black hover:bg-luxury-lightgray",secondary:"bg-luxury-white text-luxury-black border border-luxury-black hover:bg-luxury-lightgray",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",gold:"bg-luxury-gold text-luxury-black hover:bg-opacity-90 tracking-wider"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),sg=Y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},s)=>{const i=r?Nh:"button";return ve.jsx(i,{className:Jm(ag({variant:t,size:n,className:e})),ref:s,...a})});sg.displayName="Button";var ig="focusScope.autoFocusOnMount",og="focusScope.autoFocusOnUnmount",lg={bubbles:!1,cancelable:!0},cg=Y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...i}=e,[o,l]=Y.useState(null),c=Kh(a),u=Kh(s),d=Y.useRef(null),h=Ah(t,e=>l(e)),f=Y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Y.useEffect(()=>{if(r){let e=function(e){if(f.paused||!o)return;const t=e.target;o.contains(t)?d.current=t:fg(d.current,{select:!0})},t=function(e){if(f.paused||!o)return;const t=e.relatedTarget;null!==t&&(o.contains(t)||fg(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&fg(o)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return o&&r.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,o,f.paused]),Y.useEffect(()=>{if(o){pg.add(f);const t=document.activeElement;if(!o.contains(t)){const n=new CustomEvent(ig,lg);o.addEventListener(ig,c),o.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fg(r,{select:t}),document.activeElement!==n)return}((e=ug(o),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&fg(o))}return()=>{o.removeEventListener(ig,c),setTimeout(()=>{const e=new CustomEvent(og,lg);o.addEventListener(og,u),o.dispatchEvent(e),e.defaultPrevented||fg(t??document.body,{select:!0}),o.removeEventListener(og,u),pg.remove(f)},0)}}var e},[o,c,u,f]);const p=Y.useCallback(e=>{if(!n&&!r)return;if(f.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,s]=function(e){const t=ug(e),n=dg(t,e),r=dg(t.reverse(),e);return[n,r]}(t);r&&s?e.shiftKey||a!==s?e.shiftKey&&a===r&&(e.preventDefault(),n&&fg(s,{select:!0})):(e.preventDefault(),n&&fg(r,{select:!0})):a===t&&e.preventDefault()}},[n,r,f.paused]);return ve.jsx(Ph.div,{tabIndex:-1,...i,ref:h,onKeyDown:p})});function ug(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function dg(e,t){for(const n of e)if(!hg(n,{upTo:t}))return n}function hg(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function fg(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}cg.displayName="FocusScope";var pg=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=mg(e,t),e.unshift(t)},remove(t){var n;e=mg(e,t),null==(n=e[0])||n.resume()}}}();function mg(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var gg=Y.forwardRef((e,t)=>{var n;const{container:r,...a}=e,[s,i]=Y.useState(!1);Fh(()=>i(!0),[]);const o=r||s&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return o?Ad.createPortal(ve.jsx(Ph.div,{...a,ref:t}),o):null});gg.displayName="Portal";var yg=0;function vg(){Y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??bg()),document.body.insertAdjacentElement("beforeend",e[1]??bg()),yg++,()=>{1===yg&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
vendor: 5,544 bytes, line 2
2=>e.remove()),yg--}},[])}function bg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var xg=function(){return xg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},xg.apply(this,arguments)};function wg(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}"function"==typeof SuppressedError&&SuppressedError;var kg="right-scroll-bar-position",jg="width-before-scroll-bar";function _g(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Sg="undefined"!=typeof window?Y.useLayoutEffect:Y.useEffect,Ag=new WeakMap;function Eg(e,t){var n,r,a,s=(n=null,r=function(t){return e.forEach(function(e){return _g(e,t)})},(a=Y.useState(function(){return{value:n,callback:r,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}})[0]).callback=r,a.facade);return Sg(function(){var t=Ag.get(s);if(t){var n=new Set(t),r=new Set(e),a=s.current;n.forEach(function(e){r.has(e)||_g(e,null)}),r.forEach(function(e){n.has(e)||_g(e,a)})}Ag.set(s,e)},[e]),s}function Ng(e){return e}var Ig=function(e){var t=e.sideCar,n=wg(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return Y.createElement(r,xg({},n))};Ig.isSideCarExport=!0;var Tg=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Ng);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,r);return n.push(a),function(){n=n.filter(function(e){return e!==a})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var s=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(s)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=xg({async:!0,ssr:!1},e),t}(),Cg=function(){},Og=Y.forwardRef(function(e,t){var n=Y.useRef(null),r=Y.useState({onScrollCapture:Cg,onWheelCapture:Cg,onTouchMoveCapture:Cg}),a=r[0],s=r[1],i=e.forwardProps,o=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,f=e.noRelative,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,v=void 0===y?"div":y,b=e.gapMode,x=wg(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=h,k=Eg([n,t]),j=xg(xg({},x),a);return Y.createElement(Y.Fragment,null,u&&Y.createElement(w,{sideCar:Tg,removeScrollBar:c,shards:d,noRelative:f,noIsolation:p,inert:m,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:b}),i?Y.cloneElement(Y.Children.only(o),xg(xg({},j),{ref:k})):Y.createElement(v,xg({},j,{className:l,ref:k}),o))});Og.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Og.classNames={fullWidth:jg,zeroRight:kg};function Pg(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Rg=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=Pg())&&(a=n,(r=t).styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fg=function(){var e,t=(e=Rg(),function(t,n){Y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Dg={left:0,top:0,right:0,gap:0},Lg=function(e){return parseInt(e||"",10)||0},Mg=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Dg;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[Lg(n),Lg(r),Lg(a)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},zg=Fg(),$g="data-scroll-locked",Ug=function(e,t,n,r){var a=e.left,s=e.top,i=e.right,o=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(o,"px ").concat(r,";\n }\n body[").concat($g,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(s,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(o,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(o,"px ").concat(r,";
2")].filter(Boolean).join(""),"\n }\n \n .").concat(kg," {\n right: ").concat(o,"px ").concat(r,";\n }\n \n .").concat(jg," {\n margin-right: ").concat(o,"px ").concat(r,";\n }\n \n .").concat(kg," .").concat(kg," {\n right: 0 ").concat(r,";\n }\n \n .").concat(jg," .").concat(jg," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat($g,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(o,"px;\n }\n")},Vg=function(){var e=parseInt(document.body.getAttribute($g)||"0",10);return isFinite(e)?e:0},Bg=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;Y.useEffect(function(){return document.body.setAttribute($g,(Vg()+1).toString()),function(){var e=Vg()-1;e<=0?document.body.removeAttribute($g):document.body.setAttribute($g,e.toString())}},[]);var s=Y.useMemo(function(){return Mg(a)},[a]);return Y.createElement(zg,{styles:Ug(s,!t,a,n?"":"!important")})},Wg=!1;if("undefined"!=typeof window)try{var qg=Object.defineProperty({},"passive",{get:function(){return Wg=!0,!0}});window.addEventListener("test",qg,qg),window.removeEventListener("test",qg,qg)}catch(sM){Wg=!1}var Kg=!!Wg&&{passive:!1},Hg=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Gg=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Zg(e,r)){var a=Jg(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Zg=function(e,t){return"v"===e?function(e){return Hg(e,"overflowY")}(t):function(e){return Hg(e,"overflowX")}(t)},Jg=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Qg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Yg=function(e){return[e.deltaX,e.deltaY]},Xg=function(e){return e&&"current"in e?e.current:e},ey=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},ty=0,ny=[];function ry(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ay=(sy=function(e){var t=Y.useRef([]),n=Y.useRef([0,0]),r=Y.useRef(),a=Y.useState(ty++)[0],s=Y.useState(Fg)[0],i=Y.useRef(e);Y.useEffect(function(){i.current=e},[e]),Y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=function(e,t,n){if(n||2===arguments.length)for(var r,a=0,s=t.length;a<s;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Xg),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var o=Y.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,s=Qg(e),o=n.current,l="deltaX"in e?e.deltaX:o[0]-s[0],c="deltaY"in e?e.deltaY:o[1]-s[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=Gg(d,u);if(!h)return!0;if(h?a=d:(a="v"===d?"h":"v",h=Gg(d,u)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=a),!a)return!0;var f=r.current||a;return function(e,t,n,r,a){var s=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=s*r,o=n.target,l=t.contains(o),c=!1,u=i>0,d=0,h=0;do{if(!o)break;var f=Jg(e,o),p=f[0],m=f[1]-f[2]-s*p;(p||m)&&Zg(e,o)&&(d+=m,h+=p);var g=o.parentNode;o=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return u&&(Math.abs(d)<1||!a)?c=!0:u||!(Math.abs(h)<1)&&a||(c=!0),c}(f,t,e,"h"===f?l:c,!0)},[]),l=Y.useCallback(function(e){var n=e;if(ny.length&&ny[ny.length-1]===s){var r="deltaY"in n?Yg(n):Qg(n),a=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,a=r,t[0]===a[0]&&t[1]===a[1]);var t,a})[0];if(a&&a.should)n.cancelable&&n.preventDefault();
vendor: 4,225 bytes, line 2
2else if(!a){var l=(i.current.shards||[]).map(Xg).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?o(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),c=Y.useCallback(function(e,n,r,a){var s={name:e,delta:n,target:r,should:a,shadowParent:ry(r)};t.current.push(s),setTimeout(function(){t.current=t.current.filter(function(e){return e!==s})},1)},[]),u=Y.useCallback(function(e){n.current=Qg(e),r.current=void 0},[]),d=Y.useCallback(function(t){c(t.type,Yg(t),t.target,o(t,e.lockRef.current))},[]),h=Y.useCallback(function(t){c(t.type,Qg(t),t.target,o(t,e.lockRef.current))},[]);Y.useEffect(function(){return ny.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Kg),document.addEventListener("touchmove",l,Kg),document.addEventListener("touchstart",u,Kg),function(){ny=ny.filter(function(e){return e!==s}),document.removeEventListener("wheel",l,Kg),document.removeEventListener("touchmove",l,Kg),document.removeEventListener("touchstart",u,Kg)}},[]);var f=e.removeScrollBar,p=e.inert;return Y.createElement(Y.Fragment,null,p?Y.createElement(s,{styles:ey(a)}):null,f?Y.createElement(Bg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Tg.useMedium(sy),Ig);var sy,iy=Y.forwardRef(function(e,t){return Y.createElement(Og,xg({},e,{ref:t,sideCar:ay}))});iy.classNames=Og.classNames;var oy=new WeakMap,ly=new WeakMap,cy={},uy=0,dy=function(e){return e&&(e.host||dy(e.parentNode))},hy=function(e,t,n,r){var a=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=dy(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);cy[n]||(cy[n]=new WeakMap);var s=cy[n],i=[],o=new Set,l=new Set(a),c=function(e){e&&!o.has(e)&&(o.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(o.has(e))u(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,l=(oy.get(e)||0)+1,c=(s.get(e)||0)+1;oy.set(e,l),s.set(e,c),i.push(e),1===l&&a&&ly.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",e,d)}})};return u(t),o.clear(),uy++,function(){i.forEach(function(e){var t=oy.get(e)-1,a=s.get(e)-1;oy.set(e,t),s.set(e,a),t||(ly.has(e)||e.removeAttribute(r),ly.delete(e)),a||e.removeAttribute(n)}),--uy||(oy=new WeakMap,oy=new WeakMap,ly=new WeakMap,cy={})}},fy=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),hy(r,a,n,"aria-hidden")):function(){return null}},py="Dialog",[my,gy]=wh(py),[yy,vy]=my(py),by=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,o=Y.useRef(null),l=Y.useRef(null),[c,u]=Lh({prop:r,defaultProp:a??!1,onChange:s,caller:py});return ve.jsx(yy,{scope:t,triggerRef:o,contentRef:l,contentId:Wh(),titleId:Wh(),descriptionId:Wh(),open:c,onOpenChange:u,onOpenToggle:Y.useCallback(()=>u(e=>!e),[u]),modal:i,children:n})};by.displayName=py;var xy="DialogTrigger",wy=Y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=vy(xy,n),s=Ah(t,a.triggerRef);return ve.jsx(Ph.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Uy(a.open),...r,ref:s,onClick:jh(e.onClick,a.onOpenToggle)})});wy.displayName=xy;var ky="DialogPortal",[jy,_y]=my(ky,{forceMount:void 0}),Sy=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,s=vy(ky,t);return ve.jsx(jy,{scope:t,forceMount:n,children:Y.Children.map(r,e=>ve.jsx($h,{present:n||s.open,children:ve.jsx(gg,{asChild:!0,container:a,children:e})}))})};Sy.displayName=ky;var Ay="DialogOverlay",Ey=Y.forwardRef((e,t)=>{const n=_y(Ay,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=vy(Ay,e.__scopeDialog);return s.modal?ve.jsx($h,{present:r||s.open,children:ve.jsx(Iy,{...a,ref:t})}):null});Ey.displayName=Ay;var Ny=Eh("DialogOverlay.RemoveScroll"),Iy=Y.forwardRef((e,t)=>
2{const{__scopeDialog:n,...r}=e,a=vy(Ay,n);return ve.jsx(iy,{as:Ny,allowPinchZoom:!0,shards:[a.contentRef],children:ve.jsx(Ph.div,{"data-state":Uy(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ty="DialogContent",Cy=Y.forwardRef((e,t)=>{const n=_y(Ty,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=vy(Ty,e.__scopeDialog);return ve.jsx($h,{present:r||s.open,children:s.modal?ve.jsx(Oy,{...a,ref:t}):ve.jsx(Py,{...a,ref:t})})});Cy.displayName=Ty;var Oy=Y.forwardRef((e,t)=>{const n=vy(Ty,e.__scopeDialog),r=Y.useRef(null),a=Ah(t,n.contentRef,r);return Y.useEffect(()=>{const e=r.current;if(e)return fy(e)},[]),ve.jsx(Ry,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:jh(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:jh(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:jh(e.onFocusOutside,e=>e.preventDefault())})}),Py=Y.forwardRef((e,t)=>{const n=vy(Ty,e.__scopeDialog),r=Y.useRef(!1),a=Y.useRef(!1);return ve.jsx(Ry,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var s,i;null==(s=e.onCloseAutoFocus)||s.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var s,i;null==(s=e.onInteractOutside)||s.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const o=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(o))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),Ry=Y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:s,...i}=e,o=vy(Ty,n),l=Y.useRef(null),c=Ah(t,l);return vg(),ve.jsxs(ve.Fragment,{children:[ve.jsx(cg,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:s,children:ve.jsx(Yh,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":Uy(o.open),...i,ref:c,onDismiss:()=>o.onOpenChange(!1)})}),ve.jsxs(ve.Fragment,{children:[ve.jsx(qy,{titleId:o.titleId}),ve.jsx(Ky,{contentRef:l,descriptionId:o.descriptionId})]})]})}),Fy="DialogTitle",Dy=Y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=vy(Fy,n);return ve.jsx(Ph.h2,{id:a.titleId,...r,ref:t})});Dy.displayName=Fy;var Ly="DialogDescription",My=Y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=vy(Ly,n);return ve.jsx(Ph.p,{id:a.descriptionId,...r,ref:t})});My.displayName=Ly;var zy="DialogClose",$y=Y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=vy(zy,n);return ve.jsx(Ph.button,{type:"button",...r,ref:t,onClick:jh(e.onClick,()=>a.onOpenChange(!1))})});function Uy(e){return e?"open":"closed"}$y.displayName=zy;var Vy="DialogTitleWarning",[By,Wy]=function(e,t){const n=Y.createContext(t),r=e=>{const{children:t,...r}=e,a=Y.useMemo(()=>r,Object.values(r));return ve.jsx(n.Provider,{value:a,children:t})};return r.displayName=e+"Provider",[r,function(r){const a=Y.useContext(n);if(a)return a;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(Vy,{contentName:Ty,titleName:Fy,docsSlug:"dialog"}),qy=({titleId:e})=>{const t=Wy(Vy),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return Y.useEffect(()=>{if(e){document.getElementById(e)||console.error(n)}},[n,e]),null},Ky=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wy("DialogDescriptionWarning").contentName}}.`;return Y.useEffect(()=>{var r;const a=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");if(t&&a){document.getElementById(t)||console.warn(n)}},[n,e,t]),null},Hy=by,Gy=wy,Zy=Sy,Jy=Ey,Qy=Cy,Yy=Dy,Xy=My,ev=$y;const tv=Hy,nv=Gy,rv=Zy,av=Y.forwardRef(({className:e,...t},n)=>
2ve.jsx(Jy,{className:Jm("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));av.displayName=Jy.displayName;const sv=dp("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),iv=Y.forwardRef(({side:e="right",className:t,children:n,...r},a)=>ve.jsxs(rv,{children:[ve.jsx(av,{}),ve.jsxs(Qy,{ref:a,className:Jm(sv({side:e}),t),...r,children:[n,ve.jsxs(ev,{className:"hidden",children:[ve.jsx(em,{className:"h-7 w-7"}),ve.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));iv.displayName=Qy.displayName;Y.forwardRef(({className:e,...t},n)=>ve.jsx(Yy,{ref:n,className:Jm("text-lg font-semibold text-foreground",e),...t})).displayName=Yy.displayName;Y.forwardRef(({className:e,...t},n)=>ve.jsx(Xy,{ref:n,className:Jm("text-sm text-muted-foreground",e),...t})).displayName=Xy.displayName;class ov extends Error{constructor(e,t="FunctionsError",n){super(e),this.name=t,this.context=n}}class lv extends ov{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class cv extends ov{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class uv extends ov{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var dv,hv;(hv=dv||(dv={})).Any="any",hv.ApNortheast1="ap-northeast-1",hv.ApNortheast2="ap-northeast-2",hv.ApSouth1="ap-south-1",hv.ApSoutheast1="ap-southeast-1",hv.ApSoutheast2="ap-southeast-2",hv.CaCentral1="ca-central-1",hv.EuCentral1="eu-central-1",hv.EuWest1="eu-west-1",hv.EuWest2="eu-west-2",hv.EuWest3="eu-west-3",hv.SaEast1="sa-east-1",hv.UsEast1="us-east-1",hv.UsWest1="us-west-1",hv.UsWest2="us-west-2";var fv=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(t){s(t)}}function o(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};class pv{constructor(e,{headers:t={},customFetch:n,region:r=dv.Any}={}){this.url=e,this.headers=t,this.region=r,this.fetch=(e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>se(async()=>{const{default:e}=await Promise.resolve().then(()=>Ev);return{default:e}},void 0).then(({default:t})=>t(...e)):fetch),(...e)=>t(...e)})(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return fv(this,arguments,void 0,function*(e,t={}){var n;try{const{headers:r,method:a,body:s,signal:i}=t;let o={},{region:l}=t;l||(l=this.region);const c=new URL(`${this.url}/${e}`);let u;l&&"any"!==l&&(o["x-region"]=l,c.searchParams.set("forceFunctionRegion",l)),s&&(r&&!Object.prototype.hasOwnProperty.call(r,"Content-Type")||!r)&&("undefined"!=typeof Blob&&s instanceof Blob||s instanceof ArrayBuffer?(o["Content-Type"]="application/octet-stream",u=s):"string"==typeof s?(o["Content-Type"]="text/plain",u=s):"undefined"!=typeof FormData&&s instanceof FormData?u=s:(o["Content-Type"]="application/json",u=JSON.stringify(s)));const d=yield this.fetch(c.toString(),{method:a||"POST",headers:Object.assign(Object.assign(Object.assign({},o),this.headers),r),body:u,signal:i}).catch(e=>{if("AbortError"===e.name)throw e;throw new lv(e)}),h=d.headers.get("x-relay-error");if(h&&"true"===h)throw new cv(d);if(!d.ok)throw new uv(d);let f,p=(null!==(n=d.headers.get("Content-Type"))&&void 0!==n?n:"text/plain").split(";")[0].trim();return f="application/json"===p?yield d.json():"application/octet-stream"
2===p?yield d.blob():"text/event-stream"===p?d:"multipart/form-data"===p?yield d.formData():yield d.text(),{data:f,error:null,response:d}}catch(r){return r instanceof Error&&"AbortError"===r.name?{data:null,error:new lv(r)}:{data:null,error:r,response:r instanceof uv||r instanceof cv?r.context:void 0}}})}}var mv={},gv={},yv={},vv={},bv={},xv={},wv=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();const kv=wv.fetch,jv=wv.fetch.bind(wv),_v=wv.Headers,Sv=wv.Request,Av=wv.Response,Ev=Object.freeze(Object.defineProperty({__proto__:null,Headers:_v,Request:Sv,Response:Av,default:jv,fetch:kv},Symbol.toStringTag,{value:"Module"})),Nv=ie(Ev);var Iv={};Object.defineProperty(Iv,"__esModule",{value:!0});let Tv=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}};Iv.default=Tv;var Cv=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xv,"__esModule",{value:!0});const Ov=Cv(Nv),Pv=Cv(Iv);xv.default=class{constructor(e){var t,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=null!==(t=e.shouldThrowOnError)&&void 0!==t&&t,this.signal=e.signal,this.isMaybeSingle=null!==(n=e.isMaybeSingle)&&void 0!==n&&n,e.fetch?this.fetch=e.fetch:"undefined"==typeof fetch?this.fetch=Ov.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){void 0===this.schema||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),"GET"!==this.method&&"HEAD"!==this.method&&this.headers.set("Content-Type","application/json");let n=(0,this.fetch)(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async e=>{var t,n,r,a;let s=null,i=null,o=null,l=e.status,c=e.statusText;if(e.ok){if("HEAD"!==this.method){const n=await e.text();""===n||(i="text/csv"===this.headers.get("Accept")||this.headers.get("Accept")&&(null===(t=this.headers.get("Accept"))||void 0===t?void 0:t.includes("application/vnd.pgrst.plan+text"))?n:JSON.parse(n))}const a=null===(n=this.headers.get("Prefer"))||void 0===n?void 0:n.match(/count=(exact|planned|estimated)/),u=null===(r=e.headers.get("content-range"))||void 0===r?void 0:r.split("/");a&&u&&u.length>1&&(o=parseInt(u[1])),this.isMaybeSingle&&"GET"===this.method&&Array.isArray(i)&&(i.length>1?(s={code:"PGRST116",details:`Results contain ${i.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},i=null,o=null,l=406,c="Not Acceptable"):i=1===i.length?i[0]:null)}else{const t=await e.text();try{s=JSON.parse(t),Array.isArray(s)&&404===e.status&&(i=[],s=null,l=200,c="OK")}catch(u){404===e.status&&""===t?(l=204,c="No Content"):s={message:t}}if(s&&this.isMaybeSingle&&(null===(a=null==s?void 0:s.details)||void 0===a?void 0:a.includes("0 rows"))&&(s=null,l=200,c="OK"),s&&this.shouldThrowOnError)throw new Pv.default(s)}return{error:s,data:i,count:o,status:l,statusText:c}});return this.shouldThrowOnError||(n=n.catch(e=>{var t,n,r;return{error:{message:`${null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"FetchError"}: ${null==e?void 0:e.message}`,details:`${null!==(n=null==e?void 0:e.stack)&&void 0!==n?n:""}`,hint:"",code:`${null!==(r=null==e?void 0:e.code)&&void 0!==r?r:""}`},data:null,count:null,status:0,statusText:""}})),n.then(e,t)}returns(){return this}overrideTypes(){return this}};var Rv=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bv,"__esModule",{value:!0});const Fv=Rv(xv);let Dv=class extends Fv.default{select(e){let t=!1;const n=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!t?"":('"'===e&&(t=!t),e)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:a=r}={}){const s=a?`${a}.order`:"order",i=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${i?`${i},`:""}${e}.${t?"asc":"desc"}${void 0===n?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=void 0===n?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const a=void 0===r?"offset":`${r}.offset`,s=void 0===r?"limit":`${r}.limit`;return this.url.searchParams.set(a,`${e}`),this.url.searchParams.set(s,""+(t-e+1)),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return"GET"===this.method?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
2explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:a=!1,format:s="text"}={}){var i;const o=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,a?"wal":null].filter(Boolean).join("|"),l=null!==(i=this.headers.get("Accept"))&&void 0!==i?i:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${l}"; options=${o};`),this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};bv.default=Dv;var Lv=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vv,"__esModule",{value:!0});const Mv=Lv(bv);let zv=class extends Mv.default{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(e=>"string"==typeof e&&new RegExp("[,()]").test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}contains(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return"string"==typeof t?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let a="";"plain"===r?a="pl":"phrase"===r?a="ph":"websearch"===r&&(a="w");const s=void 0===n?"":`(${n})`;return this.url.searchParams.append(e,`${a}fts${s}.${t}`),this}match(e){return Object.entries(e).forEach(([e,t])=>{this.url.searchParams.append(e,`eq.${t}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}};vv.default=zv;var $v=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yv,"__esModule",{value:!0});const Uv=$v(vv);yv.default=class{constructor(e,{headers:t={},schema:n,fetch:r}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r}select(e,t){const{head:n=!1,count:r}=null!=t?t:{},a=n?"HEAD":"GET";let s=!1;const i=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!s?"":('"'===e&&(s=!s),e)).join("");return this.url.searchParams.set("select",i),r&&this.headers.append("Prefer",`count=${r}`),new Uv.default({method:a,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;if(t&&this.headers.append("Prefer",`count=${t}`),n||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const t=e.reduce((e,t)=>
2e.concat(Object.keys(t)),[]);if(t.length>0){const e=[...new Set(t)].map(e=>`"${e}"`);this.url.searchParams.set("columns",e.join(","))}}return new Uv.default({method:"POST",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:null!==(r=this.fetch)&&void 0!==r?r:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:a=!0}={}){var s;if(this.headers.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),void 0!==t&&this.url.searchParams.set("on_conflict",t),r&&this.headers.append("Prefer",`count=${r}`),a||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){const e=[...new Set(t)].map(e=>`"${e}"`);this.url.searchParams.set("columns",e.join(","))}}return new Uv.default({method:"POST",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:null!==(s=this.fetch)&&void 0!==s?s:fetch})}update(e,{count:t}={}){var n;return t&&this.headers.append("Prefer",`count=${t}`),new Uv.default({method:"PATCH",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:null!==(n=this.fetch)&&void 0!==n?n:fetch})}delete({count:e}={}){var t;return e&&this.headers.append("Prefer",`count=${e}`),new Uv.default({method:"DELETE",url:this.url,headers:this.headers,schema:this.schema,fetch:null!==(t=this.fetch)&&void 0!==t?t:fetch})}};var Vv=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gv,"__esModule",{value:!0});const Bv=Vv(yv),Wv=Vv(vv);gv.default=class e{constructor(e,{headers:t={},schema:n,fetch:r}={}){this.url=e,this.headers=new Headers(t),this.schemaName=n,this.fetch=r}from(e){const t=new URL(`${this.url}/${e}`);return new Bv.default(t,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new e(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(e,t={},{head:n=!1,get:r=!1,count:a}={}){var s;let i;const o=new URL(`${this.url}/rpc/${e}`);let l;n||r?(i=n?"HEAD":"GET",Object.entries(t).filter(([e,t])=>void 0!==t).map(([e,t])=>[e,Array.isArray(t)?`{${t.join(",")}}`:`${t}`]).forEach(([e,t])=>{o.searchParams.append(e,t)})):(i="POST",l=t);const c=new Headers(this.headers);return a&&c.set("Prefer",`count=${a}`),new Wv.default({method:i,url:o,headers:c,schema:this.schemaName,body:l,fetch:null!==(s=this.fetch)&&void 0!==s?s:fetch})}};var qv=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mv,"__esModule",{value:!0}),mv.PostgrestError=mv.PostgrestBuilder=mv.PostgrestTransformBuilder=mv.PostgrestFilterBuilder=mv.PostgrestQueryBuilder=mv.PostgrestClient=void 0;const Kv=qv(gv);mv.PostgrestClient=Kv.default;const Hv=qv(yv);mv.PostgrestQueryBuilder=Hv.default;const Gv=qv(vv);mv.PostgrestFilterBuilder=Gv.default;const Zv=qv(bv);mv.PostgrestTransformBuilder=Zv.default;const Jv=qv(xv);mv.PostgrestBuilder=Jv.default;const Qv=qv(Iv);mv.PostgrestError=Qv.default;var Yv=mv.default={PostgrestClient:Kv.default,PostgrestQueryBuilder:Hv.default,PostgrestFilterBuilder:Gv.default,PostgrestTransformBuilder:Zv.default,PostgrestBuilder:Jv.default,PostgrestError:Qv.default};const{PostgrestClient:Xv,PostgrestQueryBuilder:eb,PostgrestFilterBuilder:tb,PostgrestTransformBuilder:nb,PostgrestBuilder:rb,PostgrestError:ab}=Yv;class sb{static detectEnvironment(){var e;if("undefined"!=typeof WebSocket)return{type:"native",constructor:WebSocket};if("undefined"!=typeof globalThis&&void 0!==globalThis.WebSocket)return{type:"native",constructor:globalThis.WebSocket};if("undefined"!=typeof global&&void 0!==global.WebSocket)return{type:"native",constructor:global.WebSocket};if("undefined"!=typeof globalThis&&void 0!==globalThis.WebSocketPair&&void 0===globalThis.WebSocket)return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if("undefined"!=typeof globalThis&&globalThis.EdgeRuntime||"undefined"!=typeof navigator&&(null===(e=navigator.userAgent)||void 0===e?void 0:e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if("undefined"!=typeof process){const e=process.versions;if(e&&e.node){const t=e.node,n=parseInt(t.replace(/^v/,"").split(".")[0]);return n>=22?void 0!==globalThis.WebSocket?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${n} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${n} detected without native WebSocket support.`,workaround:'For Node.js < 22, install "ws" package and provide it via the transport option:\nimport ws from "ws"\nnew RealtimeClient(url, { transport: ws })'}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let t=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(t+=`\n\nSuggested solution: ${e.workaround}`),new Error(t)}static createWebSocket(e,t){return new(this.getWebSocketConstructor())(e,t)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return"native"===e.type||"ws"===e.type}catch(e){return!1}}}const ib=1e4;var ob,lb,cb,ub,db,hb,fb,pb,mb,gb,yb;(lb=ob||(ob={}))[lb.connecting=0]="connecting",lb[lb.open=1]="open",lb[lb.closing=2]="closing",lb[lb.closed=3]="closed",(ub=cb||(cb={})).closed="closed",ub.errored="errored",ub.joined="joined",ub.joining="joining",ub.leaving="leaving",(hb=db||(db={})).close="phx_close",hb.error="phx_error",hb.join="phx_join",hb.reply="phx_reply",hb.leave="phx_leave",hb.access_token="access_token",(fb||(fb={})).websocket="websocket",(mb=pb||(pb={})).Connecting="connecting",mb.Open="open",mb.Closing="closing",mb.Closed="closed";class vb{constructor(){this.HEADER_LENGTH=1}decode(e,t){return e.constructor===ArrayBuffer?t(this._binaryDecode(e)):t("string"==typeof e?JSON.parse(e):{})}_binaryDecode(e){const t=new DataView(e),n=new TextDecoder;return this._decodeBroadcast(e,t,n)}_decodeBroadcast(e,t,n){const r=t.getUint8(1),a=t.getUint8(2);let s=this.HEADER_LENGTH+2;const i=n.decode(e.slice(s,s+r));s+=r;
2const o=n.decode(e.slice(s,s+a));s+=a;return{ref:null,topic:i,event:o,payload:JSON.parse(n.decode(e.slice(s,e.byteLength)))}}}class bb{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=t}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}(yb=gb||(gb={})).abstime="abstime",yb.bool="bool",yb.date="date",yb.daterange="daterange",yb.float4="float4",yb.float8="float8",yb.int2="int2",yb.int4="int4",yb.int4range="int4range",yb.int8="int8",yb.int8range="int8range",yb.json="json",yb.jsonb="jsonb",yb.money="money",yb.numeric="numeric",yb.oid="oid",yb.reltime="reltime",yb.text="text",yb.time="time",yb.timestamp="timestamp",yb.timestamptz="timestamptz",yb.timetz="timetz",yb.tsrange="tsrange",yb.tstzrange="tstzrange";const xb=(e,t,n={})=>{var r;const a=null!==(r=n.skipTypes)&&void 0!==r?r:[];return t?Object.keys(t).reduce((n,r)=>(n[r]=wb(r,e,t,a),n),{}):{}},wb=(e,t,n,r)=>{const a=t.find(t=>t.name===e),s=null==a?void 0:a.type,i=n[e];return s&&!r.includes(s)?kb(s,i):jb(i)},kb=(e,t)=>{if("_"===e.charAt(0)){const n=e.slice(1,e.length);return Eb(t,n)}switch(e){case gb.bool:return _b(t);case gb.float4:case gb.float8:case gb.int2:case gb.int4:case gb.int8:case gb.numeric:case gb.oid:return Sb(t);case gb.json:case gb.jsonb:return Ab(t);case gb.timestamp:return Nb(t);case gb.abstime:case gb.date:case gb.daterange:case gb.int4range:case gb.int8range:case gb.money:case gb.reltime:case gb.text:case gb.time:case gb.timestamptz:case gb.timetz:case gb.tsrange:case gb.tstzrange:default:return jb(t)}},jb=e=>e,_b=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},Sb=e=>{if("string"==typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},Ab=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(t){return e}return e},Eb=(e,t)=>{if("string"!=typeof e)return e;const n=e.length-1,r=e[n];if("{"===e[0]&&"}"===r){let r;const s=e.slice(1,n);try{r=JSON.parse("["+s+"]")}catch(a){r=s?s.split(","):[]}return r.map(e=>kb(t,e))}return e},Nb=e=>"string"==typeof e?e.replace(" ","T"):e,Ib=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class Tb{constructor(e,t,n={},r=1e4){this.channel=e,this.event=t,this.payload=n,this.timeout=r,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,t){var n;return this._hasReceived(e)&&t(null===(n=this.receivedResp)||void 0===n?void 0:n.response),this.recHooks.push({status:e,callback:t}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);this.channel._on(this.refEvent,{},e=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=e,this._matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,t){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:t})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:t}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var Cb,Ob,Pb,Rb,Fb,Db,Lb,Mb;(Ob=Cb||(Cb={})).SYNC="sync",Ob.JOIN="join",Ob.LEAVE="leave";class zb{constructor(e,t){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(null==t?void 0:t.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},e=>{const{onJoin:t,onLeave:n,onSync:r}=this.caller;this.joinRef=this.channel._joinRef(),this.state=zb.syncState(this.state,e,t,n),this.pendingDiffs.forEac
2h(e=>{this.state=zb.syncDiff(this.state,e,t,n)}),this.pendingDiffs=[],r()}),this.channel._on(n.diff,{},e=>{const{onJoin:t,onLeave:n,onSync:r}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(e):(this.state=zb.syncDiff(this.state,e,t,n),r())}),this.onJoin((e,t,n)=>{this.channel._trigger("presence",{event:"join",key:e,currentPresences:t,newPresences:n})}),this.onLeave((e,t,n)=>{this.channel._trigger("presence",{event:"leave",key:e,currentPresences:t,leftPresences:n})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,t,n,r){const a=this.cloneDeep(e),s=this.transformState(t),i={},o={};return this.map(a,(e,t)=>{s[e]||(o[e]=t)}),this.map(s,(e,t)=>{const n=a[e];if(n){const r=t.map(e=>e.presence_ref),a=n.map(e=>e.presence_ref),s=t.filter(e=>a.indexOf(e.presence_ref)<0),l=n.filter(e=>r.indexOf(e.presence_ref)<0);s.length>0&&(i[e]=s),l.length>0&&(o[e]=l)}else i[e]=t}),this.syncDiff(a,{joins:i,leaves:o},n,r)}static syncDiff(e,t,n,r){const{joins:a,leaves:s}={joins:this.transformState(t.joins),leaves:this.transformState(t.leaves)};return n||(n=()=>{}),r||(r=()=>{}),this.map(a,(t,r)=>{var a;const s=null!==(a=e[t])&&void 0!==a?a:[];if(e[t]=this.cloneDeep(r),s.length>0){const n=e[t].map(e=>e.presence_ref),r=s.filter(e=>n.indexOf(e.presence_ref)<0);e[t].unshift(...r)}n(t,s,r)}),this.map(s,(t,n)=>{let a=e[t];if(!a)return;const s=n.map(e=>e.presence_ref);a=a.filter(e=>s.indexOf(e.presence_ref)<0),e[t]=a,r(t,a,n),0===a.length&&delete e[t]}),e}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((t,n)=>{const r=e[n];return t[n]="metas"in r?r.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e)):r,t},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}(Rb=Pb||(Pb={})).ALL="*",Rb.INSERT="INSERT",Rb.UPDATE="UPDATE",Rb.DELETE="DELETE",(Db=Fb||(Fb={})).BROADCAST="broadcast",Db.PRESENCE="presence",Db.POSTGRES_CHANGES="postgres_changes",Db.SYSTEM="system",(Mb=Lb||(Lb={})).SUBSCRIBED="SUBSCRIBED",Mb.TIMED_OUT="TIMED_OUT",Mb.CLOSED="CLOSED",Mb.CHANNEL_ERROR="CHANNEL_ERROR";class $b{constructor(e,t={config:{}},n){var r,a;if(this.topic=e,this.params=t,this.socket=n,this.bindings={},this.state=cb.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config),this.timeout=this.socket.timeout,this.joinPush=new Tb(this,db.join,this.params,this.timeout),this.rejoinTimer=new bb(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=cb.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=cb.closed,this.socket._remove(this)}),this._onError(e=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,e),this.state=cb.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=cb.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",e=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,e),this.state=cb.errored,this.rejoinTimer.scheduleTimeout())}),this._on(db.reply,{},(e,t)=>{this._trigger(this._replyEventName(t),e)}),this.presence=new zb(this),this.broadcastEndpointURL=Ib(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(null===(a=null===(r=this.params.config)||void 0===r?void 0:r.broadcast)||void 0===a?void 0:a.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,t=this.timeout){var n,r,a;if(this.socket.isConnected()||this.socket.connect(),this.state==cb.closed){const{config:{broadcast:s,presence:i,private:o}}=this.params,l=null!==(r=null===(n=this.bindings.postgres_changes)||void 0===n?void 0:n.map(e=>e.filter))&&void 0!==r?r:[],c=!!this.bindings[Fb.PRESENCE]&&this.bindings[Fb.PRESENCE].length>0||!0===(null===(a=this.params.config.presence)||void 0===a?void 0:a.enabled),u={},d={broadcast:s,presence:Object.assign(Object.assign({},i),{enabled:c}),postgres_changes:l,private:o};this.socket.accessTokenValue&&(u.access_token=this.socket.accessTokenValue),this._onError(t=>null==e?void 0:e(Lb.CHANNEL_ERROR,t)),this._onClose(()=>null==e?void 0:e(Lb.CLOSED)),this.updateJoinPayload(Object.assign({config:d},u)),this.joinedOnce=!0,this._rejoin(t),this.joinPush.receive("ok",async({postgres_changes:t})=>{var n;if(this.socket.setAuth(),void 0!==t){const r=this.bindings.postgres_changes,a=null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0,s=[];for(let n=0;n<a;n++){const a=r[n],{filter:{event:i,schema:o,table:l,filter:c}}=a,u=t&&t[n];if(!u||u.event!==i||u.schema!==o||u.table!==l||u.filter!==c)return this.unsubscribe(),this.state=cb.errored,void(null==e||e(Lb.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes")));s.push(Object.assign(Object.assign({},a),{id:u.id}))}return this.bindings.postgres_changes=s,void(e&&e(Lb.SUBSCRIBED))}null==e||e(Lb.SUBSCRIBED)}).receive("error",t=>{this.state=cb.errored,null==e||e(Lb.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(t).join(", ")||"error")))}).receive("timeout",()=>{null==e||e(Lb.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,t={}){return await this.send({type:"presence",event:"track",payload:e},t.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,t,n){return this.state===cb.joined&&e===Fb.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(e,t,n)}async send(e,t={}){var n,r;if(this._canPush()||"broadcast"!==e.type)return new Promise(n=>{var r,a,s;const i=this._push(e.type,e,t.timeout||this.timeout);"broadcast"!==e.type||(null===(s=null===(a=null===(r=this.params)||void 0===r?void 0:r.config)||void 0===a?void 0:a.broadcast)||void 0===s?void 0:s.ack)||n("ok"),i.receive("ok",()=>n("ok")),i.receive("error",()=>n("error")),i.receive("timeout",()=>n("timed out"))});{const{event:s,payload:i}=e,o={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:i,private:this.private}]})};try{const e=await this._fetchWithTimeout(this.broadcastEndpointURL,o,null!==(n=t.timeout)&&void 0!==n?n:this.timeout);return await(null===(r=e.body)||void 0===r?void 0:r.cancel()),e.ok?"ok":"error"}catch(a){return"AbortError"===a.name?"timed out":"error"}}}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=cb.leaving;const t=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(db.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(r=>{n=new Tb(this,db.leave,{},e),n.receive("ok",()=>{t(),r("ok")}).receive("timeout",()=>{t(),r("timed out")}).receive("error",()=>{r("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{null==n||n.destroy()})}
2teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=cb.closed,this.bindings={}}async _fetchWithTimeout(e,t,n){const r=new AbortController,a=setTimeout(()=>r.abort(),n),s=await this.socket.fetch(e,Object.assign(Object.assign({},t),{signal:r.signal}));return clearTimeout(a),s}_push(e,t,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let r=new Tb(this,e,t,n);return this._canPush()?r.send():this._addToPushBuffer(r),r}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>100){const e=this.pushBuffer.shift();e&&(e.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${e.event}`,e.payload))}}_onMessage(e,t,n){return t}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,t,n){var r,a;const s=e.toLocaleLowerCase(),{close:i,error:o,leave:l,join:c}=db;if(n&&[i,o,l,c].indexOf(s)>=0&&n!==this._joinRef())return;let u=this._onMessage(s,t,n);if(t&&!u)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(s)?null===(r=this.bindings.postgres_changes)||void 0===r||r.filter(e=>{var t,n,r;return"*"===(null===(t=e.filter)||void 0===t?void 0:t.event)||(null===(r=null===(n=e.filter)||void 0===n?void 0:n.event)||void 0===r?void 0:r.toLocaleLowerCase())===s}).map(e=>e.callback(u,n)):null===(a=this.bindings[s])||void 0===a||a.filter(e=>{var n,r,a,i,o,l;if(["broadcast","presence","postgres_changes"].includes(s)){if("id"in e){const s=e.id,i=null===(n=e.filter)||void 0===n?void 0:n.event;return s&&(null===(r=t.ids)||void 0===r?void 0:r.includes(s))&&("*"===i||(null==i?void 0:i.toLocaleLowerCase())===(null===(a=t.data)||void 0===a?void 0:a.type.toLocaleLowerCase()))}{const n=null===(o=null===(i=null==e?void 0:e.filter)||void 0===i?void 0:i.event)||void 0===o?void 0:o.toLocaleLowerCase();return"*"===n||n===(null===(l=null==t?void 0:t.event)||void 0===l?void 0:l.toLocaleLowerCase())}}return e.type.toLocaleLowerCase()===s}).map(e=>{if("object"==typeof u&&"ids"in u){const e=u.data,{schema:t,table:n,commit_timestamp:r,type:a,errors:s}=e,i={schema:t,table:n,commit_timestamp:r,eventType:a,new:{},old:{},errors:s};u=Object.assign(Object.assign({},i),this._getPayloadRecords(e))}e.callback(u,n)})}_isClosed(){return this.state===cb.closed}_isJoined(){return this.state===cb.joined}_isJoining(){return this.state===cb.joining}_isLeaving(){return this.state===cb.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,t,n){const r=e.toLocaleLowerCase(),a={type:r,filter:t,callback:n};return this.bindings[r]?this.bindings[r].push(a):this.bindings[r]=[a],this}_off(e,t){const n=e.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(e=>{var r;return!((null===(r=e.type)||void 0===r?void 0:r.toLocaleLowerCase())===n&&$b.isEqual(e.filter,t))})),this}static isEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(db.close,{},e)}_onError(e){this._on(db.error,{},t=>e(t))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=cb.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const t={new:{},old:{}};return"INSERT"!==e.type&&"UPDATE"!==e.type||(t.new=xb(e.columns,e.record)),"UPDATE"!==e.type&&"DELETE"!==e.type||(t.old=xb(e.columns,e.old_record)),t}}const Ub=()=>{},Vb=25e3,Bb=10,Wb=100,qb=[1e3,2e3,5e3,1e4];class Kb{constructor(e,t){var n;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=ib,this.transport=null,this.heartbeatIntervalMs=Vb,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Ub,this.ref=0,this.reconnectTimer=null,this.logger=Ub,this.conn=null,this.sendBuffer=[],this.serializer
2=new vb,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>se(async()=>{const{default:e}=await Promise.resolve().then(()=>Ev);return{default:e}},void 0).then(({default:t})=>t(...e)).catch(e=>{throw new Error(`Failed to load @supabase/node-fetch: ${e.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):fetch),(...e)=>t(...e)},!(null===(n=null==t?void 0:t.params)||void 0===n?void 0:n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=t.params.apikey,this.endPoint=`${e}/${fb.websocket}`,this.httpEndpoint=Ib(e),this._initializeOptions(t),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(null==t?void 0:t.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||null!==this.conn&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=sb.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const t=e.message;if(t.includes("Node.js"))throw new Error(`${t}\n\nTo use Realtime in Node.js, you need to provide a WebSocket implementation:\n\nOption 1: Use Node.js 22+ which has native WebSocket support\nOption 2: Install and provide the "ws" package:\n\n npm install ws\n\n import ws from "ws"\n const client = new RealtimeClient(url, {\n ...options,\n transport: ws\n })`);throw new Error(`WebSocket not available: ${t}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:"1.0.0"}))}disconnect(e,t){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},e?this.conn.close(e,null!=t?t:""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const t=await e.unsubscribe();return 0===this.channels.length&&this.disconnect(),t}async removeAllChannels(){const e=await Promise.all(this.channels.map(e=>e.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,t,n){this.logger(e,t,n)}connectionState(){switch(this.conn&&this.conn.readyState){case ob.connecting:return pb.Connecting;case ob.open:return pb.Open;case ob.closing:return pb.Closing;default:return pb.Closed}}isConnected(){return this.connectionState()===pb.Open}isConnecting(){return"connecting"===this._connectionState}isDisconnecting(){return"disconnecting"===this._connectionState}channel(e,t={config:{}}){const n=`realtime:${e}`,r=this.getChannels().find(e=>e.topic===n);if(r)return r;{const n=new $b(`realtime:${e}`,t,this);return this.channels.push(n),n}}push(e){const{topic:t,event:n,payload:r,ref:a}=e,s=()=>{this.encode(e,e=>{var t;null===(t=this.conn)||void 0===t||t.send(e)})};this.log("push",`${t} ${n} (${a})`,r),this.isConnected()?s():this.sendBuffer.push(s)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var e;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(t){this.log("error","error in heartbeat callback",t)}return this._wasManualDisconnect=!1,null===(e=this.conn)||void 0===e||e.close(1e3,"heartbeat timeout"),void setTimeout(()=>{var e;this.isConnected()||null===(e=this.reconnectTimer)||void 0===e||e.scheduleTimeout()},Wb)}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(t){this.log("error","error in heartbeat callback",t)}this._setAuthSafely("heartbeat")}else try{this.heartbeatCallback("disconnected")}catch(t){this.log("error","error in heartbeat callback",t)}}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>
20&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t._isJoined()||t._isJoining()));t&&(this.log("transport",`leaving duplicate topic "${e}"`),t.unsubscribe())}_remove(e){this.channels=this.channels.filter(t=>t.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,e=>{if("phoenix"===e.topic&&"phx_reply"===e.event)try{this.heartbeatCallback("ok"===e.payload.status?"ok":"error")}catch(o){this.log("error","error in heartbeat callback",o)}e.ref&&e.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:t,event:n,payload:r,ref:a}=e,s=a?`(${a})`:"",i=r.status||"";this.log("receive",`${i} ${t} ${n} ${s}`.trim(),r),this.channels.filter(e=>e._isMember(t)).forEach(e=>e._trigger(n,r,a)),this._triggerStateCallbacks("message",e)})}_clearTimer(e){var t;"heartbeat"===e&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):"reconnect"===e&&(null===(t=this.reconnectTimer)||void 0===t||t.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=e=>{this.log("worker","worker error",e.message),this.workerRef.terminate()},this.workerRef.onmessage=e=>{"keepAlive"===e.data.event&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var t;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||null===(t=this.reconnectTimer)||void 0===t||t.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(db.error))}_appendParams(e,t){if(0===Object.keys(t).length)return e;const n=e.match(/\?/)?"&":"?";return`${e}${n}${new URLSearchParams(t)}`}_workerObjectUrl(e){let t;if(e)t=e;else{const e=new Blob(['\n addEventListener("message", (e) => {\n if (e.data.event === "start") {\n setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);\n }\n });'],{type:"application/javascript"});t=URL.createObjectURL(e)}return t}_setConnectionState(e,t=!1){this._connectionState=e,"connecting"===e?this._wasManualDisconnect=!1:"disconnecting"===e&&(this._wasManualDisconnect=t)}async _performAuth(e=null){let t;t=e||(this.accessToken?await this.accessToken():this.accessTokenValue),this.accessTokenValue!=t&&(this.accessTokenValue=t,this.channels.forEach(e=>{const n={access_token:t,version:"realtime-js/2.75.0"};t&&e.updateJoinPayload(n),e.joinedOnce&&e._isJoined()&&e._push(db.access_token,{access_token:t})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this.setAuth().catch(t=>{this.log("error",`error setting auth in ${e}`,t)})}_triggerStateCallbacks(e,t){try{this.stateChangeCallbacks[e].forEach(n=>{try{n(t)}catch(r){this.log("error",`error in ${e} callback`,r)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new bb(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Bb)},this.reconnectAfterMs)}_initializeOptions(e){var t,n,r,a,s,i,o,l,c;if(this.transport=null!==(t=null==e?void 0:e.transport)&&void 0!==t?t:null,this.timeout=null!==(n=null==e?void 0:e.timeout)&&void 0!==n?n:ib,this.heartbeatIntervalMs=null!==(r=null==e?void 0:e.heartbeatIntervalMs)&&void 0!==r?r:Vb,this.worker=null!==(a=null==e?void 0:e.worker)&&void 0!==a&&a,this.accessToken=null!==(s=null==e?void 0:e.accessToken)&&void 0!==s?s:null,this.heartbeatCallback=null!==(i=null==e?void 0:e.heartbeatCallback)&&void 0!==i?i:Ub,(null==e?void 0:e.params)&&(this.params=e.params),(null==e?void 0:e.logger)&&(this.logger=e.logger),((null==e?void 0:e.logLevel)||(null==e?void 0:e.log_level))&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=null!==(o=null==e?void 0:e.reconnectAfterMs)&&void 0!==o?o:e=>qb[e-1]||1e4,this.encode=null!==(l=null==e?void 0:e.encode)&&void 0!==l?l:(e,t)=>
2t(JSON.stringify(e)),this.decode=null!==(c=null==e?void 0:e.decode)&&void 0!==c?c:this.serializer.decode.bind(this.serializer),this.worker){if("undefined"!=typeof window&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=null==e?void 0:e.workerUrl}}}class Hb extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function Gb(e){return"object"==typeof e&&null!==e&&"__isStorageError"in e}class Zb extends Hb{constructor(e,t,n){super(e),this.name="StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class Jb extends Hb{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}}var Qb=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(t){s(t)}}function o(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};const Yb=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>se(async()=>{const{default:e}=await Promise.resolve().then(()=>Ev);return{default:e}},void 0).then(({default:t})=>t(...e)):fetch),(...e)=>t(...e)},Xb=e=>{if(Array.isArray(e))return e.map(e=>Xb(e));if("function"==typeof e||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([e,n])=>{const r=e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace(/[-_]/g,""));t[r]=Xb(n)}),t};var ex=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(t){s(t)}}function o(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};const tx=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),nx=(e,t,n)=>ex(void 0,void 0,void 0,function*(){const r=yield Qb(void 0,void 0,void 0,function*(){return"undefined"==typeof Response?(yield se(()=>Promise.resolve().then(()=>Ev),void 0)).Response:Response});e instanceof r&&!(null==n?void 0:n.noResolveJson)?e.json().then(n=>{const r=e.status||500,a=(null==n?void 0:n.statusCode)||r+"";t(new Zb(tx(n),r,a))}).catch(e=>{t(new Jb(tx(e),e))}):t(new Jb(tx(e),e))}),rx=(e,t,n,r)=>{const a={method:e,headers:(null==t?void 0:t.headers)||{}};return"GET"!==e&&r?((e=>{if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)})(r)?(a.headers=Object.assign({"Content-Type":"application/json"},null==t?void 0:t.headers),a.body=JSON.stringify(r)):a.body=r,(null==t?void 0:t.duplex)&&(a.duplex=t.duplex),Object.assign(Object.assign({},a),n)):a};function ax(e,t,n,r,a,s){return ex(this,void 0,void 0,function*(){return new Promise((i,o)=>{e(n,rx(t,r,a,s)).then(e=>{if(!e.ok)throw e;return(null==r?void 0:r.noResolveJson)?e:e.json()}).then(e=>i(e)).catch(e=>nx(e,o,r))})})}function sx(e,t,n,r){return ex(this,void 0,void 0,function*(){return ax(e,"GET",t,n,r)})}function ix(e,t,n,r,a){return ex(this,void 0,void 0,function*(){return ax(e,"POST",t,r,a,n)})}function ox(e,t,n,r,a){return ex(this,void 0,void 0,function*(){return ax(e,"PUT",t,r,a,n)})}function lx(e,t,n,r,a){return ex(this,void 0,void 0,function*(){return ax(e,"DELETE",t,r,a,n)})}var cx=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(t){s(t)}}function o(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};class ux{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}execute(){return cx(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Gb(e))return{data:null,error:e};throw e}})}}var dx=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(t){s(t)}}function o(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};class hx{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}asStream(){return new ux(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.execute().then(e,t)}execute(){return dx(this,void 0,void 0,function*(){try{const e=yield this.downloadFn();return{data:yield e.blob(),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Gb(e))return{data:null,error:e};throw e}})}}
2var fx=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(t){s(t)}}function o(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};const px={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},mx={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class gx{constructor(e,t={},n,r){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.bucketId=n,this.fetch=Yb(r)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(e,t,n,r){return fx(this,void 0,void 0,function*(){try{let a;const s=Object.assign(Object.assign({},mx),r);let i=Object.assign(Object.assign({},this.headers),"POST"===e&&{"x-upsert":String(s.upsert)});const o=s.metadata;"undefined"!=typeof Blob&&n instanceof Blob?(a=new FormData,a.append("cacheControl",s.cacheControl),o&&a.append("metadata",this.encodeMetadata(o)),a.append("",n)):"undefined"!=typeof FormData&&n instanceof FormData?(a=n,a.append("cacheControl",s.cacheControl),o&&a.append("metadata",this.encodeMetadata(o))):(a=n,i["cache-control"]=`max-age=${s.cacheControl}`,i["content-type"]=s.contentType,o&&(i["x-metadata"]=this.toBase64(this.encodeMetadata(o)))),(null==r?void 0:r.headers)&&(i=Object.assign(Object.assign({},i),r.headers));const l=this._removeEmptyFolders(t),c=this._getFinalPath(l),u=yield("PUT"==e?ox:ix)(this.fetch,`${this.url}/object/${c}`,a,Object.assign({headers:i},(null==s?void 0:s.duplex)?{duplex:s.duplex}:{}));return{data:{path:l,id:u.Id,fullPath:u.Key},error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Gb(a))return{data:null,error:a};throw a}})}upload(e,t,n){return fx(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,t,n)})}uploadToSignedUrl(e,t,n,r){return fx(this,void 0,void 0,function*(){const a=this._removeEmptyFolders(e),s=this._getFinalPath(a),i=new URL(this.url+`/object/upload/sign/${s}`);i.searchParams.set("token",t);try{let e;const t=Object.assign({upsert:mx.upsert},r),s=Object.assign(Object.assign({},this.headers),{"x-upsert":String(t.upsert)});"undefined"!=typeof Blob&&n instanceof Blob?(e=new FormData,e.append("cacheControl",t.cacheControl),e.append("",n)):"undefined"!=typeof FormData&&n instanceof FormData?(e=n,e.append("cacheControl",t.cacheControl)):(e=n,s["cache-control"]=`max-age=${t.cacheControl}`,s["content-type"]=t.contentType);return{data:{path:a,fullPath:(yield ox(this.fetch,i.toString(),e,{headers:s})).Key},error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Gb(o))return{data:null,error:o};throw o}})}createSignedUploadUrl(e,t){return fx(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e);const r=Object.assign({},this.headers);(null==t?void 0:t.upsert)&&(r["x-upsert"]="true");const a=yield ix(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:r}),s=new URL(this.url+a.url),i=s.searchParams.get("token");if(!i)throw new Hb("No token returned by API");return{data:{signedUrl:s.toString(),path:e,token:i},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Gb(n))return{data:null,error:n};throw n}})}update(e,t,n){return fx(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,t,n)})}move(e,t,n){return fx(this,void 0,void 0,function*(){try{return{data:yield ix(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t,de
2stinationBucket:null==n?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Gb(r))return{data:null,error:r};throw r}})}copy(e,t,n){return fx(this,void 0,void 0,function*(){try{return{data:{path:(yield ix(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t,destinationBucket:null==n?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Gb(r))return{data:null,error:r};throw r}})}createSignedUrl(e,t,n){return fx(this,void 0,void 0,function*(){try{let r=this._getFinalPath(e),a=yield ix(this.fetch,`${this.url}/object/sign/${r}`,Object.assign({expiresIn:t},(null==n?void 0:n.transform)?{transform:n.transform}:{}),{headers:this.headers});const s=(null==n?void 0:n.download)?`&download=${!0===n.download?"":n.download}`:"";return a={signedUrl:encodeURI(`${this.url}${a.signedURL}${s}`)},{data:a,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Gb(r))return{data:null,error:r};throw r}})}createSignedUrls(e,t,n){return fx(this,void 0,void 0,function*(){try{const r=yield ix(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:t,paths:e},{headers:this.headers}),a=(null==n?void 0:n.download)?`&download=${!0===n.download?"":n.download}`:"";return{data:r.map(e=>Object.assign(Object.assign({},e),{signedUrl:e.signedURL?encodeURI(`${this.url}${e.signedURL}${a}`):null})),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Gb(r))return{data:null,error:r};throw r}})}download(e,t){const n=void 0!==(null==t?void 0:t.transform)?"render/image/authenticated":"object",r=this.transformOptsToQueryString((null==t?void 0:t.transform)||{}),a=r?`?${r}`:"",s=this._getFinalPath(e);return new hx(()=>sx(this.fetch,`${this.url}/${n}/${s}${a}`,{headers:this.headers,noResolveJson:!0}),this.shouldThrowOnError)}info(e){return fx(this,void 0,void 0,function*(){const t=this._getFinalPath(e);try{const e=yield sx(this.fetch,`${this.url}/object/info/${t}`,{headers:this.headers});return{data:Xb(e),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Gb(n))return{data:null,error:n};throw n}})}exists(e){return fx(this,void 0,void 0,function*(){const t=this._getFinalPath(e);try{return yield function(e,t,n,r){return ex(this,void 0,void 0,function*(){return ax(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}(this.fetch,`${this.url}/object/${t}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Gb(n)&&n instanceof Jb){const e=n.originalError;if([400,404].includes(null==e?void 0:e.status))return{data:!1,error:n}}throw n}})}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],a=(null==t?void 0:t.download)?`download=${!0===t.download?"":t.download}`:"";""!==a&&r.push(a);const s=void 0!==(null==t?void 0:t.transform)?"render/image":"object",i=this.transformOptsToQueryString((null==t?void 0:t.transform)||{});""!==i&&r.push(i);let o=r.join("&");return""!==o&&(o=`?${o}`),{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}${o}`)}}}remove(e){return fx(this,void 0,void 0,function*(){try{return{data:yield lx(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Gb(t))return{data:null,error:t};throw t}})}list(e,t,n){return fx(this,void 0,void 0,function*(){try{const r=Object.assign(Object.assign(Object.assign({},px),t),{prefix:e||""});return{data:yield ix(this.fetch,`${this.url}/object/list/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Gb(r))return{data:null,error:r};throw r}})}listV2(e,t){return fx(this,void 0,void 0,function*(){try{const n=Object.assign({},e);return{data:yield ix(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,n,{headers:this.headers},t),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Gb(n))return{data:null,error:n};throw n}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return"undefined"!=typeof Buffer?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}}const yx={"X-Client-Info":"storage-js/2.75.0"};
2var vx=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(t){s(t)}}function o(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};class bx{constructor(e,t={},n,r){this.shouldThrowOnError=!1;const a=new URL(e);if(null==r?void 0:r.useNewHostname){/supabase\.(co|in|red)$/.test(a.hostname)&&!a.hostname.includes("storage.supabase.")&&(a.hostname=a.hostname.replace("supabase.","storage.supabase."))}this.url=a.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},yx),t),this.fetch=Yb(n)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return vx(this,void 0,void 0,function*(){try{return{data:yield sx(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Gb(e))return{data:null,error:e};throw e}})}getBucket(e){return vx(this,void 0,void 0,function*(){try{return{data:yield sx(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Gb(t))return{data:null,error:t};throw t}})}createBucket(e){return vx(this,arguments,void 0,function*(e,t={public:!1}){try{return{data:yield ix(this.fetch,`${this.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Gb(n))return{data:null,error:n};throw n}})}updateBucket(e,t){return vx(this,void 0,void 0,function*(){try{return{data:yield ox(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Gb(n))return{data:null,error:n};throw n}})}emptyBucket(e){return vx(this,void 0,void 0,function*(){try{return{data:yield ix(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Gb(t))return{data:null,error:t};throw t}})}deleteBucket(e){return vx(this,void 0,void 0,function*(){try{return{data:yield lx(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Gb(t))return{data:null,error:t};throw t}})}}class xx extends bx{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new gx(this.url,this.headers,e,this.fetch)}}let wx="";wx="undefined"!=typeof Deno?"deno":"undefined"!=typeof document?"web":"undefined"!=typeof navigator&&"ReactNative"===navigator.product?"react-native":"node";const kx={headers:{"X-Client-Info":`supabase-js-${wx}/2.75.0`}},jx={schema:"public"},_x={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Sx={};var Ax=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(t){s(t)}}function o(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};const Ex=(e,t,n)=>{const r=(e=>{let t;return t=e||("undefined"==typeof fetch?jv:fetch),(...e)=>t(...e)})(n),a="undefined"==typeof Headers?_v:Headers;return(n,s)=>Ax(void 0,void 0,void 0,function*(){var i;const o=null!==(i=yield t())&&void 0!==i?i:e;let l=new a(null==s?void 0:s.headers);return l.has("apikey")||l.set("apikey",e),l.has("Authorization")||l.set("Authorization",`Bearer ${o}`),r(n,Object.assign(Object.assign({},s),{headers:l}))})};var Nx=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(t){s(t)}}function o(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};const Ix="2.75.0",Tx=3e4,Cx=9e4,Ox={"X-Client-Info":`gotrue-js/${Ix}`},Px="X-Supabase-Api-Version",Rx={timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"},Fx=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i;
2class Dx extends Error{constructor(e,t,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=t,this.code=n}}function Lx(e){return"object"==typeof e&&null!==e&&"__isAuthError"in e}class Mx extends Dx{constructor(e,t,n){super(e,t,n),this.name="AuthApiError",this.status=t,this.code=n}}class zx extends Dx{constructor(e,t){super(e),this.name="AuthUnknownError",this.originalError=t}}class $x extends Dx{constructor(e,t,n,r){super(e,n,r),this.name=t,this.status=n}}class Ux extends $x{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}class Vx extends $x{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Bx extends $x{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Wx extends $x{constructor(e,t=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class qx extends $x{constructor(e,t=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Kx extends $x{constructor(e,t){super(e,"AuthRetryableFetchError",t,void 0)}}function Hx(e){return Lx(e)&&"AuthRetryableFetchError"===e.name}class Gx extends $x{constructor(e,t,n){super(e,"AuthWeakPasswordError",t,"weak_password"),this.reasons=n}}class Zx extends $x{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Jx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Qx=" \t\n\r=".split(""),Yx=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Qx.length;t+=1)e[Qx[t].charCodeAt(0)]=-2;for(let t=0;t<Jx.length;t+=1)e[Jx[t].charCodeAt(0)]=t;return e})();function Xx(e,t,n){if(null!==e)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const e=t.queue>>t.queuedBits-6&63;n(Jx[e]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const e=t.queue>>t.queuedBits-6&63;n(Jx[e]),t.queuedBits-=6}}function ew(e,t,n){const r=Yx[e];if(!(r>-1)){if(-2===r)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8}function tw(e){const t=[],n=e=>{t.push(String.fromCodePoint(e))},r={utf8seq:0,codepoint:0},a={queue:0,queuedBits:0},s=e=>{!function(e,t,n){if(0===t.utf8seq){if(e<=127)return void n(e);for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(2===t.utf8seq)t.codepoint=31&e;else if(3===t.utf8seq)t.codepoint=15&e;else{if(4!==t.utf8seq)throw new Error("Invalid UTF-8 sequence");t.codepoint=7&e}t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|63&e,t.utf8seq-=1,0===t.utf8seq&&n(t.codepoint)}}(e,r,n)};for(let i=0;i<e.length;i+=1)ew(e.charCodeAt(i),a,s);return t.join("")}function nw(e,t){if(!(e<=127)){if(e<=2047)return t(192|e>>6),void t(128|63&e);if(e<=65535)return t(224|e>>12),t(128|e>>6&63),void t(128|63&e);if(e<=1114111)return t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),void t(128|63&e);throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}t(e)}function rw(e){const t=[],n={queue:0,queuedBits:0},r=e=>{t.push(e)};for(let a=0;a<e.length;a+=1)ew(e.charCodeAt(a),n,r);return new Uint8Array(t)}function aw(e){const t=[];return function(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const t=1024*(r-55296)&65535;r=65536+(e.charCodeAt(n+1)-56320&65535|t),n+=1}nw(r,t)}}(e,e=>t.push(e)),new Uint8Array(t)}function sw(e){const t=[],n={queue:0,queuedBits:0},r=e=>{t.push(e)};return e.forEach(e=>Xx(e,n,r)),Xx(null,n,r),t.join("")}const iw=()=>"undefined"!=typeof window&&"undefined"!=typeof document,ow={tested:!1,writable:!1},lw=()=>{if(!iw())return!1;try{if("object"!=typeof globalThis.localStorage)return!1}catch(t){return!1}if(ow.tested)return ow.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ow.tested=!0,ow.writable=!0}catch(t){ow.tested=!0,ow.writable=!1}return ow.writable};const cw=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>se(async()=>{const{default:e}=await Promise.resolve().then(()=>Ev);return{default:e}},void 0).then(({default:t})=>t(...e)):fetch),(...e)=>t(...e)},uw=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},dw=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch(r){return n}},hw=async(e,t)=>{await e.removeItem(t)};class fw{constructor(){this.promise=new fw.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}}function pw(e){const t=e.split(".");if(3!==t.length)throw new Zx("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!Fx.test(t[n]))throw new Zx("JWT not in base64url format");return{header:JSON.parse(tw(t[0])),payload:JSON.parse(tw(t[1])),signature:rw(t[2]),raw:{header:t[0],payload:t[1]}}}function mw(e){return("0"+e.toString(16)).substr(-2)}async function gw(e){if(!("undefined"!=typeof crypto&&void 0!==crypto.subtle&&"undefined"!=typeof TextEncoder))return console.warn("WebCrypto API is not supported. Code
2challenge method will default to use plain instead of sha256."),e;const t=await async function(e){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),r=new Uint8Array(n);return Array.from(r).map(e=>String.fromCharCode(e)).join("")}(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function yw(e,t,n=!1){const r=function(){const e=new Uint32Array(56);if("undefined"==typeof crypto){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",t=e.length;let n="";for(let r=0;r<56;r++)n+=e.charAt(Math.floor(Math.random()*t));return n}return crypto.getRandomValues(e),Array.from(e,mw).join("")}();let a=r;n&&(a+="/PASSWORD_RECOVERY"),await uw(e,`${t}-code-verifier`,a);const s=await gw(r);return[s,r===s?"plain":"s256"]}fw.promiseConstructor=Promise;const vw=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;const bw=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function xw(e){if(!bw.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function ww(){return new Proxy({},{get:(e,t)=>{if("__isUserNotAvailableProxy"===t)return!0;if("symbol"==typeof t){const e=t.toString();if("Symbol(Symbol.toPrimitive)"===e||"Symbol(Symbol.toStringTag)"===e||"Symbol(util.inspect.custom)"===e)return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${t}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,t)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,t)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function kw(e){return JSON.parse(JSON.stringify(e))}const jw=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),_w=[502,503,504];async function Sw(e){var t,n;if(!("object"==typeof(n=e)&&null!==n&&"status"in n&&"ok"in n&&"json"in n&&"function"==typeof n.json))throw new Kx(jw(e),0);if(_w.includes(e.status))throw new Kx(jw(e),e.status);let r,a;try{r=await e.json()}catch(i){throw new zx(jw(i),i)}const s=function(e){const t=e.headers.get(Px);if(!t)return null;if(!t.match(vw))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch(i){return null}}(e);if(s&&s.getTime()>=Rx.timestamp&&"object"==typeof r&&r&&"string"==typeof r.code?a=r.code:"object"==typeof r&&r&&"string"==typeof r.error_code&&(a=r.error_code),a){if("weak_password"===a)throw new Gx(jw(r),e.status,(null===(t=r.weak_password)||void 0===t?void 0:t.reasons)||[]);if("session_not_found"===a)throw new Ux}else if("object"==typeof r&&r&&"object"==typeof r.weak_password&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((e,t)=>e&&"string"==typeof t,!0))throw new Gx(jw(r),e.status,r.weak_password.reasons);throw new Mx(jw(r),e.status||500,a)}async function Aw(e,t,n,r){var a;const s=Object.assign({},null==r?void 0:r.headers);s[Px]||(s[Px]=Rx.name),(null==r?void 0:r.jwt)&&(s.Authorization=`Bearer ${r.jwt}`);const i=null!==(a=null==r?void 0:r.query)&&void 0!==a?a:{};(null==r?void 0:r.redirectTo)&&(i.redirect_to=r.redirectTo);const o=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await async function(e,t,n,r,a,s){const i=((e,t,n,r)=>{const a={method:e,headers:(null==t?void 0:t.headers)||{}};return"GET"===e?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},null==t?void 0:t.headers),a.body=JSON.stringify(r),Object.assign(Object.assign({},a),n))})(t,r,a,s);let o;try{o=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new Kx(jw(l),0)}o.ok||await Sw(o);if(null==r?void 0:r.noResolveJson)return o;try{return await o.json()}catch(l){await Sw(l)}}(e,t,n+o,{headers:s,noResolveJson:null==r?void 0:r.noResolveJson},{},null==r?void 0:r.body);return(null==r?void 0:r.xform)?null==r?void 0:r.xform(l):{data:Object.assign({},l),error:null}}function Ew(e){var t;let n=null;var r;(function(e){return e.access_token&&e.refresh_token&&e.expires_in})(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=(r=e.expires_in,Math.round(Date.now()/1e3)+r)));return{data:{session:n,user:null!==(t=e.user)&&void 0!==t?t:e},error:null}}function Nw(e){const t=Ew(e);return!t.error&&e.weak_password&&"object"==typeof e.weak_password&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&"string"==typeof e.weak_password.message&&e.weak_password.reasons.reduce((e,t)=>
2e&&"string"==typeof t,!0)&&(t.data.weak_password=e.weak_password),t}function Iw(e){var t;return{data:{user:null!==(t=e.user)&&void 0!==t?t:e},error:null}}function Tw(e){return{data:e,error:null}}function Cw(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:a,verification_type:s}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]);return{data:{properties:{action_link:t,email_otp:n,hashed_token:r,redirect_to:a,verification_type:s},user:Object.assign({},i)},error:null}}function Ow(e){return e}const Pw=["global","local","others"];class Rw{constructor({url:e="",headers:t={},fetch:n}){this.url=e,this.headers=t,this.fetch=cw(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(e,t=Pw[0]){if(Pw.indexOf(t)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Pw.join(", ")}`);try{return await Aw(this.fetch,"POST",`${this.url}/logout?scope=${t}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Lx(n))return{data:null,error:n};throw n}}async inviteUserByEmail(e,t={}){try{return await Aw(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:t.data},headers:this.headers,redirectTo:t.redirectTo,xform:Iw})}catch(n){if(Lx(n))return{data:{user:null},error:n};throw n}}async generateLink(e){try{const{options:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["options"]),r=Object.assign(Object.assign({},n),t);return"newEmail"in n&&(r.new_email=null==n?void 0:n.newEmail,delete r.newEmail),await Aw(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:r,headers:this.headers,xform:Cw,redirectTo:null==t?void 0:t.redirectTo})}catch(t){if(Lx(t))return{data:{properties:null,user:null},error:t};throw t}}async createUser(e){try{return await Aw(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Iw})}catch(t){if(Lx(t))return{data:{user:null},error:t};throw t}}async listUsers(e){var t,n,r,a,s,i,o;try{const l={nextPage:null,lastPage:0,total:0},c=await Aw(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:null!==(n=null===(t=null==e?void 0:e.page)||void 0===t?void 0:t.toString())&&void 0!==n?n:"",per_page:null!==(a=null===(r=null==e?void 0:e.perPage)||void 0===r?void 0:r.toString())&&void 0!==a?a:""},xform:Ow});if(c.error)throw c.error;const u=await c.json(),d=null!==(s=c.headers.get("x-total-count"))&&void 0!==s?s:0,h=null!==(o=null===(i=c.headers.get("link"))||void 0===i?void 0:i.split(","))&&void 0!==o?o:[];return h.length>0&&(h.forEach(e=>{const t=parseInt(e.split(";")[0].split("=")[1].substring(0,1)),n=JSON.parse(e.split(";")[1].split("=")[1]);l[`${n}Page`]=t}),l.total=parseInt(d)),{data:Object.assign(Object.assign({},u),l),error:null}}catch(l){if(Lx(l))return{data:{users:[]},error:l};throw l}}async getUserById(e){xw(e);try{return await Aw(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Iw})}catch(t){if(Lx(t))return{data:{user:null},error:t};throw t}}async updateUserById(e,t){xw(e);try{return await Aw(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:t,headers:this.headers,xform:Iw})}catch(n){if(Lx(n))return{data:{user:null},error:n};throw n}}async deleteUser(e,t=!1){xw(e);
2try{return await Aw(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:t},xform:Iw})}catch(n){if(Lx(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){xw(e.userId);try{const{data:t,error:n}=await Aw(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:e=>({data:{factors:e},error:null})});return{data:t,error:n}}catch(t){if(Lx(t))return{data:null,error:t};throw t}}async _deleteFactor(e){xw(e.userId),xw(e.id);try{return{data:await Aw(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(t){if(Lx(t))return{data:null,error:t};throw t}}async _listOAuthClients(e){var t,n,r,a,s,i,o;try{const l={nextPage:null,lastPage:0,total:0},c=await Aw(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:null!==(n=null===(t=null==e?void 0:e.page)||void 0===t?void 0:t.toString())&&void 0!==n?n:"",per_page:null!==(a=null===(r=null==e?void 0:e.perPage)||void 0===r?void 0:r.toString())&&void 0!==a?a:""},xform:Ow});if(c.error)throw c.error;const u=await c.json(),d=null!==(s=c.headers.get("x-total-count"))&&void 0!==s?s:0,h=null!==(o=null===(i=c.headers.get("link"))||void 0===i?void 0:i.split(","))&&void 0!==o?o:[];return h.length>0&&(h.forEach(e=>{const t=parseInt(e.split(";")[0].split("=")[1].substring(0,1)),n=JSON.parse(e.split(";")[1].split("=")[1]);l[`${n}Page`]=t}),l.total=parseInt(d)),{data:Object.assign(Object.assign({},u),l),error:null}}catch(l){if(Lx(l))return{data:{clients:[]},error:l};throw l}}async _createOAuthClient(e){try{return await Aw(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:e=>({data:e,error:null})})}catch(t){if(Lx(t))return{data:null,error:t};throw t}}async _getOAuthClient(e){try{return await Aw(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(t){if(Lx(t))return{data:null,error:t};throw t}}async _deleteOAuthClient(e){try{return await Aw(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(t){if(Lx(t))return{data:null,error:t};throw t}}async _regenerateOAuthClientSecret(e){try{return await Aw(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(t){if(Lx(t))return{data:null,error:t};throw t}}}function Fw(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Dw=!!(globalThis&&lw()&&globalThis.localStorage&&"true"===globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug"));
2class Lw extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class Mw extends Lw{}async function zw(e,t,n){const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort()},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,0===t?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async r=>{if(!r){if(0===t)throw new Mw(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Dw)try{const e=await globalThis.navigator.locks.query();JSON.stringify(e,null," ")}catch(a){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",a)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}Dw&&r.name;try{return await n()}finally{Dw&&r.name}}))}function $w(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function Uw(e){const t=(new TextEncoder).encode(e);return"0x"+Array.from(t,e=>e.toString(16).padStart(2,"0")).join("")}class Vw extends Error{constructor({message:e,code:t,cause:n,name:r}){var a;super(e,{cause:n}),this.__isWebAuthnError=!0,this.name=null!==(a=null!=r?r:n instanceof Error?n.name:void 0)&&void 0!==a?a:"Unknown Error",this.code=t}}class Bw extends Vw{constructor(e,t){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t,message:e}),this.name="WebAuthnUnknownError",this.originalError=t}}function Ww({error:e,options:t}){var n,r,a;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new Vw({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("ConstraintError"===e.name){if(!0===(null===(n=s.authenticatorSelection)||void 0===n?void 0:n.requireResidentKey))return new Vw({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if("conditional"===t.mediation&&"required"===(null===(r=s.authenticatorSelection)||void 0===r?void 0:r.userVerification))return new Vw({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if("required"===(null===(a=s.authenticatorSelection)||void 0===a?void 0:a.userVerification))return new Vw({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if("InvalidStateError"===e.name)return new Vw({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if("NotAllowedError"===e.name)return new Vw({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if("NotSupportedError"===e.name){return 0===s.pubKeyCredParams.filter(e=>"public-key"===e.type).length?new Vw({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Vw({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e})}if("SecurityError"===e.name){const t=window.location.hostname;if(!Yw(t))return new Vw({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(s.rp.id!==t)return new Vw({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("TypeError"===e.name){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new Vw({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if("UnknownError"===e.name)return new Vw({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ER
2ROR",cause:e})}return new Vw({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function qw({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new Vw({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if("NotAllowedError"===e.name)return new Vw({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if("SecurityError"===e.name){const t=window.location.hostname;if(!Yw(t))return new Vw({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(n.rpId!==t)return new Vw({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("UnknownError"===e.name)return new Vw({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Vw({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}var Kw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};const Hw=new class{createNewAbortSignal(){if(this.controller){const e=new Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}};function Gw(e){if(!e)throw new Error("Credential creation options are required");if("undefined"!=typeof PublicKeyCredential&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&"function"==typeof PublicKeyCredential.parseCreationOptionsFromJSON)return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,a=Kw(e,["challenge","user","excludeCredentials"]),s=rw(t).buffer,i=Object.assign(Object.assign({},n),{id:rw(n.id).buffer}),o=Object.assign(Object.assign({},a),{challenge:s,user:i});if(r&&r.length>0){o.excludeCredentials=new Array(r.length);for(let e=0;e<r.length;e++){const t=r[e];o.excludeCredentials[e]=Object.assign(Object.assign({},t),{id:rw(t.id).buffer,type:t.type||"public-key",transports:t.transports})}}return o}function Zw(e){if(!e)throw new Error("Credential request options are required");if("undefined"!=typeof PublicKeyCredential&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&"function"==typeof PublicKeyCredential.parseRequestOptionsFromJSON)return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Kw(e,["challenge","allowCredentials"]),a=rw(t).buffer,s=Object.assign(Object.assign({},r),{challenge:a});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let e=0;e<n.length;e++){const t=n[e];s.allowCredentials[e]=Object.assign(Object.assign({},t),{id:rw(t.id).buffer,type:t.type||"public-key",transports:t.transports})}}return s}function Jw(e){var t;if("toJSON"in e&&"function"==typeof e.toJSON)return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:sw(new Uint8Array(e.response.attestationObject)),clientDataJSON:sw(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:null!==(t=n.authenticatorAttachment)&&void 0!==t?t:void 0}}function Qw(e){var t;if("toJSON"in e&&"function"==typeof e.toJSON)return e.toJSON();const n=e,r=e.getClientExtensionResults(),a=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:sw(new Uint8Array(a.authenticatorData)),clientDataJSON:sw(new Uint8Array(a.clientDataJSON)),signature:sw(new Uint8Array(a.signature)),userHandle:a.userHandle?sw(new Uint8Array(a.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:null!==(t=n.authenticatorAttachment)&&void 0!==t?t:void 0}}function Yw(e){return"localhost"===e||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Xw(){var e,t;return!!(iw()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&"function"==typeof(null===(e=null===navigator||void 0===navigator?void 0:navigator.credentials)||void 0===e?void 0:e.create)&&"function"==typeof(null===(t=null===navigator||void 0===navigator?void 0:navigator.credentials)||void 0===t?void 0:t.get))}const ek={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"none"},tk={userVerification:"preferred",hints:["security-key"]};function nk(...e){const t=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),n=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),r={};for(const a of e)if(a)for(const e in a){const s=a[e];if(void 0!==s)if(Array.isArray(s))r[e]=s;else if(n(s))r[e]=s;else if(t(s)){const n=r[e];t(n)?r[e]=nk(n,s):r[e]=nk(s)}else r[e]=s}return r}class rk{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:t,friendlyName:n,signal:r},a){try{const{data:s,error:i}=await this.client.mfa.challenge({factorId:e,webauthn:t});if(!s)return{data:null,error:i};const o=null!=r?r:Hw.createNewAbortSignal();if("create"===s.webauthn.type){const{user:e}=s.webauthn.credential_options.publicKey;e.name||(e.name=`${e.id}:${n}
2`),e.displayName||(e.displayName=e.name)}switch(s.webauthn.type){case"create":{const t=function(e,t){return nk(ek,e,t||{})}(s.webauthn.credential_options.publicKey,null==a?void 0:a.create),{data:n,error:r}=await async function(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Bw("Browser returned unexpected credential type",t)}:{data:null,error:new Bw("Empty credential response",t)}}catch(sM){return{data:null,error:Ww({error:sM,options:e})}}}({publicKey:t,signal:o});return n?{data:{factorId:e,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:n}},error:null}:{data:null,error:r}}case"request":{const t=function(e,t){return nk(tk,e,t||{})}(s.webauthn.credential_options.publicKey,null==a?void 0:a.request),{data:n,error:r}=await async function(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Bw("Browser returned unexpected credential type",t)}:{data:null,error:new Bw("Empty credential response",t)}}catch(sM){return{data:null,error:qw({error:sM,options:e})}}}(Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:t,signal:o}));return n?{data:{factorId:e,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:n}},error:null}:{data:null,error:r}}}}catch(s){return Lx(s)?{data:null,error:s}:{data:null,error:new zx("Unexpected error in challenge",s)}}}async _verify({challengeId:e,factorId:t,webauthn:n}){return this.client.mfa.verify({factorId:t,challengeId:e,webauthn:n})}async _authenticate({factorId:e,webauthn:{rpId:t=("undefined"!=typeof window?window.location.hostname:void 0),rpOrigins:n=("undefined"!=typeof window?[window.location.origin]:void 0),signal:r}},a){if(!t)return{data:null,error:new Dx("rpId is required for WebAuthn authentication")};try{if(!Xw())return{data:null,error:new zx("Browser does not support WebAuthn",null)};const{data:s,error:i}=await this.challenge({factorId:e,webauthn:{rpId:t,rpOrigins:n},signal:r},{request:a});if(!s)return{data:null,error:i};const{webauthn:o}=s;return this._verify({factorId:e,challengeId:s.challengeId,webauthn:{type:o.type,rpId:t,rpOrigins:n,credential_response:o.credential_response}})}catch(s){return Lx(s)?{data:null,error:s}:{data:null,error:new zx("Unexpected error in authenticate",s)}}}async _register({friendlyName:e,rpId:t=("undefined"!=typeof window?window.location.hostname:void 0),rpOrigins:n=("undefined"!=typeof window?[window.location.origin]:void 0),signal:r},a){if(!t)return{data:null,error:new Dx("rpId is required for WebAuthn registration")};try{if(!Xw())return{data:null,error:new zx("Browser does not support WebAuthn",null)};const{data:s,error:i}=await this._enroll({friendlyName:e});if(!s)return await this.client.mfa.listFactors().then(t=>{var n;return null===(n=t.data)||void 0===n?void 0:n.all.find(t=>"webauthn"===t.factor_type&&t.friendly_name===e&&"unverified"!==t.status)}).then(e=>e?this.client.mfa.unenroll({factorId:null==e?void 0:e.id}):void 0),{data:null,error:i};const{data:o,error:l}=await this._challenge({factorId:s.id,friendlyName:s.friendly_name,webauthn:{rpId:t,rpOrigins:n},signal:r},{create:a});return o?this._verify({factorId:s.id,challengeId:o.challengeId,webauthn:{rpId:t,rpOrigins:n,type:o.webauthn.type,credential_response:o.webauthn.credential_response}}):{data:null,error:l}}catch(s){return Lx(s)?{data:null,error:s}:{data:null,error:new zx("Unexpected error in register",s)}}}}!function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch(e){"undefined"!=typeof self&&(self.globalThis=self)}}();const ak={url:"http://localhost:9999",storageKey:"supabase.auth.token",autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Ox,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function sk(e,t,n){return await n()}const ik={};class ok{get jwks(){var e,t;return null!==(t=null===(e=ik[this.storageKey])||void 0===e?void 0:e.jwks)&&void 0!==t?t:{keys:[]}}set jwks(e){ik[this.storageKey]=Object.assign(Object.assign({},ik[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,t;return null!==(t=null===(e=ik[this.storageKey])||void 0===e?void 0:e.cachedAt)&&void 0!==t?t:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){ik[this.storageKey]=Object.assign(Object.assign({},ik[this.storageKey]),{cachedAt:e})}constructor(e){var t,n;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=ok.nextInstanceID,ok.nextInstanceID+=1,this.instanceID>0&&iw()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const r=Object.assign(Object.assign({},ak),e);if(this.logDebugMessages=!!r.debug,"function"==typeof r.debug&&(this.logger=r.debug),this.persistSession=r.persistSession,this.storageKey=r.storageKey,this.autoRefreshToken=r.autoRefreshToken,this.admin=new Rw({url:r.url,headers:r.headers,fetch:r.fetch}),this.url=r.url,this.headers=r.headers,this.fetch=cw(r.fetch),this.lock=r.lock||sk,this.detectSessionInUrl=r.detectSessionInUrl,this.flowType=r.flowType,this.hasCustomAuthorizationHeader=r.hasCustomAuthorizationHeader,r.lock?this.lock=r.lock:iw()&&(null===(t=null===globalThis||void 0===globalThis?void 0:globalThis.navigator)||void 0===t?void 0:t.locks)?this.lock=zw:this.lock=sk,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new rk(this)},this.persistSession?(r.storage?this.storage=r.storage:lw()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Fw(this.memoryStorage)),r.userStorage&&(this.userStorage=r.userStorage)):(this.memoryStorage={},this.storage=Fw(this.memoryStorage)),iw()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}null===(n=this.broadcastChannel)||void 0===n||n.addEventListener("message",async e=>{this._debug("received broadcast notification from other tab or client",e),await this._notifyAllSubscribers(e.data.event,e.data.session,!1)})}this.initialize()}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Ix}) ${(new Date).toISOString()}`,...e),this}async initialize(){return this.initializePromise||(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))()),await this.initializePromise}async _initialize(){var e;try{const t=function(e){const t={},n=new URL(e);if(n.hash&&"#"===n.hash[0])try{new URLSearchParams(n.hash.substring(1)).forEac
2h((e,n)=>{t[n]=e})}catch(r){}return n.searchParams.forEach((e,n)=>{t[n]=e}),t}(window.location.href);let n="none";if(this._isImplicitGrantCallback(t)?n="implicit":await this._isPKCECallback(t)&&(n="pkce"),iw()&&this.detectSessionInUrl&&"none"!==n){const{data:r,error:a}=await this._getSessionFromURL(t,n);if(a){if(this._debug("#_initialize()","error detecting session from URL",a),function(e){return Lx(e)&&"AuthImplicitGrantRedirectError"===e.name}(a)){const t=null===(e=a.details)||void 0===e?void 0:e.code;if("identity_already_exists"===t||"identity_not_found"===t||"single_identity_not_deletable"===t)return{error:a}}return await this._removeSession(),{error:a}}const{session:s,redirectType:i}=r;return this._debug("#_initialize()","detected session in URL",s,"redirect type",i),await this._saveSession(s),setTimeout(async()=>{"recovery"===i?await this._notifyAllSubscribers("PASSWORD_RECOVERY",s):await this._notifyAllSubscribers("SIGNED_IN",s)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(t){return Lx(t)?{error:t}:{error:new zx("Unexpected error during initialization",t)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var t,n,r;try{const a=await Aw(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:null!==(n=null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.data)&&void 0!==n?n:{},gotrue_meta_security:{captcha_token:null===(r=null==e?void 0:e.options)||void 0===r?void 0:r.captchaToken}},xform:Ew}),{data:s,error:i}=a;if(i||!s)return{data:{user:null,session:null},error:i};const o=s.session,l=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",o)),{data:{user:l,session:o},error:null}}catch(a){if(Lx(a))return{data:{user:null,session:null},error:a};throw a}}async signUp(e){var t,n,r;try{let a;if("email"in e){const{email:n,password:r,options:s}=e;let i=null,o=null;"pkce"===this.flowType&&([i,o]=await yw(this.storage,this.storageKey)),a=await Aw(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:null==s?void 0:s.emailRedirectTo,body:{email:n,password:r,data:null!==(t=null==s?void 0:s.data)&&void 0!==t?t:{},gotrue_meta_security:{captcha_token:null==s?void 0:s.captchaToken},code_challenge:i,code_challenge_method:o},xform:Ew})}else{if(!("phone"in e))throw new Bx("You must provide either an email or phone number and a password");{const{phone:t,password:s,options:i}=e;a=await Aw(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:t,password:s,data:null!==(n=null==i?void 0:i.data)&&void 0!==n?n:{},channel:null!==(r=null==i?void 0:i.channel)&&void 0!==r?r:"sms",gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},xform:Ew})}}const{data:s,error:i}=a;if(i||!s)return{data:{user:null,session:null},error:i};const o=s.session,l=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",o)),{data:{user:l,session:o},error:null}}catch(a){if(Lx(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithPassword(e){try{let t;if("email"in e){const{email:n,password:r,options:a}=e;t=await Aw(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:n,password:r,gotrue_meta_security:{captcha_token:null==a?void 0:a.captchaToken}},xform:Nw})}else{if(!("phone"in e))throw new Bx("You must provide either an email or phone number and a password");{const{phone:n,password:r,options:a}=e;t=await Aw(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:n,password:r,gotrue_meta_security:{captcha_token:null==a?void 0:a.captchaToken}},xform:Nw})}}const{data:n,error:r}=t;return r?{data:{user:null,session:null},error:r}:n&&n.session&&n.user?(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:r}):{data:{user:null,session:null},error:new Vx}}catch(t){if(Lx(t))return{data:{user:null,session:null},error:t};throw t}}async signInWithOAuth(e){var t,n,r,a;return await this._handleProviderSignIn(e.provider,{redirectTo:null===(t=e.options)||void 0===t?void 0:t.redirectTo,scopes:null===(n=e.options)||void 0===n?void 0:n.scopes,queryParams:null===(r=e.options)||void 0===r?void 0:r.queryParams,skipBrowserRedirect:null===(a=e.options)||void 0===a?void 0:a.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:t}=e;switch(t){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${t}"`)}}async signInWithEthereum(e){var t,n,r,a,s,i,o,l,c,u,d;let h,f;if("message"in e)h=e.message,f=e.signature;else{const{chain:u,wallet:d,statement:p,options:m}=e;let g;if(iw())if("object"==typeof d)g=d;else{const e=window;if(!("ethereum"in e)||"object"!=typeof e.ethereum||!("request"in e.ethereum)||"function"!=typeof e.ethereum.request)throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.");g=e.ethereum}else{if("object"!=typeof d||!(null==m?void 0:m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");g=d}const y=new URL(null!==(t=null==m?void 0:m.url)&&void 0!==t?t:window.location.href),v=await g.request({method:"eth_requestAccounts"}).then(e=>e).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!v||0===v.length)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const b=$w(v[0]);let x=null===(n=null==m?void 0:m.signInWithEthereum)||void 0===n?void 0:n.chainId;if(!x){const e=await g.request({method:"eth_chainId"});x=parseInt(e,16)}h=function(e){var t;const{chainId:n,domain:r,expirationTime:a,issuedAt:s=new Date,nonce:i,notBefore:o,requestId:l,resources:c,scheme:u,uri:d,version:h}=e;if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(i&&i.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${i}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if("1"!==h)throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);
2if(null===(t=e.statement)||void 0===t?void 0:t.includes("\n"))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`);const f=`${u?`${u}://${r}`:r} wants you to sign in with your Ethereum account:\n${$w(e.address)}\n\n${e.statement?`${e.statement}\n`:""}`;let p=`URI: ${d}\nVersion: ${h}\nChain ID: ${n}${i?`\nNonce: ${i}`:""}\nIssued At: ${s.toISOString()}`;if(a&&(p+=`\nExpiration Time: ${a.toISOString()}`),o&&(p+=`\nNot Before: ${o.toISOString()}`),l&&(p+=`\nRequest ID: ${l}`),c){let e="\nResources:";for(const t of c){if(!t||"string"!=typeof t)throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${t}`);e+=`\n- ${t}`}p+=e}return`${f}\n${p}`}({domain:y.host,address:b,statement:p,uri:y.href,version:"1",chainId:x,nonce:null===(r=null==m?void 0:m.signInWithEthereum)||void 0===r?void 0:r.nonce,issuedAt:null!==(s=null===(a=null==m?void 0:m.signInWithEthereum)||void 0===a?void 0:a.issuedAt)&&void 0!==s?s:new Date,expirationTime:null===(i=null==m?void 0:m.signInWithEthereum)||void 0===i?void 0:i.expirationTime,notBefore:null===(o=null==m?void 0:m.signInWithEthereum)||void 0===o?void 0:o.notBefore,requestId:null===(l=null==m?void 0:m.signInWithEthereum)||void 0===l?void 0:l.requestId,resources:null===(c=null==m?void 0:m.signInWithEthereum)||void 0===c?void 0:c.resources}),f=await g.request({method:"personal_sign",params:[Uw(h),b]})}try{const{data:t,error:n}=await Aw(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:f},(null===(u=e.options)||void 0===u?void 0:u.captchaToken)?{gotrue_meta_security:{captcha_token:null===(d=e.options)||void 0===d?void 0:d.captchaToken}}:null),xform:Ew});if(n)throw n;return t&&t.session&&t.user?(t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers("SIGNED_IN",t.session)),{data:Object.assign({},t),error:n}):{data:{user:null,session:null},error:new Vx}}catch(p){if(Lx(p))return{data:{user:null,session:null},error:p};throw p}}async signInWithSolana(e){var t,n,r,a,s,i,o,l,c,u,d,h;let f,p;if("message"in e)f=e.message,p=e.signature;else{const{chain:d,wallet:h,statement:m,options:g}=e;let y;if(iw())if("object"==typeof h)y=h;else{const e=window;if(!("solana"in e)||"object"!=typeof e.solana||!("signIn"in e.solana&&"function"==typeof e.solana.signIn||"signMessage"in e.solana&&"function"==typeof e.solana.signMessage))throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.");y=e.solana}else{if("object"!=typeof h||!(null==g?void 0:g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=h}const v=new URL(null!==(t=null==g?void 0:g.url)&&void 0!==t?t:window.location.href);if("signIn"in y&&y.signIn){const e=await y.signIn(Object.assign(Object.assign(Object.assign({issuedAt:(new Date).toISOString()},null==g?void 0:g.signInWithSolana),{version:"1",domain:v.host,uri:v.href}),m?{statement:m}:null));let t;if(Array.isArray(e)&&e[0]&&"object"==typeof e[0])t=e[0];else{if(!(e&&"object"==typeof e&&"signedMessage"in e&&"signature"in e))throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");t=e}if(!("signedMessage"in t&&"signature"in t&&("string"==typeof t.signedMessage||t.signedMessage instanceof Uint8Array)&&t.signature instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields");f="string"==typeof t.signedMessage?t.signedMessage:(new TextDecoder).decode(t.signedMessage),p=t.signature}else{if(!("signMessage"in y&&"function"==typeof y.signMessage&&"publicKey"in y&&"object"==typeof y&&y.publicKey&&"toBase58"in y.publicKey&&"function"==typeof y.publicKey.toBase58))throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");f=[`${v.host} wants you to sign in with your Solana account:`,y.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${v.href}`,`Issued At: ${null!==(r=null===(n=null==g?void 0:g.signInWithSolana)||void 0===n?void 0:n.issuedAt)&&void 0!==r?r:(new Date).toISOString()}`,...(null===(a=null==g?void 0:g.signInWithSolana)||void 0===a?void 0:a.notBefore)?[`Not Before: ${g.signInWithSolana.notBefore}`]:[],...(null===(s=null==g?void 0:g.signInWithSolana)||void 0===s?void 0:s.expirationTime)?[`Expiration Time: ${g.signInWithSolana.expirationTime}`]:[],...(null===(i=null==g?void 0:g.signInWithSolana)||void 0===i?void 0:i.chainId)?[`Chain ID: ${g.signInWithSolana.chainId}`]:[],...(null===(o=null==g?void 0:g.signInWithSolana)||void 0===o?void 0:o.nonce)?[`Nonce: ${g.signInWithSolana.nonce}`]:[],...(null===(l=null==g?void 0:g.signInWithSolana)||void 0===l?void 0:l.requestId)?[`Request ID: ${g.signInWithSolana.requestId}`]:[],...(null===(u=null===(c=null==g?void 0:g.signInWithSolana)||void 0===c?void 0:c.resources)||void 0===u?void 0:u.length)?["Resources",...g.signInWithSolana.resources.map(e=>`- ${e}`)]:[]].join("\n");const e=await y.signMessage((new TextEncoder).encode(f),"utf8");if(!(e&&e instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=e}}try{const{data:t,error:n}=await Aw(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:f,signature:sw(p)},(null===(d=e.options)||void 0===d?void 0:d.captchaToken)?{gotrue_meta_security:{captcha_token:null===(h=e.options)||void 0===h?void 0:h.captchaToken}}:null),xform:Ew});if(n)throw n;return t&&t.session&&t.user?(t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers("SIGNED_IN",t.session)),{data:Object.assign({},t),error:n}):{data:{user:null,session:null},error:new Vx}}catch(m){if(Lx(m))return{data:{user:null,session:null},error:m};throw m}}async _exchangeCodeForSession(e){const t=await dw(this.storage,`${this.storageKey}-code-verifier`),[n,r]=(null!=t?t:"").split("/");try{const{data:t,error:a}=await Aw(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:Ew});if(await hw(this.storage,`${this.storageKey}-code-verifier`),a)throw a;return t&&t.session&&t.user?(t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers("SIGNED_IN",t.session)),{data:Object.assign(Object.assign({},t),{redirectType:null!=r?r:null}),error:a}):{data:{user:null,session:null,redirectType:null},error:new Vx}}
2catch(a){if(Lx(a))return{data:{user:null,session:null,redirectType:null},error:a};throw a}}async signInWithIdToken(e){try{const{options:t,provider:n,token:r,access_token:a,nonce:s}=e,i=await Aw(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:r,access_token:a,nonce:s,gotrue_meta_security:{captcha_token:null==t?void 0:t.captchaToken}},xform:Ew}),{data:o,error:l}=i;return l?{data:{user:null,session:null},error:l}:o&&o.session&&o.user?(o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),{data:o,error:l}):{data:{user:null,session:null},error:new Vx}}catch(t){if(Lx(t))return{data:{user:null,session:null},error:t};throw t}}async signInWithOtp(e){var t,n,r,a,s;try{if("email"in e){const{email:r,options:a}=e;let s=null,i=null;"pkce"===this.flowType&&([s,i]=await yw(this.storage,this.storageKey));const{error:o}=await Aw(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:r,data:null!==(t=null==a?void 0:a.data)&&void 0!==t?t:{},create_user:null===(n=null==a?void 0:a.shouldCreateUser)||void 0===n||n,gotrue_meta_security:{captcha_token:null==a?void 0:a.captchaToken},code_challenge:s,code_challenge_method:i},redirectTo:null==a?void 0:a.emailRedirectTo});return{data:{user:null,session:null},error:o}}if("phone"in e){const{phone:t,options:n}=e,{data:i,error:o}=await Aw(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:t,data:null!==(r=null==n?void 0:n.data)&&void 0!==r?r:{},create_user:null===(a=null==n?void 0:n.shouldCreateUser)||void 0===a||a,gotrue_meta_security:{captcha_token:null==n?void 0:n.captchaToken},channel:null!==(s=null==n?void 0:n.channel)&&void 0!==s?s:"sms"}});return{data:{user:null,session:null,messageId:null==i?void 0:i.message_id},error:o}}throw new Bx("You must provide either an email or phone number.")}catch(i){if(Lx(i))return{data:{user:null,session:null},error:i};throw i}}async verifyOtp(e){var t,n;try{let r,a;"options"in e&&(r=null===(t=e.options)||void 0===t?void 0:t.redirectTo,a=null===(n=e.options)||void 0===n?void 0:n.captchaToken);const{data:s,error:i}=await Aw(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:a}}),redirectTo:r,xform:Ew});if(i)throw i;if(!s)throw new Error("An error occurred on token verification.");const o=s.session,l=s.user;return(null==o?void 0:o.access_token)&&(await this._saveSession(o),await this._notifyAllSubscribers("recovery"==e.type?"PASSWORD_RECOVERY":"SIGNED_IN",o)),{data:{user:l,session:o},error:null}}catch(r){if(Lx(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithSSO(e){var t,n,r;try{let a=null,s=null;return"pkce"===this.flowType&&([a,s]=await yw(this.storage,this.storageKey)),await Aw(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:null!==(n=null===(t=e.options)||void 0===t?void 0:t.redirectTo)&&void 0!==n?n:void 0}),(null===(r=null==e?void 0:e.options)||void 0===r?void 0:r.captchaToken)?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:s}),headers:this.headers,xform:Tw})}catch(a){if(Lx(a))return{data:null,error:a};throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:t},error:n}=e;if(n)throw n;if(!t)throw new Ux;const{error:r}=await Aw(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return{data:{user:null,session:null},error:r}})}catch(e){if(Lx(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const t=`${this.url}/resend`;if("email"in e){const{email:n,type:r,options:a}=e,{error:s}=await Aw(this.fetch,"POST",t,{headers:this.headers,body:{email:n,type:r,gotrue_meta_security:{captcha_token:null==a?void 0:a.captchaToken}},redirectTo:null==a?void 0:a.emailRedirectTo});return{data:{user:null,session:null},error:s}}if("phone"in e){const{phone:n,type:r,options:a}=e,{data:s,error:i}=await Aw(this.fetch,"POST",t,{headers:this.headers,body:{phone:n,type:r,gotrue_meta_security:{captcha_token:null==a?void 0:a.captchaToken}}});return{data:{user:null,session:null,messageId:null==s?void 0:s.message_id},error:i}}throw new Bx("You must provide either an email or phone number and a type")}catch(t){if(Lx(t))return{data:{user:null,session:null},error:t};throw t}}async getSession(){await this.initializePromise;return await this._acquireLock(-1,async()=>this._useSession(async e=>e))}async _acquireLock(e,t){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const e=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),n=(async()=>(await e,await t()))();return this.pendingInLock.push((async()=>{try{await n}catch(e){}})()),n}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const e=t();for(this.pendingInLock.push((async()=>{try{await e}catch(t){}})()),await e;this.pendingInLock.length;){const e=[...this.pendingInLock];await Promise.all(e),this.pendingInLock.splice(0,e.length)}return await e}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const t=await this.__loadSession();return await e(t)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",(new Error).stack);try{let e=null;const t=await dw(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",t),null!==t&&(this._isValidSession(t)?e=t:(this._debug("#getSession()","session from storage is not val
2id"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=!!e.expires_at&&1e3*e.expires_at-Date.now()<Cx;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",e.expires_at),!n){if(this.userStorage){const t=await dw(this.userStorage,this.storageKey+"-user");(null==t?void 0:t.user)?e.user=t.user:e.user=ww()}if(this.storage.isServer&&e.user){let t=this.suppressGetSessionWarning;e=new Proxy(e,{get:(e,n,r)=>(t||"user"!==n||(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t=!0,this.suppressGetSessionWarning=!0),Reflect.get(e,n,r))})}return{data:{session:e},error:null}}const{data:r,error:a}=await this._callRefreshToken(e.refresh_token);return a?{data:{session:null},error:a}:{data:{session:r},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;return await this._acquireLock(-1,async()=>await this._getUser())}async _getUser(e){try{return e?await Aw(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Iw}):await this._useSession(async e=>{var t,n,r;const{data:a,error:s}=e;if(s)throw s;return(null===(t=a.session)||void 0===t?void 0:t.access_token)||this.hasCustomAuthorizationHeader?await Aw(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:null!==(r=null===(n=a.session)||void 0===n?void 0:n.access_token)&&void 0!==r?r:void 0,xform:Iw}):{data:{user:null},error:new Ux}})}catch(t){if(Lx(t))return function(e){return Lx(e)&&"AuthSessionMissingError"===e.name}(t)&&(await this._removeSession(),await hw(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:t};throw t}}async updateUser(e,t={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,t))}async _updateUser(e,t={}){try{return await this._useSession(async n=>{const{data:r,error:a}=n;if(a)throw a;if(!r.session)throw new Ux;const s=r.session;let i=null,o=null;"pkce"===this.flowType&&null!=e.email&&([i,o]=await yw(this.storage,this.storageKey));const{data:l,error:c}=await Aw(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:null==t?void 0:t.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:i,code_challenge_method:o}),jwt:s.access_token,xform:Iw});if(c)throw c;return s.user=l.user,await this._saveSession(s),await this._notifyAllSubscribers("USER_UPDATED",s),{data:{user:s.user},error:null}})}catch(n){if(Lx(n))return{data:{user:null},error:n};throw n}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Ux;const t=Date.now()/1e3;let n=t,r=!0,a=null;const{payload:s}=pw(e.access_token);if(s.exp&&(n=s.exp,r=n<=t),r){const{data:t,error:n}=await this._callRefreshToken(e.refresh_token);if(n)return{data:{user:null,session:null},error:n};if(!t)return{data:{user:null,session:null},error:null};a=t}else{const{data:r,error:s}=await this._getUser(e.access_token);if(s)throw s;a={access_token:e.access_token,refresh_token:e.refresh_token,user:r.user,token_type:"bearer",expires_in:n-t,expires_at:n},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return{data:{user:a.user,session:a},error:null}}catch(t){if(Lx(t))return{data:{session:null,user:null},error:t};throw t}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async t=>{var n;if(!e){const{data:r,error:a}=t;if(a)throw a;e=null!==(n=r.session)&&void 0!==n?n:void 0}if(!(null==e?void 0:e.refresh_token))throw new Ux;const{data:r,error:a}=await this._callRefreshToken(e.refresh_token);return a?{data:{user:null,session:null},error:a}:r?{data:{user:r.user,session:r},error:null}:{data:{user:null,session:null},error:null}})}catch(t){if(Lx(t))return{data:{user:null,session:null},error:t};throw t}}async _getSessionFromURL(e,t){try{if(!iw())throw new Wx("No browser detected.");
2if(e.error||e.error_description||e.error_code)throw new Wx(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(t){case"implicit":if("pkce"===this.flowType)throw new qx("Not a valid PKCE flow url.");break;case"pkce":if("implicit"===this.flowType)throw new Wx("Not a valid implicit grant flow url.")}if("pkce"===t){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new qx("No code detected.");const{data:t,error:n}=await this._exchangeCodeForSession(e.code);if(n)throw n;const r=new URL(window.location.href);return r.searchParams.delete("code"),window.history.replaceState(window.history.state,"",r.toString()),{data:{session:t.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:r,access_token:a,refresh_token:s,expires_in:i,expires_at:o,token_type:l}=e;if(!(a&&i&&s&&l))throw new Wx("No session defined in URL");const c=Math.round(Date.now()/1e3),u=parseInt(i);let d=c+u;o&&(d=parseInt(o));const h=d-c;1e3*h<=Tx&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${u}s`);const f=d-u;c-f>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",f,d,c):c-f<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",f,d,c);const{data:p,error:m}=await this._getUser(a);if(m)throw m;const g={provider_token:n,provider_refresh_token:r,access_token:a,expires_in:u,expires_at:d,refresh_token:s,token_type:l,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:g,redirectType:e.type},error:null}}catch(n){if(Lx(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantCallback(e){return Boolean(e.access_token||e.error_description)}async _isPKCECallback(e){const t=await dw(this.storage,`${this.storageKey}-code-verifier`);return!(!e.code||!t)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async t=>{var n;const{data:r,error:a}=t;if(a)return{error:a};const s=null===(n=r.session)||void 0===n?void 0:n.access_token;if(s){const{error:t}=await this.admin.signOut(s,e);if(t&&(!function(e){return Lx(e)&&"AuthApiError"===e.name}(t)||404!==t.status&&401!==t.status&&403!==t.status))return{error:t}}return"others"!==e&&(await this._removeSession(),await hw(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),n={id:t,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",t),this.stateChangeEmitters.delete(t)}};return this._debug("#onAuthStateChange()","registered callback with id",t),this.stateChangeEmitters.set(t,n),(async()=>{await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(t)})})(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async t=>{var n,r;try{const{data:{session:r},error:a}=t;if(a)throw a;await(null===(n=this.stateChangeEmitters.get(e))||void 0===n?void 0:n.callback("INITIAL_SESSION",r)),this._debug("INITIAL_SESSION","callback id",e,"session",r)}catch(sM){await(null===(r=this.stateChangeEmitters.get(e))||void 0===r?void 0:r.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",sM),console.error(sM)}})}async resetPasswordForEmail(e,t={}){let n=null,r=null;"pkce"===this.flowType&&([n,r]=await yw(this.storage,this.storageKey,!0));try{return await Aw(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:r,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:t.redirectTo})}
2catch(a){if(Lx(a))return{data:null,error:a};throw a}}async getUserIdentities(){var e;try{const{data:t,error:n}=await this.getUser();if(n)throw n;return{data:{identities:null!==(e=t.user.identities)&&void 0!==e?e:[]},error:null}}catch(t){if(Lx(t))return{data:null,error:t};throw t}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var t;try{const{data:n,error:r}=await this._useSession(async t=>{var n,r,a,s,i;const{data:o,error:l}=t;if(l)throw l;const c=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:null===(n=e.options)||void 0===n?void 0:n.redirectTo,scopes:null===(r=e.options)||void 0===r?void 0:r.scopes,queryParams:null===(a=e.options)||void 0===a?void 0:a.queryParams,skipBrowserRedirect:!0});return await Aw(this.fetch,"GET",c,{headers:this.headers,jwt:null!==(i=null===(s=o.session)||void 0===s?void 0:s.access_token)&&void 0!==i?i:void 0})});if(r)throw r;return iw()&&!(null===(t=e.options)||void 0===t?void 0:t.skipBrowserRedirect)&&window.location.assign(null==n?void 0:n.url),{data:{provider:e.provider,url:null==n?void 0:n.url},error:null}}catch(n){if(Lx(n))return{data:{provider:e.provider,url:null},error:n};throw n}}async linkIdentityIdToken(e){return await this._useSession(async t=>{var n;try{const{error:r,data:{session:a}}=t;if(r)throw r;const{options:s,provider:i,token:o,access_token:l,nonce:c}=e,u=await Aw(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:null!==(n=null==a?void 0:a.access_token)&&void 0!==n?n:void 0,body:{provider:i,id_token:o,access_token:l,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:null==s?void 0:s.captchaToken}},xform:Ew}),{data:d,error:h}=u;return h?{data:{user:null,session:null},error:h}:d&&d.session&&d.user?(d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("USER_UPDATED",d.session)),{data:d,error:h}):{data:{user:null,session:null},error:new Vx}}catch(r){if(Lx(r))return{data:{user:null,session:null},error:r};throw r}})}async unlinkIdentity(e){try{return await this._useSession(async t=>{var n,r;const{data:a,error:s}=t;if(s)throw s;return await Aw(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:null!==(r=null===(n=a.session)||void 0===n?void 0:n.access_token)&&void 0!==r?r:void 0})})}catch(t){if(Lx(t))return{data:null,error:t};throw t}}async _refreshAccessToken(e){const t=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(t,"begin");try{const a=Date.now();return await(n=async n=>(n>0&&await async function(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}(200*Math.pow(2,n-1)),this._debug(t,"refreshing attempt",n),await Aw(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Ew})),r=(e,t)=>{const n=200*Math.pow(2,e);return t&&Hx(t)&&Date.now()+n-a<Tx},new Promise((e,t)=>{(async()=>{for(let s=0;s<1/0;s++)try{const t=await n(s);if(!r(s,null,t))return void e(t)}catch(a){if(!r(s,a))return void t(a)}})()}))}catch(a){if(this._debug(t,"error",a),Lx(a))return{data:{session:null,user:null},error:a};throw a}finally{this._debug(t,"end")}var n,r}_isValidSession(e){return"object"==typeof e&&null!==e&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,t){const n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",t,"url",n),iw()&&!t.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e,t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const a=await dw(this.storage,this.storageKey);if(a&&this.userStorage){let t=await dw(this.userStorage,this.storageKey+"-user");this.storage.isServer||!Object.is(this.storage,this.userStorage)||t||(t={user:a.user},await uw(this.userStorage,this.storageKey+"-user",t)),a.user=null!==(e=null==t?void 0:t.user)&&void 0!==e?e:ww()}else if(a&&!a.user&&!a.user){const e=await dw(this.storage,this.storageKey+"-user");e&&(null==e?void 0:e.user)?(a.user=e.user,await hw(this.storage,this.storageKey+"-user"),await uw(this.storage,this.storageKey,a)):a.user=ww()}if(this._debug(n,"session from storage",a),!this._isValidSession(a))return this._debug(n,"session is not val
2id"),void(null!==a&&await this._removeSession());const s=1e3*(null!==(t=a.expires_at)&&void 0!==t?t:1/0)-Date.now()<Cx;if(this._debug(n,`session has${s?"":" not"} expired with margin of 90000s`),s){if(this.autoRefreshToken&&a.refresh_token){const{error:e}=await this._callRefreshToken(a.refresh_token);e&&(console.error(e),Hx(e)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",e),await this._removeSession()))}}else if(a.user&&!0===a.user.__isUserNotAvailableProxy)try{const{data:e,error:t}=await this._getUser(a.access_token);!t&&(null==e?void 0:e.user)?(a.user=e.user,await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(r){console.error("Error getting user data:",r),this._debug(n,"error getting user data, skipping SIGNED_IN notification",r)}else await this._notifyAllSubscribers("SIGNED_IN",a)}catch(sM){return this._debug(n,"error",sM),void console.error(sM)}finally{this._debug(n,"end")}}async _callRefreshToken(e){var t,n;if(!e)throw new Ux;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const r=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{this.refreshingDeferred=new fw;const{data:t,error:n}=await this._refreshAccessToken(e);if(n)throw n;if(!t.session)throw new Ux;await this._saveSession(t.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",t.session);const r={data:t.session,error:null};return this.refreshingDeferred.resolve(r),r}catch(a){if(this._debug(r,"error",a),Lx(a)){const e={data:null,error:a};return Hx(a)||await this._removeSession(),null===(t=this.refreshingDeferred)||void 0===t||t.resolve(e),e}throw null===(n=this.refreshingDeferred)||void 0===n||n.reject(a),a}finally{this.refreshingDeferred=null,this._debug(r,"end")}}async _notifyAllSubscribers(e,t,n=!0){const r=`#_notifyAllSubscribers(${e})`;this._debug(r,"begin",t,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:t});const r=[],a=Array.from(this.stateChangeEmitters.values()).map(async n=>{try{await n.callback(e,t)}catch(a){r.push(a)}});if(await Promise.all(a),r.length>0){for(let e=0;e<r.length;e+=1)console.error(r[e]);throw r[0]}}finally{this._debug(r,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0;const t=Object.assign({},e),n=t.user&&!0===t.user.__isUserNotAvailableProxy;if(this.userStorage){!n&&t.user&&await uw(this.userStorage,this.storageKey+"-user",{user:t.user});const e=Object.assign({},t);delete e.user;const r=kw(e);await uw(this.storage,this.storageKey,r)}else{const e=kw(t);await uw(this.storage,this.storageKey,e)}}async _removeSession(){this._debug("#_removeSession()"),await hw(this.storage,this.storageKey),await hw(this.storage,this.storageKey+"-code-verifier"),await hw(this.storage,this.storageKey+"-user"),this.userStorage&&await hw(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&iw()&&(null===window||void 0===window?void 0:window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(t){console.error("removing visibilitychange callback failed",t)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Tx);this.autoRefreshTicker=e,e&&"object"==typeof e&&"function"==typeof e.unref?e.unref():"undefined"!=typeof Deno&&"function"==typeof Deno.unrefTimer&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async e=>{const{data:{session:n}}=e;if(!n||!n.refresh_token||!n.expires_at)return void this._debug("#_autoRefreshTokenTick()","no session");const r=Math.floor((1e3*n.expires_at-t)/Tx);this._debug("#_autoRefreshTokenTick()",`access token expires in ${r} ticks, a tick lasts 30000ms, refresh threshold is 3 ticks`),r<=3&&await this._callRefreshToken(n.refresh_token)})}catch(e){console.error("Auto refresh tick failed with error. This is likely a transient error.",e)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(!(e.isAcquireTimeout||e instanceof Lw))throw e;this._debug("auto refresh token tick lock not available")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!iw()||!(null===window||void 0===window?void 0:window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),null===window||void 0===window||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const t=`#_onVisibilityChanged(${e})`;this._debug(t,"visibilityState",document.visibilityState),"visible"===document.visibilityState?(this.autoRefreshToken&&this._startAutoRefresh(),e||(
2await this.initializePromise,await this._acquireLock(-1,async()=>{"visible"===document.visibilityState?await this._recoverAndRefresh():this._debug(t,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting")}))):"hidden"===document.visibilityState&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,t,n){const r=[`provider=${encodeURIComponent(t)}`];if((null==n?void 0:n.redirectTo)&&r.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),(null==n?void 0:n.scopes)&&r.push(`scopes=${encodeURIComponent(n.scopes)}`),"pkce"===this.flowType){const[e,t]=await yw(this.storage,this.storageKey),n=new URLSearchParams({code_challenge:`${encodeURIComponent(e)}`,code_challenge_method:`${encodeURIComponent(t)}`});r.push(n.toString())}if(null==n?void 0:n.queryParams){const e=new URLSearchParams(n.queryParams);r.push(e.toString())}return(null==n?void 0:n.skipBrowserRedirect)&&r.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${r.join("&")}`}async _unenroll(e){try{return await this._useSession(async t=>{var n;const{data:r,error:a}=t;return a?{data:null,error:a}:await Aw(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:null===(n=null==r?void 0:r.session)||void 0===n?void 0:n.access_token})})}catch(t){if(Lx(t))return{data:null,error:t};throw t}}async _enroll(e){try{return await this._useSession(async t=>{var n,r;const{data:a,error:s}=t;if(s)return{data:null,error:s};const i=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},"phone"===e.factorType?{phone:e.phone}:"totp"===e.factorType?{issuer:e.issuer}:{}),{data:o,error:l}=await Aw(this.fetch,"POST",`${this.url}/factors`,{body:i,headers:this.headers,jwt:null===(n=null==a?void 0:a.session)||void 0===n?void 0:n.access_token});return l?{data:null,error:l}:("totp"===e.factorType&&"totp"===o.type&&(null===(r=null==o?void 0:o.totp)||void 0===r?void 0:r.qr_code)&&(o.totp.qr_code=`data:image/svg+xml;utf-8,${o.totp.qr_code}`),{data:o,error:null})})}catch(t){if(Lx(t))return{data:null,error:t};throw t}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async t=>{var n;const{data:r,error:a}=t;if(a)return{data:null,error:a};const s=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:"create"===e.webauthn.type?Jw(e.webauthn.credential_response):Qw(e.webauthn.credential_response)})}:{code:e.code}),{data:i,error:o}=await Aw(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:s,headers:this.headers,jwt:null===(n=null==r?void 0:r.session)||void 0===n?void 0:n.access_token});return o?{data:null,error:o}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:o})})}catch(t){if(Lx(t))return{data:null,error:t};throw t}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async t=>{var n;const{data:r,error:a}=t;if(a)return{data:null,error:a};const s=await Aw(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:null===(n=null==r?void 0:r.session)||void 0===n?void 0:n.access_token});if(s.error)return s;const{data:i}=s;if("webauthn"!==i.type)return{data:i,error:null};switch(i.webauthn.type){case"create":return{data:Object.assign(Object.assign({},i),{webauthn:Object.assign(Object.assign({},i.webauthn),{credential_options:Object.assign(Object.assign({},i.webauthn.credential_options),{publicKey:Gw(i.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},i),{webauthn:Object.assign(Object.assign({},i.webauthn),{credential_options:Object.assign(Object.assign({},i.webauthn.credential_options),{publicKey:Zw(i.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(t){if(Lx(t))return{data:null,error:t};throw t}})}async _challengeAndVerify(e){const{data:t,error:n}=await this._challenge({factorId:e.factorId});return n?{data:null,error:n}:await this._verify({factorId:e.factorId,challengeId:t.id,code:e.code})}async _listFactors(){var e;const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r={all:[],phone:[],totp:[],webauthn:[]};for(const a of null!==(e=null==t?void 0:t.factors)&&void 0!==e?e:[])r.all.push(a),"verified"===a.status&&r[a.factor_type].push(a);return{data:r,error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var t,n;const{data:{session:r},error:a}=e;if(a)return{data:null,error:a};if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:s}=pw(r.access_token);let i=null;s.aal&&(i=s.aal);let o=i;(null!==(n=null===(t=r.user.factors)||void 0===t?void 0:t.filter(e=>"verified"===e.status))&&void 0!==n?n:[]).length>0&&(o="aal2");return{data:{currentLevel:i,nextLevel:o,currentAuthenticationMethods:s.amr||[]},error:null}}))}async fetchJwk(e,t={keys:[]}){let n=t.keys.find(t=>t.kid===e);if(n)return n;const r=Date.now();if(n=this.jwks.keys.find(t=>t.kid===e),n&&this.jwks_cached_at+6e5>r)return n;const{data:a,error:s}=await Aw(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(s)throw s;return a.keys&&0!==a.keys.length?(this.jwks=a,this.jwks_cached_at=r,n=a.keys.find(t=>t.kid===e),n||null):null}async getClaims(e,t={}){try{let n=e;if(!n){const{data:e,error:t}
2=await this.getSession();if(t||!e.session)return{data:null,error:t};n=e.session.access_token}const{header:r,payload:a,signature:s,raw:{header:i,payload:o}}=pw(n);(null==t?void 0:t.allowExpired)||function(e){if(!e)throw new Error("Missing exp claim");if(e<=Math.floor(Date.now()/1e3))throw new Error("JWT has expired")}(a.exp);const l=r.alg&&!r.alg.startsWith("HS")&&r.kid&&"crypto"in globalThis&&"subtle"in globalThis.crypto?await this.fetchJwk(r.kid,(null==t?void 0:t.keys)?{keys:t.keys}:null==t?void 0:t.jwks):null;if(!l){const{error:e}=await this.getUser(n);if(e)throw e;return{data:{claims:a,header:r,signature:s},error:null}}const c=function(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}(r.alg),u=await crypto.subtle.importKey("jwk",l,c,!0,["verify"]);if(!(await crypto.subtle.verify(c,u,s,aw(`${i}.${o}`))))throw new Zx("Invalid JWT signature");return{data:{claims:a,header:r,signature:s},error:null}}catch(n){if(Lx(n))return{data:null,error:n};throw n}}}ok.nextInstanceID=0;const lk=ok;class ck extends lk{constructor(e){super(e)}}var uk=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(t){s(t)}}function o(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};class dk{constructor(e,t,n){var r,a,s;this.supabaseUrl=e,this.supabaseKey=t;const i=function(e){const t=null==e?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL((n=t).endsWith("/")?n:n+"/")}catch(r){throw Error("Invalid supabaseUrl: Provided URL is malformed.")}var n}(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,l=function(e,t){var n,r;const{db:a,auth:s,realtime:i,global:o}=e,{db:l,auth:c,realtime:u,global:d}=t,h={db:Object.assign(Object.assign({},l),a),auth:Object.assign(Object.assign({},c),s),realtime:Object.assign(Object.assign({},u),i),storage:{},global:Object.assign(Object.assign(Object.assign({},d),o),{headers:Object.assign(Object.assign({},null!==(n=null==d?void 0:d.headers)&&void 0!==n?n:{}),null!==(r=null==o?void 0:o.headers)&&void 0!==r?r:{})}),accessToken:()=>Nx(this,void 0,void 0,function*(){return""})};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}(null!=n?n:{},{db:jx,realtime:Sx,auth:Object.assign(Object.assign({},_x),{storageKey:o}),global:kx});this.storageKey=null!==(r=l.auth.storageKey)&&void 0!==r?r:"",this.headers=null!==(a=l.global.headers)&&void 0!==a?a:{},l.accessToken?(this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(e,t)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(t)} is not possible`)}})):this.auth=this._initSupabaseAuthClient(null!==(s=l.auth)&&void 0!==s?s:{},this.headers,l.global.fetch),this.fetch=Ex(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.rest=new Xv(new URL("rest/v1",i).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),this.storage=new xx(this.storageUrl.href,this.headers,this.fetch,null==n?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new pv(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){return uk(this,void 0,void 0,function*(){var e,t;if(this.accessToken)return yield this.accessToken();const{data:n}=yield this.auth.getSession();return null!==(t=null===(e=n.session)||void 0===e?void 0:e.access_token)&&void 0!==t?t:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:a,storageKey:s,flowType:i,lock:o,debug:l},c,u){const d={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new ck({url:this.authUrl.href,headers:Object.assign(Object.assign({},d),c),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:a,flowType:i,lock:o,debug:l,fetch:u,hasCu
2stomAuthorizationHeader:Object.keys(this.headers).some(e=>"authorization"===e.toLowerCase())})}_initRealtimeClient(e){return new Kb(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},null==e?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",null==t?void 0:t.access_token)})}_handleTokenChanged(e,t,n){"TOKEN_REFRESHED"!==e&&"SIGNED_IN"!==e||this.changedAccessToken===n?"SIGNED_OUT"===e&&(this.realtime.setAuth(),"STORAGE"==t&&this.auth.signOut(),this.changedAccessToken=void 0):(this.changedAccessToken=n,this.realtime.setAuth(n))}}(function(){if("undefined"!=typeof window)return!1;if("undefined"==typeof process)return!1;const e=process.version;if(null==e)return!1;const t=e.match(/^v(\d+)\./);return!!t&&parseInt(t[1],10)<=18})()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const hk=((e,t,n)=>new dk(e,t,n))("https://ukrlvzhhxchsqgaregin.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InVrcmx2emhoeGNoc3FnYXJlZ2luIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzUzMDc2ODMsImV4cCI6MjA1MDg4MzY4M30.Nu6qb9y5l8Kx1XRWXqfhJrxkGvjrYPI5rOWUoHnQK_Y"),fk=async({email:e,password:t,fullName:n})=>{var r,a;const{data:s,error:i}=await hk.auth.signUp({email:e,password:t,options:{data:{full_name:n}}});if(i)throw i;if(null==(a=null==(r=s.user)?void 0:r.identities)||a.length,s.user&&s.user.identities&&0===s.user.identities.length){const e=new Error("User already registered");throw e.code="user_already_exists",e}return s},pk=async({email:e,password:t})=>{const{data:n,error:r}=await hk.auth.signInWithPassword({email:e,password:t});if(r)throw r;return n},mk=async()=>{const{data:e,error:t}=await hk.auth.signInWithOAuth({provider:"google",options:{redirectTo:`${window.location.origin}/auth/callback`}});if(t)throw t;return e},gk=async({email:e,token:t})=>{const{data:n,error:r}=await hk.auth.verifyOtp({email:e,token:t,type:"signup"});if(r)throw r;return n},yk=async e=>{const{data:t,error:n}=await hk.auth.resend({type:"signup",email:e});if(n)throw n;return t},vk=async e=>{const{data:t,error:n}=await hk.auth.signInWithOtp({email:e,options:{emailRedirectTo:`${window.location.origin}/auth/callback`}});if(n)throw n;return t},bk=async()=>{try{const{error:e}=await hk.auth.signOut();e&&console.warn("Supabase sign out error (will clear local state anyway):",e)}catch(e){console.warn("Sign out network error (will clear local state anyway):",e)}try{localStorage.clear(),sessionStorage.clear()}catch(e){console.warn("Error clearing storage:",e)}},xk=async()=>{try{const{data:{session:e}}=await hk.auth.getSession();if(!(null==e?void 0:e.access_token))throw new Error("No valid session found");const t=await fetch("/api/user/account",{method:"DELETE",headers:{Authorization:`Bearer ${e.access_token}`,"Content-Type":"application/json"}});if(!t.ok){let e="Failed to delete account";try{const n=await t.json();(null==n?void 0:n.message)&&(e=n.message)}catch{}throw new Error(e)}return localStorage.clear(),sessionStorage.clear(),await bk(),{success:!0}}catch(e){throw console.error("Account deletion error:",e),e}},wk=Object.freeze(Object.defineProperty({__proto__:null,deleteAccount:xk,resendOtp:yk,sendMagicLink:vk,signIn:pk,signInWithGoogle:mk,signOut:bk,signUp:fk,supabase:hk,verifyOtp:gk},Symbol.toStringTag,{value:"Module"})),kk=Y.createContext(void 0);async function jk(e){try{const{data:{session:e}}=await hk.auth.getSession();if(!(null==e?void 0:e.access_token))return;const t=await fetch("/api/user/profile",{method:"GET",headers:{Authorization:`Bearer ${e.access_token}`,"Content-Type":"application/json"}});t.ok||console.warn("Failed to create user profile:",await t.text())}catch(t){console.error("Error creating user profile:",t)}}function _k({children:e}){const[t,n]=Y.useState(null),[r,a]=Y.useState(null),[s,i]=Y.useState(!0),o=Y.useRef(new Set);return Y.useEffect(()=>{hk.auth.getSession().then(({data:{session:e}})=>{a(e),n((null==e?void 0:e.user)??null),i(!1),(null==e?void 0:e.user)&&!o.current.has(e.user.id)&&(o.current.add(e.user.id),jk(e.user.id))});const{data:{subscription:e}}=hk.auth.onAuthStateChange(async(e,t)=>{a(t),n((null==t?void 0:t.user)??null),i(!1),(null==t?void 0:t.user)&&"SIGNED_IN"===e&&!o.current.has(t.user.id)&&(o.current.add(t.user.id),setTimeout(()=>{jk(t.user.id)},500)),"SIGNED_OUT"===e&&o.current.clear()});return()=>{e.unsubscribe()}},[]),s?ve.jsx("div",{className:"min-h-screen flex items-center justify-center",children:ve.jsx(Lp,{className:"h-8 w-8 animate-spin text-primary"})}):ve.jsx(kk.Provider,{value:{user:t,session:r,loading:s},children:e})}function Sk(){const e=Y.useContext(kk);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}let Ak=0;const Ek=new Map,Nk=e=>{if(Ek.has(e))return;const t=setTimeout(()=>{Ek.delete(e),Ok({type:"REMOVE_TOAST",toastId:e})},1e6);Ek.set(e,t)},Ik=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{const{toastId:n}=t;
2return n?Nk(n):e.toasts.forEach(e=>{Nk(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},Tk=[];let Ck={toasts:[]};function Ok(e){Ck=Ik(Ck,e),Tk.forEach(e=>{e(Ck)})}function Pk({...e}){const t=(Ak=(Ak+1)%Number.MAX_SAFE_INTEGER,Ak.toString()),n=()=>Ok({type:"DISMISS_TOAST",toastId:t});return Ok({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:e=>{e||n()}}}),{id:t,dismiss:n,update:e=>Ok({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function Rk(){const[e,t]=Y.useState(Ck);return Y.useEffect(()=>(Tk.push(t),()=>{const e=Tk.indexOf(t);e>-1&&Tk.splice(e,1)}),[e]),{...e,toast:Pk,dismiss:e=>Ok({type:"DISMISS_TOAST",toastId:e})}}const Fk=new Map,Dk=new Map,Lk=6e4;"undefined"!=typeof window&&setInterval(()=>{const e=Date.now(),t=[];if(Dk.forEach((n,r)=>{e-n.timestamp>=Lk&&t.push(r)}),t.forEach(e=>Dk.delete(e)),Dk.size>50){const e=Array.from(Dk.entries()).sort((e,t)=>e[1].timestamp-t[1].timestamp);
2e.slice(0,Dk.size-50).forEach(([e])=>Dk.delete(e))}},3e5);const Mk=new Map,zk=new Map;function $k(e){if(!e)return Dk.clear(),void zk.clear();Array.from(Dk.keys()).filter(t=>t.startsWith(`${e}-`)).forEach(e=>{Dk.delete(e),zk.delete(e)})}function Uk(){const{user:e,session:t}=Sk(),[n,r]=Y.useState(()=>{if(!e||!(null==t?void 0:t.access_token))return{plan:"free",status:"inactive",isActive:!1,isTrial:!1};const n=`${e.id}-${t.access_token.substring(0,20)}`,r=Dk.get(n),a=Date.now();return r&&a-r.timestamp<Lk?r.data:null}),[a,s]=Y.useState(!n),[i,o]=Y.useState(null),l=Y.useCallback(async e=>{if(Fk.has(e))try{const t=await Fk.get(e);return r(t),void s(!1)}catch(sM){}const n=(async()=>{try{s(!0),o(null);const n=null==t?void 0:t.access_token;if(!n)throw new Error("Missing authentication token");const r=await fetch("/api/subscriptions/status",{headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},credentials:"include"});if(!r.ok)throw new Error("Failed to fetch subscription status");const a=(await r.json()).subscription;return Dk.set(e,{data:a,timestamp:Date.now()}),a}catch(sM){throw console.error("Error fetching subscription:",sM),o(sM.message||"Failed to load subscription status"),sM}finally{s(!1)}})();Fk.set(e,n);try{const e=await n;r(e)}finally{Fk.delete(e)}},[null==t?void 0:t.access_token]);return Y.useEffect(()=>{if(!e||!(null==t?void 0:t.access_token))return r({plan:"free",status:"inactive",isActive:!1,isTrial:!1}),void s(!1);const n=`${e.id}-${t.access_token.substring(0,20)}`,a=Dk.get(n),i=Date.now();if(a&&i-a.timestamp<Lk)return r(a.data),void s(!1);if("undefined"!=typeof document&&document.hidden)return;if(Fk.has(n))return void Fk.get(n).then(e=>{r(e),s(!1)}).catch(()=>{});if(i-(zk.get(n)||0)<3e3)return;const o=Mk.get(n);o&&(clearTimeout(o),Mk.delete(n));const c=setTimeout(()=>{Mk.delete(n),zk.set(n,Date.now()),l(n)},3e3);return Mk.set(n,c),()=>{}},[null==t?void 0:t.access_token,e,l]),Y.useEffect(()=>{if(!e||!(null==t?void 0:t.access_token))return;const n=()=>{const n=`${e.id}-${t.access_token.substring(0,20)}`;$k(e.id),l(n)};return window.addEventListener("subscription:refresh",n),()=>window.removeEventListener("subscription:refresh",n)},[e,null==t?void 0:t.access_token,l]),{subscription:n,loading:a,error:i,refetch:()=>{if(e&&(null==t?void 0:t.access_token)){const n=`${e.id}-${t.access_token.substring(0,20)}`;$k(e.id),l(n)}}}}const Vk="fa-client-session",Bk=36e5;function Wk(e){if(!e)return null;try{const t=JSON.parse(e);if(t&&"string"==typeof t.id&&"number"==typeof t.expiresAt)return t}catch(t){console.warn("[session] Failed to parse stored client session",t)}return null}function qk(){var e;if("undefined"!=typeof window&&(null==(e=window.crypto)?void 0:e.randomUUID))return window.crypto.randomUUID();const t=Math.random().toString(36).slice(2,10);return`sess_${Date.now().toString(36)}_${t}`}function Kk(e=36e5){if("undefined"==typeof window||void 0===window.localStorage)return"server-session";const t=window.localStorage,n=Wk(t.getItem(Vk)),r=Date.now(),a=Number.isFinite(e)&&e>0?e:Bk;if(n&&n.id){if(n.expiresAt>r){if(n.expiresAt-r<a/2){const e={id:n.id,expiresAt:r+a};t.setItem(Vk,JSON.stringify(e))}return n.id}t.removeItem(Vk)}const s=qk(),i={id:s,expiresAt:r+a};return t.setItem(Vk,JSON.stringify(i)),s}function Hk(e=36e5){if("undefined"==typeof window||void 0===window.localStorage)return;const t=window.localStorage,n=Date.now(),r=Number.isFinite(e)&&e>0?e:Bk,a=Wk(t.getItem(Vk));if(a&&a.id){const e={id:a.id,expiresAt:n+r};t.setItem(Vk,JSON.stringify(e))}else{const e=qk();t.setItem(Vk,JSON.stringify({id:e,expiresAt:n+r}))}}const Gk="faceaura_daily_scans",Zk=new Map,Jk=new Map,Qk=3e4;"undefined"!=typeof window&&setInterval(()=>{const e=Date.now(),t=[];
2if(Jk.forEach((n,r)=>{e-n.timestamp>=Qk&&t.push(r)}),t.forEach(e=>{Jk.delete(e),Xk.delete(e)}),Jk.size>100){const e=Array.from(Jk.entries()).sort((e,t)=>e[1].timestamp-t[1].timestamp);e.slice(0,Jk.size-100).forEach(([e])=>{Jk.delete(e),Xk.delete(e)})}},3e5);const Yk=new Map,Xk=new Map,ej=new Set;function tj(e){Xk.set(e,(Xk.get(e)||0)+1),ej.forEach(e=>e())}function nj(e){return{...e,creditBalance:e.creditBalance??0}}function rj(){const e=new Date;return e.setDate(e.getDate()+1),e.setHours(0,0,0,0),e}function aj(){const e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}`}function sj(){const e=new Date,t=new Date(e.getFullYear(),e.getMonth()+1,1);return t.setHours(0,0,0,0),t}function ij(e,t){try{const n=localStorage.getItem(Gk),r=(new Date).toDateString();if(!n)return{canScan:!0,scansLeft:e,isUnlimited:!1,resetTime:rj(),userType:t};const{date:a,count:s}=JSON.parse(n);if(a!==r)return{canScan:!0,scansLeft:e,isUnlimited:!1,resetTime:rj(),userType:t};const i=Math.max(0,e-s);return{canScan:i>0,scansLeft:i,isUnlimited:!1,resetTime:rj(),userType:t}}catch(n){return console.error("Error checking scan limit:",n),{canScan:!0,scansLeft:e,isUnlimited:!1,resetTime:rj(),userType:t}}}function oj(e){const{user:t,subscription:n}=e;if(t){const e="[email protected]"===t.email,r="pro"===(null==n?void 0:n.plan)&&(null==n?void 0:n.isActive),a="max"===(null==n?void 0:n.plan)&&(null==n?void 0:n.isActive),s="starter"===(null==n?void 0:n.plan)&&(null==n?void 0:n.isActive);return e||r||a?{canScan:!0,scansLeft:-1,isUnlimited:!0,userType:"pro"}:s?function(e,t){try{const n=localStorage.getItem(Gk),r=aj();if(!n)return{canScan:!0,scansLeft:e,isUnlimited:!1,userType:t,resetTime:sj()};const a=JSON.parse(n);let s,i;if(a.month?(s=a.month,i=a.count||0):(s=r,i=0),s!==r)return{canScan:!0,scansLeft:e,isUnlimited:!1,userType:t,resetTime:sj()};const o=Math.max(0,e-i);return{canScan:o>0,scansLeft:o,isUnlimited:!1,userType:t,resetTime:sj()}}catch(n){return console.error("Error checking monthly limit:",n),{canScan:!0,scansLeft:e,isUnlimited:!1,userType:t,resetTime:sj()}}}(120,"starter"):function(e,t){try{const n=localStorage.getItem(Gk),r=aj();if(!n)return{canScan:!0,scansLeft:e,isUnlimited:!1,userType:t,resetTime:sj()};const a=JSON.parse(n);let s,i;if(a.month?(s=a.month,i=a.count||0):(s=r,i=0),s!==r)return{canScan:!0,scansLeft:e,isUnlimited:!1,userType:t,resetTime:sj()};const o=Math.max(0,e-i);return{canScan:o>0,scansLeft:o,isUnlimited:!1,userType:t,resetTime:sj()}}catch(n){return console.error("Error checking monthly limit for free user:",n),{canScan:!0,scansLeft:e,isUnlimited:!1,userType:t,resetTime:sj()}}}(5,"free")}return ij(2,"guest")}async function lj(e={}){var t,n;const r=`${(null==(t=e.user)?void 0:t.id)||"guest"}-${(null==(n=e.subscription)?void 0:n.plan)||"free"}`,a=Jk.get(r),s=Date.now();if(a&&s-a.timestamp<Qk)return nj(a.data);if(Zk.has(r))return Zk.get(r);const i=(async()=>{try{const t="undefined"!=typeof window?Kk():"server-session",n=new URLSearchParams({sessionId:t}),a=await fetch(`/api/scans/limit-status?${n.toString()}`,{credentials:"include",headers:e.accessToken?{Authorization:`Bearer ${e.accessToken}`}:void 0});if(a.ok){const e=await a.json();if(e.success&&e.limitInfo){const t=nj({canScan:e.limitInfo.canScan,scansLeft:e.limitInfo.scansLeft,isUnlimited:e.limitInfo.isUnlimited,resetTime:e.limitInfo.resetTime?new Date(e.limitInfo.resetTime):void 0,userType:e.limitInfo.userType,creditBalance:e.limitInfo.creditBalance??0});return Jk.set(r,{data:t,timestamp:Date.now()}),tj(r),t}}}catch(t){console.warn("Failed to fetch scan limit from API, falling back to localStorage:",t)}return nj(oj(e))})();Zk.set(r,i);try{const e=await i;return tj(r),e}finally{Zk.delete(r)}}function cj(){const{user:e,session:t}=Sk(),{subscription:n,loading:r}=Uk(),[a,s]=Y.useState(()=>{if(r)return e?{canScan:!0,scansLeft:5,isUnlimited:!1,userType:"free",resetTime:sj()}:{canScan:!0,scansLeft:2,isUnlimited:!1,userType:"guest"};const t=`${(null==e?void 0:e.id)||"guest"}-${(null==n?void 0:n.plan)||"free"}`,a=Jk.get(t),s=Date.now();return a&&s-a.timestamp<Qk?nj(a.data):nj({canScan:!0,scansLeft:2,isUnlimited:!1,userType:"guest"})});return Y.useEffect(()=>{const t=`${(null==e?void 0:e.id)||"guest"}-${(null==n?void 0:n.plan)||"free"}`;var r;return r=()=>{const e=Jk.get(t),n=Date.now();e&&n-e.timestamp<Qk&&s(nj(e.data))},ej.add(r),()=>ej.delete(r)},[e,n]),Y.useEffect(()=>{if(r)return;const a=`${(null==e?void 0:e.id)||"guest"}-${(null==n?void 0:n.plan)||"free"}`;
2if(!e){const e=Jk.get(a),t=Date.now();return e&&t-e.timestamp<Qk?void s(nj(e.data)):void s(nj(ij(2,"guest")))}(()=>{const r=Jk.get(a),i=Date.now();r&&i-r.timestamp<Qk?s(nj(r.data)):"undefined"!=typeof document&&document.hidden||(Zk.has(a)?Zk.get(a).then(e=>s(e)).catch(()=>{}):(Yk.set(a,Date.now()),lj({user:e,accessToken:null==t?void 0:t.access_token,subscription:n}).then(e=>{s(nj(e))})))})()},[e,null==t?void 0:t.access_token,n,r]),Y.useEffect(()=>{const t=()=>{const t=`${(null==e?void 0:e.id)||"guest"}-${(null==n?void 0:n.plan)||"free"}`;Jk.delete(t),Yk.delete(t),tj(t)};return window.addEventListener("subscription:refresh",t),()=>window.removeEventListener("subscription:refresh",t)},[null==e?void 0:e.id,null==n?void 0:n.plan]),Y.useEffect(()=>{const t=t=>{const r=t.detail||{},a=`${(null==e?void 0:e.id)||"guest"}-${(null==n?void 0:n.plan)||"free"}`;Jk.delete(a),Yk.delete(a),Xk.delete(a);const i=r.userType||(e?"free":"guest"),o="guest"===i?rj():sj(),l=nj({canScan:!1,scansLeft:Number.isFinite(Number(r.scansLeft))?Number(r.scansLeft):0,isUnlimited:!1,resetTime:r.resetTime?new Date(r.resetTime):o,userType:i,creditBalance:Number.isFinite(Number(r.creditBalance))?Number(r.creditBalance):0});s(l),tj(a)};return window.addEventListener("scan-limit:blocked",t),()=>window.removeEventListener("scan-limit:blocked",t)},[e,null==n?void 0:n.plan]),a}function uj(e,t){const n=e?[`${e}-`]:[];if(e&&t&&n.push(`${e}-${t}`),!n.length)return Jk.clear(),Xk.clear(),Yk.clear(),void tj("global");Array.from(Jk.keys()).filter(e=>n.some(t=>e.startsWith(t))).forEach(e=>{Jk.delete(e),Xk.delete(e),Yk.delete(e),tj(e)})}function dj(e){try{const t=localStorage.getItem(Gk);if("free"===e||"starter"===e){const e=new Date,n=`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}`;if(!t)return void localStorage.setItem(Gk,JSON.stringify({month:n,count:1}));const r=JSON.parse(t);if(r.date)return void localStorage.setItem(Gk,JSON.stringify({month:n,count:1}));const{month:a,count:s}=r;a!==n?localStorage.setItem(Gk,JSON.stringify({month:n,count:1})):localStorage.setItem(Gk,JSON.stringify({month:n,count:(s||0)+1}))}else{const e=(new Date).toDateString();if(!t)return void localStorage.setItem(Gk,JSON.stringify({date:e,count:1}));const n=JSON.parse(t);if(n.month)return void localStorage.setItem(Gk,JSON.stringify({date:e,count:1}));const{date:r,count:a}=n;r!==e?localStorage.setItem(Gk,JSON.stringify({date:e,count:1})):localStorage.setItem(Gk,JSON.stringify({date:e,count:a+1}))}}catch(t){console.error("Error recording scan:",t)}lj()}const hj=["top","right","bottom","left"],fj=Math.min,pj=Math.max,mj=Math.round,gj=Math.floor,yj=e=>({x:e,y:e}),vj={left:"right",right:"left",bottom:"top",top:"bottom"},bj={start:"end",end:"start"};function xj(e,t,n){return pj(e,fj(t,n))}function wj(e,t){return"function"==typeof e?e(t):e}function kj(e){return e.split("-")[0]}function jj(e){return e.split("-")[1]}function _j(e){return"x"===e?"y":"x"}function Sj(e){return"y"===e?"height":"width"}const Aj=new Set(["top","bottom"]);function Ej(e){return Aj.has(kj(e))?"y":"x"}function Nj(e){return _j(Ej(e))}function Ij(e){return e.replace(/start|end/g,e=>bj[e])}const Tj=["left","right"],Cj=["right","left"],Oj=["top","bottom"],Pj=["bottom","top"];function Rj(e,t,n,r){const a=jj(e);let s=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Cj:Tj:t?Tj:Cj;case"left":case"right":return t?Oj:Pj;default:return[]}}(kj(e),"start"===n,r);return a&&(s=s.map(e=>e+"-"+a),t&&(s=s.concat(s.map(Ij)))),s}function Fj(e){return e.replace(/left|right|bottom|top/g,e=>vj[e])}function Dj(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Lj(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Mj(e,t,n){let{reference:r,floating:a}=e;const s=Ej(t),i=Nj(t),o=Sj(i),l=kj(t),c="y"===s,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,h=r[o]/2-a[o]/2;let f;switch(l){case"top":f={x:u,y:r.y-a.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-a.width,y:d};break;default:f={x:r.x,y:r.y}}switch(jj(t)){case"start":f[i]-=h*(n&&c?-1:1);break;case"end":f[i]+=h*(n&&c?-1:1)}return f}async function zj(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:s,rects:i,elements:o,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=wj(t,e),p=Dj(f),m=o[h?"floating"===d?"reference":"floating":d],g=Lj(await s.getClippingRect
vendor: 4,179 bytes, line 2
2({element:null==(n=await(null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(o.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(o.floating)),b=await(null==s.isElement?void 0:s.isElement(v))&&await(null==s.getScale?void 0:s.getScale(v))||{x:1,y:1},x=Lj(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-x.top+p.top)/b.y,bottom:(x.bottom-g.bottom+p.bottom)/b.y,left:(g.left-x.left+p.left)/b.x,right:(x.right-g.right+p.right)/b.x}}function $j(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Uj(e){return hj.some(t=>e[t]>=0)}const Vj=new Set(["left","top"]);function Bj(){return"undefined"!=typeof window}function Wj(e){return Hj(e)?(e.nodeName||"").toLowerCase():"#document"}function qj(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Kj(e){var t;return null==(t=(Hj(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Hj(e){return!!Bj()&&(e instanceof Node||e instanceof qj(e).Node)}function Gj(e){return!!Bj()&&(e instanceof Element||e instanceof qj(e).Element)}function Zj(e){return!!Bj()&&(e instanceof HTMLElement||e instanceof qj(e).HTMLElement)}function Jj(e){return!(!Bj()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof qj(e).ShadowRoot)}const Qj=new Set(["inline","contents"]);function Yj(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=u_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Qj.has(a)}const Xj=new Set(["table","td","th"]);function e_(e){return Xj.has(Wj(e))}const t_=[":popover-open",":modal"];function n_(e){return t_.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const r_=["transform","translate","scale","rotate","perspective"],a_=["transform","translate","scale","rotate","perspective","filter"],s_=["paint","layout","strict","content"];function i_(e){const t=o_(),n=Gj(e)?u_(e):e;return r_.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||a_.some(e=>(n.willChange||"").includes(e))||s_.some(e=>(n.contain||"").includes(e))}function o_(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const l_=new Set(["html","body","#document"]);function c_(e){return l_.has(Wj(e))}function u_(e){return qj(e).getComputedStyle(e)}function d_(e){return Gj(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function h_(e){if("html"===Wj(e))return e;const t=e.assignedSlot||e.parentNode||Jj(e)&&e.host||Kj(e);return Jj(t)?t.host:t}function f_(e){const t=h_(e);return c_(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zj(t)&&Yj(t)?t:f_(t)}function p_(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=f_(e),s=a===(null==(r=e.ownerDocument)?void 0:r.body),i=qj(a);if(s){const e=m_(i);return t.concat(i,i.visualViewport||[],Yj(a)?a:[],e&&n?p_(e):[])}return t.concat(a,p_(a,[],n))}function m_(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function g_(e){const t=u_(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Zj(e),s=a?e.offsetWidth:n,i=a?e.offsetHeight:r,o=mj(n)!==s||mj(r)!==i;return o&&(n=s,r=i),{width:n,height:r,$:o}}function y_(e){return Gj(e)?e:e.contextElement}function v_(e){const t=y_(e);if(!Zj(t))return yj(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:s}=g_(t);let i=(s?mj(n.width):n.width)/r,o=(s?mj(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),o&&Number.isFinite(o)||(o=1),{x:i,y:o}}const b_=yj(0);function x_(e){const t=qj(e);return o_()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:b_}function w_(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),s=y_(e);let i=yj(1);
vendor: 5,054 bytes, line 2
2t&&(r?Gj(r)&&(i=v_(r)):i=v_(e));const o=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==qj(e))&&t}(s,n,r)?x_(s):yj(0);let l=(a.left+o.x)/i.x,c=(a.top+o.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(s){const e=qj(s),t=r&&Gj(r)?qj(r):r;let n=e,a=m_(n);for(;a&&r&&t!==n;){const e=v_(a),t=a.getBoundingClientRect(),r=u_(a),s=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=s,c+=i,n=qj(a),a=m_(n)}}return Lj({width:u,height:d,x:l,y:c})}function k_(e,t){const n=d_(e).scrollLeft;return t?t.left+n:w_(Kj(e)).left+n}function j_(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-k_(e,n),y:n.top+t.scrollTop}}const __=new Set(["absolute","fixed"]);function S_(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=qj(e),r=Kj(e),a=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,o=0,l=0;if(a){s=a.width,i=a.height;const e=o_();(!e||e&&"fixed"===t)&&(o=a.offsetLeft,l=a.offsetTop)}const c=k_(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-a);i<=25&&(s-=i)}else c<=25&&(s+=c);return{width:s,height:i,x:o,y:l}}(e,n);else if("document"===t)r=function(e){const t=Kj(e),n=d_(e),r=e.ownerDocument.body,a=pj(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pj(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+k_(e);const o=-n.scrollTop;return"rtl"===u_(r).direction&&(i+=pj(t.clientWidth,r.clientWidth)-a),{width:a,height:s,x:i,y:o}}(Kj(e));else if(Gj(t))r=function(e,t){const n=w_(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,s=Zj(e)?v_(e):yj(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:a*s.x,y:r*s.y}}(t,n);else{const n=x_(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Lj(r)}function A_(e,t){const n=h_(e);return!(n===t||!Gj(n)||c_(n))&&("fixed"===u_(n).position||A_(n,t))}function E_(e,t,n){const r=Zj(t),a=Kj(t),s="fixed"===n,i=w_(e,!0,s,t);let o={scrollLeft:0,scrollTop:0};const l=yj(0);function c(){l.x=k_(a)}if(r||!r&&!s)if(("body"!==Wj(t)||Yj(a))&&(o=d_(t)),r){const e=w_(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&c();s&&!r&&a&&c();const u=!a||r||s?yj(0):j_(a,o);return{x:i.left+o.scrollLeft-l.x-u.x,y:i.top+o.scrollTop-l.y-u.y,width:i.width,height:i.height}}function N_(e){return"static"===u_(e).position}function I_(e,t){if(!Zj(e)||"fixed"===u_(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Kj(e)===n&&(n=n.ownerDocument.body),n}function T_(e,t){const n=qj(e);if(n_(e))return n;if(!Zj(e)){let t=h_(e);for(;t&&!c_(t);){if(Gj(t)&&!N_(t))return t;t=h_(t)}return n}let r=I_(e,t);for(;r&&e_(r)&&N_(r);)r=I_(r,t);return r&&c_(r)&&N_(r)&&!i_(r)?n:r||function(e){let t=h_(e);for(;Zj(t)&&!c_(t);){if(i_(t))return t;if(n_(t))return null;t=h_(t)}return null}(e)||n}const C_={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const s="fixed"===a,i=Kj(r),o=!!t&&n_(t.floating);if(r===i||o&&s)return n;let l={scrollLeft:0,scrollTop:0},c=yj(1);const u=yj(0),d=Zj(r);if((d||!d&&!s)&&(("body"!==Wj(r)||Yj(i))&&(l=d_(r)),Zj(r))){const e=w_(r);c=v_(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const h=!i||d||s?yj(0):j_(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:Kj,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const s=[..."clippingAncestors"===n?n_(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=p_(e,[],!1).filter(e=>Gj(e)&&"body"!==Wj(e)),a=null;const s="fixed"===u_(e).position;let i=s?h_(e):e;for(;Gj(i)&&!c_(i);){const t=u_(i),n=i_(i);n||"fixed"!==t.position||(a=null),(s?!n&&!a:!n&&"static"===t.position&&a&&__.has(a.position)||Yj(i)&&!n&&A_(e,i))?r=r.filter(e=>e!==i):a=t,i=h_(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=s[0],o=s.reduce((e,n)=>{const r=S_(t,n,a);return e.top=pj(r.top,e.top),e.right=fj(r.right,e.right),e.bottom=fj(r.bottom,e.bottom),e.left=pj(r.left,e.left),e},S_(t,i,a));return{width:o.right-o.left,height:o.bottom-o.top,x:o.left,y:o.top}},getOffsetParent:T_,getElementRects:async function(e){const t=this.getOffsetParent||T_,n=this.getDimensions,r=await n(e.floating);return{reference:E_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=g_(e);return{width:t,height:n}},getScale:v_,isElement:Gj,isRTL:function(e){return"rtl"===u_(e).direction}};function O_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function P_(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:o="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=y_(e),u=a||s?[...c?p_(c):[],...p_(t)]:[];
vendor: 4,462 bytes, line 2
2u.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});const d=c&&o?function(e,t){let n,r=null;const a=Kj(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(o,l){void 0===o&&(o=!1),void 0===l&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=c;if(o||t(),!h||!f)return;const p={rootMargin:-gj(d)+"px "+-gj(a.clientWidth-(u+h))+"px "+-gj(a.clientHeight-(d+f))+"px "+-gj(u)+"px",threshold:pj(0,fj(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||O_(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...p,root:a.ownerDocument})}catch(y){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),s}(c,n):null;let h,f=-1,p=null;i&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let m=l?w_(e):null;return l&&function t(){const r=w_(e);m&&!O_(m,r)&&n();m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{a&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const R_=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:s,placement:i,middlewareData:o}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,s=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=kj(n),o=jj(n),l="y"===Ej(n),c=Vj.has(i)?-1:1,u=s&&l?-1:1,d=wj(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&"number"==typeof p&&(f="end"===o?-1*p:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}(t,e);return i===(null==(n=o.offset)?void 0:n.placement)&&null!=(r=o.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:s+l.y,data:{...l,placement:i}}}}},F_=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:o={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=wj(e,t),c={x:n,y:r},u=await zj(t,l),d=Ej(kj(a)),h=_j(d);let f=c[h],p=c[d];if(s){const e="y"===h?"bottom":"right";f=xj(f+u["y"===h?"top":"left"],f,f-u[e])}if(i){const e="y"===d?"bottom":"right";p=xj(p+u["y"===d?"top":"left"],p,p-u[e])}const m=o.fn({...t,[h]:f,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:s,[d]:i}}}}}},D_=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:s,rects:i,initialPlacement:o,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=wj(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const y=kj(a),v=Ej(o),b=kj(o)===o,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=h||(b||!m?[Fj(o)]:function(e){const t=Fj(e);return[Ij(e),t,Ij(t)]}(o)),k="none"!==p;!h&&k&&w.push(...Rj(o,m,p,x));const j=[o,...w],_=await zj(t,g),S=[];let A=(null==(r=s.flip)?void 0:r.overflows)||[];if(u&&S.push(_[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=jj(e),a=Nj(e),s=Sj(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Fj(i)),[i,Fj(i)]}(a,i,x);S.push(_[e[0]],_[e[1]])}if(A=[...A,{placement:a,overflows:S}],!S.every(e=>e<=0)){var E,N;const e=((null==(E=s.flip)?void 0:E.index)||0)+1,t=j[e];if(t){if(!("alignment"===d&&v!==Ej(t))||A.every(e=>Ej(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:A},reset:{placement:t}}}let n=null==(N=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:N.placement;if(!n)switch(f){case"bestFit":{var I;const e=null==(I=A.filter(e=>{if(k){const t=Ej(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=o}if(a!==n)return{reset:{placement:n}}}return{}}}},L_=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:s,platform:i,elements:o}=t,{apply:l=()=>{},...c}=wj(e,t),u=await zj(t,c),d=kj(a),h=jj(a),f="y"===Ej(a),{width:p,height:m}=s.floating;let g,y;
vendor: 4,721 bytes, line 2
2"top"===d||"bottom"===d?(g=d,y=h===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(y=d,g="end"===h?"top":"bottom");const v=m-u.top-u.bottom,b=p-u.left-u.right,x=fj(m-u[g],v),w=fj(p-u[y],b),k=!t.middlewareData.shift;let j=x,_=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(j=v),k&&!h){const e=pj(u.left,0),t=pj(u.right,0),n=pj(u.top,0),r=pj(u.bottom,0);f?_=p-2*(0!==e||0!==t?e+t:pj(u.left,u.right)):j=m-2*(0!==n||0!==r?n+r:pj(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:j});const S=await i.getDimensions(o.floating);return p!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},M_=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=wj(e,t);switch(r){case"referenceHidden":{const e=$j(await zj(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Uj(e)}}}case"escaped":{const e=$j(await zj(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Uj(e)}}}default:return{}}}}},z_=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:s,platform:i,elements:o,middlewareData:l}=t,{element:c,padding:u=0}=wj(e,t)||{};if(null==c)return{};const d=Dj(u),h={x:n,y:r},f=Nj(a),p=Sj(f),m=await i.getDimensions(c),g="y"===f,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=s.reference[p]+s.reference[f]-h[f]-s.floating[p],w=h[f]-s.reference[f],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let j=k?k[b]:0;j&&await(null==i.isElement?void 0:i.isElement(k))||(j=o.floating[b]||s.floating[p]);const _=x/2-w/2,S=j/2-m[p]/2-1,A=fj(d[y],S),E=fj(d[v],S),N=A,I=j-m[p]-E,T=j/2-m[p]/2+_,C=xj(N,T,I),O=!l.arrow&&null!=jj(a)&&T!==C&&s.reference[p]/2-(T<N?A:E)-m[p]/2<0,P=O?T<N?T-N:T-I:0;return{[f]:h[f]+P,data:{[f]:C,centerOffset:T-C-P,...O&&{alignmentOffset:P}},reset:O}}}),$_=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:s,middlewareData:i}=t,{offset:o=0,mainAxis:l=!0,crossAxis:c=!0}=wj(e,t),u={x:n,y:r},d=Ej(a),h=_j(d);let f=u[h],p=u[d];const m=wj(o,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===h?"height":"width",t=s.reference[h]-s.floating[e]+g.mainAxis,n=s.reference[h]+s.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var y,v;const e="y"===h?"width":"height",t=Vj.has(kj(a)),n=s.reference[d]-s.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=s.reference[d]+s.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[h]:f,[d]:p}}}},U_=(e,t,n)=>{const r=new Map,a={platform:C_,...n},s={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,o=s.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=Mj(c,r,l),h=r,f={},p=0;for(let m=0;m<o.length;m++){const{name:n,fn:s}=o[m],{x:g,y:y,data:v,reset:b}=await s({x:u,y:d,initialPlacement:r,placement:h,strategy:a,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,f={...f,[n]:{...f[n],...v}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:u,y:d}=Mj(c,h,l))),m=-1)}return{x:u,y:d,placement:h,strategy:a,middlewareData:f}})(e,t,{...a,platform:s})};var V_="undefined"!=typeof document?Y.useLayoutEffect:function(){};function B_(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!B_(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!==r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!B_(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function W_(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function q_(e,t){const n=W_(e);return Math.round(t*n)/n}function K_(e){const t=Y.useRef(e);return V_(()=>{t.current=e}),t}const H_=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?z_({element:n.current,padding:r}).fn(t):{}:n?z_({element:n,padding:r}).fn(t):{};var a}}),G_=(e,t)=>({...R_(e),options:[e,t]}),Z_=(e,t)=>({...F_(e),options:[e,t]}),J_=(e,t)=>
2({...$_(e),options:[e,t]}),Q_=(e,t)=>({...D_(e),options:[e,t]}),Y_=(e,t)=>({...L_(e),options:[e,t]}),X_=(e,t)=>({...M_(e),options:[e,t]}),eS=(e,t)=>({...H_(e),options:[e,t]});var tS=Y.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...s}=e;return ve.jsx(Ph.svg,{...s,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:ve.jsx("polygon",{points:"0,0 30,0 15,10"})})});tS.displayName="Arrow";var nS=tS;function rS(e){const[t,n]=Y.useState(void 0);return Fh(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let a,s;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,s=t.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}var aS="Popper",[sS,iS]=wh(aS),[oS,lS]=sS(aS),cS=e=>{const{__scopePopper:t,children:n}=e,[r,a]=Y.useState(null);return ve.jsx(oS,{scope:t,anchor:r,onAnchorChange:a,children:n})};cS.displayName=aS;var uS="PopperAnchor",dS=Y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,s=lS(uS,n),i=Y.useRef(null),o=Ah(t,i),l=Y.useRef(null);return Y.useEffect(()=>{const e=l.current;l.current=(null==r?void 0:r.current)||i.current,e!==l.current&&s.onAnchorChange(l.current)}),r?null:ve.jsx(Ph.div,{...a,ref:o})});dS.displayName=uS;var hS="PopperContent",[fS,pS]=sS(hS),mS=Y.forwardRef((e,t)=>{var n,r,a,s,i,o;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:h=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:x,...w}=e,k=lS(hS,l),[j,_]=Y.useState(null),S=Ah(t,e=>_(e)),[A,E]=Y.useState(null),N=rS(A),I=(null==N?void 0:N.width)??0,T=(null==N?void 0:N.height)??0,C=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],R=P.length>0,F={padding:O,boundary:P.filter(bS),altBoundary:R},{refs:D,floatingStyles:L,placement:M,isPositioned:z,middlewareData:$}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:i}={},transform:o=!0,whileElementsMounted:l,open:c}=e,[u,d]=Y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=Y.useState(r);B_(h,r)||f(r);const[p,m]=Y.useState(null),[g,y]=Y.useState(null),v=Y.useCallback(e=>{e!==k.current&&(k.current=e,m(e))},[]),b=Y.useCallback(e=>{e!==j.current&&(j.current=e,y(e))},[]),x=s||p,w=i||g,k=Y.useRef(null),j=Y.useRef(null),_=Y.useRef(u),S=null!=l,A=K_(l),E=K_(a),N=K_(c),I=Y.useCallback(()=>{if(!k.current||!j.current)return;const e={placement:t,strategy:n,middleware:h};E.current&&(e.platform=E.current),U_(k.current,j.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};T.current&&!B_(_.current,t)&&(_.current=t,Sd.flushSync(()=>{d(t)}))})},[h,t,n,E,N]);V_(()=>{!1===c&&_.current.isPositioned&&(_.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const T=Y.useRef(!1);V_(()=>(T.current=!0,()=>{T.current=!1}),[]),V_(()=>{if(x&&(k.current=x),w&&(j.current=w),x&&w){if(A.current)return A.current(x,w,I);I()}},[x,w,I,A,S]);const C=Y.useMemo(()=>({reference:k,floating:j,setReference:v,setFloating:b}),[v,b]),O=Y.useMemo(()=>({reference:x,floating:w}),[x,w]),P=Y.useMemo(()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=q_(O.floating,u.x),r=q_(O.floating,u.y);return o?{...e,transform:"translate("+t+"px, "+r+"px)",...W_(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,o,O.floating,u.x,u.y]);return Y.useMemo(()=>({...u,update:I,refs:C,elements:O,floatingStyles:P}),[u,I,C,O,P])}({strategy:"fixed",placement:C,whileElementsMounted:(...e)=>P_(...e,{animationFrame:"always"===b}),elements:{reference:k.anchor},middleware:[G_({mainAxis:u+T,alignmentAxis:h}),p&&Z_({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?J_():void 0,...F}),p&&Q_({...F}),Y_({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:s}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${s}px`)}}),A&&eS({element:A,padding:f}),xS({arrowWidth:I,arrowHeight:T}),v&&X_({strategy:"referenceHidden",...F})]}),[U,V]=wS(M),B=Kh(x);Fh(()=>{z&&(null==B||B())},[z,B]);const W=null==(n=$.arrow)?void 0:n.x,q=null==(r=$.arrow)?void 0:r.y,K=0!==(null==(a=$.arrow)?void 0:a.centerOffset),[H,G]=Y.useState();return Fh(()=>{j&&G(window.getComputedStyle(j).zIndex)},[j]),ve.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:z?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:H,"--radix-popper-transform-origin":[null==(s=$.transformOrigin)?void 0:s.x,null==(i=$.transformOrigin)?void 0:i.y].join(" "),...(null==(o=$.hide)?void 0:o.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:ve.jsx(fS,{scope:l,placedSide:U,onArrowChange:E,arrowX:W,arrowY:q,shouldHideArrow:K,children:ve.jsx(Ph.div,{"data-side":U,"data-align":V,...w,ref:S,style:{...w.style,animation:z?void 0:"none"}})})})});mS.displayName=hS;var gS="PopperArrow",yS={top:"bottom",right:"left",bottom:"top",left:"r
2ight"},vS=Y.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,a=pS(gS,n),s=yS[a.placedSide];return ve.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:ve.jsx(nS,{...r,ref:t,style:{...r.style,display:"block"}})})});function bS(e){return null!==e}vS.displayName=gS;var xS=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:s,rects:i,middlewareData:o}=t,l=0!==(null==(n=o.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,h]=wS(s),f={start:"0%",center:"50%",end:"100%"}[h],p=((null==(r=o.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=o.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?f:`${p}px`,y=-u+"px"):"top"===d?(g=l?f:`${p}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?f:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?f:`${m}px`),{data:{x:g,y:y}}}});function wS(e){const[t,n="center"]=e.split("-");return[t,n]}var kS=cS,jS=dS,_S=mS,SS=vS,AS="rovingFocusGroup.onEntryFocus",ES={bubbles:!1,cancelable:!0},NS="RovingFocusGroup",[IS,TS,CS]=qh(NS),[OS,PS]=wh(NS,[CS]),[RS,FS]=OS(NS),DS=Y.forwardRef((e,t)=>ve.jsx(IS.Provider,{scope:e.__scopeRovingFocusGroup,children:ve.jsx(IS.Slot,{scope:e.__scopeRovingFocusGroup,children:ve.jsx(LS,{...e,ref:t})})}));DS.displayName=NS;var LS=Y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:o,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,h=Y.useRef(null),f=Ah(t,h),p=zh(s),[m,g]=Lh({prop:i,defaultProp:o??null,onChange:l,caller:NS}),[y,v]=Y.useState(!1),b=Kh(c),x=TS(n),w=Y.useRef(!1),[k,j]=Y.useState(0);return Y.useEffect(()=>{const e=h.current;if(e)return e.addEventListener(AS,b),()=>e.removeEventListener(AS,b)},[b]),ve.jsx(RS,{scope:n,orientation:r,dir:p,loop:a,currentTabStopId:m,onItemFocus:Y.useCallback(e=>g(e),[g]),onItemShiftTab:Y.useCallback(()=>v(!0),[]),onFocusableItemAdd:Y.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:Y.useCallback(()=>j(e=>e-1),[]),children:ve.jsx(Ph.div,{tabIndex:y||0===k?-1:0,"data-orientation":r,...d,ref:f,style:{outline:"none",...e.style},onMouseDown:jh(e.onMouseDown,()=>{w.current=!0}),onFocus:jh(e.onFocus,e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(AS,ES);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter(e=>e.focusable);US([e.find(e=>e.active),e.find(e=>e.id===m),...e].filter(Boolean).map(e=>e.ref.current),u)}}w.current=!1}),onBlur:jh(e.onBlur,()=>v(!1))})})}),MS="RovingFocusGroupItem",zS=Y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:s,children:i,...o}=e,l=Wh(),c=s||l,u=FS(MS,n),d=u.currentTabStopId===c,h=TS(n),{onFocusableItemAdd:f,onFocusableItemRemove:p,currentTabStopId:m}=u;return Y.useEffect(()=>{if(r)return f(),()=>p()},[r,f,p]),ve.jsx(IS.ItemSlot,{scope:n,id:c,focusable:r,active:a,children:ve.jsx(Ph.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...o,ref:t,onMouseDown:jh(e.onMouseDown,e=>{r?u.onItemFocus(c):e.preventDefault()}),onFocus:jh(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:jh(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:$S[r]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){"prev"===t&&a.reverse();const s=a.indexOf(e.currentTarget);a=u.loop?(r=s+1,(n=a).map((e,t)=>n[(r+t)%n.length])):a.slice(s+1)}setTimeout(()=>US(a))}var n,r}),children:"function"==typeof i?i({isCurrentTabStop:d,hasTabStop:null!=m}):i})})});zS.displayName=MS;var $S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function US(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var VS=DS,BS=zS,WS=["Enter"," "],qS=["ArrowUp","PageDown","End"],KS=["ArrowDown","PageUp","Home",...qS],HS={ltr:[...WS,"ArrowRight"],rtl:[...WS,"ArrowLeft"]},GS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ZS="Menu",[JS,QS,YS]=qh(ZS),[XS,eA]=wh(ZS,[YS,iS,PS]),tA=iS(),nA=PS(),[rA,aA]=XS(ZS),[sA,iA]=XS(ZS),oA=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:s,modal:i=!0}=e,o=tA(t),[l,c]=Y.useState(null),u=Y.useRef(!1),d=Kh(s),h=zh(a);return Y.useEffect(()=>{const e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),ve.jsx(kS,{...o,children:ve.jsx(rA,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:ve.jsx(sA,{scope:t,onClose:Y.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:h,modal:i,children:r})})})};oA.displayName=ZS;var lA=Y.forwardRef((e,t)=>
2{const{__scopeMenu:n,...r}=e,a=tA(n);return ve.jsx(jS,{...a,...r,ref:t})});lA.displayName="MenuAnchor";var cA="MenuPortal",[uA,dA]=XS(cA,{forceMount:void 0}),hA=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,s=aA(cA,t);return ve.jsx(uA,{scope:t,forceMount:n,children:ve.jsx($h,{present:n||s.open,children:ve.jsx(gg,{asChild:!0,container:a,children:r})})})};hA.displayName=cA;var fA="MenuContent",[pA,mA]=XS(fA),gA=Y.forwardRef((e,t)=>{const n=dA(fA,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,s=aA(fA,e.__scopeMenu),i=iA(fA,e.__scopeMenu);return ve.jsx(JS.Provider,{scope:e.__scopeMenu,children:ve.jsx($h,{present:r||s.open,children:ve.jsx(JS.Slot,{scope:e.__scopeMenu,children:i.modal?ve.jsx(yA,{...a,ref:t}):ve.jsx(vA,{...a,ref:t})})})})}),yA=Y.forwardRef((e,t)=>{const n=aA(fA,e.__scopeMenu),r=Y.useRef(null),a=Ah(t,r);return Y.useEffect(()=>{const e=r.current;if(e)return fy(e)},[]),ve.jsx(xA,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:jh(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),vA=Y.forwardRef((e,t)=>{const n=aA(fA,e.__scopeMenu);return ve.jsx(xA,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),bA=Eh("MenuContent.ScrollLock"),xA=Y.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:f,disableOutsideScroll:p,...m}=e,g=aA(fA,n),y=iA(fA,n),v=tA(n),b=nA(n),x=QS(n),[w,k]=Y.useState(null),j=Y.useRef(null),_=Ah(t,j,g.onContentChange),S=Y.useRef(0),A=Y.useRef(""),E=Y.useRef(0),N=Y.useRef(null),I=Y.useRef("right"),T=Y.useRef(0),C=p?iy:Y.Fragment,O=p?{as:bA,allowPinchZoom:!0}:void 0,P=e=>{var t,n;const r=A.current+e,a=x().filter(e=>!e.disabled),s=document.activeElement,i=null==(t=a.find(e=>e.ref.current===s))?void 0:t.textValue,o=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),a=r?t[0]:t,s=n?e.indexOf(n):-1;let i=(o=e,l=Math.max(s,0),o.map((e,t)=>o[(l+t)%o.length]));var o,l;1===a.length&&(i=i.filter(e=>e!==n));const c=i.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return c!==n?c:void 0}(a.map(e=>e.textValue),r,i),l=null==(n=a.find(e=>e.textValue===o))?void 0:n.ref.current;!function e(t){A.current=t,window.clearTimeout(S.current),""!==t&&(S.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())};Y.useEffect(()=>()=>window.clearTimeout(S.current),[]),vg();const R=Y.useCallback(e=>{var t,n;return I.current===(null==(t=N.current)?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let a=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const e=t[s],o=t[i],l=e.x,c=e.y,u=o.x,d=o.y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(a=!a)}return a}(n,t)}(e,null==(n=N.current)?void 0:n.area)},[]);return ve.jsx(pA,{scope:n,searchRef:A,onItemEnter:Y.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:Y.useCallback(e=>{var t;R(e)||(null==(t=j.current)||t.focus(),k(null))},[R]),onTriggerLeave:Y.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:E,onPointerGraceIntentChange:Y.useCallback(e=>{N.current=e},[]),children:ve.jsx(C,{...O,children:ve.jsx(cg,{asChild:!0,trapped:a,onMountAutoFocus:jh(s,e=>{var t;e.preventDefault(),null==(t=j.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:ve.jsx(Yh,{asChild:!0,disableOutsidePointerEvents:o,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:f,children:ve.jsx(VS,{asChild:!0,...b,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:k,onEntryFocus:jh(l,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:ve.jsx(_S,{role:"menu","aria-orientation":"vertical","data-state":KA(g.open),"data-radix-menu-content":"",dir:y.dir,...v,...m,ref:_,style:{outline:"none",...m.style},onKeyDown:jh(m.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.ke
2y.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&P(e.key));const a=j.current;if(e.target!==a)return;if(!KS.includes(e.key))return;e.preventDefault();const s=x().filter(e=>!e.disabled).map(e=>e.ref.current);qS.includes(e.key)&&s.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(s)}),onBlur:jh(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),A.current="")}),onPointerMove:jh(e.onPointerMove,ZA(e=>{const t=e.target,n=T.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>T.current?"right":"left";I.current=t,T.current=e.clientX}}))})})})})})})});gA.displayName=fA;var wA=Y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return ve.jsx(Ph.div,{role:"group",...r,ref:t})});wA.displayName="MenuGroup";var kA=Y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return ve.jsx(Ph.div,{...r,ref:t})});kA.displayName="MenuLabel";var jA="MenuItem",_A="menu.itemSelect",SA=Y.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...a}=e,s=Y.useRef(null),i=iA(jA,e.__scopeMenu),o=mA(jA,e.__scopeMenu),l=Ah(t,s),c=Y.useRef(!1);return ve.jsx(AA,{...a,ref:l,disabled:n,onClick:jh(e.onClick,()=>{const e=s.current;if(!n&&e){const t=new CustomEvent(_A,{bubbles:!0,cancelable:!0});e.addEventListener(_A,e=>null==r?void 0:r(e),{once:!0}),Rh(e,t),t.defaultPrevented?c.current=!1:i.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),c.current=!0},onPointerUp:jh(e.onPointerUp,e=>{var t;c.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:jh(e.onKeyDown,e=>{const t=""!==o.searchRef.current;n||t&&" "===e.key||WS.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});SA.displayName=jA;var AA=Y.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:a,...s}=e,i=mA(jA,n),o=nA(n),l=Y.useRef(null),c=Ah(t,l),[u,d]=Y.useState(!1),[h,f]=Y.useState("");return Y.useEffect(()=>{const e=l.current;e&&f((e.textContent??"").trim())},[s.children]),ve.jsx(JS.ItemSlot,{scope:n,disabled:r,textValue:a??h,children:ve.jsx(BS,{asChild:!0,...o,focusable:!r,children:ve.jsx(Ph.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:c,onPointerMove:jh(e.onPointerMove,ZA(e=>{if(r)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:jh(e.onPointerLeave,ZA(e=>i.onItemLeave(e))),onFocus:jh(e.onFocus,()=>d(!0)),onBlur:jh(e.onBlur,()=>d(!1))})})})}),EA=Y.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return ve.jsx(FA,{scope:e.__scopeMenu,checked:n,children:ve.jsx(SA,{role:"menuitemcheckbox","aria-checked":HA(n)?"mixed":n,...a,ref:t,"data-state":GA(n),onSelect:jh(a.onSelect,()=>null==r?void 0:r(!!HA(n)||!n),{checkForDefaultPrevented:!1})})})});EA.displayName="MenuCheckboxItem";var NA="MenuRadioGroup",[IA,TA]=XS(NA,{value:void 0,onValueChange:()=>{}}),CA=Y.forwardRef((e,t)=>{const{value:n,onValueChange:r,...a}=e,s=Kh(r);return ve.jsx(IA,{scope:e.__scopeMenu,value:n,onValueChange:s,children:ve.jsx(wA,{...a,ref:t})})});CA.displayName=NA;var OA="MenuRadioItem",PA=Y.forwardRef((e,t)=>{const{value:n,...r}=e,a=TA(OA,e.__scopeMenu),s=n===a.value;return ve.jsx(FA,{scope:e.__scopeMenu,checked:s,children:ve.jsx(SA,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":GA(s),onSelect:jh(r.onSelect,()=>{var e;return null==(e=a.onValueChange)?void 0:e.call(a,n)},{checkForDefaultPrevented:!1})})})});PA.displayName=OA;var RA="MenuItemIndicator",[FA,DA]=XS(RA,{checked:!1}),LA=Y.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...a}=e,s=DA(RA,n);return ve.jsx($h,{present:r||HA(s.checked)||!0===s.checked,children:ve.jsx(Ph.span,{...a,ref:t,"data-state":GA(s.checked)})})});LA.displayName=RA;var MA=Y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return ve.jsx(Ph.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});MA.displayName="MenuSeparator";var zA=Y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=tA(n);return ve.jsx(SS,{...a,...r,ref:t})});zA.displayName="MenuArrow";var[$A,UA]=XS("MenuSub"),VA="MenuSubTrigger",BA=Y.forwardRef((e,t)=>
2{const n=aA(VA,e.__scopeMenu),r=iA(VA,e.__scopeMenu),a=UA(VA,e.__scopeMenu),s=mA(VA,e.__scopeMenu),i=Y.useRef(null),{pointerGraceTimerRef:o,onPointerGraceIntentChange:l}=s,c={__scopeMenu:e.__scopeMenu},u=Y.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return Y.useEffect(()=>u,[u]),Y.useEffect(()=>{const e=o.current;return()=>{window.clearTimeout(e),l(null)}},[o,l]),ve.jsx(lA,{asChild:!0,...c,children:ve.jsx(AA,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":KA(n.open),...e,ref:Sh(t,a.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:jh(e.onPointerMove,ZA(t=>{s.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||i.current||(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:jh(e.onPointerLeave,ZA(e=>{var t,r;u();const a=null==(t=n.content)?void 0:t.getBoundingClientRect();if(a){const t=null==(r=n.content)?void 0:r.dataset.side,i="right"===t,l=i?-5:5,c=a[i?"left":"right"],u=a[i?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+l,y:e.clientY},{x:c,y:a.top},{x:u,y:a.top},{x:u,y:a.bottom},{x:c,y:a.bottom}],side:t}),window.clearTimeout(o.current),o.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:jh(e.onKeyDown,t=>{var a;const i=""!==s.searchRef.current;e.disabled||i&&" "===t.key||HS[r.dir].includes(t.key)&&(n.onOpenChange(!0),null==(a=n.content)||a.focus(),t.preventDefault())})})})});BA.displayName=VA;var WA="MenuSubContent",qA=Y.forwardRef((e,t)=>{const n=dA(fA,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,s=aA(fA,e.__scopeMenu),i=iA(fA,e.__scopeMenu),o=UA(WA,e.__scopeMenu),l=Y.useRef(null),c=Ah(t,l);return ve.jsx(JS.Provider,{scope:e.__scopeMenu,children:ve.jsx($h,{present:r||s.open,children:ve.jsx(JS.Slot,{scope:e.__scopeMenu,children:ve.jsx(xA,{id:o.contentId,"aria-labelledby":o.triggerId,...a,ref:c,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;i.isUsingKeyboardRef.current&&(null==(t=l.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:jh(e.onFocusOutside,e=>{e.target!==o.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:jh(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:jh(e.onKeyDown,e=>{var t;const n=e.currentTarget.contains(e.target),r=GS[i.dir].includes(e.key);n&&r&&(s.onOpenChange(!1),null==(t=o.trigger)||t.focus(),e.preventDefault())})})})})})});function KA(e){return e?"open":"closed"}function HA(e){return"indeterminate"===e}function GA(e){return HA(e)?"indeterminate":e?"checked":"unchecked"}function ZA(e){return t=>"mouse"===t.pointerType?e(t):void 0}qA.displayName=WA;var JA=oA,QA=lA,YA=hA,XA=gA,eE=wA,tE=kA,nE=SA,rE=EA,aE=CA,sE=PA,iE=LA,oE=MA,lE=zA,cE=BA,uE=qA,dE="DropdownMenu",[hE,fE]=wh(dE,[eA]),pE=eA(),[mE,gE]=hE(dE),yE=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:a,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,l=pE(t),c=Y.useRef(null),[u,d]=Lh({prop:a,defaultProp:s??!1,onChange:i,caller:dE});return ve.jsx(mE,{scope:t,triggerId:Wh(),triggerRef:c,contentId:Wh(),open:u,onOpenChange:d,onOpenToggle:Y.useCallback(()=>d(e=>!e),[d]),modal:o,children:ve.jsx(JA,{...l,open:u,onOpenChange:d,dir:r,modal:o,children:n})})};yE.displayName=dE;var vE="DropdownMenuTrigger",bE=Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,s=gE(vE,n),i=pE(n);return ve.jsx(QA,{asChild:!0,...i,children:ve.jsx(Ph.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:Sh(t,s.triggerRef),onPointerDown:jh(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:jh(e.onKeyDown,e=>
2{r||(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});bE.displayName=vE;var xE=e=>{const{__scopeDropdownMenu:t,...n}=e,r=pE(t);return ve.jsx(YA,{...r,...n})};xE.displayName="DropdownMenuPortal";var wE="DropdownMenuContent",kE=Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=gE(wE,n),s=pE(n),i=Y.useRef(!1);return ve.jsx(XA,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...r,ref:t,onCloseAutoFocus:jh(e.onCloseAutoFocus,e=>{var t;i.current||null==(t=a.triggerRef.current)||t.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:jh(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.modal&&!r||(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});kE.displayName=wE;Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=pE(n);return ve.jsx(eE,{...a,...r,ref:t})}).displayName="DropdownMenuGroup";var jE=Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=pE(n);return ve.jsx(tE,{...a,...r,ref:t})});jE.displayName="DropdownMenuLabel";var _E=Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=pE(n);return ve.jsx(nE,{...a,...r,ref:t})});_E.displayName="DropdownMenuItem";var SE=Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=pE(n);return ve.jsx(rE,{...a,...r,ref:t})});SE.displayName="DropdownMenuCheckboxItem";Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=pE(n);return ve.jsx(aE,{...a,...r,ref:t})}).displayName="DropdownMenuRadioGroup";var AE=Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=pE(n);return ve.jsx(sE,{...a,...r,ref:t})});AE.displayName="DropdownMenuRadioItem";var EE=Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=pE(n);return ve.jsx(iE,{...a,...r,ref:t})});EE.displayName="DropdownMenuItemIndicator";var NE=Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=pE(n);return ve.jsx(oE,{...a,...r,ref:t})});NE.displayName="DropdownMenuSeparator";Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=pE(n);return ve.jsx(lE,{...a,...r,ref:t})}).displayName="DropdownMenuArrow";var IE=Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=pE(n);return ve.jsx(cE,{...a,...r,ref:t})});IE.displayName="DropdownMenuSubTrigger";var TE=Y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=pE(n);return ve.jsx(uE,{...a,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});TE.displayName="DropdownMenuSubContent";var CE=xE,OE=kE,PE=jE,RE=_E,FE=SE,DE=AE,LE=EE,ME=NE,zE=IE,$E=TE;const UE=yE,VE=bE;Y.forwardRef(({className:e,inset:t,children:n,...r},a)=>ve.jsxs(zE,{ref:a,className:Jm("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,ve.jsx(Sp,{className:"ml-auto h-4 w-4"})]})).displayName=zE.displayName;Y.forwardRef(({className:e,...t},n)=>ve.jsx($E,{ref:n,className:Jm("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
2de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})).displayName=$E.displayName;const BE=Y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>ve.jsx(CE,{children:ve.jsx(OE,{ref:r,sideOffset:t,className:Jm("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));BE.displayName=OE.displayName;const WE=Y.forwardRef(({className:e,inset:t,...n},r)=>ve.jsx(RE,{ref:r,className:Jm("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n}));WE.displayName=RE.displayName;Y.forwardRef(({className:e,children:t,checked:n,...r},a)=>ve.jsxs(FE,{ref:a,className:Jm("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[ve.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:ve.jsx(LE,{children:ve.jsx(jp,{className:"h-4 w-4"})})}),t]})).displayName=FE.displayName;Y.forwardRef(({className:e,children:t,...n},r)=>ve.jsxs(DE,{ref:r,className:Jm("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[ve.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:ve.jsx(LE,{children:ve.jsx(Np,{className:"h-2 w-2 fill-current"})})}),t]})).displayName=DE.displayName;const qE=Y.forwardRef(({className:e,inset:t,...n},r)=>ve.jsx(PE,{ref:r,className:Jm("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));qE.displayName=PE.displayName;const KE=Y.forwardRef(({className:e,...t},n)=>ve.jsx(ME,{ref:n,className:Jm("-mx-1 my-1 h-px bg-muted",e),...t}));function HE(){return()=>{}}KE.displayName=ME.displayName;var GE="Avatar",[ZE,JE]=wh(GE),[QE,YE]=ZE(GE),XE=Y.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[a,s]=Y.useState("idle");return ve.jsx(QE,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:s,children:ve.jsx(Ph.span,{...r,ref:t})})});XE.displayName=GE;var eN="AvatarImage",tN=Y.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=()=>{},...s}=e,i=YE(eN,n),o=function(e,{referrerPolicy:t,crossOrigin:n}){const r=Vd.useSyncExternalStore(HE,()=>!0,()=>!1),a=Y.useRef(null),s=r?(a.current||(a.current=new window.Image),a.current):null,[i,o]=Y.useState(()=>aN(s,e));return Fh(()=>{o(aN(s,e))},[s,e]),Fh(()=>{const e=e=>()=>{o(e)};if(!s)return;const r=e("loaded"),a=e("error");return s.addEventListener("load",r),s.addEventListener("error",a),t&&(s.referrerPolicy=t),"string"==typeof n&&(s.crossOrigin=n),()=>{s.removeEventListener("load",r),s.removeEventListener("error",a)}},[s,n,t]),i}(r,s),l=Kh(e=>{a(e),i.onImageLoadingStatusChange(e)});return Fh(()=>{"idle"!==o&&l(o)},[o,l]),"loaded"===o?ve.jsx(Ph.img,{...s,ref:t,src:r}):null});tN.displayName=eN;var nN="AvatarFallback",rN=Y.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...a}=e,s=YE(nN,n),[i,o]=Y.useState(void 0===r);return Y.useEffect(()=>{if(void 0!==r){const e=window.setTimeout(()=>o(!0),r);return()=>window.clearTimeout(e)}},[r]),i&&"loaded"!==s.imageLoadingStatus?ve.jsx(Ph.span,{...a,ref:t}):null});function aN(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}rN.displayName=nN;var sN=XE,iN=tN,oN=rN;const lN=Y.forwardRef(({className:e,...t},n)=>ve.jsx(sN,{ref:n,className:Jm("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));lN.displayName=sN.displayName;const cN=Y.forwardRef(({className:e,...t},n)=>ve.jsx(iN,{ref:n,className:Jm("aspect-square h-full w-full",e),...t}));cN.displayName=iN.displayName;const uN=Y.forwardRef(({className:e,...t},n)=>ve.jsx(oN,{ref:n,className:Jm("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));uN.displayName=oN.displayName;const dN=[{code:"en",name:"English",nativeName:"EN â English"},{code:"es",name:"Spanish",nativeName:"ES â Español"},{code:"hi",name:"Hindi",nativeName:"HI â हिनà¥à¤¦à¥"},{code:"de",name:"German",nativeName:"DE â Deutsch"},{code:"fil",name:"Filipino",nativeName:"FIL â Filipino"},{code:"fr",name:"French",nativeName:"FR â Français"}],hN=()=>{const[e,t]=fh(),[n,r]=Y.useState("en"),[a,s]=Y.useState(!1),i=Y.useCallback(e=>
2{const t=e.split("/").filter(Boolean)[0];return dN.some(e=>e.code===t)?t:"en"},[]),o=Y.useCallback(e=>{const t=i(e);let n="/"===e?"/":e.replace(/\/$/,"");if("en"===t)return n;const r=n.split("/").filter(Boolean);r[0]===t&&r.shift();return 0===r.length?"/":"/"+r.join("/")},[i]),l=Y.useCallback((e,t)=>{let n=o(e);return"/"!==n&&n.endsWith("/")&&(n=n.slice(0,-1)),"en"===t?n:"/"===n?`/${t}`:`/${t}${n}`},[o]);Y.useEffect(()=>{const t=i(e);r(t),ee.language!==t&&ee.changeLanguage(t)},[e,i]);const c=Y.useCallback(async n=>{if(dN.some(e=>e.code===n)){s(!0);try{await ee.changeLanguage(n);const a=o(e),s=l(a,n);t(s),r(n),localStorage.setItem("preferredLanguage",n)}catch(a){console.error("Failed to change language:",a)}finally{s(!1)}}else console.warn(`Unsupported locale: ${n}`)},[e,t,o,l]),u=Y.useCallback(()=>dN.find(e=>e.code===n)||dN[0],[n]),d=Y.useCallback(()=>n,[n]);return{currentLocale:n,supportedLocales:dN,changeLanguage:c,isLoading:a,getCurrentLocaleInfo:u,getCurrentLocale:d,getLocalizedPath:l,getPathWithoutLocale:o}};async function fN(){const{data:{session:e}}=await hk.auth.getSession();return{"Content-Type":"application/json",...(null==e?void 0:e.access_token)&&{Authorization:`Bearer ${e.access_token}`}}}async function pN(e){const t=await fetch(`/api/profile/${e}`),n=await t.json();if(!t.ok)throw new Error(n.message||"Failed to fetch profile");return n}async function mN(){const e=await fN(),t=await fetch("/api/user/profile",{headers:e}),n=await t.json();if(!t.ok)throw new Error(n.message||"Failed to fetch user profile");return n}async function gN(e){const t=await fN(),n=await fetch("/api/user/profile",{method:"PUT",headers:t,body:JSON.stringify(e)}),r=await n.json();if(!n.ok)throw new Error(r.message||"Failed to update profile");return r}function yN({variant:e="dropdown"}){const{user:t}=Sk(),[n,r]=Y.useState(null),[a,s]=Y.useState(!1),{toast:i}=Rk(),[,o]=fh(),{getLocalizedPath:l,currentLocale:c}=hN(),[u,d]=Y.useState(!1),[h,f]=Y.useState(!1),p=cj(),m=(e,t)=>e?e.split(" ").map(e=>e[0]).join("").substring(0,2).toUpperCase():t?t.substring(0,2).toUpperCase():"U",g=()=>p.isUnlimited||"pro"===p.userType||"max"===p.userType?"Unlimited Scans":"starter"===p.userType?`${p.scansLeft} of 120 scans this month`:"free"===p.userType?`${p.scansLeft} of 5 scans this month`:`${p.scansLeft}/2 Scans Today`;Y.useEffect(()=>{t&&"inline"===e&&(s(!0),mN().then(e=>{e.profile&&r(e.profile)}).catch(e=>{console.error("Failed to fetch user profile:",e)}).finally(()=>{s(!1)}))},[t,e]);const y=Y.useMemo(()=>{var e,r;return t?(null==n?void 0:n.display_name)?n.display_name:(null==(e=t.user_metadata)?void 0:e.full_name)||(null==(r=t.email)?void 0:r.split("@")[0])||"User":"User"},[n,t]),v=Y.useMemo(()=>{var e;return t?(null==n?void 0:n.display_name)?m(n.display_name,t.email):m(null==(e=t.user_metadata)?void 0:e.full_name,t.email):"U"},[n,t]),b=Y.useMemo(()=>{var e,r;if(t)return(null==n?void 0:n.avatar_url)?n.avatar_url:(null==(e=t.user_metadata)?void 0:e.avatar_url)||(null==(r=t.user_metadata)?void 0:r.picture)},[n,t]);if(!t)return ve.jsxs("div",{className:"flex flex-col lg:flex-row items-stretch lg:items-center gap-2 w-full lg:w-auto",children:[ve.jsx(sg,{variant:"outline",size:"sm",onClick:()=>{o("/auth/sign-in"),window.dispatchEvent(new Event("closeMobileMenu"))},className:"border-luxury-purple/30 text-luxury-purple hover:bg-luxury-purple/10 w-full lg:w-auto",children:"Sign In"}),ve.jsxs(sg,{size:"sm",onClick:()=>{o("/auth/sign-up"),window.dispatchEvent(new Event("closeMobileMenu"))},className:"bg-luxury-purple hover:bg-luxury-purple/90 w-full lg:w-auto",children:[ve.jsx(Zp,{className:"h-3 w-3 mr-1"}),"Sign Up Free"]})]});const x=async()=>{d(!0),window.dispatchEvent(new Event("closeMobileMenu"));try{await bk(),i({title:"Signed out successfully",description:"You have been signed out of your account."}),setTimeout(()=>{const e=l("/",c);o(e),setTimeout(()=>{window.location.pathname===e||window.location.pathname.startsWith("/")||(window.location.href=e)},200)},100)}catch(e){console.error("Sign out error:",e);try{localStorage.clear(),sessionStorage.clear()}catch(t){console.error("Error clearing storage:",t)}i({title:"Signed out",description:"You have been signed out locally."}),setTimeout(()=>{const e=l("/",c);o(e),setTimeout(()=>{window.location.pathname===e||window.location.pathname.startsWith("/")||(window.location.href=e)},200)},100)}finally{d(!1)}},w=async()=>
2{if(t){window.dispatchEvent(new Event("closeMobileMenu"));try{const e=await mN();if(e.success&&e.profile){const t=e.profile;t.username?(o(`/profile/${t.username}`),setTimeout(()=>{window.location.pathname!==`/profile/${t.username}`&&(window.location.href=`/profile/${t.username}`)},100)):(i({title:"Profile Setup Required",description:"Please set a username in your profile settings to view your profile page.",variant:"default"}),o("/profile/setup"),setTimeout(()=>{window.location.pathname.startsWith("/profile")||(window.location.href="/profile/setup")},100))}else i({title:"Setting up your profile...",description:"Your profile is being created. Please set a username in settings."}),o("/profile/setup"),setTimeout(()=>{window.location.pathname.startsWith("/profile")||(window.location.href="/profile/setup")},100)}catch(e){console.error("Failed to fetch user profile:",e),i({title:"Error",description:"Unable to load your profile. Please try again.",variant:"destructive"})}}},k=async()=>{if(t){window.dispatchEvent(new Event("closeMobileMenu"));try{const e=await mN();if(e.success&&e.profile){const t=e.profile;t.username?(o(`/profile/${t.username}?tab=settings`),setTimeout(()=>{const e=`/profile/${t.username}?tab=settings`;window.location.pathname+window.location.search!==e&&(window.location.href=e)},100)):(i({title:"Profile Setup Required",description:"Please set a username in your profile to access settings.",variant:"default"}),o("/profile/setup"),setTimeout(()=>{window.location.pathname.startsWith("/profile")||(window.location.href="/profile/setup")},100))}else i({title:"Setting up your profile...",description:"Your profile is being created. Please set a username first."}),o("/profile/setup"),setTimeout(()=>{window.location.pathname.startsWith("/profile")||(window.location.href="/profile/setup")},100)}catch(e){console.error("Failed to fetch user profile:",e),i({title:"Error",description:"Unable to load your profile. Please try again.",variant:"destructive"})}}};return"inline"===e&&t?ve.jsx(ve.Fragment,{children:ve.jsxs("div",{className:"flex items-center gap-3 w-full",children:[ve.jsxs(lN,{className:"h-10 w-10 flex-shrink-0",children:[b?ve.jsx(cN,{src:b,alt:y}):null,ve.jsx(uN,{className:"bg-luxury-purple text-white text-sm font-medium",children:v})]}),ve.jsxs("div",{className:"flex-1 min-w-0",children:[ve.jsx("p",{className:"font-medium text-sm text-gray-900 truncate",children:y}),ve.jsx("p",{className:"text-xs text-gray-500 truncate",children:t.email})]}),ve.jsxs(UE,{open:h,onOpenChange:f,children:[ve.jsx(VE,{asChild:!0,children:ve.jsx(sg,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:ve.jsx(Kp,{className:"h-4 w-4"})})}),ve.jsxs(BE,{align:"end",className:"w-56",children:[ve.jsx("div",{className:"flex items-center justify-start gap-2 p-2",children:ve.jsxs("div",{className:"flex flex-col space-y-1 leading-none",children:[ve.jsxs("div",{className:"flex items-center gap-2",children:[ve.jsx(Tp,{className:"h-3 w-3 text-luxury-gold"}),ve.jsx("p",{className:"font-medium text-sm",children:y})]}),ve.jsx("p",{className:"text-xs text-muted-foreground",children:t.email}),ve.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[ve.jsx("div",{className:"h-1.5 w-1.5 rounded-full "+(p.isUnlimited?"bg-green-500":p.canScan?"bg-blue-500":"bg-orange-500")}),ve.jsx("span",{className:"text-xs font-medium "+(p.isUnlimited?"text-green-600":p.canScan?"text-blue-600":"text-orange-600"),children:g()})]})]})}),ve.jsx(KE,{}),ve.jsxs(WE,{className:"cursor-pointer",onSelect:e=>{e.preventDefault(),f(!1),w()},children:[ve.jsx(Yp,{className:"mr-2 h-4 w-4"}),ve.jsx("span",{children:"Profile"})]}),ve.jsxs(WE,{className:"cursor-pointer",onSelect:e=>{e.preventDefault(),f(!1),k()},children:[ve.jsx(Kp,{className:"mr-2 h-4 w-4"}),ve.jsx("span",{children:"Settings"})]}),ve.jsx(KE,{}),ve.jsxs(WE,{className:"cursor-pointer text-red-600 focus:text-red-600",onSelect:e=>{e.preventDefault(),f(!1),x()},disabled:u,children:[ve.jsx(zp,{className:"mr-2 h-4 w-4"}),ve.jsx("span",{children:u?"Signing out...":"Sign out"})]})]})]})]})}):ve.jsx(ve.Fragment,{children:ve.jsxs(UE,{open:h,onOpenChange:f,children:[ve.jsx(VE,{asChild:!0,children:ve.jsx(sg,{variant:"ghost",className:"relative h-8 w-8 rounded-full",children:ve.jsxs(lN,{className:"h-8 w-8",children:[b?ve.jsx(cN,{src:b,alt:y}):null,ve.jsx(uN,{className:"bg-luxury-purple text-white text-xs font-medium",children:v})]})})}),ve.jsxs(BE,{className:"w-56",align:"end",children:[ve.jsx("div",{className:"flex items-center justify-start gap-2 p-2",children:ve.jsxs("div",{className:"flex flex-col space-y-1 leading-none",children:[ve.jsxs("div",{className:"flex items-center gap-2",children:[ve.jsx(Tp,{className:"h-3 w-3 text-luxury-gold"}),ve.jsx("p",{className:"font-medium text-sm",children:y})]}),ve.jsx("p",{className:"text-xs text-muted-foreground",children:t.email}),ve.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[ve.jsx("div",{className:"h-1.5 w-1.5 rounded-full "+(p.isUnlimited?"bg-green-500":p.canScan?"bg-blue-500":"bg-orange-500")}),ve.jsx("span",{className:"text-xs font-medium "+(p.isUnlimited?"text-green-600":p.canScan?"text-blue-600":"text-orange-600"),children:g()})]})]})}),ve.jsx(KE,{}),ve.jsxs(WE,{className:"cursor-pointer",onSelect:e=>{e.preventDefault(),f(!1),w()},children:[ve.jsx(Yp,{className:"mr-2 h-4 w-4"}),ve.jsx("span",{children:"Profile"})]}),ve.jsxs(WE,{className:"cursor-pointer",onSelect:e=>{e.preventDefault(),f(!1),k()},children:[ve.jsx(Kp,{className:"mr-2 h-4 w-4"}),ve.jsx("span",{children:"Settings"})]}),ve.jsx(KE,{}),ve.jsxs(WE,{className:"cursor-pointer text-red-600 focus:text-red-600",onSelect:e=>{e.preventDefault(),f(!1),x()},disabled:u,children:[ve.jsx(zp,{className:"mr-2 h-4 w-4"}),ve.jsx("span",{children:u?"Signing out...":"Sign out"})]})]})]})})}
2const vN=[{code:"en",display:"EN â English",name:"English"},{code:"es",display:"ES â Español",name:"Español"},{code:"hi",display:"HI â हिनà¥à¤¦à¥",name:"हिनà¥à¤¦à¥"},{code:"de",display:"DE â Deutsch",name:"Deutsch"},{code:"fil",display:"FIL â Filipino",name:"Filipino"},{code:"fr",display:"FR â Français",name:"Français"}],bN=({className:e="",variant:t="default"})=>{le();const{currentLocale:n,changeLanguage:r,isLoading:a}=hN(),[s,i]=Y.useState(!1),[o,l]=Y.useState(-1),c=Y.useRef(null),u=Y.useRef(null),d=Y.useRef(null),h=vN.find(e=>e.code===n),f=(null==h?void 0:h.display)||"EN â English",p=((null==h?void 0:h.code)||"en").toUpperCase(),m=(null==h?void 0:h.name)||"English";Y.useEffect(()=>{const e=e=>{c.current&&!c.current.contains(e.target)&&(i(!1),l(-1))};return s&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[s]),Y.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const g=e=>{var t;if(s)switch(e.key){case"ArrowDown":e.preventDefault(),l(e=>(e+1)%vN.length);break;case"ArrowUp":e.preventDefault(),l(e=>(e-1+vN.length)%vN.length);break;case"Enter":case" ":e.preventDefault(),o>=0&&v(vN[o].code);break;case"Escape":i(!1),l(-1),null==(t=u.current)||t.focus()}else"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),i(!0),l(0))},y=()=>{i(!s),s||l(-1)},v=e=>{var t;r(e),i(!1),l(-1),null==(t=u.current)||t.focus()};if("compact"===t){const t=()=>{d.current&&(clearTimeout(d.current),d.current=null),i(!0)},r=()=>{d.current=setTimeout(()=>{i(!1)},150)};return ve.jsxs("div",{className:`relative ${e}`,ref:c,onMouseEnter:t,onMouseLeave:r,children:[ve.jsxs("button",{ref:u,role:"button","aria-haspopup":"menu","aria-expanded":s,"aria-label":`Current language: ${f}. Click to change language`,onClick:y,onKeyDown:g,disabled:a,className:"flex flex-col items-center justify-center min-w-[60px] h-[50px] text-luxury-purple hover:text-luxury-purple/80 transition-colors focus:outline-none focus:ring-2 focus:ring-luxury-purple/50 disabled:opacity-50",children:[ve.jsxs("div",{className:"flex items-center",children:[ve.jsx("span",{className:"text-lg font-bold tracking-wide",children:p}),ve.jsx(_p,{className:"h-4 w-4 ml-1 transition-transform duration-200 "+(s?"rotate-180":"")})]}),ve.jsx("span",{className:"text-[9px] font-medium leading-none mt-[-2px] text-center w-full truncate text-black tracking-[1px]",children:m})]}),s&&ve.jsx("div",{role:"menu",className:"absolute right-0 top-full mt-0 pt-2 w-40 max-h-60 overflow-y-auto bg-white border border-gray-200 rounded-lg shadow-lg z-50 focus:outline-none",onMouseEnter:t,onMouseLeave:r,children:vN.map((e,t)=>ve.jsx("button",{role:"menuitem",className:`w-full px-3 py-2 text-left text-sm hover:bg-gray-100 focus:bg-gray-100 transition-colors first:rounded-t-lg last:rounded-b-lg ${t===o?"bg-gray-100":""} ${e.code===n?"bg-luxury-purple/10 font-medium text-luxury-purple":""}`,onClick:()=>v(e.code),onMouseEnter:()=>l(t),children:e.display},e.code))})]})}return"minimal"===t?ve.jsxs("div",{className:`relative ${e}`,ref:c,children:[ve.jsxs("button",{ref:u,role:"button","aria-haspopup":"menu","aria-expanded":s,"aria-label":`Current language: ${f}. Click to change language`,onClick:y,onKeyDown:g,disabled:a,className:"flex flex-col items-center justify-center min-w-[40px] h-[36px] text-luxury-purple hover:text-luxury-purple/80 transition-colors focus:outline-none focus:ring-2 focus:ring-luxury-purple/50 disabled:opacity-50",children:[ve.jsxs("div",{className:"flex items-center",children:[ve.jsx("span",{className:"text-sm font-bold text-gray-600 tracking-wide",children:p}),ve.jsx(_p,{className:"h-3 w-3 ml-1 transition-transform duration-200 "+(s?"rotate-180":"")})]}),ve.jsx("span",{className:"text-[8px] font-medium leading-none mt-[-1px] text-center w-full truncate text-gray-600 tracking-[0.5px]",children:m})]}),s&&ve.jsx("div",{role:"menu",className:"absolute right-0 top-full mt-2 w-40 max-h-60 overflow-y-auto bg-white border border-gray-200 rounded-lg shadow-lg z-50 focus:outline-none",children:vN.map((e,t)=>ve.jsx("button",{role:"menuitem",className:`w-full px-3 py-2 text-left text-sm hover:bg-gray-100 focus:bg-gray-100 transition-colors first:rounded-t-lg last:rounded-b-lg ${t===o?"bg-gray-100":""} ${e.code===n?"bg-luxury-purple/10 font-medium text-luxury-purple":""}`,onClick:()=>v(e.code),onMouseEnter:()=>l(t),children:e.display},e.code))})]}):ve.jsxs("div",{className:`relative ${e}`,ref:c,children:[ve.jsxs("button",{ref:u,role:"button","aria-haspopup":"menu","aria-expanded":s,"aria-label":`Current language: ${f}. Click to change language`,onClick:y,onKeyDown:g,disabled:a,className:"flex items-center space-x-2 px-3 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-luxury-purple/50 focus:border-luxury-purple disabled:opacity-50 transition-colors",children:[ve.jsx(Pp,{className:"h-4 w-4"}),ve.jsx("span",{children:f}),ve.jsx(_p,{className:"h-4 w-4 transition-transform duration-200 "+(s?"rotate-180":"")})]}),s&&ve.jsx("div",{role:"menu",className:"absolute right-0 top-full mt-1 w-56 bg-white border border-gray-200 rounded-md shadow-lg z-50 focus:outline-none",children:vN.map((e,t)=>ve.jsx("button",{role:"menuitem",className:`w-full px-4 py-2 text-left text-sm hover:bg-gray-100 focus:bg-gray-100 transition-colors first:rounded-t-md last:rounded-b-md ${t===o?"bg-gray-100":""} ${e.code===n?"bg-luxury-purple/10 font-medium text-luxury-purple":"text-gray-700"}`,onClick:()=>v(e.code),onMouseEnter:()=>l(t),children:e.display},e.code))})]})},xN=Y.lazy(()=>se(()=>import("./GenderDetector-D6OpVl8V.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]))),wN=Y.lazy(()=>se(()=>import("./AgeDetector-7llKHrtp.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),kN=Y.lazy(()=>se(()=>import("./FaceShapeDetector-1hDsiIT2.js"),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,23,27]))),jN=Y.lazy(()=>se(()=>import("./EmotionDetector-B9UfrKBf.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]))),_N=Y.lazy(()=>se(()=>import("./LipShapeDetector-Crj_0LKj.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,23,24,30,27]))),SN=Y.lazy(()=>se(()=>import("./EyeShapeDetector-WmlhOf0z.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,27]))),AN=Y.lazy(()=>se(()=>import("./FaceSymmetry-hq4r0GEt.js"),__vite__mapDeps([32,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,23,16,17,18,19,20,21,22,24]))),EN=Y.lazy(()=>se(()=>import("./GoldenRatioCalculator-BOib9CCw.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]))),NN=Y.lazy(()=>se(()=>import("./CelebrityLookalike-CECMMCFF.js"),__vite__mapDeps([34,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,19,20,21,23,24]))),IN=Y.lazy(()=>se(()=>import("./StyleWizard-DTzpON7D.js"),__vite__mapDeps([35,2,36,9]))),TN=Y.lazy(()=>se(()=>import("./SkinToneDetector-BFx1hMfh.js"),__vite__mapDeps([37,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,38,19,20,21,24,23]))
2),CN=Y.lazy(()=>se(()=>import("./GlassesFinder-BVuKBzgi.js"),__vite__mapDeps([39,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,38,19,20,21,24,23]))),ON=Y.lazy(()=>se(()=>import("./HairstyleRecommender-wgA5JsJF.js"),__vite__mapDeps([40,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,38,19,20,21,24,23]))),PN=Y.lazy(()=>se(()=>import("./BodyShapeDetector-CSb04REX.js"),__vite__mapDeps([41,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,42,43,24]))),RN=Y.lazy(()=>se(()=>import("./BodyShapeDetectorAI-BkXVqwrJ.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,22,23,42,43,24])));Y.lazy(()=>se(()=>import("./BodyAnalysis-Clr9Lmem.js"),__vite__mapDeps([45,2,16,46,43,10,11])));const FN=Y.lazy(()=>se(()=>import("./About-CXoBBXJm.js"),__vite__mapDeps([47,2]))),DN=Y.lazy(()=>se(()=>import("./Pricing-DOnERKml.js"),__vite__mapDeps([48,2,4,49,50,51,52,5,36]))),LN=Y.lazy(()=>se(()=>import("./PrivacyPolicy-DYf04i4E.js"),__vite__mapDeps([53,2]))),MN=Y.lazy(()=>se(()=>import("./TermsOfService-BQFaEIgi.js"),__vite__mapDeps([54,2]))),zN=Y.lazy(()=>se(()=>import("./Methodology-MIqlCgrW.js"),__vite__mapDeps([55,2]))),$N=Y.lazy(()=>se(()=>import("./FaceAnalysisPage-Egk4VxWa.js"),__vite__mapDeps([56,2,11,13,57,8,23,10])).then(e=>({default:e.FaceAnalysisPage}))),UN=Y.lazy(()=>se(()=>import("./AnalysisResults-DQhe9iio.js"),__vite__mapDeps([58,13,57,8,2]))),VN=Y.lazy(()=>se(()=>import("./ProfilePage-JCF2KFV3.js"),__vite__mapDeps([59,2,7,3,60,36,61,5,49,50,51,52,62,18,63,64,30,14,65]))),BN=Y.lazy(()=>se(()=>import("./SystemHealthDashboard-Bydn_ygk.js"),__vite__mapDeps([66,2,6,67]))),WN=Y.lazy(()=>se(()=>import("./analytics-login-Cr8OzKw-.js"),__vite__mapDeps([68,2,10,61]))),qN=Y.lazy(()=>se(()=>import("./ProtectedAnalytics-CNmu4NTN.js"),__vite__mapDeps([69,2,50,51,52,18,63,6,15,64,70,8,67]))),KN=Y.lazy(()=>se(()=>import("./DeveloperPortal-WfHwyhW0.js").then(e=>e.D),__vite__mapDeps([71,2,51,18,63]))),HN=({className:e})=>ve.jsxs("svg",{className:e||"h-5 w-5 text-luxury-purple",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[ve.jsx("circle",{cx:"12",cy:"12",r:"10"}),ve.jsx("path",{d:"m9 12 2 2 4-4"})]}),GN=({className:e})=>ve.jsxs("svg",{className:e||"h-5 w-5 text-luxury-purple",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[ve.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),ve.jsx("circle",{cx:"12",cy:"8",r:"2"}),ve.jsx("path",{d:"m6 21-4-4"}),ve.jsx("path",{d:"m22 21-4-4"})]}),ZN=()=>ve.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 24 24",fill:"none",children:[ve.jsx("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.275z",stroke:"#6A3EA1",strokeOpacity:".9",children:ve.jsx("animate",{attributeName:"opacity",values:"0.9;0.4;0.9",dur:"2s",repeatCount:"indefinite"})}),ve.jsx("path",{d:"M5 3v4",stroke:"#DFB547",strokeOpacity:".8",children:ve.jsx("animate",{attributeName:"stroke-dasharray",values:"1,3;3,1",dur:"1.5s",repeatCount:"indefinite"})}),ve.jsx("path",{d:"M19 17v4",stroke:"#007D8F",strokeOpacity:".8",children:ve.jsx("animate",{attributeName:"stroke-dasharray",values:"3,1;1,3",dur:"1.5s",repeatCount:"indefinite"})}),ve.jsx("path",{d:"M3 5h4m10 14h4",stroke:"#DFB547",strokeOpacity:".7"}),ve.jsx("circle",{cx:"12",cy:"12",r:"6",stroke:"#007D8F",strokeDasharray:"4,2",strokeOpacity:".5",children:ve.jsx("animateTransform",{attributeName:"transform",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"8s",repeatCount:"indefinite"})})]});function JN(){const[e,t]=Y.useState(!1),[n,r]=Y.useState(!1),[a,s]=Y.useState(""),[i,o]=Y.useState(!1);Sk();const[l,c]=fh();Rk();const{getLocalizedPath:u,currentLocale:d}=hN(),{t:h}=le("common"),f=()=>s(""),p="group flex min-h-11 items-start gap-2.5 rounded-md px-3 py-2.5 text-gray-800 transition-colors duration-200 hover:text-luxury-purple focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-luxury-purple/40",m="mega-menu-link-label font-heading text-sm tracking-wide leading-snug",g="mt-0.5 block text-xs leading-snug text-stone-500 group-hover:text-stone-600",y="min-w-0 space-y-0.5",v="mb-1.5 px-3 font-heading text-[11px] font-medium uppercase tracking-[0.14em] text-stone-500",b="mt-0.5 h-4 w-4 shrink-0",x=`${b} text-luxury-purple`,w=`${b} text-luxury-teal`,k=`${b} text-luxury-gold`,j=e=>{const t=l.replace(/^\/(es|hi|de|fil|fr)(?=\/|$)/,"")||"/";return t===e||t.startsWith(`${e}/`)};return Y.useEffect(()=>{l.startsWith("/auth")&&t(!1);const e=()=>{t(!1)};return window.addEventListener("closeMobileMenu",e),()=>window.removeEventListener("closeMobileMenu",e)},[l]),Y.useEffect(()=>{const e=()=>{window.scrollY>20?r(!0):r(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),ve.jsx("header",{className:"sticky top-0 z-50 w-full border-b backdrop-blur transition-all duration-300\n "+(n?"bg-gradient-to-r from-luxury-gold/5 via-luxury-purple/5 to-luxury-gold/5 border-luxury-gold/20 shadow-sm h-16":"bg-gradient-to-r from-luxury-gold/5 via-luxury-purple/5 to-luxury-gold/5 border-luxury-gold/20 h-20"),children:ve.jsxs("div",{className:"container mx-auto flex h-full max-w-7xl items-center justify-between px-4 sm:px-6 lg:px-8",children:[ve.jsx(vh,{href:u("/",d),children:ve.jsxs("div",{className:"flex items-center space-x-1",children:[ve.jsx(ZN,{}),ve.jsx("span",{className:"font-heading font-bold text-luxury-purple text-xl tracking-[2px]",children:"FACE AURA AI"})]})}),ve.jsx(Qm,{className:"hidden lg:flex",value:a,onValueChange:s,children:ve.jsxs(Ym,{className:"gap-1",children:[ve.jsxs(Xm,{value:"tools",children:[ve.jsx(tg,{className:"text-luxury-purple font-heading tracking-wider",onMouseEnter:()=>(se(()=>import("./FaceShapeDetector-1hDsiIT2.js"),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,23,27])),se(()=>import("./GenderDetector-D6OpVl8V.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])),void se(()=>import("./AgeDetector-7llKHrtp.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),children:h("navigation.tools","es"===d?"HERRAMIENTAS":"hi"===d?"à¤à¤ªà¤à¤°à¤£":"TOOLS")}),ve.jsx(ng,{children:ve.jsxs("div",{className:"grid w-[min(920px,calc(100vw-3rem))] -translate-x-8 grid-cols-4 gap-x-4 gap-y-2 rounded-xl border border-stone-200 bg-white/[0.98] p-5 shadow-[0_8px_30px_rgba(15,23,42,0.1)] backdrop-blur-2xl lg:-translate-x-24 xl:-translate-x-16",children:[ve.jsxs("div",{className:y,children:[ve.jsx("p",{className:v,children:"Face"}),ve.jsxs(vh,{href:u("/ai-tools/face-shape-detector",d),className:p,onClick:f,"aria-current":j("/ai-tools/face-shape-detector")?"page":void 0,children:[ve.jsx(Yp,{className:x,"aria-hidden":"true"}),ve.jsxs("span",{className:"min-w-0",children:[ve.jsx("span",{className:m,children:h("tools.faceShape.short","Face Shape Detector")}),ve.jsx("span",{className:g,children:h("tools.faceShape.sub","Analyze from a photo")})]})]}),ve.jsxs(vh,{href:u("/ai-tools/face-symmetry",d),className:p,onClick:f,"aria-current":j("/ai-tools/face-symmetry")?"page":void 0,children:[ve.jsx(gp,{className:w,"aria-hidden":"true"}),ve.jsxs("span",{className:"min-w-0",children:[ve.jsx("span",{className:m,children:h("tools.faceSymmetry.short","Face Symmetry Test")}),ve.jsx("span",{className:g,children:h("tools.faceSymmetry.sub","Balance & proportions")})]})]}),ve.jsxs(vh,{href:u("/ai-tools/eye-shape-detector",d),className:p,onClick:f,"aria-current":j("/ai-tools/eye-shape-detector")?"page":void 0,children:[ve.jsx(Cp,{className:w,"aria-hidden":"true"}),ve.jsxs("span",{className:"min-w-0",children:[ve.jsx("span",{className:m,children:h("tools.eyeShape.short","Eye Shape Detector")}),ve.jsx("span",{className:g,children:h("tools.eyeShape.sub","Detect your eye type")})]})]}),ve.jsxs(vh,{href:u("/ai-tools/lip-shape-detector",d),className:p,onClick:f,"aria-current":j("/ai-tools/lip-shape-detector")?"page":void 0,children:[ve.jsx(Rp,{className:w,"aria-hidden":"true"}),ve.jsxs("span",{className:"min-w-0",children:[ve.jsx("span",{className:m,children:h("tools.lipShape.short","Lip Shape Detector")}),ve.jsx("span",{className:g,children:h("tools.lipShape.sub","Identify lip shape")})]})]})]}),ve.jsxs("div",{className:y,children:[ve.jsx("p",{className:v,children:"Body"}),ve.jsxs(vh,{href:u("/ai-tools/body-shape-detector",d),className:p,onClick:f,"aria-current":j("/ai-tools/body-shape-detector")?"page":void 0,children:[ve.jsx(Xp,{className:x,"aria-hidden":"true"}),ve.jsxs("span",{className:"min-w-0",children:[ve.jsx("span",{className:m,children:h("tools.bodyShape.short","Body Shape Detector")}),ve.jsx("span",{className:g,children:h("tools.bodyShape.sub","Find your body type")})]})]}),ve.jsxs(vh,{href:u("/ai-tools/golden-ratio-calculator",d),className:p,onClick:f,"aria-current":j("/ai-tools/golden-ratio-calculator")?"page":void 0,children:[ve.jsx(Zp,{className:k,"aria-hidden":"true"}),ve.jsxs("span",{className:"min-w-0",children:[ve.jsx("span",{className:m,children:h("tools.goldenRatio.short","Golden Ratio Calculator")}),ve.jsx("span",{className:g,children:h("tools.goldenRatio.sub","Facial ratio anal
2ysis")})]})]})]}),ve.jsxs("div",{className:y,children:[ve.jsx("p",{className:v,children:"Style"}),ve.jsxs(vh,{href:u("/ai-tools/glasses-finder",d),className:p,onClick:f,"aria-current":j("/ai-tools/glasses-finder")?"page":void 0,children:[ve.jsx(Op,{className:x,"aria-hidden":"true"}),ve.jsxs("span",{className:"min-w-0",children:[ve.jsx("span",{className:m,children:h("tools.glassesFinder.short","Glasses Finder")}),ve.jsx("span",{className:g,children:h("tools.glassesFinder.sub","Frames for your face")})]})]}),ve.jsxs(vh,{href:u("/ai-tools/hairstyle-recommender",d),className:p,onClick:f,"aria-current":j("/ai-tools/hairstyle-recommender")?"page":void 0,children:[ve.jsx(Wp,{className:w,"aria-hidden":"true"}),ve.jsxs("span",{className:"min-w-0",children:[ve.jsx("span",{className:m,children:h("tools.hairstyleRecommender.short","Hairstyle Recommender")}),ve.jsx("span",{className:g,children:h("tools.hairstyleRecommender.sub","Cuts by face shape")})]})]}),ve.jsxs(vh,{href:u("/ai-tools/skin-tone-detector",d),className:p,onClick:f,"aria-current":j("/ai-tools/skin-tone-detector")?"page":void 0,children:[ve.jsx(Vp,{className:k,"aria-hidden":"true"}),ve.jsxs("span",{className:"min-w-0",children:[ve.jsx("span",{className:m,children:h("tools.skinToneDetector.short","Skin Tone Detector")}),ve.jsx("span",{className:g,children:h("tools.skinToneDetector.sub","Match your undertone")})]})]})]}),ve.jsxs("div",{className:y,children:[ve.jsx("p",{className:v,children:"Traits"}),ve.jsxs(vh,{href:u("/ai-tools/age-detector",d),className:p,onClick:f,"aria-current":j("/ai-tools/age-detector")?"page":void 0,children:[ve.jsx(xp,{className:w,"aria-hidden":"true"}),ve.jsxs("span",{className:"min-w-0",children:[ve.jsx("span",{className:m,children:h("tools.ageDetector.short","AI Age Detector")}),ve.jsx("span",{className:g,children:h("tools.ageDetector.sub","Estimate age from photo")})]})]}),ve.jsxs(vh,{href:u("/ai-tools/emotion-detector",d),className:p,onClick:f,"aria-current":j("/ai-tools/emotion-detector")?"page":void 0,children:[ve.jsx(HN,{className:x,"aria-hidden":"true"}),ve.jsxs("span",{className:"min-w-0",children:[ve.jsx("span",{className:m,children:h("tools.emotionAnalyzer.short","AI Emotion Detector")}),ve.jsx("span",{className:g,children:h("tools.emotionAnalyzer.sub","Read facial emotion")})]})]}),ve.jsxs(vh,{href:u("/ai-tools/gender-detector",d),className:p,onClick:f,"aria-current":j("/ai-tools/gender-detector")?"page":void 0,children:[ve.jsx(GN,{className:x,"aria-hidden":"true"}),ve.jsxs("span",{className:"min-w-0",children:[ve.jsx("span",{className:m,children:h("tools.genderStyle.short","AI Gender Detector")}),ve.jsx("span",{className:g,children:h("tools.genderStyle.sub","Detect from a photo")})]})]})]})]})})]}),ve.jsx(Xm,{children:ve.jsx("a",{href:"/haircuts/",children:ve.jsx(sg,{variant:"ghost",className:"text-gray-800 tracking-wider font-heading hover:text-luxury-purple",onMouseEnter:()=>(se(()=>import("./About-CXoBBXJm.js"),__vite__mapDeps([47,2])),void se(()=>import("./Pricing-DOnERKml.js"),__vite__mapDeps([48,2,4,49,50,51,52,5,36]))),children:"Haircuts"})})}),ve.jsx(Xm,{children:ve.jsx("a",{href:"/aesthetics/",children:ve.jsx(sg,{variant:"ghost",className:"text-gray-800 tracking-wider font-heading hover:text-luxury-teal",children:"Lexicon"})})}),ve.jsx(Xm,{children:ve.jsx(vh,{href:u("/pricing",d),children:ve.jsx(sg,{variant:"ghost",className:"text-gray-800 tracking-wider font-heading hover:text-luxury-purple",children:h("navigation.pricing","es"===d?"PRECIOS":"hi"===d?"मà¥à¤²à¥à¤¯ निरà¥à¤§à¤¾à¤°à¤£":"PRICING")})})}),ve.jsx(Xm,{children:ve.jsx(vh,{href:u("/about",d),children:ve.jsx(sg,{variant:"ghost",className:"text-gray-800 tracking-wider font-heading hover:text-luxury-teal",children:h("navigation.about","es"===d?"ACERCA DE":"hi"===d?"हमारॠबारॠमà¥à¤":"ABOUT")})})}),ve.jsx(Xm,{children:ve.jsx("a",{href:"/blog/",target:"_blank",rel:"noopener noreferrer",children:ve.jsx(sg,{variant:"ghost",className:"text-gray-800 tracking-wider font-heading hover:text-luxury-gold",children:h("navigation.blog","es"===d?"BLOG":"hi"===d?"बà¥à¤²à¥à¤":"BLOG")})})})]})}),ve.jsxs("div",{className:"hidden lg:flex items-center space-x-4",children:[ve.jsx(bN,{variant:"compact"}),ve.jsx(yN,{})]}),ve.jsxs("div",{className:"flex lg:hidden items-center space-x-1",children:[ve.jsx(bN,{variant:"minimal"}),ve.jsxs(tv,{open:e,onOpenChange:t,children:[ve.jsx(nv,{asChild:!0,children:ve.jsx(sg,{variant:"ghost",size:"icon",className:"text-luxury-purple hover:text-luxury-purple/80 p-2 h-12 w-12 flex items-center justify-center [&_svg]:size-7","aria-label":"Open navigation menu",children:ve.jsx(Up,{className:"h-12 w-12",strokeWidth:1.7})})}),ve.jsxs(iv,{side:"right",className:"fixed inset-0 w-screen h-screen border-none bg-white/95 backdrop-blur-2xl p-0 overflow-y-auto",children:[ve.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[ve.jsx("div",{className:"absolute top-0 left-0 w-96 h-96 bg-slate-200/40 rounded-full blur-3xl animate-float-slow"}),ve.jsx("div",{className:"absolute bottom-0 right-0 w-80 h-80 bg-slate-100/30 rounded-full blur-3xl animate-float-delayed"}),ve.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-72 h-72 bg-slate-200/30 rounded-full blur-3xl animate-float"})]}),ve.jsx("button",{onClick:()=>t(!1),className:"absolute top-6 right-6 z-50 p-2 transition-all duration-200 hover:opacity-70 active:scale-90","aria-label":"Close menu",children:ve.jsx("svg",{className:"w-8 h-8 text-gray-800",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",viewBox:"0 0 24 24",stroke:"currentColor",children:ve.jsx("path",{d:"M6 18L18 6M6 6l12 12"})})}),ve.jsxs("div",{className:"relative z-10 flex flex-col h-full py-6 px-6",children:[ve.jsxs("div",{className:"text-left mb-8 animate-fade-in-down pl-2",children:[ve.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[ve.jsx(ZN,{}),ve.jsx("span",{className:"font-heading font-bold text-luxury-black text-2xl tracking-[2px]",children:"FACE AURA AI"})]}),ve.jsx("p",{className:"text-gray-700 font-body text-sm tracking-wide",children:h("mobileMenu.subtitle","es"===d?"Descubre tu estilo perfecto":"hi"===d?"à¤
पनॠपरफà¥à¤à¥à¤ सà¥à¤à¤¾à¤à¤² à¤à¥à¤à¥à¤":"Discover Your Perfect Style")})]}),ve.jsxs("div",{className:"flex-1 overflow-y-auto pb-6 space-y-6",children:[ve.jsxs("div",{className:"space-y-3",children:[ve.jsxs("button",{type:"button",className:"flex w-full items-center justify-between mb-2 pl-2 pr-2 py-1 text-left",onClick:()=>o(e=>!e),"aria-expanded":i,children:[ve.jsx("h3",{className:"font-heading tracking-wider text-lg text-gray-800",children:h("mobileMenu.tools","es"===d?"HERRAMIENTAS":"hi"===d?"à¤à¤ªà¤à¤°à¤£":"TOOLS")}),ve.jsx(_p,{className:"h-5 w-5 text-gray-700 transition-transform duration-200 "+(i?"rotate-180":""),"aria-hidden":"true"})]}),i&&ve.jsxs("div",{className:"space-y-2",children:[ve.jsx(vh,{href:u("/ai-tools/face-shape-detector",d),children:ve.jsxs("div",{className:"mobile-tool-row",onClick:()=>t(!1),style:{animationDelay:"0ms"},children:[ve.jsx("div",{className:"tool-row-icon bg-luxury-purple/15",children:ve.jsx(Yp,{className:"h-5 w-5 text-luxury-purple"})}),ve.jsx("span",{className:"tool-row-title",children:h("tools.faceShape.short","Face Shape Detector")})]})}),ve.jsx(vh,{href:u("/ai-tools/face-symmetry",d),children:ve.jsxs("div",{className:"mobile-tool-row",onClick:()=>t(!1),style:{animationDelay:"40ms"},children:[ve.jsx("div",{className:"tool-row-icon bg-luxury-teal/15",children:ve.jsx(gp,{className:"h-5 w-5 text-luxury-teal"})}),ve.jsx("span",{className:"tool-row-title",children:h("tools.faceSymmetry.short","Face Symmetry Test")})]})}),ve.jsx(vh,{href:u("/ai-tools/eye-shape-detector",d),children:ve.jsxs("div",{className:"mobile-tool-row",onClick:()=>t(!1),style:{animationDelay:"80ms"},children:[ve.jsx("div",{className:"tool-row-icon bg-luxury-teal/15",children:ve.jsx(Cp,{className:"h-5 w-5 text-luxury-teal"})}),ve.jsx("span",{className:"tool-row-title",children:h("tools.eyeShape.short","Eye Shape Detector")})]})}),ve.jsx(vh,{href:u("/ai-tools/lip-shape-detector",d),children:ve.jsxs("div",{className:"mobile-tool-row",onClick:()=>t(!1),style:{animationDelay:"120ms"},children:[ve.jsx("div",{className:"tool-row-icon bg-luxury-teal/15",children:ve.jsx(Rp,{className:"h-5 w-5 text-luxury-teal"})}),ve.jsx("span",{className:"tool-row-title",children:h("tools.lipShape.short","Lip Shape Detector")})]})}),ve.jsx(vh,{href:u("/ai-tools/body-shape-detector",d),children:ve.jsxs("div",{className:"mobile-tool-row",onClick:()=>t(!1),style:{animationDelay:"160ms"},children:[ve.jsx("div",{className:"tool-row-icon bg-luxury-purple/15",children:ve.jsx(Xp,{className:"h-5 w-5 text-luxury-purple"})}),ve.jsx("span",{className:"tool-row-title",children:h("tools.bodyShape.short","Body Shape Detector")})]})}),ve.jsx(vh,{href:u("/ai-tools/golden-ratio-calculator",d),children:ve.jsxs("div",{className:"mobile-tool-row",onClick:()=>t(!1),style:{animationDelay:"200ms"},children:[ve.jsx("div",{className:"tool-row-icon bg-luxury-gold/15",children:ve.jsx(Zp,{className:"h-5 w-5 text-luxury-gold"})}),ve.jsx("span",{className:"tool-row-title",children:h("tools.goldenRatio.short","Golden Ratio Calculator")})]})}),ve.jsx(vh,{href:u("/ai-tools/glasses-finder",d),children:ve.jsxs("div",{className:"mobile-tool-row",onClick:()=>t(!1),style:{animationDelay:"240ms"},children:[ve.jsx("div",{className:"tool-row-icon bg-luxury-purple/15",children:ve.jsx(Op,{className:"h-5 w-5 text-luxury-purple"})}),ve.jsx("span",{className:"tool-row-title",children:h("tools.glassesFinder.short","Glasses Finder")})]})}),ve.jsx(vh,{href:u("/ai-tools/hairstyle-recommender",d),children:ve.jsxs("div",{className:"mobile-tool-row",onClick:()=>t(!1),style:{animationDelay:"280ms"},children:[ve.jsx("div",{className:"tool-row-icon bg-luxury-teal/15",children:ve.jsx(Wp,{className:"h-5 w-5 text-luxury-teal"})}),ve.jsx("span",{className:"tool-row-title",children:h("tools.hairstyleRecommender.short","Hairstyle Recommender")})]})}),ve.jsx(vh,{href:u("/ai-tools/skin-tone-detector",d),children:ve.jsxs("div",{className:"mobile-tool-row",onClick:()=>t(!1),style:{animationDelay:"320ms"},children:[ve.jsx("div",{className:"tool-row-icon bg-luxury-gold/15",children:ve.jsx(Vp,{className:"h-5 w-5 text-luxury-gold"})}),ve.jsx("span",{className:"tool-row-title",children:h("tools.skinToneDetector.short","Skin Tone Detector")})]})}),ve.jsx(vh,{href:u("/ai-tools/age-detector",d),children:ve.jsxs("div",{className:"mobile-tool-row",onClick:()=>t(!1),style:{animationDelay:"360ms"},children:[ve.jsx("div",{className:"tool-row-icon bg-luxury-teal/15",children:ve.jsx(xp,{className:"h-5 w-5 text-luxury-teal"})}),ve.jsx("span",{className:"tool-row-title",children:h("tools.ageDetector.short","AI Age Detector")})]})}),ve.jsx(vh,{href:u("/ai-tools/emotion-detector",d),children:ve.jsxs("div",{className:"mobile-tool-row",onClick:()=>t(!1),style:{animationDelay:"400ms"},children:[ve.jsx("div",{className:"tool-row-icon bg-luxury-purple/15",children:ve.jsx(HN,{className:"h-5 w-5 text-luxury-purple"})}),ve.jsx("span",{className:"tool-row-title",children:h("tools.emotionAnalyzer.short","AI Emotion Detector")})]})}),ve.jsx(vh,{href:u("/ai-tools/gender-detector",d),children:ve.jsxs("div",{className:"mobile-tool-row",onClick:()=>t(!1),style:{animationDelay:"440ms"},children:[ve.jsx("div",{className:"tool-row-icon bg-luxury-purple/15",children:ve.jsx(GN,{className:"h-5 w-5 text-luxury-purple"})}),ve.jsx("span",{className:"tool-row-title",children:h("tools.genderStyle.short","AI Gender Detector")})]})})]})]}),ve.jsxs("div",{className:"space-y-3",children:[ve.jsx("div",{className:"h-px bg-slate-300/50 my-4"}),ve.jsxs("div",{className:"flex flex-col gap-2",children:[ve.jsx("a",{href:"/haircuts/",children:ve.jsxs("div",{className:"mobile-quick-link w-full justify-start rounded-lg",onClick:()=>t(!1),children:[ve.jsx(Wp,{className:"h-5 w-5 text-luxury-purple mr-2"}),ve.jsx("span",{children:"Haircuts"})]})}),ve.jsx("a",{href:"/aesthetics/",children:ve.jsxs("div",{className:"mobile-quick-link w-full justify-start rounded-lg",onClick:()=>t(!1),children:[ve.jsx(bp,{className:"h-5 w-5 text-luxury-teal mr-2"}),ve.jsx("span",{children:"Lexicon"})]})}),ve.jsx(vh,{href:u("/pricing",d),children:ve.jsxs("div",{className:"mobile-quick-link w-full justify-start rounded-lg",onClick:()=>t(!1),children:[ve.jsx(Ip,{className:"h-5 w-5 text-luxury-teal mr-2"}),ve.jsx("span",{children:h("navigation.pricingMobile","es"===d?"Precios":"hi"===d?"मà¥à¤²à¥à¤¯":"Pricing")})]})}),ve.jsx(vh,{href:u("/about",d),children:ve.jsxs("div",{className:"mobile-quick-link w-full justify-start rounded-lg",onClick:()=>t(!1),children:[ve.jsx(Dp,{className:"h-5 w-5 text-luxury-purple mr-2"}),ve.jsx("span",{children:h("navigation.aboutMobile","es"===d?"Nosotros":"hi"===d?"हमारॠबारॠमà¥à¤":"About")})]})}),ve.jsx("a",{href:"/blog/",target:"_blank",rel:"noopener noreferrer",children:ve.jsxs("div",{className:"mobile-quick-link w-full justify-start rounded-lg",onClick:()=>t(!1),children:[ve.jsx(qp,{className:"h-5 w-5 text-luxury-gold mr-2"}),ve.jsx("span",{children:h("navigation.blogMobile","es"===d?"Blog":"hi"===d?"बà¥à¤²à¥à¤":"Blog")})]})})]})]})]}),ve.jsx("div",{className:"pt-4 mt-auto border-t border-slate-300/50 animate-fade-in-up",style:{animationDelay:"600ms"},children:ve.jsx("div",{className:"bg-slate-50/60 backdrop-blur-sm rounded-lg p-3",children:ve.jsx(yN,{variant:"inline"})})})]})]})]})]})]})})}var QN="undefined"!=typeof Element,YN="function"==typeof Map,XN="function"==typeof Set,eI="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function tI(e,t){if(e===t)return!0;
2if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,a,s;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(!tI(e[r],t[r]))return!1;return!0}if(YN&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!tI(r.value[1],t.get(r.value[0])))return!1;return!0}if(XN&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(eI&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;if(QN&&e instanceof Element)return!1;for(r=n;0!==r--;)if(("_owner"!==a[r]&&"__v"!==a[r]&&"__o"!==a[r]||!e.$$typeof)&&!tI(e[a[r]],t[a[r]]))return!1;return!0}return e!=e&&t!=t}var nI=function(e,t){try{return tI(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const rI=X(nI);var aI=function(e,t,n,r,a,s,i,o){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,s,i,o],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}};const sI=X(aI);const iI=X(function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),i=Object.keys(t);if(s.length!==i.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),l=0;l<s.length;l++){var c=s[l];if(!o(c))return!1;var u=e[c],d=t[c];if(!1===(a=n?n.call(r,u,d,c):void 0)||void 0===a&&u!==d)return!1}return!0});var oI=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(oI||{}),lI={rel:["amphtml","canonical","alternate"]},cI={type:["application/ld+json"]},uI={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},dI=Object.values(oI),hI={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},fI=Object.entries(hI).reduce((e,[t,n])=>(e[n]=t,e),{}),pI="data-rh",mI="defaultTitle",gI="defer",yI="encodeSpecialCharacters",vI="onChangeClientState",bI="titleTemplate",xI="prioritizeSeoTags",wI=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},kI=e=>{let t=wI(e,"title");const n=wI(e,bI);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=wI(e,mI);return t||r||void 0},jI=e=>wI(e,vI)||(()=>{}),_I=(e,t)=>t.filter(t=>void 0!==t[e]).map(t=>t[e]).reduce((e,t)=>({...e,...t}),{}),SI=(e,t)=>t.filter(e=>void 0!==e.base).map(e=>e.base).reverse().reduce((t,n)=>{if(!t.length){const r=Object.keys(n);for(let a=0;a<r.length;a+=1){const s=r[a].toLowerCase();if(-1!==e.indexOf(s)&&n[s])return t.concat(n)}}return t},[]),AI=(e,t,n)=>{const r={};return n.filter(t=>{return!!Array.isArray(t[e])||(void 0!==t[e]&&(n=`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`,console&&"function"==typeof console.warn&&console.warn(n)),!1);var n}).map(t=>t[e]).reverse().reduce((e,n)=>{const a={};n.filter(e=>{let n;const s=Object.keys(e);for(let r=0;r<s.length;r+=1){const a=s[r],i=a.toLowerCase();-1===t.indexOf(i)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===i&&"stylesheet"===e[i].toLowerCase()||(n=i),-1===t.indexOf(a)||"innerHTML"!==a&&"cssText"!==a&&"itemprop"!==a||(n=a)}if(!n||!e[n])return!1;const i=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][i]&&(a[n][i]=!0,!0)}
2).reverse().forEach(t=>e.push(t));const s=Object.keys(a);for(let t=0;t<s.length;t+=1){const e=s[t],n={...r[e],...a[e]};r[e]=n}return e},[]).reverse()},EI=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},NI=e=>Array.isArray(e)?e.join(""):e,II=(e,t)=>Array.isArray(e)?e.reduce((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e),{priority:[],default:[]}):{default:e,priority:[]},TI=(e,t)=>({...e,[t]:void 0}),CI=["noscript","script","style"],OI=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),PI=e=>Object.keys(e).reduce((t,n)=>{const r=void 0!==e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),RI=(e,t={})=>Object.keys(e).reduce((t,n)=>(t[hI[n]||n]=e[n],t),t),FI=(e,t)=>t.map((t,n)=>{const r={key:n,[pI]:!0};return Object.keys(t).forEach(e=>{const n=hI[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:e}}else r[n]=t[e]}),ae.createElement(e,r)}),DI=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const r=RI(n,{key:t,[pI]:!0});return[ae.createElement("title",r,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const a=PI(n),s=NI(t);return a?`<${e} ${pI}="true" ${a}>${OI(s,r)}</${e}>`:`<${e} ${pI}="true">${OI(s,r)}</${e}>`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>RI(t),toString:()=>PI(t)};default:return{toComponent:()=>FI(e,t),toString:()=>((e,t,n=!0)=>t.reduce((t,r)=>{const a=r,s=Object.keys(a).filter(e=>!("innerHTML"===e||"cssText"===e)).reduce((e,t)=>{const r=void 0===a[t]?t:`${t}="${OI(a[t],n)}"`;return e?`${e} ${r}`:r},""),i=a.innerHTML||a.cssText||"",o=-1===CI.indexOf(e);return`${t}<${e} ${pI}="true" ${s}${o?"/>":`>${i}</${e}>`}`},""))(e,t,n)}}},LI=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:a,noscriptTags:s,styleTags:i,title:o="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:h}=e,f={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:f,linkTags:u,metaTags:d,scriptTags:h}=(({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const a=II(e,uI),s=II(t,lI),i=II(n,cI);return{priorityMethods:{toComponent:()=>[...FI("meta",a.priority),...FI("link",s.priority),...FI("script",i.priority)],toString:()=>`${DI("meta",a.priority,r)} ${DI("link",s.priority,r)} ${DI("script",i.priority,r)}`},metaTags:a.default,linkTags:s.default,scriptTags:i.default}})(e)),{priority:f,base:DI("base",t,r),bodyAttributes:DI("bodyAttributes",n,r),htmlAttributes:DI("htmlAttributes",a,r),link:DI("link",u,r),meta:DI("meta",d,r),noscript:DI("noscript",s,r),script:DI("script",h,r),style:DI("style",i,r),title:DI("title",{title:o,titleAttributes:l},r)}},MI=[],zI=!("undefined"==typeof window||!window.document||!window.document.createElement),$I=class{constructor(e,t){q(this,"instances",[]),q(this,"canUseDOM",zI),q(this,"context"),q(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?MI:this.instances,add:e=>{(this.canUseDOM?MI:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?MI:this.instances).indexOf(e);(this.canUseDOM?MI:this.instances).splice(t,1)}}}),this.context=e,this.canUseDOM=t||!1,t||(e.helmet=LI({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},UI=ae.createContext({}),VI=(t=class extends Y.Component{constructor(e){super(e),q(this,"helmetData"),this.helmetData=new $I(this.props.context||{},t.canUseDOM)}render(){return ae.createElement(UI.Provider,{value:this.helmetData.value},this.props.children)}},q(t,"canUseDOM",zI),t),BI=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${pI}]`),a=[].slice.call(r),s=[];let i;return t&&t.length&&t.forEach(t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,a=void 0===t[r]?"":t[r];n.setAttribute(e,a)}n.setAttribute(pI,"true"),a.some((e,t)=>(i=t,n.isEqualNode(e)))?a.splice(i,1):s.push(n)}
2),a.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),s.forEach(e=>n.appendChild(e)),{oldTags:a,newTags:s}},WI=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(pI),a=r?r.split(","):[],s=[...a],i=Object.keys(t);for(const o of i){const e=t[o]||"";n.getAttribute(o)!==e&&n.setAttribute(o,e),-1===a.indexOf(o)&&a.push(o);const r=s.indexOf(o);-1!==r&&s.splice(r,1)}for(let o=s.length-1;o>=0;o-=1)n.removeAttribute(s[o]);a.length===s.length?n.removeAttribute(pI):n.getAttribute(pI)!==i.join(",")&&n.setAttribute(pI,i.join(","))},qI=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:a,linkTags:s,metaTags:i,noscriptTags:o,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:h}=e;WI("body",r),WI("html",a),((e,t)=>{void 0!==e&&document.title!==e&&(document.title=NI(e)),WI("title",t)})(d,h);const f={baseTag:BI("base",n),linkTags:BI("link",s),metaTags:BI("meta",i),noscriptTags:BI("noscript",o),scriptTags:BI("script",c),styleTags:BI("style",u)},p={},m={};Object.keys(f).forEach(e=>{const{newTags:t,oldTags:n}=f[e];t.length&&(p[e]=t),n.length&&(m[e]=f[e].oldTags)}),t&&t(),l(e,p,m)},KI=null,HI=e=>{KI&&cancelAnimationFrame(KI),e.defer?KI=requestAnimationFrame(()=>{qI(e,()=>{KI=null})}):(qI(e),KI=null)},GI=class extends Y.Component{constructor(){super(...arguments),q(this,"rendered",!1)}shouldComponentUpdate(e){return!iI(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(a=e.get().map(e=>{const t={...e.props};return delete t.context,t}),{baseTag:SI(["href"],a),bodyAttributes:_I("bodyAttributes",a),defer:wI(a,gI),encode:wI(a,yI),htmlAttributes:_I("htmlAttributes",a),linkTags:AI("link",["rel","href"],a),metaTags:AI("meta",["name","charset","http-equiv","property","itemprop"],a),noscriptTags:AI("noscript",["innerHTML"],a),onChangeClientState:jI(a),scriptTags:AI("script",["src","innerHTML"],a),styleTags:AI("style",["cssText"],a),title:kI(a),titleAttributes:_I("titleAttributes",a),prioritizeSeoTags:EI(a,xI)});var a;VI.canUseDOM?HI(r):LI&&(n=LI(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},ZI=(n=class extends Y.Component{shouldComponentUpdate(e){return!rI(TI(this.props,"helmetData"),TI(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(t=>{n={...n,[t]:e[t]}}),n}warnOnInvalidChildren(e,t){return sI(dI.some(t=>e.type===t),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${dI.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),sI(!t||"string"==typeof t||Array.isArray(t)&&!t.some(e=>"string"!=typeof e),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return ae.Children.forEach(e,e=>{if(!e||!e.props)return;const{children:r,...a}=e.props,s=Object.keys(a).reduce((e,t)=>(e[fI[t]||t]=a[t],e),{});let{type:i}=e;
2switch("symbol"==typeof i?i=i.toString():this.warnOnInvalidChildren(e,r),i){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,s,r);break;default:t=this.mapObjectTypeChildren(e,t,s,r)}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof $I)){r=new $I(r.context,!0),delete n.helmetData}return r?ae.createElement(GI,{...n,context:r.value}):ae.createElement(UI.Consumer,null,e=>ae.createElement(GI,{...n,context:e}))}},q(n,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),n);const JI=["en","es","hi","de","fil","fr"],QI="https://faceauraai.com",YI="FaceAuraAI",XI="https://schema.org/InStock",eT={en:"en",es:"es",hi:"hi",de:"de",fil:"tl",fr:"fr"},tT={en:"en_US",es:"es_ES",hi:"hi_IN",de:"de_DE",fil:"fil_PH",fr:"fr_FR"},nT={"@type":"AggregateOffer",lowPrice:"0",highPrice:"19.99",priceCurrency:"USD",offerCount:"3",offers:[{"@type":"Offer",name:"Free Plan",price:"0",priceCurrency:"USD",availability:XI,priceSpecification:{"@type":"UnitPriceSpecification",price:"0",priceCurrency:"USD",billingIncrement:"P1M"}},{"@type":"Offer",name:"Pro Plan",price:"4.99",priceCurrency:"USD",availability:XI,priceSpecification:{"@type":"UnitPriceSpecification",price:"4.99",priceCurrency:"USD",billingIncrement:"P1M"}},{"@type":"Offer",name:"Max Plan",price:"19.99",priceCurrency:"USD",availability:XI,priceSpecification:{"@type":"UnitPriceSpecification",price:"19.99",priceCurrency:"USD",billingIncrement:"P1M"}}]};function rT(e){return eT[e]||e}function aT(e){return tT[e]||"en_US"}function sT(e){const t=e.siteName??YI;if(!e.isTool||!e.path)return t;const n=e.path.split("/").filter(Boolean).pop()||"";if(!n)return t;return`${t} ${n.split("-").map(e=>"ai"===e.toLowerCase()?"AI":e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")}`}const iT={home:{en:{title:"AI Face Analysis Tools for Emotion, Age, and Beauty | FaceAuraAI",description:"Explore your facial features with our suite of AI-powered tools. From face shape to age estimation, get instant insightsâFree & Easy to use.",ogImage:"/banner_images/AI Beauty Analysis Tool - Faceauraai.webp",keywords:["AI face analysis","face shape detector","beauty AI","emotion recognition","age estimation"]},es:{title:"Análisis facial con IA â Emociones, edad y belleza | FaceAuraAI",description:"Descubre las herramientas de análisis facial de FaceAuraAI: emociones, edad, simetrÃa y forma. Sube una selfie y recibe consejos de belleza únicos.",ogImage:"/banner_images/AI Beauty Analysis Tool - Faceauraai.webp",keywords:["análisis facial IA","detector forma cara","belleza IA","reconocimiento emociones","estimación edad"]},hi:{title:"AI à¤à¥à¤¹à¤°à¤¾ विशà¥à¤²à¥à¤·à¤£ â à¤à¤¾à¤µà¤¨à¤¾à¤à¤, à¤à¤®à¥à¤° à¤à¤° सà¥à¤à¤¦à¤°à¥à¤¯ à¤à¤¿à¤ªà¥à¤¸ | FaceAuraAI",description:"FaceAuraAI à¤à¥ AI à¤à¥à¤¹à¤°à¥-विशà¥à¤²à¥à¤·à¤£ à¤à¥à¤²à¥à¤¸ सॠà¤à¤¾à¤µà¤¨à¤¾à¤à¤, à¤à¤®à¥à¤°, समरà¥à¤ªà¤¤à¤¾ à¤à¤° à¤à¥à¤¹à¤°à¤¾ à¤à¤à¤¾à¤° à¤à¤¾à¤¨à¥à¤à¥¤ सà¥à¤²à¥à¤«à¥ à¤
पलà¥à¤¡ à¤à¤°à¥à¤ à¤à¤° पाà¤à¤ निà¤à¥, वà¥à¤¯à¤à¥à¤¤à¤¿à¤à¤¤ सà¥à¤à¤¦à¤°à¥à¤¯ सà¥à¤à¤¾à¤µà¥¤",ogImage:"/banner_images/AI Beauty Analysis Tool - Faceauraai.webp",keywords:["AI à¤à¥à¤¹à¤°à¤¾ विशà¥à¤²à¥à¤·à¤£","à¤à¥à¤¹à¤°à¤¾ à¤à¤à¤¾à¤° डिà¤à¥à¤à¥à¤à¤°","सà¥à¤à¤¦à¤°à¤¤à¤¾ AI","à¤à¤¾à¤µà¤¨à¤¾ पहà¤à¤¾à¤¨","à¤à¤®à¥à¤° à¤
नà¥à¤®à¤¾à¤¨"]},de:{title:"KI-Gesichtsanalyse-Tools für Emotionen, Alter und Schönheit | FaceAuraAI",description:"Erkunden Sie Ihre Gesichtszüge mit unserer Suite von KI-gestützten Tools. Von Gesichtsform bis Altersschätzung - erhalten Sie sofortige Einblicke. Kostenlos & einfach zu bedienen.",ogImage:"/banner_images/AI Beauty Analysis Tool - Faceauraai.webp",keywords:["KI-Gesichtsanalyse","Gesichtsform-Erkennung","Schönheits-KI","Emotionserkennung","Altersschätzung"]},fil:{title:"AI Facial Analysis Tools para sa Emosyon, Edad, at Kagandahan | FaceAuraAI",de
2scription:"Tuklasin ang iyong mga facial features gamit ang aming suite ng AI-powered tools. Mula sa face shape hanggang age estimation, makakuha ng instant insightsâLibre at Madaling gamitin.",ogImage:"/banner_images/AI Beauty Analysis Tool - Faceauraai.webp",keywords:["AI facial analysis","face shape detector","beauty AI","emotion recognition","age estimation"]},fr:{title:"Outils d'analyse faciale IA pour les émotions, l'âge et la beauté | FaceAuraAI",description:"Explorez vos traits faciaux avec notre suite d'outils alimentés par l'IA. De la forme du visage à l'estimation de l'âge, obtenez des informations instantanéesâGratuit et facile à utiliser.",ogImage:"/banner_images/AI Beauty Analysis Tool - Faceauraai.webp",keywords:["analyse faciale IA","détecteur de forme du visage","beauté IA","reconnaissance des émotions","estimation de l'âge"]}},faceShapeDetector:{en:{title:"AI Face Shape Detector - Identify Your Face Shape Instantly | FaceAuraAI",description:"Discover your face shape with our AI-powered detector. Get instant analysis of oval, round, square, heart, or oblong face shapes with personalized styling tips.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["face shape detector","AI face analysis","face shape","oval face","round face","square face"]},es:{title:"Detector de forma de rostro â Contorno y tipo con IA | FaceAuraAI",description:"Descubre si tu rostro es ovalado, redondo, cuadrado o en forma de corazón con nuestro detector de IA. Sube una selfie y obtén sugerencias de peinados y accesorios.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["detector forma cara","análisis facial IA","forma cara","cara ovalada","cara redonda"]},hi:{title:"AI à¤à¥à¤¹à¤°à¤¾ à¤à¤à¤¾à¤° डिà¤à¥à¤à¥à¤à¤° â फà¥à¤¸ à¤à¤à¤à¥à¤° à¤à¤° à¤à¤à¤¾à¤° विशà¥à¤²à¥à¤·à¤£ | FaceAuraAI",description:"à¤à¤¾à¤¨à¥à¤ à¤à¤ªà¤à¤¾ à¤à¥à¤¹à¤°à¤¾ à¤
à¤à¤¡à¤¾à¤à¤¾à¤°, à¤à¥à¤², à¤à¥à¤à¥à¤° या दिल à¤à¤à¤¾à¤° à¤à¤¾ हà¥à¥¤ सà¥à¤²à¥à¤«à¥ à¤
पलà¥à¤¡ à¤à¤°à¥à¤ à¤à¤° पाà¤à¤ हà¥à¤¯à¤°à¤¸à¥à¤à¤¾à¤à¤² व à¤à¤à¥à¤¸à¥à¤¸à¤°à¥ सà¥à¤à¤¾à¤µà¥¤",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["à¤à¥à¤¹à¤°à¤¾ à¤à¤à¤¾à¤° डिà¤à¥à¤à¥à¤à¤°","AI à¤à¥à¤¹à¤°à¤¾ विशà¥à¤²à¥à¤·à¤£","à¤à¥à¤¹à¤°à¤¾ à¤à¤à¤¾à¤°","à¤
à¤à¤¡à¤¾à¤à¤¾à¤° à¤à¥à¤¹à¤°à¤¾","à¤à¥à¤² à¤à¥à¤¹à¤°à¤¾"]},de:{title:"KI-Gesichtsform-Erkennung - Identifizieren Sie Ihre Gesichtsform sofort | FaceAuraAI",description:"Entdecken Sie Ihre Gesichtsform mit unserem KI-gestützten Detektor. Erhalten Sie sofortige Analysen von ovalen, runden, quadratischen, herzförmigen oder länglichen Gesichtsformen mit personalisierten Styling-Tipps.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["Gesichtsform-Erkennung","KI-Gesichtsanalyse","Gesichtsform","ovales Gesicht","rundes Gesicht"]},fil:{title:"AI Face Shape Detector - Tuklasin ang Iyong Face Shape | FaceAuraAI",description:"Tuklasin ang iyong face shape gamit ang aming AI-powered detector. Makakuha ng instant analysis ng oval, round, square, heart, o oblong face shapes na may personalized styling tips.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["face shape detector","AI face analysis","face shape","oval face","round face"]},fr:{title:"Détecteur de forme de visage IA - Identifiez votre forme de visage instantanément | FaceAuraAI",description:"Découvrez votre forme de visage avec notre détecteur alimenté par l'IA. Obtenez une analyse instantanée des formes de visage ovales, rondes, carrées, en cÅur ou oblongues avec des conseils de style personnalisés.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["détecteur de forme du visage","analyse faciale IA","forme du visage","visage ovale","visage rond"]}},ageDetector:{en:{title:"AI Age Detector - Estimate Age from Photos Instantly | FaceAuraAI",description:"Advanced AI age estimation tool that analyzes facial features to predict age with high accuracy. Upload your photo for instant age detection results.",ogImage:"/banner_images/AI Age Detector tool - Faceauraai.webp",keywords:["age detector","age estimation","AI age","facial age analysis","age prediction"]},es:{title:"Detector de edad con IA â Estimación facial al instante | FaceAuraAI",de
2scription:"Sube una selfie a nuestro detector de edad con IA und recibe predicciones instantáneas basadas en tus rasgos faciales. Preciso, privado y sin registro.",ogImage:"/banner_images/AI Age Detector tool - Faceauraai.webp",keywords:["detector edad","estimación edad","edad IA","análisis edad facial"]},hi:{title:"AI à¤à¤®à¥à¤° डिà¤à¥à¤à¥à¤à¤° â तà¥à¤°à¤à¤¤ à¤à¥à¤¹à¤°à¤¾ à¤à¤¯à¥ à¤
नà¥à¤®à¤¾à¤¨ | FaceAuraAI",description:"सà¥à¤²à¥à¤«à¥ à¤
पलà¥à¤¡ à¤à¤°à¥à¤ à¤à¤° AI सॠà¤à¥à¤¹à¤°à¥ à¤à¥ फà¥à¤à¤°à¥à¤¸ à¤à¥ à¤à¤§à¤¾à¤° पर तà¥à¤°à¤à¤¤ à¤à¤®à¥à¤° à¤à¤¾ à¤
नà¥à¤®à¤¾à¤¨ पाà¤à¤à¥¤ सà¤à¥à¤, निà¤à¥ à¤à¤° बिना पà¤à¤à¥à¤à¤°à¤£à¥¤",ogImage:"/banner_images/AI Age Detector tool - Faceauraai.webp",keywords:["à¤à¤®à¥à¤° डिà¤à¥à¤à¥à¤à¤°","à¤à¤®à¥à¤° à¤
नà¥à¤®à¤¾à¤¨","AI à¤à¤®à¥à¤°","à¤à¥à¤¹à¤°à¤¾ à¤à¤®à¥à¤° विशà¥à¤²à¥à¤·à¤£"]},de:{title:"KI-Altersschätzung - Schätzen Sie das Alter aus Fotos sofort | FaceAuraAI",description:"Fortgeschrittenes KI-Altersschätzungs-Tool, das Gesichtsmerkmale analysiert, um das Alter mit hoher Genauigkeit vorherzusagen. Laden Sie Ihr Foto hoch, um sofortige Alterserkennungsergebnisse zu erhalten.",ogImage:"/banner_images/AI Age Detector tool - Faceauraai.webp",keywords:["Altersschätzung","Alterserkennung","KI-Alter","Gesichtsaltersanalyse"]},fil:{title:"AI Age Detector - Tantiyahin ang Edad mula sa Mga Larawan | FaceAuraAI",description:"Advanced AI age estimation tool na sumusuri sa facial features upang mahulaan ang edad nang may mataas na katumpakan. I-upload ang iyong larawan para sa instant age detection results.",ogImage:"/banner_images/AI Age Detector tool - Faceauraai.webp",keywords:["age detector","age estimation","AI age","facial age analysis"]},fr:{title:"Détecteur d'âge IA - Estimez l'âge à partir de photos instantanément | FaceAuraAI",description:"Outil d'estimation d'âge IA avancé qui analyse les traits du visage pour prédire l'âge avec une grande précision. Téléchargez votre photo pour obtenir des résultats de détection d'âge instantanés.",ogImage:"/banner_images/AI Age Detector tool - Faceauraai.webp",keywords:["détecteur d'âge","estimation de l'âge","âge IA","analyse d'âge faciale"]}},emotionDetector:{en:{title:"AI Emotion Detector - Analyze Facial Expressions & Mood | FaceAuraAI",description:"Detect and analyze emotions from facial expressions using advanced AI. Understand mood, sentiment, and emotional states with detailed breakdowns.",ogImage:"/banner_images/emotion-detector-ai-tool.webp",keywords:["emotion detector","facial expression analysis","mood detection","emotion recognition","AI emotions"]},es:{title:"Detector de emociones â Reconocimiento facial con IA | FaceAuraAI",description:"Identifica emociones como alegrÃa o tristeza con nuestro detector de IA. Sube una foto y obtén información instantánea. Rápido y privado.",ogImage:"/banner_images/emotion-detector-ai-tool.webp",keywords:["detector emociones","análisis expresiones faciales","reconocimiento emociones"]},hi:{title:"AI à¤à¤¾à¤µà¤¨à¤¾ डिà¤à¥à¤à¥à¤à¤° â मà¥à¤¡ à¤à¤° à¤
à¤à¤¿à¤µà¥à¤¯à¤à¥à¤¤à¤¿ पहà¤à¤¾à¤¨ | FaceAuraAI",description:"AI सॠà¤à¥à¤¶à¥, à¤à¤¦à¤¾à¤¸à¥ à¤à¥à¤¸à¥ à¤à¤¾à¤µà¤¨à¤¾à¤à¤ तà¥à¤°à¤à¤¤ पहà¤à¤¾à¤¨à¥à¤à¥¤ फà¥à¤à¥ à¤
पलà¥à¤¡ à¤à¤°à¥à¤ à¤à¤° पाà¤à¤ तà¥à¤, निà¤à¥ मà¥à¤¡ विशà¥à¤²à¥à¤·à¤£à¥¤",ogImage:"/banner_images/emotion-detector-ai-tool.webp",keywords:["à¤à¤¾à¤µà¤¨à¤¾ डिà¤à¥à¤à¥à¤à¤°","à¤à¥à¤¹à¤°à¤¾ à¤
à¤à¤¿à¤µà¥à¤¯à¤à¥à¤¤à¤¿ विशà¥à¤²à¥à¤·à¤£","मà¥à¤¡ पहà¤à¤¾à¤¨"]},de:{title:"KI-Emotionserkennung - Analysieren Sie Gesichtsausdrücke & Stimmung | FaceAuraAI",description:"Erkennen und analysieren Sie Emotionen aus Gesichtsausdrücken mit fortgeschrittener KI. Verstehen Sie Stimmung, Sentiment und emotionale Zustände mit detaillierten Aufschlüsselungen.",ogImage:"/banner_images/emotion-detector-ai-tool.webp",keywords:["Emotionserkennung","Gesichtsausdrucksanalyse","Stimmungserkennung"]},fil:{title:"AI Emotion Detector - Suriin ang Facial Expressions at Mood | FaceAuraAI",de
2scription:"Tuklasin at suriin ang mga emosyon mula sa facial expressions gamit ang advanced AI. Unawain ang mood, sentiment, at emotional states na may detailed breakdowns.",ogImage:"/banner_images/emotion-detector-ai-tool.webp",keywords:["emotion detector","facial expression analysis","mood detection"]},fr:{title:"Détecteur d'émotions IA - Analyser les expressions faciales et l'humeur | FaceAuraAI",description:"Détectez et analysez les émotions à partir des expressions faciales en utilisant une IA avancée. Comprenez l'humeur, le sentiment et les états émotionnels avec des analyses détaillées.",ogImage:"/banner_images/emotion-detector-ai-tool.webp",keywords:["détecteur d'émotions","analyse des expressions faciales","détection de l'humeur"]}},eyeShapeDetector:{en:{title:"AI Eye Shape Detector - Identify Your Eye Shape | FaceAuraAI",description:"Discover your eye shape with our AI-powered eye shape analysis. Get personalized makeup tips for almond, round, monolid, and other eye shapes.",ogImage:"/banner_images/AI Eye Shape Detector tool - Faceauraai.webp",keywords:["eye shape detector","eye shape analysis","almond eyes","round eyes","makeup tips"]},es:{title:"Detector de forma de ojos â Análisis ocular con IA | FaceAuraAI",description:"Identifica la forma de tus ojos âredondos, almendrados, encapuchados y másâ con nuestro detector de IA. Recibe recomendaciones de maquillaje y gafas.",ogImage:"/banner_images/AI Eye Shape Detector tool - Faceauraai.webp",keywords:["detector forma ojos","análisis forma ojos","ojos almendrados"]},hi:{title:"AI à¤à¤à¤ à¤à¤à¤¾à¤° डिà¤à¥à¤à¥à¤à¤° â सà¤à¥à¤ à¤à¤à¤ विशà¥à¤²à¥à¤·à¤£ | FaceAuraAI",description:"à¤
पनॠà¤à¤à¤à¥à¤ à¤à¤¾ à¤à¤à¤¾à¤°âà¤à¥à¤², बादाम, ढà¤à¥ हà¥à¤ à¤à¤° à¤
नà¥à¤¯âपहà¤à¤¾à¤¨à¥à¤à¥¤ फà¥à¤à¥ à¤
पलà¥à¤¡ à¤à¤°à¥à¤ à¤à¤° पाà¤à¤ मà¥à¤à¤
प व à¤à¤¶à¥à¤®à¥ à¤à¥ लिठवà¥à¤¯à¤à¥à¤¤à¤¿à¤à¤¤ सà¥à¤à¤¾à¤µà¥¤",ogImage:"/banner_images/AI Eye Shape Detector tool - Faceauraai.webp",keywords:["à¤à¤à¤ à¤à¤à¤¾à¤° डिà¤à¥à¤à¥à¤à¤°","à¤à¤à¤ à¤à¤à¤¾à¤° विशà¥à¤²à¥à¤·à¤£","बादाम à¤à¤à¤à¥à¤"]},de:{title:"KI-Augenform-Erkennung - Identifizieren Sie Ihre Augenform | FaceAuraAI",description:"Entdecken Sie Ihre Augenform mit unserer KI-gestützten Augenformanalyse. Erhalten Sie personalisierte Make-up-Tipps für mandelförmige, runde, monolid und andere Augenformen.",ogImage:"/banner_images/AI Eye Shape Detector tool - Faceauraai.webp",keywords:["Augenform-Erkennung","Augenformanalyse","Mandelaugen"]},fil:{title:"AI Eye Shape Detector - Tuklasin ang Iyong Eye Shape | FaceAuraAI",description:"Tuklasin ang iyong eye shape gamit ang aming AI-powered eye shape analysis. Makakuha ng personalized makeup tips para sa almond, round, monolid, at iba pang eye shapes.",ogImage:"/banner_images/AI Eye Shape Detector tool - Faceauraai.webp",keywords:["eye shape detector","eye shape analysis","almond eyes"]},fr:{title:"Détecteur de forme d'Åil IA - Identifiez votre forme d'Åil | FaceAuraAI",description:"Découvrez votre forme d'Åil avec notre analyse de forme d'Åil alimentée par l'IA. Obtenez des conseils de maquillage personnalisés pour les yeux en amande, ronds, monolid et autres formes d'yeux.",ogImage:"/banner_images/AI Eye Shape Detector tool - Faceauraai.webp",keywords:["détecteur de forme d'Åil","analyse de forme d'Åil","yeux en amande"]}},lipShapeDetector:{en:{title:"AI Lip Shape Detector - Analyze Your Lip Shape | FaceAuraAI",description:"Discover your lip shape with AI. Get personalized lipstick and makeup technique recommendations for full, thin, heart-shaped, or bow-shaped lips.",ogImage:"/banner_images/AI Lip Shape Detector tool - Faceauraai.webp",keywords:["lip shape detector","lip shape analysis","lipstick tips","makeup techniques"]},es:{title:"Detector de forma de labios â Análisis personalizado con IA | FaceAuraAI",description:"Descubre si tus labios son completos, finos o en forma de corazón con nuestro detector de IA. Sube una selfie und recibe consejos de maquillaje y estilo.",ogImage:"/banner_images/AI Lip Shape Detector tool - Faceauraai.webp",keywords:["detector forma labios","análisis labios","consejos labial"]},hi:{title:"AI हà¥à¤à¤ à¤à¤à¤¾à¤° डिà¤à¥à¤à¥à¤à¤° â वà¥à¤¯à¤à¥à¤¤à¤¿à¤à¤¤ हà¥à¤à¤ विशà¥à¤²à¥à¤·à¤£ | FaceAuraAI",de
2scription:"à¤
पनॠहà¥à¤à¤ à¥à¤ à¤à¤¾ à¤à¤à¤¾à¤°âà¤à¤°à¤ªà¥à¤°, पतलà¥, दिल à¤à¤à¤¾à¤°âपहà¤à¤¾à¤¨à¥à¤à¥¤ सà¥à¤²à¥à¤«à¥ à¤
पलà¥à¤¡ à¤à¤°à¥à¤ à¤à¤° पाà¤à¤ मà¥à¤à¤
प व सà¥à¤à¤¾à¤à¤² à¤à¤¿à¤ªà¥à¤¸à¥¤",ogImage:"/banner_images/AI Lip Shape Detector tool - Faceauraai.webp",keywords:["हà¥à¤à¤ à¤à¤à¤¾à¤° डिà¤à¥à¤à¥à¤à¤°","हà¥à¤à¤ à¤à¤à¤¾à¤° विशà¥à¤²à¥à¤·à¤£","लिपसà¥à¤à¤¿à¤ à¤à¤¿à¤ªà¥à¤¸"]},de:{title:"KI-Lippenform-Erkennung - Analysieren Sie Ihre Lippenform | FaceAuraAI",description:"Entdecken Sie Ihre Lippenform mit KI. Erhalten Sie personalisierte Lippenstift- und Make-up-Technik-Empfehlungen für volle, dünne, herzförmige oder bogenförmige Lippen.",ogImage:"/banner_images/AI Lip Shape Detector tool - Faceauraai.webp",keywords:["Lippenform-Erkennung","Lippenformanalyse","Lippenstift-Tipps"]},fil:{title:"AI Lip Shape Detector - Suriin ang Iyong Lip Shape | FaceAuraAI",description:"Tuklasin ang iyong lip shape gamit ang AI. Makakuha ng personalized lipstick at makeup technique recommendations para sa full, thin, heart-shaped, o bow-shaped lips.",ogImage:"/banner_images/AI Lip Shape Detector tool - Faceauraai.webp",keywords:["lip shape detector","lip shape analysis","lipstick tips"]},fr:{title:"Détecteur de forme de lèvres IA - Analysez votre forme de lèvres | FaceAuraAI",description:"Découvrez votre forme de lèvres avec l'IA. Obtenez des recommandations personnalisées de rouge à lèvres et de techniques de maquillage pour les lèvres pleines, fines, en forme de cÅur ou d'arc.",ogImage:"/banner_images/AI Lip Shape Detector tool - Faceauraai.webp",keywords:["détecteur de forme de lèvres","analyse de forme de lèvres","conseils de rouge à lèvres"]}},faceSymmetry:{en:{title:"AI Face Symmetry Analysis - Check Facial Balance | FaceAuraAI",description:"Analyze your face symmetry with our advanced AI. Get facial balance scores and personalized suggestions for enhancement.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["face symmetry","facial balance","symmetry analysis","beauty score"]},es:{title:"Analizador de simetrÃa facial â Puntuación de belleza con IA | FaceAuraAI",description:"Mide la simetrÃa de tu rostro con precisión de IA. Sube una foto y recibe una puntuación de simetrÃa junto con consejos de belleza para mejorar la armonÃa.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["simetrÃa facial","equilibrio facial","análisis simetrÃa"]},hi:{title:"AI à¤à¥à¤¹à¤°à¤¾ समरà¥à¤ªà¤¤à¤¾ विशà¥à¤²à¥à¤·à¤ â सà¥à¤à¤¦à¤°à¥à¤¯ सà¥à¤à¥à¤° | FaceAuraAI",description:"AI सà¤à¥à¤à¤¤à¤¾ सॠà¤
पनॠà¤à¥à¤¹à¤°à¥ à¤à¥ समरà¥à¤ªà¤¤à¤¾ मापà¥à¤à¥¤ फà¥à¤à¥ à¤
पलà¥à¤¡ à¤à¤°à¥à¤ à¤à¤° पाà¤à¤ सà¥à¤à¤¦à¤°à¥à¤¯ सà¥à¤à¥à¤° व à¤à¥à¤¹à¤°à¥ à¤à¤¾ सà¤à¤¤à¥à¤²à¤¨ बढ़ानॠà¤à¥ सà¥à¤à¤¾à¤µà¥¤",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["à¤à¥à¤¹à¤°à¤¾ समरà¥à¤ªà¤¤à¤¾","à¤à¥à¤¹à¤°à¤¾ सà¤à¤¤à¥à¤²à¤¨","समरà¥à¤ªà¤¤à¤¾ विशà¥à¤²à¥à¤·à¤£"]},de:{title:"KI-Gesichtssymmetrie-Analyse - Ãberprüfen Sie das Gesichtsgleichgewicht | FaceAuraAI",description:"Analysieren Sie Ihre Gesichtssymmetrie mit unserer fortgeschrittenen KI. Erhalten Sie Gesichtsgleichgewichtsbewertungen und personalisierte Verbesserungsvorschläge.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["Gesichtssymmetrie","Gesichtsgleichgewicht","Symmetrieanalyse"]},fil:{title:"AI Face Symmetry Analysis - Suriin ang Facial Balance | FaceAuraAI",description:"Suriin ang iyong face symmetry gamit ang aming advanced AI. Makakuha ng facial balance scores at personalized suggestions para sa enhancement.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["face symmetry","facial balance","symmetry analysis"]},fr:{title:"Analyse de symétrie faciale IA - Vérifiez l'équilibre facial | FaceAuraAI",description:"Analysez la symétrie de votre visage avec notre IA avancée. Obtenez des scores d'équilibre facial et des suggestions personnalisées pour l'amélioration.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["symétrie faciale","équilibre facial","analyse de symétrie"]}},bodyShapeDetector:{en:{title:"AI Body Shape Detector - Identify Your Body Type | FaceAuraAI",de
2scription:"Discover your body shape with AI. Get personalized fashion and style advice for apple, pear, hourglass, or rectangle body types.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["body shape detector","body type","fashion advice","style tips","body analysis"]},es:{title:"Detector de forma corporal â Análisis de silueta con IA | FaceAuraAI",description:"Mide busto, cintura y caderas para descubrir tu tipo de cuerpo con nuestro detector de IA (pera, reloj de arena, etc.). Obtén consejos de estilo personalizados en segundos.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["detector forma corporal","tipo cuerpo","consejos moda"]},hi:{title:"AI शरà¥à¤° à¤à¤à¤¾à¤° डिà¤à¥à¤à¥à¤à¤° â सिलà¥à¤¹à¥à¤ à¤à¤° सà¥à¤à¤¾à¤à¤² à¤à¤¿à¤ªà¥à¤¸ | FaceAuraAI",description:"बसà¥à¤, à¤à¤®à¤° à¤à¤° à¤à¥à¤²à¥à¤¹à¥à¤ à¤à¤¾ माप लà¥à¤à¤° AI सॠà¤
पना शरà¥à¤° पà¥à¤°à¤à¤¾à¤° à¤à¤¾à¤¨à¥à¤ (नाशपातà¥, à¤à¤à¤à¤¾-à¤à¤¾à¤à¤ à¤à¤¦à¤¿)। पाà¤à¤ वà¥à¤¯à¤à¥à¤¤à¤¿à¤à¤¤ सà¥à¤à¤¾à¤à¤² सà¥à¤à¤¾à¤µà¥¤",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["शरà¥à¤° à¤à¤à¤¾à¤° डिà¤à¥à¤à¥à¤à¤°","शरà¥à¤° पà¥à¤°à¤à¤¾à¤°","फà¥à¤¶à¤¨ सà¥à¤à¤¾à¤µ"]},de:{title:"KI-Körperform-Erkennung - Identifizieren Sie Ihren Körpertyp | FaceAuraAI",description:"Entdecken Sie Ihre Körperform mit KI. Erhalten Sie personalisierte Mode- und Stilberatung für Apfel-, Birnen-, Sanduhr- oder Rechteck-Körpertypen.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["Körperform-Erkennung","Körpertyp","Modeberatung"]},fil:{title:"AI Body Shape Detector - Tuklasin ang Iyong Body Type | FaceAuraAI",description:"Tuklasin ang iyong body shape gamit ang AI. Makakuha ng personalized fashion at style advice para sa apple, pear, hourglass, o rectangle body types.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["body shape detector","body type","fashion advice"]},fr:{title:"Détecteur de forme corporelle IA - Identifiez votre type de corps | FaceAuraAI",description:"Découvrez votre forme corporelle avec l'IA. Obtenez des conseils de mode et de style personnalisés pour les types de corps pomme, poire, sablier ou rectangle.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["détecteur de forme corporelle","type de corps","conseils de mode"]}},bodyShapeDetectorAI:{en:{title:"AI Body Shape Analyzer â Vision-Powered Detection | FaceAuraAI",description:"Upload a full-body photo. Pose-based AI estimates hourglass, pear, apple, rectangle, or inverted triangle from your silhouette â no tape measure.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["body shape analyzer","pose AI","body type from photo","vision body shape"]},es:{title:"Analizador de silueta con visión IA | FaceAuraAI",description:"Sube una foto de cuerpo completo. La IA de pose estima pera, reloj de arena, manzana, rectángulo o triángulo invertido sin cinta métrica.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["analizador silueta","forma corporal foto","IA de pose"]},hi:{title:"AI बà¥à¤¡à¥ शà¥à¤ª à¤à¤¨à¤¾à¤²à¤¾à¤à¤à¤¼à¤° â फ़à¥à¤à¥ सॠविà¤à¤¼à¤¨ डिà¤à¥à¤à¥à¤¶à¤¨ | FaceAuraAI",description:"पà¥à¤°à¥ शरà¥à¤° à¤à¥ फ़à¥à¤à¥ à¤
पलà¥à¤¡ à¤à¤°à¥à¤à¥¤ पà¥à¤à¤¼-à¤à¤§à¤¾à¤°à¤¿à¤¤ AI नाशपातà¥, à¤à¤à¤à¤¾-à¤à¤¾à¤à¤, सà¥à¤¬, à¤à¤¯à¤¤ या à¤à¤²à¥à¤à¤¾ तà¥à¤°à¤¿à¤à¥à¤ à¤
नà¥à¤®à¤¾à¤¨à¤¿à¤¤ à¤à¤°à¤¤à¤¾ हॠâ à¤à¥à¤ª à¤à¥ à¤à¤¼à¤°à¥à¤°à¤¤ नहà¥à¤à¥¤",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["बà¥à¤¡à¥ शà¥à¤ª à¤à¤¨à¤¾à¤²à¤¾à¤à¤à¤¼à¤°","फ़à¥à¤à¥ सॠशरà¥à¤° पà¥à¤°à¤à¤¾à¤°"]},de:{title:"KI-Körperform-Analyse per Pose-Erkennung | FaceAuraAI",description:"Laden Sie ein Ganzkörperfoto hoch. Die Pose-KI schätzt Sanduhr, Birne, Apfel, Rechteck oder umgekehrtes Dreieck â ohne MaÃband.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["Körperform-Analyse","Pose-KI","Körpertyp Foto"]},fil:{title:"AI Body Shape Analyzer â Vision Detection mula sa Photo | FaceAuraAI",de
2scription:"Mag-upload ng full-body photo. Tinataya ng pose-based AI ang hourglass, pear, apple, rectangle, o inverted triangle â walang tape measure.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["body shape analyzer","pose AI","body type from photo"]},fr:{title:"Analyseur de morphologie IA par vision | FaceAuraAI",description:"Téléversez une photo en pied. LâIA de pose estime sablier, poire, pomme, rectangle ou triangle inversé â sans mètre ruban.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["analyseur morphologie","IA pose","type de corps photo"]}},genderDetector:{en:{title:"AI Gender Detector - Identify Gender from Facial Features | FaceAuraAI",description:"Use our AI gender detector to identify gender based on facial features. Get accurate results with advanced machine learning.",ogImage:"/banner_images/AI Gender Detector tool.webp",keywords:["gender detector","gender recognition","facial analysis","AI gender"]},es:{title:"Detector de género â Predicción facial con IA | FaceAuraAI",description:"Predice el género probable a partir de una selfie con nuestro detector de IA. Resultados rápidos y privados.",ogImage:"/banner_images/AI Gender Detector tool.webp",keywords:["detector género","reconocimiento género","análisis facial"]},hi:{title:"AI लिà¤à¤ डिà¤à¥à¤à¥à¤à¤° â à¤à¥à¤¹à¤°à¥ सॠलिà¤à¤ पहà¤à¤¾à¤¨ | FaceAuraAI",description:"सà¥à¤²à¥à¤«à¥ सॠसà¤à¤à¤¾à¤µà¤¿à¤¤ लिà¤à¤ à¤à¤¾ AI-à¤à¤§à¤¾à¤°à¤¿à¤¤ à¤
नà¥à¤®à¤¾à¤¨ à¤à¤°à¥à¤à¥¤ पाà¤à¤ तà¥à¤, निà¤à¥ à¤à¤° निषà¥à¤ªà¤à¥à¤· परिणाम।",ogImage:"/banner_images/AI Gender Detector tool.webp",keywords:["लिà¤à¤ डिà¤à¥à¤à¥à¤à¤°","लिà¤à¤ पहà¤à¤¾à¤¨","à¤à¥à¤¹à¤°à¤¾ विशà¥à¤²à¥à¤·à¤£"]},de:{title:"KI-Geschlechtserkennung - Identifizieren Sie das Geschlecht anhand von Gesichtsmerkmalen | FaceAuraAI",description:"Verwenden Sie unseren KI-Geschlechtserkennungs-Detektor, um das Geschlecht anhand von Gesichtsmerkmalen zu identifizieren. Erhalten Sie genaue Ergebnisse mit fortgeschrittenem maschinellem Lernen.",ogImage:"/banner_images/AI Gender Detector tool.webp",keywords:["Geschlechtserkennung","Geschlechtserkennung","Gesichtsanalyse"]},fil:{title:"AI Gender Detector - Tuklasin ang Gender mula sa Facial Features | FaceAuraAI",description:"Gamitin ang aming AI gender detector upang makilala ang gender batay sa facial features. Makakuha ng tumpak na resulta gamit ang advanced machine learning.",ogImage:"/banner_images/AI Gender Detector tool.webp",keywords:["gender detector","gender recognition","facial analysis"]},fr:{title:"Détecteur de genre IA - Identifiez le genre à partir des traits du visage | FaceAuraAI",description:"Utilisez notre détecteur de genre IA pour identifier le genre en fonction des traits du visage. Obtenez des résultats précis avec un apprentissage automatique avancé.",ogImage:"/banner_images/AI Gender Detector tool.webp",keywords:["détecteur de genre","reconnaissance de genre","analyse faciale"]}},goldenRatioCalculator:{en:{title:"AI Golden Ratio Calculator - Facial Beauty Ratio Analysis | FaceAuraAI",description:"Analyze your facial beauty with the Golden Ratio. Get facial harmony scores and learn how closely your features align with classic beauty proportions.",ogImage:"/banner_images/Golden-ration-detector-ai-tool.webp",keywords:["golden ratio","facial beauty","beauty calculator","facial harmony","beauty score"]},es:{title:"Calculadora de proporción áurea â Análisis facial con IA | FaceAuraAI",description:"Calcula la proporción áurea de tu rostro con una foto. Nuestra IA mide proporciones para ofrecer ideas estéticas en belleza, fotografÃa y diseño.",ogImage:"/banner_images/Golden-ration-detector-ai-tool.webp",keywords:["proporción áurea","belleza facial","calculadora belleza"]},hi:{title:"AI सà¥à¤µà¤°à¥à¤£ à¤
नà¥à¤ªà¤¾à¤¤ à¤à¥à¤²à¤à¥à¤²à¥à¤à¤° â à¤à¥à¤¹à¤°à¤¾ à¤
नà¥à¤ªà¤¾à¤¤ विशà¥à¤²à¥à¤·à¤£ | FaceAuraAI",description:"फà¥à¤à¥ सॠà¤
पनॠà¤à¥à¤¹à¤°à¥ à¤à¤¾ सà¥à¤µà¤°à¥à¤£ à¤
नà¥à¤ªà¤¾à¤¤ मापà¥à¤à¥¤ AI à¤
नà¥à¤ªà¤¾à¤¤ विशà¥à¤²à¥à¤·à¤£ सॠपाà¤à¤ सà¥à¤à¤¦à¤°à¥à¤¯, फà¥à¤à¥à¤à¥à¤°à¤¾à
2¤«à¥ à¤à¤° डिà¤à¤¾à¤à¤¨ à¤à¥ लिठसà¥à¤à¤¾à¤µà¥¤",ogImage:"/banner_images/Golden-ration-detector-ai-tool.webp",keywords:["सà¥à¤µà¤°à¥à¤£ à¤
नà¥à¤ªà¤¾à¤¤","à¤à¥à¤¹à¤°à¤¾ सà¥à¤à¤¦à¤°à¥à¤¯","सà¥à¤à¤¦à¤°à¥à¤¯ à¤à¥à¤²à¤à¥à¤²à¥à¤à¤°"]},de:{title:"KI-Goldener-Schnitt-Rechner - Gesichtsschönheits-Verhältnis-Analyse | FaceAuraAI",description:"Analysieren Sie Ihre Gesichtsschönheit mit dem Goldenen Schnitt. Erhalten Sie Gesichtsharmonie-Bewertungen und erfahren Sie, wie genau Ihre Merkmale mit klassischen Schönheitsproportionen übereinstimmen.",ogImage:"/banner_images/Golden-ration-detector-ai-tool.webp",keywords:["Goldener Schnitt","Gesichtsschönheit","Schönheitsrechner"]},fil:{title:"AI Golden Ratio Calculator - Facial Beauty Ratio Analysis | FaceAuraAI",description:"Suriin ang iyong facial beauty gamit ang Golden Ratio. Makakuha ng facial harmony scores at matutunan kung gaano kalapit ang iyong features sa classic beauty proportions.",ogImage:"/banner_images/Golden-ration-detector-ai-tool.webp",keywords:["golden ratio","facial beauty","beauty calculator"]},fr:{title:"Calculateur de ratio d'or IA - Analyse du ratio de beauté faciale | FaceAuraAI",description:"Analysez votre beauté faciale avec le ratio d'or. Obtenez des scores d'harmonie faciale et découvrez à quel point vos traits s'alignent avec les proportions de beauté classiques.",ogImage:"/banner_images/Golden-ration-detector-ai-tool.webp",keywords:["ratio d'or","beauté faciale","calculateur de beauté"]}}
2,celebrityLookalike:{en:{title:"AI Celebrity Look Alike Finder â What Celebrity Do I Look Like?",description:"Upload a selfie and find your celebrity look alike with AI. Get instant celebrity matches, similarity scores, and fun shareable results in seconds.",ogImage:"/banner_images/AI Face Detector Faceauraai.webp",keywords:["celebrity look alike","what celebrity do I look like","celebrity look alike finder","celebrity twin finder","celebrity look alike app free","how to find your celebrity look alike","indian celebrities look alike","bollywood celebrity look alike"]},es:{title:"¿A qué famoso te pareces? Buscador de parecido por IA",description:"Sube una selfie y descubre a qué famoso te pareces con IA. Obtén coincidencias al instante, puntuaciones de similitud y resultados fáciles de compartir en segundos.",ogImage:"/banner_images/AI Face Detector Faceauraai.webp",keywords:["parecido con famosos","a qué famoso te pareces","buscador de parecido con famosos","doble de famoso IA","coincidencias de celebridades","selfie famoso parecido","herramienta parecido famoso gratis"]},hi:{title:"AI सà¥à¤²à¤¿à¤¬à¥à¤°à¤¿à¤à¥ लà¥à¤à¤
लाà¤à¤ फाà¤à¤à¤¡à¤° â à¤à¤ª à¤à¤¿à¤¸ सà¥à¤²à¤¿à¤¬à¥à¤°à¤¿à¤à¥ à¤à¥à¤¸à¥ दिà¤à¤¤à¥ हà¥à¤?",description:"à¤
पनॠसà¥à¤²à¥à¤«à¥ à¤
पलà¥à¤¡ à¤à¤°à¥à¤ à¤à¤° AI सॠà¤à¤¾à¤¨à¥à¤ à¤à¤¿ à¤à¤ª à¤à¤¿à¤¸ सà¥à¤²à¤¿à¤¬à¥à¤°à¤¿à¤à¥ à¤à¥ à¤à¥à¤¸à¥ दिà¤à¤¤à¥ हà¥à¤à¥¤ तà¥à¤°à¤à¤¤ सà¥à¤²à¤¿à¤¬à¥à¤°à¤¿à¤à¥ मà¥à¤, समानता सà¥à¤à¥à¤° à¤à¤° शà¥à¤¯à¤° à¤à¤°à¤¨à¥ यà¥à¤à¥à¤¯ परिणाम à¤à¥à¤ हॠसà¥à¤à¤à¤¡ मà¥à¤ पाà¤à¤à¥¤",ogImage:"/banner_images/AI Face Detector Faceauraai.webp",keywords:["सà¥à¤²à¤¿à¤¬à¥à¤°à¤¿à¤à¥ लà¥à¤à¤
लाà¤à¤","à¤à¤ª à¤à¤¿à¤¸ सà¥à¤²à¤¿à¤¬à¥à¤°à¤¿à¤à¥ à¤à¥à¤¸à¥ दिà¤à¤¤à¥ हà¥à¤","सà¥à¤²à¥à¤«à¥ सॠसà¥à¤²à¤¿à¤¬à¥à¤°à¤¿à¤à¥ मà¥à¤","सà¥à¤²à¤¿à¤¬à¥à¤°à¤¿à¤à¥ डबल फाà¤à¤à¤¡à¤°","बà¥à¤²à¥à¤µà¥à¤¡ सà¥à¤²à¤¿à¤¬à¥à¤°à¤¿à¤à¥ लà¥à¤à¤
लाà¤à¤","समानता सà¥à¤à¥à¤°","मशहà¥à¤° हसà¥à¤¤à¤¿à¤¯à¥à¤ à¤à¥à¤¸à¤¾ à¤à¥à¤¹à¤°à¤¾"]},de:{title:"Welchem Star siehst du ähnlich? KI-Promi-Doppelgänger-Finder",description:"Lade ein Selfie hoch und finde per KI heraus, welchem Promi du ähnlich siehst. Erhalte sofort Promi-Matches, Ãhnlichkeitswerte und teilbare Ergebnisse in Sekunden.",ogImage:"/banner_images/AI Face Detector Faceauraai.webp",keywords:["Promi-Doppelgänger","welchem Star sehe ich ähnlich","Promi-Lookalike Finder","KI Promi Match","Bollywood Doppelgänger","Promi-Ãbereinstimmung","Selfie Promi Vergleich"]},fil:{title:"Celebrity Look Alike Finder â Sino ang celebrity na katulad mo?",description:"Mag-upload ng selfie at alamin kung aling celebrity ang katulad mo gamit ang AI. Instant matches at madaling i-share na resulta sa ilang segundo.",ogImage:"/banner_images/AI Face Detector Faceauraai.webp",keywords:["celebrity look alike","sino ang celebrity na katulad mo","celebrity look alike finder","AI celebrity match","selfie celebrity katulad","Bollywood look alike","celebrity twin finder","katulad na celebrity"]},fr:{title:"à quelle star ressemblez-vous ? Sosie de célébrité par IA",description:"Téléversez un selfie et découvrez à quelle star vous ressemblez avec l'IA. Correspondances instantanées, scores de similitude et résultats partageables en quelques secondes.",ogImage:"/banner_images/AI Face Detector Faceauraai.webp",keywords:["sosie de célébrité","à quelle star je ressemble","trouver son sosie IA","match célébrité IA","selfie sosie star","ressemblance célébrité"]}},styleWizard:{en:{title:"AI Style Wizard: Get Your Personal Style Blueprint",description:"Take a 30-second style survey and get outfits, a capsule checklist, and a color palette matched to you. Free to try, no photo required.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["style wizard","personal style blueprint","capsule wardrobe","style survey","fashion AI"]},es:{title:"Asistente de estilo con IA: descubre tu plan de estilo",description:"Completa una encuesta de estilo de 30 segundos y recibe looks completos, una lista de cápsula y una paleta de colores a tu medida. Gratis, sin cuenta ni foto.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["asistente de estilo","plan de estilo","cápsula de armario","encuesta de estilo","moda IA"]},hi:{title:"à¤à¤à¤ सà¥à¤à¤¾à¤à¤² विà¤à¤¼à¤¾à¤°à¥à¤¡: à¤
पना परà¥à¤¸à¤¨à¤² सà¥à¤à¤¾à¤à¤² बà¥à¤²à¥à¤ªà¥à¤°à¤¿à¤à¤ पाà¤à¤",de
2scription:"30 सà¥à¤à¤à¤¡ à¤à¤¾ सà¥à¤à¤¾à¤à¤² सरà¥à¤µà¥ à¤à¤°à¥à¤ à¤à¤° à¤
पनॠहिसाब सॠतà¥à¤¯à¤¾à¤° à¤à¤à¤à¤«à¤¿à¤, à¤à¥à¤ªà¥à¤¸à¥à¤² à¤à¥à¤à¤²à¤¿à¤¸à¥à¤ à¤à¤° à¤à¤²à¤° पà¥à¤²à¥à¤ पाà¤à¤à¥¤ मà¥à¤«à¥à¤¤ मà¥à¤ à¤à¤à¤¼à¤®à¤¾à¤à¤, बिना à¤
à¤à¤¾à¤à¤à¤ à¤à¤° बिना फà¥à¤à¥ à¤à¥à¥¤",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["सà¥à¤à¤¾à¤à¤² विà¤à¤¼à¤¾à¤°à¥à¤¡","परà¥à¤¸à¤¨à¤² सà¥à¤à¤¾à¤à¤² बà¥à¤²à¥à¤ªà¥à¤°à¤¿à¤à¤","à¤à¥à¤ªà¥à¤¸à¥à¤² वारà¥à¤¡à¤°à¥à¤¬","सà¥à¤à¤¾à¤à¤² सरà¥à¤µà¥","फà¥à¤¶à¤¨ AI"]},de:{title:"AI Style Wizard: Dein Style-Bauplan in 30 Sekunden",description:"Mach die 30-Sekunden-Style-Umfrage und erhalte fertige Outfits, eine Capsule-Checkliste und eine passende Farbpalette â kostenlos, ohne Konto und ohne Foto.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["Style Wizard","Style-Bauplan","Capsule Wardrobe","Style-Umfrage","Mode-KI"]},fil:{title:"AI Style Wizard: Kunin ang Personal na Style Blueprint Mo",description:"Sagutan ang 30-segundong style survey at makakuha ng outfits, capsule checklist, at color palette na tugma sa iyo. Libre subukan, walang kailangang litrato.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["style wizard","style blueprint","capsule wardrobe","style survey","fashion AI"]},fr:{title:"Assistant Style IA : votre profil de style personnalisé",description:"Répondez à un test de style de 30 secondes et recevez des tenues, une liste capsule et une palette de couleurs adaptées à vous. Gratuit, sans photo.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["assistant de style","profil de style","garde-robe capsule","test de style","mode IA"]}},skinToneDetector:{en:{title:"Skin Tone & Undertone Detector: Warm, Cool, Neutral",description:"Upload a selfie to find your skin tone band, undertone, and matching 12-season palette, with metal and makeup notes. Free, no account needed.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["skin tone detector","undertone test from photo","warm cool neutral undertone","12 season color palette","AI skin tone analysis"]},es:{title:"Detector de Tono de Piel y Subtono: Cálido o FrÃo",description:"Sube una selfie y descubre tu banda de tono, tu subtono y tu paleta de 12 temporadas, con notas de metales y maquillaje. Gratis, sin cuenta.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["detector de tono de piel","test de subtono desde foto","subtono cálido frÃo neutro","paleta de 12 temporadas","análisis de tono de piel con IA"]},hi:{title:"सà¥à¤à¤¿à¤¨ à¤à¥à¤¨ व à¤
à¤à¤¡à¤°à¤à¥à¤¨ à¤à¤¾à¤à¤: वारà¥à¤®, à¤à¥à¤² या नà¥à¤¯à¥à¤à¥à¤°à¤² पहà¤à¤¾à¤¨à¥à¤",description:"सà¥à¤²à¥à¤«à¥ à¤
पलà¥à¤¡ à¤à¤°à¤à¥ à¤
पना सà¥à¤à¤¿à¤¨ à¤à¥à¤¨ बà¥à¤à¤¡, à¤
à¤à¤¡à¤°à¤à¥à¤¨ à¤à¤° मिलता-à¤à¥à¤²à¤¤à¤¾ 12-सà¥à¤à¤¼à¤¨ पà¥à¤²à¥à¤ à¤à¤¾à¤¨à¥à¤, मà¥à¤à¤² व मà¥à¤à¤
प नà¥à¤à¥à¤¸ à¤à¥ साथ। मà¥à¤«à¤¼à¥à¤¤, à¤
à¤à¤¾à¤à¤à¤ à¤à¥ à¤à¤¼à¤°à¥à¤°à¤¤ नहà¥à¤à¥¤",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["skin tone detector","undertone test from photo","warm cool neutral undertone","12 season color palette","AI skin tone analysis"]},de:{title:"Hautton- & Unterton-Test: Warm, Kühl oder Neutral?",description:"Lade ein Selfie hoch und erhalte deinen Hautton, Unterton und eine passende 12-Saisonen-Farbpalette mit Metall- und Make-up-Tipps. Kostenlos, ohne Account.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["Hautton Test","Unterton Test aus Foto","warm kühl neutral Unterton","12 Saisonen Farbpalette","KI Hautton Analyse"]},fil:{title:"Skin Tone Checker: Warm, Cool, o Neutral ang Undertone?",description:"Mag-upload ng selfie para malaman ang tone band, undertone, at 12-season color palette mo, may tala pa sa metal at makeup. Libre, walang account.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["skin tone detector","undertone test mula sa litrato","warm cool neutral undertone","12 season color palette","AI skin tone analysis"]},fr:{title:"Détecteur de Carnation et Sous-Ton : Chaud ou Froid",description:"Envoyez un selfie pour découvrir votre bande de carnation, votre sous-ton et votre palette parmi 12 saisons, avec repères métaux. Gratuit, sans compte.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["détecteur de carnation","test de sous-ton par photo","
2sous-ton chaud froid neutre","palette colorimétrique 12 saisons","analyse de carnation par IA"]}},glassesFinder:{en:{title:"Glasses for Your Face Shape: Frames to Try or Skip",description:"Upload a selfie to get 3â4 glasses frame families that fit your face shape, plus one to skip. Not a try-on â free, no account needed.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["glasses for face shape","best frames for round face","glasses for oval face","frame shapes by face shape","glasses for square face"]},es:{title:"Gafas según tu forma de cara: monturas que sà y que no",description:"Sube una selfie y recibe 3â4 familias de montura que van con tu forma de cara, más una para evitar. No es un probador: gratis, sin cuenta.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["gafas según forma de cara","mejores monturas para cara redonda","gafas para cara ovalada","formas de montura por tipo de cara","gafas para cara cuadrada"]},hi:{title:"फà¥à¤¸ शà¥à¤ª à¤à¥ हिसाब सॠà¤à¤¶à¥à¤®à¤¾: à¤à¥à¤¨ सॠफà¥à¤°à¥à¤® à¤à¥à¤°à¤¾à¤ à¤à¤°à¥à¤, à¤à¥à¤¨ सॠसà¥à¤à¤¿à¤ª",description:"सà¥à¤²à¥à¤«à¥ à¤
पलà¥à¤¡ à¤à¤°à¥à¤ à¤à¤° à¤
पनॠफà¥à¤¸ शà¥à¤ª पर सà¥à¤ à¤à¤°à¤¨à¥ वालॠ3â4 à¤à¤¶à¥à¤®à¤¾ फà¥à¤°à¥à¤® फà¥à¤®à¤¿à¤²à¥ पाà¤à¤, साथ मà¥à¤ à¤à¤ à¤à¤¿à¤¸à¤¸à¥ बà¤à¤¨à¤¾ हà¥à¥¤ यह à¤à¥à¤°à¤¾à¤-à¤à¤¨ नहà¥à¤ हॠâ फà¥à¤°à¥, à¤
à¤à¤¾à¤à¤à¤ à¤à¥ à¤à¤°à¥à¤°à¤¤ नहà¥à¤à¥¤",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["फà¥à¤¸ शà¥à¤ª à¤à¥ लिठà¤à¤¶à¥à¤®à¤¾","à¤à¥à¤² à¤à¥à¤¹à¤°à¥ à¤à¥ लिठबà¥à¤¸à¥à¤ फà¥à¤°à¥à¤®","à¤
à¤à¤¡à¤¾à¤à¤¾à¤° à¤à¥à¤¹à¤°à¥ à¤à¥ लिठà¤à¤¶à¥à¤®à¤¾","फà¥à¤¸ शà¥à¤ª à¤à¥ हिसाब सॠफà¥à¤°à¥à¤® शà¥à¤ª","à¤à¥à¤à¥à¤° à¤à¥à¤¹à¤°à¥ à¤à¥ लिठà¤à¤¶à¥à¤®à¤¾"]},de:{title:"Brille finden: Passende Fassungen für deine Gesichtsform",description:"Lade ein Selfie hoch und erhalte 3â4 Fassungsfamilien für deine Gesichtsform, plus eine zum Meiden. Kein Anprobieren nötig â kostenlos, ohne Account.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["Brille für Gesichtsform","beste Fassung für rundes Gesicht","Brille für ovales Gesicht","Fassungsformen nach Gesichtsform","Brille für eckiges Gesicht"]},fil:{title:"Salamin na Bagay sa Hugis ng Mukha: Subukan o Iwasan",description:"Mag-upload ng selfie para makakuha ng 3â4 klaseng frame na bagay sa hugis ng mukha mo, kasama ang isang iwasan. Libre, walang account, hindi try-on.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["salamin para sa hugis ng mukha","pinakamagandang frame para sa bilog na mukha","salamin para sa oval na mukha","hugis ng frame ayon sa hugis ng mukha","salamin para sa parisukat na mukha"]},fr:{title:"Lunettes selon la forme du visage : que choisir ou éviter",description:"Envoyez un selfie et recevez 3 à 4 familles de montures adaptées à votre visage, plus une à éviter. Gratuit, sans compte, sans essai virtuel.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["lunettes forme du visage","meilleures montures visage rond","lunettes visage ovale","forme de monture selon visage","lunettes visage carré"]}},hairstyleRecommender:{en:{title:"Hairstyles for Your Face Shape, Short to Long",description:"Upload a selfie and pick a length to get named haircuts that add height, width, or softness to your face shape. Free, no account needed.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["hairstyle for face shape","best haircut for round face","short hairstyles for square face","long hairstyles by face shape","haircut for oval face"]},es:{title:"Peinados según la forma de tu rostro, por largo",description:"Sube una selfie y elige un largo para obtener cortes con nombre que dan altura, anchura o suavidad a tu forma de rostro. Gratis, sin cuenta.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["pe
2inados según forma de rostro","mejor corte para cara redonda","peinados cortos para cara cuadrada","peinados largos según forma de rostro","corte de pelo para cara ovalada"]},hi:{title:"à¤à¥à¤¹à¤°à¥ à¤à¥ à¤à¤à¤¾à¤° à¤
नà¥à¤¸à¤¾à¤° हà¥à¤¯à¤°à¤¸à¥à¤à¤¾à¤à¤² â शà¥à¤°à¥à¤ सॠलà¥à¤¨à¥à¤ तà¤",description:"सà¥à¤²à¥à¤«à¥ à¤
पलà¥à¤¡ à¤à¤°à¥à¤, लà¤à¤¬à¤¾à¤ à¤à¥à¤¨à¥à¤ à¤à¤° à¤
पनॠà¤à¥à¤¹à¤°à¥ à¤à¥ à¤à¤à¤¾à¤° à¤à¥ लिठà¤à¤à¤à¤¾à¤, à¤à¥à¤¡à¤¼à¤¾à¤ या सà¥à¤«à¥à¤à¤¨à¥à¤¸ à¤à¥à¤¡à¤¼à¤¨à¥ वालॠनामॠहà¥à¤¯à¤°à¤à¤ पाà¤à¤à¥¤ मà¥à¤«à¥à¤¤, à¤
à¤à¤¾à¤à¤à¤ à¤à¥ à¤à¤¼à¤°à¥à¤°à¤¤ नहà¥à¤à¥¤",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["à¤à¥à¤¹à¤°à¥ à¤à¥ à¤à¤à¤¾à¤° à¤
नà¥à¤¸à¤¾à¤° हà¥à¤¯à¤°à¤¸à¥à¤à¤¾à¤à¤²","à¤à¥à¤² à¤à¥à¤¹à¤°à¥ à¤à¥ लिठबà¥à¤¸à¥à¤ हà¥à¤¯à¤°à¤à¤","à¤à¥à¤à¥à¤° à¤à¥à¤¹à¤°à¥ à¤à¥ लिठशà¥à¤°à¥à¤ हà¥à¤¯à¤°à¤¸à¥à¤à¤¾à¤à¤²","लà¤à¤¬à¤¾à¤ à¤
नà¥à¤¸à¤¾à¤° हà¥à¤¯à¤°à¤¸à¥à¤à¤¾à¤à¤²","à¤
à¤à¤¡à¤¾à¤à¤¾à¤° à¤à¥à¤¹à¤°à¥ à¤à¥ लिठहà¥à¤¯à¤°à¤à¤"]},de:{title:"Frisuren nach Gesichtsform finden, von Kurz bis Lang",description:"Lade ein Selfie hoch, wähle eine Länge und erhalte benannte Frisuren, die Höhe, Breite oder Weichheit für deine Gesichtsform bringen. Kostenlos, ohne Konto.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["Frisur nach Gesichtsform","beste Frisur für rundes Gesicht","kurze Frisuren für eckiges Gesicht","lange Frisuren nach Gesichtsform","Frisur für ovales Gesicht"]},fil:{title:"Hairstyle Ayon sa Hugis ng Mukha, Short Hanggang Long",description:"Mag-upload ng selfie, piliin ang length, at makuha ang gupit na nagdaragdag ng height, width, o softness sa hugis ng mukha mo. Libre, walang account.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["hairstyle ayon sa hugis ng mukha","best haircut para sa bilog na mukha","short hairstyle para sa parisukat na mukha","long hairstyle ayon sa face shape","gupit para sa oval face"]},fr:{title:"Coiffures selon la forme du visage, du court au long",description:"Téléchargez un selfie et choisissez une longueur pour obtenir des coupes nommées qui ajoutent hauteur, largeur ou douceur à votre visage. Gratuit, sans compte.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["coiffure selon forme du visage","meilleure coupe pour visage rond","coiffure courte visage carré","coiffure longue selon forme du visage","coupe pour visage ovale"]}},about:{en:{title:"About FaceAuraAI - Leading AI Beauty Analysis Platform | FaceAuraAI",description:"FaceAuraAI estimates face and body attributes from a photo. Results are estimates, not medical or identity facts. Method, privacy, and limits.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["about FaceAuraAI","AI beauty platform","beauty technology"]},es:{title:"Sobre FaceAuraAI â Nuestra misión en belleza y estilo con IA | FaceAuraAI",description:"Descubre cómo FaceAuraAI transforma tus selfies en análisis faciales y corporales con IA para ofrecerte consejos de belleza y estilo personalizados.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["sobre FaceAuraAI","plataforma belleza IA"]},hi:{title:"FaceAuraAI à¤à¥ बारॠमà¥à¤ â हमारा AI सà¥à¤à¤¦à¤°à¥à¤¯ à¤à¤° सà¥à¤à¤¾à¤à¤² मिशन | FaceAuraAI",description:"à¤à¤¾à¤¨à¥à¤ FaceAuraAI à¤à¥à¤¸à¥ à¤à¤ªà¤à¥ सà¥à¤²à¥à¤«à¥ à¤à¥ AI-सà¤à¤à¤¾à¤²à¤¿à¤¤ à¤à¥à¤¹à¤°à¥ à¤à¤° शरà¥à¤° विशà¥à¤²à¥à¤·à¤£ मà¥à¤ बदलà¤à¤° वà¥à¤¯à¤à¥à¤¤à¤¿à¤à¤¤ सà¥à¤à¤¦à¤°à¥à¤¯ व सà¥à¤à¤¾à¤à¤² à¤à¤¿à¤ªà¥à¤¸ दà¥à¤¤à¤¾ हà¥à¥¤",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["FaceAuraAI à¤à¥ बारॠमà¥à¤","AI सà¥à¤à¤¦à¤°à¥à¤¯ पà¥à¤²à¥à¤à¤«à¥à¤°à¥à¤®"]},de:{title:"Ãber FaceAuraAI - Führende KI-Schönheitsanalyse-Plattform | FaceAuraAI",description:"Erfahren Sie mehr über FaceAuraAIs Mission, Schönheitsanalyse durch fortschrittliche K
2I-Technologie zu demokratisieren. Entdecken Sie unsere Reise und unser Engagement, Benutzer zu stärken.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["über FaceAuraAI","KI-Schönheitsplattform"]},fil:{title:"Tungkol sa FaceAuraAI - Nangungunang AI Beauty Analysis Platform | FaceAuraAI",description:"Alamin ang tungkol sa misyon ng FaceAuraAI na gawing demokratiko ang beauty analysis sa pamamagitan ng advanced AI technology. Tuklasin ang aming journey at commitment sa pagpapalakas sa mga user.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["about FaceAuraAI","AI beauty platform"]},fr:{title:"à propos de FaceAuraAI - Plateforme d'analyse de beauté IA de premier plan | FaceAuraAI",description:"Découvrez la mission de FaceAuraAI de démocratiser l'analyse de la beauté grâce à une technologie IA avancée. Découvrez notre parcours et notre engagement à responsabiliser les utilisateurs.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["à propos de FaceAuraAI","plateforme de beauté IA"]}},pricing:{en:{title:"Pricing Plans - Affordable AI Beauty Analysis Tools | FaceAuraAI",description:"Explore our flexible pricing plans for AI-powered beauty analysis tools. Start free and upgrade for premium features and unlimited scans.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["pricing","plans","subscription","premium features"]},es:{title:"Precios â Planes de FaceAuraAI | FaceAuraAI",description:"Consulta los planes y precios de FaceAuraAI. Empieza gratis y actualiza a opciones premium cuando lo necesites.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["precios","planes","suscripción"]},hi:{title:"FaceAuraAI मà¥à¤²à¥à¤¯ â पà¥à¤²à¤¾à¤¨ à¤à¤° पà¥à¤à¥à¤ | FaceAuraAI",description:"FaceAuraAI à¤à¥ पà¥à¤²à¤¾à¤¨ à¤à¤° à¤à¥à¤®à¤¤à¥à¤ दà¥à¤à¥à¤à¥¤ मà¥à¤«à¥à¤¤ शà¥à¤°à¥ à¤à¤°à¥à¤ à¤à¤° à¤à¤°à¥à¤°à¤¤ पड़नॠपर पà¥à¤°à¥à¤®à¤¿à¤¯à¤® मà¥à¤ à¤
पà¤à¥à¤°à¥à¤¡ à¤à¤°à¥à¤à¥¤",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["मà¥à¤²à¥à¤¯","पà¥à¤²à¤¾à¤¨","सदसà¥à¤¯à¤¤à¤¾"]},de:{title:"Preispläne - Erschwingliche KI-Schönheitsanalyse-Tools | FaceAuraAI",description:"Erkunden Sie unsere flexiblen Preispläne für KI-gestützte Schönheitsanalyse-Tools. Starten Sie kostenlos und upgraden Sie für Premium-Funktionen und unbegrenzte Scans.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["Preise","Pläne","Abonnement"]},fil:{title:"Pricing Plans - Abot-kayang AI Beauty Analysis Tools | FaceAuraAI",description:"Tuklasin ang aming flexible pricing plans para sa AI-powered beauty analysis tools. Magsimula nang libre at mag-upgrade para sa premium features at unlimited scans.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["pricing","plans","subscription"]},fr:{title:"Plans tarifaires - Outils d'analyse de beauté IA abordables | FaceAuraAI",description:"Explorez nos plans tarifaires flexibles pour les outils d'analyse de beauté alimentés par l'IA. Commencez gratuitement et passez à la version premium pour des fonctionnalités premium et des analyses illimitées.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["tarifs","plans","abonnement"]}},privacy:{en:{title:"Privacy Policy - FaceAuraAI Data Security and Privacy | FaceAuraAI",description:"FaceAuraAI does not keep your photo. Read who processes a scan, how long results last, deletion, and age limits.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["privacy policy","data security","privacy"]},es:{title:"PolÃtica de privacidad â Cómo FaceAuraAI protege tus datos | FaceAuraAI",description:"Conoce cómo FaceAuraAI recopila, utiliza y protege tus datos al usar nuestras herramientas de belleza con IA, incluyendo seguridad y retención.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["polÃtica privacidad","seguridad datos"]},hi:{title:"à¤à¥à¤ªà¤¨à¥à¤¯à¤¤à¤¾ नà¥à¤¤à¤¿ â FaceAuraAI डà¥à¤à¤¾ सà¥à¤°à¤à¥à¤·à¤¾ | FaceAuraAI",de
2scription:"à¤à¤¾à¤¨à¥à¤ FaceAuraAI à¤à¥à¤¸à¥ à¤à¤ªà¤à¥ डà¥à¤à¤¾ à¤à¥ à¤à¤à¤¤à¥à¤°, à¤à¤ªà¤¯à¥à¤ à¤à¤° सà¥à¤°à¤à¥à¤·à¤¿à¤¤ रà¤à¤¤à¤¾ हॠà¤à¤¬ à¤à¤ª हमारॠAI सà¥à¤à¤¦à¤°à¥à¤¯ à¤à¥à¤²à¥à¤¸ à¤à¤¾ à¤à¤ªà¤¯à¥à¤ à¤à¤°à¤¤à¥ हà¥à¤à¥¤",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["à¤à¥à¤ªà¤¨à¥à¤¯à¤¤à¤¾ नà¥à¤¤à¤¿","डà¥à¤à¤¾ सà¥à¤°à¤à¥à¤·à¤¾"]},de:{title:"Datenschutzrichtlinie - FaceAuraAI Datensicherheit und Datenschutz | FaceAuraAI",description:"Lesen Sie die Datenschutzrichtlinie von FaceAuraAI. Erfahren Sie, wie wir Ihre Daten sammeln, verwenden und schützen. Ihr Datenschutz ist unsere Priorität.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["Datenschutzrichtlinie","Datensicherheit"]},fil:{title:"Privacy Policy - FaceAuraAI Data Security and Privacy | FaceAuraAI",description:"Basahin ang privacy policy ng FaceAuraAI. Alamin kung paano namin kinokolekta, ginagamit, at pinoprotektahan ang iyong data. Ang iyong privacy ay aming priyoridad.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["privacy policy","data security"]},fr:{title:"Politique de confidentialité - Sécurité et confidentialité des données FaceAuraAI | FaceAuraAI",description:"Lisez la politique de confidentialité de FaceAuraAI. Découvrez comment nous collectons, utilisons et protégeons vos données. Votre confidentialité est notre priorité.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["politique de confidentialité","sécurité des données"]}},terms:{en:{title:"Terms of Service - FaceAuraAI Usage Rules and Conditions | FaceAuraAI",description:"Age limits, 18+ tools, refunds, and rules for using FaceAuraAI analysis.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["terms of service","terms and conditions","usage rules"]},es:{title:"Términos de servicio â Uso de las herramientas de FaceAuraAI | FaceAuraAI",description:"Lee los términos para usar las herramientas de belleza con IA de FaceAuraAI: responsabilidades, uso de datos, conducta y resolución de disputas.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["términos servicio","condiciones uso"]},hi:{title:"सà¥à¤µà¤¾ शरà¥à¤¤à¥à¤ â FaceAuraAI AI à¤à¥à¤²à¥à¤¸ à¤à¤ªà¤¯à¥à¤ नियम | FaceAuraAI",description:"FaceAuraAI à¤à¥ AI सà¥à¤à¤¦à¤°à¥à¤¯ à¤à¥à¤²à¥à¤¸ à¤à¥ à¤à¤ªà¤¯à¥à¤ à¤à¥ शरà¥à¤¤à¥à¤ पढ़à¥à¤âà¤à¤ªà¤¯à¥à¤à¤à¤°à¥à¤¤à¤¾ à¤à¤¿à¤®à¥à¤®à¥à¤¦à¤¾à¤°à¤¿à¤¯à¤¾à¤, डà¥à¤à¤¾ à¤à¤ªà¤¯à¥à¤, à¤à¤à¤°à¤£ à¤à¤° विवाद समाधान।",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["सà¥à¤µà¤¾ शरà¥à¤¤à¥à¤","à¤à¤ªà¤¯à¥à¤ नियम"]},de:{title:"Nutzungsbedingungen - FaceAuraAI Nutzungsregeln und -bedingungen | FaceAuraAI",description:"Lesen Sie die Nutzungsbedingungen von FaceAuraAI. Verstehen Sie die Regeln, Verantwortlichkeiten und Richtlinien für die Nutzung unserer Plattform.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["Nutzungsbedingungen","Regeln"]},fil:{title:"Terms of Service - FaceAuraAI Usage Rules and Conditions | FaceAuraAI",description:"Basahin ang terms of service ng FaceAuraAI. Unawain ang mga patakaran, responsibilidad, at gabay para sa paggamit ng aming platform.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["terms of service","usage rules"]},fr:{title:"Conditions d'utilisation - Règles et conditions d'utilisation de FaceAuraAI | FaceAuraAI",description:"Lisez les conditions d'utilisation de FaceAuraAI. Comprenez les règles, responsabilités et directives pour utiliser notre plateforme.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["conditions d'utilisation","règles d'utilisation"]}},methodology:{en:{title:"How FaceAuraAI analysis works - Method, accuracy, and photo handling | FaceAuraAI",description:"FaceAuraAI estimates face and body attributes from a photo using Amazon Rekognition plus our geometry rules. Photos are not kept in our database. Read accuracy, bias, and age limits.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["FaceAuraAI methodology","face analysis accuracy","photo privacy"]},es:{title:"Método y lÃmites del análisis facial de FaceAuraAI | FaceAuraAI",de
2scription:"FaceAuraAI mide puntos de referencia con Amazon Rekognition y reglas propias de geometrÃa. Descubre el método, la exactitud y los lÃmites de cada herramienta.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["metodologÃa FaceAuraAI"]},hi:{title:"FaceAuraAI à¤à¤¾ विशà¥à¤²à¥à¤·à¤£ à¤à¥à¤¸à¥ à¤à¤¾à¤® à¤à¤°à¤¤à¤¾ हॠà¤à¤° à¤à¤¸à¤à¥ सà¥à¤®à¤¾à¤à¤ | FaceAuraAI",description:"FaceAuraAI, Amazon Rekognition लà¥à¤à¤¡à¤®à¤¾à¤°à¥à¤ à¤à¤° à¤à¤¿à¤¯à¥à¤®à¥à¤à¥à¤°à¥ नियमà¥à¤ सॠफà¥à¤à¥ à¤à¤¾ विशà¥à¤²à¥à¤·à¤£ à¤à¤°à¤¤à¤¾ हà¥à¥¤ तरà¥à¤à¤¾, फà¥à¤à¥ पà¥à¤°à¥à¤¸à¥à¤¸à¤¿à¤à¤ à¤à¤° सà¤à¥à¤à¤¤à¤¾ à¤à¥ सà¥à¤®à¤¾à¤à¤ यहाठपढ़à¥à¤à¥¤",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["FaceAuraAI पदà¥à¤§à¤¤à¤¿"]},de:{title:"So funktioniert die FaceAuraAI-Analyse genau | FaceAuraAI",description:"FaceAuraAI schätzt Gesichts- und Körpermerkmale per Foto mit Amazon Rekognition und eigenen Regeln. Fotos werden nicht dauerhaft gespeichert.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["FaceAuraAI Methodik"]},fil:{title:"Paano Sinusuri ng FaceAuraAI ang Mukha at Katawan Mo | FaceAuraAI",description:"Gumagamit ang FaceAuraAI ng Amazon Rekognition at panuntunan sa geometry para tantiyahin ang mukha at katawan mula sa larawan; tantiya lang, hindi katotohanang medikal.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["FaceAuraAI methodology"]},fr:{title:"Comment fonctionne l'analyse FaceAuraAI : méthode et limites | FaceAuraAI",description:"FaceAuraAI mesure le visage et le corps grâce à Amazon Rekognition et à nos règles de géométrie. Aucune photo n'est stockée ni servie à l'entraînement.",ogImage:"/banner_images/Faceaura-AI-header-images.webp",keywords:["méthodologie FaceAuraAI"]}}},oT=[{path:"/",seoKey:"home",priority:1,changefreq:"weekly"},{path:"/about",seoKey:"about",priority:.8,changefreq:"monthly"},{path:"/pricing",seoKey:"pricing",priority:.8,changefreq:"monthly"},{path:"/privacy-policy",seoKey:"privacy",priority:.5,changefreq:"yearly"},{path:"/terms-of-service",seoKey:"terms",priority:.5,changefreq:"yearly"},{path:"/methodology",seoKey:"methodology",priority:.7,changefreq:"monthly"},{path:"/ai-tools/face-shape-detector",seoKey:"faceShapeDetector",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/age-detector",seoKey:"ageDetector",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/emotion-detector",seoKey:"emotionDetector",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/eye-shape-detector",seoKey:"eyeShapeDetector",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/lip-shape-detector",seoKey:"lipShapeDetector",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/face-symmetry",seoKey:"faceSymmetry",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/body-shape-detector",seoKey:"bodyShapeDetector",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/body-shape-detector-ai",seoKey:"bodyShapeDetectorAI",priority:.8,changefreq:"monthly",isTool:!0},{path:"/ai-tools/gender-detector",seoKey:"genderDetector",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/golden-ratio-calculator",seoKey:"goldenRatioCalculator",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/celebrity-lookalike",seoKey:"celebrityLookalike",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/style-wizard",seoKey:"styleWizard",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/skin-tone-detector",seoKey:"skinToneDetector",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/glasses-finder",seoKey:"glassesFinder",priority:.9,changefreq:"monthly",isTool:!0},{path:"/ai-tools/hairstyle-recommender",seoKey:"hairstyleRecommender",priority:.9,changefreq:"monthly",isTool:!0}];function lT({title:e,description:t,ogImage:n,canonical:r="",type:a="website",seoKey:s,noIndex:i=!1,breadcrumbs:o=[]}){var l,c;const{t:u,i18n:d}=le("seo"),{currentLocale:h,supportedLocales:f,getLocalizedPath:p,getPathWithoutLocale:m}=hN(),[g]=fh(),y="undefined"!=typeof window?window.location.origin:QI,v=Y.useMemo(()=>"undefined"!=typeof window&&"true"===new URLSearchParams(window.location.search).get("embed"),[g]),b=d.language||"en";let x;if(r&&""!==r.trim())x="/"===r?"/":r.replace(/\/$/,"");else{const e="undefined"!=typeof window?window.location.pathname:"/",t=m(e),n=p(t,h);x="/"===n?"/":n.replace(/\/$/,"")}const w=`${QI}${x}`,k=Y.useMemo(()=>{const e=m(x),t="/"===e?"/":e.replace(/\/$/,""),n=f.map(e=>{const n=rT(e.code),r="en"===e.code?t:p(t,e.code),a="/"===r?"/":r.replace(/\/$/,"");return{code:n,url:`${QI}${a}`}}),r=Array.from(new Map(n.map(e=>[e.code,e])).values()),a=new Set(f.map(e=>rT(e.code))),s=new Set(r.map(e=>e.code)),i=Array.from(a).filter(e=>!s.has(e));return i.length>0&&console.error(`[SEO] Missing hreflang codes for path ${x}: ${i.join(", ")}`),r.length<a.size&&console.warn(`[SEO] Hreflang count mismatch for path ${x}: Expected ${a.size}, got ${r.length}`),r},[f,x,m,p,QI]),j=Y.useMemo(()=>
2{if(s)return s;const e=function(e){const t="/"===e?"/":e.replace(/\/$/,"");return oT.find(e=>e.path===t)}(x);return(null==e?void 0:e.seoKey)||"home"},[s,x]),_=(null==(l=iT[j])?void 0:l[h])||(null==(c=iT[j])?void 0:c.en)||iT.home.en,S=e||u(`${j}.title`,_.title),A=t||u(`${j}.description`,_.description),E=o.length>0?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:o.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.name,item:`${y}${e.url}`}))}:null;return ve.jsxs(ZI,{children:[ve.jsx("html",{lang:b,"data-locale":b}),ve.jsx("link",{rel:"canonical",href:w}),!i&&ve.jsx("link",{rel:"describedby",href:`${QI}/llms.txt`}),k.map(({code:e,url:t})=>ve.jsx("link",{rel:"alternate",hrefLang:e,href:t},e)),ve.jsx("link",{rel:"alternate",hrefLang:"x-default",href:`${QI}${m(x)}`}),ve.jsx("title",{children:S}),ve.jsx("meta",{name:"description",content:A}),_.keywords&&_.keywords.length>0?ve.jsx("meta",{name:"keywords",content:_.keywords.join(", ")}):null,v?ve.jsx("meta",{name:"robots",content:"noindex, follow"}):i?ve.jsx("meta",{name:"robots",content:"noindex,nofollow"}):ve.jsx("meta",{name:"robots",content:"index,follow"}),ve.jsx("meta",{property:"og:type",content:a}),ve.jsx("meta",{property:"og:title",content:S}),ve.jsx("meta",{property:"og:description",content:A}),n&&ve.jsx("meta",{property:"og:image",content:`${QI}${n}`}),ve.jsx("meta",{property:"og:url",content:w}),ve.jsx("meta",{property:"og:site_name",content:YI}),ve.jsx("meta",{property:"og:locale",content:aT(b)}),f.filter(e=>e.code!==b).map(e=>ve.jsx("meta",{property:"og:locale:alternate",content:aT(e.code)},e.code)),ve.jsx("meta",{name:"twitter:card",content:n?"summary_large_image":"summary"}),ve.jsx("meta",{name:"twitter:title",content:S}),ve.jsx("meta",{name:"twitter:description",content:A}),n&&ve.jsx("meta",{name:"twitter:image",content:`${y}${n}`}),ve.jsx("script",{type:"application/ld+json",children:JSON.stringify((()=>{const e=function(e){return oT.find(t=>t.seoKey===e)}(j);return"home"===j||Boolean(null==e?void 0:e.isTool)?{"@context":"https://schema.org","@type":"WebApplication",name:sT({isTool:Boolean(null==e?void 0:e.isTool),path:null==e?void 0:e.path}),description:A,applicationCategory:"LifestyleApplication",operatingSystem:"Web Browser",url:w,inLanguage:rT(b),...n&&{image:`${y}${n}`},offers:nT,provider:{"@type":"Organization",name:YI,url:y,logo:`${y}/favicon.png`}}:{"@context":"https://schema.org","@type":"WebPage",name:S,description:A,url:w,inLanguage:rT(b),isPartOf:{"@type":"WebSite",name:YI,url:y},publisher:{"@type":"Organization",name:YI,url:y,logo:`${y}/favicon.png`,sameAs:["https://www.instagram.com/faceauraai/","https://www.facebook.com/people/Faceaura/61588335755811/"]}}})())}),E&&ve.jsx("script",{type:"application/ld+json",children:JSON.stringify(E)})]})}const cT=Y.createContext({isEmbedMode:!1});function uT(){return Y.useContext(cT).isEmbedMode}function dT({children:e,isEmbedMode:t}){return ve.jsx(cT.Provider,{value:{isEmbedMode:t},children:e})}const hT=()=>{const{i18n:e,t:t}=le("common"),{getLocalizedPath:n,currentLocale:r}=hN();return ve.jsxs("footer",{className:"bg-gradient-to-r from-luxury-gold/5 via-luxury-purple/5 to-luxury-gold/5 text-gray-800 py-12 sm:py-16 md:py-20 relative min-h-[380px] sm:min-h-[420px] md:min-h-[460px]",children:[ve.jsx("div",{className:"absolute top-0 left-0 right-0 h-0.5 bg-gradient-to-r from-transparent via-luxury-gold to-transparent"}),ve.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:[ve.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-10",children:[ve.jsxs("div",{children:[ve.jsx("h3",{className:"font-heading font-bold text-luxury-purple tracking-wider text-xl mb-6",children:"FACE AURA AI"}),ve.jsx("p",{className:"text-gray-600 text-sm leading-relaxed mb-6",children:t("footer.description","es"===e.language?"Análisis de belleza premium impulsado por IA para recomendaciones de estilo personalizadas.":"hi"===e.language?"वà¥à¤¯à¤à¥à¤¤à¤¿à¤à¤¤ सà¥à¤à¤¾à¤à¤² सिफारिशà¥à¤ à¤à¥ लिठपà¥à¤°à¥à¤®à¤¿à¤¯à¤® AI-सà¤à¤à¤¾à¤²à¤¿à¤¤ सà¥à¤à¤¦à¤°à¥à¤¯ विशà¥à¤²à¥à¤·à¤£à¥¤":"fr"===e.language?"Analyse de beauté premium alimentée par l'IA pour des recommandations de style personnalisées.":"Premium AI-powered beauty anal
2ysis for personalized style recommendations.")}),ve.jsxs("div",{className:"flex space-x-4",children:[ve.jsx("a",{href:"https://x.com/FaceAuraAI",target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-luxury-teal transition-colors duration-300","aria-label":"FaceAuraAI on X (Twitter)",children:ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",viewBox:"0 0 24 24",className:"hover:scale-110 transition-transform duration-300",children:ve.jsx("path",{d:"M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"})})}),ve.jsx("a",{href:"https://www.instagram.com/faceauraai/",target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-luxury-purple transition-colors duration-300","aria-label":"FaceAuraAI on Instagram",children:ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",viewBox:"0 0 24 24",className:"hover:scale-110 transition-transform duration-300",children:ve.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})})}),ve.jsx("a",{href:"https://www.facebook.com/people/Faceaura/61588335755811/",target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-luxury-gold transition-colors duration-300","aria-label":"FaceAuraAI on Facebook",children:ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",viewBox:"0 0 24 24",className:"hover:scale-110 transition-transform duration-300",children:ve.jsx("path",{d:"M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z"})})})]})]}),ve.jsxs("div",{children:[ve.jsxs("h3",{className:"font-heading text-luxury-gold tracking-wider text-lg mb-6 relative inline-block",children:[t("footer.exploreTitle","EXPLORE"),ve.jsx("span",{className:"absolute -bottom-1 left-0 w-8 h-0.5 bg-luxury-gold"})]}),ve.jsxs("ul",{className:"space-y-3",children:[ve.jsx("li",{children:ve.jsx("a",{href:"/haircuts/",className:"text-gray-700 hover:text-luxury-purple transition-colors duration-300 footer-link-underline",children:"Haircuts"})}),ve.jsx("li",{children:ve.jsx("a",{href:"/aesthetics/",className:"text-gray-700 hover:text-luxury-teal transition-colors duration-300 footer-link-underline",children:"Lexicon"})}),ve.jsx("li",{children:ve.jsx("a",{href:"/glasses/",className:"text-gray-700 hover:text-luxury-purple transition-colors duration-300 footer-link-underline",children:"Glasses"})}),ve.jsx("li",{children:ve.jsx("a",{href:"/blog/",className:"text-gray-700 hover:text-luxury-gold transition-colors duration-300 footer-link-underline",children:"Blog"})})]})]}),ve.jsxs("div",{children:[ve.jsxs("h3",{className:"font-heading text-luxury-purple tracking-wider text-lg mb-6 relative inline-block",children:[t("footer.toolsTitle","es"===e.language?"HERRAMIENTAS":"hi"===e.language?"à¤à¤ªà¤à¤°à¤£":"fr"===e.language?"OUTILS":"TOOLS"),ve.jsx("span",{className:"absolute -bottom-1 left-0 w-8 h-0.5 bg-luxury-purple"})]}),ve.jsxs("ul",{className:"space-y-3",children:[ve.jsx("li",{children:ve.jsx(vh,{href:n("/ai-tools/face-shape-detector",r),className:"text-gray-700 hover:text-luxury-purple transition-colors duration-300 footer-link-underline",children:t("footer.faceShape","Face Shape Detector")})}),ve.jsx("li",{children:ve.jsx(vh,{href:n("/ai-tools/face-symmetry",r),className:"text-gray-700 hover:text-luxury-teal transition-colors duration-300 footer-link-underline",children:t("footer.faceSymmetry","Face Symmetry Test")})}),ve.jsx("li",{children:ve.jsx(vh,{href:n("/ai-tools/eye-shape-detector",r),className:"text-gray-700 hover:text-luxury-teal transition-colors duration-300 footer-link-underline",children:t("footer.eyeShape","Eye Shape Detector")})}),ve.jsx("li",{children:ve.jsx(vh,{href:n("/ai-tools/lip-shape-detector",r),className:"text-gray-700 hover:text-luxury-teal transition-colors duration-300 footer-link-underline",children:t("footer.lipShape","Lip Shape Detector")})}),ve.jsx("li",{children:ve.jsx(vh,{href:n("/ai-tools/body-shape-detector",r),className:"text-gray-700 hover:text-luxury-purple transition-colors duration-300 footer-link-underline",children:t("footer.bodyShape","Body Shape Detector")})}),ve.jsx("li",{children:ve.jsx(vh,{href:n("/ai-tools/golden-ratio-calculator",r),className:"text-gray-700 hover:text-luxury-gold transition-colors duration-300 footer-link-underline",children:t("footer.goldenRatio","Golden Ratio Calculator")})}),ve.jsx("li",{children:ve.jsx(vh,{href:n("/ai-tools/glasses-finder",r),className:"text-gray-700 hover:text-luxury-purple transition-colors duration-300 footer-link-underline",children:t("footer.glassesFinder","Glasses Finder")})}),ve.jsx("li",{children:ve.jsx(vh,{href:n("/ai-tools/hairstyle-recommender",r),className:"text-gray-700 hover:text-luxury-purple transition-colors duration-300 footer-link-underline",children:t("footer.hairstyleRecommender","Hairstyle Recommender")})}),ve.jsx("li",{children:ve.jsx(vh,{href:n("/ai-tools/skin-tone-detector",r),className:"text-gray-700 hover:text-luxury-purple transition-colors duration-300 footer-link-underline",children:t("footer.skinToneDetector","Skin Tone Detector")})})]})]}),ve.jsxs("div",{children:[ve.jsxs("h3",{className:"font-heading text-luxury-teal tracking-wider text-lg mb-6 relative inline-block",children:[t("footer.companyTitle","es"===e.language?"EMPRESA":"hi"===e.language?"à¤à¤à¤ªà¤¨à¥":"fr"===e.language?"ENTREPRISE":"COMPANY"),ve.jsx("span",{className:"absolute -bottom-1 left-0 w-8 h-0.5 bg-luxury-teal"})]}),ve.jsxs("ul",{className:"space-y-3",children:[ve.jsx("li",{children:ve.jsx(vh,{href:n("/about",r),className:"text-gray-700 hover:text-luxury-teal transition-colors duration-300 footer-link-underline",children:t("footer.aboutUs","es"===e.language?"Acerca de Nosotros":"hi"===e.language?"हमारॠबारॠमà¥à¤":"fr"===e.language?"à Propos de Nous":"About Us")})}),ve.jsx("li",{children:ve.jsx(vh,{href:n("/methodology",r),className:"text-gray-700 hover:text-luxury-teal transition-colors duration-300 footer-link-underline",children:t("footer.methodology","How analysis works")})}),ve.jsx("li",{children:ve.jsx(vh,{href:n("/pricing",r),className:"text-gray-700 hover:text-luxury-purple transition-colors duration-300 footer-link-underline",children:t("footer.pricing","es"===e.language?"Precios":"hi"===e.language?"मà¥à¤²à¥à¤¯ निरà¥à¤§à¤¾à¤°à¤£":"fr"===e.language?"Tarifs":"Pricing")})}),ve.jsx("li",{children:ve.jsx(vh,{href:n("/privacy-policy",r),className:"text-gray-700 hover:text-luxury-gold transition-colors duration-300 footer-link-underline",children:t("footer.privacyPolicy","es"===e.language?"PolÃtica de Privacidad":"hi"===e.language?"à¤à¥à¤ªà¤¨à¥à¤¯à¤¤à¤¾ नà¥à¤¤à¤¿":"fr"===e.language?"Politique de Confidentialité":"Privacy Policy")})}),ve.jsx("li",{children:ve.jsx(vh,{href:n("/terms-of-service",r),className:"text-gray-700 hover:text-luxury-teal transition-colors duration-300 footer-link-underline",children:t("footer.termsOfService","es"===e.language?"Términos de Servicio":"hi"===e.language?"सà¥à¤µà¤¾ à¤à¥ शरà¥à¤¤à¥à¤":"fr"===e.language?"Conditions d'Utilisation":"Terms of Service")})})]})]}),ve.jsxs("div",{children:[ve.jsxs("h3",{className:"font-heading text-luxury-gold tracking-wider text-lg mb-6 relative inline-block",children:[t("footer.contactTitle","es"===e.language?"CONTACTO":"hi"===e.language?"सà¤à¤ªà¤°à¥à¤":(e.language,"CONTACT")),ve.jsx("span",{className:"absolute -bottom-1 left-0 w-8 h-0.5 bg-luxury-gold"})]}),ve.jsxs("ul",{className:"space-y-3",children:[ve.jsxs("li",{className:"text-gray-700 flex items-center space-x-2 hover:text-luxury-gold transition-colors duration-300",children:[ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",className:"text-luxury-gold",children:ve.jsx("path",{d:"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2zm13 2.383-4.708 2.825L1
25 11.105V5.383zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741zM1 11.105l4.708-2.897L1 5.383v5.722z"})}),ve.jsx("a",{href:"mailto:[email protected]",className:"footer-link-underline",children:"[email protected]"})]}),ve.jsxs("li",{className:"text-gray-700 flex items-center space-x-2 hover:text-luxury-teal transition-colors duration-300",children:[ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",className:"text-luxury-teal",children:ve.jsx("path",{d:"M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10zm0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})}),ve.jsx("span",{children:"Bengaluru 560047"})]}),ve.jsxs("li",{className:"text-gray-700 flex items-center space-x-2 hover:text-luxury-purple transition-colors duration-300",children:[ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",className:"text-luxury-purple",children:ve.jsx("path",{d:"M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.568 17.568 0 0 0 4.168 6.608 17.569 17.569 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.678.678 0 0 0-.58-.122l-2.19.547a1.745 1.745 0 0 1-1.657-.459L5.482 8.062a1.745 1.745 0 0 1-.46-1.657l.548-2.19a.678.678 0 0 0-.122-.58L3.654 1.328zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z"})}),ve.jsx("a",{href:"tel:+916360482649",className:"footer-link-underline",children:"+91 6360482649"})]})]})]})]}),ve.jsxs("div",{className:"mt-12 md:mt-16 pt-6 md:pt-8 border-t border-gray-200 text-center text-gray-600 text-sm",children:[ve.jsxs("p",{children:["© ",(new Date).getFullYear()," Face Aura AI."," ",t("footer.allRightsReserved","All rights reserved.")]}),ve.jsx("div",{className:"mt-2 text-xs text-gray-500",children:t("footer.tagline","es"===e.language?"Empoderando tu viaje de estilo con análisis de IA de precisión":"hi"===e.language?"सà¤à¥à¤ AI विशà¥à¤²à¥à¤·à¤£ à¤à¥ साथ à¤à¤ªà¤à¥ सà¥à¤à¤¾à¤à¤² यातà¥à¤°à¤¾ à¤à¥ सशà¤à¥à¤¤ बनाना":"fr"===e.language?"Autonomiser votre parcours de style avec une analyse IA de précision":"Empowering your style journey with precision AI analysis")})]})]})]})};function fT({children:e}){const[t]=fh();Sk();const{i18n:n}=le(),[r,a]=Y.useState(!1);Y.useEffect(()=>{a("true"===new URLSearchParams(window.location.search).get("embed"))},[t]),Y.useEffect(()=>{const e=t.split("/").filter(Boolean)[0];["es","hi","de","fil","fr"].includes(e)?n.language!==e&&n.changeLanguage(e):"en"!==n.language&&n.changeLanguage("en")},[t,n]),Y.useEffect(()=>{r||window.scrollTo({top:0,behavior:"smooth"})},[t,r]);const s=Y.useMemo(()=>oT.map(e=>e.path),[]),i=t.replace(/^\/[a-z]{2}(\/|$)/,"/").replace(/\/$/,"")||"/",o=s.includes(i);return ve.jsxs(ve.Fragment,{children:[!o&&ve.jsx(lT,{breadcrumbs:(()=>{const e=[{name:"Home",url:"/"}];if("/"===t)return[];const n=t.split("/").filter(Boolean);if("ai-tools"===n[0]&&n[1]){e.push({name:"AI Tools",url:"/ai-tools"});const r={"gender-detector":"Gender Detector","age-detector":"Age Detector","face-shape-detector":"Face Shape Detector","emotion-detector":"Emotion Detector","lip-shape-detector":"Lip Shape Detector","eye-shape-detector":"Eye Shape Detector","face-symmetry":"Face Symmetry","body-shape-detector":"Body Shape Detector","golden-ratio-calculator":"Golden Ratio Calculator","skin-tone-detector":"Skin Tone Detector","glasses-finder":"Glasses Finder","hairstyle-recommender":"Hairstyle Recommender","celebrity-lookalike":"Celebrity Look Alike","style-wizard":"Style Wizard","body-shape-detector-ai":"Body Shape Detector AI"}[n[1]]||n[1];e.push({name:r,url:t})}else{const r={about:"About",pricing:"Pricing","privacy-policy":"Privacy Policy","terms-of-service":"Terms of Service",auth:"Sign In","face-analysis":"Style Recommendations","style-recommendations":"Style Recommendations","body-analysis":"Body Analysis"}[n[0]]||n[0];e.push({name:r,url:t})}return e})()}),ve.jsx(dT,{isEmbedMode:r,children:ve.jsxs("div",{className:Jm("min-h-screen bg-luxury-white",r&&"pt-0 pb-0"),children:[!r&&ve.jsx(JN,{}),ve.jsx("main",{className:Jm("w-full",r&&"p-0 min-h-0"),children:e}),!r&&ve.jsx(hT,{})]})})]})}var pT="Collapsible",[mT,gT]=wh(pT),[yT,vT]=mT(pT),bT=Y.forwardRef((e,t)=>
2{const{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:s,onOpenChange:i,...o}=e,[l,c]=Lh({prop:r,defaultProp:a??!1,onChange:i,caller:pT});return ve.jsx(yT,{scope:n,disabled:s,contentId:Wh(),open:l,onOpenToggle:Y.useCallback(()=>c(e=>!e),[c]),children:ve.jsx(Ph.div,{"data-state":ST(l),"data-disabled":s?"":void 0,...o,ref:t})})});bT.displayName=pT;var xT="CollapsibleTrigger",wT=Y.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,a=vT(xT,n);return ve.jsx(Ph.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":ST(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:jh(e.onClick,a.onOpenToggle)})});wT.displayName=xT;var kT="CollapsibleContent",jT=Y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=vT(kT,e.__scopeCollapsible);return ve.jsx($h,{present:n||a.open,children:({present:e})=>ve.jsx(_T,{...r,ref:t,present:e})})});jT.displayName=kT;var _T=Y.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:a,...s}=e,i=vT(kT,n),[o,l]=Y.useState(r),c=Y.useRef(null),u=Ah(t,c),d=Y.useRef(0),h=d.current,f=Y.useRef(0),p=f.current,m=i.open||o,g=Y.useRef(m),y=Y.useRef(void 0);return Y.useEffect(()=>{const e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),Fh(()=>{const e=c.current;if(e){y.current=y.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();d.current=t.height,f.current=t.width,g.current||(e.style.transitionDuration=y.current.transitionDuration,e.style.animationName=y.current.animationName),l(r)}},[i.open,r]),ve.jsx(Ph.div,{"data-state":ST(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!m,...s,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style},children:m&&a})});function ST(e){return e?"open":"closed"}var AT=bT,ET=wT,NT=jT,IT="Accordion",TT=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[CT,OT,PT]=qh(IT),[RT,FT]=wh(IT,[PT,gT]),DT=gT(),LT=ae.forwardRef((e,t)=>{const{type:n,...r}=e,a=r,s=r;return ve.jsx(CT.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?ve.jsx(BT,{...s,ref:t}):ve.jsx(VT,{...a,ref:t})})});LT.displayName=IT;var[MT,zT]=RT(IT),[$T,UT]=RT(IT,{collapsible:!1}),VT=ae.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},collapsible:s=!1,...i}=e,[o,l]=Lh({prop:n,defaultProp:r??"",onChange:a,caller:IT});return ve.jsx(MT,{scope:e.__scopeAccordion,value:ae.useMemo(()=>o?[o]:[],[o]),onItemOpen:l,onItemClose:ae.useCallback(()=>s&&l(""),[s,l]),children:ve.jsx($T,{scope:e.__scopeAccordion,collapsible:s,children:ve.jsx(KT,{...i,ref:t})})})}),BT=ae.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...s}=e,[i,o]=Lh({prop:n,defaultProp:r??[],onChange:a,caller:IT}),l=ae.useCallback(e=>o((t=[])=>[...t,e]),[o]),c=ae.useCallback(e=>o((t=[])=>t.filter(t=>t!==e)),[o]);return ve.jsx(MT,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:c,children:ve.jsx($T,{scope:e.__scopeAccordion,collapsible:!0,children:ve.jsx(KT,{...s,ref:t})})})}),[WT,qT]=RT(IT),KT=ae.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:a,orientation:s="vertical",...i}=e,o=Ah(ae.useRef(null),t),l=OT(n),c="ltr"===zh(a),u=jh(e.onKeyDown,e=>{var t;if(!TT.includes(e.key))return;const n=e.target,r=l().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),a=r.findIndex(e=>e.ref.current===n),i=r.length;if(-1===a)return;e.preventDefault();let o=a;const u=i-1,d=()=>{o=a+1,o>u&&(o=0)},h=()=>{o=a-1,o<0&&(o=u)};switch(e.key){case"Home":o=0;break;case"End":o=u;break;case"ArrowRight":"horizontal"===s&&(c?d():h());break;case"ArrowDown":"vertical"===s&&d();break;case"ArrowLeft":"horizontal"===s&&(c?h():d());break;case"ArrowUp":"vertical"===s&&h()}null==(t=r[o%i].ref.current)||t.focus()});return ve.jsx(WT,{scope:n,disabled:r,direction:a,orientation:s,children:ve.jsx(CT.Slot,{scope:n,children:ve.jsx(Ph.div,{...i,"data-orientation":s,ref:o,onKeyDown:r?void 0:u})})})}),HT="AccordionItem",[GT,ZT]=RT(HT),JT=ae.forwardRef((e,t)=>
2{const{__scopeAccordion:n,value:r,...a}=e,s=qT(HT,n),i=zT(HT,n),o=DT(n),l=Wh(),c=r&&i.value.includes(r)||!1,u=s.disabled||e.disabled;return ve.jsx(GT,{scope:n,open:c,disabled:u,triggerId:l,children:ve.jsx(AT,{"data-orientation":s.orientation,"data-state":rC(c),...o,...a,ref:t,disabled:u,open:c,onOpenChange:e=>{e?i.onItemOpen(r):i.onItemClose(r)}})})});JT.displayName=HT;var QT="AccordionHeader",YT=ae.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=qT(IT,n),s=ZT(QT,n);return ve.jsx(Ph.h3,{"data-orientation":a.orientation,"data-state":rC(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});YT.displayName=QT;var XT="AccordionTrigger",eC=ae.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=qT(IT,n),s=ZT(XT,n),i=UT(XT,n),o=DT(n);return ve.jsx(CT.ItemSlot,{scope:n,children:ve.jsx(ET,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:s.triggerId,...o,...r,ref:t})})});eC.displayName=XT;var tC="AccordionContent",nC=ae.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=qT(IT,n),s=ZT(tC,n),i=DT(n);return ve.jsx(NT,{role:"region","aria-labelledby":s.triggerId,"data-orientation":a.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function rC(e){return e?"open":"closed"}nC.displayName=tC;var aC=JT,sC=YT,iC=eC,oC=nC;const lC=LT,cC=Y.forwardRef(({className:e,...t},n)=>ve.jsx(aC,{ref:n,className:Jm("border-b",e),...t}));cC.displayName="AccordionItem";const uC=Y.forwardRef(({className:e,children:t,...n},r)=>ve.jsx(sC,{className:"flex",children:ve.jsxs(iC,{ref:r,className:Jm("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,ve.jsx(_p,{className:"h-4 w-4 shrink-0 transition-all duration-200 text-current"})]})}));uC.displayName=iC.displayName;const dC=Y.forwardRef(({className:e,children:t,...n},r)=>ve.jsx(oC,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:ve.jsx("div",{className:Jm("pb-4 pt-0",e),children:t})}));dC.displayName=oC.displayName;const hC=Y.lazy(()=>se(()=>import("./ToolsTabInterface-CBPTM3Vm.js").then(e=>e.a),__vite__mapDeps([12,2,13])).then(e=>({default:e.ToolsTabInterface}))),fC=()=>ve.jsx("div",{id:"tools-section",className:"w-full py-16 bg-white lazy-placeholder",children:ve.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:[ve.jsxs("div",{className:"text-center mb-10",children:[ve.jsx("div",{className:"h-9 bg-gray-200 rounded w-80 mx-auto mb-3 animate-pulse"}),ve.jsx("div",{className:"h-4 bg-gray-200 rounded max-w-2xl mx-auto animate-pulse"})]}),ve.jsx("div",{className:"relative mb-8",children:ve.jsx("div",{className:"flex overflow-x-auto scrollbar-hide pb-3 -mx-1",children:ve.jsx("div",{className:"flex space-x-2 px-1 mx-auto",children:[1,2,3,4,5].map(e=>ve.jsxs("div",{className:"h-10 px-4 bg-gray-200 rounded-md border animate-pulse whitespace-nowrap flex items-center space-x-2",children:[ve.jsx("div",{className:"h-4 w-4 bg-gray-300 rounded"}),ve.jsx("div",{className:"h-4 w-16 bg-gray-300 rounded"})]},e))})})}),ve.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:[1,2,3,4,5,6,7,8].map(e=>ve.jsx("div",{className:"h-full transition-all duration-300 hover:shadow-lg border border-gray-200 rounded-lg overflow-hidden animate-pulse",children:ve.jsxs("div",{className:"p-6 flex flex-col h-full",children:[ve.jsxs("div",{className:"flex items-center mb-3",children:[ve.jsx("div",{className:"w-10 h-10 rounded-full bg-gray-200 mr-3"}),ve.jsx("div",{className:"h-5 bg-gray-200 rounded w-32"})]}),ve.jsxs("div",{className:"flex-grow mb-4",children:[ve.jsx("div",{className:"h-4 bg-gray-200 rounded mb-2"}),ve.jsx("div",{className:"h-4 bg-gray-200 rounded w-4/5"})]}),ve.jsx("div",{className:"flex justify-end items-center mt-auto",children:ve.jsx("div",{className:"h-4 bg-gray-200 rounded w-24"})})]})},e))})]})});function pC(){return ve.jsx("div",{className:"lazy-placeholder",children:ve.jsx(Y.Suspense,{fallback:ve.
2jsx(fC,{}),children:ve.jsx(hC,{})})})}const mC=Y.forwardRef(({className:e,...t},n)=>ve.jsx("div",{ref:n,className:Jm("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));mC.displayName="Card";const gC=Y.forwardRef(({className:e,...t},n)=>ve.jsx("div",{ref:n,className:Jm("flex flex-col space-y-1.5 p-6",e),...t}));gC.displayName="CardHeader";const yC=Y.forwardRef(({className:e,...t},n)=>ve.jsx("h3",{ref:n,className:Jm("text-2xl font-semibold leading-none tracking-tight",e),...t}));yC.displayName="CardTitle";const vC=Y.forwardRef(({className:e,...t},n)=>ve.jsx("p",{ref:n,className:Jm("text-sm text-muted-foreground",e),...t}));vC.displayName="CardDescription";const bC=Y.forwardRef(({className:e,...t},n)=>ve.jsx("div",{ref:n,className:Jm("p-6 pt-0",e),...t}));bC.displayName="CardContent";const xC=Y.forwardRef(({className:e,...t},n)=>ve.jsx("div",{ref:n,className:Jm("flex items-center p-6 pt-0",e),...t}));xC.displayName="CardFooter";const wC=Y.lazy(()=>se(()=>import("./BlogSection-DNrnyJfC.js"),__vite__mapDeps([19,2,20,21,8])).then(e=>({default:e.BlogSection}))),kC=({limit:e=6,showOnHomepage:t=!1})=>ve.jsx("section",{className:`py-16 ${t?"bg-luxury-lightgray":"bg-white"} lazy-placeholder`,children:ve.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:[ve.jsxs("div",{className:"text-center mb-12",children:[ve.jsx("div",{className:"h-10 bg-gray-200 rounded w-64 mx-auto mb-3 animate-pulse"}),ve.jsx("div",{className:"h-4 bg-gray-200 rounded w-96 mx-auto animate-pulse"})]}),ve.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3",children:Array.from({length:e}).map((e,t)=>ve.jsxs(mC,{className:"overflow-hidden hover:shadow-lg transition-all duration-300 hover:translate-y-[-2px] bg-white flex flex-col animate-pulse",children:[ve.jsxs("div",{className:"relative overflow-hidden h-48",children:[ve.jsx("div",{className:"w-full h-full bg-gray-200"}),ve.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 to-transparent"})]}),ve.jsxs("div",{className:"p-6 flex flex-col flex-grow",children:[ve.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-500 mb-3",children:[ve.jsxs("div",{className:"flex items-center gap-1",children:[ve.jsx("div",{className:"h-3 w-3 bg-gray-200 rounded"}),ve.jsx("div",{className:"h-3 bg-gray-200 rounded w-16"})]}),ve.jsxs("div",{className:"flex items-center gap-1",children:[ve.jsx("div",{className:"h-3 w-3 bg-gray-200 rounded"}),ve.jsx("div",{className:"h-3 bg-gray-200 rounded w-12"})]})]}),ve.jsx("div",{className:"h-6 bg-gray-200 rounded mb-1"}),ve.jsx("div",{className:"h-6 bg-gray-200 rounded w-4/5 mb-3"}),ve.jsxs("div",{className:"flex-grow",children:[ve.jsx("div",{className:"h-4 bg-gray-200 rounded mb-2"}),ve.jsx("div",{className:"h-4 bg-gray-200 rounded w-5/6 mb-2"}),ve.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-4"})]}),ve.jsxs("div",{className:"flex flex-wrap gap-2 mt-auto pt-4 border-t border-gray-100",children:[ve.jsx("div",{className:"h-6 bg-gray-200 rounded-full w-16"}),ve.jsx("div",{className:"h-6 bg-gray-200 rounded-full w-20"})]})]})]},t))})]})});function jC(e){return ve.jsx("div",{className:"lazy-placeholder",children:ve.jsx(Y.Suspense,{fallback:ve.jsx(kC,{limit:e.limit,showOnHomepage:e.showOnHomepage}),children:ve.jsx(wC,{...e})})})}function _C(e){try{return/^https?:\/\//i.test(e)?encodeURI(e):e.split("/").map((e,t)=>0===t&&""===e?"":encodeURIComponent(decodeURIComponent(e))).join("/")}catch{return encodeURI(e)}}function SC({src:e,alt:t,width:n,height:r,className:a="",loading:s="lazy",priority:i=!1,aspectRatio:o,fetchPriority:l="auto",fillContainer:c=!1}){const[u,d]=Y.useState(!1),[h,f]=Y.useState(!1),p=Y.useRef(null);Y.useEffect(()=>{if(i&&e){const t=document.createElement("link");return t.rel="preload",t.as="image",t.href=_C(e),document.head.appendChild(t),()=>{document.head.contains(t)&&document.head.removeChild(t)}}},[e,i]);const m=_C(e.replace(/\.(jpg|jpeg|png)$/i,".webp")),g=_C(e);return h?ve.jsx("div",{className:`bg-gray-200 flex items-center justify-center w-full ${c?"h-full":"h-auto"} ${a}`,style:{...c?{}:{maxWidth:n,aspectRatio:o||`${n}/${r}`}},children:ve.jsx("span",{className:"text-gray-500 text-sm",children:"Image not available"})}):ve.jsxs("div",{className:"relative overflow-hidden w-full "+(c?"h-full":"h-auto"),style:{...c?{}:{maxWidth:n,aspectRatio:o||`${n}/${r}`}},children:[!u&&ve.jsx("div",{className:"absolute inset-0 bg-gray-100 animate-pulse",style:{width:"100%",height:"100%"}}),ve.jsxs("picture",{className:"block w-full h-full",children:[ve.jsx("source",{srcSet:m,type:"image/webp"}),ve.jsx("img",{ref:p,src:g,alt:t,width:n,height:r,loading:s,fetchpriority:l,className:`w-full h-full object-cover transition-opacity duration-200 ${u?"opacity-100":"opacity-0"} ${a}`,onLoad:()=>{d(!0)},onError:()=>{f(!0),d(!0)},decoding:"async"})]})]})}const AC=Y.createContext({language:"en",setLanguage:()=>{},isSpanishRoute:!1});function EC({children:e}){const{i18n:t}=le(),[n]=fh(),[r,a]=Y.useState("en"),[s,i]=Y.useState(!1);Y.useEffect(()=>
2{const e=n.split("/").filter(Boolean)[0],t=["es","hi","de","fil","fr"].includes(e)?e:"en";i("es"===t),t!==r&&a(t)},[n,r]);return ve.jsx(AC.Provider,{value:{language:r,setLanguage:e=>{a(e),t.isInitialized&&t.changeLanguage(e)},isSpanishRoute:s},children:e})}function NC(){const{t:e,i18n:t}=le("home"),{currentLocale:n,getLocalizedPath:r}=hN();Y.useContext(AC),Y.useEffect(()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{t.loadNamespaces(["home","tools","seo","pages"])}):setTimeout(()=>{t.loadNamespaces(["home","tools","seo","pages"])},100)},[t]);const[a,s]=Y.useState(0),[i,o]=Y.useState(new Set([0])),[l,c]=Y.useState(!1),u=["/banner_images/lcp-hero.webp","/banner_images/Faceaura-AI-header-images.webp","/banner_images/AI Age Detector tool - Faceauraai.webp","/banner_images/AI Eye Shape Detector tool - Faceauraai.webp","/banner_images/AI Lip Shape Detector tool - Faceauraai.webp"],d=[e("slides.beautyAnalysis.title","AI BEAUTY PROFILING"),e("slides.faceShape.title","FACE SHAPE DETECTOR"),e("slides.ageDetection.title","AI AGE ESTIMATOR"),e("slides.eyeShape.title","EYE SHAPE ANALYSIS"),e("slides.lipShape.title","LIP GEOMETRY SCAN")],h=[e("slides.beautyAnalysis.description","Get a comprehensive aesthetic score and personalized style report."),e("slides.faceShape.description","Unlock your perfect look with precision analysis of your unique face geometry."),e("slides.ageDetection.description","Reveal your perceived age instantly to tailor your skincare and wellness routine."),e("slides.eyeShape.description","Master your makeup with expert insights tailored to your exact eye contours."),e("slides.lipShape.description","Find your signature shade and application style based on your natural lip shape.")],f=["/ai-tools/face-shape-detector","/ai-tools/face-shape-detector","/ai-tools/age-detector","/ai-tools/eye-shape-detector","/ai-tools/lip-shape-detector"];return Y.useEffect(()=>{const e=setInterval(()=>{s(e=>{const t=(e+1)%u.length;return o(e=>new Set(Array.from(e).concat(t))),t})},3e3);return()=>clearInterval(e)},[u.length]),Y.useEffect(()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{o(new Set([0,1,2,3,4])),c(!0)},{timeout:2e3}):setTimeout(()=>{o(new Set([0,1,2,3,4])),c(!0)},2e3)},[]),Y.useEffect(()=>{const e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.target.classList.add("active")})},{threshold:.1}),t=document.querySelectorAll(".fade-in, .slide-in-left, .slide-in-right, .zoom-in");return t.forEach(t=>{e.observe(t)}),()=>{t.forEach(t=>{e.unobserve(t)})}},[]),ve.jsxs(ve.Fragment,{children:[ve.jsx(lT,{type:"website"}),ve.jsxs("div",{className:"flex flex-col",children:[ve.jsxs("section",{className:"relative bg-luxury-white border-b border-gray-100",children:[ve.jsxs("div",{className:"lg:hidden relative box-border w-full min-h-0 max-h-[calc(100dvh-5rem)] h-[calc(100dvh-5rem)] flex-shrink-0 overflow-hidden",children:[ve.jsx("div",{className:"absolute inset-0 border-2 border-luxury-gold/20 pointer-events-none z-10"}),ve.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-1/2 bg-gradient-to-t from-black/50 to-transparent z-[5]"}),ve.jsx("div",{className:"absolute inset-0 w-full h-full min-h-0",children:u.map((e,t)=>i.has(t)?ve.jsx("div",{className:"absolute inset-0 w-full h-full min-h-0 transition-all duration-1000 "+(t===a?"opacity-100":"opacity-0"),style:{zIndex:t===a?1:0,transformOrigin:"center"},children:ve.jsx(vh,{href:r(f[t],n),className:"absolute inset-0 block cursor-pointer "+(t===a?"pointer-events-auto":"pointer-events-none"),"aria-label":`Open ${d[t]}`,children:ve.jsxs("picture",{className:"contents",children:[ve.jsx("source",{srcSet:encodeURI(e.replace(/\.(jpg|jpeg|png)$/i,".webp")),type:"image/webp"}),ve.jsx("img",{src:encodeURI(e),alt:`${d[t]} - AI Beauty Analysis`,loading:0===t?"eager":"lazy",fetchpriority:0===t?"high":"low",decoding:"async",className:"block absolute inset-0 h-full w-full min-h-full object-cover object-center transition-all duration-1000 transition-transform duration-6000 "+(t===a?"scale-110":"scale-100")})]})})},`mobile-slide-${t}`):null)}),ve.jsx("div",{className:"absolute bottom-24 left-6 right-6 text-white z-[6]",children:d.map((e,t)=>ve.jsx("div",{className:"transition-all duration-500 "+(t===a?"opacity-100 transform translate-y-0":"opacity-0 transform translate-y-4"),children:t===a&&ve.jsxs(ve.Fragment,{children:[ve.jsx("h3",{className:"font-heading text-2xl sm:text-3xl tracking-wide mb-3 leading-tight",children:e}),ve.jsx("p",{className:"font-body text-sm sm:text-base opacity-90 leading-relaxed max-w-[36ch]",children:h[t]})]})},`mobile-title-${t}`))}),ve.jsx("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex items-center gap-2 z-[7]",children:u.map((e,t)=>ve.jsx("button",{type:"button","aria-label":`Go to slide ${t+1}`,className:"w-8 h-8 flex items-center justify-center rounded-full",onClick:()=>s(t),children:ve.jsx("span",{className:"h-2 rounded-full transition-all duration-300 "+(t===a?"bg-luxury-gold w-4":"bg-white/70 w-2")})},`mobile-dot-${t}`))})]}
2),ve.jsx("div",{className:"w-full min-h-0 md:min-h-[80vh] lg:min-h-[90vh] flex items-center pt-6 pb-10 md:pt-8 md:pb-12",children:ve.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl grid lg:grid-cols-2 gap-4 md:gap-6 lg:gap-lg items-center",children:[ve.jsxs("div",{className:"space-y-4 md:space-y-6 lg:space-y-8 max-w-2xl fade-in",children:[ve.jsx("div",{className:"gold-accent inline-block pb-2 mb-3",children:ve.jsx("span",{className:"text-sm tracking-widest text-luxury-gold font-body",children:e("hero.badge","100% FREE, NO SIGN-UP NEEDED")})}),ve.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-[2.25rem] font-heading font-semibold text-luxury-black tracking-wide leading-tight",children:e("hero.title","Free AI Face Analysis Tools for Face Shape, Beauty & Body")}),ve.jsx("p",{className:"text-subtitle-2 text-gray-600 leading-relaxed font-body",children:e("hero.description","Upload your photo and instantly detect your face shape, age, emotions, eye shape, lip shape, body shape, and more â 100% free, no sign-up needed")}),ve.jsxs("div",{className:"flex flex-wrap gap-4 pt-4",children:[ve.jsx(vh,{href:r("/ai-tools/face-shape-detector",n),children:ve.jsx(sg,{size:"lg",className:"bg-luxury-black text-luxury-white hover:bg-black/90 btn-hover-effect px-4 sm:px-6 md:px-8 tracking-normal sm:tracking-wider",children:e("hero.cta","Try Face Shape Detector")})}),ve.jsx(vh,{href:"#tools-section",children:ve.jsx(sg,{size:"lg",variant:"outline",className:"btn-outline btn-hover-effect px-4 sm:px-6 md:px-8 tracking-normal sm:tracking-wider",onClick:e=>{e.preventDefault();const t=document.getElementById("tools-section");t&&t.scrollIntoView({behavior:"smooth"})},children:e("hero.secondaryCta","Popular AI Tools")})})]})]}),ve.jsx("div",{className:"hidden lg:flex justify-center items-center slide-in-right",children:ve.jsxs("div",{className:"w-full max-w-[400px] aspect-[2/3] rounded-sm bg-luxury-lightgray relative shadow-lg overflow-hidden",children:[ve.jsx("div",{className:"absolute inset-0 border-2 border-luxury-gold/20 pointer-events-none z-10"}),ve.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-1/3 bg-gradient-to-t from-black/40 to-transparent z-[5]"}),ve.jsx("div",{className:"absolute inset-0 w-full h-full",children:u.map((e,t)=>i.has(t)?ve.jsx("div",{className:"absolute inset-0 w-full h-full transition-all duration-1000 "+(t===a?"opacity-100":"opacity-0"),style:{zIndex:t===a?1:0,transformOrigin:"center"},children:ve.jsx(vh,{href:r(f[t],n),className:"absolute inset-0 block cursor-pointer "+(t===a?"pointer-events-auto":"pointer-events-none"),"aria-label":`Open ${d[t]}`,children:ve.jsx(SC,{src:e,alt:`${d[t]} - AI Beauty Analysis`,width:600,height:900,aspectRatio:"2/3",loading:0===t?"eager":"lazy",priority:0===t,fetchPriority:0===t?"high":"low",className:"!object-contain transition-transform duration-6000 "+(t===a?"scale-110":"scale-100")})})},t):null)}),ve.jsx("div",{className:"absolute bottom-8 left-8 right-8 text-white z-[6]",children:d.map((e,t)=>ve.jsx("div",{className:"transition-all duration-500 "+(t===a?"opacity-100 transform translate-y-0":"opacity-0 transform translate-y-4"),children:t===a&&ve.jsxs(ve.Fragment,{children:[ve.jsx("h3",{className:"font-heading text-2xl tracking-wider mb-2",children:e}),ve.jsx("p",{className:"font-body text-sm opacity-90",children:h[t]})]})},`title-${t}`))}),ve.jsx("div",{className:"absolute left-0 h-[120px] w-[2px] bg-luxury-gold top-1/2 transform -translate-y-1/2 z-[7]"}),ve.jsx("div",{className:"absolute bottom-4 right-4 flex space-x-2 z-[7]",children:u.map((e,t)=>ve.jsx("div",{className:"w-2 h-2 rounded-full transition-all duration-300 cursor-pointer "+(t===a?"bg-luxury-gold w-4":"bg-white/50"),onClick:()=>s(t)},`dot-${t}`))})]})})]})})]}),ve.jsx("section",{className:"section-spacing bg-luxury-lightgray",children:ve.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:[ve.jsx("h2",{className:"font-heading text-heading-1 text-luxury-black mb-4 text-center fade-in",children:e("intelligentAnalysis.title","What Is FaceAuraAI? â¨")}),ve.jsx("p",{className:"text-center text-gray-600 font-body max-w-3xl mx-auto mb-16 fade-in",children:e("intelligentAnalysis.subtitle","FaceAuraAI is a free AI beauty anal
2ysis platform with specialized tools that analyze your face and body in seconds. Whether you want to find your face shape before a haircut, check your golden ratio score, or discover your eye and lip type â you get results from just one photo.")}),ve.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-lg",children:[ve.jsxs("div",{className:"bg-white p-10 shadow-sm hover:shadow-md transition-all duration-300 hover:translate-y-[-10px] fade-in",children:[ve.jsx("div",{className:"w-[60px] h-[60px] mb-5 text-luxury-gold",children:ve.jsx(Yp,{className:"w-10 h-10"})}),ve.jsx("h3",{className:"font-heading text-heading-3 tracking-wider mb-4",children:e("intelligentAnalysis.precisionMapping.title","Detailed Face Analysis")}),ve.jsx("p",{className:"text-gray-600 font-body",children:e("intelligentAnalysis.precisionMapping.description","Our AI maps facial landmarks to estimate your face shape and related features from the photo you upload.")})]}),ve.jsxs("div",{className:"bg-white p-10 shadow-sm hover:shadow-md transition-all duration-300 hover:translate-y-[-10px] fade-in",children:[ve.jsx("div",{className:"w-[60px] h-[60px] mb-5 text-luxury-gold",children:ve.jsx(kp,{className:"w-10 h-10"})}),ve.jsx("h3",{className:"font-heading text-heading-3 tracking-wider mb-4",children:e("intelligentAnalysis.personalizedRecommendations.title","Style Recommendations That Actually Fit You")}),ve.jsx("p",{className:"text-gray-600 font-body",children:e("intelligentAnalysis.personalizedRecommendations.description","Get specific suggestions for hairstyles, glasses frames, makeup, and outfits â all matched to your face shape, eye type, and body shape.")})]}),ve.jsxs("div",{className:"bg-white p-10 shadow-sm hover:shadow-md transition-all duration-300 hover:translate-y-[-10px] fade-in",children:[ve.jsx("div",{className:"w-[60px] h-[60px] mb-5 text-luxury-gold",children:ve.jsx(Hp,{className:"w-10 h-10"})}),ve.jsx("h3",{className:"font-heading text-heading-3 tracking-wider mb-4",children:e("intelligentAnalysis.privacyFirst.title","Your Photos Stay Private")}),ve.jsx("p",{className:"text-gray-600 font-body",children:e("intelligentAnalysis.privacyFirst.description","Your photo is sent securely to our servers only to run your analysis. It's processed in real time and never saved to our systems. We don't use your images for AI training or share them with anyone.")})]})]})]})}),ve.jsx(pC,{}),ve.jsx("section",{className:"section-spacing bg-luxury-black text-luxury-white",children:ve.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:ve.jsxs("div",{className:"grid lg:grid-cols-2 gap-4 md:gap-6 lg:gap-lg items-center",children:[ve.jsxs("div",{className:"fade-in max-w-full",children:[ve.jsx("div",{className:"gold-accent inline-block pb-2 mb-3",children:ve.jsx("span",{className:"text-sm tracking-widest text-luxury-gold font-body",children:e("premiumExperience.badge","PREMIUM EXPERIENCE FOR FREE!")})}),ve.jsx("h2",{className:"font-heading text-heading-1 mb-6 break-words max-w-full",children:e("premiumExperience.title","Sophisticated Analysis, Elegant Results")}),ve.jsxs("div",{className:"space-y-4 max-w-full",children:[ve.jsxs("div",{className:"flex items-start gap-3 max-w-full",children:[ve.jsx("div",{className:"text-luxury-gold mt-1 flex-shrink-0",children:ve.jsx(Hp,{size:20})}),ve.jsxs("div",{className:"flex-1 min-w-0",children:[ve.jsx("h4",{className:"font-heading text-lg tracking-wider mb-1 break-words",children:e("premiumExperience.features.highPrecision.title","High Precision Analysis")}),ve.jsx("p",{className:"text-gray-400 text-sm break-words",children:e("premiumExperience.features.highPrecision.description","Advanced AI algorithms ensure accurate results.")})]})]}),ve.jsxs("div",{className:"flex items-start gap-3 max-w-full",children:[ve.jsx("div",{className:"text-luxury-gold mt-1 flex-shrink-0",children:ve.jsx(Rp,{size:20})}),ve.jsxs("div",{className:"flex-1 min-w-0",children:[ve.jsx("h4",{className:"font-heading text-lg tracking-wider mb-1 break-words",children:e("premiumExperience.features.personalized.title","Personalized Recommendations")}),ve.jsx("p",{className:"text-gray-400 text-sm break-words",children:e("premiumExperience.features.personalized.description","Tailored advice based on your unique features.")})]})]}),ve.jsxs("div",{className:"flex items-start gap-3 max-w-full",children:[ve.jsx("div",{className:"text-luxury-gold mt-1 flex-shrink-0",children:ve.jsx(wp,{size:20})}),ve.jsxs("div",{className:"flex-1 min-w-0",children:[ve.jsx("h4",{className:"font-heading text-lg tracking-wider mb-1 break-words",children:e("premiumExperience.features.detailedMetrics.title","Detailed Metrics")}),ve.jsx("p",{className:"text-gray-400 text-sm break-words",children:e("premiumExperience.features.detailedMetrics.description","Comprehensive data about your features and proportions.")})]})]})]})]}),ve.jsx("div",{className:"flex justify-center items-center slide-in-right w-full px-4 md:px-0",children:ve.jsx("div",{className:"w-full max-w-[500px] mx-auto",children:ve.jsx(SC,{src:"/images/Faceauraai_homepage_beauty_tool.webp",alt:"AI Face Shape Analysis",width:500,height:400,aspectRatio:"5/4",loading:"lazy",className:"rounded-sm"})})})]})})}),ve.jsx("section",{className:"section-spacing bg-white",children:ve.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:[ve.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16 fade-in",children:[ve.jsx("h2",{className:"font-heading text-heading-1 text-luxury-black mb-4",children:e("howItWorks.title","How It Works")}),ve.jsx("p",{className:"text-gray-600 font-body",children:e("howItWorks.subtitle","Simple steps to discover your perfect style")})]}),ve.jsxs("div",{className:"mt-20 relative",children:[ve.jsx("div",{className:"absolute top-[50px] left-0 w-full h-[1px] bg-gray-200 z-0 hidden lg:block","aria-hidden":"true"}),ve.jsx("div",{className:"absolute left-[50px] top-[50px] bottom-[50px] w-px bg-gray-200 z-0 lg:hidden -translate-x-1/2","aria-hidden":"true"}),ve.jsx("div",{className:"flex flex-col lg:flex-row justify-between gap-8 lg:gap-4",children:[{step:"1",title:e("howItWorks.steps.upload.title","Upload Your Photo"),description:e("howItWorks.steps.upload.description","Take a clear, front-facing selfie. No filters needed.")},{step:"2",title:e("howItWorks.steps.analysis.title","AI Scans Your Features"),description:e("howItWorks.steps.analysis.description","Our AI measures your facial landmarks and proportions in seconds.")},{step:"3",title:e("howItWorks.steps.results.title","Get Your Results"),description:e("howItWorks.steps.results.description","See your face shape, eye type, symmetry score, age estimate, and more â instantly.")},{step:"4",title:e("howItWorks.steps.recommendations.title","Use Your Style Tips"),description:e("howItWorks.steps.recommendations.description","Get personalized advice on hairstyles, makeup, glasses, outfits, and more based on your results.")}].map(({step:e,title:t,description:n},r)=>ve.jsxs("div",{className:"relative fade-in flex flex-row lg:flex-col lg:items-center lg:text-center gap-4 lg:gap-4 lg:w-[200px]",style:{animationDelay:.2*r+"s"},children:[ve.jsx("div",{className:"flex-shrink-0 w-[100px] h-[100px] rounded-full bg-white border border-gray-200 flex items-center justify-center z-10 relative hover:border-luxury-gold hover:shadow-lg transition-all duration-300",children:ve.jsx("span",{className:"text-2xl font-heading",children:e})}),ve.jsxs("div",{className:"flex-1 min-w-0 pt-1 lg:pt-0",children:[ve.jsx("h3",{className:"font-heading text-heading-3 tracking-wider",children:t}),ve.jsx("p",{className:"font-body text-gray-600 mt-1 lg:mt-4",children:n})]})]},e))}),ve.jsx("div",{className:"mt-12 lg:mt-16 text-center",children:ve.jsx(vh,{href:r("/ai-tools/face-shape-detector",n),children:ve.jsxs(sg,{size:"lg",className:"bg-luxury-black text-luxury-white hover:bg-black/90 btn-hover-effect px-6 py-5 tracking-wider",children:[e("hero.cta","Try Face Shape Detector"),ve.jsx(vp,{className:"ml-2 h-4 w-4"})]})})})]})]})}),ve.jsx("section",{className:"py-4 sm:py-10 md:py-10 bg-gradient-to-r from-luxury-purple/10 via-luxury-gold/10 to-luxury-purple/10 border-y border-luxury-gold/10",children:ve.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:[ve.jsx("div",{className:"text-center max-w-3xl mx-auto mb-6 fade-in",children:ve.jsx("div",{className:"gold-accent inline-block pb-2 mb-3",children:ve.jsx("span",{className:"text-sm tracking-widest text-luxury-gold font-body",children:e("successMetrics.subtitle","Join people who use FaceAuraAI for face and style analysis")})})}),ve.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-8 text-center",children:[{metric:"15+",label:e("successMetrics.tools","AI TOOLS")},{metric:"Free",label:e("successMetrics.freeStart","TO START")},{metric:"HTTPS",label:e("successMetrics.secureUpload","SECURE UPLOAD")},{metric:"Estimate",label:e("successMetrics.estimate","NOT A MEDICAL TEST")}].map(({metric:e,label:t},n)=>ve.jsxs("div",{className:"p-8 fade-in",style:{animationDelay:.15*n+"s"},children:[ve.jsx("p",{className:"font-heading text-5xl font-bold mb-3",style:{color:"#007d8f"},children:e}),ve.jsx("p",{className:"font-body text-sm tracking-wider text-gray-700",children:t})]},t))})]})}),ve.jsx("section",{className:"py-12 sm:py-16 md:py-20 lg:py-24 bg-white",children:ve.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:[ve.jsx("h2",{className:"font-heading text-heading-1 text-luxury-black mb-12 text-center fade-in",children:e("science.title","The Science Behind FaceAuraAI")}),ve.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:[ve.jsxs("div",{className:"bg-luxury-lightgray p-10 text-center hover:shadow-md transition-all duration-300 fade-in",children:[ve.jsx("div",{className:"w-16 h-16 mb-6 mx-auto",children:ve.jsx("svg",{viewBox:"0 0 24 24",className:"w-full h-full text-luxury-gold",children:ve.jsx("path",{fill:"currentColor",d:"M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2zm-4 6H7V7h10v10z"})})}),ve.jsx("h3",{className:"font-heading text-heading-3 tracking-wider mb-4",children:e("science.items.machineLearning.title","Deep Learning")}),ve.jsx("p",{className:"font-body text-gray-600",children:e("science.items.machineLearning.description","Face analysis uses Amazon Rekognition landmarks plus FaceAuraAI geometry rules. Results are estimates from one photo, not a published accuracy score.")})]}),ve.jsxs("div",{className:"bg-luxury-lightgray p-10 text-center hover:shadow-md transition-all duration-300 fade-in",children:[ve.jsx("div",{className:"w-16 h-16 mb-6 mx-auto",children:ve.jsx("svg",{viewBox:"0 0 24 24",className:"w-full h-full text-luxury-gold",children:ve.jsx("path",{fill:"currentColor",d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14h-2V9h-2V7h4v10z"})})}),ve.jsx("h3",{className:"font-heading text-heading-3 tracking-wider mb-4",children:e("science.items.facialLandmarks.title","Facial Landmarks")}),ve.jsx("p",{className:"font-body text-gray-600",children:e("science.items.facialLandmarks.description","We identify 68 precise facial landmarks to create a detailed map of your unique facial structure.")})]}),ve.jsxs("div",{className:"bg-luxury-lightgray p-10 text-center hover:shadow-md transition-all duration-300 fade-in",children:[ve.jsx("div",{className:"w-16 h-16 mb-6 mx-auto",children:ve.jsx("svg",{viewBox:"0 0 24 24",className:"w-full h-full text-luxury-gold",children:ve.jsx("path",{fill:"currentColor",d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"})})}),ve.jsx("h3",{className:"font-heading text-heading-3 tracking-wider mb-4",children:e("science.items.realTimeProcessing.t
2itle","Pattern Recognition")}),ve.jsx("p",{className:"font-body text-gray-600",children:e("science.items.realTimeProcessing.description","Advanced algorithms compare your facial measurements to established patterns for each face shape category.")})]})]})]})}),ve.jsx("section",{className:"py-8 sm:py-10 md:py-12 lg:py-16 bg-luxury-lightgray border-t border-gray-200",children:ve.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:[ve.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-12 fade-in",children:[ve.jsx("h2",{className:"font-heading text-heading-2 text-luxury-black mb-4",children:e("dataPrivacy.title","Your Data Privacy & Security")}),ve.jsx("p",{className:"text-luxury-gold font-semibold font-body mb-3",children:e("dataPrivacy.badge","Processed in real time. FaceAuraAI does not keep your photo.")}),ve.jsx("p",{className:"text-gray-600 font-body max-w-xl mx-auto",children:e("dataPrivacy.description","We take your privacy seriously. Photos travel over HTTPS. Face analysis uses Amazon Rekognition. Celebrity lookalike uses Hive. FaceAuraAI does not keep your photo or use it to train our models.")})]}),ve.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-3xl mx-auto",children:[ve.jsx("div",{className:"bg-white p-6 rounded-sm shadow-sm border border-gray-100 fade-in",children:ve.jsxs("div",{className:"flex items-center",children:[ve.jsx("div",{className:"flex-shrink-0 w-10 h-10 mr-4 text-luxury-gold",children:ve.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ve.jsx("rect",{width:"20",height:"20",x:"2",y:"2",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),ve.jsx("path",{d:"M8.5 12.5l2 2 5-5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),ve.jsx("p",{className:"text-gray-600 font-body",children:e("dataPrivacy.features.encryption","256-bit Encryption")})]})}),ve.jsx("div",{className:"bg-white p-6 rounded-sm shadow-sm border border-gray-100 fade-in",children:ve.jsxs("div",{className:"flex items-center",children:[ve.jsx("div",{className:"flex-shrink-0 w-10 h-10 mr-4 text-luxury-gold",children:ve.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ve.jsx("rect",{width:"20",height:"20",x:"2",y:"2",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),ve.jsx("path",{d:"M8.5 12.5l2 2 5-5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),ve.jsx("p",{className:"text-gray-600 font-body",children:e("dataPrivacy.features.gdpr","GDPR Compliant")})]})})]}),ve.jsxs("div",{className:"mt-12 max-w-3xl mx-auto fade-in",children:[ve.jsx("div",{className:"text-center mb-6",children:ve.jsx("h3",{className:"font-heading text-heading-2 text-luxury-black mb-4",children:e("howWeHandleYourPhoto.title","How We Handle Your Photo")})}),ve.jsx("div",{className:"bg-white p-6 rounded-sm shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 space-y-4",children:[{icon:Qp,key:"upload",fallback:"You upload your photo over HTTPS to FaceAuraAI."},{icon:tm,key:"analyze",fallback:"We analyse it for that request and return the result."},{icon:Jp,key:"notStored",fallback:"FaceAuraAI does not save your photo in our database."},{icon:Gp,key:"neverTraining",fallback:"We do not use your photos to train FaceAuraAI models."},{icon:Mp,key:"processors",fallback:"Face analysis uses Amazon Rekognition. Celebrity lookalike uses Hive. They receive the photo to complete your request. FaceAuraAI does not sell your photos."}].map(({icon:t,key:n,fallback:r})=>ve.jsxs("div",{className:"flex items-center",children:[ve.jsx("div",{className:"flex-shrink-0 w-10 h-10 mr-4 text-luxury-gold flex items-center justify-center",children:ve.jsx(t,{size:20})}),ve.jsx("p",{className:"text-gray-600 font-body",children:e(`howWeHandleYourPhoto.steps.${n}`,r)})]},n))})]})]})}),ve.jsx("section",{className:"py-12 sm:py-16 md:py-20 lg:py-24",children:ve.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl text-center",children:ve.jsxs("div",{className:"max-w-3xl mx-auto fade-in",children:[ve.jsx("div",{className:"gold-accent inline-block pb-2 mb-3",children:ve.jsx("span",{className:"text-sm tracking-widest text-luxury-gold font-body",children:e("cta.badge","GET STARTED")})}),ve.jsx("h2",{className:"font-heading text-heading-1 text-luxury-black mb-6",children:e("cta.title","Ready to Discover Your Features?")}),ve.jsx("p",{className:"text-gray-600 font-body mb-10 max-w-2xl mx-auto",children:e("cta.description","Try FaceAuraAI free to explore face shape, features, and style tips from a selfie.")}),ve.jsx(vh,{href:r("/ai-tools/face-shape-detector",n),children:ve.jsx(sg,{size:"lg",className:"bg-luxury-black text-luxury-white hover:bg-black/90 btn-hover-effect px-10 py-6 tracking-wider text-lg zoom
2-in",children:e("cta.button","Start Free Analysis â")})})]})})}),l&&ve.jsx(jC,{showOnHomepage:!0,limit:4}),ve.jsxs("div",{className:"w-full max-w-4xl min-w-0 mx-auto px-4 py-12 md:py-16 box-border",children:[ve.jsx("div",{className:"text-center mb-8",children:ve.jsx("div",{className:"inline-block pb-2 mb-6 border-b-2 border-luxury-purple",children:ve.jsx("h2",{className:"text-3xl font-heading tracking-[3px] mb-3 text-luxury-purple page-heading",children:e("faq.title","Frequently Asked Questions")})})}),ve.jsx(lC,{type:"single",collapsible:!0,className:"w-full bg-white rounded-lg min-w-0",children:(()=>{try{const t=e("faq.questions",{returnObjects:!0});if(Array.isArray(t))return t.map(e=>ve.jsxs(cC,{value:e.id,className:"px-6 border-b last:border-b-0 transition-colors duration-200 hover:bg-[#f3ecfb]",children:[ve.jsx(uC,{className:"text-left font-heading font-normal text-base text-black hover:no-underline py-4 transition-colors duration-200 hover:text-[#6a3ea1] [&[data-state=open]]:text-[#6a3ea1] min-w-0 break-words",children:e.question}),ve.jsx(dC,{className:"font-body text-sm leading-relaxed pb-4 text-gray-600 break-words min-w-0",children:ve.jsx("div",{dangerouslySetInnerHTML:{__html:e.answer.replace(/\n/g,"<br />")}})})]},e.id))}catch(t){console.error("Error rendering FAQ questions:",t)}return null})()})]}),ve.jsx(ZI,{children:ve.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",inLanguage:t.language||"en",mainEntity:(()=>{try{const t=e("faq.questions",{returnObjects:!0});if(Array.isArray(t))return t.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer.replace(/<[^>]*>/g,"")}}))}catch(t){console.error("Error generating FAQ schema:",t)}return[]})()})})})]})]})}function IC(){return Y.useEffect(()=>{"undefined"!=typeof window&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__={isDisabled:!0,supportsFiber:!0,inject:()=>{},onCommitFiberRoot:()=>{},onCommitFiberUnmount:()=>{}})},[]),null}var TC="Tabs",[CC,OC]=wh(TC,[PS]),PC=PS(),[RC,FC]=CC(TC),DC=Y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:s,orientation:i="horizontal",dir:o,activationMode:l="automatic",...c}=e,u=zh(o),[d,h]=Lh({prop:r,onChange:a,defaultProp:s??"",caller:TC});return ve.jsx(RC,{scope:n,baseId:Wh(),value:d,onValueChange:h,orientation:i,dir:u,activationMode:l,children:ve.jsx(Ph.div,{dir:u,"data-orientation":i,...c,ref:t})})});DC.displayName=TC;var LC="TabsList",MC=Y.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,s=FC(LC,n),i=PC(n);return ve.jsx(VS,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:ve.jsx(Ph.div,{role:"tablist","aria-orientation":s.orientation,...a,ref:t})})});MC.displayName=LC;var zC="TabsTrigger",$C=Y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...s}=e,i=FC(zC,n),o=PC(n),l=BC(i.baseId,r),c=WC(i.baseId,r),u=r===i.value;return ve.jsx(BS,{asChild:!0,...o,focusable:!a,active:u,children:ve.jsx(Ph.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:l,...s,ref:t,onMouseDown:jh(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(r)}),onKeyDown:jh(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(r)}),onFocus:jh(e.onFocus,()=>{const e="manual"!==i.activationMode;u||a||!e||i.onValueChange(r)})})})});$C.displayName=zC;var UC="TabsContent",VC=Y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:s,...i}=e,o=FC(UC,n),l=BC(o.baseId,r),c=WC(o.baseId,r),u=r===o.value,d=Y.useRef(u);return Y.useEffect(()=>{const e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),ve.jsx($h,{present:a||u,children:({present:n})=>ve.jsx(Ph.div,{"data-state":u?"active":"inactive","data-orientation":o.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:n&&s})})});function BC(e,t){return`${e}-trigger-${t}`}function WC(e,t){return`${e}-content-${t}`}VC.displayName=UC;var qC=MC,KC=$C,HC=VC;const GC=DC,ZC=Y.forwardRef(({className:e,...t},n)=>ve.jsx(qC,{ref:n,className:Jm("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));ZC.displayName=qC.displayName;const JC=Y.forwardRef(({className:e,...t},n)=>ve.jsx(KC,{ref:n,className:Jm("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));JC.displayName=KC.displayName;const QC=Y.forwardRef(({className:e,...t},n)=>ve.jsx(HC,{ref:n,className:Jm("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));QC.displayName=HC.displayName;var YC=e=>"checkbox"===e.type,XC=e=>e instanceof Date,eO=e=>null==e;const tO=e=>"object"==typeof e;var nO=e=>!eO(e)&&!Array.isArray(e)&&tO(e)&&!XC(e),rO=e=>nO(e)&&e.target?YC(e.target)?e.target.checked:e.target.value:e,aO=(e,t)=>
2e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),sO="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function iO(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(sO&&(e instanceof Blob||e instanceof FileList)||!n&&!nO(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return nO(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=iO(e[n]));else t=e}return t}var oO=e=>Array.isArray(e)?e.filter(Boolean):[],lO=e=>void 0===e,cO=(e,t,n)=>{if(!t||!nO(e))return n;const r=oO(t.split(/[,[\].]+?/)).reduce((e,t)=>eO(e)?e:e[t],e);return lO(r)||r===e?lO(e[t])?n:e[t]:r},uO=e=>"boolean"==typeof e,dO=e=>/^\w*$/.test(e),hO=e=>oO(e.replace(/["|']|\]/g,"").split(/\.|\[/)),fO=(e,t,n)=>{let r=-1;const a=dO(t)?[t]:hO(t),s=a.length,i=s-1;for(;++r<s;){const t=a[r];let s=n;if(r!==i){const n=e[t];s=nO(n)||Array.isArray(n)?n:isNaN(+a[r+1])?{}:[]}if("__proto__"===t)return;e[t]=s,e=e[t]}return e};const pO="blur",mO="focusout",gO="change",yO="onBlur",vO="onChange",bO="onSubmit",xO="onTouched",wO="all",kO="max",jO="min",_O="maxLength",SO="minLength",AO="pattern",EO="required",NO="validate",IO=ae.createContext(null),TO=()=>ae.useContext(IO);var CO=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(a,s,{get:()=>{const a=s;return t._proxyFormState[a]!==wO&&(t._proxyFormState[a]=!r||wO),n&&(n[a]=!0),e[a]}});return a},OO=e=>nO(e)&&!Object.keys(e).length,PO=(e,t,n,r)=>{n(e);const{name:a,...s}=e;return OO(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(e=>t[e]===(!r||wO))},RO=e=>Array.isArray(e)?e:[e],FO=(e,t,n)=>!e||!t||e===t||RO(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e)));function DO(e){const t=ae.useRef(e);t.current=e,ae.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var LO=e=>"string"==typeof e,MO=(e,t,n,r,a)=>LO(e)?(r&&t.watch.add(e),cO(n,e,a)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),cO(n,e))):(r&&(t.watchAll=!0),n);function zO(e){const t=TO(),{name:n,disabled:r,control:a=t.control,shouldUnregister:s}=e,i=aO(a._names.array,n),o=function(e){const t=TO(),{control:n=t.control,name:r,defaultValue:a,disabled:s,exact:i}=e||{},o=ae.useRef(r);o.current=r,DO({disabled:s,subject:n._subjects.values,next:e=>{FO(o.current,e.name,i)&&c(iO(MO(o.current,n._names,e.values||n._formValues,!1,a)))}});const[l,c]=ae.useState(n._getWatch(r,a));return ae.useEffect(()=>n._removeUnmounted()),l}({control:a,name:n,defaultValue:cO(a._formValues,n,cO(a._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=TO(),{control:n=t.control,disabled:r,name:a,exact:s}=e||{},[i,o]=ae.useState(n._formState),l=ae.useRef(!0),c=ae.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=ae.useRef(a);return u.current=a,DO({disabled:r,next:e=>l.current&&FO(u.current,e.name,s)&&PO(e,c.current,n._updateFormState)&&o({...n._formState,...e}),subject:n._subjects.state}),ae.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),CO(i,n,c.current,!1)}({control:a,name:n,exact:!0}),c=ae.useRef(a.register(n,{...e.rules,value:o,...uO(e.disabled)?{disabled:e.disabled}:{}}));return ae.useEffect(()=>{const e=a._options.shouldUnregister||s,t=(e,t)=>{const n=cO(a._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=iO(cO(a._options.defaultValues,n));fO(a._defaultValues,n,e),lO(cO(a._formValues,n))&&fO(a._formValues,n,e)}return()=>{(i?e&&!a._state.action:e)?a.unregister(n):t(n,!1)}},[n,a,i,s]),ae.useEffect(()=>{cO(a._fields,n)&&a._updateDisabledField({disabled:r,fields:a._fields,name:n,value:cO(a._fields,n)._f.value})},[r,n,a]),{field:{name:n,value:o,...uO(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:ae.useCallback(e=>c.current.onChange({target:{value:rO(e),name:n},type:gO}),[n]),onBlur:ae.useCallback(()=>c.current.onBlur({target:{value:cO(a._formValues,n),name:n},type:pO}),[n,a]),ref:ae.useCallback(e=>{const t=cO(a._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[a._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!cO(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!cO(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!cO(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!cO(l.validatingFields,n)},error:{enumerable:!0,get:()=>cO(l.errors,n)}})}}const $O=e=>e.render(zO(e));var UO=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{}
vendor: 15,431 bytes, line 2
2,[r]:a||!0}}:{},VO=e=>({isOnSubmit:!e||e===bO,isOnBlur:e===yO,isOnChange:e===vO,isOnAll:e===wO,isOnTouch:e===xO}),BO=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const WO=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const n=cO(e,a);if(n){const{_f:e,...s}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(WO(s,t))break}else if(nO(s)&&WO(s,t))break}}};var qO=(e,t,n)=>{const r=RO(cO(e,n));return fO(r,"root",t[n]),fO(e,n,r),e},KO=e=>"file"===e.type,HO=e=>"function"==typeof e,GO=e=>{if(!sO)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ZO=e=>LO(e),JO=e=>"radio"===e.type,QO=e=>e instanceof RegExp;const YO={value:!1,isValid:!1},XO={value:!0,isValid:!0};var eP=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!lO(e[0].attributes.value)?lO(e[0].value)||""===e[0].value?XO:{value:e[0].value,isValid:!0}:XO:YO}return YO};const tP={isValid:!1,value:null};var nP=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,tP):tP;function rP(e,t,n="validate"){if(ZO(e)||Array.isArray(e)&&e.every(ZO)||uO(e)&&!e)return{type:n,message:ZO(e)?e:"",ref:t}}var aP=e=>nO(e)&&!QO(e)?e:{value:e,message:""},sP=async(e,t,n,r,a)=>{const{ref:s,refs:i,required:o,maxLength:l,minLength:c,min:u,max:d,pattern:h,validate:f,name:p,valueAsNumber:m,mount:g,disabled:y}=e._f,v=cO(t,p);if(!g||y)return{};const b=i?i[0]:s,x=e=>{r&&b.reportValidity&&(b.setCustomValidity(uO(e)?"":e||""),b.reportValidity())},w={},k=JO(s),j=YC(s),_=k||j,S=(m||KO(s))&&lO(s.value)&&lO(v)||GO(s)&&""===s.value||""===v||Array.isArray(v)&&!v.length,A=UO.bind(null,p,n,w),E=(e,t,n,r=_O,a=SO)=>{const i=e?t:n;w[p]={type:e?r:a,message:i,ref:s,...A(e?r:a,i)}};if(a?!Array.isArray(v)||!v.length:o&&(!_&&(S||eO(v))||uO(v)&&!v||j&&!eP(i).isValid||k&&!nP(i).isValid)){const{value:e,message:t}=ZO(o)?{value:!!o,message:o}:aP(o);if(e&&(w[p]={type:EO,message:t,ref:b,...A(EO,t)},!n))return x(t),w}if(!(S||eO(u)&&eO(d))){let e,t;const r=aP(d),a=aP(u);if(eO(v)||isNaN(v)){const n=s.valueAsDate||new Date(v),i=e=>new Date((new Date).toDateString()+" "+e),o="time"==s.type,l="week"==s.type;LO(r.value)&&v&&(e=o?i(v)>i(r.value):l?v>r.value:n>new Date(r.value)),LO(a.value)&&v&&(t=o?i(v)<i(a.value):l?v<a.value:n<new Date(a.value))}else{const n=s.valueAsNumber||(v?+v:v);eO(r.value)||(e=n>r.value),eO(a.value)||(t=n<a.value)}if((e||t)&&(E(!!e,r.message,a.message,kO,jO),!n))return x(w[p].message),w}if((l||c)&&!S&&(LO(v)||a&&Array.isArray(v))){const e=aP(l),t=aP(c),r=!eO(e.value)&&v.length>+e.value,a=!eO(t.value)&&v.length<+t.value;if((r||a)&&(E(r,e.message,t.message),!n))return x(w[p].message),w}if(h&&!S&&LO(v)){const{value:e,message:t}=aP(h);if(QO(e)&&!v.match(e)&&(w[p]={type:AO,message:t,ref:s,...A(AO,t)},!n))return x(t),w}if(f)if(HO(f)){const e=rP(await f(v,t),b);if(e&&(w[p]={...e,...A(NO,e.message)},!n))return x(e.message),w}else if(nO(f)){let e={};for(const r in f){if(!OO(e)&&!n)break;const a=rP(await f[r](v,t),b,r);a&&(e={...a,...A(r,a.message)},x(a.message),n&&(w[p]=e))}if(!OO(e)&&(w[p]={ref:b,...e},!n))return w}return x(!0),w};function iP(e,t){const n=Array.isArray(t)?t:dO(t)?[t]:hO(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=lO(e)?r++:e[t[r++]];return e}(e,n),a=n.length-1,s=n[a];return r&&delete r[s],0!==a&&(nO(r)&&OO(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!lO(e[t]))return!1;return!0}(r))&&iP(e,n.slice(0,-1)),e}var oP=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},lP=e=>eO(e)||!tO(e);function cP(e,t){if(lP(e)||lP(t))return e===t;if(XC(e)&&XC(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const n=e[a];if(!r.includes(a))return!1;if("ref"!==a){const e=t[a];if(XC(n)&&XC(e)||nO(n)&&nO(e)||Array.isArray(n)&&Array.isArray(e)?!cP(n,e):n!==e)return!1}}return!0}var uP=e=>"select-multiple"===e.type,dP=e=>GO(e)&&e.isConnected,hP=e=>{for(const t in e)if(HO(e[t]))return!0;return!1};function fP(e,t={}){const n=Array.isArray(e);if(nO(e)||n)for(const r in e)Array.isArray(e[r])||nO(e[r])&&!hP(e[r])?(t[r]=Array.isArray(e[r])?[]:{},fP(e[r],t[r])):eO(e[r])||(t[r]=!0);return t}function pP(e,t,n){const r=Array.isArray(e);if(nO(e)||r)for(const a in e)Array.isArray(e[a])||nO(e[a])&&!hP(e[a])?lO(t)||lP(n[a])?n[a]=Array.isArray(e[a])?fP(e[a],[]):{...fP(e[a])}:pP(e[a],eO(t)?{}:t[a],n[a]):n[a]=!cP(e[a],t[a]);return n}var mP=(e,t)=>pP(e,t,fP(t)),gP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>lO(e)?e:t?""===e?NaN:e?+e:e:n&&LO(e)?new Date(e):r?r(e):e;function yP(e){const t=e.ref;if(!(e.refs?e.refs.every(e=>e.disabled):t.disabled))return KO(t)?t.files:JO(t)?nP(e.refs).value:uP(t)?[...t.selectedOptions].map(({value:e})=>e):YC(t)?eP(e.refs).value:gP(lO(t.value)?e.ref.value:t.value,e)}var vP=e=>lO(e)?e:QO(e)?e.source:nO(e)?QO(e.value)?e.value.source:e.value:e;const bP="AsyncFunction";var xP=e=>!(e&&e.validate||!(HO(e.validate)&&e.validate.constructor.name===bP||nO(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===bP)));function wP(e,t,n){const r=cO(e,n);if(r||dO(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const r=a.join("."),s=cO(t,r),i=cO(e,r);if(s&&!Array.isArray(s)&&n!==r)return{name:n};if(i&&i.type)return{name:r,error:i};a.pop()}return{name:n}}const kP={mode:bO,reValidateMode:vO,shouldFocusError:!0};function jP(e={}){let t,n={...kP,...e},r={submitCount:0,isDirty:!1,isLoading:HO(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},s=(nO(n.defaultValues)||nO(n.values))&&iO(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:iO(s),o={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:oP(),array:oP(),state:oP()},h=VO(n.mode),f=VO(n.reValidateMode),p=n.criteriaMode===wO,m=async t=>{if(!e.disabled&&(u.isValid||t)){const e=n.resolver?OO((await x()).errors):await w(a,!0);e!==r.isValid&&d.state.next({isValid:e})}},g=(t,n)=>{e.disabled||!u.isValidating&&!u.validatingFields||((t||Array.from(l.mount)).forEach(e=>{e&&(n?fO(r.validatingFields,e,n):iP(r.validatingFields,e))}),d.state.next({validatingFields:r.validatingFields,isValidating:!OO(r.validatingFields)}))},y=(e,t,n,r)=>{const l=cO(a,e);if(l){const a=cO(i,e,lO(n)?cO(s,e):n);lO(a)||r&&r.defaultChecked||t?fO(i,e,t?a:yP(l._f)):_(e,a),o.mount&&m()}},v=(t,n,i,o,l)=>{let c=!1,h=!1;const f={name:t};if(!e.disabled){const e=!!(cO(a,t)&&cO(a,t)._f&&cO(a,t)._f.disabled);if(!i||o){u.isDirty&&(h=r.isDirty,r.isDirty=f.isDirty=k(),c=h!==f.isDirty);const a=e||cP(cO(s,t),n);h=!(e||!cO(r.dirtyFields,t)),a||e?iP(r.dirtyFields,t):fO(r.dirtyFields,t,!0),f.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&h!==!a}if(i){const e=cO(r.touchedFields,t);e||(fO(r.touchedFields,t,i),f.touchedFields=r.touchedFields,c=c||u.touchedFields&&e!==i)}c&&l&&d.state.next(f)}return c?f:{}},b=(n,a,s,i)=>{const o=cO(r.errors,n),l=u.isValid&&uO(a)&&r.isValid!==a;var h;if(e.delayError&&s?(h=()=>((e,t)=>{fO(r.errors,e,t),d.state.next({errors:r.errors})})(n,s),t=e=>{clearTimeout(c),c=setTimeout(h,e)},t(e.delayError)):(clearTimeout(c),t=null,s?fO(r.errors,n,s):iP(r.errors,n)),(s?!cP(o,s):o)||!OO(i)||l){const e={...i,...l&&uO(a)?{isValid:a}:{},errors:r.errors,name:n};r={...r,...e},d.state.next(e)}},x=async e=>{g(e,!0);const t=await n.resolver(i,n.context,((e,t,n,r)=>{const a={};for(const s of e){const e=cO(t,s);e&&fO(a,s,e._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}})(e||l.mount,a,n.criteriaMode,n.shouldUseNativeValidation));return g(e),t},w=async(e,t,a={valid:!0})=>{for(const s in e){const o=e[s];if(o){const{_f:e,...c}=o;if(e){const c=l.array.has(e.name),d=o._f&&xP(o._f);d&&u.validatingFields&&g([s],!0);const h=await sP(o,i,p,n.shouldUseNativeValidation&&!t,c);if(d&&u.validatingFields&&g([s]),h[e.name]&&(a.valid=!1,t))break;!t&&(cO(h,e.name)?c?qO(r.errors,h,e.name):fO(r.errors,e.name,h[e.name]):iP(r.errors,e.name))}!OO(c)&&await w(c,t,a)}}return a.valid},k=(t,n)=>!e.disabled&&(t&&n&&fO(i,t,n),!cP(T(),s)),j=(e,t,n)=>MO(e,l,{...o.mount?i:lO(t)?s:LO(e)?{[e]:t}:t},n,t),_=(e,t,n={})=>{const r=cO(a,e);let s=t;if(r){const n=r._f;n&&(!n.disabled&&fO(i,e,gP(t,n)),s=GO(n.ref)&&eO(t)?"":t,uP(n.ref)?[...n.ref.options].forEach(e=>e.selected=s.includes(e.value)):n.refs?YC(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(s)?!!s.find(t=>t===e.value):s===e.value)):n.refs[0]&&(n.refs[0].checked=!!s):n.refs.forEach(e=>e.checked=e.value===s):KO(n.ref)?n.ref.value="":(n.ref.value=s,n.ref.type||d.values.next({name:e,values:{...i}})))}(n.shouldDirty||n.shouldTouch)&&v(e,s,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&I(e)},S=(e,t,n)=>{for(const r in t){const s=t[r],i=`${e}.${r}`,o=cO(a,i);(l.array.has(e)||nO(s)||o&&!o._f)&&!XC(s)?S(i,s,n):_(i,s,n)}},A=(e,t,n={})=>{const c=cO(a,e),h=l.array.has(e),f=iO(t);fO(i,e,f),h?(d.array.next({name:e,values:{...i}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:mP(s,i),isDirty:k(e,f)})):!c||c._f||eO(f)?_(e,f,n):S(e,f,n),BO(e,l)&&d.state.next({...r}),d.values.next({name:o.mount?e:void 0,values:{...i}})},E=async s=>{o.mount=!0;const c=s.target;let y=c.name,k=!0;const j=cO(a,y),_=e=>{k=Number.isNaN(e)||XC(e)&&isNaN(e.getTime())||cP(e,cO(i,y,e))};if(j){let o,S;const A=c.type?yP(j._f):rO(s),E=s.type===pO||s.type===mO,N=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(j._f)&&!n.resolver&&!cO(r.errors,y)&&!j._f.deps||((e,t,n,r,a)=>!a.isOnAll&&(!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:!(n?r.isOnChange:a.isOnChange)||e))(E,cO(r.touchedFields,y),r.isSubmitted,f,h),T=BO(y,l,E);fO(i,y,A),E?(j._f.onBlur&&j._f.onBlur(s),t&&t(0)):j._f.onChange&&j._f.onChange(s);const C=v(y,A,E,!1),O=!OO(C)||T;if(!E&&d.values.next({name:y,type:s.type,values:{...i}}),N)return u.isValid&&("onBlur"===e.mode?E&&m():m()),O&&d.state.next({name:y,...T?{}:C});if(!E&&T&&d.state.next({...r}),n.resolver){const{errors:e}=await x([y]);if(_(A),k){const t=wP(r.errors,a,y),n=wP(e,a,t.name||y);o=n.error,y=n.name,S=OO(e)}}else g([y],!0),o=(await sP(j,i,p,n.shouldUseNativeValidation))[y],g([y]),_(A),k&&(o?S=!1:u.isValid&&(S=await w(a,!0)));k&&(j._f.deps&&I(j._f.deps),b(y,S,o,C))}},N=(e,t)=>{if(cO(r.errors,t)&&e.focus)return e.focus(),1},I=async(e,t={})=>{let s,i;const o=RO(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await x(e);if(e)for(const n of e){const e=cO(t,n);e?fO(r.errors,n,e):iP(r.errors,n)}else r.errors=t;return t})(lO(e)?e:o);s=OO(t),i=e?!o.some(e=>cO(t,e)):s}else e?(i=(await Promise.all(o.map(async e=>{const t=cO(a,e);return await w(t&&t._f?{[e]:t}:t)}))).every(Boolean),(i||r.isValid)&&m()):i=s=await w(a);return d.state.next({...!LO(e)||u.isValid&&s!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:s}:{},errors:r.errors}),t.shouldFocus&&!i&&WO(a,N,e?o:l.mount),i},T=e=>{const t={...o.mount?i:s};return lO(e)?t:LO(e)?cO(t,e):e.map(e=>cO(t,e))},C=(e,t)=>({invalid:!!cO((t||r).errors,e),isDirty:!!cO((t||r).dirtyFields,e),error:cO((t||r).errors,e),isValidating:!!cO(r.validatingFields,e),isTouched:!!cO((t||r).touchedFields,e)}),O=(e,t,n)=>{const s=(cO(a,e,{_f:{}})._f||{}).ref,i=cO(r.errors,e)||{},{ref:o,message:l,type:c,...u}=i;fO(r.errors,e,{...u,...t,ref:s}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&s&&s.focus&&s.focus()},P=(e,t={})=>{for(const o of e?RO(e):l.mount)l.mount.delete(o),l.array.delete(o),t.keepValue||(iP(a,o),iP(i,o)),!t.keepError&&iP(r.errors,o),!t.keepDirty&&iP(r.dirtyFields,o),!t.keepTouched&&iP(r.touchedFields,o),!t.keepIsValidating&&iP(r.validatingFields,o),!n.shouldUnregister&&!t.keepDefaultValue&&iP(s,o);d.values.next({values:{...i}}),d.state.next({...r,...t.keepDirty?{isDirty:k()}:{}}),!t.keepIsValid&&m()},R=({disabled:e,name:t,field:n,fields:r,value:a})=>{if(uO(e)&&o.mount||e){const s=e?void 0:lO(a)?yP(n?n._f:cO(r,t)._f):a;fO(i,t,s),v(t,s,!1,!1,!0)}},F=(t,r={})=>{let i=cO(a,t);const c=uO(r.disabled)||uO(e.disabled);return fO(a,t,{...i||{},_f:{...i&&i._f?i._f:{ref:{name:t}},name:t,mount:!0,...r}}),l.mount.add(t),i?R({field:i,disabled:uO(r.disabled)?r.disabled:e.disabled,name:t,value:r.value}):y(t,!0,r.value),{...c?{disabled:r.disabled||e.disabled}:{},...n.progressive?{required:!!r.required,min:vP(r.min),max:vP(r.max),minLength:vP(r.minLength),maxLength:vP(r.maxLength),pattern:vP(r.pattern)}:{},name:t,onChange:E,onBlur:E,ref:e=>{if(e){F(t,r),i=cO(a,t);const n=lO(e.value)&&e.querySelectorAll&&e.querySelectorAll("input,select,textarea")[0]||e,o=(e=>JO(e)||YC(e))(n),l=i._f.refs||[];if(o?l.find(e=>e===n):n===i._f.ref)return;fO(a,t,{_f:{...i._f,...o?{refs:[...l.filter(dP),n,...Array.isArray(cO(s,t))?[{}]:[]],ref:{type:n.type,name:t}}:{ref:n}}}),y(t,!1,void 0,n)}else i=cO(a,t,{}),i._f&&(i._f.mount=!1),(n.shouldUnregister||r.shouldUnregister)&&(!aO(l.array,t)||!o.action)&&l.unMount.add(t)}}},D=()=>n.shouldFocusError&&WO(a,N,l.mount),L=(e,t)=>async s=>{let o;s&&(s.preventDefault&&s.preventDefault(),s.persist&&s.persist());let l=iO(i);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await x();r.errors=e,l=t}else await w(a);if(iP(r.errors,"root"),OO(r.errors)){d.state.next({errors:{}});try{await e(l,s)}catch(c){o=c}}else t&&await t({...r.errors},s),D(),setTimeout(D);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:OO(r.errors)&&!o,submitCount:r.submitCount+1,errors:r.errors}),o)throw o},M=(t,n={})=>{const c=t?iO(t):s,h=iO(c),f=OO(t),p=f?s:h;if(n.keepDefaultValues||(s=c),!n.keepValues){if(n.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(mP(s,i))]);for(const t of Array.from(e))cO(r.dirtyFields,t)?fO(p,t,cO(i,t)):A(t,cO(p,t))}else{if(sO&&lO(t))for(const e of l.mount){const t=cO(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(GO(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}i=e.shouldUnregister?n.keepDefaultValues?iO(s):{}:iO(p),d.array.next({values:{...p}}),d.values.next({values:{...p}})}l={mount:n.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!n.keepIsValid||!!n.keepDirtyValues,o.watch=!!e.shouldUnregister,d.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!f&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||cP(t,s))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:f?{}:n.keepDirtyValues?n.keepDefaultValues&&i?mP(s,i):r.dirtyFields:n.keepDefaultValues&&t?mP(s,t):n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},z=(e,t)=>M(HO(e)?e(i):e,t);return{control:{register:F,unregister:P,getFieldState:C,handleSubmit:L,setError:O,_executeSchema:x,_getWatch:j,_getDirty:k,_updateV
2alid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=cO(a,e);t&&(t._f.refs?t._f.refs.every(e=>!dP(e)):!dP(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(t,n=[],l,c,h=!0,f=!0)=>{if(c&&l&&!e.disabled){if(o.action=!0,f&&Array.isArray(cO(a,t))){const e=l(cO(a,t),c.argA,c.argB);h&&fO(a,t,e)}if(f&&Array.isArray(cO(r.errors,t))){const e=l(cO(r.errors,t),c.argA,c.argB);h&&fO(r.errors,t,e),((e,t)=>{!oO(cO(e,t)).length&&iP(e,t)})(r.errors,t)}if(u.touchedFields&&f&&Array.isArray(cO(r.touchedFields,t))){const e=l(cO(r.touchedFields,t),c.argA,c.argB);h&&fO(r.touchedFields,t,e)}u.dirtyFields&&(r.dirtyFields=mP(s,i)),d.state.next({name:t,isDirty:k(t,n),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else fO(i,t,n)},_updateDisabledField:R,_getFieldArray:t=>oO(cO(o.mount?i:s,t,e.shouldUnregister?cO(s,t,[]):[])),_reset:M,_resetDefaultValues:()=>HO(n.defaultValues)&&n.defaultValues().then(e=>{z(e,n.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{uO(e)&&(d.state.next({disabled:e}),WO(a,(t,n)=>{const r=cO(a,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return a},get _formValues(){return i},get _state(){return o},set _state(e){o=e},get _defaultValues(){return s},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:I,register:F,handleSubmit:L,watch:(e,t)=>HO(e)?d.values.subscribe({next:n=>e(j(void 0,t),n)}):j(e,t,!0),setValue:A,getValues:T,reset:z,resetField:(e,t={})=>{cO(a,e)&&(lO(t.defaultValue)?A(e,iO(cO(s,e))):(A(e,t.defaultValue),fO(s,e,iO(t.defaultValue))),t.keepTouched||iP(r.touchedFields,e),t.keepDirty||(iP(r.dirtyFields,e),r.isDirty=t.defaultValue?k(e,iO(cO(s,e))):k()),t.keepError||(iP(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&RO(e).forEach(e=>iP(r.errors,e)),d.state.next({errors:e?r.errors:{}})},unregister:P,setError:O,setFocus:(e,t={})=>{const n=cO(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:C}}function _P(e={}){const t=ae.useRef(),n=ae.useRef(),[r,a]=ae.useState({isDirty:!1,isValidating:!1,isLoading:HO(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:HO(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...jP(e),formState:r});const s=t.current.control;
2return s._options=e,DO({subject:s._subjects.state,next:e=>{PO(e,s._proxyFormState,s._updateFormState,!0)&&a({...s._formState})}}),ae.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),ae.useEffect(()=>{if(s._proxyFormState.isDirty){const e=s._getDirty();e!==r.isDirty&&s._subjects.state.next({isDirty:e})}},[s,r.isDirty]),ae.useEffect(()=>{e.values&&!cP(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,a(e=>({...e}))):s._resetDefaultValues()},[e.values,s]),ae.useEffect(()=>{e.errors&&s._setErrors(e.errors)},[e.errors,s]),ae.useEffect(()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),ae.useEffect(()=>{e.shouldUnregister&&s._subjects.values.next({values:s._getWatch()})},[e.shouldUnregister,s]),ae.useEffect(()=>{t.current&&(t.current.watch=t.current.watch.bind({}))},[r]),t.current.formState=CO(r,s),t.current}const SP=(e,t,n)=>{if(e&&"reportValidity"in e){const r=cO(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},AP=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?SP(r.ref,n,e):r.refs&&r.refs.forEach(t=>SP(t,n,e))}},EP=(e,t)=>{t.shouldUseNativeValidation&&AP(e,t);const n={};for(const r in e){const a=cO(t.fields,r),s=Object.assign(e[r]||{},{ref:a&&a.ref});if(NP(t.names||Object.keys(e),r)){const e=Object.assign({},cO(n,r));fO(e,"root",s),fO(n,r,e)}else fO(n,r,s)}return n},NP=(e,t)=>e.some(e=>e.startsWith(t+"."));var IP,TP,CP,OP=function(e,t){for(var n={};e.length;){var r=e[0],a=r.code,s=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var o=r.unionErrors[0].errors[0];n[i]={message:o.message,type:o.code}}else n[i]={message:s,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var l=n[i].types,c=l&&l[r.code];n[i]=UO(i,t,n,a,c?[].concat(c,r.message):r.message)}e.shift()}return n},PP=function(e,t,n){return void 0===n&&(n={}),function(r,a,s){try{return Promise.resolve(function(a,i){try{var o=Promise.resolve(e["sync"===n.mode?"parse":"parseAsync"](r,t)).then(function(e){return s.shouldUseNativeValidation&&AP({},s),{errors:{},values:n.raw?r:e}})}catch(l){return i(l)}return o&&o.then?o.then(void 0,i):o}(0,function(e){if(t=e,Array.isArray(null==t?void 0:t.errors))return{values:{},errors:EP(OP(e.errors,!s.shouldUseNativeValidation&&"all"===s.criteriaMode),s)};var t;throw e}))}catch(i){return Promise.reject(i)}}};(TP=IP||(IP={})).assertEqual=e=>{},TP.assertIs=function(e){},TP.assertNever=function(e){throw new Error},TP.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},TP.getValidEnumValues=e=>{const t=TP.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(const r of t)n[r]=e[r];return TP.objectValues(n)},TP.objectValues=e=>TP.objectKeys(e).map(function(t){return e[t]}),TP.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},TP.find=(e,t)=>{for(const n of e)if(t(n))return n},TP.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,TP.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},TP.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(CP||(CP={})).mergeShapes=(e,t)=>({...e,...t});const RP=IP.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),FP=e=>{switch(typeof e){case"undefined":return RP.undefined;case"string":return RP.string;case"number":return Number.isNaN(e)?RP.nan:RP.number;case"boolean":return RP.boolean;case"function":return RP.function;case"bigint":return RP.bigint;case"symbol":return RP.symbol;case"object":return Array.isArray(e)?RP.array:null===e?RP.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?RP.promise:"undefined"!=typeof Map&&e instanceof Map?RP.map:"undefined"!=typeof Set&&e instanceof Set?RP.set:"undefined"!=typeof Date&&e instanceof Date?RP.date:RP.object;default:return RP.unknown}}
vendor: 4,240 bytes, line 2
2,DP=IP.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 LP extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(r);else if("invalid_return_type"===a.code)r(a.returnTypeError);else if("invalid_arguments"===a.code)r(a.argumentsError);else if(0===a.path.length)n._errors.push(t(a));else{let e=n,r=0;for(;r<a.path.length;){const n=a.path[r];r===a.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(a))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof LP))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,IP.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)if(r.path.length>0){const n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}LP.create=e=>new LP(e);const MP=(e,t)=>{let n;switch(e.code){case DP.invalid_type:n=e.received===RP.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case DP.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,IP.jsonStringifyReplacer)}`;break;case DP.unrecognized_keys:n=`Unrecognized key(s) in object: ${IP.joinValues(e.keys,", ")}`;break;case DP.invalid_union:n="Invalid input";break;case DP.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${IP.joinValues(e.options)}`;break;case DP.invalid_enum_value:n=`Invalid enum value. Expected ${IP.joinValues(e.options)}, received '${e.received}'`;break;case DP.invalid_arguments:n="Invalid function arguments";break;case DP.invalid_return_type:n="Invalid function return type";break;case DP.invalid_date:n="Invalid date";break;case DP.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(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}"`:IP.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case DP.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case DP.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case DP.custom:n="Invalid input";break;
2case DP.invalid_intersection_types:n="Intersection results could not be merged";break;case DP.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case DP.not_finite:n="Number must be finite";break;default:n=t.defaultError,IP.assertNever(e)}return{message:n}};let zP=MP;function $P(e,t){const n=zP,r=(e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,s=[...n,...a.path||[]],i={...a,path:s};if(void 0!==a.message)return{...a,path:s,message:a.message};let o="";const l=r.filter(e=>!!e).slice().reverse();for(const c of l)o=c(i,{data:t,defaultError:o}).message;return{...a,path:s,message:o}})({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===MP?void 0:MP].filter(e=>!!e)});e.common.issues.push(r)}class UP{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return VP;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return UP.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:a}=r;if("aborted"===t.status)return VP;if("aborted"===a.status)return VP;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"===t.value||void 0===a.value&&!r.alwaysSet||(n[t.value]=a.value)}return{status:e.value,value:n}}}const VP=Object.freeze({status:"aborted"}),BP=e=>({status:"dirty",value:e}),WP=e=>({status:"valid",value:e}),qP=e=>"aborted"===e.status,KP=e=>"dirty"===e.status,HP=e=>"valid"===e.status,GP=e=>"undefined"!=typeof Promise&&e instanceof Promise;var ZP,JP;(JP=ZP||(ZP={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},JP.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class QP{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}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 YP=(e,t)=>{if(HP(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 t=new LP(e.common.issues);return this._error=t,this._error}}};function XP(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:a};return{errorMap:(t,a)=>{const{message:s}=e;return"invalid_enum_value"===t.code?{message:s??a.defaultError}:void 0===a.data?{message:s??r??a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:s??n??a.defaultError}},description:a}}class eR{get description(){return this._def.description}_getType(e){return FP(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:FP(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new UP,ctx:{common:e.parent.common,data:e.data,parsedType:FP(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(GP(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){const n={common:{issues:[],async:(null==t?void 0:t.async)??!1,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:FP(e)},r=this._parseSync({data:e,path:n.path,parent:n});return YP(n,r)}"~validate"(e){var t,n;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:FP(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:r});return HP(t)?{value:t.value}:{issues:r.common.issues}}catch(sM){(null==(n=null==(t=null==sM?void 0:sM.message)?void 0:t.toLowerCase())?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(e=>HP(e)?{value:e.value}:{issues:r.common.issues})}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:FP(e)},r=this._parse({data:e,path:n.path,parent:n}),a=await(GP(r)?r:Promise.resolve(r));return YP(n,a)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{const a=e(t),s=()=>r.addIssue({code:DP.custom,...n(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then(e=>!!e||(s(),!1)):!!a||(s(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new YR({schema:this,typeName:oF.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,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:e=>this["~validate"](e)}}optional(){return XR.create(this,this._def)}nullable(){return eF.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return LR.create(this)}promise(){return QR.create(this,this._def)}or(e){return $R.create([this,e],this._def)}and(e){return VR.create(this,e,this._def)}
2transform(e){return new YR({...XP(this._def),schema:this,typeName:oF.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new tF({...XP(this._def),innerType:this,defaultValue:t,typeName:oF.ZodDefault})}brand(){return new aF({typeName:oF.ZodBranded,type:this,...XP(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new nF({...XP(this._def),innerType:this,catchValue:t,typeName:oF.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return sF.create(this,e)}readonly(){return iF.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const tR=/^c[^\s-]{8,}$/i,nR=/^[0-9a-z]+$/,rR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,aR=/^[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,sR=/^[a-z0-9_-]{21}$/i,iR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,oR=/^[-+]?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)?)??$/,lR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let cR;const uR=/^(?:(?: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])$/,dR=/^(?:(?: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])$/,hR=/^(([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]))$/,fR=/^(([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])$/,pR=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,mR=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,gR="((\\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])))",yR=new RegExp(`^${gR}$`);function vR(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function bR(e){return new RegExp(`^${vR(e)}$`)}function xR(e){let t=`${gR}T${vR(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 wR(e,t){return!("v4"!==t&&t||!uR.test(e))||!("v6"!==t&&t||!hR.test(e))}function kR(e,t){if(!iR.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,"="),a=JSON.parse(atob(r));return"object"==typeof a&&null!==a&&((!("typ"in a)||"JWT"===(null==a?void 0:a.typ))&&(!!a.alg&&(!t||a.alg===t)))}catch{return!1}}function jR(e,t){return!("v4"!==t&&t||!dR.test(e))||!("v6"!==t&&t||!fR.test(e))}class _R extends eR{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==RP.string){const t=this._getOrReturnCtx(e);
2return $P(t,{code:DP.invalid_type,expected:RP.string,received:t.parsedType}),VP}const t=new UP;let n;for(const r of this._def.checks)if("min"===r.kind)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),$P(n,{code:DP.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("max"===r.kind)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),$P(n,{code:DP.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("length"===r.kind){const a=e.data.length>r.value,s=e.data.length<r.value;(a||s)&&(n=this._getOrReturnCtx(e,n),a?$P(n,{code:DP.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):s&&$P(n,{code:DP.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if("email"===r.kind)lR.test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"email",code:DP.invalid_string,message:r.message}),t.dirty());else if("emoji"===r.kind)cR||(cR=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),cR.test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"emoji",code:DP.invalid_string,message:r.message}),t.dirty());else if("uuid"===r.kind)aR.test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"uuid",code:DP.invalid_string,message:r.message}),t.dirty());else if("nanoid"===r.kind)sR.test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"nanoid",code:DP.invalid_string,message:r.message}),t.dirty());else if("cuid"===r.kind)tR.test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"cuid",code:DP.invalid_string,message:r.message}),t.dirty());else if("cuid2"===r.kind)nR.test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"cuid2",code:DP.invalid_string,message:r.message}),t.dirty());else if("ulid"===r.kind)rR.test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"ulid",code:DP.invalid_string,message:r.message}),t.dirty());else if("url"===r.kind)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),$P(n,{validation:"url",code:DP.invalid_string,message:r.message}),t.dirty()}else if("regex"===r.kind){r.regex.lastIndex=0;r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"regex",code:DP.invalid_string,message:r.message}),t.dirty())}else if("trim"===r.kind)e.data=e.data.trim();else if("includes"===r.kind)e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),$P(n,{code:DP.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty());else if("toLowerCase"===r.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===r.kind)e.data=e.data.toUpperCase();else if("startsWith"===r.kind)e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),$P(n,{code:DP.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty());else if("endsWith"===r.kind)e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),$P(n,{code:DP.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty());else if("datetime"===r.kind){xR(r).test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{code:DP.invalid_string,validation:"datetime",message:r.message}),t.dirty())}else if("date"===r.kind){yR.test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{code:DP.invalid_string,validation:"date",message:r.message}),t.dirty())}else if("time"===r.kind){bR(r).test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{code:DP.invalid_string,validation:"time",message:r.message}),t.dirty())}else"duration"===r.kind?oR.test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"duration",code:DP.invalid_string,message:r.message}),t.dirty()):"ip"===r.kind?wR(e.data,r.version)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"ip",code:DP.invalid_string,message:r.message}),t.dirty()):"jwt"===r.kind?kR(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"jwt",code:DP.invalid_string,message:r.message}),t.dirty()):"cidr"===r.kind?jR(e.data,r.version)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"cidr",code:DP.invalid_string,message:r.message}),t.dirty()):"base64"===r.kind?pR.test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"base64",code:DP.invali
2d_string,message:r.message}),t.dirty()):"base64url"===r.kind?mR.test(e.data)||(n=this._getOrReturnCtx(e,n),$P(n,{validation:"base64url",code:DP.invalid_string,message:r.message}),t.dirty()):IP.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:DP.invalid_string,...ZP.errToObj(n)})}_addCheck(e){return new _R({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ZP.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ZP.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ZP.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ZP.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ZP.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ZP.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ZP.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ZP.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ZP.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ZP.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ZP.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ZP.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ZP.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:(null==e?void 0:e.offset)??!1,local:(null==e?void 0:e.local)??!1,...ZP.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...ZP.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...ZP.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...ZP.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...ZP.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...ZP.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...ZP.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...ZP.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...ZP.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...ZP.errToObj(t)})}nonempty(e){return this.min(1,ZP.errToObj(e))}trim(){return new _R({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new _R({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new _R({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function SR(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}_R.create=e=>new _R({checks:[],typeName:oF.ZodString,coerce:(null==e?void 0:e.coerce)??!1,...XP(e)});class AR extends eR{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==RP.number){const t=this._getOrReturnCtx(e);
2return $P(t,{code:DP.invalid_type,expected:RP.number,received:t.parsedType}),VP}let t;const n=new UP;for(const r of this._def.checks)if("int"===r.kind)IP.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),$P(t,{code:DP.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty());else if("min"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),$P(t,{code:DP.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),$P(t,{code:DP.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else"multipleOf"===r.kind?0!==SR(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),$P(t,{code:DP.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),$P(t,{code:DP.not_finite,message:r.message}),n.dirty()):IP.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ZP.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ZP.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ZP.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ZP.toString(t))}setLimit(e,t,n,r){return new AR({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:ZP.toString(r)}]})}_addCheck(e){return new AR({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ZP.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ZP.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ZP.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ZP.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ZP.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ZP.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:ZP.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ZP.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ZP.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&IP.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}AR.create=e=>new AR({checks:[],typeName:oF.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...XP(e)});class ER extends eR{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==RP.bigint)return this._getInvalidInput(e);let t;const n=new UP;for(const r of this._def.checks)if("min"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),$P(t,{code:DP.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),$P(t,{code:DP.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),$P(t,{code:DP.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):IP.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return $P(t,{code:DP.invalid_type,expected:RP.bigint,received:t.parsedType}),VP}gte(e,t){return this.setLimit("min",e,!0,ZP.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ZP.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ZP.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ZP.toString(t))}setLimit(e,t,n,r){return new ER({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:ZP.toString(r)}]})}_addCheck(e){return new ER({...this._def,checks:[...this._def.checks,e]})}
2positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ZP.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ZP.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ZP.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ZP.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ZP.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ER.create=e=>new ER({checks:[],typeName:oF.ZodBigInt,coerce:(null==e?void 0:e.coerce)??!1,...XP(e)});class NR extends eR{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==RP.boolean){const t=this._getOrReturnCtx(e);return $P(t,{code:DP.invalid_type,expected:RP.boolean,received:t.parsedType}),VP}return WP(e.data)}}NR.create=e=>new NR({typeName:oF.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...XP(e)});class IR extends eR{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==RP.date){const t=this._getOrReturnCtx(e);return $P(t,{code:DP.invalid_type,expected:RP.date,received:t.parsedType}),VP}if(Number.isNaN(e.data.getTime())){return $P(this._getOrReturnCtx(e),{code:DP.invalid_date}),VP}const t=new UP;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),$P(n,{code:DP.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),$P(n,{code:DP.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):IP.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new IR({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:ZP.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:ZP.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}IR.create=e=>new IR({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:oF.ZodDate,...XP(e)});class TR extends eR{_parse(e){if(this._getType(e)!==RP.symbol){const t=this._getOrReturnCtx(e);return $P(t,{code:DP.invalid_type,expected:RP.symbol,received:t.parsedType}),VP}return WP(e.data)}}TR.create=e=>new TR({typeName:oF.ZodSymbol,...XP(e)});class CR extends eR{_parse(e){if(this._getType(e)!==RP.undefined){const t=this._getOrReturnCtx(e);return $P(t,{code:DP.invalid_type,expected:RP.undefined,received:t.parsedType}),VP}return WP(e.data)}}CR.create=e=>new CR({typeName:oF.ZodUndefined,...XP(e)});class OR extends eR{_parse(e){if(this._getType(e)!==RP.null){const t=this._getOrReturnCtx(e);return $P(t,{code:DP.invalid_type,expected:RP.null,received:t.parsedType}),VP}return WP(e.data)}}OR.create=e=>new OR({typeName:oF.ZodNull,...XP(e)});class PR extends eR{constructor(){super(...arguments),this._any=!0}_parse(e){return WP(e.data)}}PR.create=e=>new PR({typeName:oF.ZodAny,...XP(e)});class RR extends eR{constructor(){super(...arguments),this._unknown=!0}_parse(e){return WP(e.data)}}RR.create=e=>new RR({typeName:oF.ZodUnknown,...XP(e)});class FR extends eR{_parse(e){const t=this._getOrReturnCtx(e);return $P(t,{code:DP.invalid_type,expected:RP.never,received:t.parsedType}),VP}}FR.create=e=>new FR({typeName:oF.ZodNever,...XP(e)});class DR extends eR{_parse(e){if(this._getType(e)!==RP.undefined){const t=this._getOrReturnCtx(e);return $P(t,{code:DP.invalid_type,expected:RP.void,received:t.parsedType}),VP}return WP(e.data)}}DR.create=e=>new DR({typeName:oF.ZodVoid,...XP(e)});class LR extends eR{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;
vendor: 4,845 bytes, line 2
2if(t.parsedType!==RP.array)return $P(t,{code:DP.invalid_type,expected:RP.array,received:t.parsedType}),VP;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,a=t.data.length<r.exactLength.value;(e||a)&&($P(t,{code:e?DP.too_big:DP.too_small,minimum:a?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&($P(t,{code:DP.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&($P(t,{code:DP.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new QP(t,e,t.path,n)))).then(e=>UP.mergeArray(n,e));const a=[...t.data].map((e,n)=>r.type._parseSync(new QP(t,e,t.path,n)));return UP.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new LR({...this._def,minLength:{value:e,message:ZP.toString(t)}})}max(e,t){return new LR({...this._def,maxLength:{value:e,message:ZP.toString(t)}})}length(e,t){return new LR({...this._def,exactLength:{value:e,message:ZP.toString(t)}})}nonempty(e){return this.min(1,e)}}function MR(e){if(e instanceof zR){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=XR.create(MR(r))}return new zR({...e._def,shape:()=>t})}return e instanceof LR?new LR({...e._def,type:MR(e.element)}):e instanceof XR?XR.create(MR(e.unwrap())):e instanceof eF?eF.create(MR(e.unwrap())):e instanceof BR?BR.create(e.items.map(e=>MR(e))):e}LR.create=(e,t)=>new LR({type:e,minLength:null,maxLength:null,exactLength:null,typeName:oF.ZodArray,...XP(t)});class zR extends eR{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=IP.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==RP.object){const t=this._getOrReturnCtx(e);return $P(t,{code:DP.invalid_type,expected:RP.object,received:t.parsedType}),VP}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof FR&&"strip"===this._def.unknownKeys))for(const o in n.data)a.includes(o)||s.push(o);const i=[];for(const o of a){const e=r[o],t=n.data[o];i.push({key:{status:"valid",value:o},value:e._parse(new QP(n,t,n.path,o)),alwaysSet:o in n.data})}if(this._def.catchall instanceof FR){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of s)i.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)s.length>0&&($P(n,{code:DP.unrecognized_keys,keys:s}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of s){const r=n.data[t];i.push({key:{status:"valid",value:t},value:e._parse(new QP(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of i){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>UP.mergeObjectSync(t,e)):UP.mergeObjectSync(t,i)}get shape(){return this._def.shape()}strict(e){return ZP.errToObj,new zR({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,a;const s=(null==(a=(r=this._def).errorMap)?void 0:a.call(r,t,n).message)??n.defaultError;return"unrecognized_keys"===t.code?{message:ZP.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new zR({...this._def,unknownKeys:"strip"})}passthrough(){return new zR({...this._def,unknownKeys:"passthrough"})}extend(e){return new zR({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new zR({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:oF.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new zR({...this._def,catchall:e})}pick(e){const t={};for(const n of IP.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new zR({...this._def,shape:()=>t})}omit(e){const t={};for(const n of IP.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new zR({...this._def,shape:()=>t})}deepPartial(){return MR(this)}partial(e){const t={};for(const n of IP.objectKeys(this.shape)){const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new zR({...this._def,shape:()=>t})}required(e){const t={};for(const n of IP.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof XR;)e=e._def.innerType;t[n]=e}return new zR({...this._def,shape:()=>t})}keyof(){return GR(IP.objectKeys(this.shape))}}zR.create=(e,t)=>
2new zR({shape:()=>e,unknownKeys:"strip",catchall:FR.create(),typeName:oF.ZodObject,...XP(t)}),zR.strictCreate=(e,t)=>new zR({shape:()=>e,unknownKeys:"strict",catchall:FR.create(),typeName:oF.ZodObject,...XP(t)}),zR.lazycreate=(e,t)=>new zR({shape:e,unknownKeys:"strip",catchall:FR.create(),typeName:oF.ZodObject,...XP(t)});class $R extends eR{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map(e=>new LP(e.ctx.common.issues));return $P(t,{code:DP.invalid_union,unionErrors:n}),VP});{let e;const r=[];for(const s of n){const n={...t,common:{...t.common,issues:[]},parent:null},a=s._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const a=r.map(e=>new LP(e));return $P(t,{code:DP.invalid_union,unionErrors:a}),VP}}get options(){return this._def.options}}function UR(e,t){const n=FP(e),r=FP(t);if(e===t)return{valid:!0,data:e};if(n===RP.object&&r===RP.object){const n=IP.objectKeys(t),r=IP.objectKeys(e).filter(e=>-1!==n.indexOf(e)),a={...e,...t};for(const s of r){const n=UR(e[s],t[s]);if(!n.valid)return{valid:!1};a[s]=n.data}return{valid:!0,data:a}}if(n===RP.array&&r===RP.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const a=UR(e[r],t[r]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}return n===RP.date&&r===RP.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}$R.create=(e,t)=>new $R({options:e,typeName:oF.ZodUnion,...XP(t)});class VR extends eR{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(qP(e)||qP(r))return VP;const a=UR(e.value,r.value);return a.valid?((KP(e)||KP(r))&&t.dirty(),{status:t.value,value:a.data}):($P(n,{code:DP.invalid_intersection_types}),VP)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}VR.create=(e,t,n)=>new VR({left:e,right:t,typeName:oF.ZodIntersection,...XP(n)});class BR extends eR{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==RP.array)return $P(n,{code:DP.invalid_type,expected:RP.array,received:n.parsedType}),VP;if(n.data.length<this._def.items.length)return $P(n,{code:DP.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),VP;!this._def.rest&&n.data.length>this._def.items.length&&($P(n,{code:DP.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new QP(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>UP.mergeArray(t,e)):UP.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new BR({...this._def,rest:e})}}BR.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new BR({items:e,typeName:oF.ZodTuple,rest:null,...XP(t)})};class WR extends eR{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==RP.map)return $P(n,{code:DP.invalid_type,expected:RP.map,received:n.parsedType}),VP;const r=this._def.keyType,a=this._def.valueType,s=[...n.data.entries()].map(([e,t],s)=>({key:r._parse(new QP(n,e,n.path,[s,"key"])),value:a._parse(new QP(n,t,n.path,[s,"value"]))}));if(n.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const n of s){const r=await n.key,a=await n.value;if("aborted"===r.status||"aborted"===a.status)return VP;"dirty"!==r.status&&"dirty"!==a.status||t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}})}{const e=new Map;for(const n of s){const r=n.key,a=n.value;if("aborted"===r.status||"aborted"===a.status)return VP;"dirty"!==r.status&&"dirty"!==a.status||t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}}}
2WR.create=(e,t,n)=>new WR({valueType:t,keyType:e,typeName:oF.ZodMap,...XP(n)});class qR extends eR{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==RP.set)return $P(n,{code:DP.invalid_type,expected:RP.set,received:n.parsedType}),VP;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&($P(n,{code:DP.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&($P(n,{code:DP.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const a=this._def.valueType;function s(e){const n=new Set;for(const r of e){if("aborted"===r.status)return VP;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const i=[...n.data.values()].map((e,t)=>a._parse(new QP(n,e,n.path,t)));return n.common.async?Promise.all(i).then(e=>s(e)):s(i)}min(e,t){return new qR({...this._def,minSize:{value:e,message:ZP.toString(t)}})}max(e,t){return new qR({...this._def,maxSize:{value:e,message:ZP.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}qR.create=(e,t)=>new qR({valueType:e,minSize:null,maxSize:null,typeName:oF.ZodSet,...XP(t)});class KR extends eR{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}KR.create=(e,t)=>new KR({getter:e,typeName:oF.ZodLazy,...XP(t)});class HR extends eR{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return $P(t,{received:t.data,code:DP.invalid_literal,expected:this._def.value}),VP}return{status:"valid",value:e.data}}get value(){return this._def.value}}function GR(e,t){return new ZR({values:e,typeName:oF.ZodEnum,...XP(t)})}HR.create=(e,t)=>new HR({value:e,typeName:oF.ZodLiteral,...XP(t)});class ZR extends eR{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return $P(t,{expected:IP.joinValues(n),received:t.parsedType,code:DP.invalid_type}),VP}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return $P(t,{received:t.data,code:DP.invalid_enum_value,options:n}),VP}return WP(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ZR.create(e,{...this._def,...t})}exclude(e,t=this._def){return ZR.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ZR.create=GR;class JR extends eR{_parse(e){const t=IP.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==RP.string&&n.parsedType!==RP.number){const e=IP.objectValues(t);return $P(n,{expected:IP.joinValues(e),received:n.parsedType,code:DP.invalid_type}),VP}if(this._cache||(this._cache=new Set(IP.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=IP.objectValues(t);return $P(n,{received:n.data,code:DP.invalid_enum_value,options:e}),VP}return WP(e.data)}get enum(){return this._def.values}}JR.create=(e,t)=>new JR({values:e,typeName:oF.ZodNativeEnum,...XP(t)});class QR extends eR{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==RP.promise&&!1===t.common.async)return $P(t,{code:DP.invalid_type,expected:RP.promise,received:t.parsedType}),VP;const n=t.parsedType===RP.promise?t.data:Promise.resolve(t.data);return WP(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}QR.create=(e,t)=>new QR({type:e,typeName:oF.ZodPromise,...XP(t)});class YR extends eR{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===oF.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,a={addIssue:e=>{$P(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===r.type){const e=r.transform(n.data,a);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return VP;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?VP:"dirty"===r.status||"dirty"===t.value?BP(r.value):r});{if("aborted"===t.value)return VP;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?VP:"dirty"===r.status||"dirty"===t.value?BP(r.value):r}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,a);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?VP:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?VP:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!HP(e))return VP;const s=r.transform(e.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>HP(e)?Promise.resolve(r.transform(e.value,a)).then(e=>({status:t.value,value:e})):VP)}IP.assertNever(r)}}
2YR.create=(e,t,n)=>new YR({schema:e,typeName:oF.ZodEffects,effect:t,...XP(n)}),YR.createWithPreprocess=(e,t,n)=>new YR({schema:t,effect:{type:"preprocess",transform:e},typeName:oF.ZodEffects,...XP(n)});class XR extends eR{_parse(e){return this._getType(e)===RP.undefined?WP(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}XR.create=(e,t)=>new XR({innerType:e,typeName:oF.ZodOptional,...XP(t)});class eF extends eR{_parse(e){return this._getType(e)===RP.null?WP(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eF.create=(e,t)=>new eF({innerType:e,typeName:oF.ZodNullable,...XP(t)});class tF extends eR{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===RP.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}tF.create=(e,t)=>new tF({innerType:e,typeName:oF.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...XP(t)});class nF extends eR{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return GP(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new LP(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new LP(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}nF.create=(e,t)=>new nF({innerType:e,typeName:oF.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...XP(t)});class rF extends eR{_parse(e){if(this._getType(e)!==RP.nan){const t=this._getOrReturnCtx(e);return $P(t,{code:DP.invalid_type,expected:RP.nan,received:t.parsedType}),VP}return{status:"valid",value:e.data}}}rF.create=e=>new rF({typeName:oF.ZodNaN,...XP(e)});class aF extends eR{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class sF extends eR{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?VP:"dirty"===e.status?(t.dirty(),BP(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?VP:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new sF({in:e,out:t,typeName:oF.ZodPipeline})}}class iF extends eR{_parse(e){const t=this._def.innerType._parse(e),n=e=>(HP(e)&&(e.value=Object.freeze(e.value)),e);return GP(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}var oF,lF;iF.create=(e,t)=>new iF({innerType:e,typeName:oF.ZodReadonly,...XP(t)}),zR.lazycreate,(lF=oF||(oF={})).ZodString="ZodString",lF.ZodNumber="ZodNumber",lF.ZodNaN="ZodNaN",lF.ZodBigInt="ZodBigInt",lF.ZodBoolean="ZodBoolean",lF.ZodDate="ZodDate",lF.ZodSymbol="ZodSymbol",lF.ZodUndefined="ZodUndefined",lF.ZodNull="ZodNull",lF.ZodAny="ZodAny",lF.ZodUnknown="ZodUnknown",lF.ZodNever="ZodNever",lF.ZodVoid="ZodVoid",lF.ZodArray="ZodArray",lF.ZodObject="ZodObject",lF.ZodUnion="ZodUnion",lF.ZodDiscriminatedUnion="ZodDiscriminatedUnion",lF.ZodIntersection="ZodIntersection",lF.ZodTuple="ZodTuple",lF.ZodRecord="ZodRecord",lF.ZodMap="ZodMap",lF.ZodSet="ZodSet",lF.ZodFunction="ZodFunction",lF.ZodLazy="ZodLazy",lF.ZodLiteral="ZodLiteral",lF.ZodEnum="ZodEnum",lF.ZodEffects="ZodEffects",lF.ZodNativeEnum="ZodNativeEnum",lF.ZodOptional="ZodOptional",lF.ZodNullable="ZodNullable",lF.ZodDefault="ZodDefault",lF.ZodCatch="ZodCatch",lF.ZodPromise="ZodPromise",lF.ZodBranded="ZodBranded",lF.ZodPipeline="ZodPipeline",lF.ZodReadonly="ZodReadonly";const cF=_R.create;FR.create,LR.create;const uF=zR.create;zR.strictCreate,$R.create,VR.create,BR.create,ZR.create,QR.create,XR.create,eF.create;const dF=Y.forwardRef(({className:e,type:t,...n},r)=>ve.jsx("input",{type:t,className:Jm("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
2ing-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));dF.displayName="Input";var hF=Y.forwardRef((e,t)=>ve.jsx(Ph.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null==(n=e.onMouseDown)||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));hF.displayName="Label";var fF=hF;const pF=dp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),mF=Y.forwardRef(({className:e,...t},n)=>ve.jsx(fF,{ref:n,className:Jm(pF(),e),...t}));mF.displayName=fF.displayName;const gF=e=>{const{children:t,...n}=e;return ae.createElement(IO.Provider,{value:n},t)},yF=Y.createContext({}),vF=({...e})=>ve.jsx(yF.Provider,{value:{name:e.name},children:ve.jsx($O,{...e})}),bF=()=>{const e=Y.useContext(yF),t=Y.useContext(xF),{getFieldState:n,formState:r}=TO(),a=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...a}},xF=Y.createContext({}),wF=Y.forwardRef(({className:e,...t},n)=>{const r=Y.useId();return ve.jsx(xF.Provider,{value:{id:r},children:ve.jsx("div",{ref:n,className:Jm("space-y-2",e),...t})})});wF.displayName="FormItem";const kF=Y.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:a}=bF();return ve.jsx(mF,{ref:n,className:Jm(r&&"text-destructive",e),htmlFor:a,...t})});kF.displayName="FormLabel";const jF=Y.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:a,formMessageId:s}=bF();return ve.jsx(Nh,{ref:t,id:r,"aria-describedby":n?`${a} ${s}`:`${a}`,"aria-invalid":!!n,...e})});jF.displayName="FormControl";Y.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=bF();return ve.jsx("p",{ref:n,id:r,className:Jm("text-sm text-muted-foreground",e),...t})}).displayName="FormDescription";const _F=Y.forwardRef(({className:e,children:t,...n},r)=>{const{error:a,formMessageId:s}=bF(),i=a?String(null==a?void 0:a.message):t;return i?ve.jsx("p",{ref:r,id:s,className:Jm("text-sm font-medium text-destructive",e),...n,children:i}):null});_F.displayName="FormMessage";var SF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},AF=ae.createContext&&ae.createContext(SF),EF=["attr","size","title"];function NF(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function IF(){return IF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IF.apply(this,arguments)}function TF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TF(Object(n),!0).forEach(function(t){OF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function OF(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PF(e){return e&&e.map((e,t)=>ae.createElement(e.tag,CF({key:t},e.attr),PF(e.child)))}function RF(e){return t=>ae.createElement(FF,IF({attr:CF({},e.attr)},t),PF(e.child))}function FF(e){var t=t=>{var n,{attr:r,size:a,title:s}=e,i=NF(e,EF),o=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),ae.createElement("svg",IF({stroke:"currentColor",fill:"
2currentColor",strokeWidth:"0"},t.attr,r,i,{className:n,style:CF(CF({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&ae.createElement("title",null,s),e.children)};return void 0!==AF?ae.createElement(AF.Consumer,null,e=>t(e)):t(SF)}function DF(e){return RF({tag:"svg",attr:{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12\r\n\tc0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24\r\n\tc0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"},child:[]},{tag:"path",attr:{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657\r\n\tC34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"},child:[]},{tag:"path",attr:{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36\r\n\tc-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"},child:[]},{tag:"path",attr:{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571\r\n\tc0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"},child:[]}]})(e)}var LF="horizontal",MF=["horizontal","vertical"],zF=Y.forwardRef((e,t)=>{const{decorative:n,orientation:r=LF,...a}=e,s=function(e){return MF.includes(e)}(r)?r:LF,i=n?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"};return ve.jsx(Ph.div,{"data-orientation":s,...i,...a,ref:t})});zF.displayName="Separator";var $F=zF;const UF=Y.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},a)=>ve.jsx($F,{ref:a,decorative:n,orientation:t,className:Jm("shrink-0 bg-border","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",e),...r}));UF.displayName=$F.displayName;const VF=uF({email:cF().email("Please enter a valid email address"),password:cF().min(6,"Password must be at least 6 characters")});function BF(){const[e,t]=Y.useState(!1),{toast:n}=Rk(),[,r]=fh(),a=_P({resolver:PP(VF),defaultValues:{email:"",password:""}});return ve.jsxs("div",{className:"space-y-6",children:[ve.jsxs(sg,{variant:"outline",onClick:async()=>{try{await mk()}catch(e){n({variant:"destructive",title:"Error",description:e.message||"Failed to sign in with Google. Please try again."})}},className:"w-full flex items-center justify-center gap-2",disabled:e,children:[ve.jsx(DF,{className:"h-5 w-5"}),"Sign in with Google"]}),ve.jsxs("div",{className:"relative",children:[ve.jsx("div",{className:"absolute inset-0 flex items-center",children:ve.jsx(UF,{})}),ve.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:ve.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with"})})]}),ve.jsx(gF,{...a,children:ve.jsxs("form",{onSubmit:a.handleSubmit(async function(e){t(!0);try{await pk(e),n({title:"Success",description:"You have been signed in successfully."}),setTimeout(()=>{r("/"),setTimeout(()=>{window.location.pathname.startsWith("/auth")&&(window.location.href="/")},200)},100)}catch(a){n({variant:"destructive",title:"Error",description:a.message||"Failed to sign in. Please try again."})}finally{t(!1)}}),className:"space-y-4",children:[ve.jsx(vF,{control:a.control,name:"email",render:({field:e})=>ve.jsxs(wF,{children:[ve.jsx(kF,{children:"Email"}),ve.jsx(jF,{children:ve.jsx(dF,{placeholder:"Enter your email",type:"email",...e})}),ve.jsx(_F,{})]})}),ve.jsx(vF,{control:a.control,name:"password",render:({field:e})=>ve.jsxs(wF,{children:[ve.jsx(kF,{children:"Password"}),ve.jsx(jF,{children:ve.jsx(dF,{placeholder:"Enter your password",type:"password",...e})}),ve.jsx(_F,{})]})}),ve.jsx(sg,{type:"submit",className:"w-full",disabled:e,children:e?ve.jsxs(ve.Fragment,{children:[ve.jsx(Lp,{className:"mr-2 h-4 w-4 animate-spin"}),"Signing in..."]}):"Sign In"})]})}),ve.jsx("div",{className:"mt-4 text-center",children:ve.jsx(sg,{variant:"link",className:"text-sm text-muted-foreground hover:text-primary p-0 h-auto",onClick:()=>r("/auth/forgot-password"),children:"Forgot your password?"})})]})}const WF=uF({email:cF().email("Please enter a valid email address"),password:cF().min(6,"Password must be at least 6 characters"),fullName:cF().min(2,"Full name must be at least 2 characters")});function qF(){const[e,t]=Y.useState(!1),[n,r]=Y.useState("form"),[a,s]=Y.useState(""),[i,o]=Y.useState(""),[l,c]=Y.useState(!1),[u,d]=Y.useState(0),[h,f]=Y.useState(0),{toast:p}=Rk(),[,m]=fh(),g=_P({resolver:PP(WF),defaultValues:{email:"",password:"",fullName:""}});function y(){r("form"),s(""),o(""),f(0),d(0),g.reset()}async function v(){if(!(u>0||h>=3)){c(!0);try{await yk(a),f(e=>e+1),d(60),p({title:"Verification Code Resent!",description:"Please check your email for the new 6-digit verification code."})}catch(e){console.error("Resend OTP error:",e),p({variant:"destructive",title:"Failed to Resend Code",description:e.message||"Please try again in a moment."})}finally{c(!1)}}}async function b(){if(i&&6===i.length){t(!0);try{await gk({email:a,token:i}),r("success"),p({title:"Account Verified!",description:"Your account has been successfully created and verified."})}catch(e){p({variant:"destructive",title:"Verification Failed",description:e.message||"Invalid or expired verification code."})}finally{t(!1)}}else p({variant:"destructive",title:"Invalid Code",description:"Please enter the 6-digit verification code."})}async function x(){t(!0);try{await vk(a),p({title:"Magic Link Sent!",description:"Check your email for an instant login link."})}catch(e){p({variant:"destructive",title:"Failed to Send Magic Link",description:e.message||"Please try again."})}finally{t(!1)}}Y.useEffect(()=>{let e;return u>0&&(e=setInterval(()=>{d(e=>e-1)},1e3)),()=>clearInterval(e)},[u]);const w=()=>{const e=(e=>{var t;const n=null==(t=e.split("@")[1])?void 0:t.toLowerCase();return(null==n?void 0:n.includes("gmail"))?{name:"Gmail",url:"https://gmail.com"}:(null==n?void 0:n.includes("outlook"))||(null==n?void 0:n.includes("hotmail"))||(null==n?void 0:n.includes("live"))?{name:"Outlook",url:"https://outlook.live.com"}:(null==n?void 0:n.includes("yahoo"))?{name:"Yahoo",url:"https://mail.yahoo.com"}:(null==n?void 0:n.includes("icloud"))||(null==n?void 0:n.includes("me.com"))?{name:"iCloud",url:"https://icloud.com/mail"}:{name:"Email",url:`https://${n}`}})(a);return ve.jsxs("div",{className:"text-center space-y-4",children:[ve.jsx("div",{className:"flex justify-center",children:ve.jsx(Ep,{className:"h-16 w-16 text-green-500"})}),ve.jsxs("div",{children:[ve.jsx("h3",{className:"text-lg font-semibold text-green-700",children:"Account Created Successfully!"}),ve.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["We've sent a confirmation email to",ve.jsx("br",{}),ve.jsx("strong",{children:a})]})]}),ve.jsxs("div",{className:"space-y-2",children:[ve.jsxs(sg,{onClick:()=>window.open(e.url,"_blank"),className:"w-full bg-luxury-purple hover:bg-luxury-purple/90",children:[ve.jsx($p,{className:"h-4 w-4 mr-2"}),"Check ",e.name]}),ve.jsx(sg,{variant:"outline",onClick:()=>m("/auth/sign-in"),className:"w-full",children:"Go to Login"})]}),ve.jsxs("p",{className:"text-xs text-muted-foreground",children:["Didn't receive the email? Check your spam folder or"," ",ve.jsx("button",{onClick:y,className:"text-luxury-purple hover:underline",children:"try again"})]})]})},k=()=>ve.jsxs("div",{className:"text-center space-y-4",children:[ve.jsx("div",{className:"flex justify-center",children:ve.jsx(Ap,{className:"h-16 w-16 text-amber-500"})}),ve.jsxs("div",{children:[ve.jsx("h3",{className:"text-lg font-semibold text-amber-700",children:"This email is already in use"}),ve.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:[ve.jsx("strong",{children:a})," already has an account with us."]}),ve.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Would you like to log in instead?"})]}),ve.jsxs("div",{className:"space-y-2",children:[ve.jsx(sg,{onClick:x,className:"w-full bg-luxury-purple hover:bg-luxury-purple/90",disabled:e,children:e?ve.jsxs(ve.Fragment,{children:[ve.jsx(Lp,{className:"h-4 w-4 mr-2 animate-spin"}),"Sending Magic Link..."]}):ve.jsxs(ve.Fragment,{children:[ve.jsx($p,{className:"h-4 w-4 mr-2"}),"Send Instant Login Link"]})}),ve.jsx(sg,{variant:"outline",onClick:()=>m("/auth/forgot-password"),className:"w-full",children:"Reset Password"}),ve.jsx(sg,{variant:"ghost",onClick:()=>m("/auth/sign-in"),className:"w-full",children:"Go to Login Page"})]}),ve.jsx("p",{className:"text-xs text-muted-foreground",children:ve.jsx("button",{onClick:y,className:"text-luxury-purple hover:underline",children:"Use a different email instead"})})]}),j=()=>ve.jsxs("div",{className:"text-center space-y-4",children:[ve.jsx("div",{className:"flex justify-center",children:ve.jsx($p,{className:"h-16 w-16 text-luxury-purple"})}),ve.jsxs("div",{children:[ve.jsx("h3",{className:"text-lg font-semibold text-gray-800",children:"Verify Your Email"}),ve.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["We've sent a 6-digit verification code to",ve.jsx("br",{}),ve.jsx("strong",{children:a})]})]}),ve.jsxs("div",{className:"space-y-4",children:[ve.jsx("div",{children:ve.jsx(dF,{value:i,onChange:e=>o(e.target.value.replace(/\D/g,"").slice(0,6)),placeholder:"Enter 6-digit code",className:"text-center text-lg tracking-widest",maxLength:6})}),ve.jsx(sg,{onClick:b,className:"w-full bg-luxury-purple hover:bg-luxury-purple/90",disabled:e||6!==i.length,children:e?ve.jsxs(ve.Fragment,{children:[ve.jsx(Lp,{className:"h-4 w-4 mr-2 animate-spin"}),"Verifying..."]}):"Verify Account"})]}),ve.jsxs("div",{className:"space-y-2",children:[ve.jsx(sg,{variant:"outline",onClick:v,disabled:u>0||h>=3||l,className:"w-full",size:"sm",children:l?ve.jsxs(ve.Fragment,{children:[ve.jsx(Lp,{className:"h-4 w-4 mr-2 animate-spin"}),"Sending..."]}):u>0?`Resend Code in ${u}s`:h>=3?"Max Resend Attempts Reached":"Resend Verification Code"}),h>0&&h<3&&ve.jsxs("p",{className:"text-xs text-muted-foreground",children:["Resend attempts: ",h,"/3"]})]}),ve.jsxs("p",{className:"text-xs text-muted-foreground",children:["Still having trouble?"," ",ve.jsx("button",{onClick:y,className:"text-luxury-purple hover:underline",children:"Try a different email"})]})]});return"success"===n?ve.jsx(w,{}):"user-exists"===n?ve.jsx(k,{}):"otp-verification"===n?ve.jsx(j,{}):ve.jsxs("div",{className:"space-y-6",children:[ve.jsxs(sg,{variant:"outline",onClick:async()=>{try{await mk()}catch(e){p({variant:"destructive",title:"Error",description:e.message||"Failed to sign up with Google. Please try again."})}},className:"w-full flex items-center justify-center gap-2",disabled:e,children:[ve.jsx(DF,{className:"h-5 w-5"}),"Sign up with Google"]}),ve.jsxs("div",{className:"relative",children:[ve.jsx("div",{className:"absolute inset-0 flex items-center",children:ve.jsx(UF,{})}),ve.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:ve.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with"})})]}),ve.jsx(gF,{...g,children:ve.jsxs("form",{onSubmit:g.handleSubmit(async function(e){var n,a,i,o,l;t(!0);try{await fk(e);s(e.email),r("otp-verification"),d(60),p({title:"Verification Code Sent!",description:"Please check your email for the 6-digit verification code."})}catch(c){c.message,c.status,c.code;
2const t=c.message||"Failed to sign up. Please try again.";c.code;(null==(n=c.message)?void 0:n.includes("User already registered"))||(null==(a=c.message)?void 0:a.includes("already been registered"))||(null==(i=c.message)?void 0:i.includes("email address is already registered"))||(null==(o=c.message)?void 0:o.includes("already registered"))||(null==(l=c.message)?void 0:l.includes("user_already_exists"))||"user_already_exists"===c.code||"email_already_exists"===c.code?(s(e.email),r("user-exists")):p({variant:"destructive",title:"Registration Failed",description:t})}finally{t(!1)}}),className:"space-y-4",children:[ve.jsx(vF,{control:g.control,name:"fullName",render:({field:e})=>ve.jsxs(wF,{children:[ve.jsx(kF,{children:"Full Name"}),ve.jsx(jF,{children:ve.jsx(dF,{placeholder:"Enter your full name",...e})}),ve.jsx(_F,{})]})}),ve.jsx(vF,{control:g.control,name:"email",render:({field:e})=>ve.jsxs(wF,{children:[ve.jsx(kF,{children:"Email"}),ve.jsx(jF,{children:ve.jsx(dF,{placeholder:"Enter your email",type:"email",...e})}),ve.jsx(_F,{})]})}),ve.jsx(vF,{control:g.control,name:"password",render:({field:e})=>ve.jsxs(wF,{children:[ve.jsx(kF,{children:"Password"}),ve.jsx(jF,{children:ve.jsx(dF,{placeholder:"Enter your password",type:"password",...e})}),ve.jsx(_F,{})]})}),ve.jsx(sg,{type:"submit",className:"w-full",disabled:e,children:e?ve.jsxs(ve.Fragment,{children:[ve.jsx(Lp,{className:"mr-2 h-4 w-4 animate-spin"}),"Signing up..."]}):"Sign Up"})]})})]})}function KF({defaultTab:e="sign-in"}){const[t,n]=Y.useState(e);return Y.useEffect(()=>{n(e)},[e]),ve.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4 relative z-[100]",children:ve.jsxs(mC,{className:"w-full max-w-md relative z-[100]",children:[ve.jsxs(gC,{className:"space-y-1",children:[ve.jsx(yC,{className:"text-2xl font-bold tracking-tight",children:"Welcome to FaceAura AI"}),ve.jsx(vC,{children:"sign-in"===t?"Sign in to your account to continue":"Create an account to get started"})]}),ve.jsx(bC,{children:ve.jsxs(GC,{value:t,onValueChange:e=>n(e),children:[ve.jsxs(ZC,{className:"grid w-full grid-cols-2",children:[ve.jsx(JC,{value:"sign-in",children:"Sign In"}),ve.jsx(JC,{value:"sign-up",children:"Sign Up"})]}),ve.jsx(QC,{value:"sign-in",children:ve.jsx(BF,{})}),ve.jsx(QC,{value:"sign-up",children:ve.jsx(qF,{})})]})})]})})}function HF(){const[,e]=fh(),{toast:t}=Rk();return Y.useEffect(()=>{(async()=>{try{const{data:n,error:r}=await hk.auth.getSession();if(r)return console.error("Auth callback error:",r),t({title:"Authentication Error",description:"There was an issue signing you in. Please try again.",variant:"destructive"}),void e("/auth/sign-in");n.session?(t({title:"Welcome!",description:"You have been successfully signed in."}),e("/")):e("/auth/sign-in")}catch(n){console.error("Unexpected auth error:",n),t({title:"Something went wrong",description:"Please try signing in again.",variant:"destructive"}),e("/auth/sign-in")}})()},[e,t]),ve.jsx("div",{className:"min-h-screen flex items-center justify-center",children:ve.jsxs("div",{className:"text-center",children:[ve.jsx(Lp,{className:"h-8 w-8 animate-spin text-primary mx-auto mb-4"}),ve.jsx("p",{className:"text-muted-foreground",children:"Completing sign in..."})]})})}const GF=uF({email:cF().email("Please enter a valid email address")});function ZF(){const[e,t]=Y.useState(!1),[n,r]=Y.useState(!1),{toast:a}=Rk(),[,s]=fh(),i=_P({resolver:PP(GF),defaultValues:{email:""}});return n?ve.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:ve.jsxs(mC,{className:"w-full max-w-md",children:[ve.jsxs(gC,{className:"text-center space-y-2",children:[ve.jsx("div",{className:"mx-auto w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mb-4",children:ve.jsx($p,{className:"h-6 w-6 text-green-600"})}),ve.jsx(yC,{className:"text-2xl font-bold",children:"Check your email"}),ve.jsx(vC,{children:"We've sent password reset instructions to your email address."})]}),ve.jsx(bC,{className:"space-y-4",children:ve.jsxs(sg,{variant:"outline",className:"w-full",onClick:()=>s("/auth/sign-in"),children:[ve.jsx(yp,{className:"mr-2 h-4 w-4"}),"Back to sign in"]})})]})}):ve.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:ve.jsxs(mC,{className:"w-full max-w-md",children:[ve.jsxs(gC,{className:"space-y-1",children:[ve.jsx(yC,{className:"text-2xl font-bold tracking-tight",children:"Reset your password"}),ve.jsx(vC,{children:"Enter your email address and we'll send you a link to reset your password."})]}),ve.jsxs(bC,{children:[ve.jsx(gF,{...i,children:ve.jsxs("form",{onSubmit:i.handleSubmit(async function(e){t(!0);try{const{error:t}=await hk.auth.resetPasswordForEmail(e.email,{redirectTo:`${window.location.origin}/auth/reset-password`});if(t)throw t;r(!0),a({title:"Reset email sent",description:"Please check your email for password reset instructions."})}catch(n){a({variant:"destructive",title:"Error",description:n.message||"Failed to send reset email. Please try again."})}finally{t(!1)}}),className:"space-y-4",children:[ve.jsx(vF,{control:i.control,name:"email",render:({field:e})=>ve.jsxs(wF,{children:[ve.jsx(kF,{children:"Email"}
2),ve.jsx(jF,{children:ve.jsx(dF,{placeholder:"Enter your email",type:"email",...e})}),ve.jsx(_F,{})]})}),ve.jsx(sg,{type:"submit",className:"w-full",disabled:e,children:e?ve.jsxs(ve.Fragment,{children:[ve.jsx(Lp,{className:"mr-2 h-4 w-4 animate-spin"}),"Sending reset email..."]}):"Send reset email"})]})}),ve.jsx("div",{className:"mt-6",children:ve.jsxs(sg,{variant:"ghost",className:"w-full",onClick:()=>s("/auth/sign-in"),children:[ve.jsx(yp,{className:"mr-2 h-4 w-4"}),"Back to sign in"]})})]})]})})}const JF="faceaura_language_preference",QF="faceaura_language_modal_dismissed",YF={es:"es","es-ES":"es","es-MX":"es","es-AR":"es","es-CL":"es","es-CO":"es","es-PE":"es","es-VE":"es",hi:"hi","hi-IN":"hi",en:"en","en-US":"en","en-GB":"en","en-CA":"en","en-AU":"en",de:"de","de-DE":"de","de-AT":"de","de-CH":"de",fil:"fil","fil-PH":"fil",tl:"fil","tl-PH":"fil",fr:"fr","fr-FR":"fr","fr-CA":"fr","fr-BE":"fr","fr-CH":"fr"},XF=["en","es","hi","de","fil","fr"],eD={es:{title:"¿Español?",question:"¿Quieres ver esta página en Español?",switchButton:"Ver en Español",stayButton:"Stay in English"},hi:{title:"हिनà¥à¤¦à¥?",question:"à¤à¥à¤¯à¤¾ à¤à¤ª à¤à¤¸ पà¥à¤ à¤à¥ हिनà¥à¤¦à¥ मà¥à¤ दà¥à¤à¤¨à¤¾ à¤à¤¾à¤¹à¤¤à¥ हà¥à¤?",switchButton:"हिनà¥à¤¦à¥ मà¥à¤ दà¥à¤à¥à¤",stayButton:"Stay in English"},en:{title:"English?",question:"Would you like to view this page in English?",switchButton:"View in English",stayButton:"Stay"}},tD=({isOpen:e,detectedLanguage:t,onAccept:n,onDismiss:r})=>{const a=eD[t];return a&&e?ve.jsxs(ve.Fragment,{children:[ve.jsx("div",{className:"fixed inset-0 bg-black/50 z-50",onClick:r}),ve.jsx("div",{className:"fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-50 w-full max-w-md",children:ve.jsxs("div",{className:"bg-white rounded-lg shadow-xl p-6 mx-4 relative",children:[ve.jsx(sg,{variant:"ghost",size:"sm",onClick:r,className:"absolute right-3 top-3 h-9 w-9 p-0 opacity-60 hover:opacity-100 transition-opacity rounded-full",children:ve.jsx(em,{className:"h-5 w-5"})}),ve.jsxs("div",{className:"flex items-center gap-3 mb-4 pr-10",children:[ve.jsx(Pp,{className:"h-6 w-6 text-purple-600"}),ve.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:a.title})]}),ve.jsx("p",{className:"text-base font-normal text-gray-600 mb-6",children:a.question}),ve.jsxs("div",{className:"flex flex-col gap-3",children:[ve.jsx(sg,{onClick:n,className:"w-full bg-purple-600 hover:bg-purple-700 text-white font-medium py-3",children:a.switchButton}),ve.jsx(sg,{onClick:r,variant:"outline",className:"w-full font-medium py-3",children:a.stayButton})]})]})})]}):null},nD=()=>(Y.useState(!1),Y.useState("es"),null);function rD({children:e}){const{i18n:t,ready:n}=le(),[r,a]=Y.useState(!1),[s,i]=Y.useState("en"),{shouldShowLanguageModal:o,detectedLanguage:l,dismissModal:c,acceptLanguage:u}=(()=>{const[e,t]=Y.useState(!1),[n,r]=Y.useState(null),{currentLocale:a,changeLanguage:s}=hN();return Y.useEffect(()=>{const e=setTimeout(()=>{const e=localStorage.getItem(JF),n=localStorage.getItem(QF);if(e||n)return;const s=navigator.languages||[navigator.language];let i=null;for(const t of s){if(YF[t]){i=YF[t];break}const e=t.split("-")[0];if(YF[e]){i=YF[e];break}}JSON.stringify(s),i&&i!==a&&XF.includes(i)&&(r(i),t(!0))},500);return()=>clearTimeout(e)},[a]),{shouldShowLanguageModal:e,detectedLanguage:n,dismissModal:()=>{t(!1),localStorage.setItem(QF,"true")},acceptLanguage:e=>{t(!1),localStorage.setItem(JF,e),s(e)}}})();return Y.useEffect(()=>{},[o,l]),Y.useEffect(()=>{n&&t.isInitialized&&(a(!0),i(t.language))},[n,t.isInitialized]),Y.useEffect(()=>{const e=e=>{i(e)};return t.on("languageChanged",e),()=>{t.off("languageChanged",e)}},[t]),ve.jsxs("div",{"data-language":s,className:"min-h-screen",children:[e,o&&l&&ve.jsx(tD,{isOpen:o,detectedLanguage:l,onAccept:()=>u(l),onDismiss:c}),ve.jsx(nD,{})]})}const aD=Y.createContext(void 0),sD="faceaura-shared-image";function iD({children:e}){const[t,n]=Y.useState(null),[r,a]=Y.useState(!1);Y.useEffect(()=>{if("undefined"!=typeof window)try{const e=localStorage.getItem(sD);e&&n(e)}catch(e){console.error("[SharedImageContext] Failed to load from localStorage:",e)}finally{a(!0)}},[]);const s=e=>{if(n(e),"undefined"!=typeof window)try{e?localStorage.setItem(sD,e):localStorage.removeItem(sD)}catch(t){console.error("[SharedImageContext] Failed to save to localStorage:",t)}};return ve.jsx(aD.Provider,{value:{sharedImage:r?t:null,setSharedImage:s,clearSharedImage:()=>{s(null)}},children:e})}function oD(){const e=Y.useContext(aD);if(void 0===e)throw new Error("useSharedImage must be used within a SharedImageProvider");return e}var lD=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(){}},cD="undefined"==typeof window||"Deno"in globalThis;function uD(){}function dD(e){return"number"==typeof e&&e>=0&&e!==1/0}function hD(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fD(e,t){return"function"==typeof e?e(t):e}function pD(e,t){return"function"==typeof e?e(t):e}function mD(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:i,stale:o}=e;if(i)if(r){if(t.queryHash!==yD(i,t.options))return!1}else if(!bD(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&((!a||a===t.state.fetchStatus)&&!(s&&!s(t)))}function gD(e,t){const{exact:n,status:r,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;
2if(n){if(vD(t.options.mutationKey)!==vD(s))return!1}else if(!bD(t.options.mutationKey,s))return!1}return(!r||t.state.status===r)&&!(a&&!a(t))}function yD(e,t){return((null==t?void 0:t.queryKeyHashFn)||vD)(e)}function vD(e){return JSON.stringify(e,(e,t)=>jD(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function bD(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!bD(e[n],t[n])))}function xD(e,t){if(e===t)return e;const n=kD(e)&&kD(t);if(n||jD(e)&&jD(t)){const r=n?e:Object.keys(e),a=r.length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let l=0;for(let c=0;c<i;c++){const a=n?c:s[c];(!n&&r.includes(a)||n)&&void 0===e[a]&&void 0===t[a]?(o[a]=void 0,l++):(o[a]=xD(e[a],t[a]),o[a]===e[a]&&void 0!==e[a]&&l++)}return a===i&&l===a?e:o}return t}function wD(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 kD(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jD(e){if(!_D(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!_D(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function _D(e){return"[object Object]"===Object.prototype.toString.call(e)}function SD(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?xD(e,t):t}function AD(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ED(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ND=Symbol();function ID(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==ND?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var TD=new(i=class extends lD{constructor(){super(),G(this,r),G(this,a),G(this,s),Z(this,s,e=>{if(!cD&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){H(this,a)||this.setEventListener(H(this,s))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=H(this,a))||e.call(this),Z(this,a,void 0))}setEventListener(e){var t;Z(this,s,e),null==(t=H(this,a))||t.call(this),Z(this,a,e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){H(this,r)!==e&&(Z(this,r,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return"boolean"==typeof H(this,r)?H(this,r):"hidden"!==(null==(e=globalThis.document)?void 0:e.visibilityState)}},r=new WeakMap,a=new WeakMap,s=new WeakMap,i),CD=new(u=class extends lD{constructor(){super(),G(this,o,!0),G(this,l),G(this,c),Z(this,c,e=>{if(!cD&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){H(this,l)||this.setEventListener(H(this,c))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=H(this,l))||e.call(this),Z(this,l,void 0))}setEventListener(e){var t;Z(this,c,e),null==(t=H(this,l))||t.call(this),Z(this,l,e(this.setOnline.bind(this)))}setOnline(e){H(this,o)!==e&&(Z(this,o,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return H(this,o)}},o=new WeakMap,l=new WeakMap,c=new WeakMap,u);function OD(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function PD(e){return Math.min(1e3*2**e,3e4)}function RD(e){return"online"!==(e??"online")||CD.isOnline()}var FD=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function DD(e){return e instanceof FD}function LD(e){let t,n=!1,r=0,a=!1;const s=OD(),i=()=>TD.isFocused()&&("always"===e.networkMode||CD.isOnline())&&e.canRun(),o=()=>RD(e.networkMode)&&e.canRun(),l=n=>{var r;a||(a=!0,null==(r=e.onSuccess)||r.call(e,n),null==t||t(),s.resolve(n))},c=n=>{var r;a||(a=!0,null==(r=e.onError)||r.call(e,n),null==t||t(),s.reject(n))},u=()=>new Promise(n=>{var r;t=e=>{(a||i())&&n(e)},null==(r=e.onPause)||r.call(e)}).then(()=>{var n;t=void 0,a||null==(n=e.onContinue)||n.call(e)}),d=()=>
2{if(a)return;let t;const s=0===r?e.initialPromise:void 0;try{t=s??e.fn()}catch(o){t=Promise.reject(o)}Promise.resolve(t).then(l).catch(t=>{var s;if(a)return;const o=e.retry??(cD?0:3),l=e.retryDelay??PD,h="function"==typeof l?l(r,t):l,f=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);var p;!n&&f?(r++,null==(s=e.onFail)||s.call(e,r,t),(p=h,new Promise(e=>{setTimeout(e,p)})).then(()=>i()?void 0:u()).then(()=>{n?c(t):d()})):c(t)})};return{promise:s,cancel:t=>{var n;a||(c(new FD(t)),null==(n=e.abort)||n.call(e))},continue:()=>(null==t||t(),s),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:o,start:()=>(o()?d():u().then(d),s)}}var MD=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},a=e=>setTimeout(e,0);const s=r=>{t?e.push(r):a(()=>{n(r)})};return{batch:s=>{let i;t++;try{i=s()}finally{t--,t||(()=>{const t=e;e=[],t.length&&a(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{a=e}}}(),zD=(h=class{constructor(){G(this,d)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),dD(this.gcTime)&&Z(this,d,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cD?1/0:3e5))}clearGcTimeout(){H(this,d)&&(clearTimeout(H(this,d)),Z(this,d,void 0))}},d=new WeakMap,h),$D=(w=class extends zD{constructor(e){super(),G(this,b),G(this,f),G(this,p),G(this,m),G(this,g),G(this,y),G(this,v),Z(this,v,!1),Z(this,y,e.defaultOptions),this.setOptions(e.options),this.observers=[],Z(this,m,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Z(this,f,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?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"}}(this.options)),this.state=e.state??H(this,f),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=H(this,g))?void 0:e.promise}setOptions(e){this.options={...H(this,y),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||H(this,m).remove(this)}setData(e,t){const n=SD(this.state.data,e,this.options);return J(this,b,x).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){J(this,b,x).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null==(t=H(this,g))?void 0:t.promise;return null==(n=H(this,g))||n.cancel(e),r?r.then(uD).catch(uD):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(H(this,f))}isActive(){return this.observers.some(e=>!1!==pD(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ND||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!hD(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());null==t||t.refetch({cancelRefetch:!1}),null==(e=H(this,g))||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());null==t||t.refetch({cancelRefetch:!1}),null==(e=H(this,g))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),H(this,m).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(H(this,g)&&(H(this,v)?H(this,g).cancel({revert:!0}):H(this,g).cancelRetry()),this.scheduleGc()),H(this,m).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||J(this,b,x).call(this,{type:"invalidate"})}fetch(e,t){var n,r,a;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(H(this,g))return H(this,g).continueRetry(),H(this,g).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const s=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(Z(this,v,!0),s.signal)}
2)},o={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=ID(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return i(n),Z(this,v,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};i(o),null==(n=this.options.behavior)||n.onFetch(o,this),Z(this,p,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=o.fetchOptions)?void 0:r.meta)||J(this,b,x).call(this,{type:"fetch",meta:null==(a=o.fetchOptions)?void 0:a.meta});const l=e=>{var t,n,r,a;DD(e)&&e.silent||J(this,b,x).call(this,{type:"error",error:e}),DD(e)||(null==(n=(t=H(this,m).config).onError)||n.call(t,e,this),null==(a=(r=H(this,m).config).onSettled)||a.call(r,this.state.data,e,this)),this.scheduleGc()};return Z(this,g,LD({initialPromise:null==t?void 0:t.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:e=>{var t,n,r,a;if(void 0!==e){try{this.setData(e)}catch(s){return void l(s)}null==(n=(t=H(this,m).config).onSuccess)||n.call(t,e,this),null==(a=(r=H(this,m).config).onSettled)||a.call(r,e,this.state.error,this),this.scheduleGc()}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{J(this,b,x).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{J(this,b,x).call(this,{type:"pause"})},onContinue:()=>{J(this,b,x).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),H(this,g).start()}},f=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakSet,x=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...UD(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return DD(n)&&n.revert&&H(this,p)?{...H(this,p),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),MD.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),H(this,m).notify({query:this,type:"updated",action:e})})},w);function UD(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:RD(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var VD=(j=class extends lD{constructor(e={}){super(),G(this,k),this.config=e,Z(this,k,new Map)}build(e,t,n){const r=t.queryKey,a=t.queryHash??yD(r,t);let s=this.get(a);return s||(s=new $D({cache:this,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){H(this,k).has(e.queryHash)||(H(this,k).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=H(this,k).get(e.queryHash);t&&(e.destroy(),t===e&&H(this,k).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){MD.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return H(this,k).get(e)}getAll(){return[...H(this,k).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>mD(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>mD(e,t)):t}notify(e){MD.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){MD.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){MD.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},k=new WeakMap,j),BD=(I=class extends zD{constructor(e){super(),G(this,E),G(this,_),G(this,S),G(this,A),this.mutationId=e.mutationId,Z(this,S,e.mutationCache),Z(this,_,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){H(this,_).includes(e)||(H(this,_).push(e),this.clearGcTimeout(),H(this,S).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Z(this,_,H(this,_).filter(t=>t!==e)),this.scheduleGc(),H(this,S).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){H(this,_).length||("pending"===this.state.status?this.scheduleGc():H(this,S).remove(this))}continue(){var e;return(null==(e=H(this,A))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,a,s,i,o,l,c,u,d,h,f,p,m,g,y,v,b,x;Z(this,A,LD({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{J(this,E,N).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{J(this,E,N).call(this,{type:"pause"})},onContinue:()=>{J(this,E,N).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>H(this,S).canRun(this)}));const w="pending"===this.state.status,k=!H(this,A).canStart();try{if(!w){J(this,E,N).call(this,{type:"pending",variables:e,isPaused:k}),await(null==(n=(t=H(this,S).config).onMutate)?void 0:n.call(t,e,this));const s=await(null==(a=(r=this.options).onMutate)?void 0:a.call(r,e));s!==this.state.context&&J(this,E,N).call(this,{type:"pending",context:s,variables:e,isPaused:k})}const f=await H(this,A).start();return await(null==(i=(s=H(this,S).config).onSuccess)?void 0:i.call(s,f,e,this.state.context,this)),await(null==(l=(o=this.options).onSuccess)?void 0:l.call(o,f,e,this.state.context)),await(null==(u=(c=H(this,S).config).onSettled)?void 0:u.call(c,f,null,this.state.variables,this.state.context,this)),await(null==(h=(d=this.options).onSettled)?void 0:h.call(d,f,null,e,this.state.context)),J(this,E,N).call(this,{type:"success",data:f}),f}catch(j){try{throw await(null==(p=(f=H(this,S).config).onError)?void 0:p.call(f,j,e,this.state.context,this)),await(null==(g=(m=this.options).onError)?void 0:g.call(m,j,e,this.state.context)),await(null==(v=(y=H(this,S).config).onSettled)?void 0:v.call(y,void 0,j,this.state.variables,this.state.context,this)),await(null==(x=(b=this.options).onSettled)?void 0:x.call(b,void 0,j,e,this.state.context)),j}finally{J(this,E,N).call(this,{type:"error",error:j})}}finally{H(this,S).runNext(this)}}},_=new WeakMap,S=new WeakMap,A=new WeakMap,E=new WeakSet,N=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
2case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),MD.batch(()=>{H(this,_).forEach(t=>{t.onMutationUpdate(e)}),H(this,S).notify({mutation:this,type:"updated",action:e})})},I);function WD(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var qD=(O=class extends lD{constructor(e={}){super(),G(this,T),G(this,C),this.config=e,Z(this,T,new Map),Z(this,C,Date.now())}build(e,t,n){const r=new BD({mutationCache:this,mutationId:++Q(this,C)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=KD(e),n=H(this,T).get(t)??[];n.push(e),H(this,T).set(t,n),this.notify({type:"added",mutation:e})}remove(e){var t;const n=KD(e);if(H(this,T).has(n)){const r=null==(t=H(this,T).get(n))?void 0:t.filter(t=>t!==e);r&&(0===r.length?H(this,T).delete(n):H(this,T).set(n,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null==(t=H(this,T).get(KD(e)))?void 0:t.find(e=>"pending"===e.state.status);return!n||n===e}runNext(e){var t;const n=null==(t=H(this,T).get(KD(e)))?void 0:t.find(t=>
2t!==e&&t.state.isPaused);return(null==n?void 0:n.continue())??Promise.resolve()}clear(){MD.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...H(this,T).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find(e=>gD(t,e))}findAll(e={}){return this.getAll().filter(t=>gD(e,t))}notify(e){MD.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return MD.batch(()=>Promise.all(e.map(e=>e.continue().catch(uD))))}},T=new WeakMap,C=new WeakMap,O);function KD(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function HD(e){return{onFetch:(t,n)=>{var r,a,s,i,o;const l=t.options,c=null==(s=null==(a=null==(r=t.fetchOptions)?void 0:r.meta)?void 0:a.fetchMore)?void 0:s.direction,u=(null==(i=t.state.data)?void 0:i.pages)||[],d=(null==(o=t.state.data)?void 0:o.pageParams)||[];let h={pages:[],pageParams:[]},f=0;const p=async()=>{let n=!1;const r=ID(t.options,t.fetchOptions),a=async(e,a,s)=>{if(n)return Promise.reject();if(null==a&&e.pages.length)return Promise.resolve(e);const i={queryKey:t.queryKey,pageParam:a,direction:s?"backward":"forward",meta:t.options.meta};var o;o=i,Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)});const l=await r(i),{maxPages:c}=t.options,u=s?ED:AD;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,a,c)}};if(c&&u.length){const e="backward"===c,t={pages:u,pageParams:d},n=(e?ZD:GD)(l,t);h=await a(t,n,e)}else{const t=e??u.length;do{const e=0===f?d[0]??l.initialPageParam:GD(l,h);if(f>0&&null==e)break;h=await a(h,e),f++}while(f<t)}return h};t.options.persister?t.fetchFn=()=>{var e,r;return null==(r=(e=t.options).persister)?void 0:r.call(e,p,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=p}}}function GD(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 ZD(e,{pages:t,pageParams:n}){var r;return t.length>0?null==(r=e.getPreviousPageParam)?void 0:r.call(e,t[0],t,n[0],n):void 0}var JD=(U=class{constructor(e={}){G(this,P),G(this,R),G(this,F),G(this,D),G(this,L),G(this,M),G(this,z),G(this,$),Z(this,P,e.queryCache||new VD),Z(this,R,e.mutationCache||new qD),Z(this,F,e.defaultOptions||{}),Z(this,D,new Map),Z(this,L,new Map),Z(this,M,0)}mount(){Q(this,M)._++,1===H(this,M)&&(Z(this,z,TD.subscribe(async e=>{e&&(await this.resumePausedMutations(),H(this,P).onFocus())})),Z(this,$,CD.subscribe(async e=>{e&&(await this.resumePausedMutations(),H(this,P).onOnline())})))}unmount(){var e,t;Q(this,M)._--,0===H(this,M)&&(null==(e=H(this,z))||e.call(this),Z(this,z,void 0),null==(t=H(this,$))||t.call(this),Z(this,$,void 0))}isFetching(e){return H(this,P).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return H(this,R).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=H(this,P).get(n.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=H(this,P).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(fD(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return H(this,P).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=H(this,P).get(r.queryHash),s=function(e,t){return"function"==typeof e?e(t):e}(t,null==a?void 0:a.state.data);if(void 0!==s)return H(this,P).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return MD.batch(()=>H(this,P).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=H(this,P).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=H(this,P);MD.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=H(this,P),r={type:"active",...e};return MD.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=MD.batch(()=>H(this,P).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(uD).catch(uD)}invalidateQueries(e={},t={}){return MD.batch(()=>
2{if(H(this,P).findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(null==t?void 0:t.cancelRefetch)??!0},r=MD.batch(()=>H(this,P).findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(uD)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(uD)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=H(this,P).build(this,t);return n.isStaleByTime(fD(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(uD).catch(uD)}fetchInfiniteQuery(e){return e.behavior=HD(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(uD).catch(uD)}ensureInfiniteQueryData(e){return e.behavior=HD(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return CD.isOnline()?H(this,R).resumePausedMutations():Promise.resolve()}getQueryCache(){return H(this,P)}getMutationCache(){return H(this,R)}getDefaultOptions(){return H(this,F)}setDefaultOptions(e){Z(this,F,e)}setQueryDefaults(e,t){H(this,D).set(vD(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...H(this,D).values()];let n={};return t.forEach(t=>{bD(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){H(this,L).set(vD(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...H(this,L).values()];let n={};return t.forEach(t=>{bD(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...H(this,F).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=yD(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===ND&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...H(this,F).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){H(this,P).clear(),H(this,R).clear()}},P=new WeakMap,R=new WeakMap,F=new WeakMap,D=new WeakMap,L=new WeakMap,M=new WeakMap,z=new WeakMap,$=new WeakMap,U),QD=Y.createContext(void 0),YD=e=>{const t=Y.useContext(QD);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},XD=({client:e,children:t})=>(Y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ve.jsx(QD.Provider,{value:e,children:t}));const eL=new JD({defaultOptions:{queries:{queryFn:async({queryKey:e})=>{const{data:{session:t}}=await hk.auth.getSession(),n={credentials:"include"};(null==t?void 0:t.access_token)&&(n.Authorization=`Bearer ${t.access_token}`);const r=await fetch(e[0],{headers:n});if(!r.ok){if(r.status>=500)throw new Error(`${r.status}: ${r.statusText}`);throw new Error(`${r.status}: ${await r.text()}`)}return r.json()},refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}});async function tL(e,t,n){const{data:{session:r}}=await hk.auth.getSession(),a=n?{"Content-Type":"application/json"}:{};(null==r?void 0:r.access_token)&&(a.Authorization=`Bearer ${r.access_token}`);const s=await fetch(t,{method:e,headers:a,body:n?JSON.stringify(n):void 0});if(!s.ok){if(s.status>=500)throw new Error(`${s.status}: ${s.statusText}`);throw new Error(`${s.status}: ${await s.text()}`)}return s}var nL="ToastProvider",[rL,aL,sL]=qh("Toast"),[iL,oL]=wh("Toast",[sL]),[lL,cL]=iL(nL),uL=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:s=50,children:i}=e,[o,l]=Y.useState(null),[c,u]=Y.useState(0),d=Y.useRef(!1),h=Y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${nL}\`. Expected non-empty \`string\`.`),ve.jsx(rL.Provider,{scope:t,children:ve.jsx(lL,{scope:t,label:n,duration:r,swipeDirection:a,swipeThreshold:s,toastCount:c,viewport:o,onViewportChange:l,onToastAdd:Y.useCallback(()=>u(e=>e+1),[]),onToastRemove:Y.useCallback(()=>u(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:i})})};uL.displayName=nL;var dL="ToastViewport",hL=["F8"],fL="toast.viewportPause",pL="toast.viewportResume",mL=Y.forwardRef((e,t)=>
2{const{__scopeToast:n,hotkey:r=hL,label:a="Notifications ({hotkey})",...s}=e,i=cL(dL,n),o=aL(n),l=Y.useRef(null),c=Y.useRef(null),u=Y.useRef(null),d=Y.useRef(null),h=Ah(t,d,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),p=i.toastCount>0;Y.useEffect(()=>{const e=e=>{var t;0!==r.length&&r.every(t=>e[t]||e.code===t)&&(null==(t=d.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),Y.useEffect(()=>{const e=l.current,t=d.current;if(p&&e&&t){const n=()=>{if(!i.isClosePausedRef.current){const e=new CustomEvent(fL);t.dispatchEvent(e),i.isClosePausedRef.current=!0}},r=()=>{if(i.isClosePausedRef.current){const e=new CustomEvent(pL);t.dispatchEvent(e),i.isClosePausedRef.current=!1}},a=t=>{!e.contains(t.relatedTarget)&&r()},s=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",a),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",s),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",a),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[p,i.isClosePausedRef]);const m=Y.useCallback(({tabbingDirection:e})=>{const t=o().map(t=>{const n=t.ref.current,r=[n,...RL(n)];return"forwards"===e?r:r.reverse()});return("forwards"===e?t.reverse():t).flat()},[o]);return Y.useEffect(()=>{const e=d.current;if(e){const t=t=>{var n,r,a;const s=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!s){const s=document.activeElement,i=t.shiftKey;if(t.target===e&&i)return void(null==(n=c.current)||n.focus());const o=m({tabbingDirection:i?"backwards":"forwards"}),l=o.findIndex(e=>e===s);FL(o.slice(l+1))?t.preventDefault():i?null==(r=c.current)||r.focus():null==(a=u.current)||a.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[o,m]),ve.jsxs(rf,{ref:l,role:"region","aria-label":a.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:p?void 0:"none"},children:[p&&ve.jsx(yL,{ref:c,onFocusFromOutsideViewport:()=>{FL(m({tabbingDirection:"forwards"}))}}),ve.jsx(rL.Slot,{scope:n,children:ve.jsx(Ph.ol,{tabIndex:-1,...s,ref:h})}),p&&ve.jsx(yL,{ref:u,onFocusFromOutsideViewport:()=>{FL(m({tabbingDirection:"backwards"}))}})]})});mL.displayName=dL;var gL="ToastFocusProxy",yL=Y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,s=cL(gL,n);return ve.jsx(of,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget;!(null==(t=s.viewport)?void 0:t.contains(n))&&r()}})});yL.displayName=gL;var vL="Toast",bL=Y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:s,...i}=e,[o,l]=Lh({prop:r,defaultProp:a??!0,onChange:s,caller:vL});return ve.jsx($h,{present:n||o,children:ve.jsx(kL,{open:o,...i,ref:t,onClose:()=>l(!1),onPause:Kh(e.onPause),onResume:Kh(e.onResume),onSwipeStart:jh(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:jh(e.onSwipeMove,e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)}
2),onSwipeCancel:jh(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:jh(e.onSwipeEnd,e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),l(!1)})})})});bL.displayName=vL;var[xL,wL]=iL(vL,{onClose(){}}),kL=Y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:s,onClose:i,onEscapeKeyDown:o,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:f,...p}=e,m=cL(vL,n),[g,y]=Y.useState(null),v=Ah(t,e=>y(e)),b=Y.useRef(null),x=Y.useRef(null),w=a||m.duration,k=Y.useRef(0),j=Y.useRef(w),_=Y.useRef(0),{onToastAdd:S,onToastRemove:A}=m,E=Kh(()=>{var e;(null==g?void 0:g.contains(document.activeElement))&&(null==(e=m.viewport)||e.focus()),i()}),N=Y.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(_.current),k.current=(new Date).getTime(),_.current=window.setTimeout(E,e))},[E]);Y.useEffect(()=>{const e=m.viewport;if(e){const t=()=>{N(j.current),null==c||c()},n=()=>{const e=(new Date).getTime()-k.current;j.current=j.current-e,window.clearTimeout(_.current),null==l||l()};return e.addEventListener(fL,n),e.addEventListener(pL,t),()=>{e.removeEventListener(fL,n),e.removeEventListener(pL,t)}}},[m.viewport,w,l,c,N]),Y.useEffect(()=>{s&&!m.isClosePausedRef.current&&N(w)},[s,w,m.isClosePausedRef,N]),Y.useEffect(()=>(S(),()=>A()),[S,A]);const I=Y.useMemo(()=>g?CL(g):null,[g]);return m.viewport?ve.jsxs(ve.Fragment,{children:[I&&ve.jsx(jL,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite",children:I}),ve.jsx(xL,{scope:n,onClose:E,children:Sd.createPortal(ve.jsx(rL.ItemSlot,{scope:n,children:ve.jsx(nf,{asChild:!0,onEscapeKeyDown:jh(o,()=>{m.isFocusedToastEscapeKeyDownRef.current||E(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:ve.jsx(Ph.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":m.swipeDirection,...p,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:jh(e.onKeyDown,e=>{"Escape"===e.key&&(null==o||o(e.nativeEvent),e.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,E()))}),onPointerDown:jh(e.onPointerDown,e=>{0===e.button&&(b.current={x:e.clientX,y:e.clientY})}),onPointerMove:jh(e.onPointerMove,e=>{if(!b.current)return;const t=e.clientX-b.current.x,n=e.clientY-b.current.y,r=Boolean(x.current),a=["left","right"].includes(m.swipeDirection),s=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,i=a?s(0,t):0,o=a?0:s(0,n),l="touch"===e.pointerType?10:2,c={x:i,y:o},h={originalEvent:e,delta:c};r?(x.current=c,OL("toast.swipeMove",d,h,{discrete:!1})):PL(c,m.swipeDirection,l)?(x.current=c,OL("toast.swipeStart",u,h,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(b.current=null)}),onPointerUp:jh(e.onPointerUp,e=>{const t=x.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),x.current=null,b.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};PL(t,m.swipeDirection,m.swipeThreshold)?OL("toast.swipeEnd",f,r,{discrete:!0}):OL("toast.swipeCancel",h,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),jL=e=>{const{__scopeToast:t,children:n,...r}=e,a=cL(vL,t),[s,i]=Y.useState(!1),[o,l]=Y.useState(!1);return function(e=()=>{}){const t=Kh(e);Fh(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>i(!0)),Y.useEffect(()=>{const e=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(e)},[]),o?null:ve.jsx(gg,{asChild:!0,children:ve.jsx(of,{...r,children:s&&ve.jsxs(ve.Fragment,{children:[a.label," ",n]})})})},_L=Y.forwardRef((e,t)=>
2{const{__scopeToast:n,...r}=e;return ve.jsx(Ph.div,{...r,ref:t})});_L.displayName="ToastTitle";var SL=Y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return ve.jsx(Ph.div,{...r,ref:t})});SL.displayName="ToastDescription";var AL="ToastAction",EL=Y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?ve.jsx(TL,{altText:n,asChild:!0,children:ve.jsx(IL,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${AL}\`. Expected non-empty \`string\`.`),null)});EL.displayName=AL;var NL="ToastClose",IL=Y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,a=wL(NL,n);return ve.jsx(TL,{asChild:!0,children:ve.jsx(Ph.button,{type:"button",...r,ref:t,onClick:jh(e.onClick,a.onClose)})})});IL.displayName=NL;var TL=Y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...a}=e;return ve.jsx(Ph.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:t})});function CL(e){const t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...CL(e))}}),t}function OL(e,t,n,{discrete:r}){const a=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Rh(a,s):a.dispatchEvent(s)}var PL=(e,t,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),s=r>a;return"left"===t||"right"===t?s&&r>n:!s&&a>n};function RL(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function FL(e){const t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var DL=mL,LL=bL,ML=_L,zL=SL,$L=EL,UL=IL;const VL=uL,BL=Y.forwardRef(({className:e,...t},n)=>ve.jsx(DL,{ref:n,className:Jm("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));BL.displayName=DL.displayName;const WL=dp("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),qL=Y.forwardRef(({className:e,variant:t,...n},r)=>ve.jsx(LL,{ref:r,className:Jm(WL({variant:t}),e),...n}));qL.displayName=LL.displayName;Y.forwardRef(({className:e,...t},n)=>ve.jsx($L,{ref:n,className:Jm("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t})).displayName=$L.displayName;const KL=Y.forwardRef(({className:e,...t},n)=>ve.jsx(UL,{ref:n,className:Jm("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:ve.jsx(em,{className:"h-4 w-4"})}));KL.displayName=UL.displayName;const HL=Y.forwardRef(({className:e,...t},n)=>ve.jsx(ML,{ref:n,className:Jm("text-sm font-semibold",e),...t}));HL.displayName=ML.displayName;const GL=Y.forwardRef(({className:e,...t},n)=>ve.jsx(zL,{ref:n,className:Jm("text-sm opacity-90",e),...t}));function ZL(){const{toasts:e}=Rk();return ve.jsxs(VL,{children:[e.map(function({id:e,title:t,description:n,action:r,...a}){return ve.jsxs(qL,{...a,children:[ve.jsxs("div",{className:"grid gap-1",children:[t&&ve.jsx(HL,{children:t}),n&&ve.jsx(GL,{children:n})]}),r,ve.jsx(KL,{})]},e)}),ve.jsx(BL,{})]})}GL.displayName=zL.displayName;const JL="fa_chunk_reload_at";function QL(e){if(!e)return!1;const t=e.message||"";return"ChunkLoadError"===e.name||/Failed to fetch dynamically imported module/i.test(t)||/Loading chunk [\d]+ failed/i.test(t)||/Importing a module script failed/i.test(t)}class YL extends Y.Component{constructor(e){super(e),this.handleRetry=()=>{QL(this.state.error)?window.location.reload():this.setState({hasError:!1,error:void 0})},this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("Lazy loading error caught by boundary:",e,t),QL(e)&&function(){try{const e=Number(sessionStorage.getItem(JL)||0),t=Date.now();if(!e||t-e>15e3)return sessionStorage.setItem(JL,String(t)),window.location.reload(),!0}catch{}}()}
2render(){if(this.state.hasError){if(this.props.fallback)return this.props.fallback;const e=QL(this.state.error);return ve.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] p-8 text-center",children:[ve.jsx(Ap,{className:"h-12 w-12 text-red-500 mb-4"}),ve.jsx("h3",{className:"text-lg font-semibold mb-2",children:e?"App update available":"Something went wrong"}),ve.jsx("p",{className:"text-muted-foreground mb-4 max-w-md",children:e?"A newer version of FaceAura was deployed. Refresh to load the latest pages.":"There was an error loading this component. Please try again or contact support if the problem persists."}),ve.jsxs(sg,{onClick:this.handleRetry,variant:"outline",className:"flex items-center gap-2",children:[ve.jsx(Bp,{className:"h-4 w-4"}),e?"Refresh page":"Try Again"]})]})}return this.props.children}}const XL=()=>ve.jsx("div",{className:"flex items-center justify-center min-h-[400px] w-full",children:ve.jsxs("div",{className:"flex flex-col items-center gap-4",children:[ve.jsx(Lp,{className:"h-8 w-8 animate-spin text-luxury-purple"}),ve.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading AI tool..."})]})});function eM({children:e,fallback:t=ve.jsx(XL,{})}){return ve.jsx(YL,{children:ve.jsx(Y.Suspense,{fallback:t,children:e})})}function tM(){const{getLocalizedPath:e,currentLocale:t}=hN();return ve.jsxs(ve.Fragment,{children:[ve.jsx(lT,{noIndex:!0,title:"Page Not Found | FaceAuraAI",description:"The page you are looking for doesn't exist. Let's get you back on track."}),ve.jsx("section",{className:"container mx-auto px-4 py-16 flex flex-col items-center justify-center min-h-[calc(100vh-4rem)]",children:ve.jsxs("div",{className:"max-w-md w-full mx-auto text-center space-y-8",children:[ve.jsxs("div",{className:"relative mx-auto w-32 h-32 mb-8",children:[ve.jsx("div",{className:"absolute inset-0 bg-luxury-purple/10 rounded-full animate-pulse"}),ve.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:ve.jsx("span",{className:"text-7xl font-heading text-luxury-purple",children:"404"})})]}),ve.jsx("h1",{className:"text-3xl font-heading font-bold text-luxury-black page-heading",children:"Page Not Found"}),ve.jsx("p",{className:"text-gray-600 mt-4",children:"The page you are looking for might have been removed, had its name changed, or is temporarily unavailable."}),ve.jsxs("div",{className:"mt-8 space-y-4",children:[ve.jsx(sg,{variant:"default",className:"bg-luxury-purple text-white hover:bg-luxury-purple/90 w-full",asChild:!0,children:ve.jsxs(vh,{href:e("/",t),children:[ve.jsx(Fp,{className:"mr-2 h-4 w-4"}),"Back to Home"]})}),ve.jsxs(sg,{variant:"outline",className:"w-full border-luxury-purple/30 text-luxury-purple hover:bg-luxury-purple/5",onClick:()=>window.history.back(),children:[ve.jsx(yp,{className:"mr-2 h-4 w-4"}),"Go Back"]})]}),ve.jsxs("div",{className:"mt-8 pt-8 border-t border-gray-200",children:[ve.jsx("h2",{className:"text-lg font-semibold text-luxury-black mb-4",children:"Our AI Tools"}),ve.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:[ve.jsx(vh,{href:e("/ai-tools/face-shape-detector",t),children:ve.jsx("div",{className:"p-3 border border-gray-200 rounded-md hover:border-luxury-purple/30 hover:bg-luxury-purple/5 transition-colors text-sm",children:"Face Shape"})}),ve.jsx(vh,{href:e("/ai-tools/eye-shape-detector",t),children:ve.jsx("div",{className:"p-3 border border-gray-200 rounded-md hover:border-luxury-teal/30 hover:bg-luxury-teal/5 transition-colors text-sm",children:"Eye Shape"})}),ve.jsx(vh,{href:e("/ai-tools/lip-shape-detector",t),children:ve.jsx("div",{className:"p-3 border border-gray-200 rounded-md hover:border-luxury-teal/30 hover:bg-luxury-teal/5 transition-colors text-sm",children:"Lip Shape"})}),ve.jsx(vh,{href:e("/ai-tools/body-shape-detector",t),children:ve.jsx("div",{className:"p-3 border border-gray-200 rounded-md hover:border-luxury-purple/30 hover:bg-luxury-purple/5 transition-colors text-sm",children:"Body Shape"})}),ve.jsx(vh,{href:e("/ai-tools/gender-detector",t),children:ve.jsx("div",{className:"p-3 border border-gray-200 rounded-md hover:border-luxury-purple/30 hover:bg-luxury-purple/5 transition-colors text-sm",children:"Gender Detector"})}),ve.jsx(vh,{href:e("/ai-tools/age-detector",t),children:ve.jsx("div",{className:"p-3 border border-gray-200 rounded-md hover:border-luxury-teal/30 hover:bg-luxury-teal/5 transition-colors text-sm",children:"Age Detector"})}),ve.jsx(vh,{href:e("/ai-tools/emotion-detector",t),children:ve.jsx("div",{className:"p-3 border border-gray-200 rounded-md hover:border-luxury-purple/30 hover:bg-luxury-purple/5 transition-colors text-sm",children:"Emotion Detector"})}),ve.jsx(vh,{href:e("/ai-tools/face-symmetry",t),children:ve.jsx("div",{className:"p-3 border border-gray-200 rounded-md hover:border-luxury-teal/30 hover:bg-luxury-teal/5 transition-colors text-sm",children:"Face Symmetry"})}),ve.jsx(vh,{href:e("/ai-tools/golden-ratio-calculator",t),children:ve.jsx("div",{className:"p-3 border border-gray-200 rounded-md hover:border-luxury-purple/30 hover:bg-luxury-purple/5 transition-colors text-sm",children:"Golden Ratio"})})]})]})]})})]})}function nM(e,t){const n=()=>ve.jsx(eM,{children:ve.jsx(t,{})});return[ve.jsx(yh,{path:e,component:n},e),...["es","hi","de","fil","fr"].flatMap(t=>[ve.jsx(yh,{path:`/${t}${e}`,component:n},`/${t}${e}`),ve.jsx(yh,{path:`/${t}${e}/`,component:n},`/${t}${e}/`)])]}function rM(){return ve.jsxs(VI,{children:[ve.jsx(IC,{}),ve.jsx(EC,{children:ve.jsx(rD,{children:ve.jsx(_k,{children:ve.jsx(iD,{children:ve.jsxs(XD,{client:eL,children:[ve.jsx(ZL,{}),ve.jsx(aM,{})]})})})})})]})}function aM(){const{user:e,loading:t}=Sk(),[n,r]=fh(),{i18n:a}=le(),{getLocalizedPath:s,currentLocale:i}=hN();return Y.useEffect(()=>{"requestIdleCallback"in window&&requestIdleCallback(()=>{se(()=>import("./FaceShapeDetector-1hDsiIT2.js"),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,23,27]))})},[]),Y.useEffect(()=>{if(!t&&e&&n.startsWith("/auth")&&!n.includes("/callback")){const e=setTimeout(()=>{r(s("/",i))},50);return()=>clearTimeout(e)}},[e,t,n,r,s,i]),Y.useEffect(()=>{a.isInitialized&&a.language},[a]),ve.jsx(fT,{children:ve.jsxs(xh,{children:[ve.jsx(yh,{path:"/",component:NC}),ve.jsx(yh,{path:"/es",component:NC}),ve.jsx(yh,{path:"/es/",component:NC}),ve.jsx(yh,{path:"/hi",component:NC}),ve.jsx(yh,{path:"/hi/",component:NC}),ve.jsx(yh,{path:"/de",component:NC}),ve.jsx(yh,{path:"/de/",component:NC}),ve.jsx(yh,{path:"/fil",component:NC}),ve.jsx(yh,{path:"/fil/",component:NC}),ve.jsx(yh,{path:"/fr",component:NC}),ve.jsx(yh,{path:"/fr/",component:NC}),ve.jsx(yh,{path:"/auth",children:ve.jsx(KF,{defaultTab:"sign-in"})}),ve.jsx(yh,{path:"/auth/sign-in",children:ve.jsx(KF,{defaultTab:"sign-in"})}),ve.jsx(yh,{path:"/auth/sign-up",children:ve.jsx(KF,{defaultTab:"sign-up"})}),ve.jsx(yh,{path:"/auth/callback",children:ve.jsx(HF,{})}),ve.jsx(yh,{path:"/auth/forgot-password",children:ve.jsx(ZF,{})}),ve.jsx(yh,{path:"/face-analysis",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/style-recommendations",component:()=>ve.jsx(eM,{children:ve.jsx(IN,{})})}),ve.jsx(yh,{path:"/body-analysis",children:()=>(r("/ai-tools/body-shape-detector"),null)}),ve.jsx(yh,{path:"/eye-shape",children:()=>(r("/ai-tools/eye-shape-detector"),null)}),ve.jsx(yh,{path:"/lip-shape",children:()=>(r("/ai-tools/lip-shape-detector"),null)}),ve.jsx(yh,{path:"/analysis-results",component:()=>ve.jsx(eM,{children:ve.jsx(UN,{})})}),ve.jsx(yh,{path:"/ai-tools/gender-detector",component:()=>ve.jsx(eM,{children:ve.jsx(xN,{})})}),ve.jsx(yh,{path:"/ai-tools/age-detector",component:()=>ve.jsx(eM,{children:ve.jsx(wN,{})})}),ve.jsx(yh,{path:"/ai-tools/face-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(kN,{})})}),ve.jsx(yh,{path:"/ai-tools/style-wizard",component:()=>ve.jsx(eM,{children:ve.jsx(IN,{})})}),ve.jsx(yh,{path:"/ai-tools/emotion-detector",component:()=>ve.jsx(eM,{children:ve.jsx(jN,{})})}),ve.jsx(yh,{path:"/ai-tools/lip-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(_N,{})})}),ve.jsx(yh,{path:"/ai-tools/eye-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(SN,{})})}),ve.jsx(yh,{path:"/ai-tools/face-symmetry",component:()=>ve.jsx(eM,{children:ve.jsx(AN,{})})}),ve.jsx(yh,{path:"/ai-tools/body-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(PN,{})})}),ve.jsx(yh,{path:"/ai-tools/body-shape-detector-ai",component:()=>ve.jsx(eM,{children:ve.jsx(RN,{})})}),ve.jsx(yh,{path:"/ai-tools/golden-ratio-calculator",component:()=>ve.jsx(eM,{children:ve.jsx(EN,{})})}),ve.jsx(yh,{path:"/ai-tools/celebrity-lookalike",component:()=>ve.jsx(eM,{children:ve.jsx(NN,{})})}
2),nM("/ai-tools/skin-tone-detector",TN),nM("/ai-tools/glasses-finder",CN),nM("/ai-tools/hairstyle-recommender",ON),ve.jsx(yh,{path:"/es/ai-tools/gender-detector",component:()=>ve.jsx(eM,{children:ve.jsx(xN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/gender-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(xN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/age-detector",component:()=>ve.jsx(eM,{children:ve.jsx(wN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/age-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(wN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/face-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(kN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/face-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(kN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/emotion-detector",component:()=>ve.jsx(eM,{children:ve.jsx(jN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/emotion-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(jN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/lip-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(_N,{})})}),ve.jsx(yh,{path:"/es/ai-tools/lip-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(_N,{})})}),ve.jsx(yh,{path:"/es/ai-tools/eye-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(SN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/eye-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(SN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/face-symmetry",component:()=>ve.jsx(eM,{children:ve.jsx(AN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/face-symmetry/",component:()=>ve.jsx(eM,{children:ve.jsx(AN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/body-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(PN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/body-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(PN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/body-shape-detector-ai",component:()=>ve.jsx(eM,{children:ve.jsx(RN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/body-shape-detector-ai/",component:()=>ve.jsx(eM,{children:ve.jsx(RN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/golden-ratio-calculator",component:()=>ve.jsx(eM,{children:ve.jsx(EN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/golden-ratio-calculator/",component:()=>ve.jsx(eM,{children:ve.jsx(EN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/celebrity-lookalike",component:()=>ve.jsx(eM,{children:ve.jsx(NN,{})})}),ve.jsx(yh,{path:"/es/ai-tools/celebrity-lookalike/",component:()=>ve.jsx(eM,{children:ve.jsx(NN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/gender-detector",component:()=>ve.jsx(eM,{children:ve.jsx(xN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/gender-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(xN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/age-detector",component:()=>ve.jsx(eM,{children:ve.jsx(wN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/age-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(wN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/face-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(kN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/face-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(kN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/emotion-detector",component:()=>ve.jsx(eM,{children:ve.jsx(jN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/emotion-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(jN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/lip-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(_N,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/lip-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(_N,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/eye-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(SN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/eye-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(SN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/face-symmetry",component:()=>ve.jsx(eM,{children:ve.jsx(AN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/face-symmetry/",component:()=>ve.jsx(eM,{children:ve.jsx(AN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/body-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(PN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/body-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(PN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/body-shape-detector-ai",component:()=>ve.jsx(eM,{children:ve.jsx(RN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/body-shape-detector-ai/",component:()=>ve.jsx(eM,{children:ve.jsx(RN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/golden-ratio-calculator",component:()=>ve.jsx(eM,{children:ve.jsx(EN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/golden-ratio-calculator/",component:()=>ve.jsx(eM,{children:ve.jsx(EN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/celebrity-lookalike",component:()=>ve.jsx(eM,{children:ve.jsx(NN,{})})}),ve.jsx(yh,{path:"/hi/ai-tools/celebrity-lookalike/",component:()=>ve.jsx(eM,{children:ve.jsx(NN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/gender-detector",component:()=>ve.jsx(eM,{children:ve.jsx(xN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/gender-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(xN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/age-detector",component:()=>ve.jsx(eM,{children:ve.jsx(wN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/age-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(wN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/face-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(kN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/face-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(kN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/emotion-detector",component:()=>ve.jsx(eM,{children:ve.jsx(jN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/emotion-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(jN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/lip-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(_N,{})})}),ve.jsx(yh,{path:"/de/ai-tools/lip-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(_N,{})})}),ve.jsx(yh,{path:"/de/ai-tools/eye-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(SN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/eye-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(SN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/face-symmetry",component:()=>ve.jsx(eM,{children:ve.jsx(AN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/face-symmetry/",component:()=>ve.jsx(eM,{children:ve.jsx(AN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/body-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(PN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/body-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(PN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/body-shape-detector-ai",component:()=>ve.jsx(eM,{children:ve.jsx(RN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/body-shape-detector-ai/",component:()=>ve.jsx(eM,{children:ve.jsx(RN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/golden-ratio-calculator",component:()=>ve.jsx(eM,{children:ve.jsx(EN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/golden-ratio-calculator/",component:()=>ve.jsx(eM,{children:ve.jsx(EN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/celebrity-lookalike",component:()=>ve.jsx(eM,{children:ve.jsx(NN,{})})}),ve.jsx(yh,{path:"/de/ai-tools/celebrity-lookalike/",component:()=>ve.jsx(eM,{children:ve.jsx(NN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/gender-detector",component:()=>ve.jsx(eM,{children:ve.jsx(xN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/gender-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(xN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/age-detector",component:()=>ve.jsx(eM,{children:ve.jsx(wN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/age-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(wN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/face-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(kN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/face-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(kN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/emotion-detector",component:()=>ve.jsx(eM,{children:ve.jsx(jN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/emotion-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(jN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/lip-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(_N,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/lip-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(_N,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/eye-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(SN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/eye-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(SN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/face-symmetry",component:()=>ve.jsx(eM,{children:ve.jsx(AN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/face-symmetry/",component:()=>ve.jsx(eM,{children:ve.jsx(AN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/body-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(PN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/body-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(PN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/body-shape-detector-ai",component:()=>ve.jsx(eM,{children:ve.jsx(RN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/body-shape-detector-ai/",component:()=>ve.jsx(eM,{children:ve.jsx(RN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/golden-ratio-calculator",component:()=>ve.jsx(eM,{children:ve.jsx(EN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/golden-ratio-calculator/",component:()=>ve.jsx(eM,{children:ve.jsx(EN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/celebrity-lookalike",component:()=>ve.jsx(eM,{children:ve.jsx(NN,{})})}),ve.jsx(yh,{path:"/fil/ai-tools/celebrity-lookalike/",component:()=>ve.jsx(eM,{children:ve.jsx(NN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/gender-detector",component:()=>ve.jsx(eM,{children:ve.jsx(xN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/gender-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(xN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/age-detector",component:()=>ve.jsx(eM,{children:ve.jsx(wN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/age-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(wN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/face-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(kN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/face-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(kN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/emotion-detector",component:()=>ve.jsx(eM,{children:ve.jsx(jN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/emotion-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(jN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/lip-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(_N,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/lip-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(_N,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/eye-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(SN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/eye-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(SN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/face-symmetry",component:()=>ve.jsx(eM,{children:ve.jsx(AN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/face-symmetry/",component:()=>ve.jsx(eM,{children:ve.jsx(AN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/body-shape-detector",component:()=>ve.jsx(eM,{children:ve.jsx(PN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/body-shape-detector/",component:()=>ve.jsx(eM,{children:ve.jsx(PN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/body-shape-detector-ai",component:()=>ve.jsx(eM,{children:ve.jsx(RN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/body-shape-detector-ai/",component:()=>ve.jsx(eM,{children:ve.jsx(RN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/golden-ratio-calculator",component:()=>ve.jsx(eM,{children:ve.jsx(EN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/golden-ratio-calculator/",component:()=>ve.jsx(eM,{children:ve.jsx(EN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/celebrity-lookalike",component:()=>ve.jsx(eM,{children:ve.jsx(NN,{})})}),ve.jsx(yh,{path:"/fr/ai-tools/celebrity-lookalike/",component:()=>ve.jsx(eM,{children:ve.jsx(NN,{})})}),ve.jsx(yh,{path:"/about",component:()=>ve.jsx(eM,{children:ve.jsx(FN,{})})}),ve.jsx(yh,{path:"/methodology",component:()=>ve.jsx(eM,{children:ve.jsx(zN,{})})}),ve.jsx(yh,{path:"/pricing",component:()=>ve.jsx(eM,{children:ve.jsx(DN,{})})}),ve.jsx(yh,{path:"/privacy-policy",component:()=>ve.jsx(eM,{children:ve.jsx(LN,{})})}),ve.jsx(yh,{path:"/terms-of-service",component:()=>ve.jsx(eM,{children:ve.jsx(MN,{})})}
2),ve.jsx(yh,{path:"/es/face-analysis",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/es/face-analysis/",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/es/style-recommendations",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/es/style-recommendations/",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/es/about",component:()=>ve.jsx(eM,{children:ve.jsx(FN,{})})}),ve.jsx(yh,{path:"/es/about/",component:()=>ve.jsx(eM,{children:ve.jsx(FN,{})})}),ve.jsx(yh,{path:"/es/methodology",component:()=>ve.jsx(eM,{children:ve.jsx(zN,{})})}),ve.jsx(yh,{path:"/es/methodology/",component:()=>ve.jsx(eM,{children:ve.jsx(zN,{})})}),ve.jsx(yh,{path:"/es/pricing",component:()=>ve.jsx(eM,{children:ve.jsx(DN,{})})}),ve.jsx(yh,{path:"/es/pricing/",component:()=>ve.jsx(eM,{children:ve.jsx(DN,{})})}),ve.jsx(yh,{path:"/es/privacy-policy",component:()=>ve.jsx(eM,{children:ve.jsx(LN,{})})}),ve.jsx(yh,{path:"/es/privacy-policy/",component:()=>ve.jsx(eM,{children:ve.jsx(LN,{})})}),ve.jsx(yh,{path:"/es/terms-of-service",component:()=>ve.jsx(eM,{children:ve.jsx(MN,{})})}),ve.jsx(yh,{path:"/es/terms-of-service/",component:()=>ve.jsx(eM,{children:ve.jsx(MN,{})})}),ve.jsx(yh,{path:"/hi/face-analysis",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/hi/face-analysis/",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/hi/style-recommendations",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/hi/style-recommendations/",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/hi/about",component:()=>ve.jsx(eM,{children:ve.jsx(FN,{})})}),ve.jsx(yh,{path:"/hi/about/",component:()=>ve.jsx(eM,{children:ve.jsx(FN,{})})}),ve.jsx(yh,{path:"/hi/methodology",component:()=>ve.jsx(eM,{children:ve.jsx(zN,{})})}),ve.jsx(yh,{path:"/hi/methodology/",component:()=>ve.jsx(eM,{children:ve.jsx(zN,{})})}),ve.jsx(yh,{path:"/hi/pricing",component:()=>ve.jsx(eM,{children:ve.jsx(DN,{})})}),ve.jsx(yh,{path:"/hi/pricing/",component:()=>ve.jsx(eM,{children:ve.jsx(DN,{})})}),ve.jsx(yh,{path:"/hi/privacy-policy",component:()=>ve.jsx(eM,{children:ve.jsx(LN,{})})}),ve.jsx(yh,{path:"/hi/privacy-policy/",component:()=>ve.jsx(eM,{children:ve.jsx(LN,{})})}),ve.jsx(yh,{path:"/hi/terms-of-service",component:()=>ve.jsx(eM,{children:ve.jsx(MN,{})})}),ve.jsx(yh,{path:"/hi/terms-of-service/",component:()=>ve.jsx(eM,{children:ve.jsx(MN,{})})}),ve.jsx(yh,{path:"/de/face-analysis",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/de/face-analysis/",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/de/style-recommendations",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/de/style-recommendations/",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/de/about",component:()=>ve.jsx(eM,{children:ve.jsx(FN,{})})}),ve.jsx(yh,{path:"/de/about/",component:()=>ve.jsx(eM,{children:ve.jsx(FN,{})})}),ve.jsx(yh,{path:"/de/methodology",component:()=>ve.jsx(eM,{children:ve.jsx(zN,{})})}),ve.jsx(yh,{path:"/de/methodology/",component:()=>ve.jsx(eM,{children:ve.jsx(zN,{})})}),ve.jsx(yh,{path:"/de/pricing",component:()=>ve.jsx(eM,{children:ve.jsx(DN,{})})}),ve.jsx(yh,{path:"/de/pricing/",component:()=>ve.jsx(eM,{children:ve.jsx(DN,{})})}),ve.jsx(yh,{path:"/de/privacy-policy",component:()=>ve.jsx(eM,{children:ve.jsx(LN,{})})}),ve.jsx(yh,{path:"/de/privacy-policy/",component:()=>ve.jsx(eM,{children:ve.jsx(LN,{})})}),ve.jsx(yh,{path:"/de/terms-of-service",component:()=>ve.jsx(eM,{children:ve.jsx(MN,{})})}),ve.jsx(yh,{path:"/de/terms-of-service/",component:()=>ve.jsx(eM,{children:ve.jsx(MN,{})})}),ve.jsx(yh,{path:"/fil/face-analysis",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/fil/face-analysis/",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/fil/style-recommendations",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/fil/style-recommendations/",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/fil/about",component:()=>ve.jsx(eM,{children:ve.jsx(FN,{})})}),ve.jsx(yh,{path:"/fil/about/",component:()=>ve.jsx(eM,{children:ve.jsx(FN,{})})}),ve.jsx(yh,{path:"/fil/methodology",component:()=>ve.jsx(eM,{children:ve.jsx(zN,{})})}),ve.jsx(yh,{path:"/fil/methodology/",component:()=>ve.jsx(eM,{children:ve.jsx(zN,{})})}),ve.jsx(yh,{path:"/fil/pricing",component:()=>ve.jsx(eM,{children:ve.jsx(DN,{})})}),ve.jsx(yh,{path:"/fil/pricing/",component:()=>ve.jsx(eM,{children:ve.jsx(DN,{})})}),ve.jsx(yh,{path:"/fil/privacy-policy",component:()=>ve.jsx(eM,{children:ve.jsx(LN,{})})}),ve.jsx(yh,{path:"/fil/privacy-policy/",component:()=>ve.jsx(eM,{children:ve.jsx(LN,{})})}),ve.jsx(yh,{path:"/fil/terms-of-service",component:()=>ve.jsx(eM,{children:ve.jsx(MN,{})})}),ve.jsx(yh,{path:"/fil/terms-of-service/",component:()=>ve.jsx(eM,{children:ve.jsx(MN,{})})}),ve.jsx(yh,{path:"/fr/face-analysis",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/fr/face-analysis/",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/fr/style-recommendations",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/fr/style-recommendations/",component:()=>ve.jsx(eM,{children:ve.jsx($N,{})})}),ve.jsx(yh,{path:"/fr/about",component:()=>ve.jsx(eM,{children:ve.jsx(FN,{})})}),ve.jsx(yh,{path:"/fr/about/",component:()=>ve.jsx(eM,{children:ve.jsx(FN,{})})}),ve.jsx(yh,{path:"/fr/methodology",component:()=>ve.jsx(eM,{children:ve.jsx(zN,{})})}),ve.jsx(yh,{path:"/fr/methodology/",component:()=>ve.jsx(eM,{children:ve.jsx(zN,{})})}),ve.jsx(yh,{path:"/fr/pricing",component:()=>ve.jsx(eM,{children:ve.jsx(DN,{})})}),ve.jsx(yh,{path:"/fr/pricing/",component:()=>ve.jsx(eM,{children:ve.jsx(DN,{})})}),ve.jsx(yh,{path:"/fr/privacy-policy",component:()=>ve.jsx(eM,{children:ve.jsx(LN,{})})}),ve.jsx(yh,{path:"/fr/privacy-policy/",component:()=>ve.jsx(eM,{children:ve.jsx(LN,{})})}),ve.jsx(yh,{path:"/fr/terms-of-service",component:()=>ve.jsx(eM,{children:ve.jsx(MN,{})})}),ve.jsx(yh,{path:"/fr/terms-of-service/",component:()=>ve.jsx(eM,{children:ve.jsx(MN,{})})}),ve.jsx(yh,{path:"/profile/:username",component:()=>ve.jsx(eM,{children:ve.jsx(VN,{})})}),ve.jsx(yh,{path:"/profile/:username/",component:()=>ve.jsx(eM,{children:ve.jsx(VN,{})})}),ve.jsx(yh,{path:"/analytics-login",component:()=>ve.jsx(eM,{children:ve.jsx(WN,{})})}),ve.jsx(yh,{path:"/analytics",component:()=>ve.jsx(eM,{children:ve.jsx(qN,{})})}),ve.jsx(yh,{path:"/system-health",component:()=>ve.jsx(eM,{children:ve.jsx(BN,{})})}),ve.jsxs(ve.Fragment,{children:[ve.jsx(yh,{path:"/api-docs",children:ve.jsx(eM,{children:ve.jsx(KN,{})})}),ve.jsx(yh,{path:"/api-docs/:view",children:ve.jsx(eM,{children:ve.jsx(KN,{})})})]}),ve.jsx(yh,{component:tM})]})})}Ed(document.getElementById("root")).render(ve.jsx(Y.StrictMode,{children:ve.jsx(rM,{})})),document.documentElement.classList.add("js"),null==(V=document.getElementById("seo-prerender"))||V.remove();export{SC as $,lC as A,sg as B,jp as C,dj as D,Hp as E,Gp as F,Mp as G,ZI as H,Dp as I,Sp as J,Vd as K,mF as L,Kk as M,Bk as N,Hk as O,Ep as P,Rp as Q,Bp as R,Zp as S,Jp as T,Qp as U,Lp as V,$k as W,em as X,uj as Y,tm as Z,bC as _,Rk as a,YD as a$,gC as a0,yC as a1,Vp as a2,Yp as a3,lN as a4,cN as a5,uN as a6,Pp as a7,Cp as a8,gN as a9,Fh as aA,Up as aB,bp as aC,vp as aD,Op as aE,Wp as aF,dp as aG,Jy as aH,Qy as aI,ev as aJ,Yy as aK,Xy as aL,Hy as aM,Zy as aN,lD as aO,OD as aP,pD as aQ,wD as aR,fD as aS,uD as aT,cD as aU,dD as aV,hD as aW,TD as aX,UD as aY,SD as aZ,MD as a_,Kp as aa,UF as ab,xk as ac,xp as ad,dh as ae,pN as af,mN as ag,GC as ah,ZC as ai,JC as aj,QC as ak,wh as al,Ah as am,Lh as an,Ph as ao,jh as ap,af as aq,rS as ar,zp as as,gp as at,vC as au,rm as av,Xp as aw,zh as ax,$h as ay,Kh as az,uT as b,qh as b0,iS as b1,jS as b2,Sd as b3,fy as b4,vg as b5,iy as b6,cg as b7,Yh as b8,_S as b9,Wh as ba,SS as bb,sf as bc,kS as bd,gg as be,Eh as bf,_p as bg,gy as bh,Gy as bi,By as b
2j,Ch as bk,ag as bl,Ip as bm,xC as bn,vD as bo,WD as bp,tL as bq,qp as br,UE as bs,VE as bt,BE as bu,qE as bv,WE as bw,KE as bx,$p as by,wk as bz,Jm as c,Ap as d,lT as e,cC as f,uC as g,dC as h,mp as i,ve as j,mC as k,hN as l,QI as m,rT as n,JI as o,iT as p,dF as q,vh as r,fh as s,cj as t,Sk as u,Tp as v,hk as w,oD as x,Uk as y,lj 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.