PageSourceSearch

https://memed.com.br/accounts/assets/index-nJNRJgbW.js

js memed.com.br collected 2026-09-24 20:18:45 UTC 1,074,944 bytes, 324 lines download raw bytes

1var DL=Object.defineProperty;var iO=e=>{throw TypeError(e)};var CL=(e,t,n)=>t in e?DL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fl=(e,t,n)=>CL(e,typeof t!="symbol"?t+"":t,n),My=(e,t,n)=>t.has(e)||iO("Cannot "+n);var U=(e,t,n)=>(My(e,t,"read from private field"),n?n.call(e):t.get(e)),Le=(e,t,n)=>t.has(e)?iO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),$e=(e,t,n,i)=>(My(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),ot=(e,t,n)=>(My(e,t,"access private method"),n);var zm=(e,t,n,i)=>({set _(r){$e(e,t,r,n)},get _(){return U(e,t,i)}});(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"e91a946462bd1679b682ee0c57a615d8957e929a"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="989e7dc2-41ab-4b8c-a6e7-e0a29edd1a09",e._sentryDebugIdIdentifier="sentry-dbid-989e7dc2-41ab-4b8c-a6e7-e0a29edd1a09")})()}catch{}function AL(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(i,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();function uN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Iy={exports:{}},Ku={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var oO;function jL(){if(oO)return Ku;oO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,r,a){var l=null;if(a!==void 0&&(l=""+a),r.key!==void 0&&(l=""+r.key),"key"in r){a={};for(var u in r)u!=="key"&&(a[u]=r[u])}else a=r;return r=a.ref,{$$typeof:e,type:i,key:l,ref:r!==void 0?r:null,props:a}}return Ku.Fragment=t,Ku.jsx=n,Ku.jsxs=n,Ku}var aO;function ML(){return aO||(aO=1,Iy.exports=jL()),Iy.exports}var v=ML(),Ic=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(){}},IL={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ua,nS,J$,PL=(J$=class{constructor(){Le(this,ua,IL);Le(this,nS,!1)}setTimeoutProvider(e){$e(this,ua,e)}setTimeout(e,t){return U(this,ua).setTimeout(e,t)}clearTimeout(e){U(this,ua).clearTimeout(e)}setInterval(e,t){return U(this,ua).setInterval(e,t)}clearInterval(e){U(this,ua).clearInterval(e)}},ua=new WeakMap,nS=new WeakMap,J$),ss=new PL;function zL(e){setTimeout(e,0)}var $s=typeof window>"u"||"Deno"in globalThis;function Zn(){}function UL(e,t){return typeof e=="function"?e(t):e}function Ub(e){return typeof e=="number"&&e>=0&&e!==1/0}function dN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _a(e,t){return typeof e=="function"?e(t):e}function Zr(e,t){return typeof e=="function"?e(t):e}function sO(e,t){const{type:n="all",exact:i,fetchStatus:r,predicate:a,queryKey:l,stale:u}=e;if(l){if(i){if(t.queryHash!==rS(l,t.options))return!1}else if(!Od(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||r&&r!==t.state.fetchStatus||a&&!a(t))}function lO(e,t){const{exact:n,status:i,predicate:r,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ns(t.options.mutationKey)!==Ns(a))return!1}else if(!Od(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||r&&!r(t))}function rS(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ns)(e)}function Ns(e){return JSON.stringify(e,(t,n)=>Lb(n)?Object.keys(n).sort().reduce((i,r)=>(i[r]=n[r],i),{}):n)}function Od(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Od(e[n],t[n])):!1}var LL=Object.prototype.hasOwnProperty;function fN(e,t){if(e===t)return e;const n=cO(e)&&cO(t);if(!n&&!(Lb(e)&&Lb(t)))return t;const r=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),l=a.length,u=n?new Array(l):{};let f=0;for(let m=0;m<l;m++){const h=n?m:a[m],g=e[h],b=t[h];if(g===b){u[h]=g,(n?m<r:LL.call(e,h))&&f++;continue}if(g===null||b===null||typeof g!="object"||typeof b!="object"){u[h]=b;continue}const _=fN(g,b);u[h]=_,_===g&&f++}return r===l&&f===r?e:u}function kh(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 cO(e){return Array.isArray(e)&&e.length===Object.keys(e).length}
vendor: 5,235 bytes, line 9
9function Lb(e){if(!uO(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!uO(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function uO(e){return Object.prototype.toString.call(e)==="[object Object]"}function FL(e){return new Promise(t=>{ss.setTimeout(t,e)})}function Fb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?fN(e,t):t}function BL(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function VL(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var iS=Symbol();function mN(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===iS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function hN(e,t){return typeof e=="function"?e(...t):!!e}var ms,da,oc,eN,HL=(eN=class extends Ic{constructor(){super();Le(this,ms);Le(this,da);Le(this,oc);$e(this,oc,t=>{if(!$s&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){U(this,da)||this.setEventListener(U(this,oc))}onUnsubscribe(){var t;this.hasListeners()||((t=U(this,da))==null||t.call(this),$e(this,da,void 0))}setEventListener(t){var n;$e(this,oc,t),(n=U(this,da))==null||n.call(this),$e(this,da,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){U(this,ms)!==t&&($e(this,ms,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof U(this,ms)=="boolean"?U(this,ms):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ms=new WeakMap,da=new WeakMap,oc=new WeakMap,eN),oS=new HL;function Bb(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});n.status="pending",n.catch(()=>{});function i(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{i({status:"fulfilled",value:r}),e(r)},n.reject=r=>{i({status:"rejected",reason:r}),t(r)},n}var qL=zL;function ZL(){let e=[],t=0,n=u=>{u()},i=u=>{u()},r=qL;const a=u=>{t?e.push(u):r(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&r(()=>{i(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||l()}return f},batchCalls:u=>(...f)=>{a(()=>{u(...f)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{r=u}}}var bn=ZL(),ac,fa,sc,tN,YL=(tN=class extends Ic{constructor(){super();Le(this,ac,!0);Le(this,fa);Le(this,sc);$e(this,sc,t=>{if(!$s&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){U(this,fa)||this.setEventListener(U(this,sc))}onUnsubscribe(){var t;this.hasListeners()||((t=U(this,fa))==null||t.call(this),$e(this,fa,void 0))}setEventListener(t){var n;$e(this,sc,t),(n=U(this,fa))==null||n.call(this),$e(this,fa,t(this.setOnline.bind(this)))}setOnline(t){U(this,ac)!==t&&($e(this,ac,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return U(this,ac)}},ac=new WeakMap,fa=new WeakMap,sc=new WeakMap,tN),Oh=new YL;function WL(e){return Math.min(1e3*2**e,3e4)}function pN(e){return(e??"online")==="online"?Oh.isOnline():!0}var Vb=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gN(e){let t=!1,n=0,i;const r=Bb(),a=()=>r.status!=="pending",l=w=>{var x;if(!a()){const E=new Vb(w);b(E),(x=e.onCancel)==null||x.call(e,E)}},u=()=>{t=!0},f=()=>{t=!1},m=()=>oS.isFocused()&&(e.networkMode==="always"||Oh.isOnline())&&e.canRun(),h=()=>pN(e.networkMode)&&e.canRun(),g=w=>{a()||(i==null||i(),r.resolve(w))},b=w=>{a()||(i==null||i(),r.reject(w))},_=()=>new Promise(w=>{var x;i=E=>{(a()||m())&&w(E)},(x=e.onPause)==null||x.call(e)}).then(()=>{var w;i=void 0,a()||(w=e.onContinue)==null||w.call(e)}),S=()=>{if(a())return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(E){w=Promise.reject(E)}Promise.resolve(w).then(g).catch(E=>{var M;if(a())return;const O=e.retry??($s?0:3),R=e.retryDelay??WL,$=typeof R=="function"?R(n,E):R,N=O===!0||typeof O=="number"&&n<O||typeof O=="function"&&O(n,E);if(t||!N){b(E);return}n++,(M=e.onFail)==null||M.call(e,n,E),FL($).then(()=>m()?void 0:_()).then(()=>{t?b(E):S()})})};return{promise:r,status:()=>r.status,cancel:l,continue:()=>(i==null||i(),r),cancelRetry:u,continueRetry:f,canStart:h,start:()=>(h()?S():_().then(S),r)}}var hs,nN,vN=(nN=class{constructor(){Le(this,hs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ub(this.gcTime)&&$e(this,hs,ss.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??($s?1/0:5*60*1e3))}clearGcTimeout(){U(this,hs)&&(ss.clearTimeout(U(this,hs)),$e(this,hs,void 0))}},hs=new WeakMap,nN),ps,lc,qr,gs,On,Fd,vs,ni,fo,rN,GL=(rN=class extends vN{constructor(t){super();Le(this,ni);Le(this,ps);Le(this,lc);Le(this,qr);Le(this,gs);Le(this,On);Le(this,Fd);Le(this,vs);$e(this,vs,!1),$e(this,Fd,t.defaultOptions),this.setOptions(t.options),this.observers=[],$e(this,gs,t.client),$e(this,qr,
9U(this,gs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,$e(this,ps,dO(this.options)),this.state=t.state??U(this,ps),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=U(this,On))==null?void 0:t.promise}setOptions(t){if(this.options={...U(this,Fd),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=dO(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),$e(this,ps,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,qr).remove(this)}setData(t,n){const i=Fb(this.state.data,t,this.options);return ot(this,ni,fo).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){ot(this,ni,fo).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,r;const n=(i=U(this,On))==null?void 0:i.promise;return(r=U(this,On))==null||r.cancel(t),n?n.then(Zn).catch(Zn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(U(this,ps))}isActive(){return this.observers.some(t=>Zr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===iS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>_a(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!dN(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=U(this,On))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=U(this,On))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),U(this,qr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(U(this,On)&&(U(this,vs)?U(this,On).cancel({revert:!0}):U(this,On).cancelRetry()),this.scheduleGc()),U(this,qr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ot(this,ni,fo).call(this,{type:"invalidate"})}async fetch(t,n){var f,m,h,g,b,_,S,w,x,E,O,R;if(this.state.fetchStatus!=="idle"&&((f=U(this,On))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(U(this,On))return U(this,On).continueRetry(),U(this,On).promise}if(t&&this.setOptions(t),!this.options.queryFn){const $=this.observers.find(N=>N.options.queryFn);$&&this.setOptions($.options)}const i=new AbortController,r=$=>{Object.defineProperty($,"signal",{enumerable:!0,get:()=>($e(this,vs,!0),i.signal)})},a=()=>{const $=mN(this.options,n),M=(()=>{const C={client:U(this,gs),queryKey:this.queryKey,meta:this.meta};return r(C),C})();return $e(this,vs,!1),this.options.persister?this.options.persister($,M,this):$(M)},u=(()=>{const $={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:U(this,gs),state:this.state,fetchFn:a};return r($),$})();(m=this.options.behavior)==null||m.onFetch(u,this),$e(this,lc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=u.fetchOptions)==null?void 0:h.meta))&&ot(this,ni,fo).call(this,{type:"fetch",meta:(g=u.fetchOptions)==null?void 0:g.meta}),$e(this,On,gN({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:$=>{$ instanceof Vb&&$.revert&&this.setState({...U(this,lc),fetchStatus:"idle"}),i.abort()},onFail:($,N)=>{ot(this,ni,fo).call(this,{type:"failed",failureCount:$,error:N})},onPause:()=>{ot(this,ni,fo).call(this,{type:"pause"})},onContinue:()=>{ot(this,ni,fo).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const $=await U(this,On).start();if($===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData($),(_=(b=U(this,qr).config).onSuccess)==null||_.call(b,$,this),(w=(S=U(this,qr).config).onSettled)==null||w.call(S,$,this.state.error,this),$}catch($){if($ instanceof Vb){if($.silent)return U(this,On).promise;if($.revert){if(this.state.data===void 0)throw $;return this.state.data}}throw ot(this,ni,fo).call(this,{type:"error",error:$}),(E=(x=U(this,qr).config).onError)==null||E.call(x,$,this),(R=(O=U(this,qr).config).onSettled)==null||R.call(O,this.state.data,$,this),$}finally{this.scheduleGc()}}},ps=new WeakMap,lc=new WeakMap,qr=new WeakMap,gs=new WeakMap,On=new WeakMap,Fd=new WeakMap,vs=new WeakMap,ni=new WeakSet,fo=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...yN(i.data,this.options),fetchMeta:t.meta??null};case"success":const r={...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return $e(this,lc,t.manual?r:void 0),r;case"error":const a=t.error;
vendor: 13,778 bytes, line 9
9return{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),bn.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),U(this,qr).notify({query:this,type:"updated",action:t})})},rN);function yN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function dO(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var sr,pt,Bd,Hn,ys,cc,mo,ma,Vd,uc,dc,bs,_s,ha,fc,Et,fd,Hb,qb,Zb,Yb,Wb,Gb,Kb,_N,iN,bN=(iN=class extends Ic{constructor(t,n){super();Le(this,Et);Le(this,sr);Le(this,pt);Le(this,Bd);Le(this,Hn);Le(this,ys);Le(this,cc);Le(this,mo);Le(this,ma);Le(this,Vd);Le(this,uc);Le(this,dc);Le(this,bs);Le(this,_s);Le(this,ha);Le(this,fc,new Set);this.options=n,$e(this,sr,t),$e(this,ma,null),$e(this,mo,Bb()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(U(this,pt).addObserver(this),fO(U(this,pt),this.options)?ot(this,Et,fd).call(this):this.updateResult(),ot(this,Et,Yb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xb(U(this,pt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xb(U(this,pt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ot(this,Et,Wb).call(this),ot(this,Et,Gb).call(this),U(this,pt).removeObserver(this)}setOptions(t){const n=this.options,i=U(this,pt);if(this.options=U(this,sr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Zr(this.options.enabled,U(this,pt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ot(this,Et,Kb).call(this),U(this,pt).setOptions(this.options),n._defaulted&&!kh(this.options,n)&&U(this,sr).getQueryCache().notify({type:"observerOptionsUpdated",query:U(this,pt),observer:this});const r=this.hasListeners();r&&mO(U(this,pt),i,this.options,n)&&ot(this,Et,fd).call(this),this.updateResult(),r&&(U(this,pt)!==i||Zr(this.options.enabled,U(this,pt))!==Zr(n.enabled,U(this,pt))||_a(this.options.staleTime,U(this,pt))!==_a(n.staleTime,U(this,pt)))&&ot(this,Et,Hb).call(this);const a=ot(this,Et,qb).call(this);r&&(U(this,pt)!==i||Zr(this.options.enabled,U(this,pt))!==Zr(n.enabled,U(this,pt))||a!==U(this,ha))&&ot(this,Et,Zb).call(this,a)}getOptimisticResult(t){const n=U(this,sr).getQueryCache().build(U(this,sr),t),i=this.createResult(n,t);return XL(this,i)&&($e(this,Hn,i),$e(this,cc,this.options),$e(this,ys,U(this,pt).state)),i}getCurrentResult(){return U(this,Hn)}trackResult(t,n){return new Proxy(t,{get:(i,r)=>(this.trackProp(r),n==null||n(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&U(this,mo).status==="pending"&&U(this,mo).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,r))})}trackProp(t){U(this,fc).add(t)}getCurrentQuery(){return U(this,pt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=U(this,sr).defaultQueryOptions(t),i=U(this,sr).getQueryCache().build(U(this,sr),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(t){return ot(this,Et,fd).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),U(this,Hn)))}createResult(t,n){var V;const i=U(this,pt),r=this.options,a=U(this,Hn),l=U(this,ys),u=U(this,cc),m=t!==i?t.state:U(this,Bd),{state:h}=t;let g={...h},b=!1,_;if(n._optimisticResults){const L=this.hasListeners(),K=!L&&fO(t,n),H=L&&mO(t,i,n,r);(K||H)&&(g={...g,...yN(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:S,errorUpdatedAt:w,status:x}=g;_=g.data;let E=!1;if(n.placeholderData!==void 0&&_===void 0&&x==="pending"){let L;a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(L=a.data,E=!0):L=typeof n.placeholderData=="function"?n.placeholderData((V=U(this,dc))==null?void 0:V.state.data,U(this,dc)):n.placeholderData,L!==void 0&&(x="success",_=Fb(a==null?void 0:a.data,L,n),b=!0)}if(n.select&&_!==void 0&&!E)if(a&&_===(l==null?void 0:l.data)&&n.select===U(this,Vd))_=U(this,uc);else try{$e(this,Vd,n.select),_=n.select(_),_=Fb(a==null?void 0:a.data,_,n),$e(this,uc,_),$e(this,ma,null)}catch(L){$e(this,ma,L)}U(this,ma)&&(S=U(this,ma),_=U(this,uc),w=Date.now(),x="error");const O=g.fetchStatus==="fetching",R=x==="pending",$=x==="error",N=R&&O,M=_!==void 0,I={status:x,fetchStatus:g.fetchStatus,isPending:R,isSuccess:x==="success",isError:$,isInitialLoading:N,isLoading:N,data:_,dataUpdatedAt:g.dataUpdatedAt,error:S,errorUpdatedAt:w,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>m.dataUpdateCount||g.errorUpdateCount>m.errorUpdateCount,isFetching:O,isRefetching:O&&!R,isLoadingError:$&&!M,isPaused:g.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:$&&M,isStale:aS(t,n),refetch:this.refetch,promise:U(this,mo),isEnabled:Zr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const L=F=>{I.status==="error"?F.reject(I.error):I.data!==void 0&&F.resolve(I.data)},K=()=>{const F=$e(this,mo,I.promise=Bb());L(F)},H=U(this,mo);switch(H.status){case"pending":t.queryHash===i.queryHash&&L(H);break;case"fulfilled":(I.status==="error"||I.data!==H.value)&&K();break;case"rejected":(I.status!=="error"||I.error!==H.reason)&&K();break}}return I}updateResult(){const t=U(this,Hn),n=this.createResult(U(this,pt),this.options);if($e(this,ys,U(this,pt).state),$e(this,cc,this.options),U(this,ys).data!==void 0&&$e(this,dc,U(this,pt)),kh(n,t))return;$e(this,Hn,n);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!U(this,fc).size)return!0;const l=new Set(a??U(this,fc));return this.options.throwOnError&&l.add("error"),Object.keys(U(this,Hn)).some(u=>{const f=u;return U(this,Hn)[f]!==t[f]&&l.has(f)})};ot(this,Et,_N).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ot(this,Et,Yb).call(this)}},sr=new WeakMap,pt=new WeakMap,Bd=new WeakMap,Hn=new WeakMap,ys=new WeakMap,cc=new WeakMap,mo=new WeakMap,ma=new WeakMap,Vd=new WeakMap,uc=new WeakMap,dc=new WeakMap,bs=new WeakMap,_s=new WeakMap,ha=new WeakMap,fc=new WeakMap,Et=new WeakSet,fd=function(t){ot(this,Et,Kb).call(this);let n=U(this,pt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Zn)),n},Hb=function(){ot(this,Et,Wb).call(this);const t=_a(this.options.staleTime,U(this,pt));if($s||U(this,Hn).isStale||!Ub(t))return;const i=dN(U(this,Hn).dataUpdatedAt,t)+1;$e(this,bs,ss.setTimeout(()=>{U(this,Hn).isStale||this.updateResult()},i))},qb=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(U(this,pt)):this.options.refetchInterval)??!1},Zb=function(t){ot(this,Et,Gb).call(this),$e(this,ha,t),!($s||Zr(this.options.enabled,U(this,pt))===!1||!Ub(U(this,ha))||U(this,ha)===0)&&$e(this,_s,ss.setInterval(()=>{(this.options.refetchIntervalInBackground||oS.isFocused())&&ot(this,Et,fd).call(this)},U(this,ha)))},Yb=function(){ot(this,Et,Hb).call(this),ot(this,Et,Zb).call(this,ot(this,Et,qb).call(this))},Wb=function(){U(this,bs)&&(ss.clearTimeout(U(this,bs)),$e(this,bs,void 0))},Gb=function(){U(this,_s)&&(ss.clearInterval(U(this,_s)),$e(this,_s,void 0))},Kb=function(){const t=U(this,sr).getQueryCache().build(U(this,sr),this.options);if(t===U(this,pt))return;const n=U(this,pt);$e(this,pt,t),$e(this,Bd,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},_N=function(t){bn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(U(this,Hn))}),U(this,sr).getQueryCache().notify({query:U(this,pt),type:"observerResultsUpdated"})})},iN);function KL(e,t){return Zr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function fO(e,t){return KL(e,t)||e.state.data!==void 0&&Xb(e,t,t.refetchOnMount)}function Xb(e,t,n){if(Zr(t.enabled,e)!==!1&&_a(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&aS(e,t)}return!1}function mO(e,t,n,i){return(e!==t||Zr(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&aS(e,n)}function aS(e,t){return Zr(t.enabled,e)!==!1&&e.isStaleByTime(_a(t.staleTime,e))}function XL(e,t){return!kh(e.getCurrentResult(),t)}function hO(e){return{onFetch:(t,n)=>{var h,g,b,_,S;const i=t.options,r=(b=(g=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:g.fetchMore)==null?void 0:b.direction,a=((_=t.state.data)==null?void 0:_.pages)||[],l=((S=t.state.data)==null?void 0:S.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const m=async()=>{let w=!1;const x=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},E=mN(t.options,t.fetchOptions),O=async(R,$,N)=>{if(w)return Promise.reject();if($==null&&R.pages.length)return Promise.resolve(R);const C=(()=>{const K={client:t.client,queryKey:t.queryKey,pageParam:$,direction:N?"backward":"forward",meta:t.options.meta};return x(K),K})(),I=await E(C),{maxPages:V}=t.options,L=N?VL:BL;return{pages:L(R.pages,I,V),pageParams:L(R.pageParams,$,V)}};if(r&&a.length){const R=r==="backward",$=R?QL:pO,N={pages:a,pageParams:l},M=$(i,N);u=await O(N,M,R)}else{const R=e??a.length;do{const $=f===0?l[0]??i.initialPageParam:pO(i,u);if(f>0&&$==null)break;u=await O(u,$),f++}while(f<R)}return u};t.options.persister?t.fetchFn=()=>{var w,x;return(x=(w=t.options).persister)==null?void 0:x.call(w,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=m}}}function pO(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function QL(e,{pages:t,pageParams:n}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n):void 0}var Hd,Ti,qn,Ss,Ri,la,oN,JL=(oN=class extends vN{constructor(t){super();Le(this,Ri);Le(this,Hd);Le(this,Ti);Le(this,qn);Le(this,Ss);$e(this,Hd,t.client),this.mutationId=t.mutationId,$e(this,qn,t.mutationCache),$e(this,Ti,[]),this.state=t.state||SN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){U(this,Ti).includes(t)||(U(this,Ti).push(t),this.clearGcTimeout(),U(this,qn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){$e(this,Ti,U(this,Ti).filter(n=>n!==t)),this.scheduleGc(),U(this,qn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){U(this,Ti).length||(this.state.status==="pending"?this.scheduleGc():U(this,qn).remove(this))}continue(){var t;return((t=U(this,Ss))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,u,f,m,h,g,b,_,S,w,x,E,O,R,$,N,M,C,I,V;const n=()=>{ot(this,Ri,la).call(this,{type:"continue"})},i={client:U(this,Hd),meta:this.options.meta,mutationKey:this.options.mutationKey};$e(this,Ss,gN({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(L,K)=>{ot(this,Ri,la).call(this,{type:"failed",failureCount:L,error:K})},onPause:()=>{ot(this,Ri,la).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,qn).canRun(this)}));const r=this.state.status==="pending",a=!U(this,Ss).canStart();try{if(r)n();else{ot(this,Ri,la).call(this,{type:"pending",variables:t,isPaused:a}),await((u=(l=U(this,qn).config).onMutate)==null?void 0:u.call(l,t,this,i));const K=await((m=(f=this.options).onMutate)==null?void 0:m.call(f,t,i));K!==this.state.context&&ot(this,Ri,la).call(this,{type:"pending",context:K,variables:t,isPaused:a})}const L=await U(this,Ss).start();return await((g=(h=U(this,qn).config).onSuccess)==null?void 0:g.call(h,L,t,this.state.context,this,i)),await((_=(b=this.options).onSuccess)==null?void 0:_.call(b,L,t,this.state.context,i)),await((w=(S=U(this,qn).config).onSettled)==null?void 0:w.call(S,L,null,this.state.variables,this.state.context,this,i)),await((E=(x=this.options).onSettled)==null?void 0:E.call(x,L,null,t,this.state.context,i)),ot(this,Ri,la).call(this,{type:"success",data:L}),L}catch(L){try{throw await((R=(O=U(this,qn).config).onError)==null?void 0:R.call(O,L,t,this.state.context,this,i)),await((N=($=this.options).onError)==null?void 0:N.call($,L,t,this.state.context,i)),await((C=(M=U(this,qn).config).onSettled)==null?void 0:C.call(M,void 0,L,this.state.variables,this.state.context,this,i)),await((V=(I=this.options).onSettled)==null?void 0:V.call(I,void 0,L,t,this.state.context,i)),L}finally{ot(this,Ri,la).call(this,{type:"error",error:L})}}finally{U(this,qn).runNext(this)}}},Hd=new WeakMap,Ti=new WeakMap,qn=new WeakMap,Ss=new WeakMap,Ri=new WeakSet,la=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};
9case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),bn.batch(()=>{U(this,Ti).forEach(i=>{i.onMutationUpdate(t)}),U(this,qn).notify({mutation:this,type:"updated",action:t})})},oN);function SN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ho,ri,qd,aN,e3=(aN=class extends Ic{constructor(t={}){super();Le(this,ho);Le(this,ri);Le(this,qd);this.config=t,$e(this,ho,new Set),$e(this,ri,new Map),$e(this,qd,0)}build(t,n,i){const r=new JL({client:t,mutationCache:this,mutationId:++zm(this,qd)._,options:t.defaultMutationOptions(n),state:i});return this.add(r),r}add(t){U(this,ho).add(t);const n=Um(t);if(typeof n=="string"){const i=U(this,ri).get(n);i?i.push(t):U(this,ri).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(U(this,ho).delete(t)){const n=Um(t);if(typeof n=="string"){const i=U(this,ri).get(n);if(i)if(i.length>1){const r=i.indexOf(t);r!==-1&&i.splice(r,1)}else i[0]===t&&U(this,ri).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Um(t);if(typeof n=="string"){const i=U(this,ri).get(n),r=i==null?void 0:i.find(a=>a.state.status==="pending");return!r||r===t}else return!0}runNext(t){var i;const n=Um(t);if(typeof n=="string"){const r=(i=U(this,ri).get(n))==null?void 0:i.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){bn.batch(()=>{U(this,ho).forEach(t=>{this.notify({type:"removed",mutation:t})}),U(this,ho).clear(),U(this,ri).clear()})}getAll(){return Array.from(U(this,ho))}find(t){const n={exact:!0,...t};return this.getAll().find(i=>lO(n,i))}findAll(t={}){return this.getAll().filter(n=>lO(t,n))}notify(t){bn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return bn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Zn))))}},ho=new WeakMap,ri=new WeakMap,qd=new WeakMap,aN);function Um(e){var t;return(t=e.options.scope)==null?void 0:t.id}var po,pa,lr,go,ko,dh,Qb,sN,t3=(sN=class extends Ic{constructor(n,i){super();Le(this,ko);Le(this,po);Le(this,pa);Le(this,lr);Le(this,go);$e(this,po,n),this.setOptions(i),this.bindMethods(),ot(this,ko,dh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var r;const i=this.options;this.options=U(this,po).defaultMutationOptions(n),kh(this.options,i)||U(this,po).getMutationCache().notify({type:"observerOptionsUpdated",mutation:U(this,lr),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Ns(i.mutationKey)!==Ns(this.options.mutationKey)?this.reset():((r=U(this,lr))==null?void 0:r.state.status)==="pending"&&U(this,lr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=U(this,lr))==null||n.removeObserver(this)}onMutationUpdate(n){ot(this,ko,dh).call(this),ot(this,ko,Qb).call(this,n)}getCurrentResult(){return U(this,pa)}reset(){var n;(n=U(this,lr))==null||n.removeObserver(this),$e(this,lr,void 0),ot(this,ko,dh).call(this),ot(this,ko,Qb).call(this)}mutate(n,i){var r;return $e(this,go,i),(r=U(this,lr))==null||r.removeObserver(this),$e(this,lr,U(this,po).getMutationCache().build(U(this,po),this.options)),U(this,lr).addObserver(this),U(this,lr).execute(n)}},po=new WeakMap,pa=new WeakMap,lr=new WeakMap,go=new WeakMap,ko=new WeakSet,dh=function(){var i;const n=((i=U(this,lr))==null?void 0:i.state)??SN();$e(this,pa,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Qb=function(n){bn.batch(()=>{var i,r,a,l,u,f,m,h;if(U(this,go)&&this.hasListeners()){const g=U(this,pa).variables,b=U(this,pa).context,_={client:U(this,po),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((r=(i=U(this,go)).onSuccess)==null||r.call(i,n.data,g,b,_),(l=(a=U(this,go)).onSettled)==null||l.call(a,n.data,null,g,b,_)):(n==null?void 0:n.type)==="error"&&((f=(u=U(this,go)).onError)==null||f.call(u,n.error,g,b,_),(h=(m=U(this,go)).onSettled)==null||h.call(m,void 0,n.error,g,b,_))}
vendor: 4,743 bytes, line 9
9this.listeners.forEach(g=>{g(U(this,pa))})})},sN),$i,lN,n3=(lN=class extends Ic{constructor(t={}){super();Le(this,$i);this.config=t,$e(this,$i,new Map)}build(t,n,i){const r=n.queryKey,a=n.queryHash??rS(r,n);let l=this.get(a);return l||(l=new GL({client:t,queryKey:r,queryHash:a,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(r)}),this.add(l)),l}add(t){U(this,$i).has(t.queryHash)||(U(this,$i).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=U(this,$i).get(t.queryHash);n&&(t.destroy(),n===t&&U(this,$i).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){bn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return U(this,$i).get(t)}getAll(){return[...U(this,$i).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>sO(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>sO(t,i)):n}notify(t){bn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){bn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){bn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},$i=new WeakMap,lN),Zt,ga,va,mc,hc,ya,pc,gc,cN,r3=(cN=class{constructor(e={}){Le(this,Zt);Le(this,ga);Le(this,va);Le(this,mc);Le(this,hc);Le(this,ya);Le(this,pc);Le(this,gc);$e(this,Zt,e.queryCache||new n3),$e(this,ga,e.mutationCache||new e3),$e(this,va,e.defaultOptions||{}),$e(this,mc,new Map),$e(this,hc,new Map),$e(this,ya,0)}mount(){zm(this,ya)._++,U(this,ya)===1&&($e(this,pc,oS.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,Zt).onFocus())})),$e(this,gc,Oh.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,Zt).onOnline())})))}unmount(){var e,t;zm(this,ya)._--,U(this,ya)===0&&((e=U(this,pc))==null||e.call(this),$e(this,pc,void 0),(t=U(this,gc))==null||t.call(this),$e(this,gc,void 0))}isFetching(e){return U(this,Zt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return U(this,ga).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=U(this,Zt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=U(this,Zt).build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(_a(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return U(this,Zt).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),r=U(this,Zt).get(i.queryHash),a=r==null?void 0:r.state.data,l=UL(t,a);if(l!==void 0)return U(this,Zt).build(this,i).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return bn.batch(()=>U(this,Zt).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=U(this,Zt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=U(this,Zt);bn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=U(this,Zt);return bn.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=bn.batch(()=>U(this,Zt).findAll(e).map(r=>r.cancel(n)));return Promise.all(i).then(Zn).catch(Zn)}invalidateQueries(e,t={}){return bn.batch(()=>(U(this,Zt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=bn.batch(()=>U(this,Zt).findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let a=r.fetch(void 0,n);return n.throwOnError||(a=a.catch(Zn)),r.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=U(this,Zt).build(this,t);return n.isStaleByTime(_a(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e.behavior=hO(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e.behavior=hO(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Oh.isOnline()?U(this,ga).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,Zt)}getMutationCache(){return U(this,ga)}getDefaultOptions(){return U(this,va)}setDefaultOptions(e){$e(this,va,e)}setQueryDefaults(e,t){U(this,mc).set(Ns(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...U(this,mc).values()],n={};return t.forEach(i=>
vendor: 9,641 bytes, lines 9-17
9{Od(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){U(this,hc).set(Ns(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...U(this,hc).values()],n={};return t.forEach(i=>{Od(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...U(this,va).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=rS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===iS&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...U(this,va).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){U(this,Zt).clear(),U(this,ga).clear()}},Zt=new WeakMap,ga=new WeakMap,va=new WeakMap,mc=new WeakMap,hc=new WeakMap,ya=new WeakMap,pc=new WeakMap,gc=new WeakMap,cN),Py={exports:{}},rt={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var gO;function i3(){if(gO)return rt;gO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.iterator;function b(A){return A===null||typeof A!="object"?null:(A=g&&A[g]||A["@@iterator"],typeof A=="function"?A:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function x(A,ne,Z){this.props=A,this.context=ne,this.refs=w,this.updater=Z||_}x.prototype.isReactComponent={},x.prototype.setState=function(A,ne){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,ne,"setState")},x.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function E(){}E.prototype=x.prototype;function O(A,ne,Z){this.props=A,this.context=ne,this.refs=w,this.updater=Z||_}var R=O.prototype=new E;R.constructor=O,S(R,x.prototype),R.isPureReactComponent=!0;var $=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},M=Object.prototype.hasOwnProperty;function C(A,ne,Z,X,le,me){return Z=me.ref,{$$typeof:e,type:A,key:ne,ref:Z!==void 0?Z:null,props:me}}function I(A,ne){return C(A.type,ne,void 0,void 0,void 0,A.props)}function V(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function L(A){var ne={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Z){return ne[Z]})}var K=/\/+/g;function H(A,ne){return typeof A=="object"&&A!==null&&A.key!=null?L(""+A.key):ne.toString(36)}function F(){}function ae(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(F,F):(A.status="pending",A.then(function(ne){A.status==="pending"&&(A.status="fulfilled",A.value=ne)},function(ne){A.status==="pending"&&(A.status="rejected",A.reason=ne)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function ue(A,ne,Z,X,le){var me=typeof A;(me==="undefined"||me==="boolean")&&(A=null);var be=!1;if(A===null)be=!0;else switch(me){case"bigint":case"string":case"number":be=!0;break;case"object":switch(A.$$typeof){case e:case t:be=!0;break;case h:return be=A._init,ue(be(A._payload),ne,Z,X,le)}}if(be)return le=le(A),be=X===""?"."+H(A,0):X,$(le)?(Z="",be!=null&&(Z=be.replace(K,"$&/")+"/"),ue(le,ne,Z,"",function(Ne){return Ne})):le!=null&&(V(le)&&(le=I(le,Z+(le.key==null||A&&A.key===le.key?"":(""+le.key).replace(K,"$&/")+"/")+be)),ne.push(le)),1;be=0;var ce=X===""?".":X+":";if($(A))for(var Ee=0;Ee<A.length;Ee++)X=A[Ee],me=ce+H(X,Ee),be+=ue(X,ne,Z,me,le);else if(Ee=b(A),typeof Ee=="function")for(A=Ee.call(A),Ee=0;!(X=A.next()).done;)X=X.value,me=ce+H(X,Ee++),be+=ue(X,ne,Z,me,le);else if(me==="object"){if(typeof A.then=="function")return ue(ae(A),ne,Z,X,le);throw ne=String(A),Error("Objects are not valid as a React child (found: "+(ne==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":ne)+"). If you meant to render a collection of children, use an array instead.")}return be}function j(A,ne,Z){if(A==null)return A;var X=[],le=0;return ue(A,X,"","",function(me){return ne.call(Z,me,le++)}),X}function G(A){if(A._status===-1){var ne=A._result;ne=ne(),ne.then(function(Z){(A._status===0||A._status===-1)&&(A._status=1,A._result=Z)},function(Z){(A._status===0||A._status===-1)&&(A._status=2,A._result=Z)}),A._status===-1&&(A._status=0,A._result=ne)}if(A._status===1)return A._result.default;throw A._result}var B=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ne=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(ne))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)};function fe(){}return rt.Children={map:j,forEach:function(A,ne,Z){j(A,function(){ne.apply(this,arguments)},Z)},count:function(A){var ne=0;return j(A,function(){ne++}),ne},toArray:function(A){return j(A,function(ne){return ne})||[]},only:function(A){if(!V(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},rt.Component=x,rt.Fragment=n,rt.Profiler=r,rt.PureComponent=O,rt.StrictMode=i,rt.Suspense=f,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,rt.__COMPILER_RUNTIME={__proto__:null,c:function(A){return N.H.useMemoCache(A)}},rt.cache=function(A){return function(){return A.apply(null,arguments)}},rt.cloneElement=function(A,ne,Z){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var X=S({},A.props),le=A.key,me=void 0;if(ne!=null)for(be in ne.ref!==void 0&&(me=void 0),ne.key!==void 0&&(le=""+ne.key),ne)!M.call(ne,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&ne.ref===void 0||(X[be]=ne[be]);var be=arguments.length-2;if(be===1)X.children=Z;else if(1<be){for(var ce=Array(be),Ee=0;Ee<be;Ee++)ce[Ee]=arguments[Ee+2];X.children=ce}return C(A.type,le,void 0,void 0,me,X)},rt.createContext=function(A){return A={$$typeof:l,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:a,_context:A},A},rt.createElement=function(A,ne,Z){var X,le={},me=null;if(ne!=null)for(X in ne.key!==void 0&&(me=""+ne.key),ne)M.call(ne,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(le[X]=ne[X]);var be=arguments.length-2;if(be===1)le.children=Z;else if(1<be){for(var ce=Array(be),Ee=0;Ee<be;Ee++)ce[Ee]=arguments[Ee+2];le.children=ce}if(A&&A.defaultProps)for(X in be=A.defaultProps,be)le[X]===void 0&&(le[X]=be[X]);return C(A,me,void 0,void 0,null,le)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(A){return{$$typeof:u,render:A}},rt.isValidElement=V,rt.lazy=function(A){return{$$typeof:h,_payload:{_status:-1,_result:A},_init:G}},rt.memo=function(A,ne){return{$$typeof:m,type:A,compare:ne===void 0?null:ne}},rt.startTransition=function(A){var ne=N.T,Z={};N.T=Z;try{var X=A(),le=N.S;le!==null&&le(Z,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(fe,B)}catch(me){B(me)}finally{N.T=ne}},rt.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},rt.use=function(A){return N.H.use(A)},rt.useActionState=function(A,ne,Z){return N.H.useActionState(A,ne,Z)},rt.useCallback=function(A,ne){return N.H.useCallback(A,ne)},rt.useContext=function(A){return N.H.useContext(A)},rt.useDebugValue=function(){},rt.useDeferredValue=function(A,ne){return N.H.useDeferredValue(A,ne)},rt.useEffect=function(A,ne,Z){var X=N.H;if(typeof Z=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return X.useEffect(A,ne)},rt.useId=function(){return N.H.useId()},rt.useImperativeHandle=function(A,ne,Z){return N.H.useImperativeHandle(A,ne,Z)},rt.useInsertionEffect=function(A,ne){return N.H.useInsertionEffect(A,ne)},rt.useLayoutEffect=function(A,ne){return N.H.useLayoutEffect(A,ne)},rt.useMemo=function(A,ne){return N.H.useMemo(A,ne)},rt.useOptimistic=function(A,ne){return N.H.useOptimistic(A,ne)},rt.useReducer=function(A,ne,Z){return N.H.useReducer(A,ne,Z)},rt.useRef=function(A){return N.H.useRef(A)},rt.useState=function(A){return N.H.useState(A)},rt.useSyncExternalStore=function(A,ne,Z){return N.H.useSyncExternalStore(A,ne,Z)},rt.useTransition=function(){return N.H.useTransition()},rt.version="19.1.0",rt}var vO;function Zd(){return vO||(vO=1,Py.exports=i3()),Py.exports}var k=Zd();const Y=uN(k),wN=AL({__proto__:null,default:Y},[k]);var xN=k.createContext(void 0),EN=e=>{const t=k.useContext(xN);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},o3=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(xN.Provider,{value:e,children:t})),kN=k.createContext(!1),a3=()=>k.useContext(kN);kN.Provider;function s3(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
17var l3=k.createContext(s3()),c3=()=>k.useContext(l3),u3=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},d3=e=>{k.useEffect(()=>{e.clearReset()},[e])},f3=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(r&&e.data===void 0||hN(n,[e.error,i])),m3=(e,t)=>t.state.data===void 0,h3=e=>{if(e.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...r)=>n(i(...r)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},p3=(e,t)=>e.isLoading&&e.isFetching&&!t,g3=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,yO=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function ON(e,t,n){var g,b,_,S,w;const i=a3(),r=c3(),a=EN(),l=a.defaultQueryOptions(e);(b=(g=a.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||b.call(g,l),l._optimisticResults=i?"isRestoring":"optimistic",h3(l),u3(l,r),d3(r);const u=!a.getQueryCache().get(l.queryHash),[f]=k.useState(()=>new t(a,l)),m=f.getOptimisticResult(l),h=!i&&e.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(x=>{const E=h?f.subscribe(bn.batchCalls(x)):Zn;return f.updateResult(),E},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),k.useEffect(()=>{f.setOptions(l)},[l,f]),g3(l,m))throw yO(l,f,r);if(f3({result:m,errorResetBoundary:r,throwOnError:l.throwOnError,query:a.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw m.error;if((S=(_=a.getDefaultOptions().queries)==null?void 0:_._experimental_afterQuery)==null||S.call(_,l,m),l.experimental_prefetchInRender&&!$s&&p3(m,i)){const x=u?yO(l,f,r):(w=a.getQueryCache().get(l.queryHash))==null?void 0:w.promise;x==null||x.catch(Zn).finally(()=>{f.updateResult()})}return l.notifyOnChangeProps?m:f.trackResult(m)}function TN(e,t){return ON(e,bN)}function RN(e,t){return ON({...e,enabled:!0,suspense:!0,throwOnError:m3,placeholderData:void 0},bN)}function Li(e,t){const n=EN(),[i]=k.useState(()=>new t3(n,e));k.useEffect(()=>{i.setOptions(e)},[i,e]);const r=k.useSyncExternalStore(k.useCallback(l=>i.subscribe(bn.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=k.useCallback((l,u)=>{i.mutate(l,u).catch(Zn)},[i]);if(r.error&&hN(i.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:a,mutateAsync:r.mutate}}const Ql=new WeakMap,fh=new WeakMap,Th={current:[]};let zy=!1,_d=0;const md=new Set,Lm=new Map;function $N(e){const t=Array.from(e).sort((n,i)=>n instanceof Jl&&n.options.deps.includes(i)?1:i instanceof Jl&&i.options.deps.includes(n)?-1:0);for(const n of t){if(Th.current.includes(n))continue;Th.current.push(n),n.recompute();const i=fh.get(n);if(i)for(const r of i){const a=Ql.get(r);a&&$N(a)}}}function v3(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function y3(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function NN(e){if(_d>0&&!Lm.has(e)&&Lm.set(e,e.prevState),md.add(e),!(_d>0)&&!zy)try{for(zy=!0;md.size>0;){const t=Array.from(md);md.clear();for(const n of t){const i=Lm.get(n)??n.prevState;n.prevState=i,v3(n)}for(const n of t){const i=Ql.get(n);i&&(Th.current.push(n),$N(i))}for(const n of t){const i=Ql.get(n);if(i)for(const r of i)y3(r)}}}finally{zy=!1,Th.current=[],Lm.clear()}}function Sd(e){_d++;try{e()}finally{if(_d--,_d===0){const t=md.values().next().value;t&&NN(t)}}}function b3(e){return typeof e=="function"}class Jb{constructor(t,n){this.listeners=new Set,this.subscribe=i=>{var r,a;this.listeners.add(i);const l=(a=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:a.call(r,i,this);return()=>{this.listeners.delete(i),l==null||l()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,i,r;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):b3(t)?this.state=t(this.prevState):this.state=t,(r=(i=this.options)==null?void 0:i.onUpdate)==null||r.call(i),NN(this)}}class Jl{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const n=this.options.deps.length,i=new Array(n),r=new Array(n);for(let a=0;a<n;a++){const l=this.options.deps[a];i[a]=l.prevState,r[a]=l.state}return this.lastSeenDepValues=r,{prevDepVals:i,currDepVals:r,prevVal:this.prevState??void 0}},this.recompute=()=>{var n,i;this.prevState=this.state;const r=this.getDepVals();this.state=this.options.fn(r),(i=(n=this.options).onUpdate)==null||i.call(n)},this.checkIfRecalculationNeededDeeply=()=>{for(const a of this.options.deps)a instanceof Jl&&a.checkIfRecalculationNeededDeeply();let n=!1;const i=this.lastSeenDepValues,{currDepVals:r}=this.getDepVals();for(let a=0;a<r.length;
17a++)if(r[a]!==i[a]){n=!0;break}n&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const n of this._subscriptions)n()}),this.subscribe=n=>{var i,r;this.listeners.add(n);const a=(r=(i=this.options).onSubscribe)==null?void 0:r.call(i,n,this);return()=>{this.listeners.delete(n),a==null||a()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const n of t)if(n instanceof Jl)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof Jb){let i=Ql.get(n);i||(i=new Set,Ql.set(n,i)),i.add(this);let r=fh.get(this);r||(r=new Set,fh.set(this,r)),r.add(n)}}unregisterFromGraph(t=this.options.deps){for(const n of t)if(n instanceof Jl)this.unregisterFromGraph(n.options.deps);else if(n instanceof Jb){const i=Ql.get(n);i&&i.delete(this);const r=fh.get(this);r&&r.delete(n)}}}const Sa="__TSR_index",bO="popstate",_O="beforeunload";function _3(e){let t=e.getLocation();const n=new Set,i=l=>{t=e.getLocation(),n.forEach(u=>u({location:t,action:l}))},r=l=>{e.notifyOnIndexChange??!0?i(l):t=e.getLocation()},a=async({task:l,navigateOpts:u,...f})=>{var b,_;if((u==null?void 0:u.ignoreBlocker)??!1){l();return}const h=((b=e.getBlockers)==null?void 0:b.call(e))??[],g=f.type==="PUSH"||f.type==="REPLACE";if(typeof document<"u"&&h.length&&g)for(const S of h){const w=Rh(f.path,f.state);if(await S.blockerFn({currentLocation:t,nextLocation:w,action:f.type})){(_=e.onBlocked)==null||_.call(e);return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,u,f)=>{const m=t.state[Sa];u=SO(m+1,u),a({task:()=>{e.pushState(l,u),i({type:"PUSH"})},navigateOpts:f,type:"PUSH",path:l,state:u})},replace:(l,u,f)=>{const m=t.state[Sa];u=SO(m,u),a({task:()=>{e.replaceState(l,u),i({type:"REPLACE"})},navigateOpts:f,type:"REPLACE",path:l,state:u})},go:(l,u)=>{a({task:()=>{e.go(l),r({type:"GO",index:l})},navigateOpts:u,type:"GO"})},back:l=>{a({task:()=>{e.back((l==null?void 0:l.ignoreBlocker)??!1),r({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{a({task:()=>{e.forward((l==null?void 0:l.ignoreBlocker)??!1),r({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[Sa]!==0,createHref:l=>e.createHref(l),block:l=>{var f;if(!e.setBlockers)return()=>{};const u=((f=e.getBlockers)==null?void 0:f.call(e))??[];return e.setBlockers([...u,l]),()=>{var h,g;const m=((h=e.getBlockers)==null?void 0:h.call(e))??[];(g=e.setBlockers)==null||g.call(e,m.filter(b=>b!==l))}},flush:()=>{var l;return(l=e.flush)==null?void 0:l.call(e)},destroy:()=>{var l;return(l=e.destroy)==null?void 0:l.call(e)},notify:i}}function SO(e,t){t||(t={});const n=sS();return{...t,key:n,__TSR_key:n,[Sa]:e}}function S3(e){var I,V;const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let r=[];const a=()=>r,l=L=>r=L,u=L=>L,f=()=>Rh(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state);if(!((I=t.history.state)!=null&&I.__TSR_key)&&!((V=t.history.state)!=null&&V.key)){const L=sS();t.history.replaceState({[Sa]:0,key:L,__TSR_key:L},"")}let m=f(),h,g=!1,b=!1,_=!1,S=!1;const w=()=>m;let x,E;const O=()=>{x&&(C._ignoreSubscribers=!0,(x.isPush?t.history.pushState:t.history.replaceState)(x.state,"",x.href),C._ignoreSubscribers=!1,x=void 0,E=void 0,h=void 0)},R=(L,K,H)=>{const F=u(K);E||(h=m),m=Rh(K,H),x={href:F,state:H,isPush:(x==null?void 0:x.isPush)||L==="push"},E||(E=Promise.resolve().then(()=>O()))},$=L=>{m=f(),C.notify({type:L})},N=async()=>{if(b){b=!1;return}const L=f(),K=L.state[Sa]-m.state[Sa],H=K===1,F=K===-1,ae=!H&&!F||g;g=!1;const ue=ae?"GO":F?"BACK":"FORWARD",j=ae?{type:"GO",index:K}:{type:F?"BACK":"FORWARD"};if(_)_=!1;else{const G=a();if(typeof document<"u"&&G.length){for(const B of G)if(await B.blockerFn({currentLocation:m,nextLocation:L,action:ue}
17)){b=!0,t.history.go(1),C.notify(j);return}}}m=f(),C.notify(j)},M=L=>{if(S){S=!1;return}let K=!1;const H=a();if(typeof document<"u"&&H.length)for(const F of H){const ae=F.enableBeforeUnload??!0;if(ae===!0){K=!0;break}if(typeof ae=="function"&&ae()===!0){K=!0;break}}if(K)return L.preventDefault(),L.returnValue=""},C=_3({getLocation:w,getLength:()=>t.history.length,pushState:(L,K)=>R("push",L,K),replaceState:(L,K)=>R("replace",L,K),back:L=>(L&&(_=!0),S=!0,t.history.back()),forward:L=>{L&&(_=!0),S=!0,t.history.forward()},go:L=>{g=!0,t.history.go(L)},createHref:L=>u(L),flush:O,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(_O,M,{capture:!0}),t.removeEventListener(bO,N)},onBlocked:()=>{h&&m!==h&&(m=h)},getBlockers:a,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(_O,M,{capture:!0}),t.addEventListener(bO,N),t.history.pushState=function(...L){const K=n.apply(t.history,L);return C._ignoreSubscribers||$("PUSH"),K},t.history.replaceState=function(...L){const K=i.apply(t.history,L);return C._ignoreSubscribers||$("REPLACE"),K},C}function Rh(e,t){const n=e.indexOf("#"),i=e.indexOf("?"),r=sS();return{href:e,pathname:e.substring(0,n>0?i>0?Math.min(n,i):n:i>0?i:e.length),hash:n>-1?e.substring(n):"",search:i>-1?e.slice(i,n===-1?void 0:n):"",state:t||{[Sa]:0,key:r,__TSR_key:r}}}function sS(){return(Math.random()+1).toString(36).substring(7)}function e_(e){return e[e.length-1]}function w3(e){return typeof e=="function"}function ws(e,t){return w3(e)?e(t):e}const x3=Object.prototype.hasOwnProperty;function Hr(e,t){if(e===t)return e;const n=t,i=EO(e)&&EO(n);if(!i&&!($h(e)&&$h(n)))return n;const r=i?e:wO(e);if(!r)return n;const a=i?n:wO(n);if(!a)return n;const l=r.length,u=a.length,f=i?new Array(u):{};let m=0;for(let h=0;h<u;h++){const g=i?h:a[h],b=e[g],_=n[g];if(b===_){f[g]=b,(i?h<l:x3.call(e,g))&&m++;continue}if(b===null||_===null||typeof b!="object"||typeof _!="object"){f[g]=_;continue}const S=Hr(b,_);f[g]=S,S===b&&m++}return l===u&&m===l?e:f}function wO(e){const t=[],n=Object.getOwnPropertyNames(e);for(const r of n){if(!Object.prototype.propertyIsEnumerable.call(e,r))return!1;t.push(r)}const i=Object.getOwnPropertySymbols(e);for(const r of i){if(!Object.prototype.propertyIsEnumerable.call(e,r))return!1;t.push(r)}return t}function $h(e){if(!xO(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!xO(n)||!n.hasOwnProperty("isPrototypeOf"))}function xO(e){return Object.prototype.toString.call(e)==="[object Object]"}function EO(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xs(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!xs(e[i],t[i],n))return!1;return!0}if($h(e)&&$h(t)){const i=(n==null?void 0:n.ignoreUndefined)??!0;if(n!=null&&n.partial){for(const l in t)if((!i||t[l]!==void 0)&&!xs(e[l],t[l],n))return!1;return!0}let r=0;if(!i)r=Object.keys(e).length;else for(const l in e)e[l]!==void 0&&r++;let a=0;for(const l in t)if((!i||t[l]!==void 0)&&(a++,a>r||!xs(e[l],t[l],n)))return!1;return r===a}return!1}function vc(e){let t,n;const i=new Promise((r,a)=>{t=r,n=a});return i.status="pending",i.resolve=r=>{i.status="resolved",i.value=r,t(r),e==null||e(r)},i.reject=r=>{i.status="rejected",n(r)},i}function wa(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}var E3="Invariant failed";function Oo(e,t){if(!e)throw new Error(E3)}const Mi=0,Ds=1,yc=2,bc=3;function xo(e){return lS(e.filter(t=>t!==void 0).join("/"))}function lS(e){return e.replace(/\/{2,}/g,"/")}function cS(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function xa(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function mh(e){return xa(cS(e))}function Nh(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function k3(e,t,n){return Nh(e,n)===Nh(t,n)}function O3(e){const{type:t,value:n}=e;if(t===Mi)return n;const{prefixSegment:i,suffixSegment:r}=e;if(t===Ds){const a=n.substring(1);if(i&&r)return`${i}{$${a}}${r}`;if(i)return`${i}{$${a}}`;if(r)return`{$${a}}${r}`}if(t===bc){const a=n.substring(1);return i&&r?`${i}{-$${a}}${r}`:i?`${i}{-$${a}}`:r?`{-$${a}}${r}`:`{-$${a}}`}if(t===yc){if(i&&r)return`${i}{$}${r}`;if(i)return`${i}{$}`;if(r)return`{$}${r}`}return n}function T3({base:e,to:t,trailingSlash:n="never",parseCache:i}){var f;let r=_c(e,i).slice();const a=_c(t,i);r.length>1&&((f=e_(r))==null?void 0:f.value)==="/"&&r.pop();for(let m=0,h=a.length;m<h;m++){const g=a[m],b=g.value;b==="/"?m?m===h-1&&r.push(g):r=[g]:b===".."?r.pop():b==="."||r.push(g)}r.length>1&&(e_(r).value==="/"?n==="never"&&r.pop():n==="always"&&r.push({type:Mi,value:"/"}));const l=r.map(O3);return xo(l)}const _c=(e,t)=>{if(!e)return[];const n=t==null?void 0:t.get(e);if(n)return n;const i=A3(e);return t==null||t.set(e,i),i},R3=/^\$.{1,}$/,$3=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,N3=/^(.*?)\{-(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,D3=/^\$$/,C3=/^(.*?)\{\$\}(.*)$/;function A3(e){e=lS(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:Mi,value:"/"})),!e)return t;
17const n=e.split("/").filter(Boolean);return t.push(...n.map(i=>{const r=i.match(C3);if(r){const u=r[1],f=r[2];return{type:yc,value:"$",prefixSegment:u||void 0,suffixSegment:f||void 0}}const a=i.match(N3);if(a){const u=a[1],f=a[2],m=a[3];return{type:bc,value:f,prefixSegment:u||void 0,suffixSegment:m||void 0}}const l=i.match($3);if(l){const u=l[1],f=l[2],m=l[3];return{type:Ds,value:""+f,prefixSegment:u||void 0,suffixSegment:m||void 0}}if(R3.test(i)){const u=i.substring(1);return{type:Ds,value:"$"+u,prefixSegment:void 0,suffixSegment:void 0}}return D3.test(i)?{type:yc,value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:Mi,value:i.includes("%25")?i.split("%25").map(u=>decodeURI(u)).join("%25"):decodeURI(i)}})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:Mi,value:"/"})),t}function Fm({path:e,params:t,leaveWildcards:n,leaveParams:i,decodeCharMap:r,parseCache:a}){const l=_c(e,a);function u(g){const b=t[g],_=typeof b=="string";return g==="*"||g==="_splat"?_?encodeURI(b):b:_?j3(b,r):b}let f=!1;const m={},h=xo(l.map(g=>{if(g.type===Mi)return g.value;if(g.type===yc){m._splat=t._splat,m["*"]=t._splat;const b=g.prefixSegment||"",_=g.suffixSegment||"";if(!t._splat)return f=!0,n?`${b}${g.value}${_}`:b||_?`${b}${_}`:void 0;const S=u("_splat");return n?`${b}${g.value}${S??""}${_}`:`${b}${S}${_}`}if(g.type===Ds){const b=g.value.substring(1);!f&&!(b in t)&&(f=!0),m[b]=t[b];const _=g.prefixSegment||"",S=g.suffixSegment||"";if(i){const w=u(g.value);return`${_}${g.value}${w??""}${S}`}return`${_}${u(b)??"undefined"}${S}`}if(g.type===bc){const b=g.value.substring(1),_=g.prefixSegment||"",S=g.suffixSegment||"";if(!(b in t)||t[b]==null)return n?`${_}${b}${S}`:_||S?`${_}${S}`:void 0;if(m[b]=t[b],i){const w=u(g.value);return`${_}${g.value}${w??""}${S}`}return n?`${_}${b}${u(b)??""}${S}`:`${_}${u(b)??""}${S}`}return g.value}));return{usedParams:m,interpolatedPath:h,isMissingParams:f}}function j3(e,t){let n=encodeURIComponent(e);if(t)for(const[i,r]of t)n=n.replaceAll(i,r);return n}function t_(e,t,n){const i=M3(e,t,n);if(!(t.to&&!i))return i??{}}function M3(e,{to:t,fuzzy:n,caseSensitive:i},r){const a=t,l=_c(e.startsWith("/")?e:`/${e}`,r),u=_c(a.startsWith("/")?a:`/${a}`,r),f={};return I3(l,u,f,n,i)?f:void 0}function I3(e,t,n,i,r){var u,f,m;let a=0,l=0;for(;a<e.length||l<t.length;){const h=e[a],g=t[l];if(g){if(g.type===yc){const b=e.slice(a);let _;if(g.prefixSegment||g.suffixSegment){if(!h)return!1;const S=g.prefixSegment||"",w=g.suffixSegment||"",x=h.value;if("prefixSegment"in g&&!x.startsWith(S)||"suffixSegment"in g&&!((u=e[e.length-1])!=null&&u.value.endsWith(w)))return!1;let E=decodeURI(xo(b.map(O=>O.value)));S&&E.startsWith(S)&&(E=E.slice(S.length)),w&&E.endsWith(w)&&(E=E.slice(0,E.length-w.length)),_=E}else _=decodeURI(xo(b.map(S=>S.value)));return n["*"]=_,n._splat=_,!0}if(g.type===Mi){if(g.value==="/"&&!(h!=null&&h.value)){l++;continue}if(h){if(r){if(g.value!==h.value)return!1}else if(g.value.toLowerCase()!==h.value.toLowerCase())return!1;a++,l++;continue}else return!1}if(g.type===Ds){if(!h||h.value==="/")return!1;let b="",_=!1;if(g.prefixSegment||g.suffixSegment){const S=g.prefixSegment||"",w=g.suffixSegment||"",x=h.value;if(S&&!x.startsWith(S)||w&&!x.endsWith(w))return!1;let E=x;S&&E.startsWith(S)&&(E=E.slice(S.length)),w&&E.endsWith(w)&&(E=E.slice(0,E.length-w.length)),b=decodeURIComponent(E),_=!0}else b=decodeURIComponent(h.value),_=!0;_&&(n[g.value.substring(1)]=b,a++),l++;continue}if(g.type===bc){if(!h){l++;continue}if(h.value==="/"){l++;continue}let b="",_=!1;if(g.prefixSegment||g.suffixSegment){const S=g.prefixSegment||"",w=g.suffixSegment||"",x=h.value;if((!S||x.startsWith(S))&&(!w||x.endsWith(w))){let E=x;S&&E.startsWith(S)&&(E=E.slice(S.length)),w&&E.endsWith(w)&&(E=E.slice(0,E.length-w.length)),b=decodeURIComponent(E),_=!0}}else{let S=!0;for(let w=l+1;w<t.length;w++){const x=t[w];if((x==null?void 0:x.type)===Mi&&x.value===h.value){S=!1;break}if((x==null?void 0:x.type)===Ds||(x==null?void 0:x.type)===yc){e.length<t.length&&(S=!1);break}}S&&(b=decodeURIComponent(h.value),_=!0)}_&&(n[g.value.substring(1)]=b,a++),l++;continue}}if(a<e.length&&l>=t.length)return n["**"]=xo(e.slice(a).map(b=>b.value)),!!i&&((f=t[t.length-1])==null?void 0:f.value)!=="/";if(l<t.length&&a>=e.length){for(let b=l;b<t.length;b++)if(((m=t[b])==null?void 0:m.type)!==bc)return!1;break}break}return!0}const P3=.75,z3=1,U3=.5,L3=.4,F3=.25,B3=.2,V3=.05,H3=.02,q3=.01,kO=2e-4,OO=1e-4;function TO(e,t){return e.prefixSegment&&e.suffixSegment?t+V3+kO*e.prefixSegment.length+OO*e.suffixSegment.length:e.prefixSegment?t+H3+kO*e.prefixSegment.length:e.suffixSegment?t+q3+OO*e.suffixSegment.length:t}function Z3(e){const t=[];return e.forEach((i,r)=>{var g;if(i.isRoot||!i.path)return;const a=cS(i.fullPath);let l=_c(a),u=0;for(;l.length>u+1&&((g=l[u])==null?void 0:g.value)==="/";)u++;u>0&&(l=l.slice(u));let f=0,m=!1;const h=l.map((b,_)=>{if(b.value==="/")return P3;if(b.type===Mi)return z3;let S;b.type===Ds?S=U3:b.type===bc?(S=L3,f++):S=F3;for(let w=_+1;w<l.length;w++){const x=l[w];if(x.type===Mi&&x.value!=="/")return m=!0,TO(b,S+B3)}return TO(b,S)});t.push({child:i,trimmed:a,parsed:l,index:r,scores:h,optionalParamCount:f,hasStaticAfter:m})}),t.sort((i,r)=>{const a=Math.min(i.scores.length,r.scores.length);for(let l=0;l<a;l++)if(i.scores[l]!==r.scores[l])return r.scores[l]-i.scores[l];if(i.scores.length!==r.scores.length){if(i.optionalParamCount!==r.optionalParamCount){if(i.hasStaticAfter===r.hasStaticAfter)return i.optionalParamCount-r.optionalParamCount;if(i.hasStaticAfter&&!r.hasStaticAfter)return-1;if(!i.hasStaticAfter&&r.hasStaticAfter)return 1}return r.scores.length-i.scores.length}for(let l=0;l<a;l++)if(i.parsed[l].value!==r.parsed[l].value)return i.parsed[l].value>r.parsed[l].value?1:-1;return i.index-r.index}).map((i,r)=>(i.child.rank=r,i.child))}function Y3({routeTree:e,initRoute:t}){const n={},i={},r=l=>{l.forEach((u,f)=>{t==null||t(u,f);const m=n[u.id];if(Oo(!m,`Duplicate routes found with id: ${String(u.id)}`),n[u.id]=u,!u.isRoot&&u.path){const g=xa(u.fullPath);(!i[g]||u.fullPath.endsWith("/"))&&(i[g]=u)}const h=u.children;h!=null&&h.length&&r(h)})};r([e]);const a=Z3(Object.values(n));return{routesById:n,routesByPath:i,flatRoutes:a}}function ui(e){return!!(e!=null&&e.isNotFound)}function W3(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Dh="tsr-scroll-restoration-v1_3",G3=(e,t)=>
17{let n;return(...i)=>{n||(n=setTimeout(()=>{e(...i),n=null},t))}};function K3(){const e=W3();if(!e)return null;const t=e.getItem(Dh);let n=t?JSON.parse(t):{};return{state:n,set:i=>(n=ws(i,n)||n,e.setItem(Dh,JSON.stringify(n)))}}const Bm=K3(),n_=e=>e.state.__TSR_key||e.href;function X3(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let Ch=!1;function DN({storageKey:e,key:t,behavior:n,shouldScrollRestoration:i,scrollToTopSelectors:r,location:a}){var m,h;let l;try{l=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(g){console.error(g);return}const u=t||((m=window.history.state)==null?void 0:m.__TSR_key),f=l[u];Ch=!0;e:{if(i&&f&&Object.keys(f).length>0){for(const _ in f){const S=f[_];if(_==="window")window.scrollTo({top:S.scrollY,left:S.scrollX,behavior:n});else if(_){const w=document.querySelector(_);w&&(w.scrollLeft=S.scrollX,w.scrollTop=S.scrollY)}}break e}const g=(a??window.location).hash.split("#",2)[1];if(g){const _=((h=window.history.state)==null?void 0:h.__hashScrollIntoViewOptions)??!0;if(_){const S=document.getElementById(g);S&&S.scrollIntoView(_)}break e}const b={top:0,left:0,behavior:n};if(window.scrollTo(b),r)for(const _ of r){if(_==="window")continue;const S=typeof _=="function"?_():document.querySelector(_);S&&S.scrollTo(b)}}Ch=!1}function Q3(e,t){if(!Bm&&!e.isServer||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!Bm))return;e.isScrollRestorationSetup=!0,Ch=!1;const i=e.options.getScrollRestorationKey||n_;window.history.scrollRestoration="manual";const r=a=>{if(Ch||!e.isScrollRestoring)return;let l="";if(a.target===document||a.target===window)l="window";else{const f=a.target.getAttribute("data-scroll-restoration-id");f?l=`[data-scroll-restoration-id="${f}"]`:l=X3(a.target)}const u=i(e.state.location);Bm.set(f=>{const m=f[u]||(f[u]={}),h=m[l]||(m[l]={});if(l==="window")h.scrollX=window.scrollX||0,h.scrollY=window.scrollY||0;else if(l){const g=document.querySelector(l);g&&(h.scrollX=g.scrollLeft||0,h.scrollY=g.scrollTop||0)}return f})};typeof document<"u"&&document.addEventListener("scroll",G3(r,100),!0),e.subscribe("onRendered",a=>{const l=i(a.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(DN({storageKey:Dh,key:l,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Bm.set(u=>(u[l]||(u[l]={}),u)))})}function J3(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function eF(e,t=String){const n=new URLSearchParams;for(const i in e){const r=e[i];r!==void 0&&n.set(i,t(r))}return n.toString()}function Uy(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function tF(e){const t=new URLSearchParams(e),n={};for(const[i,r]of t.entries()){const a=n[i];a==null?n[i]=Uy(r):Array.isArray(a)?a.push(Uy(r)):n[i]=[a,Uy(r)]}return n}const nF=iF(JSON.parse),rF=oF(JSON.stringify,JSON.parse);function iF(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=tF(t);for(const i in n){const r=n[i];if(typeof r=="string")try{n[i]=e(r)}catch{}}return n}}function oF(e,t){const n=typeof t=="function";function i(r){if(typeof r=="object"&&r!==null)try{return e(r)}catch{}else if(n&&typeof r=="string")try{return t(r),e(r)}catch{}return r}return r=>{const a=eF(r,i);return a?`?${a}`:""}}const xr="__root__";function Es(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Di(e){return e instanceof Response&&!!e.options}function aF(e){const t=new Map;let n,i;const r=a=>{a.next&&(a.prev?(a.prev.next=a.next,a.next.prev=a.prev,a.next=void 0,i&&(i.next=a,a.prev=i)):(a.next.prev=void 0,n=a.next,a.next=void 0,i&&(a.prev=i,i.next=a)),i=a)};return{get(a){const l=t.get(a);if(l)return r(l),l.value},set(a,l){if(t.size>=e&&n){const f=n;t.delete(f.key),f.next&&(n=f.next,f.next.prev=void 0),f===i&&(i=void 0)}const u=t.get(a);if(u)u.value=l,r(u);else{const f={key:a,value:l,prev:i};i&&(i.next=f),i=f,n||(n=f),t.set(a,f)}}}}const hh=e=>{var t;if(!e.rendered)return e.rendered=!0,(t=e.onReady)==null?void 0:t.call(e)},gp=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),CN=(e,t)=>{var r;const n=e.router.routesById[t.routeId??""]??e.router.routeTree;!n.options.notFoundComponent&&((r=e.router.options)!=null&&r.defaultNotFoundComponent)&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),Oo(n.options.notFoundComponent);const i=e.matches.find(a=>a.routeId===n.id);Oo(i,"Could not find match for route: "+n.id),e.updateMatch(i.id,a=>({...a,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(t.routeId=n.parentRoute.id,CN(e,t))},ba=(e,t,n)=>{var i,r,a;if(!(!Di(n)&&!ui(n))){if(Di(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){(i=t._nonReactive.beforeLoadPromise)==null||i.resolve(),(r=t._nonReactive.loaderPromise)==null||r.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const l=Di(n)?"redirected":"notFound";e.updateMatch(t.id,u=>({...u,status:l,isFetching:!1,error:n})),ui(n)&&!n.routeId&&(n.routeId=t.routeId),(a=t._nonReactive.loadPromise)==null||a.resolve()}throw Di(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(CN(e,n),n)}},AN=(e,t)=>{const n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},Xu=(e,t,n,i)=>{var u,f;const{id:r,routeId:a}=e.matches[t],l=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;
17n.routerCode=i,e.firstBadMatchIndex??(e.firstBadMatchIndex=t),ba(e,e.router.getMatch(r),n);try{(f=(u=l.options).onError)==null||f.call(u,n)}catch(m){n=m,ba(e,e.router.getMatch(r),n)}e.updateMatch(r,m=>{var h,g;return(h=m._nonReactive.beforeLoadPromise)==null||h.resolve(),m._nonReactive.beforeLoadPromise=void 0,(g=m._nonReactive.loadPromise)==null||g.resolve(),{...m,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},sF=(e,t,n,i)=>{var _;const r=e.router.getMatch(t),a=(_=e.matches[n-1])==null?void 0:_.id,l=a?e.router.getMatch(a):void 0;if(e.router.isShell()){r.ssr=t===xr;return}if((l==null?void 0:l.ssr)===!1){r.ssr=!1;return}const u=S=>S===!0&&(l==null?void 0:l.ssr)==="data-only"?"data-only":S,f=e.router.options.defaultSsr??!0;if(i.options.ssr===void 0){r.ssr=u(f);return}if(typeof i.options.ssr!="function"){r.ssr=u(i.options.ssr);return}const{search:m,params:h}=r,g={search:Vm(m,r.searchError),params:Vm(h,r.paramsError),location:e.location,matches:e.matches.map(S=>({index:S.index,pathname:S.pathname,fullPath:S.fullPath,staticData:S.staticData,id:S.id,routeId:S.routeId,search:Vm(S.search,S.searchError),params:Vm(S.params,S.paramsError),ssr:S.ssr}))},b=i.options.ssr(g);if(wa(b))return b.then(S=>{r.ssr=u(S??f)});r.ssr=u(b??f)},jN=(e,t,n,i)=>{var l;if(i._nonReactive.pendingTimeout!==void 0)return;const r=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!gp(e,t)&&(n.options.loader||n.options.beforeLoad||PN(n))&&typeof r=="number"&&r!==1/0&&(n.options.pendingComponent??((l=e.router.options)==null?void 0:l.defaultPendingComponent)))){const u=setTimeout(()=>{hh(e)},r);i._nonReactive.pendingTimeout=u}},lF=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;jN(e,t,n,i);const r=()=>{const a=e.router.getMatch(t);a.preload&&(a.status==="redirected"||a.status==="notFound")&&ba(e,a,a.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(r):r()},cF=(e,t,n,i)=>{var C;const r=e.router.getMatch(t),a=r._nonReactive.loadPromise;r._nonReactive.loadPromise=vc(()=>{a==null||a.resolve()});const{paramsError:l,searchError:u}=r;l&&Xu(e,n,l,"PARSE_PARAMS"),u&&Xu(e,n,u,"VALIDATE_SEARCH"),jN(e,t,i,r);const f=new AbortController,m=(C=e.matches[n-1])==null?void 0:C.id,h=m?e.router.getMatch(m):void 0,b={...(h==null?void 0:h.context)??e.router.options.context??void 0,...r.__routeContext};let _=!1;const S=()=>{_||(_=!0,e.updateMatch(t,I=>({...I,isFetching:"beforeLoad",fetchCount:I.fetchCount+1,abortController:f,context:b})))},w=()=>{var I;(I=r._nonReactive.beforeLoadPromise)==null||I.resolve(),r._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,V=>({...V,isFetching:!1}))};if(!i.options.beforeLoad){Sd(()=>{S(),w()});return}r._nonReactive.beforeLoadPromise=vc();const{search:x,params:E,cause:O}=r,R=gp(e,t),$={search:x,abortController:f,params:E,preload:R,context:b,location:e.location,navigate:I=>e.router.navigate({...I,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:R?"preload":O,matches:e.matches,...e.router.options.additionalContext},N=I=>{if(I===void 0){Sd(()=>{S(),w()});return}(Di(I)||ui(I))&&(S(),Xu(e,n,I,"BEFORE_LOAD")),Sd(()=>{S(),e.updateMatch(t,V=>({...V,__beforeLoadContext:I,context:{...V.context,...I}})),w()})};let M;try{if(M=i.options.beforeLoad($),wa(M))return S(),M.catch(I=>{Xu(e,n,I,"BEFORE_LOAD")}).then(N)}catch(I){S(),Xu(e,n,I,"BEFORE_LOAD")}N(M)},uF=(e,t)=>{const{id:n,routeId:i}=e.matches[t],r=e.router.looseRoutesById[i],a=()=>{if(e.router.isServer){const f=sF(e,n,t,r);if(wa(f))return f.then(u)}return u()},l=()=>cF(e,n,t,r),u=()=>{if(AN(e,n))return;const f=lF(e,n,r);return wa(f)?f.then(l):l()};return a()},wd=(e,t,n)=>{var a,l,u,f,m,h;const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const r={matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([(l=(a=n.options).head)==null?void 0:l.call(a,r),(f=(u=n.options).scripts)==null?void 0:f.call(u,r),(h=(m=n.options).headers)==null?void 0:h.call(m,r)]).then(([g,b,_])=>{const S=g==null?void 0:g.meta,w=g==null?void 0:g.links,x=g==null?void 0:g.scripts,E=g==null?void 0:g.styles;return{meta:S,links:w,headScripts:x,headers:_,scripts:b,styles:E}})},MN=(e,t,n,i)=>{const r=e.matchPromises[n-1],{params:a,loaderDeps:l,abortController:u,context:f,cause:m}=e.router.getMatch(t),h=gp(e,t);return{params:a,deps:l,preload:!!h,parentMatchPromise:r,abortController:u,context:f,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:h?"preload":m,route:i,...e.router.options.additionalContext}},RO=async(e,t,n,i)=>{var r,a,l,u,f,m;try{const h=e.router.getMatch(t);try{(!e.router.isServer||h.ssr===!0)&&IN(i);const g=(a=(r=i.options).loader)==null?void 0:a.call(r,MN(e,t,n,i)),b=i.options.loader&&wa(g);if(!!(b||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||h._nonReactive.minPendingPromise)&&e.updateMatch(t,E=>({...E,isFetching:"loader"})),i.options.loader){const E=b?await g:g;ba(e,e.router.getMatch(t),E),E!==void 0&&e.updateMatch(t,O=>({...O,loaderData:E}))}i._lazyPromise&&await i._lazyPromise;const S=wd(e,t,i),w=S?await S:void 0,x=h._nonReactive.minPendingPromise;x&&await x,i._componentsPromise&&await i._componentsPromise,e.updateMatch(t,E=>({...E,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...w}))}catch(g){let b=g;
17const _=h._nonReactive.minPendingPromise;_&&await _,ui(g)&&await((u=(l=i.options.notFoundComponent)==null?void 0:l.preload)==null?void 0:u.call(l)),ba(e,e.router.getMatch(t),g);try{(m=(f=i.options).onError)==null||m.call(f,g)}catch(x){b=x,ba(e,e.router.getMatch(t),x)}const S=wd(e,t,i),w=S?await S:void 0;e.updateMatch(t,x=>({...x,error:b,status:"error",isFetching:!1,...w}))}}catch(h){const g=e.router.getMatch(t);if(g){const b=wd(e,t,i);if(b){const _=await b;e.updateMatch(t,S=>({...S,..._}))}g._nonReactive.loaderPromise=void 0}ba(e,g,h)}},dF=async(e,t)=>{var m,h;const{id:n,routeId:i}=e.matches[t];let r=!1,a=!1;const l=e.router.looseRoutesById[i];if(AN(e,n)){if(e.router.isServer){const g=wd(e,n,l);if(g){const b=await g;e.updateMatch(n,_=>({..._,...b}))}return e.router.getMatch(n)}}else{const g=e.router.getMatch(n);if(g._nonReactive.loaderPromise){if(g.status==="success"&&!e.sync&&!g.preload)return g;await g._nonReactive.loaderPromise;const b=e.router.getMatch(n);b.error&&ba(e,b,b.error)}else{const b=Date.now()-g.updatedAt,_=gp(e,n),S=_?l.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:l.options.staleTime??e.router.options.defaultStaleTime??0,w=l.options.shouldReload,x=typeof w=="function"?w(MN(e,n,t,l)):w,E=!!_&&!e.router.state.matches.some(N=>N.id===n),O=e.router.getMatch(n);O._nonReactive.loaderPromise=vc(),E!==O.preload&&e.updateMatch(n,N=>({...N,preload:E}));const{status:R,invalid:$}=O;if(r=R==="success"&&($||(x??b>S)),!(_&&l.options.preload===!1))if(r&&!e.sync)a=!0,(async()=>{var N,M;try{await RO(e,n,t,l);const C=e.router.getMatch(n);(N=C._nonReactive.loaderPromise)==null||N.resolve(),(M=C._nonReactive.loadPromise)==null||M.resolve(),C._nonReactive.loaderPromise=void 0}catch(C){Di(C)&&await e.router.navigate(C.options)}})();else if(R!=="success"||r&&e.sync)await RO(e,n,t,l);else{const N=wd(e,n,l);if(N){const M=await N;e.updateMatch(n,C=>({...C,...M}))}}}}const u=e.router.getMatch(n);a||((m=u._nonReactive.loaderPromise)==null||m.resolve(),(h=u._nonReactive.loadPromise)==null||h.resolve()),clearTimeout(u._nonReactive.pendingTimeout),u._nonReactive.pendingTimeout=void 0,a||(u._nonReactive.loaderPromise=void 0),u._nonReactive.dehydrated=void 0;const f=a?u.isFetching:!1;
17return f!==u.isFetching||u.invalid!==!1?(e.updateMatch(n,g=>({...g,isFetching:f,invalid:!1})),e.router.getMatch(n)):u};async function $O(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(n=>n._forcePending)&&hh(t);try{for(let r=0;r<t.matches.length;r++){const a=uF(t,r);wa(a)&&await a}const n=t.firstBadMatchIndex??t.matches.length;for(let r=0;r<n;r++)t.matchPromises.push(dF(t,r));await Promise.all(t.matchPromises);const i=hh(t);wa(i)&&await i}catch(n){if(ui(n)&&!t.preload){const i=hh(t);throw wa(i)&&await i,n}if(Di(n))throw n}return t.matches}async function IN(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...i}=t.options;Object.assign(e.options,i),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{var i;const n=[];for(const r of zN){const a=(i=e.options[r])==null?void 0:i.preload;a&&n.push(a())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function Vm(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function PN(e){var t;for(const n of zN)if((t=e.options[n])!=null&&t.preload)return!0;return!1}const zN=["component","errorComponent","pendingComponent","notFoundComponent"];function fF(e){return{input:({url:t})=>{for(const n of e)t=UN(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=LN(e[n],t);return t}}}function mF(e){const t=mh(e.basepath),n=`/${t}`,i=`${n}/`,r=e.caseSensitive?n:n.toLowerCase(),a=e.caseSensitive?i:i.toLowerCase();return{input:({url:l})=>{const u=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return u===r?l.pathname="/":u.startsWith(a)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=xo(["/",t,l.pathname]),l)}}function UN(e,t){var i;const n=(i=e==null?void 0:e.input)==null?void 0:i.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function LN(e,t){var i;const n=(i=e==null?void 0:e.output)==null?void 0:i.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function ks(e){const t=e.resolvedLocation,n=e.location,i=(t==null?void 0:t.pathname)!==n.pathname,r=(t==null?void 0:t.href)!==n.href,a=(t==null?void 0:t.hash)!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:i,hrefChanged:r,hashChanged:a}}class hF{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>
17n(),this.update=n=>{var b;n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options,r=this.basepath??(i==null?void 0:i.basepath)??"/",a=this.basepath===void 0,l=i==null?void 0:i.rewrite;this.options={...i,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(_=>[encodeURIComponent(_),_])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=S3())),this.origin=this.options.origin,this.origin||(!this.isServer&&(window!=null&&window.origin)&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new Jb(gF(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(_=>!["redirected"].includes(_.status))}}}),Q3(this));let u=!1;const f=this.options.basepath??"/",m=this.options.rewrite;if(a||r!==f||l!==m){this.basepath=f;const _=[];mh(f)!==""&&_.push(mF({basepath:f})),m&&_.push(m),this.rewrite=_.length===0?void 0:_.length===1?_[0]:fF(_),this.history&&this.updateLatestLocation(),u=!0}u&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof((b=window.CSS)==null?void 0:b.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:n,routesByPath:i,flatRoutes:r}=Y3({routeTree:this.routeTree,initRoute:(l,u)=>{l.init({originalIndex:u})}});this.routesById=n,this.routesByPath=i,this.flatRoutes=r;const a=this.options.notFoundRoute;a&&(a.init({originalIndex:99999999999}),this.routesById[a.id]=a)},this.subscribe=(n,i)=>{const r={eventType:n,fn:i};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=(n,i)=>{const r=({href:f,state:m})=>{const h=new URL(f,this.origin),g=UN(this.rewrite,h),b=this.options.parseSearch(g.search),_=this.options.stringifySearch(b);g.search=_;const S=g.href.replace(g.origin,""),{pathname:w,hash:x}=g;return{href:S,publicHref:f,url:g.href,pathname:w,searchStr:_,search:Hr(i==null?void 0:i.search,b),hash:x.split("#").reverse()[0]??"",state:Hr(i==null?void 0:i.state,m)}},a=r(n),{__tempLocation:l,__tempKey:u}=a.state;if(l&&(!u||u===this.tempLocationKey)){const f=r(l);return f.state.key=a.state.key,f.state.__TSR_key=a.state.__TSR_key,delete f.state.__tempLocation,{...f,maskedLocation:a}}return a},this.resolvePathWithBase=(n,i)=>T3({base:n,to:lS(i),trailingSlash:this.options.trailingSlash,parseCache:this.parsePathnameCache}),this.matchRoutes=(n,i,r)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},r):this.matchRoutesInternal(n,i),this.parsePathnameCache=aF(1e3),this.getMatchedRoutes=(n,i)=>vF({pathname:n,routePathname:i,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes,parseCache:this.parsePathnameCache}),this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{var n;(n=this.state.pendingMatches)==null||n.forEach(i=>{this.cancelMatch(i.id)})},this.buildLocation=n=>{const i=(a={})=>{var L,K;const l=a._fromLocation||this.latestLocation,u=this.matchRoutes(l,{_buildLocation:!0}),f=e_(u);a.from;const m=a.unsafeRelative==="path"?l.pathname:a.from??f.fullPath,h=this.resolvePathWithBase(m,"."),g=f.search,b={...f.params},_=a.to?this.resolvePathWithBase(h,`${a.to}`):this.resolvePathWithBase(h,"."),S=a.params===!1||a.params===null?{}:(a.params??!0)===!0?b:Object.assign(b,ws(a.params,b)),w=Fm({path:_,params:S,parseCache:this.parsePathnameCache}).interpolatedPath,x=this.matchRoutes(w,void 0,{_buildLocation:!0}
17).map(H=>this.looseRoutesById[H.routeId]);if(Object.keys(S).length>0)for(const H of x){const F=((L=H.options.params)==null?void 0:L.stringify)??H.options.stringifyParams;F&&Object.assign(S,F(S))}const E=Fm({path:_,params:S,leaveWildcards:!1,leaveParams:n.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath;let O=g;if(n._includeValidateSearch&&((K=this.options.search)!=null&&K.strict)){const H={};x.forEach(F=>{if(F.options.validateSearch)try{Object.assign(H,r_(F.options.validateSearch,{...H,...O}))}catch{}}),O=H}O=yF({search:O,dest:a,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),O=Hr(g,O);const R=this.options.stringifySearch(O),$=a.hash===!0?l.hash:a.hash?ws(a.hash,l.hash):void 0,N=$?`#${$}`:"";let M=a.state===!0?l.state:a.state?ws(a.state,l.state):{};M=Hr(l.state,M);const C=`${E}${R}${N}`,I=new URL(C,this.origin),V=LN(this.rewrite,I);return{publicHref:V.pathname+V.search+V.hash,href:C,url:V.href,pathname:E,search:O,searchStr:R,state:M,hash:$??"",unmaskOnReload:a.unmaskOnReload}},r=(a={},l)=>{var m;const u=i(a);let f=l?i(l):void 0;if(!f){let h={};const g=(m=this.options.routeMasks)==null?void 0:m.find(b=>{const _=t_(u.pathname,{to:b.from,caseSensitive:!1,fuzzy:!1},this.parsePathnameCache);return _?(h=_,!0):!1});if(g){const{from:b,..._}=g;l={from:n.from,..._,params:h},f=i(l)}}return f&&(u.maskedLocation=f),u};return n.mask?r(n,{from:n.from,...n.mask}):r(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:i,...r})=>{const a=()=>{const f=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];f.forEach(h=>{r.state[h]=this.latestLocation.state[h]});const m=xs(r.state,this.latestLocation.state);return f.forEach(h=>{delete r.state[h]}),m},l=xa(this.latestLocation.href)===xa(r.href),u=this.commitLocationPromise;if(this.commitLocationPromise=vc(()=>{u==null||u.resolve()}),l&&a())this.load();else{let{maskedLocation:f,hashScrollIntoView:m,...h}=r;f&&(h={...f,state:{...f.state,__tempKey:void 0,__tempLocation:{...h,search:h.searchStr,state:{...h.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(h.unmaskOnReload??this.options.unmaskOnReload??!1)&&(h.state.__tempKey=this.tempLocationKey)),h.state.__hashScrollIntoViewOptions=m??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[r.replace?"replace":"push"](h.publicHref,h.state,{ignoreBlocker:i})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:r,viewTransition:a,ignoreBlocker:l,href:u,...f}={})=>{if(u){const h=this.history.location.state.__TSR_index,g=Rh(u,{__TSR_index:n?h:h+1});f.to=g.pathname,f.search=this.options.parseSearch(g.search),f.hash=g.hash.slice(1)}const m=this.buildLocation({...f,_includeValidateSearch:!0});return this.commitLocation({...m,viewTransition:a,replace:n,resetScroll:i,hashScrollIntoView:r,ignoreBlocker:l})},this.navigate=({to:n,reloadDocument:i,href:r,...a})=>{if(!i&&r)try{new URL(`${r}`),i=!0}catch{}return i?(r||(r=this.buildLocation({to:n,...a}).url),a.replace?window.location.replace(r):window.location.href=r,Promise.resolve()):this.buildAndCommitLocation({...a,href:r,to:n,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const i=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),r=a=>{try{return encodeURI(decodeURI(a))}catch{return a}};if(mh(r(this.latestLocation.href))!==mh(r(i.href))){let a=i.url;throw this.origin&&a.startsWith(this.origin)&&(a=a.replace(this.origin,"")||"/"),Es({href:a})}}const n=this.matchRoutes(this.latestLocation);this.__store.setState(i=>({...i,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:i.cachedMatches.filter(r=>!n.some(a=>a.id===r.id))}))},this.load=async n=>{let i,r,a;for(a=new Promise(u=>{this.startTransition(async()=>{var f;try{this.beforeLoad();const m=this.latestLocation,h=this.state.resolvedLocation;
17this.state.redirect||this.emit({type:"onBeforeNavigate",...ks({resolvedLocation:h,location:m})}),this.emit({type:"onBeforeLoad",...ks({resolvedLocation:h,location:m})}),await $O({router:this,sync:n==null?void 0:n.sync,matches:this.state.pendingMatches,location:m,updateMatch:this.updateMatch,onReady:async()=>{this.startViewTransition(async()=>{let g,b,_;Sd(()=>{this.__store.setState(S=>{const w=S.matches,x=S.pendingMatches||S.matches;return g=w.filter(E=>!x.some(O=>O.id===E.id)),b=x.filter(E=>!w.some(O=>O.id===E.id)),_=w.filter(E=>x.some(O=>O.id===E.id)),{...S,isLoading:!1,loadedAt:Date.now(),matches:x,pendingMatches:void 0,cachedMatches:[...S.cachedMatches,...g.filter(E=>E.status!=="error")]}}),this.clearExpiredCache()}),[[g,"onLeave"],[b,"onEnter"],[_,"onStay"]].forEach(([S,w])=>{S.forEach(x=>{var E,O;(O=(E=this.looseRoutesById[x.routeId].options)[w])==null||O.call(E,x)})})})}})}catch(m){Di(m)?(i=m,this.isServer||this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):ui(m)&&(r=m),this.__store.setState(h=>({...h,statusCode:i?i.status:r?404:h.matches.some(g=>g.status==="error")?500:200,redirect:i}))}this.latestLoadPromise===a&&((f=this.commitLocationPromise)==null||f.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),u()})}),this.latestLoadPromise=a,await a;this.latestLoadPromise&&a!==this.latestLoadPromise;)await this.latestLoadPromise;let l;this.hasNotFoundMatch()?l=404:this.__store.state.matches.some(u=>u.status==="error")&&(l=500),l!==void 0&&this.__store.setState(u=>({...u,statusCode:l}))},this.startViewTransition=n=>
17{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const a=this.latestLocation,l=this.state.resolvedLocation,u=typeof i.types=="function"?i.types(ks({resolvedLocation:l,location:a})):i.types;if(u===!1){n();return}r={update:n,types:u}}else r=n;document.startViewTransition(r)}else n()},this.updateMatch=(n,i)=>{var a;const r=(a=this.state.pendingMatches)!=null&&a.some(l=>l.id===n)?"pendingMatches":this.state.matches.some(l=>l.id===n)?"matches":this.state.cachedMatches.some(l=>l.id===n)?"cachedMatches":"";r&&this.__store.setState(l=>{var u;return{...l,[r]:(u=l[r])==null?void 0:u.map(f=>f.id===n?i(f):f)}})},this.getMatch=n=>{var r;const i=a=>a.id===n;return this.state.cachedMatches.find(i)??((r=this.state.pendingMatches)==null?void 0:r.find(i))??this.state.matches.find(i)},this.invalidate=n=>{const i=r=>{var a;return((a=n==null?void 0:n.filter)==null?void 0:a.call(n,r))??!0?{...r,invalid:!0,...n!=null&&n.forcePending||r.status==="error"?{status:"pending",error:void 0}:void 0}:r};return this.__store.setState(r=>{var a;return{...r,matches:r.matches.map(i),cachedMatches:r.cachedMatches.map(i),pendingMatches:(a=r.pendingMatches)==null?void 0:a.map(i)}}),this.shouldViewTransition=!1,this.load({sync:n==null?void 0:n.sync})},this.resolveRedirect=n=>{if(!n.options.href){const i=this.buildLocation(n.options);let r=i.url;this.origin&&r.startsWith(this.origin)&&(r=r.replace(this.origin,"")||"/"),n.options.href=i.href,n.headers.set("Location",r)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const i=n==null?void 0:n.filter;i!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(a=>!i(a))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=i=>{const r=this.looseRoutesById[i.routeId];if(!r.options.loader)return!0;const a=(i.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return i.status==="error"?!0:Date.now()-i.updatedAt>=a};this.clearCache({filter:n})},this.loadRouteChunk=IN,this.preloadRoute=async n=>{const i=this.buildLocation(n);let r=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const a=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(u=>u.id)),l=new Set([...a,...this.state.cachedMatches.map(u=>u.id)]);Sd(()=>{r.forEach(u=>{l.has(u.id)||this.__store.setState(f=>({...f,cachedMatches:[...f.cachedMatches,u]}))})});try{return r=await $O({router:this,matches:r,location:i,preload:!0,updateMatch:(u,f)=>{a.has(u)?r=r.map(m=>m.id===u?f(m):m):this.updateMatch(u,f)}}),r}catch(u){if(Di(u))return u.options.reloadDocument?void 0:await this.preloadRoute({...u.options,_fromLocation:i});ui(u)||console.error(u);return}},this.matchRoute=(n,i)=>{const r={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},a=this.buildLocation(r);if(i!=null&&i.pending&&this.state.status!=="pending")return!1;const u=((i==null?void 0:i.pending)===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,f=t_(u.pathname,{...i,to:a.pathname},this.parsePathnameCache);return!f||n.params&&!xs(f,n.params,{partial:!0})?!1:f&&((i==null?void 0:i.includeSearch)??!0)?xs(u.search,a.search,{partial:!0})?f:!1:f},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??rF,parseSearch:t.parseSearch??nF}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){var h;
17const{foundRoute:i,matchedRoutes:r,routeParams:a}=this.getMatchedRoutes(t.pathname,(h=n==null?void 0:n.dest)==null?void 0:h.to);let l=!1;(i?i.path!=="/"&&a["**"]:xa(t.pathname))&&(this.options.notFoundRoute?r.push(this.options.notFoundRoute):l=!0);const u=(()=>{if(l){if(this.options.notFoundMode!=="root")for(let g=r.length-1;g>=0;g--){const b=r[g];if(b.children)return b.id}return xr}})(),f=[],m=g=>(g==null?void 0:g.id)?g.context??this.options.context??void 0:this.options.context??void 0;return r.forEach((g,b)=>{var F,ae,ue;const _=f[b-1],[S,w,x]=(()=>{const j=(_==null?void 0:_.search)??t.search,G=(_==null?void 0:_._strictSearch)??void 0;try{const B=r_(g.options.validateSearch,{...j})??void 0;return[{...j,...B},{...G,...B},void 0]}catch(B){let fe=B;if(B instanceof Ah||(fe=new Ah(B.message,{cause:B})),n!=null&&n.throwOnError)throw fe;return[j,{},fe]}})(),E=((ae=(F=g.options).loaderDeps)==null?void 0:ae.call(F,{search:S}))??"",O=E?JSON.stringify(E):"",{interpolatedPath:R,usedParams:$}=Fm({path:g.fullPath,params:a,decodeCharMap:this.pathParamsDecodeCharMap}),N=Fm({path:g.id,params:a,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath+O,M=this.getMatch(N),C=this.state.matches.find(j=>j.routeId===g.id),I=(M==null?void 0:M._strictParams)??$;let V;if(!M){const j=((ue=g.options.params)==null?void 0:ue.parse)??g.options.parseParams;if(j)try{Object.assign(I,j(I))}catch(G){if(V=new pF(G.message,{cause:G}),n!=null&&n.throwOnError)throw V}}Object.assign(a,I);const L=C?"stay":"enter";let K;if(M)K={...M,cause:L,params:C?Hr(C.params,a):a,_strictParams:I,search:Hr(C?C.search:M.search,S),_strictSearch:w};else{const j=g.options.loader||g.options.beforeLoad||g.lazyFn||PN(g)?"pending":"success";K={id:N,index:b,routeId:g.id,params:C?Hr(C.params,a):a,_strictParams:I,pathname:R,updatedAt:Date.now(),search:C?Hr(C.search,S):S,_strictSearch:w,searchError:void 0,status:j,isFetching:!1,error:void 0,paramsError:V,__routeContext:void 0,_nonReactive:{loadPromise:vc()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:L,loaderDeps:C?Hr(C.loaderDeps,E):E,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:g.options.staticData||{},fullPath:g.fullPath}}n!=null&&n.preload||(K.globalNotFound=u===g.id),K.searchError=x;const H=m(_);
17K.context={...H,...K.__routeContext,...K.__beforeLoadContext},f.push(K)}),f.forEach((g,b)=>{const _=this.looseRoutesById[g.routeId];if(!this.getMatch(g.id)&&(n==null?void 0:n._buildLocation)!==!0){const w=f[b-1],x=m(w);if(_.options.context){const E={deps:g.loaderDeps,params:g.params,context:x??{},location:t,navigate:O=>this.navigate({...O,_fromLocation:t}),buildLocation:this.buildLocation,cause:g.cause,abortController:g.abortController,preload:!!g.preload,matches:f};g.__routeContext=_.options.context(E)??void 0}g.context={...x,...g.__routeContext,...g.__beforeLoadContext}}}),f}}class Ah extends Error{}class pF extends Error{}function gF(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function r_(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Ah("Async validation not supported");if(n.issues)throw new Ah(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function vF({pathname:e,routePathname:t,caseSensitive:n,routesByPath:i,routesById:r,flatRoutes:a,parseCache:l}){let u={};const f=xa(e),m=_=>{var w;return t_(f,{to:_.fullPath,caseSensitive:((w=_.options)==null?void 0:w.caseSensitive)??n,fuzzy:!0},l)};let h=t!==void 0?i[t]:void 0;if(h)u=m(h);else{let _;for(const S of a){const w=m(S);if(w)if(S.path!=="/"&&w["**"])_||(_={foundRoute:S,routeParams:w});else{h=S,u=w;break}}!h&&_&&(h=_.foundRoute,u=_.routeParams)}let g=h||r[xr];const b=[g];for(;g.parentRoute;)g=g.parentRoute,b.push(g);return b.reverse(),{matchedRoutes:b,routeParams:u,foundRoute:h}}function yF({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){const r=n.reduce((u,f)=>{var h;const m=[];if("search"in f.options)(h=f.options.search)!=null&&h.middlewares&&m.push(...f.options.search.middlewares);else if(f.options.preSearchFilters||f.options.postSearchFilters){const g=({search:b,next:_})=>{let S=b;"preSearchFilters"in f.options&&f.options.preSearchFilters&&(S=f.options.preSearchFilters.reduce((x,E)=>E(x),b));const w=_(S);return"postSearchFilters"in f.options&&f.options.postSearchFilters?f.options.postSearchFilters.reduce((x,E)=>E(x),w):w};m.push(g)}if(i&&f.options.validateSearch){const g=({search:b,next:_})=>{const S=_(b);try{return{...S,...r_(f.options.validateSearch,S)??void 0}}catch{return S}};m.push(g)}return u.concat(m)},[])??[],a=({search:u})=>t.search?t.search===!0?u:ws(t.search,u):{};r.push(a);const l=(u,f)=>{if(u>=r.length)return f;const m=r[u];return m({search:f,next:g=>l(u+1,g)})};return l(0,e)}const bF="Error preloading route! ☝️";class FN{constructor(t){if(this.init=n=>{var m,h;this.originalIndex=n.originalIndex;const i=this.options,r=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(h=(m=this.options).getParentRoute)==null?void 0:h.call(m),r?this._path=xr:this.parentRoute||Oo(!1);let a=r?xr:i==null?void 0:i.path;a&&a!=="/"&&(a=cS(a));const l=(i==null?void 0:i.id)||a;let u=r?xr:xo([this.parentRoute.id===xr?"":this.parentRoute.id,l]);a===xr&&(a="/"),u!==xr&&(u=xo(["/",u]));const f=u===xr?"/":xo([this.parentRoute.fullPath,a]);this._path=a,this._id=u,this._fullPath=f,this._to=f},this.clone=n=>{this._path=n._path,this._id=n._id,this._fullPath=n._fullPath,this._to=n._to,this.options.getParentRoute=n.options.getParentRoute,this.children=n.children},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class _F extends FN{constructor(t){super(t)}}function uS(e){const t=e.errorComponent??vp;return v.jsx(SF,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?k.createElement(t,{error:n,reset:i}):e.children})}class SF extends k.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function vp({error:e}){const[t,n]=k.useState(!1);return v.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[v.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),v.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),v.jsx("div",{style:{height:".25rem"}}),t?v.jsx("div",{children:v.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?v.jsx("code",{children:e.message}):null})}):null]})}function wF({children:e,fallback:t=null}){return xF()?v.jsx(Y.Fragment,{children:e}):v.jsx(Y.Fragment,{children:t})}function xF(){return Y.useSyncExternalStore(EF,()=>!0,()=>!1)}function EF(){return()=>{}}var Ly={exports:{}},Fy={},By={exports:{}},Vy={};/**
18 * @license React
19 * use-sync-external-store-shim.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var NO;function kF(){if(NO)return Vy;NO=1;var e=Zd();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,r=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function u(g,b){var _=b(),S=i({inst:{value:_,getSnapshot:b}}),w=S[0].inst,x=S[1];return a(function(){w.value=_,w.getSnapshot=b,f(w)&&x({inst:w})},[g,_,b]),r(function(){return f(w)&&x({inst:w}),g(function(){f(w)&&x({inst:w})})},[g]),l(_),_}function f(g){var b=g.getSnapshot;g=g.value;try{var _=b();return!n(g,_)}catch{return!0}}function m(g,b){return b()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:u;return Vy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,Vy}var DO;function OF(){return DO||(DO=1,By.exports=kF()),By.exports}/**
26 * @license React
27 * use-sync-external-store-shim/with-selector.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var CO;function TF(){if(CO)return Fy;CO=1;var e=Zd(),t=OF();function n(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var i=typeof Object.is=="function"?Object.is:n,r=t.useSyncExternalStore,a=e.useRef,l=e.useEffect,u=e.useMemo,f=e.useDebugValue;return Fy.useSyncExternalStoreWithSelector=function(m,h,g,b,_){var S=a(null);if(S.current===null){var w={hasValue:!1,value:null};S.current=w}else w=S.current;S=u(function(){function E(M){if(!O){if(O=!0,R=M,M=b(M),_!==void 0&&w.hasValue){var C=w.value;if(_(C,M))return $=C}return $=M}if(C=$,i(R,M))return C;var I=b(M);return _!==void 0&&_(C,I)?(R=M,C):(R=M,$=I)}var O=!1,R,$,N=g===void 0?null:g;return[function(){return E(h())},N===null?void 0:function(){return E(N())}]},[h,g,b,_]);var x=r(m,S[0],S[1]);return l(function(){w.hasValue=!0,w.value=x},[x]),f(x),x},Fy}var AO;function RF(){return AO||(AO=1,Ly.exports=TF()),Ly.exports}var $F=RF();function NF(e,t=n=>n){return $F.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,DF)}function DF(e,t){if(Object.is(e,t))return!0;
33if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,r]of e)if(!t.has(i)||!Object.is(r,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=jO(e);if(n.length!==jO(t).length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Object.is(e[n[i]],t[n[i]]))return!1;return!0}function jO(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const Hy=k.createContext(null);function BN(){return typeof document>"u"?Hy:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Hy,Hy)}function Jn(e){const t=k.useContext(BN());return e==null||e.warn,t}function Kn(e){const t=Jn({warn:(e==null?void 0:e.router)===void 0}),n=(e==null?void 0:e.router)||t,i=k.useRef(void 0);return NF(n.__store,r=>{if(e!=null&&e.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const a=Hr(i.current,e.select(r));return i.current=a,a}return e.select(r)}return r})}const yp=k.createContext(void 0),CF=k.createContext(void 0);function zi(e){const t=k.useContext(e.from?CF:yp);return Kn({select:i=>{const r=i.matches.find(a=>e.from?e.from===a.routeId:a.id===t);if(Oo(!((e.shouldThrow??!0)&&!r),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),r!==void 0)return e.select?e.select(r):r},structuralSharing:e.structuralSharing})}function dS(e){return zi({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function fS(e){const{select:t,...n}=e;return zi({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function bp(e){return zi({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function _p(e){return zi({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function dn(e){const t=Jn();return k.useCallback(n=>t.navigate({...n,from:n.from??(e==null?void 0:e.from)}),[e==null?void 0:e.from,t])}var qy={exports:{}},Pn={};/**
34 * @license React
35 * react-dom.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var MO;function AF(){if(MO)return Pn;MO=1;var e=Zd();function t(f){var m="https://react.dev/errors/"+f;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)m+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+f+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},r=Symbol.for("react.portal");function a(f,m,h){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:g==null?null:""+g,children:f,containerInfo:m,implementation:h}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,m){if(f==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Pn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Pn.createPortal=function(f,m){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return a(f,m,null,h)},Pn.flushSync=function(f){var m=l.T,h=i.p;try{if(l.T=null,i.p=2,f)return f()}finally{l.T=m,i.p=h,i.d.f()}},Pn.preconnect=function(f,m){typeof f=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(f,m))},Pn.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},Pn.preinit=function(f,m){if(typeof f=="string"&&m&&typeof m.as=="string"){var h=m.as,g=u(h,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;h==="style"?i.d.S(f,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:_}):h==="script"&&i.d.X(f,{crossOrigin:g,integrity:b,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Pn.preinitModule=function(f,m){if(typeof f=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var h=u(m.as,m.crossOrigin);i.d.M(f,{crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(f)},Pn.preload=function(f,m){if(typeof f=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var h=m.as,g=u(h,m.crossOrigin);i.d.L(f,h,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Pn.preloadModule=function(f,m){if(typeof f=="string")if(m){var h=u(m.as,m.crossOrigin);i.d.m(f,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(f)},Pn.requestFormReset=function(f){i.d.r(f)}
41,Pn.unstable_batchedUpdates=function(f,m){return f(m)},Pn.useFormState=function(f,m,h){return l.H.useFormState(f,m,h)},Pn.useFormStatus=function(){return l.H.useHostTransitionStatus()},Pn.version="19.1.0",Pn}var IO;function VN(){if(IO)return qy.exports;IO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),qy.exports=AF(),qy.exports}var Pc=VN();const jF=uN(Pc),Hm=typeof window<"u"?k.useLayoutEffect:k.useEffect;function Zy(e){const t=k.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function MF(e,t,n={},i={}){k.useEffect(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([a])=>{t(a)},n);return r.observe(e.current),()=>{r.disconnect()}},[t,n,i.disabled,e])}function IF(e){const t=k.useRef(null);return k.useImperativeHandle(e,()=>t.current,[]),t}function PF(e,t){const n=Jn(),[i,r]=k.useState(!1),a=k.useRef(!1),l=IF(t),{activeProps:u,inactiveProps:f,activeOptions:m,to:h,preload:g,preloadDelay:b,hashScrollIntoView:_,replace:S,startTransition:w,resetScroll:x,viewTransition:E,children:O,target:R,disabled:$,style:N,className:M,onClick:C,onFocus:I,onMouseEnter:V,onMouseLeave:L,onTouchStart:K,ignoreBlocker:H,params:F,search:ae,hash:ue,state:j,mask:G,reloadDocument:B,unsafeRelative:fe,from:A,_fromLocation:ne,...Z}=e,X=Kn({select:he=>he.location.search,structuralSharing:!0}),le=e.from,me=k.useMemo(()=>({...e,from:le}),[n,X,le,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),be=k.useMemo(()=>n.buildLocation({...me}),[n,me]),ce=k.useMemo(()=>{if($)return;let he=be.maskedLocation?be.maskedLocation.url:be.url,ge=!1;return n.origin&&(he.startsWith(n.origin)?he=n.history.createHref(he.replace(n.origin,""))||"/":ge=!0),{href:he,external:ge}},[$,be.maskedLocation,be.url,n.origin,n.history]),Ee=k.useMemo(()=>{if(ce!=null&&ce.external)return ce.href;try{return new URL(h),h}catch{}},[h,ce]),Ne=e.reloadDocument||Ee?!1:g??n.options.defaultPreload,Ie=b??n.options.defaultPreloadDelay??0,Ve=Kn({select:he=>{if(Ee)return!1;if(m!=null&&m.exact){if(!k3(he.location.pathname,be.pathname,n.basepath))return!1}else{const ge=Nh(he.location.pathname,n.basepath),ve=Nh(be.pathname,n.basepath);if(!(ge.startsWith(ve)&&(ge.length===ve.length||ge[ve.length]==="/")))return!1}return((m==null?void 0:m.includeSearch)??!0)&&!xs(he.location.search,be.search,{partial:!(m!=null&&m.exact),ignoreUndefined:!(m!=null&&m.explicitUndefined)})?!1:m!=null&&m.includeHash?he.location.hash===be.hash:!0}}),Pe=k.useCallback(()=>{n.preloadRoute({...me}).catch(he=>{console.warn(he),console.warn(bF)})},[n,me]),$t=k.useCallback(he=>{he!=null&&he.isIntersecting&&Pe()},[Pe]);MF(l,$t,BF,{disabled:!!$||Ne!=="viewport"}),k.useEffect(()=>{a.current||!$&&Ne==="render"&&(Pe(),a.current=!0)},[$,Pe,Ne]);const _e=he=>{const ge=he.currentTarget.target,ve=R!==void 0?R:ge;if(!$&&!VF(he)&&!he.defaultPrevented&&(!ve||ve==="_self")&&he.button===0){he.preventDefault(),Pc.flushSync(()=>{r(!0)});const Oe=n.subscribe("onResolved",()=>{Oe(),r(!1)});n.navigate({...me,replace:S,resetScroll:x,hashScrollIntoView:_,startTransition:w,viewTransition:E,ignoreBlocker:H})}};if(Ee)return{...Z,ref:l,href:Ee,...O&&{children:O},...R&&{target:R},...$&&{disabled:$},...N&&{style:N},...M&&{className:M},...C&&{onClick:C},...I&&{onFocus:I},...V&&{onMouseEnter:V},...L&&{onMouseLeave:L},...K&&{onTouchStart:K}};const Me=he=>{$||Ne&&Pe()},yt=Me,st=he=>{if(!($||!Ne))if(!Ie)Pe();else{const ge=he.target;if(Qu.has(ge))return;const ve=setTimeout(()=>{Qu.delete(ge),Pe()},Ie);Qu.set(ge,ve)}},Lt=he=>{if($||!Ne||!Ie)return;const ge=he.target,ve=Qu.get(ge);ve&&(clearTimeout(ve),Qu.delete(ge))},et=Ve?ws(u,{})??zF:Yy,P=Ve?Yy:ws(f,{})??Yy,Q=[M,et.className,P.className].filter(Boolean).join(" "),oe=(N||et.style||P.style)&&{...N,...et.style,...P.style};return{...Z,...et,...P,href:ce==null?void 0:ce.href,ref:l,onClick:Ju([C,_e]),onFocus:Ju([I,Me]),onMouseEnter:Ju([V,st]),onMouseLeave:Ju([L,Lt]),onTouchStart:Ju
41([K,yt]),disabled:!!$,target:R,...oe&&{style:oe},...Q&&{className:Q},...$&&UF,...Ve&&LF,...i&&FF}}const Yy={},zF={className:"active"},UF={role:"link","aria-disabled":!0},LF={"data-status":"active","aria-current":"page"},FF={"data-transitioning":"transitioning"},Qu=new WeakMap,BF={rootMargin:"100px"},Ju=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}},Cn=k.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:r,ref:a,...l}=PF(i,t),u=typeof i.children=="function"?i.children({isActive:l["data-status"]==="active"}):i.children;return n===void 0&&delete l.disabled,k.createElement(n||"a",{...l,ref:a},u)});function VF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let HF=class extends FN{constructor(t){super(t),this.useMatch=n=>zi({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>zi({...n,from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>_p({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>bp({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>fS({...n,from:this.id}),this.useLoaderData=n=>dS({...n,from:this.id}),this.useNavigate=()=>dn({from:this.fullPath}),this.Link=Y.forwardRef((n,i)=>v.jsx(Cn,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}};function qF(e){return new HF(e)}function ZF(){return e=>WF(e)}class YF extends _F{constructor(t){super(t),this.useMatch=n=>zi({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>zi({...n,from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>_p({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>bp({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>fS({...n,from:this.id}),this.useLoaderData=n=>dS({...n,from:this.id}),this.useNavigate=()=>dn({from:this.fullPath}),this.Link=Y.forwardRef((n,i)=>v.jsx(Cn,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function WF(e){return new YF(e)}function cn(e){return typeof e=="object"?new PO(e,{silent:!0}).createRoute(e):new PO(e,{silent:!0}).createRoute}class PO{constructor(t,n){this.path=t,this.createRoute=i=>{this.silent;const r=qF(i);return r.isRoot=!1,r},this.silent=n==null?void 0:n.silent}}class zO{constructor(t){this.useMatch=n=>zi({select:n==null?void 0:n.select,from:this.options.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>zi({from:this.options.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>_p({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useParams=n=>bp({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>fS({...n,from:this.options.id}),this.useLoaderData=n=>dS({...n,from:this.options.id}),this.useNavigate=()=>{const n=Jn();return dn({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function UO(e){return typeof e=="object"?new zO(e):t=>new zO({id:e,...t})}function GF(){const e=Jn(),t=k.useRef({router:e,mounted:!1}),[n,i]=k.useState(!1),{hasPendingMatches:r,isLoading:a}=Kn({select:g=>({isLoading:g.isLoading,hasPendingMatches:g.matches.some(b=>b.status==="pending")}),structuralSharing:!0}),l=Zy(a),u=a||n||r,f=Zy(u),m=a||r,h=Zy(m);return e.startTransition=g=>{i(!0),k.startTransition(()=>{g(),i(!1)})},k.useEffect(()=>{const g=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return xa(e.latestLocation.href)!==xa(b.href)&&e.commitLocation({...b,replace:!0}),()=>{g()}},[e,e.history]),Hm(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),Hm(()=>{l&&!a&&e.emit({type:"onLoad",...ks(e.state)})},[l,e,a]),Hm(()=>{h&&!m&&e.emit({type:"onBeforeRouteMount",...ks(e.state)})},[m,h,e]),Hm(()=>{f&&!u&&(e.emit({type:"onResolved",...ks(e.state)}),e.__store.setState(g=>({...g,status:"idle",resolvedLocation:g.location})),J3(e))},[u,f,e]),null}function KF(e){const t=Kn({select:n=>`not-found-${n.location.pathname}-${n.status}`});return v.jsx(uS,{getResetKey:()=>t,onCatch:(n,i)=>{var r;if(ui(n))(r=e.onCatch)==null||r.call(e,n,i);else throw n},errorComponent:({error:n})=>{var i;if(ui(n))return(i=e.fallback)==null?void 0:i.call(e,n);throw n},children:e.children})}function XF(){return v.jsx("p",{children:"Not Found"})}function Wl(e){return v.jsx(v.Fragment,{children:e.children})}function HN(e,t,n){return t.options.notFoundComponent?v.jsx(t.options.notFoundComponent,{data:n}):e.options.defaultNotFoundComponent?v.jsx(e.options.defaultNotFoundComponent,{data:n}):v.jsx(XF,{})}function QF({children:e}){var n;const t=Jn();return t.isServer?v.jsx("script",{nonce:(n=t.options.ssr)==null?void 0:n.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:[e].filter(
41Boolean).join(`
42`)+";$_TSR.c()"}}):null}function JF(){const e=Jn();if(!e.isScrollRestoring||!e.isServer||typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return null;const n=(e.options.getScrollRestorationKey||n_)(e.latestLocation),i=n!==n_(e.latestLocation)?n:void 0,r={storageKey:Dh,shouldScrollRestoration:!0};return i&&(r.key=i),v.jsx(QF,{children:`(${DN.toString()})(${JSON.stringify(r)})`})}const qN=k.memo(function({matchId:t}){var E,O;const n=Jn(),i=Kn({select:R=>{const $=R.matches.find(N=>N.id===t);return Oo($),{routeId:$.routeId,ssr:$.ssr,_displayPending:$._displayPending}},structuralSharing:!0}),r=n.routesById[i.routeId],a=r.options.pendingComponent??n.options.defaultPendingComponent,l=a?v.jsx(a,{}):null,u=r.options.errorComponent??n.options.defaultErrorComponent,f=r.options.onCatch??n.options.defaultOnCatch,m=r.isRoot?r.options.notFoundComponent??((E=n.options.notFoundRoute)==null?void 0:E.options.component):r.options.notFoundComponent,h=i.ssr===!1||i.ssr==="data-only",g=(!r.isRoot||r.options.wrapInSuspense||h)&&(r.options.wrapInSuspense??a??(((O=r.options.errorComponent)==null?void 0:O.preload)||h))?k.Suspense:Wl,b=u?uS:Wl,_=m?KF:Wl,S=Kn({select:R=>R.loadedAt}),w=Kn({select:R=>{var N;const $=R.matches.findIndex(M=>M.id===t);return(N=R.matches[$-1])==null?void 0:N.routeId}}),x=r.isRoot?r.options.shellComponent??Wl:Wl;return v.jsxs(x,{children:[v.jsx(yp.Provider,{value:t,children:v.jsx(g,{fallback:l,children:v.jsx(b,{getResetKey:()=>S,errorComponent:u||vp,onCatch:(R,$)=>{if(ui(R))throw R;f==null||f(R,$)},children:v.jsx(_,{fallback:R=>{if(!m||R.routeId&&R.routeId!==i.routeId||!R.routeId&&!r.isRoot)throw R;return k.createElement(m,R)},children:h||i._displayPending?v.jsx(wF,{fallback:l,children:v.jsx(LO,{matchId:t})}):v.jsx(LO,{matchId:t})})})})}),w===xr&&n.options.scrollRestoration?v.jsxs(v.Fragment,{children:[v.jsx(eB,{}),v.jsx(JF,{})]}):null]})});function eB(){const e=Jn(),t=k.useRef(void 0);return v.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...ks(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const LO=k.memo(function({matchId:t}){var f,m,h,g;const n=Jn(),{match:i,key:r,routeId:a}=Kn({select:b=>{const _=b.matches.find(O=>O.id===t),S=_.routeId,w=n.routesById[S].options.remountDeps??n.options.defaultRemountDeps,x=w==null?void 0:w({routeId:S,loaderDeps:_.loaderDeps,params:_._strictParams,search:_._strictSearch});return{key:x?JSON.stringify(x):void 0,routeId:S,match:{id:_.id,status:_.status,error:_.error,_forcePending:_._forcePending,_displayPending:_._displayPending}}},structuralSharing:!0}),l=n.routesById[a],u=k.useMemo(()=>{const b=l.options.component??n.options.defaultComponent;return b?v.jsx(b,{},r):v.jsx(Yd,{})},[r,l.options.component,n.options.defaultComponent]);if(i._displayPending)throw(f=n.getMatch(i.id))==null?void 0:f._nonReactive.displayPendingPromise;if(i._forcePending)throw(m=n.getMatch(i.id))==null?void 0:m._nonReactive.minPendingPromise;if(i.status==="pending"){const b=l.options.pendingMinMs??n.options.defaultPendingMinMs;if(b){const _=n.getMatch(i.id);if(_&&!_._nonReactive.minPendingPromise&&!n.isServer){const S=vc();_._nonReactive.minPendingPromise=S,setTimeout(()=>{S.resolve(),_._nonReactive.minPendingPromise=void 0},b)}}throw(h=n.getMatch(i.id))==null?void 0:h._nonReactive.loadPromise}if(i.status==="notFound")return Oo(ui(i.error)),HN(n,l,i.error);if(i.status==="redirected")throw Oo(Di(i.error)),(g=n.getMatch(i.id))==null?void 0:g._nonReactive.loadPromise;if(i.status==="error"){if(n.isServer){const b=(l.options.errorComponent??n.options.defaultErrorComponent)||vp;return v.jsx(b,{error:i.error,reset:void 0,info:{componentStack:""}})}throw i.error}return u}),Yd=k.memo(function(){const t=Jn(),n=k.useContext(yp),i=Kn({select:m=>{var h;return(h=m.matches.find(g=>g.id===n))==null?void 0:h.routeId}}),r=t.routesById[i],a=Kn({select:m=>{const g=m.matches.find(b=>b.id===n);return Oo(g),g.globalNotFound}}),l=Kn({select:m=>{var b;const h=m.matches,g=h.findIndex(_=>_.id===n);return(b=h[g+1])==null?void 0:b.id}}),u=t.options.defaultPendingComponent?v.jsx(t.options.defaultPendingComponent,{}):null;if(a)return HN(t,r,void 0);if(!l)return null;const f=v.jsx(qN,{matchId:l});return n===xr?v.jsx(k.Suspense,{fallback:u,children:f}):f});function tB(){const e=Jn(),n=e.routesById[xr].options.pendingComponent??e.options.defaultPendingComponent,i=n?v.jsx(n,{}):null,r=e.isServer||typeof document<"u"&&e.ssr?Wl:k.Suspense,a=v.jsxs(r,{fallback:i,children:[!e.isServer&&v.jsx(GF,{}),v.jsx(nB,{})]});return e.options.InnerWrap?v.jsx(e.options.InnerWrap,{children:a}):a}function nB(){const e=Jn(),t=Kn({select:r=>{var a;return(a=r.matches[0])==null?void 0:a.id}}),n=Kn({select:r=>r.loadedAt}),i=t?v.jsx(qN,{matchId:t}):null;return v.jsx(yp.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?i:v.jsx(uS,{getResetKey:()=>n,errorComponent:vp,onCatch:r=>{r.message||r.toString()},children:i})})}const rB=e=>new iB(e);class iB extends hF{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=cn,globalThis.createLazyFileRoute=UO):typeof window<"u"&&(window.createFileRoute=cn,window.createLazyFileRoute=UO);function oB({router:e,children:t,...n}){Object.keys(n).length>
vendor: 5,376 bytes, lines 42-58
420&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=BN(),r=v.jsx(i.Provider,{value:e,children:t});return e.options.Wrap?v.jsx(e.options.Wrap,{children:r}):r}function aB({router:e,...t}){return v.jsx(oB,{router:e,...t,children:v.jsx(tB,{})})}function ZN(e){return Kn({select:t=>t.location})}var Wy={exports:{}},ed={},Gy={exports:{}},Ky={};/**
43 * @license React
44 * scheduler.production.js
45 *
46 * Copyright (c) Meta Platforms, Inc. and affiliates.
47 *
48 * This source code is licensed under the MIT license found in the
49 * LICENSE file in the root directory of this source tree.
50 */var FO;function sB(){return FO||(FO=1,function(e){function t(j,G){var B=j.length;j.push(G);e:for(;0<B;){var fe=B-1>>>1,A=j[fe];if(0<r(A,G))j[fe]=G,j[B]=A,B=fe;else break e}}function n(j){return j.length===0?null:j[0]}function i(j){if(j.length===0)return null;var G=j[0],B=j.pop();if(B!==G){j[0]=B;e:for(var fe=0,A=j.length,ne=A>>>1;fe<ne;){var Z=2*(fe+1)-1,X=j[Z],le=Z+1,me=j[le];if(0>r(X,B))le<A&&0>r(me,X)?(j[fe]=me,j[le]=B,fe=le):(j[fe]=X,j[Z]=B,fe=Z);else if(le<A&&0>r(me,B))j[fe]=me,j[le]=B,fe=le;else break e}}return G}function r(j,G){var B=j.sortIndex-G.sortIndex;return B!==0?B:j.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var f=[],m=[],h=1,g=null,b=3,_=!1,S=!1,w=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function $(j){for(var G=n(m);G!==null;){if(G.callback===null)i(m);else if(G.startTime<=j)i(m),G.sortIndex=G.expirationTime,t(f,G);else break;G=n(m)}}function N(j){if(w=!1,$(j),!S)if(n(f)!==null)S=!0,M||(M=!0,H());else{var G=n(m);G!==null&&ue(N,G.startTime-j)}}var M=!1,C=-1,I=5,V=-1;function L(){return x?!0:!(e.unstable_now()-V<I)}function K(){if(x=!1,M){var j=e.unstable_now();V=j;var G=!0;try{e:{S=!1,w&&(w=!1,O(C),C=-1),_=!0;var B=b;try{t:{for($(j),g=n(f);g!==null&&!(g.expirationTime>j&&L());){var fe=g.callback;if(typeof fe=="function"){g.callback=null,b=g.priorityLevel;var A=fe(g.expirationTime<=j);if(j=e.unstable_now(),typeof A=="function"){g.callback=A,$(j),G=!0;break t}g===n(f)&&i(f),$(j)}else i(f);g=n(f)}if(g!==null)G=!0;else{var ne=n(m);ne!==null&&ue(N,ne.startTime-j),G=!1}}break e}finally{g=null,b=B,_=!1}G=void 0}}finally{G?H():M=!1}}}var H;if(typeof R=="function")H=function(){R(K)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,ae=F.port2;F.port1.onmessage=K,H=function(){ae.postMessage(null)}}else H=function(){E(K,0)};function ue(j,G){C=E(function(){j(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(j){switch(b){case 1:case 2:case 3:var G=3;break;default:G=b}var B=b;b=G;try{return j()}finally{b=B}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(j,G){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var B=b;b=j;try{return G()}finally{b=B}},e.unstable_scheduleCallback=function(j,G,B){var fe=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?fe+B:fe):B=fe,j){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=B+A,j={id:h++,callback:G,priorityLevel:j,startTime:B,expirationTime:A,sortIndex:-1},B>fe?(j.sortIndex=B,t(m,j),n(f)===null&&j===n(m)&&(w?(O(C),C=-1):w=!0,ue(N,B-fe))):(j.sortIndex=A,t(f,j),S||_||(S=!0,M||(M=!0,H()))),j},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(j){var G=b;return function(){var B=b;b=G;try{return j.apply(this,arguments)}finally{b=B}}}}(Ky)),Ky}var BO;function lB(){return BO||(BO=1,Gy.exports=sB()),Gy.exports}/**
51 * @license React
52 * react-dom-client.production.js
53 *
54 * Copyright (c) Meta Platforms, Inc. and affiliates.
55 *
56 * This source code is licensed under the MIT license found in the
57 * LICENSE file in the root directory of this source tree.
58 */var VO;function cB(){if(VO)return ed;VO=1;var e=lB(),t=Zd(),n=VN();function i(o){var s="https://react.dev/errors/"+o;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)s+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var s=o,c=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(c=s.return),o=s.return;while(o)}return s.tag===3?c:null}function l(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function u(o){if(a(o)!==o)throw Error(i(188))}function f(o){var s=o.alternate;
vendor: 9,968 bytes, lines 58-60
58if(!s){if(s=a(o),s===null)throw Error(i(188));return s!==o?null:o}for(var c=o,d=s;;){var p=c.return;if(p===null)break;var y=p.alternate;if(y===null){if(d=p.return,d!==null){c=d;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===c)return u(p),o;if(y===d)return u(p),s;y=y.sibling}throw Error(i(188))}if(c.return!==d.return)c=p,d=y;else{for(var T=!1,D=p.child;D;){if(D===c){T=!0,c=p,d=y;break}if(D===d){T=!0,d=p,c=y;break}D=D.sibling}if(!T){for(D=y.child;D;){if(D===c){T=!0,c=y,d=p;break}if(D===d){T=!0,d=y,c=p;break}D=D.sibling}if(!T)throw Error(i(189))}}if(c.alternate!==d)throw Error(i(190))}if(c.tag!==3)throw Error(i(188));return c.stateNode.current===c?o:s}function m(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o;for(o=o.child;o!==null;){if(s=m(o),s!==null)return s;o=o.sibling}return null}var h=Object.assign,g=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),O=Symbol.for("react.consumer"),R=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function H(o){return o===null||typeof o!="object"?null:(o=K&&o[K]||o["@@iterator"],typeof o=="function"?o:null)}var F=Symbol.for("react.client.reference");function ae(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===F?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case S:return"Fragment";case x:return"Profiler";case w:return"StrictMode";case N:return"Suspense";case M:return"SuspenseList";case V:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case _:return"Portal";case R:return(o.displayName||"Context")+".Provider";case O:return(o._context.displayName||"Context")+".Consumer";case $:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case C:return s=o.displayName||null,s!==null?s:ae(o.type)||"Memo";case I:s=o._payload,o=o._init;try{return ae(o(s))}catch{}}return null}var ue=Array.isArray,j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},fe=[],A=-1;function ne(o){return{current:o}}function Z(o){0>A||(o.current=fe[A],fe[A]=null,A--)}function X(o,s){A++,fe[A]=o.current,o.current=s}var le=ne(null),me=ne(null),be=ne(null),ce=ne(null);function Ee(o,s){switch(X(be,s),X(me,o),X(le,null),s.nodeType){case 9:case 11:o=(o=s.documentElement)&&(o=o.namespaceURI)?Ck(o):0;break;default:if(o=s.tagName,s=s.namespaceURI)s=Ck(s),o=Ak(s,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}Z(le),X(le,o)}function Ne(){Z(le),Z(me),Z(be)}function Ie(o){o.memoizedState!==null&&X(ce,o);var s=le.current,c=Ak(s,o.type);s!==c&&(X(me,o),X(le,c))}function Ve(o){me.current===o&&(Z(le),Z(me)),ce.current===o&&(Z(ce),qu._currentValue=B)}var Pe=Object.prototype.hasOwnProperty,$t=e.unstable_scheduleCallback,_e=e.unstable_cancelCallback,Me=e.unstable_shouldYield,yt=e.unstable_requestPaint,st=e.unstable_now,Lt=e.unstable_getCurrentPriorityLevel,et=e.unstable_ImmediatePriority,P=e.unstable_UserBlockingPriority,Q=e.unstable_NormalPriority,oe=e.unstable_LowPriority,he=e.unstable_IdlePriority,ge=e.log,ve=e.unstable_setDisableYieldValue,Oe=null,Be=null;function Xe(o){if(typeof ge=="function"&&ve(o),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(Oe,o)}catch{}}var vt=Math.clz32?Math.clz32:hr,mr=Math.log,jn=Math.LN2;function hr(o){return o>>>=0,o===0?32:31-(mr(o)/jn|0)|0}var Xt=256,Mn=4194304;function Bn(o){var s=o&42;if(s!==0)return s;switch(o&-o){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function jr(o,s,c){var d=o.pendingLanes;if(d===0)return 0;var p=0,y=o.suspendedLanes,T=o.pingedLanes;o=o.warmLanes;var D=d&134217727;return D!==0?(d=D&~y,d!==0?p=Bn(d):(T&=D,T!==0?p=Bn(T):c||(c=D&~o,c!==0&&(p=Bn(c))))):(D=d&~y,D!==0?p=Bn(D):T!==0?p=Bn(T):c||(c=d&~o,c!==0&&(p=Bn(c)))),p===0?0:s!==0&&s!==p&&(s&y)===0&&(y=p&-p,c=s&-s,y>=c||y===32&&(c&4194048)!==0)?s:p}function Kr(o,s){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&s)===0}function Zi(o,s){switch(o){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xe(){var o=Xt;return Xt<<=1,(Xt&4194048)===0&&(Xt=256),o}function ze(){var o=Mn;return Mn<<=1,(Mn&62914560)===0&&(Mn=4194304),o}function Re(o){for(var s=[],c=0;31>c;c++)s.push(o);return s}function De(o,s){o.pendingLanes|=s,s!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function dt(o,s,c,d,p,y){var T=o.pendingLanes;o.pendingLanes=c,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=c,o.entangledLanes&=c,o.errorRecoveryDisabledLanes&=c,o.shellSuspendCounter=0;var D=o.entanglements,z=o.expirationTimes,te=o.hiddenUpdates;for(c=T&~c;0<c;){var de=31-vt(c),ye=1<<de;D[de]=0,z[de]=-1;var re=te[de];if(re!==null)for(te[de]=null,de=0;de<re.length;de++){var ie=re[de];ie!==null&&(ie.lane&=-536870913)}c&=~ye}d!==0&&We(o,d,0),y!==0&&p===0&&o.tag!==0&&(o.suspendedLanes|=y&~(T&~s))}function We(o,s,c){o.pendingLanes|=s,o.suspendedLanes&=~s;var d=31-vt(s);o.entangledLanes|=s,o.entanglements[d]=o.entanglements[d]|1073741824|c&4194090}function nn(o,s){var c=o.entangledLanes|=s;for(o=o.entanglements;c;){var d=31-vt(c),p=1<<d;p&s|o[d]&s&&(o[d]|=s),c&=~p}}function er(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function Tn(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function tr(){var o=G.p;return o!==0?o:(o=window.event,o===void 0?32:Qk(o.type))}function nr(o,s){var c=G.p;try{return G.p=o,s()}finally{G.p=c}}var fn=Math.random().toString(36).slice(2),Qt="__reactFiber$"+fn,Rn="__reactProps$"+fn,nl="__reactContainer$"+fn,Tg="__reactEvents$"+fn,SU="__reactListeners$"+fn,wU="__reactHandles$"+fn,_x="__reactResources$"+fn,nu="__reactMarker$"+fn;function Rg(o){delete o[Qt],delete o[Rn],delete o[Tg],delete o[SU],delete o[wU]}function rl(o){var s=o[Qt];if(s)return s;for(var c=o.parentNode;c;){if(s=c[nl]||c[Qt]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(o=Pk(o);o!==null;){if(c=o[Qt])return c;o=Pk(o)}return s}o=c,c=o.parentNode}return null}function il(o){if(o=o[Qt]||o[nl]){var s=o.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return o}return null}function ru(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o.stateNode;throw Error(i(33))}function ol(o){var s=o[_x];return s||(s=o[_x]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Sn(o){o[nu]=!0}var Sx=new Set,wx={};function La(o,s){al(o,s),al(o+"Capture",s)}function al(o,s){for(wx[o]=s,o=0;o<s.length;o++)Sx.add(s[o])}var xU=RegExp("^[: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]*$"),xx={},Ex={};function EU(o){return Pe.call(Ex,o)?!0:Pe.call(xx,o)?!1:xU.test(o)?Ex[o]=!0:(xx[o]=!0,!1)}function Rf(o,s,c){if(EU(s))if(c===null)o.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":o.removeAttribute(s);return;case"boolean":var d=s.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){o.removeAttribute(s);return}}o.setAttribute(s,""+c)}}function $f(o,s,c){if(c===null)o.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttribute(s,""+c)}}function Yi(o,s,c,d){if(d===null)o.removeAttribute(c);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(c);return}o.setAttributeNS(s,c,""+d)}}var $g,kx;function sl(o){if($g===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);$g=s&&s[1]||"",kx=-1<c.stack.indexOf(`
59    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
60`+$g+o+kx}var Ng=!1;function Dg(o,s){if(!o||Ng)return"";Ng=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(s){var ye=function(){throw Error()};if(Object.defineProperty(ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ye,[])}catch(ie){var re=ie}Reflect.construct(o,[],ye)}else{try{ye.call()}catch(ie){re=ie}o.call(ye.prototype)}}else{try{throw Error()}catch(ie){re=ie}(ye=o())&&typeof ye.catch=="function"&&ye.catch(function(){})}}
vendor: 7,116 bytes, lines 60-65
60catch(ie){if(ie&&re&&typeof ie.stack=="string")return[ie.stack,re.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=d.DetermineComponentFrameRoot(),T=y[0],D=y[1];if(T&&D){var z=T.split(`
61`),te=D.split(`
62`);for(p=d=0;d<z.length&&!z[d].includes("DetermineComponentFrameRoot");)d++;for(;p<te.length&&!te[p].includes("DetermineComponentFrameRoot");)p++;if(d===z.length||p===te.length)for(d=z.length-1,p=te.length-1;1<=d&&0<=p&&z[d]!==te[p];)p--;for(;1<=d&&0<=p;d--,p--)if(z[d]!==te[p]){if(d!==1||p!==1)do if(d--,p--,0>p||z[d]!==te[p]){var de=`
63`+z[d].replace(" at new "," at ");return o.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",o.displayName)),de}while(1<=d&&0<=p);break}}}finally{Ng=!1,Error.prepareStackTrace=c}return(c=o?o.displayName||o.name:"")?sl(c):""}function kU(o){switch(o.tag){case 26:case 27:case 5:return sl(o.type);case 16:return sl("Lazy");case 13:return sl("Suspense");case 19:return sl("SuspenseList");case 0:case 15:return Dg(o.type,!1);case 11:return Dg(o.type.render,!1);case 1:return Dg(o.type,!0);case 31:return sl("Activity");default:return""}}function Ox(o){try{var s="";do s+=kU(o),o=o.return;while(o);return s}catch(c){return`
64Error generating stack: `+c.message+`
65`+c.stack}}function Mr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Tx(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function OU(o){var s=Tx(o)?"checked":"value",c=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),d=""+o[s];if(!o.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,y=c.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return p.call(this)},set:function(T){d=""+T,y.call(this,T)}}),Object.defineProperty(o,s,{enumerable:c.enumerable}),{getValue:function(){return d},setValue:function(T){d=""+T},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Nf(o){o._valueTracker||(o._valueTracker=OU(o))}function Rx(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var c=s.getValue(),d="";return o&&(d=Tx(o)?o.checked?"true":"false":o.value),o=d,o!==c?(s.setValue(o),!0):!1}function Df(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var TU=/[\n"\\]/g;function Ir(o){return o.replace(TU,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Cg(o,s,c,d,p,y,T,D){o.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?o.type=T:o.removeAttribute("type"),s!=null?T==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+Mr(s)):o.value!==""+Mr(s)&&(o.value=""+Mr(s)):T!=="submit"&&T!=="reset"||o.removeAttribute("value"),s!=null?Ag(o,T,Mr(s)):c!=null?Ag(o,T,Mr(c)):d!=null&&o.removeAttribute("value"),p==null&&y!=null&&(o.defaultChecked=!!y),p!=null&&(o.checked=p&&typeof p!="function"&&typeof p!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?o.name=""+Mr(D):o.removeAttribute("name")}function $x(o,s,c,d,p,y,T,D){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(o.type=y),s!=null||c!=null){if(!(y!=="submit"&&y!=="reset"||s!=null))return;c=c!=null?""+Mr(c):"",s=s!=null?""+Mr(s):c,D||s===o.value||(o.value=s),o.defaultValue=s}d=d??p,d=typeof d!="function"&&typeof d!="symbol"&&!!d,o.checked=D?o.checked:!!d,o.defaultChecked=!!d,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(o.name=T)}function Ag(o,s,c){s==="number"&&Df(o.ownerDocument)===o||o.defaultValue===""+c||(o.defaultValue=""+c)}function ll(o,s,c,d){if(o=o.options,s){s={};for(var p=0;p<c.length;p++)s["$"+c[p]]=!0;for(c=0;c<o.length;c++)p=s.hasOwnProperty("$"+o[c].value),o[c].selected!==p&&(o[c].selected=p),p&&d&&(o[c].defaultSelected=!0)}else{for(c=""+Mr(c),s=null,p=0;p<o.length;p++){if(o[p].value===c){o[p].selected=!0,d&&(o[p].defaultSelected=!0);return}s!==null||o[p].disabled||(s=o[p])}s!==null&&(s.selected=!0)}}function Nx(o,s,c){if(s!=null&&(s=""+Mr(s),s!==o.value&&(o.value=s),c==null)){o.defaultValue!==s&&(o.defaultValue=s);return}o.defaultValue=c!=null?""+Mr(c):""}function Dx(o,s,c,d){if(s==null){if(d!=null){if(c!=null)throw Error(i(92));if(ue(d)){if(1<d.length)throw Error(i(93));d=d[0]}c=d}c==null&&(c=""),s=c}c=Mr(s),o.defaultValue=c,d=o.textContent,d===c&&d!==""&&d!==null&&(o.value=d)}function cl(o,s){if(s){var c=o.firstChild;if(c&&c===o.lastChild&&c.nodeType===3){c.nodeValue=s;return}}o.textContent=s}var RU=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Cx(o,s,c){var d=s.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?d?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="":d?o.setProperty(s,c):typeof c!="number"||c===0||RU.has(s)?s==="float"?o.cssFloat=c:o[s]=(""+c).trim():o[s]=c+"px"}function Ax(o,s,c){if(s!=null&&typeof s!="object")throw Error(i(62));if(o=o.style,c!=null){for(var d in c)!c.hasOwnProperty(d)||s!=null&&s.hasOwnProperty(d)||(d.indexOf("--")===0?o.setProperty(d,""):d==="float"?o.cssFloat="":o[d]="");for(var p in s)d=s[p],s.hasOwnProperty(p)&&c[p]!==d&&Cx(o,p,d)}else for(var y in s)s.hasOwnProperty(y)&&Cx(o,y,s[y])}function jg(o){if(o.indexOf("-")===-1)return!1;switch(o){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 $U=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
65dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),NU=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Cf(o){return NU.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}var Mg=null;function Ig(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var ul=null,dl=null;function jx(o){var s=il(o);if(s&&(o=s.stateNode)){var c=o[Rn]||null;e:switch(o=s.stateNode,s.type){case"input":if(Cg(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=o;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Ir(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var d=c[s];if(d!==o&&d.form===o.form){var p=d[Rn]||null;if(!p)throw Error(i(90));Cg(d,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(s=0;s<c.length;s++)d=c[s],d.form===o.form&&Rx(d)}break e;case"textarea":Nx(o,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&ll(o,!!c.multiple,s,!1)}}}var Pg=!1;function Mx(o,s,c){if(Pg)return o(s,c);Pg=!0;try{var d=o(s);return d}finally{if(Pg=!1,(ul!==null||dl!==null)&&(vm(),ul&&(s=ul,o=dl,dl=ul=null,jx(s),o)))for(s=0;s<o.length;s++)jx(o[s])}}function iu(o,s){var c=o.stateNode;if(c===null)return null;var d=c[Rn]||null;if(d===null)return null;c=d[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(o=o.type,d=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!d;break e;default:o=!1}if(o)return null;if(c&&typeof c!="function")throw Error(i(231,s,typeof c));return c}var Wi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zg=!1;if(Wi)try{var ou={};Object.defineProperty(ou,"passive",{get:function(){zg=!0}}),window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{zg=!1}var Po=null,Ug=null,Af=null;function Ix(){if(Af)return Af;var o,s=Ug,c=s.length,d,p="value"in Po?Po.value:Po.textContent,y=p.length;for(o=0;o<c&&s[o]===p[o];o++);var T=c-o;for(d=1;d<=T&&s[c-d]===p[y-d];d++);return Af=p.slice(o,1<d?1-d:void 0)}function jf(o){var s=o.keyCode;
vendor: 2,821 bytes, line 65
65return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Mf(){return!0}function Px(){return!1}function rr(o){function s(c,d,p,y,T){this._reactName=c,this._targetInst=p,this.type=d,this.nativeEvent=y,this.target=T,this.currentTarget=null;for(var D in o)o.hasOwnProperty(D)&&(c=o[D],this[D]=c?c(y):y[D]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Mf:Px,this.isPropagationStopped=Px,this}return h(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Mf)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Mf)},persist:function(){},isPersistent:Mf}),s}var Fa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},If=rr(Fa),au=h({},Fa,{view:0,detail:0}),DU=rr(au),Lg,Fg,su,Pf=h({},au,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vg,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==su&&(su&&o.type==="mousemove"?(Lg=o.screenX-su.screenX,Fg=o.screenY-su.screenY):Fg=Lg=0,su=o),Lg)},movementY:function(o){return"movementY"in o?o.movementY:Fg}}),zx=rr(Pf),CU=h({},Pf,{dataTransfer:0}),AU=rr(CU),jU=h({},au,{relatedTarget:0}),Bg=rr(jU),MU=h({},Fa,{animationName:0,elapsedTime:0,pseudoElement:0}),IU=rr(MU),PU=h({},Fa,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),zU=rr(PU),UU=h({},Fa,{data:0}),Ux=rr(UU),LU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FU={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"},BU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VU(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=BU[o])?!!s[o]:!1}function Vg(){return VU}var HU=h({},au,{key:function(o){if(o.key){var s=LU[o.key]||o.key;if(s!=="Unidentified")return s}
vendor: 4,813 bytes, line 65
65return o.type==="keypress"?(o=jf(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?FU[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vg,charCode:function(o){return o.type==="keypress"?jf(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?jf(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),qU=rr(HU),ZU=h({},Pf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lx=rr(ZU),YU=h({},au,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vg}),WU=rr(YU),GU=h({},Fa,{propertyName:0,elapsedTime:0,pseudoElement:0}),KU=rr(GU),XU=h({},Pf,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),QU=rr(XU),JU=h({},Fa,{newState:0,oldState:0}),e6=rr(JU),t6=[9,13,27,32],Hg=Wi&&"CompositionEvent"in window,lu=null;Wi&&"documentMode"in document&&(lu=document.documentMode);var n6=Wi&&"TextEvent"in window&&!lu,Fx=Wi&&(!Hg||lu&&8<lu&&11>=lu),Bx=" ",Vx=!1;function Hx(o,s){switch(o){case"keyup":return t6.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qx(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var fl=!1;function r6(o,s){switch(o){case"compositionend":return qx(s);case"keypress":return s.which!==32?null:(Vx=!0,Bx);case"textInput":return o=s.data,o===Bx&&Vx?null:o;default:return null}}function i6(o,s){if(fl)return o==="compositionend"||!Hg&&Hx(o,s)?(o=Ix(),Af=Ug=Po=null,fl=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Fx&&s.locale!=="ko"?null:s.data;default:return null}}var o6={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 Zx(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!o6[o.type]:s==="textarea"}function Yx(o,s,c,d){ul?dl?dl.push(d):dl=[d]:ul=d,s=xm(s,"onChange"),0<s.length&&(c=new If("onChange","change",null,c,d),o.push({event:c,listeners:s}))}var cu=null,uu=null;function a6(o){Tk(o,0)}function zf(o){var s=ru(o);if(Rx(s))return o}function Wx(o,s){if(o==="change")return s}var Gx=!1;if(Wi){var qg;if(Wi){var Zg="oninput"in document;if(!Zg){var Kx=document.createElement("div");Kx.setAttribute("oninput","return;"),Zg=typeof Kx.oninput=="function"}qg=Zg}else qg=!1;Gx=qg&&(!document.documentMode||9<document.documentMode)}function Xx(){cu&&(cu.detachEvent("onpropertychange",Qx),uu=cu=null)}function Qx(o){if(o.propertyName==="value"&&zf(uu)){var s=[];Yx(s,uu,o,Ig(o)),Mx(a6,s)}}function s6(o,s,c){o==="focusin"?(Xx(),cu=s,uu=c,cu.attachEvent("onpropertychange",Qx)):o==="focusout"&&Xx()}function l6(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return zf(uu)}function c6(o,s){if(o==="click")return zf(s)}function u6(o,s){if(o==="input"||o==="change")return zf(s)}function d6(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var pr=typeof Object.is=="function"?Object.is:d6;function du(o,s){if(pr(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var c=Object.keys(o),d=Object.keys(s);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++){var p=c[d];if(!Pe.call(s,p)||!pr(o[p],s[p]))return!1}return!0}function Jx(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function eE(o,s){var c=Jx(o);o=0;for(var d;c;){if(c.nodeType===3){if(d=o+c.textContent.length,o<=s&&d>=s)return{node:c,offset:s-o};o=d}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Jx(c)}}function tE(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?tE(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function nE(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var s=Df(o.document);s instanceof o.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)o=s.contentWindow;else break;s=Df(o.document)}return s}function Yg(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}var f6=Wi&&"documentMode"in document&&11>
vendor: 19,719 bytes, line 65
65=document.documentMode,ml=null,Wg=null,fu=null,Gg=!1;function rE(o,s,c){var d=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Gg||ml==null||ml!==Df(d)||(d=ml,"selectionStart"in d&&Yg(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),fu&&du(fu,d)||(fu=d,d=xm(Wg,"onSelect"),0<d.length&&(s=new If("onSelect","select",null,s,c),o.push({event:s,listeners:d}),s.target=ml)))}function Ba(o,s){var c={};return c[o.toLowerCase()]=s.toLowerCase(),c["Webkit"+o]="webkit"+s,c["Moz"+o]="moz"+s,c}var hl={animationend:Ba("Animation","AnimationEnd"),animationiteration:Ba("Animation","AnimationIteration"),animationstart:Ba("Animation","AnimationStart"),transitionrun:Ba("Transition","TransitionRun"),transitionstart:Ba("Transition","TransitionStart"),transitioncancel:Ba("Transition","TransitionCancel"),transitionend:Ba("Transition","TransitionEnd")},Kg={},iE={};Wi&&(iE=document.createElement("div").style,"AnimationEvent"in window||(delete hl.animationend.animation,delete hl.animationiteration.animation,delete hl.animationstart.animation),"TransitionEvent"in window||delete hl.transitionend.transition);function Va(o){if(Kg[o])return Kg[o];if(!hl[o])return o;var s=hl[o],c;for(c in s)if(s.hasOwnProperty(c)&&c in iE)return Kg[o]=s[c];return o}var oE=Va("animationend"),aE=Va("animationiteration"),sE=Va("animationstart"),m6=Va("transitionrun"),h6=Va("transitionstart"),p6=Va("transitioncancel"),lE=Va("transitionend"),cE=new Map,Xg="abort auxClick beforeToggle 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(" ");Xg.push("scrollEnd");function Xr(o,s){cE.set(o,s),La(s,[o])}var uE=new WeakMap;function Pr(o,s){if(typeof o=="object"&&o!==null){var c=uE.get(o);return c!==void 0?c:(s={value:o,source:s,stack:Ox(s)},uE.set(o,s),s)}return{value:o,source:s,stack:Ox(s)}}var zr=[],pl=0,Qg=0;function Uf(){for(var o=pl,s=Qg=pl=0;s<o;){var c=zr[s];zr[s++]=null;var d=zr[s];zr[s++]=null;var p=zr[s];zr[s++]=null;var y=zr[s];if(zr[s++]=null,d!==null&&p!==null){var T=d.pending;T===null?p.next=p:(p.next=T.next,T.next=p),d.pending=p}y!==0&&dE(c,p,y)}}function Lf(o,s,c,d){zr[pl++]=o,zr[pl++]=s,zr[pl++]=c,zr[pl++]=d,Qg|=d,o.lanes|=d,o=o.alternate,o!==null&&(o.lanes|=d)}function Jg(o,s,c,d){return Lf(o,s,c,d),Ff(o)}function gl(o,s){return Lf(o,null,null,s),Ff(o)}function dE(o,s,c){o.lanes|=c;var d=o.alternate;d!==null&&(d.lanes|=c);for(var p=!1,y=o.return;y!==null;)y.childLanes|=c,d=y.alternate,d!==null&&(d.childLanes|=c),y.tag===22&&(o=y.stateNode,o===null||o._visibility&1||(p=!0)),o=y,y=y.return;return o.tag===3?(y=o.stateNode,p&&s!==null&&(p=31-vt(c),o=y.hiddenUpdates,d=o[p],d===null?o[p]=[s]:d.push(s),s.lane=c|536870912),y):null}function Ff(o){if(50<Pu)throw Pu=0,oy=null,Error(i(185));for(var s=o.return;s!==null;)o=s,s=o.return;return o.tag===3?o.stateNode:null}var vl={};function g6(o,s,c,d){this.tag=o,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gr(o,s,c,d){return new g6(o,s,c,d)}function ev(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Gi(o,s){var c=o.alternate;return c===null?(c=gr(o.tag,s,o.key,o.mode),c.elementType=o.elementType,c.type=o.type,c.stateNode=o.stateNode,c.alternate=o,o.alternate=c):(c.pendingProps=s,c.type=o.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=o.flags&65011712,c.childLanes=o.childLanes,c.lanes=o.lanes,c.child=o.child,c.memoizedProps=o.memoizedProps,c.memoizedState=o.memoizedState,c.updateQueue=o.updateQueue,s=o.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=o.sibling,c.index=o.index,c.ref=o.ref,c.refCleanup=o.refCleanup,c}function fE(o,s){o.flags&=65011714;var c=o.alternate;return c===null?(o.childLanes=0,o.lanes=s,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=c.childLanes,o.lanes=c.lanes,o.child=c.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=c.memoizedProps,o.memoizedState=c.memoizedState,o.updateQueue=c.updateQueue,o.type=c.type,s=c.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),o}function Bf(o,s,c,d,p,y){var T=0;if(d=o,typeof o=="function")ev(o)&&(T=1);else if(typeof o=="string")T=yL(o,c,le.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case V:return o=gr(31,c,s,p),o.elementType=V,o.lanes=y,o;case S:return Ha(c.children,p,y,s);case w:T=8,p|=24;break;case x:return o=gr(12,c,s,p|2),o.elementType=x,o.lanes=y,o;case N:return o=gr(13,c,s,p),o.elementType=N,o.lanes=y,o;case M:return o=gr(19,c,s,p),o.elementType=M,o.lanes=y,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case E:case R:T=10;break e;case O:T=9;break e;case $:T=11;break e;case C:T=14;break e;case I:T=16,d=null;break e}T=29,c=Error(i(130,o===null?"null":typeof o,"")),d=null}return s=gr(T,c,s,p),s.elementType=o,s.type=d,s.lanes=y,s}function Ha(o,s,c,d){return o=gr(7,o,d,s),o.lanes=c,o}function tv(o,s,c){return o=gr(6,o,null,s),o.lanes=c,o}function nv(o,s,c){return s=gr(4,o.children!==null?o.children:[],o.key,s),s.lanes=c,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}var yl=[],bl=0,Vf=null,Hf=0,Ur=[],Lr=0,qa=null,Ki=1,Xi="";function Za(o,s){yl[bl++]=Hf,yl[bl++]=Vf,Vf=o,Hf=s}function mE(o,s,c){Ur[Lr++]=Ki,Ur[Lr++]=Xi,Ur[Lr++]=qa,qa=o;var d=Ki;o=Xi;var p=32-vt(d)-1;d&=~(1<<p),c+=1;var y=32-vt(s)+p;if(30<y){var T=p-p%5;y=(d&(1<<T)-1).toString(32),d>>=T,p-=T,Ki=1<<32-vt(s)+p|c<<p|d,Xi=y+o}else Ki=1<<y|c<<p|d,Xi=o}function rv(o){o.return!==null&&(Za(o,1),mE(o,1,0))}function iv(o){for(;o===Vf;)Vf=yl[--bl],yl[bl]=null,Hf=yl[--bl],yl[bl]=null;for(;o===qa;)qa=Ur[--Lr],Ur[Lr]=null,Xi=Ur[--Lr],Ur[Lr]=null,Ki=Ur[--Lr],Ur[Lr]=null}var Vn=null,Ht=null,wt=!1,Ya=null,yi=!1,ov=Error(i(519));function Wa(o){var s=Error(i(418,""));throw pu(Pr(s,o)),ov}function hE(o){var s=o.stateNode,c=o.type,d=o.memoizedProps;switch(s[Qt]=o,s[Rn]=d,c){case"dialog":mt("cancel",s),mt("close",s);break;case"iframe":case"object":case"embed":mt("load",s);break;case"video":case"audio":for(c=0;c<Uu.length;c++)mt(Uu[c],s);break;case"source":mt("error",s);break;case"img":case"image":case"link":mt("error",s),mt("load",s);break;case"details":mt("toggle",s);break;case"input":mt("invalid",s),$x(s,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0),Nf(s);break;case"select":mt("invalid",s);break;case"textarea":mt("invalid",s),Dx(s,d.value,d.defaultValue,d.children),Nf(s)}c=d.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||d.suppressHydrationWarning===!0||Dk(s.textContent,c)?(d.popover!=null&&(mt("beforetoggle",s),mt("toggle",s)),d.onScroll!=null&&mt("scroll",s),d.onScrollEnd!=null&&mt("scrollend",s),d.onClick!=null&&(s.onclick=Em),s=!0):s=!1,s||Wa(o)}function pE(o){for(Vn=o.return;Vn;)switch(Vn.tag){case 5:case 13:yi=!1;return;case 27:case 3:yi=!0;return;default:Vn=Vn.return}}function mu(o){if(o!==Vn)return!1;if(!wt)return pE(o),wt=!0,!1;var s=o.tag,c;if((c=s!==3&&s!==27)&&((c=s===5)&&(c=o.type,c=!(c!=="form"&&c!=="button")||Sy(o.type,o.memoizedProps)),c=!c),c&&Ht&&Wa(o),pE(o),s===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8)if(c=o.data,c==="/$"){if(s===0){Ht=Jr(o.nextSibling);break e}s--}else c!=="$"&&c!=="$!"&&c!=="$?"||s++;o=o.nextSibling}Ht=null}}else s===27?(s=Ht,Jo(o.type)?(o=ky,ky=null,Ht=o):Ht=s):Ht=Vn?Jr(o.stateNode.nextSibling):null;return!0}function hu(){Ht=Vn=null,wt=!1}function gE(){var o=Ya;return o!==null&&(ar===null?ar=o:ar.push.apply(ar,o),Ya=null),o}function pu(o){Ya===null?Ya=[o]:Ya.push(o)}var av=ne(null),Ga=null,Qi=null;function zo(o,s,c){X(av,s._currentValue),s._currentValue=c}function Ji(o){o._currentValue=av.current,Z(av)}function sv(o,s,c){for(;o!==null;){var d=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,d!==null&&(d.childLanes|=s)):d!==null&&(d.childLanes&s)!==s&&(d.childLanes|=s),o===c)break;o=o.return}}function lv(o,s,c,d){var p=o.child;for(p!==null&&(p.return=o);p!==null;){var y=p.dependencies;if(y!==null){var T=p.child;y=y.firstContext;e:for(;y!==null;){var D=y;y=p;for(var z=0;z<s.length;z++)if(D.context===s[z]){y.lanes|=c,D=y.alternate,D!==null&&(D.lanes|=c),sv(y.return,c,o),d||(T=null);break e}y=D.next}}else if(p.tag===18){if(T=p.return,T===null)throw Error(i(341));T.lanes|=c,y=T.alternate,y!==null&&(y.lanes|=c),sv(T,c,o),T=null}else T=p.child;if(T!==null)T.return=p;else for(T=p;T!==null;){if(T===o){T=null;break}if(p=T.sibling,p!==null){p.return=T.return,T=p;break}T=T.return}p=T}}function gu(o,s,c,d){o=null;for(var p=s,y=!1;p!==null;){if(!y){if((p.flags&524288)!==0)y=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var T=p.alternate;if(T===null)throw Error(i(387));if(T=T.memoizedProps,T!==null){var D=p.type;pr(p.pendingProps.value,T.value)||(o!==null?o.push(D):o=[D])}}else if(p===ce.current){if(T=p.alternate,T===null)throw Error(i(387));T.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(o!==null?o.push(qu):o=[qu])}p=p.return}o!==null&&lv(s,o,c,d),s.flags|=262144}function qf(o){for(o=o.firstContext;o!==null;){if(!pr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Ka(o){Ga=o,Qi=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function In(o){return vE(Ga,o)}function Zf(o,s){return Ga===null&&Ka(o),vE(o,s)}function vE(o,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},Qi===null){if(o===null)throw Error(i(308));Qi=s,o.dependencies={lanes:0,firstContext:s},o.flags|=524288}else Qi=Qi.next=s;return c}var v6=typeof AbortController<"u"?AbortController:function(){var o=[],s=this.signal={aborted:!1,addEventListener:function(c,d){o.push(d)}};this.abort=function(){s.aborted=!0,o.forEach(function(c){return c()})}},y6=e.unstable_scheduleCallback,b6=e.unstable_NormalPriority,mn={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cv(){return{controller:new v6,data:new Map,refCount:0}}function vu(o){o.refCount--,o.refCount===0&&y6(b6,function(){o.controller.abort()})}var yu=null,uv=0,_l=0,Sl=null;function _6(o,s){if(yu===null){var c=yu=[];uv=0,_l=fy(),Sl={status:"pending",value:void 0,then:function(d){c.push(d)}}}return uv++,s.then(yE,yE),s}function yE(){if(--uv===0&&yu!==null){Sl!==null&&(Sl.status="fulfilled");var o=yu;yu=null,_l=0,Sl=null;for(var s=0;s<o.length;s++)(0,o[s])()}}function S6(o,s){var c=[],d={status:"pending",value:null,reason:null,then:function(p){c.push(p)}};return o.then(function(){d.status="fulfilled",d.value=s;for(var p=0;p<c.length;p++)(0,c[p])(s)},function(p){for(d.status="rejected",d.reason=p,p=0;p<c.length;p++)(0,c[p])(void 0)}),d}var bE=j.S;j.S=function(o,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&_6(o,s),bE!==null&&bE(o,s)};var Xa=ne(null);function dv(){var o=Xa.current;return o!==null?o:Mt.pooledCache}function Yf(o,s){s===null?X(Xa,Xa.current):X(Xa,s.pool)}function _E(){var o=dv();return o===null?null:{parent:mn._currentValue,pool:o}}var bu=Error(i(460)),SE=Error(i(474)),Wf=Error(i(542)),fv={then:function(){}};function wE(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Gf(){}function xE(o,s,c){switch(c=o[c],c===void 0?o.push(s):c!==s&&(s.then(Gf,Gf),s=c),s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,kE(o),o;default:if(typeof s.status=="string")s.then(Gf,Gf);else{if(o=Mt,o!==null&&100<o.shellSuspendCounter)throw Error(i(482));o=s,o.status="pending",o.then(function(d){if(s.status==="pending"){var p=s;p.status="fulfilled",p.value=d}},function(d){if(s.status==="pending"){var p=s;p.status="rejected",p.reason=d}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,kE(o),o}throw _u=s,bu}}var _u=null;function EE(){if(_u===null)throw Error(i(459));var o=_u;return _u=null,o}function kE(o){if(o===bu||o===Wf)throw Error(i(483))}var Uo=!1;function mv(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hv(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Lo(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Fo(o,s,c){var d=o.updateQueue;if(d===null)return null;if(d=d.shared,(kt&2)!==0){var p=d.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),d.pending=s,s=Ff(o),dE(o,null,c),s}return Lf(o,d,s,c),Ff(o)}function Su(o,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194048)!==0)){var d=s.lanes;d&=o.pendingLanes,c|=d,s.lanes=c,nn(o,c)}}function pv(o,s){var c=o.updateQueue,d=o.alternate;if(d!==null&&(d=d.updateQueue,c===d)){var p=null,y=null;if(c=c.firstBaseUpdate,c!==null){do{var T={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};y===null?p=y=T:y=y.next=T,c=c.next}while(c!==null);y===null?p=y=s:y=y.next=s}else p=y=s;c={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:d.shared,callbacks:d.callbacks},o.updateQueue=c;return}o=c.lastBaseUpdate,o===null?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=s}var gv=!1;function wu(){if(gv){var o=Sl;if(o!==null)throw o}}function xu(o,s,c,d){gv=!1;var p=o.updateQueue;Uo=!1;var y=p.firstBaseUpdate,T=p.lastBaseUpdate,D=p.shared.pending;if(D!==null){p.shared.pending=null;var z=D,te=z.next;z.next=null,T===null?y=te:T.next=te,T=z;var de=o.alternate;de!==null&&(de=de.updateQueue,D=de.lastBaseUpdate,D!==T&&(D===null?de.firstBaseUpdate=te:D.next=te,de.lastBaseUpdate=z))}if(y!==null){var ye=p.baseState;T=0,de=te=z=null,D=y;do{var re=D.lane&-536870913,ie=re!==D.lane;if(ie?(gt&re)===re:(d&re)===re){re!==0&&re===_l&&(gv=!0),de!==null&&(de=de.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var Ge=o,He=D;re=s;var Ct=c;switch(He.tag){case 1:if(Ge=He.payload,typeof Ge=="function"){ye=Ge.call(Ct,ye,re);break e}ye=Ge;break e;case 3:Ge.flags=Ge.flags&-65537|128;case 0:if(Ge=He.payload,re=typeof Ge=="function"?Ge.call(Ct,ye,re):Ge,re==null)break e;ye=h({},ye,re);break e;case 2:Uo=!0}}re=D.callback,re!==null&&(o.flags|=64,ie&&(o.flags|=8192),ie=p.callbacks,ie===null?p.callbacks=[re]:ie.push(re))}else ie={lane:re,tag:D.tag,payload:D.payload,callback:D.callback,next:null},de===null?(te=de=ie,z=ye):de=de.next=ie,T|=re;if(D=D.next,D===null){if(D=p.shared.pending,D===null)break;ie=D,D=ie.next,ie.next=null,p.lastBaseUpdate=ie,p.shared.pending=null}}while(!0);de===null&&(z=ye),p.baseState=z,p.firstBaseUpdate=te,p.lastBaseUpdate=de,y===null&&(p.shared.lanes=0),Go|=T,o.lanes=T,o.memoizedState=ye}}function OE(o,s){if(typeof o!="function")throw Error(i(191,o));o.call(s)}function TE(o,s){var c=o.callbacks;if(c!==null)for(o.callbacks=null,o=0;o<c.length;o++)OE(c[o],s)}var wl=ne(null),Kf=ne(0);function RE(o,s){o=ao,X(Kf,o),X(wl,s),ao=o|s.baseLanes}function vv(){X(Kf,ao),X(wl,wl.current)}function yv(){ao=Kf.current,Z(wl),Z(Kf)}var Bo=0,lt=null,Nt=null,rn=null,Xf=!1,xl=!1,Qa=!1,Qf=0,Eu=0,El=null,w6=0;function Jt(){throw Error(i(321))}function bv(o,s){if(s===null)return!1;for(var c=0;c<s.length&&c<o.length;c++)if(!pr(o[c],s[c]))return!1;return!0}function _v(o,s,c,d,p,y){return Bo=y,lt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,j.H=o===null||o.memoizedState===null?d1:f1,Qa=!1,y=c(d,p),Qa=!1,xl&&(y=NE(s,c,d,p)),$E(o),y}function $E(o){j.H=im;var s=Nt!==null&&Nt.next!==null;if(Bo=0,rn=Nt=lt=null,Xf=!1,Eu=0,El=null,s)throw Error(i(300));o===null||wn||(o=o.dependencies,o!==null&&qf(o)&&(wn=!0))}function NE(o,s,c,d){lt=o;var p=0;do{if(xl&&(El=null),Eu=0,xl=!1,25<=p)throw Error(i(301));if(p+=1,rn=Nt=null,o.updateQueue!=null){var y=o.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}j.H=$6,y=s(c,d)}while(xl);return y}function x6(){var o=j.H,s=o.useState()[0];return s=typeof s.then=="function"?ku(s):s,o=o.useState()[0],(Nt!==null?Nt.memoizedState:null)!==o&&(lt.flags|=1024),s}function Sv(){var o=Qf!==0;return Qf=0,o}function wv(o,s,c){s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~c}function xv(o){if(Xf){for(o=o.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}Xf=!1}Bo=0,rn=Nt=lt=null,xl=!1,Eu=Qf=0,El=null}function ir(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rn===null?lt.memoizedState=rn=o:rn=rn.next=o,rn}function on(){if(Nt===null){var o=lt.alternate;o=o!==null?o.memoizedState:null}else o=Nt.next;var s=rn===null?lt.memoizedState:rn.next;if(s!==null)rn=s,Nt=o;else{if(o===null)throw lt.alternate===null?Error(i(467)):Error(i(310));Nt=o,o={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},rn===null?lt.memoizedState=rn=o:rn=rn.next=o}return rn}function Ev(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ku(o){var s=Eu;return Eu+=1,El===null&&(El=[]),o=xE(El,o,s),s=lt,(rn===null?s.memoizedState:rn.next)===null&&(s=s.alternate,j.H=s===null||s.memoizedState===null?d1:f1),o}function Jf(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return ku(o);if(o.$$typeof===R)return In(o)}throw Error(i(438,String(o)))}function kv(o){var s=null,c=lt.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var d=lt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(s={data:d.data.map(function(p){return p.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),c===null&&(c=Ev(),lt.updateQueue=c),c.memoCache=s,c=s.data[s.index],c===void 0)for(c=s.data[s.index]=Array(o),d=0;d<o;d++)c[d]=L;return s.index++,c}function eo(o,s){return typeof s=="function"?s(o):s}function em(o){var s=on();return Ov(s,Nt,o)}function Ov(o,s,c){var d=o.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=c;var p=o.baseQueue,y=d.pending;if(y!==null){if(p!==null){var T=p.next;p.next=y.next,y.next=T}s.baseQueue=p=y,d.pending=null}if(y=o.baseState,p===null)o.memoizedState=y;else{s=p.next;var D=T=null,z=null,te=s,de=!1;do{var ye=te.lane&-536870913;if(ye!==te.lane?(gt&ye)===ye:(Bo&ye)===ye){var re=te.revertLane;if(re===0)z!==null&&(z=z.next={lane:0,revertLane:0,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),ye===_l&&(de=!0);else if((Bo&re)===re){te=te.next,re===_l&&(de=!0);continue}else ye={lane:0,revertLane:te.revertLane,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},z===null?(D=z=ye,T=y):z=z.next=ye,lt.lanes|=re,Go|=re;ye=te.action,Qa&&c(y,ye),y=te.hasEagerState?te.eagerState:c(y,ye)}else re={lane:ye,revertLane:te.revertLane,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},z===null?(D=z=re,T=y):z=z.next=re,lt.lanes|=ye,Go|=ye;te=te.next}
vendor: 13,676 bytes, line 65
65while(te!==null&&te!==s);if(z===null?T=y:z.next=D,!pr(y,o.memoizedState)&&(wn=!0,de&&(c=Sl,c!==null)))throw c;o.memoizedState=y,o.baseState=T,o.baseQueue=z,d.lastRenderedState=y}return p===null&&(d.lanes=0),[o.memoizedState,d.dispatch]}function Tv(o){var s=on(),c=s.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=o;var d=c.dispatch,p=c.pending,y=s.memoizedState;if(p!==null){c.pending=null;var T=p=p.next;do y=o(y,T.action),T=T.next;while(T!==p);pr(y,s.memoizedState)||(wn=!0),s.memoizedState=y,s.baseQueue===null&&(s.baseState=y),c.lastRenderedState=y}return[y,d]}function DE(o,s,c){var d=lt,p=on(),y=wt;if(y){if(c===void 0)throw Error(i(407));c=c()}else c=s();var T=!pr((Nt||p).memoizedState,c);T&&(p.memoizedState=c,wn=!0),p=p.queue;var D=jE.bind(null,d,p,o);if(Ou(2048,8,D,[o]),p.getSnapshot!==s||T||rn!==null&&rn.memoizedState.tag&1){if(d.flags|=2048,kl(9,tm(),AE.bind(null,d,p,c,s),null),Mt===null)throw Error(i(349));y||(Bo&124)!==0||CE(d,s,c)}return c}function CE(o,s,c){o.flags|=16384,o={getSnapshot:s,value:c},s=lt.updateQueue,s===null?(s=Ev(),lt.updateQueue=s,s.stores=[o]):(c=s.stores,c===null?s.stores=[o]:c.push(o))}function AE(o,s,c,d){s.value=c,s.getSnapshot=d,ME(s)&&IE(o)}function jE(o,s,c){return c(function(){ME(s)&&IE(o)})}function ME(o){var s=o.getSnapshot;o=o.value;try{var c=s();return!pr(o,c)}catch{return!0}}function IE(o){var s=gl(o,2);s!==null&&Sr(s,o,2)}function Rv(o){var s=ir();if(typeof o=="function"){var c=o;if(o=c(),Qa){Xe(!0);try{c()}finally{Xe(!1)}}}return s.memoizedState=s.baseState=o,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:o},s}function PE(o,s,c,d){return o.baseState=c,Ov(o,Nt,typeof d=="function"?d:eo)}function E6(o,s,c,d,p){if(rm(o))throw Error(i(485));if(o=s.action,o!==null){var y={payload:p,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){y.listeners.push(T)}};j.T!==null?c(!0):y.isTransition=!1,d(y),c=s.pending,c===null?(y.next=s.pending=y,zE(s,y)):(y.next=c.next,s.pending=c.next=y)}}function zE(o,s){var c=s.action,d=s.payload,p=o.state;if(s.isTransition){var y=j.T,T={};j.T=T;try{var D=c(p,d),z=j.S;z!==null&&z(T,D),UE(o,s,D)}catch(te){$v(o,s,te)}finally{j.T=y}}else try{y=c(p,d),UE(o,s,y)}catch(te){$v(o,s,te)}}function UE(o,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(d){LE(o,s,d)},function(d){return $v(o,s,d)}):LE(o,s,c)}function LE(o,s,c){s.status="fulfilled",s.value=c,FE(s),o.state=c,s=o.pending,s!==null&&(c=s.next,c===s?o.pending=null:(c=c.next,s.next=c,zE(o,c)))}function $v(o,s,c){var d=o.pending;if(o.pending=null,d!==null){d=d.next;do s.status="rejected",s.reason=c,FE(s),s=s.next;while(s!==d)}o.action=null}function FE(o){o=o.listeners;for(var s=0;s<o.length;s++)(0,o[s])()}function BE(o,s){return s}function VE(o,s){if(wt){var c=Mt.formState;if(c!==null){e:{var d=lt;if(wt){if(Ht){t:{for(var p=Ht,y=yi;p.nodeType!==8;){if(!y){p=null;break t}if(p=Jr(p.nextSibling),p===null){p=null;break t}}y=p.data,p=y==="F!"||y==="F"?p:null}if(p){Ht=Jr(p.nextSibling),d=p.data==="F!";break e}}Wa(d)}d=!1}d&&(s=c[0])}}return c=ir(),c.memoizedState=c.baseState=s,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:BE,lastRenderedState:s},c.queue=d,c=l1.bind(null,lt,d),d.dispatch=c,d=Rv(!1),y=jv.bind(null,lt,!1,d.queue),d=ir(),p={state:s,dispatch:null,action:o,pending:null},d.queue=p,c=E6.bind(null,lt,p,y,c),p.dispatch=c,d.memoizedState=o,[s,c,!1]}function HE(o){var s=on();return qE(s,Nt,o)}function qE(o,s,c){if(s=Ov(o,s,BE)[0],o=em(eo)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var d=ku(s)}catch(T){throw T===bu?Wf:T}else d=s;s=on();var p=s.queue,y=p.dispatch;return c!==s.memoizedState&&(lt.flags|=2048,kl(9,tm(),k6.bind(null,p,c),null)),[d,y,o]}function k6(o,s){o.action=s}function ZE(o){var s=on(),c=Nt;if(c!==null)return qE(s,c,o);on(),s=s.memoizedState,c=on();var d=c.queue.dispatch;return c.memoizedState=o,[s,d,!1]}function kl(o,s,c,d){return o={tag:o,create:c,deps:d,inst:s,next:null},s=lt.updateQueue,s===null&&(s=Ev(),lt.updateQueue=s),c=s.lastEffect,c===null?s.lastEffect=o.next=o:(d=c.next,c.next=o,o.next=d,s.lastEffect=o),o}function tm(){return{destroy:void 0,resource:void 0}}function YE(){return on().memoizedState}function nm(o,s,c,d){var p=ir();d=d===void 0?null:d,lt.flags|=o,p.memoizedState=kl(1|s,tm(),c,d)}function Ou(o,s,c,d){var p=on();d=d===void 0?null:d;var y=p.memoizedState.inst;Nt!==null&&d!==null&&bv(d,Nt.memoizedState.deps)?p.memoizedState=kl(s,y,c,d):(lt.flags|=o,p.memoizedState=kl(1|s,y,c,d))}function WE(o,s){nm(8390656,8,o,s)}function GE(o,s){Ou(2048,8,o,s)}function KE(o,s){return Ou(4,2,o,s)}function XE(o,s){return Ou(4,4,o,s)}function QE(o,s){if(typeof s=="function"){o=o();var c=s(o);return function(){typeof c=="function"?c():s(null)}}if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function JE(o,s,c){c=c!=null?c.concat([o]):null,Ou(4,4,QE.bind(null,s,o),c)}function Nv(){}function e1(o,s){var c=on();s=s===void 0?null:s;var d=c.memoizedState;return s!==null&&bv(s,d[1])?d[0]:(c.memoizedState=[o,s],o)}function t1(o,s){var c=on();s=s===void 0?null:s;var d=c.memoizedState;if(s!==null&&bv(s,d[1]))return d[0];if(d=o(),Qa){Xe(!0);try{o()}finally{Xe(!1)}}return c.memoizedState=[d,s],d}function Dv(o,s,c){return c===void 0||(Bo&1073741824)!==0?o.memoizedState=s:(o.memoizedState=c,o=ik(),lt.lanes|=o,Go|=o,c)}function n1(o,s,c,d){return pr(c,s)?c:wl.current!==null?(o=Dv(o,c,d),pr(o,s)||(wn=!0),o):(Bo&42)===0?(wn=!0,o.memoizedState=c):(o=ik(),lt.lanes|=o,Go|=o,s)}function r1(o,s,c,d,p){var y=G.p;G.p=y!==0&&8>y?y:8;var T=j.T,D={};j.T=D,jv(o,!1,s,c);try{var z=p(),te=j.S;if(te!==null&&te(D,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var de=S6(z,d);Tu(o,s,de,_r(o))}else Tu(o,s,d,_r(o))}catch(ye){Tu(o,s,{then:function(){},status:"rejected",reason:ye},_r())}finally{G.p=y,j.T=T}}function O6(){}function Cv(o,s,c,d){if(o.tag!==5)throw Error(i(476));var p=i1(o).queue;r1(o,p,s,B,c===null?O6:function(){return o1(o),c(d)})}function i1(o){var s=o.memoizedState;if(s!==null)return s;s={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:B},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:c},next:null},o.memoizedState=s,o=o.alternate,o!==null&&(o.memoizedState=s),s}function o1(o){var s=i1(o).next.queue;Tu(o,s,{},_r())}function Av(){return In(qu)}function a1(){return on().memoizedState}function s1(){return on().memoizedState}function T6(o){for(var s=o.return;s!==null;){switch(s.tag){case 24:case 3:var c=_r();o=Lo(c);var d=Fo(s,o,c);d!==null&&(Sr(d,s,c),Su(d,s,c)),s={cache:cv()},o.payload=s;return}s=s.return}}function R6(o,s,c){var d=_r();c={lane:d,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},rm(o)?c1(s,c):(c=Jg(o,s,c,d),c!==null&&(Sr(c,o,d),u1(c,s,d)))}function l1(o,s,c){var d=_r();Tu(o,s,c,d)}function Tu(o,s,c,d){var p={lane:d,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(rm(o))c1(s,p);else{var y=o.alternate;if(o.lanes===0&&(y===null||y.lanes===0)&&(y=s.lastRenderedReducer,y!==null))try{var T=s.lastRenderedState,D=y(T,c);if(p.hasEagerState=!0,p.eagerState=D,pr(D,T))return Lf(o,s,p,0),Mt===null&&Uf(),!1}catch{}finally{}if(c=Jg(o,s,p,d),c!==null)return Sr(c,o,d),u1(c,s,d),!0}return!1}function jv(o,s,c,d){if(d={lane:2,revertLane:fy(),action:d,hasEagerState:!1,eagerState:null,next:null},rm(o)){if(s)throw Error(i(479))}else s=Jg(o,c,d,2),s!==null&&Sr(s,o,2)}function rm(o){var s=o.alternate;return o===lt||s!==null&&s===lt}function c1(o,s){xl=Xf=!0;var c=o.pending;c===null?s.next=s:(s.next=c.next,c.next=s),o.pending=s}function u1(o,s,c){if((c&4194048)!==0){var d=s.lanes;d&=o.pendingLanes,c|=d,s.lanes=c,nn(o,c)}}var im={readContext:In,use:Jf,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt,useHostTransitionStatus:Jt,useFormState:Jt,useActionState:Jt,useOptimistic:Jt,useMemoCache:Jt,useCacheRefresh:Jt},d1={readContext:In,use:Jf,useCallback:function(o,s){return ir().memoizedState=[o,s===void 0?null:s],o},useContext:In,useEffect:WE,useImperativeHandle:function(o,s,c){c=c!=null?c.concat([o]):null,nm(4194308,4,QE.bind(null,s,o),c)},useLayoutEffect:function(o,s){return nm(4194308,4,o,s)},useInsertionEffect:function(o,s){nm(4,2,o,s)},useMemo:function(o,s){var c=ir();s=s===void 0?null:s;var d=o();if(Qa){Xe(!0);try{o()}finally{Xe(!1)}}return c.memoizedState=[d,s],d},useReducer:function(o,s,c){var d=ir();if(c!==void 0){var p=c(s);if(Qa){Xe(!0);try{c(s)}finally{Xe(!1)}}}else p=s;return d.memoizedState=d.baseState=p,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:p},d.queue=o,o=o.dispatch=R6.bind(null,lt,o),[d.memoizedState,o]},useRef:function(o){var s=ir();return o={current:o},s.memoizedState=o},useState:function(o){o=Rv(o);var s=o.queue,c=l1.bind(null,lt,s);return s.dispatch=c,[o.memoizedState,c]},useDebugValue:Nv,useDeferredValue:function(o,s){var c=ir();return Dv(c,o,s)},useTransition:function(){var o=Rv(!1);return o=r1.bind(null,lt,o.queue,!0,!1),ir().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,s,c){var d=lt,p=ir();if(wt){if(c===void 0)throw Error(i(407));c=c()}else{if(c=s(),Mt===null)throw Error(i(349));(gt&124)!==0||CE(d,s,c)}p.memoizedState=c;var y={value:c,getSnapshot:s};return p.queue=y,WE(jE.bind(null,d,y,o),[o]),d.flags|=2048,kl(9,tm(),AE.bind(null,d,y,c,s),null),c},useId:function(){var o=ir(),s=Mt.identifierPrefix;if(wt){var c=Xi,d=Ki;c=(d&~(1<<32-vt(d)-1)).toString(32)+c,s="«"+s+"R"+c,c=Qf++,0<c&&(s+="H"+c.toString(32)),s+="»"}else c=w6++,s="«"+s+"r"+c.toString(32)+"»";return o.memoizedState=s},useHostTransitionStatus:Av,useFormState:VE,useActionState:VE,useOptimistic:function(o){var s=ir();s.memoizedState=s.baseState=o;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=c,s=jv.bind(null,lt,!0,c),c.dispatch=s,[o,s]},useMemoCache:kv,useCacheRefresh:function(){return ir().memoizedState=T6.bind(null,lt)}},f1={readContext:In,use:Jf,useCallback:e1,useContext:In,useEffect:GE,useImperativeHandle:JE,useInsertionEffect:KE,useLayoutEffect:XE,useMemo:t1,useReducer:em,useRef:YE,useState:function(){return em(eo)},useDebugValue:Nv,useDeferredValue:function(o,s){var c=on();return n1(c,Nt.memoizedState,o,s)},useTransition:function(){var o=em(eo)[0],s=on().memoizedState;return[typeof o=="boolean"?o:ku(o),s]},useSyncExternalStore:DE,useId:a1,useHostTransitionStatus:Av,useFormState:HE,useActionState:HE,useOptimistic:function(o,s){var c=on();return PE(c,Nt,o,s)},useMemoCache:kv,useCacheRefresh:s1},$6={readContext:In,use:Jf,useCallback:e1,useContext:In,useEffect:GE,useImperativeHandle:JE,useInsertionEffect:KE,useLayoutEffect:XE,useMemo:t1,useReducer:Tv,useRef:YE,useState:function(){return Tv(eo)},useDebugValue:Nv,useDeferredValue:function(o,s){var c=on();return Nt===null?Dv(c,o,s):n1(c,Nt.memoizedState,o,s)},useTransition:function(){var o=Tv(eo)[0],s=on().memoizedState;return[typeof o=="boolean"?o:ku(o),s]},useSyncExternalStore:DE,useId:a1,useHostTransitionStatus:Av,useFormState:ZE,useActionState:ZE,useOptimistic:function(o,s){var c=on();return Nt!==null?PE(c,Nt,o,s):(c.baseState=o,[o,c.queue.dispatch])},useMemoCache:kv,useCacheRefresh:s1},Ol=null,Ru=0;function om(o){var s=Ru;return Ru+=1,Ol===null&&(Ol=[]),xE(Ol,o,s)}function $u(o,s){s=s.props.ref,o.ref=s!==void 0?s:null}function am(o,s){throw s.$$typeof===g?Error(i(525)):(o=Object.prototype.toString.call(s),Error(i(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o)))}function m1(o){var s=o._init;return s(o._payload)}function h1(o){function s(W,q){if(o){var ee=W.deletions;ee===null?(W.deletions=[q],W.flags|=16):ee.push(q)}}function c(W,q){if(!o)return null;for(;q!==null;)s(W,q),q=q.sibling;return null}function d(W){for(var q=new Map;W!==null;)W.key!==null?q.set(W.key,W):q.set(W.index,W),W=W.sibling;return q}function p(W,q){return W=Gi(W,q),W.index=0,W.sibling=null,W}function y(W,q,ee){return W.index=ee,o?(ee=W.alternate,ee!==null?(ee=ee.index,ee<q?(W.flags|=67108866,q):ee):(W.flags|=67108866,q)):(W.flags|=1048576,q)}function T(W){return o&&W.alternate===null&&(W.flags|=67108866),W}function D(W,q,ee,pe){return q===null||q.tag!==6?(q=tv(ee,W.mode,pe),q.return=W,q):(q=p(q,ee),q.return=W,q)}function z(W,q,ee,pe){var Ce=ee.type;return Ce===S?de(W,q,ee.props.children,pe,ee.key):q!==null&&(q.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===I&&m1(Ce)===q.type)?(q=p(q,ee.props),$u(q,ee),q.return=W,q):(q=Bf(ee.type,ee.key,ee.props,null,W.mode,pe),$u(q,ee),q.return=W,q)}function te(W,q,ee,pe){return q===null||q.tag!==4||q.stateNode.containerInfo!==ee.containerInfo||q.stateNode.implementation!==ee.implementation?(q=nv(ee,W.mode,pe),q.return=W,q):(q=p(q,ee.children||[]),q.return=W,q)}function de(W,q,ee,pe,Ce){return q===null||q.tag!==7?(q=Ha(ee,W.mode,pe,Ce),q.return=W,q):(q=p(q,ee),q.return=W,q)}function ye(W,q,ee){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=tv(""+q,W.mode,ee),q.return=W,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case b:return ee=Bf(q.type,q.key,q.props,null,W.mode,ee),$u(ee,q),ee.return=W,ee;case _:return q=nv(q,W.mode,ee),q.return=W,q;case I:var pe=q._init;return q=pe(q._payload),ye(W,q,ee)}if(ue(q)||H(q))return q=Ha(q,W.mode,ee,null),q.return=W,q;if(typeof q.then=="function")return ye(W,om(q),ee);
vendor: 6,364 bytes, line 65
65if(q.$$typeof===R)return ye(W,Zf(W,q),ee);am(W,q)}return null}function re(W,q,ee,pe){var Ce=q!==null?q.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return Ce!==null?null:D(W,q,""+ee,pe);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case b:return ee.key===Ce?z(W,q,ee,pe):null;case _:return ee.key===Ce?te(W,q,ee,pe):null;case I:return Ce=ee._init,ee=Ce(ee._payload),re(W,q,ee,pe)}if(ue(ee)||H(ee))return Ce!==null?null:de(W,q,ee,pe,null);if(typeof ee.then=="function")return re(W,q,om(ee),pe);if(ee.$$typeof===R)return re(W,q,Zf(W,ee),pe);am(W,ee)}return null}function ie(W,q,ee,pe,Ce){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return W=W.get(ee)||null,D(q,W,""+pe,Ce);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case b:return W=W.get(pe.key===null?ee:pe.key)||null,z(q,W,pe,Ce);case _:return W=W.get(pe.key===null?ee:pe.key)||null,te(q,W,pe,Ce);case I:var ut=pe._init;return pe=ut(pe._payload),ie(W,q,ee,pe,Ce)}if(ue(pe)||H(pe))return W=W.get(ee)||null,de(q,W,pe,Ce,null);if(typeof pe.then=="function")return ie(W,q,ee,om(pe),Ce);if(pe.$$typeof===R)return ie(W,q,ee,Zf(q,pe),Ce);am(q,pe)}return null}function Ge(W,q,ee,pe){for(var Ce=null,ut=null,Ue=q,Ze=q=0,En=null;Ue!==null&&Ze<ee.length;Ze++){Ue.index>Ze?(En=Ue,Ue=null):En=Ue.sibling;var bt=re(W,Ue,ee[Ze],pe);if(bt===null){Ue===null&&(Ue=En);break}o&&Ue&&bt.alternate===null&&s(W,Ue),q=y(bt,q,Ze),ut===null?Ce=bt:ut.sibling=bt,ut=bt,Ue=En}if(Ze===ee.length)return c(W,Ue),wt&&Za(W,Ze),Ce;if(Ue===null){for(;Ze<ee.length;Ze++)Ue=ye(W,ee[Ze],pe),Ue!==null&&(q=y(Ue,q,Ze),ut===null?Ce=Ue:ut.sibling=Ue,ut=Ue);return wt&&Za(W,Ze),Ce}for(Ue=d(Ue);Ze<ee.length;Ze++)En=ie(Ue,W,Ze,ee[Ze],pe),En!==null&&(o&&En.alternate!==null&&Ue.delete(En.key===null?Ze:En.key),q=y(En,q,Ze),ut===null?Ce=En:ut.sibling=En,ut=En);return o&&Ue.forEach(function(ia){return s(W,ia)}),wt&&Za(W,Ze),Ce}function He(W,q,ee,pe){if(ee==null)throw Error(i(151));for(var Ce=null,ut=null,Ue=q,Ze=q=0,En=null,bt=ee.next();Ue!==null&&!bt.done;Ze++,bt=ee.next()){Ue.index>Ze?(En=Ue,Ue=null):En=Ue.sibling;var ia=re(W,Ue,bt.value,pe);if(ia===null){Ue===null&&(Ue=En);break}o&&Ue&&ia.alternate===null&&s(W,Ue),q=y(ia,q,Ze),ut===null?Ce=ia:ut.sibling=ia,ut=ia,Ue=En}if(bt.done)return c(W,Ue),wt&&Za(W,Ze),Ce;if(Ue===null){for(;!bt.done;Ze++,bt=ee.next())bt=ye(W,bt.value,pe),bt!==null&&(q=y(bt,q,Ze),ut===null?Ce=bt:ut.sibling=bt,ut=bt);return wt&&Za(W,Ze),Ce}for(Ue=d(Ue);!bt.done;Ze++,bt=ee.next())bt=ie(Ue,W,Ze,bt.value,pe),bt!==null&&(o&&bt.alternate!==null&&Ue.delete(bt.key===null?Ze:bt.key),q=y(bt,q,Ze),ut===null?Ce=bt:ut.sibling=bt,ut=bt);return o&&Ue.forEach(function(NL){return s(W,NL)}),wt&&Za(W,Ze),Ce}function Ct(W,q,ee,pe){if(typeof ee=="object"&&ee!==null&&ee.type===S&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case b:e:{for(var Ce=ee.key;q!==null;){if(q.key===Ce){if(Ce=ee.type,Ce===S){if(q.tag===7){c(W,q.sibling),pe=p(q,ee.props.children),pe.return=W,W=pe;break e}}else if(q.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===I&&m1(Ce)===q.type){c(W,q.sibling),pe=p(q,ee.props),$u(pe,ee),pe.return=W,W=pe;break e}c(W,q);break}else s(W,q);q=q.sibling}ee.type===S?(pe=Ha(ee.props.children,W.mode,pe,ee.key),pe.return=W,W=pe):(pe=Bf(ee.type,ee.key,ee.props,null,W.mode,pe),$u(pe,ee),pe.return=W,W=pe)}return T(W);case _:e:{for(Ce=ee.key;q!==null;){if(q.key===Ce)if(q.tag===4&&q.stateNode.containerInfo===ee.containerInfo&&q.stateNode.implementation===ee.implementation){c(W,q.sibling),pe=p(q,ee.children||[]),pe.return=W,W=pe;break e}else{c(W,q);break}else s(W,q);q=q.sibling}pe=nv(ee,W.mode,pe),pe.return=W,W=pe}return T(W);case I:return Ce=ee._init,ee=Ce(ee._payload),Ct(W,q,ee,pe)}if(ue(ee))return Ge(W,q,ee,pe);if(H(ee)){if(Ce=H(ee),typeof Ce!="function")throw Error(i(150));return ee=Ce.call(ee),He(W,q,ee,pe)}if(typeof ee.then=="function")return Ct(W,q,om(ee),pe);if(ee.$$typeof===R)return Ct(W,q,Zf(W,ee),pe);am(W,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint"?(ee=""+ee,q!==null&&q.tag===6?(c(W,q.sibling),pe=p(q,ee),pe.return=W,W=pe):(c(W,q),pe=tv(ee,W.mode,pe),pe.return=W,W=pe),T(W)):c(W,q)}return function(W,q,ee,pe){try{Ru=0;var Ce=Ct(W,q,ee,pe);return Ol=null,Ce}catch(Ue){if(Ue===bu||Ue===Wf)throw Ue;var ut=gr(29,Ue,null,W.mode);return ut.lanes=pe,ut.return=W,ut}finally{}}}var Tl=h1(!0),p1=h1(!1),Fr=ne(null),bi=null;function Vo(o){var s=o.alternate;X(hn,hn.current&1),X(Fr,o),bi===null&&(s===null||wl.current!==null||s.memoizedState!==null)&&(bi=o)}function g1(o){if(o.tag===22){if(X(hn,hn.current),X(Fr,o),bi===null){var s=o.alternate;s!==null&&s.memoizedState!==null&&(bi=o)}}else Ho()}function Ho(){X(hn,hn.current),X(Fr,Fr.current)}function to(o){Z(Fr),bi===o&&(bi=null),Z(hn)}var hn=ne(0);function sm(o){for(var s=o;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||Ey(c)))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}function Mv(o,s,c,d){s=o.memoizedState,c=c(d,s),c=c==null?s:h({},s,c),o.memoizedState=c,o.lanes===0&&(o.updateQueue.baseState=c)}var Iv={enqueueSetState:function(o,s,c){o=o._reactInternals;var d=_r(),p=Lo(d);p.payload=s,c!=null&&(p.callback=c),s=Fo(o,p,d),s!==null&&(Sr(s,o,d),Su(s,o,d))},enqueueReplaceState:function(o,s,c){o=o._reactInternals;var d=_r(),p=Lo(d);p.tag=1,p.payload=s,c!=null&&(p.callback=c),s=Fo(o,p,d),s!==null&&(Sr(s,o,d),Su(s,o,d))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var c=_r(),d=Lo(c);d.tag=2,s!=null&&(d.callback=s),s=Fo(o,d,c),s!==null&&(Sr(s,o,c),Su(s,o,c))}};function v1(o,s,c,d,p,y,T){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(d,y,T):s.prototype&&s.prototype.isPureReactComponent?!du(c,d)||!du(p,y):!0}function y1(o,s,c,d){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,d),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,d),s.state!==o&&Iv.enqueueReplaceState(s,s.state,null)}function Ja(o,s){var c=s;if("ref"in s){c={};
vendor: 6,314 bytes, line 65
65for(var d in s)d!=="ref"&&(c[d]=s[d])}if(o=o.defaultProps){c===s&&(c=h({},c));for(var p in o)c[p]===void 0&&(c[p]=o[p])}return c}var lm=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function b1(o){lm(o)}function _1(o){console.error(o)}function S1(o){lm(o)}function cm(o,s){try{var c=o.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(d){setTimeout(function(){throw d})}}function w1(o,s,c){try{var d=o.onCaughtError;d(c.value,{componentStack:c.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Pv(o,s,c){return c=Lo(c),c.tag=3,c.payload={element:null},c.callback=function(){cm(o,s)},c}function x1(o){return o=Lo(o),o.tag=3,o}function E1(o,s,c,d){var p=c.type.getDerivedStateFromError;if(typeof p=="function"){var y=d.value;o.payload=function(){return p(y)},o.callback=function(){w1(s,c,d)}}var T=c.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(o.callback=function(){w1(s,c,d),typeof p!="function"&&(Ko===null?Ko=new Set([this]):Ko.add(this));var D=d.stack;this.componentDidCatch(d.value,{componentStack:D!==null?D:""})})}function N6(o,s,c,d,p){if(c.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(s=c.alternate,s!==null&&gu(s,c,p,!0),c=Fr.current,c!==null){switch(c.tag){case 13:return bi===null?sy():c.alternate===null&&qt===0&&(qt=3),c.flags&=-257,c.flags|=65536,c.lanes=p,d===fv?c.flags|=16384:(s=c.updateQueue,s===null?c.updateQueue=new Set([d]):s.add(d),cy(o,d,p)),!1;case 22:return c.flags|=65536,d===fv?c.flags|=16384:(s=c.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([d])},c.updateQueue=s):(c=s.retryQueue,c===null?s.retryQueue=new Set([d]):c.add(d)),cy(o,d,p)),!1}throw Error(i(435,c.tag))}return cy(o,d,p),sy(),!1}if(wt)return s=Fr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,d!==ov&&(o=Error(i(422),{cause:d}),pu(Pr(o,c)))):(d!==ov&&(s=Error(i(423),{cause:d}),pu(Pr(s,c))),o=o.current.alternate,o.flags|=65536,p&=-p,o.lanes|=p,d=Pr(d,c),p=Pv(o.stateNode,d,p),pv(o,p),qt!==4&&(qt=2)),!1;var y=Error(i(520),{cause:d});if(y=Pr(y,c),Iu===null?Iu=[y]:Iu.push(y),qt!==4&&(qt=2),s===null)return!0;d=Pr(d,c),c=s;do{switch(c.tag){case 3:return c.flags|=65536,o=p&-p,c.lanes|=o,o=Pv(c.stateNode,d,o),pv(c,o),!1;case 1:if(s=c.type,y=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ko===null||!Ko.has(y))))return c.flags|=65536,p&=-p,c.lanes|=p,p=x1(p),E1(p,o,c,d),pv(c,p),!1}c=c.return}while(c!==null);return!1}var k1=Error(i(461)),wn=!1;function $n(o,s,c,d){s.child=o===null?p1(s,null,c,d):Tl(s,o.child,c,d)}function O1(o,s,c,d,p){c=c.render;var y=s.ref;if("ref"in d){var T={};for(var D in d)D!=="ref"&&(T[D]=d[D])}else T=d;return Ka(s),d=_v(o,s,c,T,y,p),D=Sv(),o!==null&&!wn?(wv(o,s,p),no(o,s,p)):(wt&&D&&rv(s),s.flags|=1,$n(o,s,d,p),s.child)}function T1(o,s,c,d,p){if(o===null){var y=c.type;return typeof y=="function"&&!ev(y)&&y.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=y,R1(o,s,y,d,p)):(o=Bf(c.type,null,d,s,s.mode,p),o.ref=s.ref,o.return=s,s.child=o)}if(y=o.child,!qv(o,p)){var T=y.memoizedProps;if(c=c.compare,c=c!==null?c:du,c(T,d)&&o.ref===s.ref)return no(o,s,p)}return s.flags|=1,o=Gi(y,d),o.ref=s.ref,o.return=s,s.child=o}function R1(o,s,c,d,p){if(o!==null){var y=o.memoizedProps;if(du(y,d)&&o.ref===s.ref)if(wn=!1,s.pendingProps=d=y,qv(o,p))(o.flags&131072)!==0&&(wn=!0);else return s.lanes=o.lanes,no(o,s,p)}return zv(o,s,c,d,p)}function $1(o,s,c){var d=s.pendingProps,p=d.children,y=o!==null?o.memoizedState:null;if(d.mode==="hidden"){if((s.flags&128)!==0){if(d=y!==null?y.baseLanes|c:c,o!==null){for(p=s.child=o.child,y=0;p!==null;)y=y|p.lanes|p.childLanes,p=p.sibling;s.childLanes=y&~d}else s.childLanes=0,s.child=null;return N1(o,s,d,c)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},o!==null&&Yf(s,y!==null?y.cachePool:null),y!==null?RE(s,y):vv(),g1(s);else return s.lanes=s.childLanes=536870912,N1(o,s,y!==null?y.baseLanes|c:c,c)}else y!==null?(Yf(s,y.cachePool),RE(s,y),Ho(),s.memoizedState=null):(o!==null&&Yf(s,null),vv(),Ho());return $n(o,s,p,c),s.child}function N1(o,s,c,d){var p=dv();return p=p===null?null:{parent:mn._currentValue,pool:p},s.memoizedState={baseLanes:c,cachePool:p},o!==null&&Yf(s,null),vv(),g1(s),o!==null&&gu(o,s,d,!0),null}function um(o,s){var c=s.ref;if(c===null)o!==null&&o.ref!==null&&(s.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(i(284));(o===null||o.ref!==c)&&(s.flags|=4194816)}}function zv(o,s,c,d,p){return Ka(s),c=_v(o,s,c,d,void 0,p),d=Sv(),o!==null&&!wn?(wv(o,s,p),no(o,s,p)):(wt&&d&&rv(s),s.flags|=1,$n(o,s,c,p),s.child)}function D1(o,s,c,d,p,y){return Ka(s),s.updateQueue=null,c=NE(s,d,c,p),$E(o),d=Sv(),o!==null&&!wn?(wv(o,s,y),no(o,s,y)):(wt&&d&&rv(s),s.flags|=1,$n(o,s,c,y),s.child)}function C1(o,s,c,d,p){if(Ka(s),s.stateNode===null){var y=vl,T=c.contextType;typeof T=="object"&&T!==null&&(y=In(T)),y=new c(d,y),s.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Iv,s.stateNode=y,y._reactInternals=s,y=s.stateNode,y.props=d,y.state=s.memoizedState,y.refs={},mv(s),T=c.contextType,y.context=typeof T=="object"&&T!==null?In(T):vl,y.state=s.memoizedState,T=c.getDerivedStateFromProps,typeof T=="function"&&(Mv(s,c,T,d),y.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(T=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),T!==y.state&&Iv.enqueueReplaceState(y,y.state,null),xu(s,d,y,p),wu(),y.state=s.memoizedState),typeof y.componentDidMount=="function"&&(s.flags|=4194308),d=!0}else if(o===null){y=s.stateNode;var D=s.memoizedProps,z=Ja(c,D);y.props=z;
vendor: 8,388 bytes, line 65
65var te=y.context,de=c.contextType;T=vl,typeof de=="object"&&de!==null&&(T=In(de));var ye=c.getDerivedStateFromProps;de=typeof ye=="function"||typeof y.getSnapshotBeforeUpdate=="function",D=s.pendingProps!==D,de||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(D||te!==T)&&y1(s,y,d,T),Uo=!1;var re=s.memoizedState;y.state=re,xu(s,d,y,p),wu(),te=s.memoizedState,D||re!==te||Uo?(typeof ye=="function"&&(Mv(s,c,ye,d),te=s.memoizedState),(z=Uo||v1(s,c,z,d,re,te,T))?(de||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(s.flags|=4194308)):(typeof y.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=d,s.memoizedState=te),y.props=d,y.state=te,y.context=T,d=z):(typeof y.componentDidMount=="function"&&(s.flags|=4194308),d=!1)}else{y=s.stateNode,hv(o,s),T=s.memoizedProps,de=Ja(c,T),y.props=de,ye=s.pendingProps,re=y.context,te=c.contextType,z=vl,typeof te=="object"&&te!==null&&(z=In(te)),D=c.getDerivedStateFromProps,(te=typeof D=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(T!==ye||re!==z)&&y1(s,y,d,z),Uo=!1,re=s.memoizedState,y.state=re,xu(s,d,y,p),wu();var ie=s.memoizedState;T!==ye||re!==ie||Uo||o!==null&&o.dependencies!==null&&qf(o.dependencies)?(typeof D=="function"&&(Mv(s,c,D,d),ie=s.memoizedState),(de=Uo||v1(s,c,de,d,re,ie,z)||o!==null&&o.dependencies!==null&&qf(o.dependencies))?(te||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(d,ie,z),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(d,ie,z)),typeof y.componentDidUpdate=="function"&&(s.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof y.componentDidUpdate!="function"||T===o.memoizedProps&&re===o.memoizedState||(s.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||T===o.memoizedProps&&re===o.memoizedState||(s.flags|=1024),s.memoizedProps=d,s.memoizedState=ie),y.props=d,y.state=ie,y.context=z,d=de):(typeof y.componentDidUpdate!="function"||T===o.memoizedProps&&re===o.memoizedState||(s.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||T===o.memoizedProps&&re===o.memoizedState||(s.flags|=1024),d=!1)}return y=d,um(o,s),d=(s.flags&128)!==0,y||d?(y=s.stateNode,c=d&&typeof c.getDerivedStateFromError!="function"?null:y.render(),s.flags|=1,o!==null&&d?(s.child=Tl(s,o.child,null,p),s.child=Tl(s,null,c,p)):$n(o,s,c,p),s.memoizedState=y.state,o=s.child):o=no(o,s,p),o}function A1(o,s,c,d){return hu(),s.flags|=256,$n(o,s,c,d),s.child}var Uv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lv(o){return{baseLanes:o,cachePool:_E()}}function Fv(o,s,c){return o=o!==null?o.childLanes&~c:0,s&&(o|=Br),o}function j1(o,s,c){var d=s.pendingProps,p=!1,y=(s.flags&128)!==0,T;if((T=y)||(T=o!==null&&o.memoizedState===null?!1:(hn.current&2)!==0),T&&(p=!0,s.flags&=-129),T=(s.flags&32)!==0,s.flags&=-33,o===null){if(wt){if(p?Vo(s):Ho(),wt){var D=Ht,z;if(z=D){e:{for(z=D,D=yi;z.nodeType!==8;){if(!D){D=null;break e}if(z=Jr(z.nextSibling),z===null){D=null;break e}}D=z}D!==null?(s.memoizedState={dehydrated:D,treeContext:qa!==null?{id:Ki,overflow:Xi}:null,retryLane:536870912,hydrationErrors:null},z=gr(18,null,null,0),z.stateNode=D,z.return=s,s.child=z,Vn=s,Ht=null,z=!0):z=!1}z||Wa(s)}if(D=s.memoizedState,D!==null&&(D=D.dehydrated,D!==null))return Ey(D)?s.lanes=32:s.lanes=536870912,null;to(s)}return D=d.children,d=d.fallback,p?(Ho(),p=s.mode,D=dm({mode:"hidden",children:D},p),d=Ha(d,p,c,null),D.return=s,d.return=s,D.sibling=d,s.child=D,p=s.child,p.memoizedState=Lv(c),p.childLanes=Fv(o,T,c),s.memoizedState=Uv,d):(Vo(s),Bv(s,D))}if(z=o.memoizedState,z!==null&&(D=z.dehydrated,D!==null)){if(y)s.flags&256?(Vo(s),s.flags&=-257,s=Vv(o,s,c)):s.memoizedState!==null?(Ho(),s.child=o.child,s.flags|=128,s=null):(Ho(),p=d.fallback,D=s.mode,d=dm({mode:"visible",children:d.children},D),p=Ha(p,D,c,null),p.flags|=2,d.return=s,p.return=s,d.sibling=p,s.child=d,Tl(s,o.child,null,c),d=s.child,d.memoizedState=Lv(c),d.childLanes=Fv(o,T,c),s.memoizedState=Uv,s=p);else if(Vo(s),Ey(D)){if(T=D.nextSibling&&D.nextSibling.dataset,T)var te=T.dgst;T=te,d=Error(i(419)),d.stack="",d.digest=T,pu({value:d,source:null,stack:null}),s=Vv(o,s,c)}else if(wn||gu(o,s,c,!1),T=(c&o.childLanes)!==0,wn||T){if(T=Mt,T!==null&&(d=c&-c,d=(d&42)!==0?1:er(d),d=(d&(T.suspendedLanes|c))!==0?0:d,d!==0&&d!==z.retryLane))throw z.retryLane=d,gl(o,d),Sr(T,o,d),k1;D.data==="$?"||sy(),s=Vv(o,s,c)}else D.data==="$?"?(s.flags|=192,s.child=o.child,s=null):(o=z.treeContext,Ht=Jr(D.nextSibling),Vn=s,wt=!0,Ya=null,yi=!1,o!==null&&(Ur[Lr++]=Ki,Ur[Lr++]=Xi,Ur[Lr++]=qa,Ki=o.id,Xi=o.overflow,qa=s),s=Bv(s,d.children),s.flags|=4096);return s}return p?(Ho(),p=d.fallback,D=s.mode,z=o.child,te=z.sibling,d=Gi(z,{mode:"hidden",children:d.children}),d.subtreeFlags=z.subtreeFlags&65011712,te!==null?p=Gi(te,p):(p=Ha(p,D,c,null),p.flags|=2),p.return=s,d.return=s,d.sibling=p,s.child=d,d=p,p=s.child,D=o.child.memoizedState,D===null?D=Lv(c):(z=D.cachePool,z!==null?(te=mn._currentValue,z=z.parent!==te?{parent:te,pool:te}:z):z=_E(),D={baseLanes:D.baseLanes|c,cachePool:z}),p.memoizedState=D,p.childLanes=Fv(o,T,c),s.memoizedState=Uv,d):(Vo(s),c=o.child,o=c.sibling,c=Gi(c,{mode:"visible",children:d.children}),c.return=s,c.sibling=null,o!==null&&(T=s.deletions,T===null?(s.deletions=[o],s.flags|=16):T.push(o)),s.child=c,s.memoizedState=null,c)}function Bv(o,s){return s=dm({mode:"visible",children:s},o.mode),s.return=o,o.child=s}function dm(o,s){return o=gr(22,o,null,s),o.lanes=0,o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},o}function Vv(o,s,c){return Tl(s,o.child,null,c),o=Bv(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function M1(o,s,c){o.lanes|=s;var d=o.alternate;d!==null&&(d.lanes|=s),sv(o.return,s,c)}function Hv(o,s,c,d,p){var y=o.memoizedState;y===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:p}:(y.isBackwards=s,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=c,y.tailMode=p)}function I1(o,s,c){var d=s.pendingProps,p=d.revealOrder,y=d.tail;if($n(o,s,d.children,c),d=hn.current,(d&2)!==0)d=d&1|2,s.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&M1(o,c,s);else if(o.tag===19)M1(o,c,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}d&=1}switch(X(hn,d),p){case"forwards":for(c=s.child,p=null;c!==null;)o=c.alternate,o!==null&&sm(o)===null&&(p=c),c=c.sibling;c=p,c===null?(p=s.child,s.child=null):(p=c.sibling,c.sibling=null),Hv(s,!1,p,c,y);break;case"backwards":for(c=null,p=s.child,s.child=null;p!==null;){if(o=p.alternate,o!==null&&sm(o)===null){s.child=p;break}o=p.sibling,p.sibling=c,c=p,p=o}Hv(s,!0,c,null,y);break;case"together":Hv(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function no(o,s,c){if(o!==null&&(s.dependencies=o.dependencies),Go|=s.lanes,(c&s.childLanes)===0)if(o!==null){if(gu(o,s,c,!1),(c&s.childLanes)===0)return null}else return null;if(o!==null&&s.child!==o.child)throw Error(i(153));if(s.child!==null){for(o=s.child,c=Gi(o,o.pendingProps),s.child=c,c.return=s;o.sibling!==null;)o=o.sibling,c=c.sibling=Gi(o,o.pendingProps),c.return=s;c.sibling=null}return s.child}function qv(o,s){return(o.lanes&s)!==0?!0:(o=o.dependencies,!!(o!==null&&qf(o)))}function D6(o,s,c){switch(s.tag){case 3:Ee(s,s.stateNode.containerInfo),zo(s,mn,o.memoizedState.cache),hu();break;case 27:case 5:Ie(s);break;case 4:Ee(s,s.stateNode.containerInfo);break;case 10:zo(s,s.type,s.memoizedProps.value);break;case 13:var d=s.memoizedState;if(d!==null)return d.dehydrated!==null?(Vo(s),s.flags|=128,null):(c&s.child.childLanes)!==0?j1(o,s,c):(Vo(s),o=no(o,s,c),o!==null?o.sibling:null);Vo(s);break;case 19:var p=(o.flags&128)!==0;if(d=(c&s.childLanes)!==0,d||(gu(o,s,c,!1),d=(c&s.childLanes)!==0),p){
vendor: 6,811 bytes, line 65
65if(d)return I1(o,s,c);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),X(hn,hn.current),d)break;return null;case 22:case 23:return s.lanes=0,$1(o,s,c);case 24:zo(s,mn,o.memoizedState.cache)}return no(o,s,c)}function P1(o,s,c){if(o!==null)if(o.memoizedProps!==s.pendingProps)wn=!0;else{if(!qv(o,c)&&(s.flags&128)===0)return wn=!1,D6(o,s,c);wn=(o.flags&131072)!==0}else wn=!1,wt&&(s.flags&1048576)!==0&&mE(s,Hf,s.index);switch(s.lanes=0,s.tag){case 16:e:{o=s.pendingProps;var d=s.elementType,p=d._init;if(d=p(d._payload),s.type=d,typeof d=="function")ev(d)?(o=Ja(d,o),s.tag=1,s=C1(null,s,d,o,c)):(s.tag=0,s=zv(null,s,d,o,c));else{if(d!=null){if(p=d.$$typeof,p===$){s.tag=11,s=O1(null,s,d,o,c);break e}else if(p===C){s.tag=14,s=T1(null,s,d,o,c);break e}}throw s=ae(d)||d,Error(i(306,s,""))}}return s;case 0:return zv(o,s,s.type,s.pendingProps,c);case 1:return d=s.type,p=Ja(d,s.pendingProps),C1(o,s,d,p,c);case 3:e:{if(Ee(s,s.stateNode.containerInfo),o===null)throw Error(i(387));d=s.pendingProps;var y=s.memoizedState;p=y.element,hv(o,s),xu(s,d,null,c);var T=s.memoizedState;if(d=T.cache,zo(s,mn,d),d!==y.cache&&lv(s,[mn],c,!0),wu(),d=T.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:T.cache},s.updateQueue.baseState=y,s.memoizedState=y,s.flags&256){s=A1(o,s,d,c);break e}else if(d!==p){p=Pr(Error(i(424)),s),pu(p),s=A1(o,s,d,c);break e}else{switch(o=s.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(Ht=Jr(o.firstChild),Vn=s,wt=!0,Ya=null,yi=!0,c=p1(s,null,d,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(hu(),d===p){s=no(o,s,c);break e}$n(o,s,d,c)}s=s.child}return s;case 26:return um(o,s),o===null?(c=Fk(s.type,null,s.pendingProps,null))?s.memoizedState=c:wt||(c=s.type,o=s.pendingProps,d=km(be.current).createElement(c),d[Qt]=s,d[Rn]=o,Dn(d,c,o),Sn(d),s.stateNode=d):s.memoizedState=Fk(s.type,o.memoizedProps,s.pendingProps,o.memoizedState),null;case 27:return Ie(s),o===null&&wt&&(d=s.stateNode=zk(s.type,s.pendingProps,be.current),Vn=s,yi=!0,p=Ht,Jo(s.type)?(ky=p,Ht=Jr(d.firstChild)):Ht=p),$n(o,s,s.pendingProps.children,c),um(o,s),o===null&&(s.flags|=4194304),s.child;case 5:return o===null&&wt&&((p=d=Ht)&&(d=oL(d,s.type,s.pendingProps,yi),d!==null?(s.stateNode=d,Vn=s,Ht=Jr(d.firstChild),yi=!1,p=!0):p=!1),p||Wa(s)),Ie(s),p=s.type,y=s.pendingProps,T=o!==null?o.memoizedProps:null,d=y.children,Sy(p,y)?d=null:T!==null&&Sy(p,T)&&(s.flags|=32),s.memoizedState!==null&&(p=_v(o,s,x6,null,null,c),qu._currentValue=p),um(o,s),$n(o,s,d,c),s.child;case 6:return o===null&&wt&&((o=c=Ht)&&(c=aL(c,s.pendingProps,yi),c!==null?(s.stateNode=c,Vn=s,Ht=null,o=!0):o=!1),o||Wa(s)),null;case 13:return j1(o,s,c);case 4:return Ee(s,s.stateNode.containerInfo),d=s.pendingProps,o===null?s.child=Tl(s,null,d,c):$n(o,s,d,c),s.child;case 11:return O1(o,s,s.type,s.pendingProps,c);case 7:return $n(o,s,s.pendingProps,c),s.child;case 8:return $n(o,s,s.pendingProps.children,c),s.child;case 12:return $n(o,s,s.pendingProps.children,c),s.child;case 10:return d=s.pendingProps,zo(s,s.type,d.value),$n(o,s,d.children,c),s.child;case 9:return p=s.type._context,d=s.pendingProps.children,Ka(s),p=In(p),d=d(p),s.flags|=1,$n(o,s,d,c),s.child;case 14:return T1(o,s,s.type,s.pendingProps,c);case 15:return R1(o,s,s.type,s.pendingProps,c);case 19:return I1(o,s,c);case 31:return d=s.pendingProps,c=s.mode,d={mode:d.mode,children:d.children},o===null?(c=dm(d,c),c.ref=s.ref,s.child=c,c.return=s,s=c):(c=Gi(o.child,d),c.ref=s.ref,s.child=c,c.return=s,s=c),s;case 22:return $1(o,s,c);case 24:return Ka(s),d=In(mn),o===null?(p=dv(),p===null&&(p=Mt,y=cv(),p.pooledCache=y,y.refCount++,y!==null&&(p.pooledCacheLanes|=c),p=y),s.memoizedState={parent:d,cache:p},mv(s),zo(s,mn,p)):((o.lanes&c)!==0&&(hv(o,s),xu(s,null,null,c),wu()),p=o.memoizedState,y=s.memoizedState,p.parent!==d?(p={parent:d,cache:d},s.memoizedState=p,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=p),zo(s,mn,d)):(d=y.cache,zo(s,mn,d),d!==p.cache&&lv(s,[mn],c,!0))),$n(o,s,s.pendingProps.children,c),s.child;case 29:throw s.pendingProps}throw Error(i(156,s.tag))}function ro(o){o.flags|=4}function z1(o,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Zk(s)){if(s=Fr.current,s!==null&&((gt&4194048)===gt?bi!==null:(gt&62914560)!==gt&&(gt&536870912)===0||s!==bi))throw _u=fv,SE;o.flags|=8192}}function fm(o,s){s!==null&&(o.flags|=4),o.flags&16384&&(s=o.tag!==22?ze():536870912,o.lanes|=s,Dl|=s)}function Nu(o,s){if(!wt)switch(o.tailMode){case"hidden":s=o.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?o.tail=null:c.sibling=null;break;case"collapsed":c=o.tail;for(var d=null;c!==null;)c.alternate!==null&&(d=c),c=c.sibling;d===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:d.sibling=null}}function Ft(o){var s=o.alternate!==null&&o.alternate.child===o.child,c=0,d=0;if(s)for(var p=o.child;p!==null;)c|=p.lanes|p.childLanes,d|=p.subtreeFlags&65011712,d|=p.flags&65011712,p.return=o,p=p.sibling;else for(p=o.child;p!==null;)c|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=o,p=p.sibling;return o.subtreeFlags|=d,o.childLanes=c,s}function C6(o,s,c){var d=s.pendingProps;switch(iv(s),s.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ft(s),null;case 1:return Ft(s),null;case 3:return c=s.stateNode,d=null,o!==null&&(d=o.memoizedState.cache),s.memoizedState.cache!==d&&(s.flags|=2048),Ji(mn),Ne(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(o===null||o.child===null)&&(mu(s)?ro(s):o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,gE())),Ft(s),null;case 26:return c=s.memoizedState,o===null?(ro(s),c!==null?(Ft(s),z1(s,c)):(Ft(s),s.flags&=-16777217)):c?c!==o.memoizedState?(ro(s),Ft(s),z1(s,c)):(Ft(s),s.flags&=-16777217):(o.memoizedProps!==d&&ro(s),Ft(s),s.flags&=-16777217),null;case 27:Ve(s),c=be.current;var p=s.type;if(o!==null&&s.stateNode!=null)o.memoizedProps!==d&&ro(s);else{if(!d){if(s.stateNode===null)throw Error(i(166));return Ft(s),null}o=le.current,mu(s)?hE(s):(o=zk(p,d,c),s.stateNode=o,ro(s))}return Ft(s),null;case 5:if(Ve(s),c=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==d&&ro(s);else{if(!d){if(s.stateNode===null)throw Error(i(166));return Ft(s),null}if(o=le.current,mu(s))hE(s);else{switch(p=km(be.current),o){case 1:o=p.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:o=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":o=p.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":o=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":o=p.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;
vendor: 8,786 bytes, line 65
65case"select":o=typeof d.is=="string"?p.createElement("select",{is:d.is}):p.createElement("select"),d.multiple?o.multiple=!0:d.size&&(o.size=d.size);break;default:o=typeof d.is=="string"?p.createElement(c,{is:d.is}):p.createElement(c)}}o[Qt]=s,o[Rn]=d;e:for(p=s.child;p!==null;){if(p.tag===5||p.tag===6)o.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===s)break e;for(;p.sibling===null;){if(p.return===null||p.return===s)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}s.stateNode=o;e:switch(Dn(o,c,d),c){case"button":case"input":case"select":case"textarea":o=!!d.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ro(s)}}return Ft(s),s.flags&=-16777217,null;case 6:if(o&&s.stateNode!=null)o.memoizedProps!==d&&ro(s);else{if(typeof d!="string"&&s.stateNode===null)throw Error(i(166));if(o=be.current,mu(s)){if(o=s.stateNode,c=s.memoizedProps,d=null,p=Vn,p!==null)switch(p.tag){case 27:case 5:d=p.memoizedProps}o[Qt]=s,o=!!(o.nodeValue===c||d!==null&&d.suppressHydrationWarning===!0||Dk(o.nodeValue,c)),o||Wa(s)}else o=km(o).createTextNode(d),o[Qt]=s,s.stateNode=o}return Ft(s),null;case 13:if(d=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(p=mu(s),d!==null&&d.dehydrated!==null){if(o===null){if(!p)throw Error(i(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[Qt]=s}else hu(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Ft(s),p=!1}else p=gE(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=p),p=!0;if(!p)return s.flags&256?(to(s),s):(to(s),null)}if(to(s),(s.flags&128)!==0)return s.lanes=c,s;if(c=d!==null,o=o!==null&&o.memoizedState!==null,c){d=s.child,p=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(p=d.alternate.memoizedState.cachePool.pool);var y=null;d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(y=d.memoizedState.cachePool.pool),y!==p&&(d.flags|=2048)}return c!==o&&c&&(s.child.flags|=8192),fm(s,s.updateQueue),Ft(s),null;case 4:return Ne(),o===null&&gy(s.stateNode.containerInfo),Ft(s),null;case 10:return Ji(s.type),Ft(s),null;case 19:if(Z(hn),p=s.memoizedState,p===null)return Ft(s),null;if(d=(s.flags&128)!==0,y=p.rendering,y===null)if(d)Nu(p,!1);else{if(qt!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(y=sm(o),y!==null){for(s.flags|=128,Nu(p,!1),o=y.updateQueue,s.updateQueue=o,fm(s,o),s.subtreeFlags=0,o=c,c=s.child;c!==null;)fE(c,o),c=c.sibling;return X(hn,hn.current&1|2),s.child}o=o.sibling}p.tail!==null&&st()>pm&&(s.flags|=128,d=!0,Nu(p,!1),s.lanes=4194304)}else{if(!d)if(o=sm(y),o!==null){if(s.flags|=128,d=!0,o=o.updateQueue,s.updateQueue=o,fm(s,o),Nu(p,!0),p.tail===null&&p.tailMode==="hidden"&&!y.alternate&&!wt)return Ft(s),null}else 2*st()-p.renderingStartTime>pm&&c!==536870912&&(s.flags|=128,d=!0,Nu(p,!1),s.lanes=4194304);p.isBackwards?(y.sibling=s.child,s.child=y):(o=p.last,o!==null?o.sibling=y:s.child=y,p.last=y)}return p.tail!==null?(s=p.tail,p.rendering=s,p.tail=s.sibling,p.renderingStartTime=st(),s.sibling=null,o=hn.current,X(hn,d?o&1|2:o&1),s):(Ft(s),null);case 22:case 23:return to(s),yv(),d=s.memoizedState!==null,o!==null?o.memoizedState!==null!==d&&(s.flags|=8192):d&&(s.flags|=8192),d?(c&536870912)!==0&&(s.flags&128)===0&&(Ft(s),s.subtreeFlags&6&&(s.flags|=8192)):Ft(s),c=s.updateQueue,c!==null&&fm(s,c.retryQueue),c=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==c&&(s.flags|=2048),o!==null&&Z(Xa),null;case 24:return c=null,o!==null&&(c=o.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),Ji(mn),Ft(s),null;case 25:return null;case 30:return null}throw Error(i(156,s.tag))}function A6(o,s){switch(iv(s),s.tag){case 1:return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return Ji(mn),Ne(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 26:case 27:case 5:return Ve(s),null;case 13:if(to(s),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(i(340));hu()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return Z(hn),null;case 4:return Ne(),null;case 10:return Ji(s.type),null;case 22:case 23:return to(s),yv(),o!==null&&Z(Xa),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 24:return Ji(mn),null;case 25:return null;default:return null}}function U1(o,s){switch(iv(s),s.tag){case 3:Ji(mn),Ne();break;case 26:case 27:case 5:Ve(s);break;case 4:Ne();break;case 13:to(s);break;case 19:Z(hn);break;case 10:Ji(s.type);break;case 22:case 23:to(s),yv(),o!==null&&Z(Xa);break;case 24:Ji(mn)}}function Du(o,s){try{var c=s.updateQueue,d=c!==null?c.lastEffect:null;if(d!==null){var p=d.next;c=p;do{if((c.tag&o)===o){d=void 0;var y=c.create,T=c.inst;d=y(),T.destroy=d}c=c.next}while(c!==p)}}catch(D){jt(s,s.return,D)}}function qo(o,s,c){try{var d=s.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var y=p.next;d=y;do{if((d.tag&o)===o){var T=d.inst,D=T.destroy;if(D!==void 0){T.destroy=void 0,p=s;var z=c,te=D;try{te()}catch(de){jt(p,z,de)}}}d=d.next}while(d!==y)}}catch(de){jt(s,s.return,de)}}function L1(o){var s=o.updateQueue;if(s!==null){var c=o.stateNode;try{TE(s,c)}catch(d){jt(o,o.return,d)}}}function F1(o,s,c){c.props=Ja(o.type,o.memoizedProps),c.state=o.memoizedState;try{c.componentWillUnmount()}catch(d){jt(o,s,d)}}function Cu(o,s){try{var c=o.ref;if(c!==null){switch(o.tag){case 26:case 27:case 5:var d=o.stateNode;break;case 30:d=o.stateNode;break;default:d=o.stateNode}typeof c=="function"?o.refCleanup=c(d):c.current=d}}catch(p){jt(o,s,p)}}function _i(o,s){var c=o.ref,d=o.refCleanup;if(c!==null)if(typeof d=="function")try{d()}catch(p){jt(o,s,p)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(p){jt(o,s,p)}else c.current=null}function B1(o){var s=o.type,c=o.memoizedProps,d=o.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&d.focus();break e;case"img":c.src?d.src=c.src:c.srcSet&&(d.srcset=c.srcSet)}}catch(p){jt(o,o.return,p)}}function Zv(o,s,c){try{var d=o.stateNode;eL(d,o.type,c,s),d[Rn]=s}catch(p){jt(o,o.return,p)}}function V1(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Jo(o.type)||o.tag===4}function Yv(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||V1(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Jo(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Wv(o,s,c){var d=o.tag;if(d===5||d===6)o=o.stateNode,s?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(o,s):(s=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,s.appendChild(o),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=Em));else if(d!==4&&(d===27&&Jo(o.type)&&(c=o.stateNode,s=null),o=o.child,o!==null))for(Wv(o,s,c),o=o.sibling;o!==null;)Wv(o,s,c),o=o.sibling}function mm(o,s,c){var d=o.tag;if(d===5||d===6)o=o.stateNode,s?c.insertBefore(o,s):c.appendChild(o);else if(d!==4&&(d===27&&Jo(o.type)&&(c=o.stateNode),o=o.child,o!==null))for(mm(o,s,c),o=o.sibling;o!==null;)mm(o,s,c),o=o.sibling}function H1(o){var s=o.stateNode,c=o.memoizedProps;try{for(var d=o.type,p=s.attributes;p.length;)s.removeAttributeNode(p[0]);Dn(s,d,c),s[Qt]=o,s[Rn]=c}catch(y){jt(o,o.return,y)}}var io=!1,en=!1,Gv=!1,q1=typeof WeakSet=="function"?WeakSet:Set,xn=null;function j6(o,s){if(o=o.containerInfo,by=Dm,o=nE(o),Yg(o)){if("selectionStart"in o)var c={start:o.selectionStart,end:o.selectionEnd};else e:{c=(c=o.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&d.rangeCount!==0){c=d.anchorNode;var p=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{c.nodeType,y.nodeType}catch{c=null;break e}var T=0,D=-1,z=-1,te=0,de=0,ye=o,re=null;t:for(;;){for(var ie;ye!==c||p!==0&&ye.nodeType!==3||(D=T+p),ye!==y||d!==0&&ye.nodeType!==3||(z=T+d),ye.nodeType===3&&(T+=ye.nodeValue.length),(ie=ye.firstChild)!==null;)re=ye,ye=ie;for(;;){if(ye===o)break t;if(re===c&&++te===p&&(D=T),re===y&&++de===d&&(z=T),(ie=ye.nextSibling)!==null)break;ye=re,re=ye.parentNode}ye=ie}c=D===-1||z===-1?null:{start:D,end:z}}else c=null}c=c||{start:0,end:0}}else c=null;for(_y={focusedElem:o,selectionRange:c},Dm=!1,xn=s;xn!==null;)if(s=xn,o=s.child,(s.subtreeFlags&1024)!==0&&o!==null)o.return=s,xn=o;else for(;xn!==null;){switch(s=xn,y=s.alternate,o=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((o&1024)!==0&&y!==null){o=void 0,c=s,p=y.memoizedProps,y=y.memoizedState,d=c.stateNode;
vendor: 5,505 bytes, line 65
65try{var Ge=Ja(c.type,p,c.elementType===c.type);o=d.getSnapshotBeforeUpdate(Ge,y),d.__reactInternalSnapshotBeforeUpdate=o}catch(He){jt(c,c.return,He)}}break;case 3:if((o&1024)!==0){if(o=s.stateNode.containerInfo,c=o.nodeType,c===9)xy(o);else if(c===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":xy(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(i(163))}if(o=s.sibling,o!==null){o.return=s.return,xn=o;break}xn=s.return}}function Z1(o,s,c){var d=c.flags;switch(c.tag){case 0:case 11:case 15:Zo(o,c),d&4&&Du(5,c);break;case 1:if(Zo(o,c),d&4)if(o=c.stateNode,s===null)try{o.componentDidMount()}catch(T){jt(c,c.return,T)}else{var p=Ja(c.type,s.memoizedProps);s=s.memoizedState;try{o.componentDidUpdate(p,s,o.__reactInternalSnapshotBeforeUpdate)}catch(T){jt(c,c.return,T)}}d&64&&L1(c),d&512&&Cu(c,c.return);break;case 3:if(Zo(o,c),d&64&&(o=c.updateQueue,o!==null)){if(s=null,c.child!==null)switch(c.child.tag){case 27:case 5:s=c.child.stateNode;break;case 1:s=c.child.stateNode}try{TE(o,s)}catch(T){jt(c,c.return,T)}}break;case 27:s===null&&d&4&&H1(c);case 26:case 5:Zo(o,c),s===null&&d&4&&B1(c),d&512&&Cu(c,c.return);break;case 12:Zo(o,c);break;case 13:Zo(o,c),d&4&&G1(o,c),d&64&&(o=c.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(c=V6.bind(null,c),sL(o,c))));break;case 22:if(d=c.memoizedState!==null||io,!d){s=s!==null&&s.memoizedState!==null||en,p=io;var y=en;io=d,(en=s)&&!y?Yo(o,c,(c.subtreeFlags&8772)!==0):Zo(o,c),io=p,en=y}break;case 30:break;default:Zo(o,c)}}function Y1(o){var s=o.alternate;s!==null&&(o.alternate=null,Y1(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&Rg(s)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Ut=null,or=!1;function oo(o,s,c){for(c=c.child;c!==null;)W1(o,s,c),c=c.sibling}function W1(o,s,c){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(Oe,c)}catch{}switch(c.tag){case 26:en||_i(c,s),oo(o,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:en||_i(c,s);var d=Ut,p=or;Jo(c.type)&&(Ut=c.stateNode,or=!1),oo(o,s,c),Fu(c.stateNode),Ut=d,or=p;break;case 5:en||_i(c,s);case 6:if(d=Ut,p=or,Ut=null,oo(o,s,c),Ut=d,or=p,Ut!==null)if(or)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(c.stateNode)}catch(y){jt(c,s,y)}else try{Ut.removeChild(c.stateNode)}catch(y){jt(c,s,y)}break;case 18:Ut!==null&&(or?(o=Ut,Ik(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,c.stateNode),Gu(o)):Ik(Ut,c.stateNode));break;case 4:d=Ut,p=or,Ut=c.stateNode.containerInfo,or=!0,oo(o,s,c),Ut=d,or=p;break;case 0:case 11:case 14:case 15:en||qo(2,c,s),en||qo(4,c,s),oo(o,s,c);break;case 1:en||(_i(c,s),d=c.stateNode,typeof d.componentWillUnmount=="function"&&F1(c,s,d)),oo(o,s,c);break;case 21:oo(o,s,c);break;case 22:en=(d=en)||c.memoizedState!==null,oo(o,s,c),en=d;break;default:oo(o,s,c)}}function G1(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Gu(o)}catch(c){jt(s,s.return,c)}}function M6(o){switch(o.tag){case 13:case 19:var s=o.stateNode;return s===null&&(s=o.stateNode=new q1),s;case 22:return o=o.stateNode,s=o._retryCache,s===null&&(s=o._retryCache=new q1),s;default:throw Error(i(435,o.tag))}}function Kv(o,s){var c=M6(o);s.forEach(function(d){var p=H6.bind(null,o,d);c.has(d)||(c.add(d),d.then(p,p))})}function vr(o,s){var c=s.deletions;if(c!==null)for(var d=0;d<c.length;d++){var p=c[d],y=o,T=s,D=T;e:for(;D!==null;){switch(D.tag){case 27:if(Jo(D.type)){Ut=D.stateNode,or=!1;break e}break;case 5:Ut=D.stateNode,or=!1;break e;case 3:case 4:Ut=D.stateNode.containerInfo,or=!0;break e}D=D.return}if(Ut===null)throw Error(i(160));W1(y,T,p),Ut=null,or=!1,y=p.alternate,y!==null&&(y.return=null),p.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)K1(s,o),s=s.sibling}var Qr=null;function K1(o,s){var c=o.alternate,d=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:vr(s,o),yr(o),d&4&&(qo(3,o,o.return),Du(3,o),qo(5,o,o.return));break;case 1:vr(s,o),yr(o),d&512&&(en||c===null||_i(c,c.return)),d&64&&io&&(o=o.updateQueue,o!==null&&(d=o.callbacks,d!==null&&(c=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=c===null?d:c.concat(d))));break;case 26:var p=Qr;if(vr(s,o),yr(o),d&512&&(en||c===null||_i(c,c.return)),d&4){var y=c!==null?c.memoizedState:null;if(d=o.memoizedState,c===null)if(d===null)if(o.stateNode===null){e:{d=o.type,c=o.memoizedProps,p=p.ownerDocument||p;t:switch(d){case"title":y=p.getElementsByTagName("title")[0],(!y||y[nu]||y[Qt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=p.createElement(d),p.head.insertBefore(y,p.querySelector("head > title"))),Dn(y,d,c),y[Qt]=o,Sn(y),d=y;break e;case"link":var T=Hk("link","href",p).get(d+(c.href||""));if(T){for(var D=0;D<T.length;D++)if(y=T[D],y.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&y.getAttribute("rel")===(c.rel==null?null:c.rel)&&y.getAttribute("title")===(c.title==null?null:c.title)&&y.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){T.splice(D,1);break t}}y=p.createElement(d),Dn(y,d,c),p.head.appendChild(y);break;case"meta":if(T=Hk("meta","content",p).get(d+(c.content||""))){for(D=0;D<T.length;D++)if(y=T[D],y.getAttribute("content")===(c.content==null?null:""+c.
vendor: 9,399 bytes, line 65
65content)&&y.getAttribute("name")===(c.name==null?null:c.name)&&y.getAttribute("property")===(c.property==null?null:c.property)&&y.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&y.getAttribute("charset")===(c.charSet==null?null:c.charSet)){T.splice(D,1);break t}}y=p.createElement(d),Dn(y,d,c),p.head.appendChild(y);break;default:throw Error(i(468,d))}y[Qt]=o,Sn(y),d=y}o.stateNode=d}else qk(p,o.type,o.stateNode);else o.stateNode=Vk(p,d,o.memoizedProps);else y!==d?(y===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):y.count--,d===null?qk(p,o.type,o.stateNode):Vk(p,d,o.memoizedProps)):d===null&&o.stateNode!==null&&Zv(o,o.memoizedProps,c.memoizedProps)}break;case 27:vr(s,o),yr(o),d&512&&(en||c===null||_i(c,c.return)),c!==null&&d&4&&Zv(o,o.memoizedProps,c.memoizedProps);break;case 5:if(vr(s,o),yr(o),d&512&&(en||c===null||_i(c,c.return)),o.flags&32){p=o.stateNode;try{cl(p,"")}catch(ie){jt(o,o.return,ie)}}d&4&&o.stateNode!=null&&(p=o.memoizedProps,Zv(o,p,c!==null?c.memoizedProps:p)),d&1024&&(Gv=!0);break;case 6:if(vr(s,o),yr(o),d&4){if(o.stateNode===null)throw Error(i(162));d=o.memoizedProps,c=o.stateNode;try{c.nodeValue=d}catch(ie){jt(o,o.return,ie)}}break;case 3:if(Rm=null,p=Qr,Qr=Om(s.containerInfo),vr(s,o),Qr=p,yr(o),d&4&&c!==null&&c.memoizedState.isDehydrated)try{Gu(s.containerInfo)}catch(ie){jt(o,o.return,ie)}Gv&&(Gv=!1,X1(o));break;case 4:d=Qr,Qr=Om(o.stateNode.containerInfo),vr(s,o),yr(o),Qr=d;break;case 12:vr(s,o),yr(o);break;case 13:vr(s,o),yr(o),o.child.flags&8192&&o.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(ny=st()),d&4&&(d=o.updateQueue,d!==null&&(o.updateQueue=null,Kv(o,d)));break;case 22:p=o.memoizedState!==null;var z=c!==null&&c.memoizedState!==null,te=io,de=en;if(io=te||p,en=de||z,vr(s,o),en=de,io=te,yr(o),d&8192)e:for(s=o.stateNode,s._visibility=p?s._visibility&-2:s._visibility|1,p&&(c===null||z||io||en||es(o)),c=null,s=o;;){if(s.tag===5||s.tag===26){if(c===null){z=c=s;try{if(y=z.stateNode,p)T=y.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{D=z.stateNode;var ye=z.memoizedProps.style,re=ye!=null&&ye.hasOwnProperty("display")?ye.display:null;D.style.display=re==null||typeof re=="boolean"?"":(""+re).trim()}}catch(ie){jt(z,z.return,ie)}}}else if(s.tag===6){if(c===null){z=s;try{z.stateNode.nodeValue=p?"":z.memoizedProps}catch(ie){jt(z,z.return,ie)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===o)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;c===s&&(c=null),s=s.return}c===s&&(c=null),s.sibling.return=s.return,s=s.sibling}d&4&&(d=o.updateQueue,d!==null&&(c=d.retryQueue,c!==null&&(d.retryQueue=null,Kv(o,c))));break;case 19:vr(s,o),yr(o),d&4&&(d=o.updateQueue,d!==null&&(o.updateQueue=null,Kv(o,d)));break;case 30:break;case 21:break;default:vr(s,o),yr(o)}}function yr(o){var s=o.flags;if(s&2){try{for(var c,d=o.return;d!==null;){if(V1(d)){c=d;break}d=d.return}if(c==null)throw Error(i(160));switch(c.tag){case 27:var p=c.stateNode,y=Yv(o);mm(o,y,p);break;case 5:var T=c.stateNode;c.flags&32&&(cl(T,""),c.flags&=-33);var D=Yv(o);mm(o,D,T);break;case 3:case 4:var z=c.stateNode.containerInfo,te=Yv(o);Wv(o,te,z);break;default:throw Error(i(161))}}catch(de){jt(o,o.return,de)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function X1(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var s=o;X1(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),o=o.sibling}}function Zo(o,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)Z1(o,s.alternate,s),s=s.sibling}function es(o){for(o=o.child;o!==null;){var s=o;switch(s.tag){case 0:case 11:case 14:case 15:qo(4,s,s.return),es(s);break;case 1:_i(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&F1(s,s.return,c),es(s);break;case 27:Fu(s.stateNode);case 26:case 5:_i(s,s.return),es(s);break;case 22:s.memoizedState===null&&es(s);break;case 30:es(s);break;default:es(s)}o=o.sibling}}function Yo(o,s,c){for(c=c&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var d=s.alternate,p=o,y=s,T=y.flags;switch(y.tag){case 0:case 11:case 15:Yo(p,y,c),Du(4,y);break;case 1:if(Yo(p,y,c),d=y,p=d.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(te){jt(d,d.return,te)}if(d=y,p=d.updateQueue,p!==null){var D=d.stateNode;try{var z=p.shared.hiddenCallbacks;if(z!==null)for(p.shared.hiddenCallbacks=null,p=0;p<z.length;p++)OE(z[p],D)}catch(te){jt(d,d.return,te)}}c&&T&64&&L1(y),Cu(y,y.return);break;case 27:H1(y);case 26:case 5:Yo(p,y,c),c&&d===null&&T&4&&B1(y),Cu(y,y.return);break;case 12:Yo(p,y,c);break;case 13:Yo(p,y,c),c&&T&4&&G1(p,y);break;case 22:y.memoizedState===null&&Yo(p,y,c),Cu(y,y.return);break;case 30:break;default:Yo(p,y,c)}s=s.sibling}}function Xv(o,s){var c=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==c&&(o!=null&&o.refCount++,c!=null&&vu(c))}function Qv(o,s){o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&vu(o))}function Si(o,s,c,d){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Q1(o,s,c,d),s=s.sibling}function Q1(o,s,c,d){var p=s.flags;switch(s.tag){case 0:case 11:case 15:Si(o,s,c,d),p&2048&&Du(9,s);break;case 1:Si(o,s,c,d);break;case 3:Si(o,s,c,d),p&2048&&(o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&vu(o)));break;case 12:if(p&2048){Si(o,s,c,d),o=s.stateNode;try{var y=s.memoizedProps,T=y.id,D=y.onPostCommit;typeof D=="function"&&D(T,s.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(z){jt(s,s.return,z)}}else Si(o,s,c,d);break;case 13:Si(o,s,c,d);break;case 23:break;case 22:y=s.stateNode,T=s.alternate,s.memoizedState!==null?y._visibility&2?Si(o,s,c,d):Au(o,s):y._visibility&2?Si(o,s,c,d):(y._visibility|=2,Rl(o,s,c,d,(s.subtreeFlags&10256)!==0)),p&2048&&Xv(T,s);break;case 24:Si(o,s,c,d),p&2048&&Qv(s.alternate,s);break;default:Si(o,s,c,d)}}function Rl(o,s,c,d,p){for(p=p&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var y=o,T=s,D=c,z=d,te=T.flags;switch(T.tag){case 0:case 11:case 15:Rl(y,T,D,z,p),Du(8,T);break;case 23:break;case 22:var de=T.stateNode;T.memoizedState!==null?de._visibility&2?Rl(y,T,D,z,p):Au(y,T):(de._visibility|=2,Rl(y,T,D,z,p)),p&&te&2048&&Xv(T.alternate,T);break;case 24:Rl(y,T,D,z,p),p&&te&2048&&Qv(T.alternate,T);break;default:Rl(y,T,D,z,p)}s=s.sibling}}function Au(o,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var c=o,d=s,p=d.flags;switch(d.tag){case 22:Au(c,d),p&2048&&Xv(d.alternate,d);break;case 24:Au(c,d),p&2048&&Qv(d.alternate,d);break;default:Au(c,d)}s=s.sibling}}var ju=8192;function $l(o){if(o.subtreeFlags&ju)for(o=o.child;o!==null;)J1(o),o=o.sibling}function J1(o){switch(o.tag){case 26:$l(o),o.flags&ju&&o.memoizedState!==null&&_L(Qr,o.memoizedState,o.memoizedProps);break;case 5:$l(o);break;case 3:case 4:var s=Qr;Qr=Om(o.stateNode.containerInfo),$l(o),Qr=s;break;case 22:o.memoizedState===null&&(s=o.alternate,s!==null&&s.memoizedState!==null?(s=ju,ju=16777216,$l(o),ju=s):$l(o));break;default:$l(o)}}function ek(o){var s=o.alternate;if(s!==null&&(o=s.child,o!==null)){s.child=null;do s=o.sibling,o.sibling=null,o=s;while(o!==null)}}function Mu(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var d=s[c];xn=d,nk(d,o)}ek(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)tk(o),o=o.sibling}function tk(o){switch(o.tag){case 0:case 11:case 15:Mu(o),o.flags&2048&&qo(9,o,o.return);break;case 3:Mu(o);break;case 12:Mu(o);break;case 22:var s=o.stateNode;o.memoizedState!==null&&s._visibility&2&&(o.return===null||o.return.tag!==13)?(s._visibility&=-3,hm(o)):Mu(o);break;default:Mu(o)}}function hm(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var d=s[c];xn=d,nk(d,o)}ek(o)}for(o=o.child;o!==null;){switch(s=o,s.tag){case 0:case 11:case 15:qo(8,s,s.return),hm(s);break;case 22:c=s.stateNode,c._visibility&2&&(c._visibility&=-3,hm(s));break;default:hm(s)}o=o.sibling}}function nk(o,s){for(;xn!==null;){var c=xn;switch(c.tag){case 0:case 11:case 15:qo(8,c,s);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var d=c.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:vu(c.memoizedState.cache)}if(d=c.child,d!==null)d.return=c,xn=d;else e:for(c=o;xn!==null;){d=xn;var p=d.sibling,y=d.return;if(Y1(d),d===c){xn=null;break e}if(p!==null){p.return=y,xn=p;break e}xn=y}}}var I6={getCacheForType:function(o){var s=In(mn),c=s.data.get(o);return c===void 0&&(c=o(),s.data.set(o,c)),c}},P6=typeof WeakMap=="function"?WeakMap:Map,kt=0,Mt=null,ft=null,gt=0,Ot=0,br=null,Wo=!1,Nl=!1,Jv=!1,ao=0,qt=0,Go=0,ts=0,ey=0,Br=0,Dl=0,Iu=null,ar=null,ty=!1,ny=0,pm=1/0,gm=null,Ko=null,Nn=0,Xo=null,Cl=null,Al=0,ry=0,iy=null,rk=null,Pu=0,oy=null;function _r(){if((kt&2)!==0&&gt!==0)return gt&-gt;if(j.T!==null){var o=_l;return o!==0?o:fy()}return tr()}function ik(){Br===0&&(Br=(gt&536870912)===0||wt?xe():536870912);var o=Fr.current;return o!==null&&(o.flags|=32),Br}function Sr(o,s,c){(o===Mt&&(Ot===2||Ot===9)||o.cancelPendingCommit!==null)&&(jl(o,0),Qo(o,gt,Br,!1)),De(o,c),((kt&2)===0||o!==Mt)&&(o===Mt&&((kt&2)===0&&(ts|=c),qt===4&&Qo(o,gt,Br,!1)),wi(o))}
vendor: 4,127 bytes, line 65
65function ok(o,s,c){if((kt&6)!==0)throw Error(i(327));var d=!c&&(s&124)===0&&(s&o.expiredLanes)===0||Kr(o,s),p=d?L6(o,s):ly(o,s,!0),y=d;do{if(p===0){Nl&&!d&&Qo(o,s,0,!1);break}else{if(c=o.current.alternate,y&&!z6(c)){p=ly(o,s,!1),y=!1;continue}if(p===2){if(y=s,o.errorRecoveryDisabledLanes&y)var T=0;else T=o.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){s=T;e:{var D=o;p=Iu;var z=D.current.memoizedState.isDehydrated;if(z&&(jl(D,T).flags|=256),T=ly(D,T,!1),T!==2){if(Jv&&!z){D.errorRecoveryDisabledLanes|=y,ts|=y,p=4;break e}y=ar,ar=p,y!==null&&(ar===null?ar=y:ar.push.apply(ar,y))}p=T}if(y=!1,p!==2)continue}}if(p===1){jl(o,0),Qo(o,s,0,!0);break}e:{switch(d=o,y=p,y){case 0:case 1:throw Error(i(345));case 4:if((s&4194048)!==s)break;case 6:Qo(d,s,Br,!Wo);break e;case 2:ar=null;break;case 3:case 5:break;default:throw Error(i(329))}if((s&62914560)===s&&(p=ny+300-st(),10<p)){if(Qo(d,s,Br,!Wo),jr(d,0,!0)!==0)break e;d.timeoutHandle=jk(ak.bind(null,d,c,ar,gm,ty,s,Br,ts,Dl,Wo,y,2,-0,0),p);break e}ak(d,c,ar,gm,ty,s,Br,ts,Dl,Wo,y,0,-0,0)}}break}while(!0);wi(o)}function ak(o,s,c,d,p,y,T,D,z,te,de,ye,re,ie){if(o.timeoutHandle=-1,ye=s.subtreeFlags,(ye&8192||(ye&16785408)===16785408)&&(Hu={stylesheets:null,count:0,unsuspend:bL},J1(s),ye=SL(),ye!==null)){o.cancelPendingCommit=ye(mk.bind(null,o,s,y,c,d,p,T,D,z,de,1,re,ie)),Qo(o,y,T,!te);return}mk(o,s,y,c,d,p,T,D,z)}function z6(o){for(var s=o;;){var c=s.tag;if((c===0||c===11||c===15)&&s.flags&16384&&(c=s.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var d=0;d<c.length;d++){var p=c[d],y=p.getSnapshot;p=p.value;try{if(!pr(y(),p))return!1}catch{return!1}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Qo(o,s,c,d){s&=~ey,s&=~ts,o.suspendedLanes|=s,o.pingedLanes&=~s,d&&(o.warmLanes|=s),d=o.expirationTimes;for(var p=s;0<p;){var y=31-vt(p),T=1<<y;d[y]=-1,p&=~T}c!==0&&We(o,c,s)}function vm(){return(kt&6)===0?(zu(0),!1):!0}function ay(){if(ft!==null){if(Ot===0)var o=ft.return;else o=ft,Qi=Ga=null,xv(o),Ol=null,Ru=0,o=ft;for(;o!==null;)U1(o.alternate,o),o=o.return;ft=null}}function jl(o,s){var c=o.timeoutHandle;c!==-1&&(o.timeoutHandle=-1,nL(c)),c=o.cancelPendingCommit,c!==null&&(o.cancelPendingCommit=null,c()),ay(),Mt=o,ft=c=Gi(o.current,null),gt=s,Ot=0,br=null,Wo=!1,Nl=Kr(o,s),Jv=!1,Dl=Br=ey=ts=Go=qt=0,ar=Iu=null,ty=!1,(s&8)!==0&&(s|=s&32);var d=o.entangledLanes;if(d!==0)for(o=o.entanglements,d&=s;0<d;){var p=31-vt(d),y=1<<p;s|=o[p],d&=~y}return ao=s,Uf(),c}function sk(o,s){lt=null,j.H=im,s===bu||s===Wf?(s=EE(),Ot=3):s===SE?(s=EE(),Ot=4):Ot=s===k1?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,br=s,ft===null&&(qt=1,cm(o,Pr(s,o.current)))}function lk(){var o=j.H;return j.H=im,o===null?im:o}function ck(){var o=j.A;return j.A=I6,o}function sy(){qt=4,Wo||(gt&4194048)!==gt&&Fr.current!==null||(Nl=!0),(Go&134217727)===0&&(ts&134217727)===0||Mt===null||Qo(Mt,gt,Br,!1)}function ly(o,s,c){var d=kt;kt|=2;var p=lk(),y=ck();(Mt!==o||gt!==s)&&(gm=null,jl(o,s)),s=!1;var T=qt;e:do try{if(Ot!==0&&ft!==null){var D=ft,z=br;switch(Ot){case 8:ay(),T=6;break e;case 3:case 2:case 9:case 6:Fr.current===null&&(s=!0);var te=Ot;if(Ot=0,br=null,Ml(o,D,z,te),c&&Nl){T=0;break e}break;default:te=Ot,Ot=0,br=null,Ml(o,D,z,te)}}U6(),T=qt;break}catch(de){sk(o,de)}while(!0);return s&&o.shellSuspendCounter++,Qi=Ga=null,kt=d,j.H=p,j.A=y,ft===null&&(Mt=null,gt=0,Uf()),T}function U6(){for(;ft!==null;)uk(ft)}function L6(o,s){var c=kt;kt|=2;var d=lk(),p=ck();Mt!==o||gt!==s?(gm=null,pm=st()+500,jl(o,s)):Nl=Kr(o,s);e:do try{if(Ot!==0&&ft!==null){s=ft;var y=br;t:switch(Ot){case 1:Ot=0,br=null,Ml(o,s,y,1);break;case 2:case 9:if(wE(y)){Ot=0,br=null,dk(s);break}s=function(){Ot!==2&&Ot!==9||Mt!==o||(Ot=7),wi(o)},y.then(s,s);break e;case 3:Ot=7;break e;case 4:Ot=5;break e;case 7:wE(y)?(Ot=0,br=null,dk(s)):(Ot=0,br=null,Ml(o,s,y,7));break;case 5:var T=null;switch(ft.tag){case 26:T=ft.memoizedState;case 5:case 27:var D=ft;if(!T||Zk(T)){Ot=0,br=null;var z=D.sibling;if(z!==null)ft=z;
vendor: 1,444 bytes, line 65
65else{var te=D.return;te!==null?(ft=te,ym(te)):ft=null}break t}}Ot=0,br=null,Ml(o,s,y,5);break;case 6:Ot=0,br=null,Ml(o,s,y,6);break;case 8:ay(),qt=6;break e;default:throw Error(i(462))}}F6();break}catch(de){sk(o,de)}while(!0);return Qi=Ga=null,j.H=d,j.A=p,kt=c,ft!==null?0:(Mt=null,gt=0,Uf(),qt)}function F6(){for(;ft!==null&&!Me();)uk(ft)}function uk(o){var s=P1(o.alternate,o,ao);o.memoizedProps=o.pendingProps,s===null?ym(o):ft=s}function dk(o){var s=o,c=s.alternate;switch(s.tag){case 15:case 0:s=D1(c,s,s.pendingProps,s.type,void 0,gt);break;case 11:s=D1(c,s,s.pendingProps,s.type.render,s.ref,gt);break;case 5:xv(s);default:U1(c,s),s=ft=fE(s,ao),s=P1(c,s,ao)}o.memoizedProps=o.pendingProps,s===null?ym(o):ft=s}function Ml(o,s,c,d){Qi=Ga=null,xv(s),Ol=null,Ru=0;var p=s.return;try{if(N6(o,p,s,c,gt)){qt=1,cm(o,Pr(c,o.current)),ft=null;return}}catch(y){if(p!==null)throw ft=p,y;qt=1,cm(o,Pr(c,o.current)),ft=null;return}s.flags&32768?(wt||d===1?o=!0:Nl||(gt&536870912)!==0?o=!1:(Wo=o=!0,(d===2||d===9||d===3||d===6)&&(d=Fr.current,d!==null&&d.tag===13&&(d.flags|=16384))),fk(s,o)):ym(s)}function ym(o){var s=o;do{if((s.flags&32768)!==0){fk(s,Wo);return}o=s.return;var c=C6(s.alternate,s,ao);if(c!==null){ft=c;return}if(s=s.sibling,s!==null){ft=s;return}ft=s=o}while(s!==null);qt===0&&(qt=5)}function fk(o,s){do{var c=A6(o.alternate,o);if(c!==null){c.flags&=32767,ft=c;return}if(c=o.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deleti
vendor: 8,238 bytes, line 65
65ons=null),!s&&(o=o.sibling,o!==null)){ft=o;return}ft=o=c}while(o!==null);qt=6,ft=null}function mk(o,s,c,d,p,y,T,D,z){o.cancelPendingCommit=null;do bm();while(Nn!==0);if((kt&6)!==0)throw Error(i(327));if(s!==null){if(s===o.current)throw Error(i(177));if(y=s.lanes|s.childLanes,y|=Qg,dt(o,c,y,T,D,z),o===Mt&&(ft=Mt=null,gt=0),Cl=s,Xo=o,Al=c,ry=y,iy=p,rk=d,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,q6(Q,function(){return yk(),null})):(o.callbackNode=null,o.callbackPriority=0),d=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||d){d=j.T,j.T=null,p=G.p,G.p=2,T=kt,kt|=4;try{j6(o,s,c)}finally{kt=T,G.p=p,j.T=d}}Nn=1,hk(),pk(),gk()}}function hk(){if(Nn===1){Nn=0;var o=Xo,s=Cl,c=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||c){c=j.T,j.T=null;var d=G.p;G.p=2;var p=kt;kt|=4;try{K1(s,o);var y=_y,T=nE(o.containerInfo),D=y.focusedElem,z=y.selectionRange;if(T!==D&&D&&D.ownerDocument&&tE(D.ownerDocument.documentElement,D)){if(z!==null&&Yg(D)){var te=z.start,de=z.end;if(de===void 0&&(de=te),"selectionStart"in D)D.selectionStart=te,D.selectionEnd=Math.min(de,D.value.length);else{var ye=D.ownerDocument||document,re=ye&&ye.defaultView||window;if(re.getSelection){var ie=re.getSelection(),Ge=D.textContent.length,He=Math.min(z.start,Ge),Ct=z.end===void 0?He:Math.min(z.end,Ge);!ie.extend&&He>Ct&&(T=Ct,Ct=He,He=T);var W=eE(D,He),q=eE(D,Ct);if(W&&q&&(ie.rangeCount!==1||ie.anchorNode!==W.node||ie.anchorOffset!==W.offset||ie.focusNode!==q.node||ie.focusOffset!==q.offset)){var ee=ye.createRange();ee.setStart(W.node,W.offset),ie.removeAllRanges(),He>Ct?(ie.addRange(ee),ie.extend(q.node,q.offset)):(ee.setEnd(q.node,q.offset),ie.addRange(ee))}}}}for(ye=[],ie=D;ie=ie.parentNode;)ie.nodeType===1&&ye.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<ye.length;D++){var pe=ye[D];pe.element.scrollLeft=pe.left,pe.element.scrollTop=pe.top}}Dm=!!by,_y=by=null}finally{kt=p,G.p=d,j.T=c}}o.current=s,Nn=2}}function pk(){if(Nn===2){Nn=0;var o=Xo,s=Cl,c=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||c){c=j.T,j.T=null;var d=G.p;G.p=2;var p=kt;kt|=4;try{Z1(o,s.alternate,s)}finally{kt=p,G.p=d,j.T=c}}Nn=3}}function gk(){if(Nn===4||Nn===3){Nn=0,yt();var o=Xo,s=Cl,c=Al,d=rk;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Nn=5:(Nn=0,Cl=Xo=null,vk(o,o.pendingLanes));var p=o.pendingLanes;if(p===0&&(Ko=null),Tn(c),s=s.stateNode,Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(Oe,s,void 0,(s.current.flags&128)===128)}catch{}if(d!==null){s=j.T,p=G.p,G.p=2,j.T=null;try{for(var y=o.onRecoverableError,T=0;T<d.length;T++){var D=d[T];y(D.value,{componentStack:D.stack})}}finally{j.T=s,G.p=p}}(Al&3)!==0&&bm(),wi(o),p=o.pendingLanes,(c&4194090)!==0&&(p&42)!==0?o===oy?Pu++:(Pu=0,oy=o):Pu=0,zu(0)}}function vk(o,s){(o.pooledCacheLanes&=s)===0&&(s=o.pooledCache,s!=null&&(o.pooledCache=null,vu(s)))}function bm(o){return hk(),pk(),gk(),yk()}function yk(){if(Nn!==5)return!1;var o=Xo,s=ry;ry=0;var c=Tn(Al),d=j.T,p=G.p;try{G.p=32>c?32:c,j.T=null,c=iy,iy=null;var y=Xo,T=Al;if(Nn=0,Cl=Xo=null,Al=0,(kt&6)!==0)throw Error(i(331));var D=kt;if(kt|=4,tk(y.current),Q1(y,y.current,T,c),kt=D,zu(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(Oe,y)}catch{}return!0}finally{G.p=p,j.T=d,vk(o,s)}}function bk(o,s,c){s=Pr(c,s),s=Pv(o.stateNode,s,2),o=Fo(o,s,2),o!==null&&(De(o,2),wi(o))}function jt(o,s,c){if(o.tag===3)bk(o,o,c);else for(;s!==null;){if(s.tag===3){bk(s,o,c);break}else if(s.tag===1){var d=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Ko===null||!Ko.has(d))){o=Pr(c,o),c=x1(2),d=Fo(s,c,2),d!==null&&(E1(c,d,s,o),De(d,2),wi(d));break}}s=s.return}}function cy(o,s,c){var d=o.pingCache;if(d===null){d=o.pingCache=new P6;var p=new Set;d.set(s,p)}else p=d.get(s),p===void 0&&(p=new Set,d.set(s,p));p.has(c)||(Jv=!0,p.add(c),o=B6.bind(null,o,s,c),s.then(o,o))}function B6(o,s,c){var d=o.pingCache;d!==null&&d.delete(s),o.pingedLanes|=o.suspendedLanes&c,o.warmLanes&=~c,Mt===o&&(gt&c)===c&&(qt===4||qt===3&&(gt&62914560)===gt&&300>st()-ny?(kt&2)===0&&jl(o,0):ey|=c,Dl===gt&&(Dl=0)),wi(o)}function _k(o,s){s===0&&(s=ze()),o=gl(o,s),o!==null&&(De(o,s),wi(o))}function V6(o){var s=o.memoizedState,c=0;s!==null&&(c=s.retryLane),_k(o,c)}function H6(o,s){var c=0;switch(o.tag){case 13:var d=o.stateNode,p=o.memoizedState;p!==null&&(c=p.retryLane);break;case 19:d=o.stateNode;break;case 22:d=o.stateNode._retryCache;break;default:throw Error(i(314))}d!==null&&d.delete(s),_k(o,c)}function q6(o,s){return $t(o,s)}var _m=null,Il=null,uy=!1,Sm=!1,dy=!1,ns=0;function wi(o){o!==Il&&o.next===null&&(Il===null?_m=Il=o:Il=Il.next=o),Sm=!0,uy||(uy=!0,Y6())}function zu(o,s){if(!dy&&Sm){dy=!0;do for(var c=!1,d=_m;d!==null;){if(o!==0){var p=d.pendingLanes;if(p===0)var y=0;else{var T=d.suspendedLanes,D=d.pingedLanes;y=(1<<31-vt(42|o)+1)-1,y&=p&~(T&~D),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(c=!0,Ek(d,y))}else y=gt,y=jr(d,d===Mt?y:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(y&3)===0||Kr(d,y)||(c=!0,Ek(d,y));d=d.next}while(c);dy=!1}}function Z6(){Sk()}function Sk(){Sm=uy=!1;var o=0;ns!==0&&(tL()&&(o=ns),ns=0);for(var s=st(),c=null,d=_m;d!==null;){var p=d.next,y=wk(d,s);y===0?(d.next=null,c===null?_m=p:c.next=p,p===null&&(Il=c)):(c=d,(o!==0||(y&3)!==0)&&(Sm=!0)),d=p}zu(o)}function wk(o,s){for(var c=o.suspendedLanes,d=o.pingedLanes,p=o.expirationTimes,y=o.pendingLanes&-62914561;0<y;){var T=31-vt(y),D=1<<T,z=p[T];z===-1?((D&c)===0||(D&d)!==0)&&(p[T]=Zi(D,s)):z<=s&&(o.expiredLanes|=D),y&=~D}if(s=Mt,c=gt,c=jr(o,o===s?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),d=o.callbackNode,c===0||o===s&&(Ot===2||Ot===9)||o.cancelPendingCommit!==null)return d!==null&&d!==null&&_e(d),o.callbackNode=null,o.callbackPriority=0;if((c&3)===0||Kr(o,c)){if(s=c&-c,s===o.callbackPriority)return s;switch(d!==null&&_e(d),Tn(c)){case 2:case 8:c=P;break;case 32:c=Q;break;case 268435456:c=he;break;default:c=Q}return d=xk.bind(null,o),c=$t(c,d),o.callbackPriority=s,o.callbackNode=c,s}return d!==null&&d!==null&&_e(d),o.callbackPriority=2,o.callbackNode=null,2}function xk(o,s){if(Nn!==0&&Nn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var c=o.callbackNode;if(bm()&&o.callbackNode!==c)return null;var d=gt;return d=jr(o,o===Mt?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),d===0?null:(ok(o,d,s),wk(o,st()),o.callbackNode!=null&&o.callbackNode===c?xk.bind(null,o):null)}function Ek(o,s){if(bm())return null;ok(o,s,!0)}function Y6(){rL(function(){(kt&6)!==0?$t(et,Z6):Sk()})}function fy(){return ns===0&&(ns=xe()),ns}function kk(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Cf(""+o)}function Ok(o,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,o.id&&c.setAttribute("form",o.id),s.parentNode.insertBefore(c,s),o=new FormData(o),c.parentNode.removeChild(c),o}function W6(o,s,c,d,p){if(s==="submit"&&c&&c.stateNode===p){var y=kk((p[Rn]||null).action),T=d.submitter;T&&(s=(s=T[Rn]||null)?kk(s.formAction):T.getAttribute("formAction"),s!==null&&(y=s,T=null));var D=new If("action","action",null,d,p);o.push({event:D,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(ns!==0){var z=T?Ok(p,T):new FormData(p);Cv(c,{pending:!0,data:z,method:p.method,action:y},null,z)}}else typeof y=="function"&&(D.preventDefault(),z=T?Ok(p,T):new FormData(p),Cv(c,{pending:!0,data:z,method:p.method,action:y},y,z))},currentTarget:p}]})}}for(var my=0;my<Xg.length;my++){var hy=Xg[my],G6=hy.toLowerCase(),K6=hy[0].toUpperCase()+hy.slice(1);Xr(G6,"on"+K6)}Xr(oE,"onAnimationEnd"),Xr(aE,"onAnimationIteration"),Xr(sE,"onAnimationStart"),Xr("dblclick","onDoubleClick"),Xr("focusin","onFocus"),Xr("focusout","onBlur"),Xr(m6,"onTransitionRun"),Xr(h6,"onTransitionStart"),Xr(p6,"onTransitionCancel"),Xr(lE,"onTransitionEnd"),al("onMouseEnter",["mouseout","mouseover"]),al("onMouseLeave",["mouseout","mouseover"]),al("onPointerEnter",["pointerout","pointerover"]),al("onPointerLeave",["pointerout","pointerover"]),La("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),La("onSelect","focusout contextmenu dragend focu
65sin keydown keyup mousedown mouseup selectionchange".split(" ")),La("onBeforeInput",["compositionend","keypress","textInput","paste"]),La("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uu="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(" "),X6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Uu));function Tk(o,s){s=(s&4)!==0;for(var c=0;c<o.length;c++){var d=o[c],p=d.event;d=d.listeners;e:{var y=void 0;if(s)for(var T=d.length-1;0<=T;T--){var D=d[T],z=D.instance,te=D.currentTarget;if(D=D.listener,z!==y&&p.isPropagationStopped())break e;y=D,p.currentTarget=te;try{y(p)}catch(de){lm(de)}p.currentTarget=null,y=z}else for(T=0;T<d.length;T++){if(D=d[T],z=D.instance,te=D.currentTarget,D=D.listener,z!==y&&p.isPropagationStopped())break e;y=D,p.currentTarget=te;try{y(p)}catch(de){lm(de)}p.currentTarget=null,y=z}}}}function mt(o,s){var c=s[Tg];c===void 0&&(c=s[Tg]=new Set);var d=o+"__bubble";c.has(d)||(Rk(s,o,2,!1),c.add(d))}function py(o,s,c){var d=0;s&&(d|=4),Rk(c,o,d,s)}var wm="_reactListening"+Math.random().toString(36).slice(2);function gy(o){if(!o[wm]){o[wm]=!0,Sx.forEach(function(c){c!=="selectionchange"&&(X6.has(c)||py(c,!1,o),py(c,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[wm]||(s[wm]=!0,py("selectionchange",!1,s))}}function Rk(o,s,c,d){switch(Qk(s)){case 2:var p=EL;break;case 8:p=kL;break;default:p=Ny}c=p.bind(null,s,c,o),p=void 0,!zg||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),d?p!==void 0?o.addEventListener(s,c,{capture:!0,passive:p}):o.addEventListener(s,c,!0):p!==void 0?o.addEventListener(s,c,{passive:p}):o.addEventListener(s,c,!1)}function vy(o,s,c,d,p){var y=d;if((s&1)===0&&(s&2)===0&&d!==null)e:for(;;){if(d===null)return;var T=d.tag;if(T===3||T===4){var D=d.stateNode.containerInfo;if(D===p)break;if(T===4)for(T=d.return;T!==null;){var z=T.tag;if((z===3||z===4)&&T.stateNode.containerInfo===p)return;T=T.return}for(;D!==null;){if(T=rl(D),T===null)return;if(z=T.tag,z===5||z===6||z===26||z===27){d=y=T;continue e}D=D.parentNode}}d=d.return}Mx(function(){var te=y,de=Ig(c),ye=[];e:{var re=cE.get(o);if(re!==void 0){var ie=If,Ge=o;switch(o){case"keypress":if(jf(c)===0)break e;case"keydown":case"keyup":ie=qU;break;case"focusin":Ge="focus",ie=Bg;break;case"focusout":Ge="blur",ie=Bg;break;case"beforeblur":case"afterblur":ie=Bg;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=zx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=AU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=WU;break;
vendor: 1,815 bytes, line 65
65case oE:case aE:case sE:ie=IU;break;case lE:ie=KU;break;case"scroll":case"scrollend":ie=DU;break;case"wheel":ie=QU;break;case"copy":case"cut":case"paste":ie=zU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=Lx;break;case"toggle":case"beforetoggle":ie=e6}var He=(s&4)!==0,Ct=!He&&(o==="scroll"||o==="scrollend"),W=He?re!==null?re+"Capture":null:re;He=[];for(var q=te,ee;q!==null;){var pe=q;if(ee=pe.stateNode,pe=pe.tag,pe!==5&&pe!==26&&pe!==27||ee===null||W===null||(pe=iu(q,W),pe!=null&&He.push(Lu(q,pe,ee))),Ct)break;q=q.return}0<He.length&&(re=new ie(re,Ge,null,c,de),ye.push({event:re,listeners:He}))}}if((s&7)===0){e:{if(re=o==="mouseover"||o==="pointerover",ie=o==="mouseout"||o==="pointerout",re&&c!==Mg&&(Ge=c.relatedTarget||c.fromElement)&&(rl(Ge)||Ge[nl]))break e;if((ie||re)&&(re=de.window===de?de:(re=de.ownerDocument)?re.defaultView||re.parentWindow:window,ie?(Ge=c.relatedTarget||c.toElement,ie=te,Ge=Ge?rl(Ge):null,Ge!==null&&(Ct=a(Ge),He=Ge.tag,Ge!==Ct||He!==5&&He!==27&&He!==6)&&(Ge=null)):(ie=null,Ge=te),ie!==Ge)){if(He=zx,pe="onMouseLeave",W="onMouseEnter",q="mouse",(o==="pointerout"||o==="pointerover")&&(He=Lx,pe="onPointerLeave",W="onPointerEnter",q="pointer"),Ct=ie==null?re:ru(ie),ee=Ge==null?re:ru(Ge),re=new He(pe,q+"leave",ie,c,de),re.target=Ct,re.relatedTarget=ee,pe=null,rl(de)===te&&(He=new He(W,q+"enter",Ge,c,de),He.target=ee,He.relatedTarget=Ct,pe=He),Ct=pe,ie&&Ge)t:{for(He=ie,W=Ge,q=0,ee=He;ee;ee=Pl(ee))q++;for(ee=0,pe=W;pe;pe=Pl(pe))ee++;for(;0<q-ee;)He=Pl(He),q--;for(;0<ee-q;)W=Pl(W),ee--;for(;q--;){if(He===W||W!==null&&He===W.alternate)break t;He=Pl(He),W=Pl(W)}He=null}else He=null;ie!==null&&$k(ye,re,ie,He,!1),Ge!==null&&Ct!==null&&$k(ye,Ct,Ge,He,!0)}}
vendor: 5,259 bytes, lines 65-66
65e:{if(re=te?ru(te):window,ie=re.nodeName&&re.nodeName.toLowerCase(),ie==="select"||ie==="input"&&re.type==="file")var Ce=Wx;else if(Zx(re))if(Gx)Ce=u6;else{Ce=l6;var ut=s6}else ie=re.nodeName,!ie||ie.toLowerCase()!=="input"||re.type!=="checkbox"&&re.type!=="radio"?te&&jg(te.elementType)&&(Ce=Wx):Ce=c6;if(Ce&&(Ce=Ce(o,te))){Yx(ye,Ce,c,de);break e}ut&&ut(o,re,te),o==="focusout"&&te&&re.type==="number"&&te.memoizedProps.value!=null&&Ag(re,"number",re.value)}switch(ut=te?ru(te):window,o){case"focusin":(Zx(ut)||ut.contentEditable==="true")&&(ml=ut,Wg=te,fu=null);break;case"focusout":fu=Wg=ml=null;break;case"mousedown":Gg=!0;break;case"contextmenu":case"mouseup":case"dragend":Gg=!1,rE(ye,c,de);break;case"selectionchange":if(f6)break;case"keydown":case"keyup":rE(ye,c,de)}var Ue;if(Hg)e:{switch(o){case"compositionstart":var Ze="onCompositionStart";break e;case"compositionend":Ze="onCompositionEnd";break e;case"compositionupdate":Ze="onCompositionUpdate";break e}Ze=void 0}else fl?Hx(o,c)&&(Ze="onCompositionEnd"):o==="keydown"&&c.keyCode===229&&(Ze="onCompositionStart");Ze&&(Fx&&c.locale!=="ko"&&(fl||Ze!=="onCompositionStart"?Ze==="onCompositionEnd"&&fl&&(Ue=Ix()):(Po=de,Ug="value"in Po?Po.value:Po.textContent,fl=!0)),ut=xm(te,Ze),0<ut.length&&(Ze=new Ux(Ze,o,null,c,de),ye.push({event:Ze,listeners:ut}),Ue?Ze.data=Ue:(Ue=qx(c),Ue!==null&&(Ze.data=Ue)))),(Ue=n6?r6(o,c):i6(o,c))&&(Ze=xm(te,"onBeforeInput"),0<Ze.length&&(ut=new Ux("onBeforeInput","beforeinput",null,c,de),ye.push({event:ut,listeners:Ze}),ut.data=Ue)),W6(ye,o,te,c,de)}Tk(ye,s)})}function Lu(o,s,c){return{instance:o,listener:s,currentTarget:c}}function xm(o,s){for(var c=s+"Capture",d=[];o!==null;){var p=o,y=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||y===null||(p=iu(o,c),p!=null&&d.unshift(Lu(o,p,y)),p=iu(o,s),p!=null&&d.push(Lu(o,p,y))),o.tag===3)return d;o=o.return}return[]}function Pl(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function $k(o,s,c,d,p){for(var y=s._reactName,T=[];c!==null&&c!==d;){var D=c,z=D.alternate,te=D.stateNode;if(D=D.tag,z!==null&&z===d)break;D!==5&&D!==26&&D!==27||te===null||(z=te,p?(te=iu(c,y),te!=null&&T.unshift(Lu(c,te,z))):p||(te=iu(c,y),te!=null&&T.push(Lu(c,te,z)))),c=c.return}T.length!==0&&o.push({event:s,listeners:T})}var Q6=/\r\n?/g,J6=/\u0000|\uFFFD/g;function Nk(o){return(typeof o=="string"?o:""+o).replace(Q6,`
66`).replace(J6,"")}function Dk(o,s){return s=Nk(s),Nk(o)===s}function Em(){}function Dt(o,s,c,d,p,y){switch(c){case"children":typeof d=="string"?s==="body"||s==="textarea"&&d===""||cl(o,d):(typeof d=="number"||typeof d=="bigint")&&s!=="body"&&cl(o,""+d);break;case"className":$f(o,"class",d);break;case"tabIndex":$f(o,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":$f(o,c,d);break;case"style":Ax(o,d,y);break;case"data":if(s!=="object"){$f(o,"data",d);break}case"src":case"href":if(d===""&&(s!=="a"||c!=="href")){o.removeAttribute(c);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){o.removeAttribute(c);break}d=Cf(""+d),o.setAttribute(c,d);break;case"action":case"formAction":if(typeof d=="function"){o.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(c==="formAction"?(s!=="input"&&Dt(o,s,"name",p.name,p,null),Dt(o,s,"formEncType",p.formEncType,p,null),Dt(o,s,"formMethod",p.formMethod,p,null),Dt(o,s,"formTarget",p.formTarget,p,null)):(Dt(o,s,"encType",p.encType,p,null),Dt(o,s,"method",p.method,p,null),Dt(o,s,"target",p.target,p,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){o.removeAttribute(c);break}d=Cf(""+d),o.setAttribute(c,d);break;case"onClick":d!=null&&(o.onclick=Em);break;case"onScroll":d!=null&&mt("scroll",o);break;case"onScrollEnd":d!=null&&mt("scrollend",o);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(c=d.__html,c!=null){if(p.children!=null)throw Error(i(60));o.innerHTML=c}}break;case"multiple":o.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":o.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){o.removeAttribute("xlink:href");break}c=Cf(""+d),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?o.setAttribute(c,""+d):o.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
66ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?o.setAttribute(c,""):o.removeAttribute(c);break;case"capture":case"download":d===!0?o.setAttribute(c,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?o.setAttribute(c,d):o.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?o.setAttribute(c,d):o.removeAttribute(c);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?o.removeAttribute(c):o.setAttribute(c,d);break;case"popover":mt("beforetoggle",o),mt("toggle",o),Rf(o,"popover",d);break;case"xlinkActuate":Yi(o,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Yi(o,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Yi(o,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Yi(o,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Yi(o,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Yi(o,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Yi(o,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Yi(o,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Yi(o,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Rf(o,"is",d);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=$U.get(c)||c,Rf(o,c,d))}}function yy(o,s,c,d,p,y){switch(c){case"style":Ax(o,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(c=d.__html,c!=null){if(p.children!=null)throw Error(i(60));o.innerHTML=c}}break;case"children":typeof d=="string"?cl(o,d):(typeof d=="number"||typeof d=="bigint")&&cl(o,""+d);break;case"onScroll":d!=null&&mt("scroll",o);break;case"onScrollEnd":d!=null&&mt("scrollend",o);break;case"onClick":d!=null&&(o.onclick=Em);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wx.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(p=c.endsWith("Capture"),s=c.slice(2,p?c.length-7:void 0),y=o[Rn]||null,y=y!=null?y[c]:null,typeof y=="function"&&o.removeEventListener(s,y,p),typeof d=="function")){typeof y!="function"&&y!==null&&(c in o?o[c]=null:o.hasAttribute(c)&&o.removeAttribute(c)),o.addEventListener(s,d,p);break e}c in o?o[c]=d:d===!0?o.setAttribute(c,""):Rf(o,c,d)}}}function Dn(o,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",o),mt("load",o);var d=!1,p=!1,y;for(y in c)if(c.hasOwnProperty(y)){var T=c[y];if(T!=null)switch(y){case"src":d=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,s));default:Dt(o,s,y,T,c,null)}}p&&Dt(o,s,"srcSet",c.srcSet,c,null),d&&Dt(o,s,"src",c.src,c,null);return;case"input":mt("invalid",o);var D=y=T=p=null,z=null,te=null;for(d in c)if(c.hasOwnProperty(d)){var de=c[d];if(de!=null)switch(d){case"name":p=de;break;case"type":T=de;break;case"checked":z=de;break;case"defaultChecked":te=de;break;case"value":y=de;break;case"defaultValue":D=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(i(137,s));break;default:Dt(o,s,d,de,c,null)}}$x(o,y,D,z,te,T,p,!1),Nf(o);return;case"select":mt("invalid",o),d=T=y=null;for(p in c)if(c.hasOwnProperty(p)&&(D=c[p],D!=null))switch(p){case"value":y=D;break;case"defaultValue":T=D;break;case"multiple":d=D;default:Dt(o,s,p,D,c,null)}s=y,c=T,o.multiple=!!d,s!=null?ll(o,!!d,s,!1):c!=null&&ll(o,!!d,c,!0);return;case"textarea":mt("invalid",o),y=p=d=null;for(T in c)if(c.hasOwnProperty(T)&&(D=c[T],D!=null))switch(T){case"value":d=D;break;case"defaultValue":p=D;break;case"children":y=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(i(91));break;default:Dt(o,s,T,D,c,null)}Dx(o,d,p,y),Nf(o);return;case"option":for(z in c)if(c.hasOwnProperty(z)&&(d=c[z],d!=null))switch(z){case"selected":o.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Dt(o,s,z,d,c,null)}return;case"dialog":mt("beforetoggle",o),mt("toggle",o),mt("cancel",o),mt("close",o);break;case"iframe":case"object":mt("load",o);break;case"video":case"audio":for(d=0;d<Uu.length;d++)mt(Uu[d],o);break;case"image":mt("error",o),mt("load",o);break;case"details":mt("toggle",o);break;case"embed":case"source":case"link":mt("error",o),mt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(te in c)if(c.hasOwnProperty(te)&&(
vendor: 6,881 bytes, line 66
66d=c[te],d!=null))switch(te){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,s));default:Dt(o,s,te,d,c,null)}return;default:if(jg(s)){for(de in c)c.hasOwnProperty(de)&&(d=c[de],d!==void 0&&yy(o,s,de,d,c,void 0));return}}for(D in c)c.hasOwnProperty(D)&&(d=c[D],d!=null&&Dt(o,s,D,d,c,null))}function eL(o,s,c,d){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,y=null,T=null,D=null,z=null,te=null,de=null;for(ie in c){var ye=c[ie];if(c.hasOwnProperty(ie)&&ye!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":z=ye;default:d.hasOwnProperty(ie)||Dt(o,s,ie,null,d,ye)}}for(var re in d){var ie=d[re];if(ye=c[re],d.hasOwnProperty(re)&&(ie!=null||ye!=null))switch(re){case"type":y=ie;break;case"name":p=ie;break;case"checked":te=ie;break;case"defaultChecked":de=ie;break;case"value":T=ie;break;case"defaultValue":D=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(i(137,s));break;default:ie!==ye&&Dt(o,s,re,ie,d,ye)}}Cg(o,T,D,z,te,de,y,p);return;case"select":ie=T=D=re=null;for(y in c)if(z=c[y],c.hasOwnProperty(y)&&z!=null)switch(y){case"value":break;case"multiple":ie=z;default:d.hasOwnProperty(y)||Dt(o,s,y,null,d,z)}for(p in d)if(y=d[p],z=c[p],d.hasOwnProperty(p)&&(y!=null||z!=null))switch(p){case"value":re=y;break;case"defaultValue":D=y;break;case"multiple":T=y;default:y!==z&&Dt(o,s,p,y,d,z)}s=D,c=T,d=ie,re!=null?ll(o,!!c,re,!1):!!d!=!!c&&(s!=null?ll(o,!!c,s,!0):ll(o,!!c,c?[]:"",!1));return;case"textarea":ie=re=null;for(D in c)if(p=c[D],c.hasOwnProperty(D)&&p!=null&&!d.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:Dt(o,s,D,null,d,p)}for(T in d)if(p=d[T],y=c[T],d.hasOwnProperty(T)&&(p!=null||y!=null))switch(T){case"value":re=p;break;case"defaultValue":ie=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==y&&Dt(o,s,T,p,d,y)}Nx(o,re,ie);return;case"option":for(var Ge in c)if(re=c[Ge],c.hasOwnProperty(Ge)&&re!=null&&!d.hasOwnProperty(Ge))switch(Ge){case"selected":o.selected=!1;break;default:Dt(o,s,Ge,null,d,re)}for(z in d)if(re=d[z],ie=c[z],d.hasOwnProperty(z)&&re!==ie&&(re!=null||ie!=null))switch(z){case"selected":o.selected=re&&typeof re!="function"&&typeof re!="symbol";break;default:Dt(o,s,z,re,d,ie)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var He in c)re=c[He],c.hasOwnProperty(He)&&re!=null&&!d.hasOwnProperty(He)&&Dt(o,s,He,null,d,re);for(te in d)if(re=d[te],ie=c[te],d.hasOwnProperty(te)&&re!==ie&&(re!=null||ie!=null))switch(te){case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,s));break;default:Dt(o,s,te,re,d,ie)}return;default:if(jg(s)){for(var Ct in c)re=c[Ct],c.hasOwnProperty(Ct)&&re!==void 0&&!d.hasOwnProperty(Ct)&&yy(o,s,Ct,void 0,d,re);for(de in d)re=d[de],ie=c[de],!d.hasOwnProperty(de)||re===ie||re===void 0&&ie===void 0||yy(o,s,de,re,d,ie);return}}for(var W in c)re=c[W],c.hasOwnProperty(W)&&re!=null&&!d.hasOwnProperty(W)&&Dt(o,s,W,null,d,re);for(ye in d)re=d[ye],ie=c[ye],!d.hasOwnProperty(ye)||re===ie||re==null&&ie==null||Dt(o,s,ye,re,d,ie)}var by=null,_y=null;function km(o){return o.nodeType===9?o:o.ownerDocument}function Ck(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ak(o,s){if(o===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&s==="foreignObject"?0:o}function Sy(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var wy=null;function tL(){var o=window.event;return o&&o.type==="popstate"?o===wy?!1:(wy=o,!0):(wy=null,!1)}var jk=typeof setTimeout=="function"?setTimeout:void 0,nL=typeof clearTimeout=="function"?clearTimeout:void 0,Mk=typeof Promise=="function"?Promise:void 0,rL=typeof queueMicrotask=="function"?queueMicrotask:typeof Mk<"u"?function(o){return Mk.resolve(null).then(o).catch(iL)}:jk;function iL(o){setTimeout(function(){throw o})}function Jo(o){return o==="head"}function Ik(o,s){var c=s,d=0,p=0;do{var y=c.nextSibling;if(o.removeChild(c),y&&y.nodeType===8)if(c=y.data,c==="/$"){if(0<d&&8>d){c=d;var T=o.ownerDocument;if(c&1&&Fu(T.documentElement),c&2&&Fu(T.body),c&4)for(c=T.head,Fu(c),T=c.firstChild;T;){var D=T.nextSibling,z=T.nodeName;T[nu]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&T.rel.toLowerCase()==="stylesheet"||c.removeChild(T),T=D}}if(p===0){o.removeChild(y),Gu(s);return}p--}else c==="$"||c==="$?"||c==="$!"?p++:d=c.charCodeAt(0)-48;else d=0;c=y}while(c);Gu(s)}function xy(o){var s=o.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":xy(c),Rg(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}o.removeChild(c)}}function oL(o,s,c,d){for(;o.nodeType===1;){var p=c;if(o.nodeName.toLowerCase()!==s.toLowerCase()){if(!d&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(d){if(!o[nu])switch(s){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(y=o.getAttribute("rel"),y==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(y!==p.rel||o.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||o.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||o.getAttribute("title")!==(p.title==null?null:p.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(y=o.getAttribute("src"),(y!==(p.src==null?null:p.src)||o.getAttribute("type")!==(p.type==null?null:p.type)||o.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&y&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(s==="input"&&o.type==="hidden"){var y=p.name==null?null:""+p.name;if(p.type==="hidden"&&o.getAttribute("name")===y)return o}else return o;if(o=Jr(o.nextSibling),o===null)break}return null}function aL(o,s,c){if(s==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!c||(o=Jr(o.nextSibling),o===null))return null;return o}function Ey(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState==="complete"}function sL(o,s){var c=o.ownerDocument;if(o.data!=="$?"||c.readyState==="complete")s();else{var d=function(){s(),c.removeEventListener("DOMContentLoaded",d)};c.addEventListener("DOMContentLoaded",d),o._reactRetry=d}}function Jr(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;
vendor: 9,874 bytes, line 66
66if(s==="/$")return null}}return o}var ky=null;function Pk(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var c=o.data;if(c==="$"||c==="$!"||c==="$?"){if(s===0)return o;s--}else c==="/$"&&s++}o=o.previousSibling}return null}function zk(o,s,c){switch(s=km(c),o){case"html":if(o=s.documentElement,!o)throw Error(i(452));return o;case"head":if(o=s.head,!o)throw Error(i(453));return o;case"body":if(o=s.body,!o)throw Error(i(454));return o;default:throw Error(i(451))}}function Fu(o){for(var s=o.attributes;s.length;)o.removeAttributeNode(s[0]);Rg(o)}var Vr=new Map,Uk=new Set;function Om(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var so=G.d;G.d={f:lL,r:cL,D:uL,C:dL,L:fL,m:mL,X:pL,S:hL,M:gL};function lL(){var o=so.f(),s=vm();return o||s}function cL(o){var s=il(o);s!==null&&s.tag===5&&s.type==="form"?o1(s):so.r(o)}var zl=typeof document>"u"?null:document;function Lk(o,s,c){var d=zl;if(d&&typeof s=="string"&&s){var p=Ir(s);p='link[rel="'+o+'"][href="'+p+'"]',typeof c=="string"&&(p+='[crossorigin="'+c+'"]'),Uk.has(p)||(Uk.add(p),o={rel:o,crossOrigin:c,href:s},d.querySelector(p)===null&&(s=d.createElement("link"),Dn(s,"link",o),Sn(s),d.head.appendChild(s)))}}function uL(o){so.D(o),Lk("dns-prefetch",o,null)}function dL(o,s){so.C(o,s),Lk("preconnect",o,s)}function fL(o,s,c){so.L(o,s,c);var d=zl;if(d&&o&&s){var p='link[rel="preload"][as="'+Ir(s)+'"]';s==="image"&&c&&c.imageSrcSet?(p+='[imagesrcset="'+Ir(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(p+='[imagesizes="'+Ir(c.imageSizes)+'"]')):p+='[href="'+Ir(o)+'"]';var y=p;switch(s){case"style":y=Ul(o);break;case"script":y=Ll(o)}Vr.has(y)||(o=h({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:o,as:s},c),Vr.set(y,o),d.querySelector(p)!==null||s==="style"&&d.querySelector(Bu(y))||s==="script"&&d.querySelector(Vu(y))||(s=d.createElement("link"),Dn(s,"link",o),Sn(s),d.head.appendChild(s)))}}function mL(o,s){so.m(o,s);var c=zl;if(c&&o){var d=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+Ir(d)+'"][href="'+Ir(o)+'"]',y=p;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Ll(o)}if(!Vr.has(y)&&(o=h({rel:"modulepreload",href:o},s),Vr.set(y,o),c.querySelector(p)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Vu(y)))return}d=c.createElement("link"),Dn(d,"link",o),Sn(d),c.head.appendChild(d)}}}function hL(o,s,c){so.S(o,s,c);var d=zl;if(d&&o){var p=ol(d).hoistableStyles,y=Ul(o);s=s||"default";var T=p.get(y);if(!T){var D={loading:0,preload:null};if(T=d.querySelector(Bu(y)))D.loading=5;else{o=h({rel:"stylesheet",href:o,"data-precedence":s},c),(c=Vr.get(y))&&Oy(o,c);var z=T=d.createElement("link");Sn(z),Dn(z,"link",o),z._p=new Promise(function(te,de){z.onload=te,z.onerror=de}),z.addEventListener("load",function(){D.loading|=1}),z.addEventListener("error",function(){D.loading|=2}),D.loading|=4,Tm(T,s,d)}T={type:"stylesheet",instance:T,count:1,state:D},p.set(y,T)}}}function pL(o,s){so.X(o,s);var c=zl;if(c&&o){var d=ol(c).hoistableScripts,p=Ll(o),y=d.get(p);y||(y=c.querySelector(Vu(p)),y||(o=h({src:o,async:!0},s),(s=Vr.get(p))&&Ty(o,s),y=c.createElement("script"),Sn(y),Dn(y,"link",o),c.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(p,y))}}function gL(o,s){so.M(o,s);var c=zl;if(c&&o){var d=ol(c).hoistableScripts,p=Ll(o),y=d.get(p);y||(y=c.querySelector(Vu(p)),y||(o=h({src:o,async:!0,type:"module"},s),(s=Vr.get(p))&&Ty(o,s),y=c.createElement("script"),Sn(y),Dn(y,"link",o),c.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(p,y))}}function Fk(o,s,c,d){var p=(p=be.current)?Om(p):null;if(!p)throw Error(i(446));switch(o){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=Ul(c.href),c=ol(p).hoistableStyles,d=c.get(s),d||(d={type:"style",instance:null,count:0,state:null},c.set(s,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){o=Ul(c.href);var y=ol(p).hoistableStyles,T=y.get(o);if(T||(p=p.ownerDocument||p,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(o,T),(y=p.querySelector(Bu(o)))&&!y._p&&(T.instance=y,T.state.loading=5),Vr.has(o)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Vr.set(o,c),y||vL(p,o,c,T.state))),s&&d===null)throw Error(i(528,""));return T}if(s&&d!==null)throw Error(i(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Ll(c),c=ol(p).hoistableScripts,d=c.get(s),d||(d={type:"script",instance:null,count:0,state:null},c.set(s,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,o))}}function Ul(o){return'href="'+Ir(o)+'"'}function Bu(o){return'link[rel="stylesheet"]['+o+"]"}function Bk(o){return h({},o,{"data-precedence":o.precedence,precedence:null})}function vL(o,s,c,d){o.querySelector('link[rel="preload"][as="style"]['+s+"]")?d.loading=1:(s=o.createElement("link"),d.preload=s,s.addEventListener("load",function(){return d.loading|=1}),s.addEventListener("error",function(){return d.loading|=2}),Dn(s,"link",c),Sn(s),o.head.appendChild(s))}function Ll(o){return'[src="'+Ir(o)+'"]'}function Vu(o){return"script[async]"+o}function Vk(o,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var d=o.querySelector('style[data-href~="'+Ir(c.href)+'"]');if(d)return s.instance=d,Sn(d),d;var p=h({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return d=(o.ownerDocument||o).createElement("style"),Sn(d),Dn(d,"style",p),Tm(d,c.precedence,o),s.instance=d;case"stylesheet":p=Ul(c.href);var y=o.querySelector(Bu(p));if(y)return s.state.loading|=4,s.instance=y,Sn(y),y;d=Bk(c),(p=Vr.get(p))&&Oy(d,p),y=(o.ownerDocument||o).createElement("link"),Sn(y);var T=y;return T._p=new Promise(function(D,z){T.onload=D,T.onerror=z}),Dn(y,"link",d),s.state.loading|=4,Tm(y,c.precedence,o),s.instance=y;case"script":return y=Ll(c.src),(p=o.querySelector(Vu(y)))?(s.instance=p,Sn(p),p):(d=c,(p=Vr.get(y))&&(d=h({},c),Ty(d,p)),o=o.ownerDocument||o,p=o.createElement("script"),Sn(p),Dn(p,"link",d),o.head.appendChild(p),s.instance=p);case"void":return null;default:throw Error(i(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(d=s.instance,s.state.loading|=4,Tm(d,c.precedence,o));return s.instance}function Tm(o,s,c){for(var d=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=d.length?d[d.length-1]:null,y=p,T=0;T<d.length;T++){var D=d[T];if(D.dataset.precedence===s)y=D;else if(y!==p)break}y?y.parentNode.insertBefore(o,y.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(o,s.firstChild))}function Oy(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.title==null&&(o.title=s.title)}function Ty(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.integrity==null&&(o.integrity=s.integrity)}var Rm=null;function Hk(o,s,c){if(Rm===null){var d=new Map,p=Rm=new Map;p.set(c,d)}else p=Rm,d=p.get(c),d||(d=new Map,p.set(c,d));if(d.has(o))return d;for(d.set(o,null),c=c.getElementsByTagName(o),p=0;p<c.length;p++){var y=c[p];if(!(y[nu]||y[Qt]||o==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var T=y.getAttribute(s)||"";T=o+T;var D=d.get(T);D?D.push(y):d.set(T,[y])}}return d}function qk(o,s,c){o=o.ownerDocument||o,o.head.insertBefore(c,s==="title"?o.querySelector("head > title"):null)}function yL(o,s,c){if(c===1||s.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return o=s.disabled,typeof s.precedence=="string"&&o==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Zk(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}var Hu=null;function bL(){}function _L(o,s,c){if(Hu===null)throw Error(i(475));var d=Hu;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var p=Ul(c.href),y=o.querySelector(Bu(p));if(y){o=y._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(d.count++,d=$m.bind(d),o.then(d,d)),s.state.loading|=4,s.instance=y,Sn(y);return}y=o.ownerDocument||o,c=Bk(c),(p=Vr.get(p))&&Oy(c,p),y=y.createElement("link"),Sn(y);var T=y;T._p=new Promise(function(D,z){T.onload=D,T.onerror=z}),Dn(y,"link",c),s.instance=y}d.stylesheets===null&&(d.stylesheets=new Map),d.stylesheets.set(s,o),(o=s.state.preload)&&(s.state.loading&3)===0&&(d.count++,s=$m.bind(d),o.addEventListener("load",s),o.addEventListener("error",s))}}function SL(){if(Hu===null)throw Error(i(475));var o=Hu;return o.stylesheets&&o.count===0&&Ry(o,o.stylesheets),0<o.count?function(s){var c=setTimeout(function(){if(o.stylesheets&&Ry(o,o.stylesheets),o.unsuspend){var d=o.unsuspend;o.unsuspend=null,d()}},6e4);return o.unsuspend=s,function(){o.unsuspend=null,clearTimeout(c)}}:null}function $m(){if(this.count--,this.count===0){if(this.stylesheets)Ry(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Nm=null;function Ry(o,s){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Nm=new Map,s.forEac
vendor: 8,230 bytes, line 66
66h(wL,o),Nm=null,$m.call(o))}function wL(o,s){if(!(s.state.loading&4)){var c=Nm.get(o);if(c)var d=c.get(null);else{c=new Map,Nm.set(o,c);for(var p=o.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<p.length;y++){var T=p[y];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(c.set(T.dataset.precedence,T),d=T)}d&&c.set(null,d)}p=s.instance,T=p.getAttribute("data-precedence"),y=c.get(T)||d,y===d&&c.set(null,p),c.set(T,p),this.count++,d=$m.bind(this),p.addEventListener("load",d),p.addEventListener("error",d),y?y.parentNode.insertBefore(p,y.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(p,o.firstChild)),s.state.loading|=4}}var qu={$$typeof:R,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function xL(o,s,c,d,p,y,T,D){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(null),this.identifierPrefix=d,this.onUncaughtError=p,this.onCaughtError=y,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function Yk(o,s,c,d,p,y,T,D,z,te,de,ye){return o=new xL(o,s,c,T,D,z,te,ye),s=1,y===!0&&(s|=24),y=gr(3,null,null,s),o.current=y,y.stateNode=o,s=cv(),s.refCount++,o.pooledCache=s,s.refCount++,y.memoizedState={element:d,isDehydrated:c,cache:s},mv(y),o}function Wk(o){return o?(o=vl,o):vl}function Gk(o,s,c,d,p,y){p=Wk(p),d.context===null?d.context=p:d.pendingContext=p,d=Lo(s),d.payload={element:c},y=y===void 0?null:y,y!==null&&(d.callback=y),c=Fo(o,d,s),c!==null&&(Sr(c,o,s),Su(c,o,s))}function Kk(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var c=o.retryLane;o.retryLane=c!==0&&c<s?c:s}}function $y(o,s){Kk(o,s),(o=o.alternate)&&Kk(o,s)}function Xk(o){if(o.tag===13){var s=gl(o,67108864);s!==null&&Sr(s,o,67108864),$y(o,67108864)}}var Dm=!0;function EL(o,s,c,d){var p=j.T;j.T=null;var y=G.p;try{G.p=2,Ny(o,s,c,d)}finally{G.p=y,j.T=p}}function kL(o,s,c,d){var p=j.T;j.T=null;var y=G.p;try{G.p=8,Ny(o,s,c,d)}finally{G.p=y,j.T=p}}function Ny(o,s,c,d){if(Dm){var p=Dy(d);if(p===null)vy(o,s,d,Cm,c),Jk(o,d);else if(TL(p,o,s,c,d))d.stopPropagation();else if(Jk(o,d),s&4&&-1<OL.indexOf(o)){for(;p!==null;){var y=il(p);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var T=Bn(y.pendingLanes);if(T!==0){var D=y;for(D.pendingLanes|=2,D.entangledLanes|=2;T;){var z=1<<31-vt(T);D.entanglements[1]|=z,T&=~z}wi(y),(kt&6)===0&&(pm=st()+500,zu(0))}}break;case 13:D=gl(y,2),D!==null&&Sr(D,y,2),vm(),$y(y,2)}if(y=Dy(d),y===null&&vy(o,s,d,Cm,c),y===p)break;p=y}p!==null&&d.stopPropagation()}else vy(o,s,d,null,c)}}function Dy(o){return o=Ig(o),Cy(o)}var Cm=null;function Cy(o){if(Cm=null,o=rl(o),o!==null){var s=a(o);if(s===null)o=null;else{var c=s.tag;if(c===13){if(o=l(s),o!==null)return o;o=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null)}}return Cm=o,null}function Qk(o){switch(o){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Lt()){case et:return 2;case P:return 8;case Q:case oe:return 32;case he:return 268435456;default:return 32}default:return 32}}var Ay=!1,ea=null,ta=null,na=null,Zu=new Map,Yu=new Map,ra=[],OL="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".split(" ");function Jk(o,s){switch(o){case"focusin":case"focusout":ea=null;break;case"dragenter":case"dragleave":ta=null;break;case"mouseover":case"mouseout":na=null;break;case"pointerover":case"pointerout":Zu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yu.delete(s.pointerId)}}function Wu(o,s,c,d,p,y){return o===null||o.nativeEvent!==y?(o={blockedOn:s,domEventName:c,eventSystemFlags:d,nativeEvent:y,targetContainers:[p]},s!==null&&(s=il(s),s!==null&&Xk(s)),o):(o.eventSystemFlags|=d,s=o.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),o)}function TL(o,s,c,d,p){switch(s){case"focusin":return ea=Wu(ea,o,s,c,d,p),!0;case"dragenter":return ta=Wu(ta,o,s,c,d,p),!0;case"mouseover":return na=Wu(na,o,s,c,d,p),!0;case"pointerover":var y=p.pointerId;return Zu.set(y,Wu(Zu.get(y)||null,o,s,c,d,p)),!0;case"gotpointercapture":return y=p.pointerId,Yu.set(y,Wu(Yu.get(y)||null,o,s,c,d,p)),!0}return!1}function eO(o){var s=rl(o.target);if(s!==null){var c=a(s);if(c!==null){if(s=c.tag,s===13){if(s=l(c),s!==null){o.blockedOn=s,nr(o.priority,function(){if(c.tag===13){var d=_r();d=er(d);var p=gl(c,d);p!==null&&Sr(p,c,d),$y(c,d)}});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){o.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Am(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var c=Dy(o.nativeEvent);if(c===null){c=o.nativeEvent;var d=new c.constructor(c.type,c);Mg=d,c.target.dispatchEvent(d),Mg=null}else return s=il(c),s!==null&&Xk(s),o.blockedOn=c,!1;s.shift()}return!0}function tO(o,s,c){Am(o)&&c.delete(s)}function RL(){Ay=!1,ea!==null&&Am(ea)&&(ea=null),ta!==null&&Am(ta)&&(ta=null),na!==null&&Am(na)&&(na=null),Zu.forEach(tO),Yu.forEach(tO)}function jm(o,s){o.blockedOn===s&&(o.blockedOn=null,Ay||(Ay=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,RL)))}var Mm=null;function nO(o){Mm!==o&&(Mm=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Mm===o&&(Mm=null);for(var s=0;s<o.length;s+=3){var c=o[s],d=o[s+1],p=o[s+2];if(typeof d!="function"){if(Cy(d||c)===null)continue;break}var y=il(c);y!==null&&(o.splice(s,3),s-=3,Cv(y,{pending:!0,data:p,method:c.method,action:d},d,p))}}))}function Gu(o){function s(z){return jm(z,o)}ea!==null&&jm(ea,o),ta!==null&&jm(ta,o),na!==null&&jm(na,o),Zu.forEach(s),Yu.forEach(s);for(var c=0;c<ra.length;c++){var d=ra[c];d.blockedOn===o&&(d.blockedOn=null)}for(;0<ra.length&&(c=ra[0],c.blockedOn===null);)eO(c),c.blockedOn===null&&ra.shift();if(c=(o.ownerDocument||o).$$reactFormReplay,c!=null)for(d=0;d<c.length;d+=3){var p=c[d],y=c[d+1],T=p[Rn]||null;if(typeof y=="function")T||nO(c);else if(T){var D=null;if(y&&y.hasAttribute("formAction")){if(p=y,T=y[Rn]||null)D=T.formAction;else if(Cy(p)!==null)continue}else D=T.action;typeof D=="function"?c[d+1]=D:(c.splice(d,3),d-=3),nO(c)}}}function jy(o){this._internalRoot=o}Im.prototype.render=jy.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(i(409));var c=s.current,d=_r();Gk(c,d,o,s,null,null)},Im.prototype.unmount=jy.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;Gk(o.current,2,null,o,null,null),vm(),s[nl]=null}};function Im(o){this._internalRoot=o}
66Im.prototype.unstable_scheduleHydration=function(o){if(o){var s=tr();o={blockedOn:null,target:o,priority:s};for(var c=0;c<ra.length&&s!==0&&s<ra[c].priority;c++);ra.splice(c,0,o),c===0&&eO(o)}};var rO=t.version;if(rO!=="19.1.0")throw Error(i(527,rO,"19.1.0"));G.findDOMNode=function(o){var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(i(188)):(o=Object.keys(o).join(","),Error(i(268,o)));return o=f(s),o=o!==null?m(o):null,o=o===null?null:o.stateNode,o};var $L={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pm.isDisabled&&Pm.supportsFiber)try{Oe=Pm.inject($L),Be=Pm}catch{}}return ed.createRoot=function(o,s){if(!r(o))throw Error(i(299));var c=!1,d="",p=b1,y=_1,T=S1,D=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(y=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(D=s.unstable_transitionCallbacks)),s=Yk(o,1,!1,null,null,c,d,p,y,T,D,null),o[nl]=s.current,gy(o),new jy(s)},ed.hydrateRoot=function(o,s,c){if(!r(o))throw Error(i(299));var d=!1,p="",y=b1,T=_1,D=S1,z=null,te=null;return c!=null&&(c.unstable_strictMode===!0&&(d=!0),c.identifierPrefix!==void 0&&(p=c.identifierPrefix),c.onUncaughtError!==void 0&&(y=c.onUncaughtError),c.onCaughtError!==void 0&&(T=c.onCaughtError),c.onRecoverableError!==void 0&&(D=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(z=c.unstable_transitionCallbacks),c.formState!==void 0&&(te=c.formState)),s=Yk(o,1,!0,s,c??null,d,p,y,T,D,z,te),s.context=Wk(null),c=s.current,d=_r(),d=er(d),p=Lo(d),p.callback=null,Fo(c,p,d),c=d,s.current.lanes=c,De(s,c),wi(s),o[nl]=s.current,gy(o),new Im(s)},ed.version="19.1.0",ed}var HO;function uB(){if(HO)return Wy.exports;HO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Wy.exports=cB(),Wy.exports}var dB=uB();const YN=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)},fB=()=>{const e="GTM-KK7QN79";try{YN({"gtm.start":Date.now(),event:"gtm.js"});const t=document.createElement("script");t.async=!0,t.src=`https://www.googletagmanager.com/gtm.js?id=${e}`,document.head.appendChild(t)}catch(t){console.error("Não foi possível carregar o Google Tag Manager.",t)}},Qe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,xt=globalThis,Os="10.27.0";function Wd(){return Sp(xt),xt}function Sp(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Os,t[Os]=t[Os]||{}}function zc(e,t,n=xt){const i=n.__SENTRY__=n.__SENTRY__||{},r=i[Os]=i[Os]||{};return r[e]||(r[e]=t())}const WN=["debug","info","warn","error","log","assert","trace"],mB="Sentry Logger ",jh={};function Ys(e){if(!("console"in xt))return e();const t=xt.console,n={},i=Object.keys(jh);i.forEach(r=>{const a=jh[r];n[r]=t[r],t[r]=a});try{return e()}finally{i.forEach(r=>{t[r]=n[r]})}}function hB(){hS().enabled=!0}function pB(){hS().enabled=!1}function GN(){return hS().enabled}function gB(...e){mS("log",...e)}function vB(...e){mS("warn",...e)}function yB(...e){mS("error",...e)}function mS(e,...t){Qe&&GN()&&Ys(()=>{xt.console[e](`${mB}[${e}]:`,...t)})}function hS(){return Qe?zc("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const qe={enable:hB,disable:pB,isEnabled:GN,log:gB,warn:vB,error:yB},KN=50,Cs="?",qO=/\(error: (.*)\)/,ZO=/captureMessage|captureException/;function XN(...e){const t=e.sort((n,i)=>n[0]-i[0]).map(n=>n[1]);return(n,i=0,r=0)=>{const a=[],l=n.split(`
67`);for(let u=i;u<l.length;u++){let f=l[u];f.length>1024&&(f=f.slice(0,1024));const m=qO.test(f)?f.replace(qO,"$1"):f;if(!m.match(/\S*Error: /)){for(const h of t){const g=h(m);if(g){a.push(g);break}}if(a.length>=KN+r)break}}return _B(a.slice(r))}}function bB(e){return Array.isArray(e)?XN(...e):e}function _B(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(qm(t).function||"")&&t.pop(),t.reverse(),ZO.test(qm(t).function||"")&&(t.pop(),ZO.test(qm(t).function||"")&&t.pop()),t.slice(0,KN).map(n=>({...n,filename:n.filename||qm(t).filename,function:n.function||Cs}))}function qm(e){return e[e.length-1]||{}}const Xy="<anonymous>";function ka(e){try{return!e||typeof e!="function"?Xy:e.name||Xy}catch{return Xy}}function YO(e){const t=e.exception;if(t){const n=[];
67try{return t.values.forEach(i=>{i.stacktrace.frames&&n.push(...i.stacktrace.frames)}),n}catch{return}}}function QN(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const ph={},WO={};function Ws(e,t){ph[e]=ph[e]||[],ph[e].push(t)}function Gs(e,t){if(!WO[e]){WO[e]=!0;try{t()}catch(n){Qe&&qe.error(`Error while instrumenting ${e}`,n)}}}function li(e,t){const n=e&&ph[e];if(n)for(const i of n)try{i(t)}catch(r){Qe&&qe.error(`Error while triggering instrumentation handler.
68Type: ${e}
69Name: ${ka(i)}
70Error:`,r)}}let Qy=null;function SB(e){const t="error";Ws(t,e),Gs(t,wB)}function wB(){Qy=xt.onerror,xt.onerror=function(e,t,n,i,r){return li("error",{column:i,error:r,line:n,msg:e,url:t}),Qy?Qy.apply(this,arguments):!1},xt.onerror.__SENTRY_INSTRUMENTED__=!0}let Jy=null;function xB(e){const t="unhandledrejection";Ws(t,e),Gs(t,EB)}function EB(){Jy=xt.onunhandledrejection,xt.onunhandledrejection=function(e){return li("unhandledrejection",e),Jy?Jy.apply(this,arguments):!0},xt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const JN=Object.prototype.toString;function pS(e){switch(JN.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Oa(e,Error)}}function Uc(e,t){return JN.call(e)===`[object ${t}]`}function eD(e){return Uc(e,"ErrorEvent")}function GO(e){return Uc(e,"DOMError")}function kB(e){return Uc(e,"DOMException")}function Eo(e){return Uc(e,"String")}function wp(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Gd(e){return e===null||wp(e)||typeof e!="object"&&typeof e!="function"}function Td(e){return Uc(e,"Object")}function xp(e){return typeof Event<"u"&&Oa(e,Event)}function OB(e){return typeof Element<"u"&&Oa(e,Element)}function TB(e){return Uc(e,"RegExp")}function Kd(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function RB(e){return Td(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Oa(e,t){try{return e instanceof t}catch{return!1}}function tD(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function $B(e){return typeof Request<"u"&&Oa(e,Request)}const gS=xt,NB=80;function nD(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,r=[];let a=0,l=0;const u=" > ",f=u.length;let m;const h=Array.isArray(t)?t:t.keyAttrs,g=!Array.isArray(t)&&t.maxStringLength||NB;for(;n&&a++<i&&(m=DB(n,h),!(m==="html"||a>1&&l+r.length*f+m.length>=g));)r.push(m),l+=m.length,n=n.parentNode;return r.reverse().join(u)}catch{return"<unknown>"}}function DB(e,t){const n=e,i=[];if(!(n!=null&&n.tagName))return"";if(gS.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const r=t!=null&&t.length?t.filter(l=>n.getAttribute(l)).map(l=>[l,n.getAttribute(l)]):null;if(r!=null&&r.length)r.forEach(l=>{i.push(`[${l[0]}="${l[1]}"]`)});else{n.id&&i.push(`#${n.id}`);const l=n.className;if(l&&Eo(l)){const u=l.split(/\s+/);for(const f of u)i.push(`.${f}`)}}const a=["aria-label","type","name","title","alt"];for(const l of a){const u=n.getAttribute(l);u&&i.push(`[${l}="${u}"]`)}return i.join("")}function vS(){try{return gS.document.location.href}catch{return""}}function CB(e){if(!gS.HTMLElement)return null;let t=e;const n=5;for(let i=0;i<n;i++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Rr(e,t,n){if(!(t in e))return;const i=e[t];if(typeof i!="function")return;const r=n(i);typeof r=="function"&&rD(r,i);try{e[t]=r}catch{Qe&&qe.log(`Failed to replace method "${t}" in object`,e)}}function As(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Qe&&qe.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function rD(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,As(e,"__sentry_original__",t)}catch{}}function yS(e){return e.__sentry_original__}function iD(e){if(pS(e))return{message:e.message,name:e.name,stack:e.stack,...XO(e)};if(xp(e)){const t={type:e.type,target:KO(e.target),currentTarget:KO(e.currentTarget),...XO(e)};return typeof CustomEvent<"u"&&Oa(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function KO(e){try{return OB(e)?nD(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function XO(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function AB(e){const t=Object.keys(iD(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}function i_(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function QO(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;i<e.length;i++){const r=e[i];try{tD(r)?n.push(QN(r)):n.push(String(r))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function gh(e,t,n=!1){return Eo(e)?TB(t)?t.test(e):Eo(t)?n?e===t:e.includes(t):!1:!1}function Ep(e,t=[],n=!1){return t.some(i=>gh(e,i,n))}function jB(){const e=xt;return e.crypto||e.msCrypto}let eb;function MB(){return Math.random()*16}function Yr(e=jB()){try{if(e!=null&&e.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return eb||(eb="10000000100040008000"+1e11),eb.replace(/[018]/g,t=>(t^(MB()&15)>>t/4).toString(16))}function oD(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function os(e){const{message:t,event_id:n}=e;if(t)return t;const i=oD(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function o_(e,t,n){const i=e.exception=e.exception||{},r=i.values=i.values||[],a=r[0]=r[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Sc(e,t){const n=oD(e);if(!n)return;const i={type:"generic",handled:!0},r=n.mechanism;if(n.mechanism={...i,...r,...t},t&&"data"in t){const a={...r==null?void 0:r.data,...t.data};n.mechanism.data=a}}function JO(e){if(IB(e))return!0;try{As(e,"__sentry_captured__",!0)}catch{}return!1}function IB(e){try{return e.__sentry_captured__}catch{}}const aD=1e3;function Xd(){return Date.now()/aD}function PB(){const{performance:e}=xt;if(!(e!=null&&e.now)||!e.timeOrigin)return Xd;const t=e.timeOrigin;return()=>(t+e.now())/aD}let eT;function Ii(){return(eT??(eT=PB()))()}function zB(e){const t=Ii(),n={sid:Yr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>LB(n)};return e&&wc(n,e),n}function wc(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ii(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Yr()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
vendor: 6,515 bytes, line 70
70ypeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function UB(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),wc(e,n)}function LB(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Qd(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const i={...e};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=Qd(i[r],t[r],n-1));return i}function tT(){return Yr()}function sD(){return Yr().substring(16)}const a_="_sentrySpan";function nT(e,t){t?As(e,a_,t):delete e[a_]}function Mh(e){return e[a_]}const FB=100;class To{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:tT(),sampleRand:Math.random()}}clone(){const t=new To;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,nT(t,Mh(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&wc(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,i=n instanceof To?n.getScopeData():Td(n)?t:void 0,{tags:r,attributes:a,extra:l,user:u,contexts:f,level:m,fingerprint:h=[],propagationContext:g}=i||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...a},this._extra={...this._extra,...l},this._contexts={...this._contexts,...f},u&&Object.keys(u).length&&(this._user=u),m&&(this._level=m),h.length&&(this._fingerprint=h),g&&(this._propagationContext=g),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,nT(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tT(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var a;const i=typeof n=="number"?n:FB;if(i<=0)return this;const r={timestamp:Xd(),...t,message:t.message?i_(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>i&&(this._breadcrumbs=this._breadcrumbs.slice(-i),(a=this._client)==null||a.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Mh(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Qd(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const i=(n==null?void 0:n.event_id)||Yr();if(!this._client)return Qe&&qe.warn("No client configured on scope - will not capture exception!"),i;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...n,event_id:i},this),i}captureMessage(t,n,i){const r=(i==null?void 0:i.event_id)||Yr();if(!this._client)return Qe&&qe.warn("No client configured on scope - will not capture message!"),r;const a=(i==null?void 0:i.syntheticException)??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...i,event_id:r},this),r}captureEvent(t,n){const i=(n==null?void 0:n.event_id)||Yr();return this._client?(this._client.captureEvent(t,{...n,event_id:i},this),i):(Qe&&qe.warn("No client configured on scope - will not capture event!"),i)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
vendor: 14,504 bytes, lines 70-72
70h(t=>{t(this)}),this._notifyingListeners=!1)}}function BB(){return zc("defaultCurrentScope",()=>new To)}function VB(){return zc("defaultIsolationScope",()=>new To)}class HB{constructor(t,n){let i;t?i=t:i=new To;let r;n?r=n:r=new To,this._stack=[{scope:i}],this._isolationScope=r}withScope(t){const n=this._pushScope();let i;try{i=t(n)}catch(r){throw this._popScope(),r}return Kd(i)?i.then(r=>(this._popScope(),r),r=>{throw this._popScope(),r}):(this._popScope(),i)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function xc(){const e=Wd(),t=Sp(e);return t.stack=t.stack||new HB(BB(),VB())}function qB(e){return xc().withScope(e)}function ZB(e,t){const n=xc();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function rT(e){return xc().withScope(()=>e(xc().getIsolationScope()))}function YB(){return{withIsolationScope:rT,withScope:qB,withSetScope:ZB,withSetIsolationScope:(e,t)=>rT(t),getCurrentScope:()=>xc().getScope(),getIsolationScope:()=>xc().getIsolationScope()}}function kp(e){const t=Sp(e);return t.acs?t.acs:YB()}function pi(){const e=Wd();return kp(e).getCurrentScope()}function Ks(){const e=Wd();return kp(e).getIsolationScope()}function lD(){return zc("globalScope",()=>new To)}function bS(...e){const t=Wd(),n=kp(t);if(e.length===2){const[i,r]=e;return i?n.withSetScope(i,r):n.withScope(r)}return n.withScope(e[0])}function An(){return pi().getClient()}function cD(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:i,propagationSpanId:r}=t,a={trace_id:n,span_id:r||sD()};return i&&(a.parent_span_id=i),a}const WB="sentry.source",GB="sentry.sample_rate",KB="sentry.previous_trace_sample_rate",XB="sentry.op",uD="sentry.origin",dD="sentry.profile_id",fD="sentry.exclusive_time",QB=0,JB=1,e5="_sentryScope",t5="_sentryIsolationScope";function n5(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function mD(e){const t=e;return{scope:t[e5],isolationScope:n5(t[t5])}}const r5="sentry-",i5=/^sentry-/;function o5(e){const t=a5(e);if(!t)return;const n=Object.entries(t).reduce((i,[r,a])=>{if(r.match(i5)){const l=r.slice(r5.length);i[l]=a}return i},{});if(Object.keys(n).length>0)return n}function a5(e){if(!(!e||!Eo(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const i=iT(n);return Object.entries(i).forEach(([r,a])=>{t[r]=a}),t},{}):iT(e)}function iT(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const i=t.slice(0,n),r=t.slice(n+1);return[i,r].map(a=>{try{return decodeURIComponent(a.trim())}catch{return}})}).reduce((t,[n,i])=>(n&&i&&(t[n]=i),t),{})}const s5=/^o(\d+)\./,l5=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function c5(e){return e==="http"||e==="https"}function Jd(e,t=!1){const{host:n,path:i,pass:r,port:a,projectId:l,protocol:u,publicKey:f}=e;return`${u}://${f}${t&&r?`:${r}`:""}@${n}${a?`:${a}`:""}/${i&&`${i}/`}${l}`}function u5(e){const t=l5.exec(e);if(!t){Ys(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,i,r="",a="",l="",u=""]=t.slice(1);let f="",m=u;const h=m.split("/");if(h.length>1&&(f=h.slice(0,-1).join("/"),m=h.pop()),m){const g=m.match(/^\d+/);g&&(m=g[0])}return hD({host:a,pass:r,path:f,projectId:m,port:l,protocol:n,publicKey:i})}function hD(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function d5(e){if(!Qe)return!0;const{port:t,projectId:n,protocol:i}=e;return["protocol","publicKey","host","projectId"].find(l=>e[l]?!1:(qe.error(`Invalid Sentry Dsn: ${l} missing`),!0))?!1:n.match(/^\d+$/)?c5(i)?t&&isNaN(parseInt(t,10))?(qe.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(qe.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(qe.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function f5(e){const t=e.match(s5);return t==null?void 0:t[1]}function m5(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let i;return t.orgId?i=String(t.orgId):n&&(i=f5(n)),i}function h5(e){const t=typeof e=="string"?u5(e):hD(e);if(!(!t||!d5(t)))return t}function p5(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const pD=1;let oT=!1;function gD(e){const{spanId:t,traceId:n,isRemote:i}=e.spanContext(),r=i?t:_S(e).parent_span_id,a=mD(e).scope,l=i?(a==null?void 0:a.getPropagationContext().propagationSpanId)||sD():t;return{parent_span_id:r,span_id:l,trace_id:n}}function g5(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:i,...r},attributes:a})=>({span_id:t,trace_id:n,sampled:i===pD,attributes:a,...r}))}function aT(e){return typeof e=="number"?sT(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?sT(e.getTime()):Ii()}function sT(e){return e>9999999999?e/1e3:e}function _S(e){var i;if(y5(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(v5(e)){const{attributes:r,startTime:a,name:l,endTime:u,status:f,links:m}=e,h="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(i=e.parentSpanContext)==null?void 0:i.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:l,parent_span_id:h,start_timestamp:aT(a),timestamp:aT(u)||void 0,status:_5(f),op:r[XB],origin:r[uD],links:g5(m)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function v5(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function y5(e){return typeof e.getSpanJSON=="function"}function b5(e){const{traceFlags:t}=e.spanContext();return t===pD}function _5(e){if(!(!e||e.code===QB))return e.code===JB?"ok":e.message||"internal_error"}const S5="_sentryRootSpan";function vD(e){return e[S5]||e}function w5(){const e=Wd(),t=kp(e);return t.getActiveSpan?t.getActiveSpan():Mh(pi())}function lT(){oT||(Ys(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),oT=!0)}function x5(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=(n=An())==null?void 0:n.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function cT(e){qe.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function uT(e,t){if(!(t!=null&&t.length)||!e.description)return!1;for(const n of t){if(k5(n)){if(gh(e.description,n))return Qe&&cT(e),!0;continue}if(!n.name&&!n.op)continue;const i=n.name?gh(e.description,n.name):!0,r=n.op?e.op&&gh(e.op,n.op):!0;if(i&&r)return Qe&&cT(e),!0}return!1}function E5(e,t){const n=t.parent_span_id,i=t.span_id;if(n)for(const r of e)r.parent_span_id===i&&(r.parent_span_id=n)}function k5(e){return typeof e=="string"||e instanceof RegExp}const SS="production",O5="_frozenDsc";function yD(e,t){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},r={environment:n.environment||SS,release:n.release,public_key:i,trace_id:e,org_id:m5(t)};return t.emit("createDsc",r),r}function bD(e,t){const n=t.getPropagationContext();return n.dsc||yD(n.traceId,e)}function _D(e){var S;const t=An();if(!t)return{};const n=vD(e),i=_S(n),r=i.data,a=n.spanContext().traceState,l=(a==null?void 0:a.get("sentry.sample_rate"))??r[GB]??r[KB];function u(w){return(typeof l=="number"||typeof l=="string")&&(w.sample_rate=`${l}`),w}const f=n[O5];if(f)return u(f);const m=a==null?void 0:a.get("sentry.dsc"),h=m&&o5(m);if(h)return u(h);const g=yD(e.spanContext().traceId,t),b=r[WB],_=i.description;return b!=="url"&&_&&(g.transaction=_),x5()&&(g.sampled=String(b5(n)),g.sample_rand=(a==null?void 0:a.get("sentry.sample_rand"))??((S=mD(n).scope)==null?void 0:S.getPropagationContext().sampleRand.toString())),u(g),t.emit("createDsc",g,n),g}function Oi(e,t=100,n=1/0){try{return s_("",e,t,n)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function SD(e,t=3,n=100*1024){const i=Oi(e,t);return N5(i)>n?SD(e,t-1,n):i}function s_(e,t,n=1/0,i=1/0,r=D5()){const[a,l]=r;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const u=T5(e,t);if(!u.startsWith("[object "))return u;if(t.__sentry_skip_normalization__)return t;const f=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(f===0)return u.replace("object ","");if(a(t))return"[Circular ~]";const m=t;if(m&&typeof m.toJSON=="function")try{const _=m.toJSON();return s_("",_,f-1,i,r)}catch{}const h=Array.isArray(t)?[]:{};let g=0;const b=iD(t);for(const _ in b){if(!Object.prototype.hasOwnProperty.call(b,_))continue;if(g>=i){h[_]="[MaxProperties ~]";break}const S=b[_];h[_]=s_(_,S,f-1,i,r),g++}return l(t),h}function T5(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(tD(t))return QN(t);if(RB(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${ka(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=R5(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function R5(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function $5(e){return~-encodeURI(e).split(/%..|./).length}function N5(e){return $5(JSON.stringify(e))}function D5(){const e=new WeakSet;function t(i){return e.has(i)?!0:(e.add(i),!1)}function n(i){e.delete(i)}return[t,n]}function Lc(e,t=[]){return[e,t]}function C5(e,t){const[n,i]=e;return[n,[...i,t]]}function dT(e,t){const n=e[1];for(const i of n){const r=i[0].type;if(t(i,r))return!0}return!1}function l_(e){const t=Sp(xt);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function A5(e){const[t,n]=e;let i=JSON.stringify(t);function r(a){typeof i=="string"?i=typeof a=="string"?i+a:[l_(i),a]:i.push(typeof a=="string"?l_(a):a)}for(const a of n){const[l,u]=a;if(r(`
71${JSON.stringify(l)}
72`),typeof u=="string"||u instanceof Uint8Array)r(u);else{let f;try{f=JSON.stringify(u)}catch{f=JSON.stringify(Oi(u))}r(f)}}return typeof i=="string"?i:j5(i)}function j5(e){const t=e.reduce((r,a)=>r+a.length,0),n=new Uint8Array(t);let i=0;for(const r of e)n.set(r,i),i+=r.length;return n}function M5(e){const t=typeof e.data=="string"?l_(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const I5={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function fT(e){return I5[e]}function wD(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function P5(e,t,n,i){var a;const r=(a=e.sdkProcessingMetadata)==null?void 0:a.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:Jd(i)},...r&&{trace:r}}}function z5(e,t){var i,r,a,l;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((i=e.sdk)==null?void 0:i.integrations)||[],...t.integrations||[]],packages:[...((r=e.sdk)==null?void 0:r.packages)||[],...t.packages||[]],settings:(a=e.sdk)!=null&&a.settings||t.settings?{...(l=e.sdk)==null?void 0:l.settings,...t.settings}:void 0},e}function U5(e,t,n,i){const r=wD(n),a={sent_at:new Date().toISOString(),...r&&{sdk:r},...!!i&&t&&{dsn:Jd(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Lc(a,[l])}function L5(e,t,n,i){const r=wD(n),a=e.type&&e.type!=="replay_event"?e.type:"event";z5(e,n==null?void 0:n.sdk);const l=P5(e,r,i,t);return delete e.sdkProcessingMetadata,Lc(l,[[{type:a},e]])}const tb=0,mT=1,hT=2;function Op(e){return new Rd(t=>{t(e)})}function wS(e){return new Rd((t,n)=>{n(e)})}class Rd{constructor(t){this._state=tb,this._handlers=[],this._runExecutor(t)}then(t,n){return new Rd((i,r)=>{this._handlers.push([!1,a=>{if(!t)i(a);else try{i(t(a))}catch(l){r(l)}},a=>{if(!n)r(a);else try{i(n(a))}catch(l){r(l)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Rd((n,i)=>{let r,a;return this.then(l=>{a=!1,r=l,t&&t()},l=>{a=!0,r=l,t&&t()}).then(()=>{if(a){i(r);return}n(r)})})}_executeHandlers(){if(this._state===tb)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===mT&&n[1](this._value),this._state===hT&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(a,l)=>{if(this._state===tb){if(Kd(l)){l.then(i,r);return}this._state=a,this._value=l,this._executeHandlers()}},i=a=>{n(mT,a)},r=a=>{n(hT,a)};try{t(i,r)}catch(a){r(a)}}}function F5(e,t,n,i=0){try{const r=c_(t,n,e,i);return Kd(r)?r:Op(r)}catch(r){return wS(r)}}function c_(e,t,n,i){const r=n[i];if(!e||!r)return e;const a=r({...e},t);return Qe&&a===null&&qe.log(`Event processor "${r.id||"?"}" dropped event`),Kd(a)?a.then(l=>c_(l,t,n,i+1)):c_(a,t,n,i+1)}function B5(e,t){const{fingerprint:n,span:i,breadcrumbs:r,sdkProcessingMetadata:a}=t;V5(e,t),i&&Z5(e,i),Y5(e,n),H5(e,r),q5(e,a)}function Ih(e,t){const{extra:n,tags:i,user:r,contexts:a,level:l,sdkProcessingMetadata:u,breadcrumbs:f,fingerprint:m,eventProcessors:h,attachments:g,propagationContext:b,transactionName:_,span:S}=t;Zm(e,"extra",n),Zm(e,"tags",i),Zm(e,"user",r),Zm(e,"contexts",a),e.sdkProcessingMetadata=Qd(e.sdkProcessingMetadata,u,2),l&&(e.level=l),_&&(e.transactionName=_),S&&(e.span=S),f.length&&(e.breadcrumbs=[...e.breadcrumbs,...f]),m.length&&(e.fingerprint=[...e.fingerprint,...m]),h.length&&(e.eventProcessors=[...e.eventProcessors,...h]),g.length&&(e.attachments=[...e.attachments,...g]),e.propagationContext={...e.propagationContext,...b}}function Zm(e,t,n){e[t]=Qd(e[t],n,1)}function V5(e,t){const{extra:n,tags:i,user:r,contexts:a,level:l,transactionName:u}=t;
72Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(i).length&&(e.tags={...i,...e.tags}),Object.keys(r).length&&(e.user={...r,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),l&&(e.level=l),u&&e.type!=="transaction"&&(e.transaction=u)}function H5(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function q5(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Z5(e,t){e.contexts={trace:gD(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:_D(t),...e.sdkProcessingMetadata};const n=vD(t),i=_S(n).description;i&&!e.transaction&&e.type==="transaction"&&(e.transaction=i)}function Y5(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let lo,pT,gT,oa;function W5(e){const t=xt._sentryDebugIds,n=xt._debugIds;if(!t&&!n)return{};const i=t?Object.keys(t):[],r=n?Object.keys(n):[];if(oa&&i.length===pT&&r.length===gT)return oa;pT=i.length,gT=r.length,oa={},lo||(lo={});const a=(l,u)=>{for(const f of l){const m=u[f],h=lo==null?void 0:lo[f];if(h&&oa&&m)oa[h[0]]=m,lo&&(lo[f]=[h[0],m]);else if(m){const g=e(f);for(let b=g.length-1;b>=0;b--){const _=g[b],S=_==null?void 0:_.filename;if(S&&oa&&lo){oa[S]=m,lo[f]=[S,m];break}}}}};return t&&a(i,t),n&&a(r,n),oa}function G5(e,t,n,i,r,a){const{normalizeDepth:l=3,normalizeMaxBreadth:u=1e3}=e,f={...t,event_id:t.event_id||n.event_id||Yr(),timestamp:t.timestamp||Xd()},m=n.integrations||e.integrations.map(x=>x.name);K5(f,e),J5(f,m),r&&r.emit("applyFrameMetadata",t),t.type===void 0&&X5(f,e.stackParser);const h=tV(i,n.captureContext);n.mechanism&&Sc(f,n.mechanism);const g=r?r.getEventProcessors():[],b=lD().getScopeData();if(a){const x=a.getScopeData();Ih(b,x)}if(h){const x=h.getScopeData();Ih(b,x)}const _=[...n.attachments||[],...b.attachments];_.length&&(n.attachments=_),B5(f,b);const S=[...g,...b.eventProcessors];return F5(S,f,n).then(x=>(x&&Q5(x),typeof l=="number"&&l>0?eV(x,l,u):x))}function K5(e,t){var u,f;const{environment:n,release:i,dist:r,maxValueLength:a}=t;e.environment=e.environment||n||SS,!e.release&&i&&(e.release=i),!e.dist&&r&&(e.dist=r);const l=e.request;l!=null&&l.url&&a&&(l.url=i_(l.url,a)),a&&((f=(u=e.exception)==null?void 0:u.values)==null||f.forEach(m=>{m.value&&(m.value=i_(m.value,a))}))}function X5(e,t){var i,r;const n=W5(t);(r=(i=e.exception)==null?void 0:i.values)==null||r.forEach(a=>{var l,u;(u=(l=a.stacktrace)==null?void 0:l.frames)==null||u.forEach(f=>{f.filename&&(f.debug_id=n[f.filename])})})}function Q5(e){var i,r;const t={};if((r=(i=e.exception)==null?void 0:i.values)==null||r.forEach(a=>{var l,u;(u=(l=a.stacktrace)==null?void 0:l.frames)==null||u.forEach(f=>{f.debug_id&&(f.abs_path?t[f.abs_path]=f.debug_id:f.filename&&(t[f.filename]=f.debug_id),delete f.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([a,l])=>{n.push({type:"sourcemap",code_file:a,debug_id:l})})}function J5(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function eV(e,t,n){var r,a;if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(l=>({...l,...l.data&&{data:Oi(l.data,t,n)}}))},...e.user&&{user:Oi(e.user,t,n)},...e.contexts&&{contexts:Oi(e.contexts,t,n)},...e.extra&&{extra:Oi(e.extra,t,n)}};return(r=e.contexts)!=null&&r.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=Oi(e.contexts.trace.data,t,n))),e.spans&&(i.spans=e.spans.map(l=>({...l,...l.data&&{data:Oi(l.data,t,n)}}))),(a=e.contexts)!=null&&a.flags&&i.contexts&&(i.contexts.flags=Oi(e.contexts.flags,3,n)),i}function tV(e,t){if(!t)return e;const n=e?e.clone():new To;return n.update(t),n}function xD(e,t){return pi().captureException(e,void 0)}function nV(e,t){const n=typeof t=="string"?t:void 0,i=typeof t!="string"?{captureContext:t}:void 0;return pi().captureMessage(e,n,i)}function ED(e,t){return pi().captureEvent(e,t)}function rV(e,t){Ks().setContext(e,t)}function vT(e){const t=Ks(),n=pi(),{userAgent:i}=xt.navigator||{},r=zB({user:n.getUser()||t.getUser(),...i&&{userAgent:i},...e}),a=t.getSession();return(a==null?void 0:a.status)==="ok"&&wc(a,{status:"exited"}),kD(),t.setSession(r),r}function kD(){const e=Ks(),n=pi().getSession()||e.getSession();n&&UB(n),OD(),e.setSession()}function OD(){const e=Ks(),t=An(),n=e.getSession();n&&t&&t.captureSession(n)}function yT(e=!1){if(e){kD();return}OD()}const iV="7";function oV(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function aV(e){return`${oV(e)}${e.projectId}/envelope/`}function sV(e,t){const n={sentry_version:iV};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function lV(e,t,n){return t||`${aV(e)}?${sV(e,n)}`}const bT=[];function cV(e){const t={};return e.forEach(n=>{const{name:i}=n,r=t[i];r&&!r.isDefaultInstance&&n.isDefaultInstance||(t[i]=n)}),Object.values(t)}function uV(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(r=>{r.isDefaultInstance=!0});let i;if(Array.isArray(n))i=[...t,...n];else if(typeof n=="function"){const r=n(t);i=Array.isArray(r)?r:[r]}else i=t;return cV(i)}function dV(e,t){const n={};return t.forEach(i=>
72{i&&TD(e,i,n)}),n}function _T(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function TD(e,t,n){if(n[t.name]){Qe&&qe.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!bT.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),bT.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const i=t.preprocessEvent.bind(t);e.on("preprocessEvent",(r,a)=>i(r,a,e))}if(typeof t.processEvent=="function"){const i=t.processEvent.bind(t),r=Object.assign((a,l)=>i(a,l,e),{id:t.name});e.addEventProcessor(r)}Qe&&qe.log(`Integration installed: ${t.name}`)}function fV(e,t){return t?bS(t,()=>{const n=w5(),i=n?gD(n):cD(t);return[n?_D(n):bD(e,t),i]}):[void 0,void 0]}const mV={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function hV(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function pV(e,t,n,i){const r={};return t!=null&&t.sdk&&(r.sdk={name:t.sdk.name,version:t.sdk.version}),n&&i&&(r.dsn=Jd(i)),Lc(r,[hV(e)])}const gV=100;function vV(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function xi(e,t,n,i=!0){n&&(!e[t]||i)&&(e[t]=n)}function yV(e,t){const n=ES(),i=RD(e);i===void 0?n.set(e,[t]):i.length>=gV?(xS(e,i),n.set(e,[t])):n.set(e,[...i,t])}function ST(e,t=pi(),n=yV){var L;const i=(t==null?void 0:t.getClient())??An();if(!i){Qe&&qe.warn("No client available to capture log.");return}const{release:r,environment:a,enableLogs:l=!1,beforeSendLog:u}=i.getOptions();if(!l){Qe&&qe.warn("logging option not enabled, log will not be captured.");return}const[,f]=fV(i,t),m={...e.attributes},{user:{id:h,email:g,username:b}}=bV(t);xi(m,"user.id",h,!1),xi(m,"user.email",g,!1),xi(m,"user.name",b,!1),xi(m,"sentry.release",r),xi(m,"sentry.environment",a);const{name:_,version:S}=((L=i.getSdkMetadata())==null?void 0:L.sdk)??{};xi(m,"sentry.sdk.name",_),xi(m,"sentry.sdk.version",S);const w=i.getIntegrationByName("Replay"),x=w==null?void 0:w.getReplayId(!0);xi(m,"sentry.replay_id",x),x&&(w==null?void 0:w.getRecordingMode())==="buffer"&&xi(m,"sentry._internal.replay_is_buffering",!0);const E=e.message;if(wp(E)){const{__sentry_template_string__:K,__sentry_template_values__:H=[]}=E;H!=null&&H.length&&(m["sentry.message.template"]=K),H.forEach((F,ae)=>{m[`sentry.message.parameter.${ae}`]=F})}const O=Mh(t);xi(m,"sentry.trace.parent_span_id",O==null?void 0:O.spanContext().spanId);const R={...e,attributes:m};i.emit("beforeCaptureLog",R);const $=u?Ys(()=>u(R)):R;if(!$){i.recordDroppedEvent("before_send","log_item",1),Qe&&qe.warn("beforeSendLog returned null, log will not be captured.");return}const{level:N,message:M,attributes:C={},severityNumber:I}=$,V={timestamp:Ii(),level:N,body:M,trace_id:f==null?void 0:f.trace_id,severity_number:I??mV[N],attributes:Object.keys(C).reduce((K,H)=>(K[H]=vV(C[H]),K),{})};n(i,V),i.emit("afterCaptureLog",$)}function xS(e,t){const n=t??RD(e)??[];if(n.length===0)return;const i=e.getOptions(),r=pV(n,i._metadata,i.tunnel,e.getDsn());ES().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(r)}function RD(e){return ES().get(e)}function bV(e){const t=lD().getScopeData();return Ih(t,Ks().getScopeData()),Ih(t,e.getScopeData()),t}function ES(){return zc("clientToLogBufferMap",()=>new WeakMap)}function _V(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function SV(e,t,n,i){const r={};return t!=null&&t.sdk&&(r.sdk={name:t.sdk.name,version:t.sdk.version}),n&&i&&(r.dsn=Jd(i)),Lc(r,[_V(e)])}function $D(e,t){const n=t??wV(e)??[];if(n.length===0)return;const i=e.getOptions(),r=SV(n,i._metadata,i.tunnel,e.getDsn());ND().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(r)}function wV(e){return ND().get(e)}function ND(){return zc("clientToMetricBufferMap",()=>new WeakMap)}const kS=Symbol.for("SentryBufferFullError");function OS(e=100){const t=new Set;function n(){return t.size<e}function i(l){t.delete(l)}function r(l){if(!n())return wS(kS);const u=l();return t.add(u),u.then(()=>i(u),()=>i(u)),u}function a(l){if(!t.size)return Op(!0);const u=Promise.allSettled(Array.from(t)).then(()=>!0);if(!l)return u;const f=[u,new Promise(m=>setTimeout(()=>m(!1),l))];return Promise.race(f)}return{get $(){return Array.from(t)},add:r,drain:a}}const xV=60*1e3;function EV(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const i=Date.parse(`${e}`);return isNaN(i)?xV:i-t}function kV(e,t){return e[t]||e.all||0}function OV(e,t,n=Date.now()){return kV(e,t)>n}function TV(e,{statusCode:t,headers:n},i=Date.now()){const r={...e},a=n==null?void 0:n["x-sentry-rate-limits"],l=n==null?void 0:n["retry-after"];if(a)for(const u of a.trim().split(",")){const[f,m,,,h]=u.split(":",5),g=parseInt(f,10),b=(isNaN(g)?60:g)*1e3;if(!m)r.all=i+b;else for(const _ of m.split(";
72"))_==="metric_bucket"?(!h||h.split(";").includes("custom"))&&(r[_]=i+b):r[_]=i+b}else l?r.all=i+EV(l,i):t===429&&(r.all=i+60*1e3);return r}const DD=64;function RV(e,t,n=OS(e.bufferSize||DD)){let i={};const r=l=>n.drain(l);function a(l){const u=[];if(dT(l,(g,b)=>{const _=fT(b);OV(i,_)?e.recordDroppedEvent("ratelimit_backoff",_):u.push(g)}),u.length===0)return Promise.resolve({});const f=Lc(l[0],u),m=g=>{dT(f,(b,_)=>{e.recordDroppedEvent(g,fT(_))})},h=()=>t({body:A5(f)}).then(g=>(g.statusCode!==void 0&&(g.statusCode<200||g.statusCode>=300)&&Qe&&qe.warn(`Sentry responded with status code ${g.statusCode} to sent event.`),i=TV(i,g),g),g=>{throw m("network_error"),Qe&&qe.error("Encountered error running transport request:",g),g});return n.add(h).then(g=>g,g=>{if(g===kS)return Qe&&qe.error("Skipped sending event because buffer is full."),m("queue_overflow"),Promise.resolve({});throw g})}return{send:a,flush:r}}function $V(e,t,n){const i=[{type:"client_report"},{timestamp:Xd(),discarded_events:e}];return Lc(t?{dsn:t}:{},[i])}function CD(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function NV(e){var f;const{trace_id:t,parent_span_id:n,span_id:i,status:r,origin:a,data:l,op:u}=((f=e.contexts)==null?void 0:f.trace)??{};return{data:l??{},description:e.transaction,op:u,parent_span_id:n,span_id:i??"",start_timestamp:e.start_timestamp??0,status:r,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:l==null?void 0:l[dD],exclusive_time:l==null?void 0:l[fD],measurements:e.measurements,is_segment:!0}}function DV(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[dD]:e.profile_id},...e.exclusive_time&&{[fD]:e.exclusive_time}}}},measurements:e.measurements}}const wT="Not capturing exception because it's already been captured.",xT="Discarded session because of missing or non-string release",AD=Symbol.for("SentryInternalError"),jD=Symbol.for("SentryDoNotSendEventError"),CV=5e3;function vh(e){return{message:e,[AD]:!0}}function nb(e){return{message:e,[jD]:!0}}function ET(e){return!!e&&typeof e=="object"&&AD in e}function kT(e){return!!e&&typeof e=="object"&&jD in e}function OT(e,t,n,i,r){let a=0,l,u=!1;e.on(n,()=>{a=0,clearTimeout(l),u=!1}),e.on(t,f=>{a+=i(f),a>=8e5?r(e):u||(u=!0,l=setTimeout(()=>{r(e)},CV))}),e.on("flush",()=>{r(e)})}class AV{constructor(t){var i,r,a;if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=OS(((i=t.transportOptions)==null?void 0:i.bufferSize)??DD),t.dsn?this._dsn=h5(t.dsn):Qe&&qe.warn("No DSN provided, client will not send events."),this._dsn){const l=lV(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:l})}this._options.enableLogs=this._options.enableLogs??((r=this._options._experiments)==null?void 0:r.enableLogs),this._options.enableLogs&&OT(this,"afterCaptureLog","flushLogs",PV,xS),(this._options.enableMetrics??((a=this._options._experiments)==null?void 0:a.enableMetrics)??!0)&&OT(this,"afterCaptureMetric","flushMetrics",IV,$D)}captureException(t,n,i){const r=Yr();if(JO(t))return Qe&&qe.log(wT),r;const a={event_id:r,...n};return this._process(()=>this.eventFromException(t,a).then(l=>this._captureEvent(l,a,i)).then(l=>l),"error"),a.event_id}captureMessage(t,n,i,r){const a={event_id:Yr(),...i},l=wp(t)?t:String(t),u=Gd(t),f=u?this.eventFromMessage(l,n,a):this.eventFromException(t,a);return this._process(()=>f.then(m=>this._captureEvent(m,a,r)),u?"unknown":"error"),a.event_id}captureEvent(t,n,i){const r=Yr();if(n!=null&&n.originalException&&JO(n.originalException))return Qe&&qe.log(wT),r;const a={event_id:r,...n},l=t.sdkProcessingMetadata||{},u=l.capturedSpanScope,f=l.capturedSpanIsolationScope,m=TT(t.type);return this._process(()=>this._captureEvent(t,a,u||i,f),m),a.event_id}captureSession(t){this.sendSession(t),wc(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;
72this.emit("flush");const i=await this._isClientDoneProcessing(t),r=await n.flush(t);return i&&r}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];TD(this,t,this._integrations),n||_T(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let i=L5(t,this._dsn,this._options._metadata,this._options.tunnel);for(const r of n.attachments||[])i=C5(i,M5(r));this.sendEnvelope(i).then(r=>this.emit("afterSendEvent",t,r))}sendSession(t){const{release:n,environment:i=SS}=this._options;if("aggregates"in t){const a=t.attrs||{};if(!a.release&&!n){Qe&&qe.warn(xT);return}a.release=a.release||n,a.environment=a.environment||i,t.attrs=a}else{if(!t.release&&!n){Qe&&qe.warn(xT);return}t.release=t.release||n,t.environment=t.environment||i}this.emit("beforeSendSession",t);const r=U5(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,n,i=1){if(this._options.sendClientReports){const r=`${t}:${n}`;Qe&&qe.log(`Recording outcome: "${r}"${i>1?` (${i} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+i}}on(t,n){const i=this._hooks[t]=this._hooks[t]||new Set,r=(...a)=>n(...a);return i.add(r),()=>{i.delete(r)}}emit(t,...n){const i=this._hooks[t];i&&i.forEach(r=>r(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return Qe&&qe.error("Error while sending envelope:",n),{}}return Qe&&qe.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=dV(this,t),_T(this,t)}_updateSessionFromEvent(t,n){var f,m;let i=n.level==="fatal",r=!1;const a=(f=n.exception)==null?void 0:f.values;if(a){r=!0,i=!1;for(const h of a)if(((m=h.mechanism)==null?void 0:m.handled)===!1){i=!0;break}}const l=t.status==="ok";(l&&t.errors===0||l&&i)&&(wc(t,{...i&&{status:"crashed"},errors:t.errors||Number(r||i)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(i=>setTimeout(i,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,i,r){const a=this.getOptions(),l=Object.keys(this._integrations);return!n.integrations&&(l!=null&&l.length)&&(n.integrations=l),this.emit("preprocessEvent",t,n),t.type||r.setLastEventId(t.event_id||n.event_id),G5(a,t,n,i,this,r).then(u=>{if(u===null)return u;this.emit("postprocessEvent",u,n),u.contexts={trace:cD(i),...u.contexts};const f=bD(this,i);return u.sdkProcessingMetadata={dynamicSamplingContext:f,...u.sdkProcessingMetadata},u})}_captureEvent(t,n={},i=pi(),r=Ks()){return Qe&&u_(t)&&qe.log(`Captured error event \`${CD(t)[0]||"<unknown>"}\``),this._processEvent(t,n,i,r).then(a=>a.event_id,a=>{Qe&&(kT(a)?qe.log(a.message):ET(a)?qe.warn(a.message):qe.warn(a))})}_processEvent(t,n,i,r){const a=this.getOptions(),{sampleRate:l}=a,u=MD(t),f=u_(t),h=`before send for type \`${t.type||"error"}\``,g=typeof l>"u"?void 0:p5(l);if(f&&typeof g=="number"&&Math.random()>g)return this.recordDroppedEvent("sample_rate","error"),wS(nb(`Discarding event because it's not included in the random sample (sampling rate = ${l})`));const b=TT(t.type);return this._prepareEvent(t,n,i,r).then(_=>{if(_===null)throw this.recordDroppedEvent("event_processor",b),nb("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return _;const w=MV(this,a,_,n);return jV(w,h)}).then(_=>{var x;if(_===null){if(this.recordDroppedEvent("before_send",b),u){const O=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",O)}throw nb(`${h} returned \`null\`, will not send event.`)}const S=i.getSession()||r.getSession();if(f&&S&&this._updateSessionFromEvent(S,_),u){const E=((x=_.sdkProcessingMetadata)==null?void 0:x.spanCountBeforeProcessing)||0,O=_.spans?_.spans.length:0,R=E-O;R>0&&this.recordDroppedEvent("before_send","span",R)}const w=_.transaction_info;if(u&&w&&_.transaction!==t.transaction){const E="custom";_.transaction_info={...w,source:E}}return this.sendEvent(_,n),_}).then(null,_=>{throw kT(_)||ET(_)?_:(this.captureException(_,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:_}),vh(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
73Reason: ${_}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(i=>(this._numProcessing--,i),i=>(this._numProcessing--,i===kS&&this.recordDroppedEvent("queue_overflow",n),i))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,i])=>{const[r,a]=n.split(":");return{reason:r,category:a,quantity:i}})}_flushOutcomes(){Qe&&qe.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Qe&&qe.log("No outcomes to send");return}if(!this._dsn){Qe&&qe.log("No dsn provided, will not send outcomes");return}Qe&&qe.log("Sending outcomes:",t);const n=$V(t,this._options.tunnel&&Jd(this._dsn));this.sendEnvelope(n)}}function TT(e){return e==="replay_event"?"replay":e||"error"}function jV(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Kd(e))return e.then(i=>{if(!Td(i)&&i!==null)throw vh(n);return i},i=>{throw vh(`${t} rejected with ${i}`)});if(!Td(e)&&e!==null)throw vh(n);return e}function MV(e,t,n,i){const{beforeSend:r,beforeSendTransaction:a,beforeSendSpan:l,ignoreSpans:u}=t;let f=n;if(u_(f)&&r)return r(f,i);if(MD(f)){if(l||u){const m=NV(f);if(u!=null&&u.length&&uT(m,u))return null;if(l){const h=l(m);h?f=Qd(n,DV(h)):lT()}
73if(f.spans){const h=[],g=f.spans;for(const _ of g){if(u!=null&&u.length&&uT(_,u)){E5(g,_);continue}if(l){const S=l(_);S?h.push(S):(lT(),h.push(_))}else h.push(_)}const b=f.spans.length-h.length;b&&e.recordDroppedEvent("before_send","span",b),f.spans=h}}if(a){if(f.spans){const m=f.spans.length;f.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:m}}return a(f,i)}}return f}function u_(e){return e.type===void 0}function MD(e){return e.type==="transaction"}function IV(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+ID(e.attributes)}function PV(e){let t=0;return e.message&&(t+=e.message.length*2),t+ID(e.attributes)}function ID(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*RT(n[0]):Gd(n)?t+=RT(n):t+=100}),t}function RT(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function zV(e,t){t.debug===!0&&(Qe?qe.enable():Ys(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),pi().update(t.initialScope);const i=new e(t);return UV(i),i.init(),i}function UV(e){pi().setClient(e)}function rb(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}function LV(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function PD(e,t,n=[t],i="npm"){const r=e._metadata||{};r.sdk||(r.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${i}:@sentry/${a}`,version:Os})),version:Os}),e._metadata=r}const FV=100;function js(e,t){const n=An(),i=Ks();if(!n)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:a=FV}=n.getOptions();if(a<=0)return;const u={timestamp:Xd(),...e},f=r?Ys(()=>r(u,t)):u;f!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",f,t),i.addBreadcrumb(f,a))}let $T;const BV="FunctionToString",NT=new WeakMap,VV=()=>({name:BV,setupOnce(){$T=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=yS(this),n=NT.has(An())&&t!==void 0?t:this;return $T.apply(n,e)}}catch{}},setup(e){NT.set(e,!0)}}),HV=VV,qV=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],ZV="EventFilters",YV=(e={})=>{let t;return{name:ZV,setup(n){const i=n.getOptions();t=DT(e,i)},processEvent(n,i,r){if(!t){const a=r.getOptions();t=DT(e,a)}return GV(n,t)?null:n}}},WV=(e={})=>({...YV(e),name:"InboundFilters"});function DT(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:qV],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function GV(e,t){if(e.type){if(e.type==="transaction"&&XV(e,t.ignoreTransactions))return Qe&&qe.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
74Event: ${os(e)}`),!0}else{if(KV(e,t.ignoreErrors))return Qe&&qe.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
75Event: ${os(e)}`),!0;if(t9(e))return Qe&&qe.warn(`Event dropped due to not having an error message, error type or stacktrace.
76Event: ${os(e)}`),!0;if(QV(e,t.denyUrls))return Qe&&qe.warn(`Event dropped due to being matched by \`denyUrls\` option.
77Event: ${os(e)}.
78Url: ${Ph(e)}`),!0;if(!JV(e,t.allowUrls))return Qe&&qe.warn(`Event dropped due to not being matched by \`allowUrls\` option.
79Event: ${os(e)}.
80Url: ${Ph(e)}`),!0}return!1}function KV(e,t){return t!=null&&t.length?CD(e).some(n=>Ep(n,t)):!1}function XV(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?Ep(n,t):!1}function QV(e,t){if(!(t!=null&&t.length))return!1;const n=Ph(e);return n?Ep(n,t):!1}function JV(e,t){if(!(t!=null&&t.length))return!0;const n=Ph(e);return n?Ep(n,t):!0}function e9(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ph(e){var t,n;try{const i=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(a=>{var l,u,f;return((l=a.mechanism)==null?void 0:l.parent_id)===void 0&&((f=(u=a.stacktrace)==null?void 0:u.frames)==null?void 0:f.length)}),r=(n=i==null?void 0:i.stacktrace)==null?void 0:n.frames;return r?e9(r):null}catch{return Qe&&qe.error(`Cannot extract url for event ${os(e)}`),null}}function t9(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(i=>i.stacktrace||i.type&&i.type!=="Error"||i.value):!1}function n9(e,t,n,i,r,a){var u;if(!((u=r.exception)!=null&&u.values)||!a||!Oa(a.originalException,Error))return;const l=r.exception.values.length>0?r.exception.values[r.exception.values.length-1]:void 0;l&&(r.exception.values=d_(e,t,i,a.originalException,n,r.exception.values,l,0))}function d_(e,t,n,i,r,a,l,u){if(a.length>=n+1)return a;let f=[...a];if(Oa(i[r],Error)){CT(l,u);const m=e(t,i[r]),h=f.length;AT(m,r,h,u),f=d_(e,t,n,i[r],r,[m,...f],m,h)}
80return Array.isArray(i.errors)&&i.errors.forEach((m,h)=>{if(Oa(m,Error)){CT(l,u);const g=e(t,m),b=f.length;AT(g,`errors[${h}]`,b,u),f=d_(e,t,n,m,r,[g,...f],g,b)}}),f}function CT(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function AT(e,t,n,i){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function zD(e){const t="console";Ws(t,e),Gs(t,r9)}function r9(){"console"in xt&&WN.forEach(function(e){e in xt.console&&Rr(xt.console,e,function(t){return jh[e]=t,function(...n){li("console",{args:n,level:e});const r=jh[e];r==null||r.apply(xt.console,n)}})})}function i9(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const o9="Dedupe",a9=()=>{let e;return{name:o9,processEvent(t){if(t.type)return t;try{if(l9(t,e))return Qe&&qe.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},s9=a9;function l9(e,t){return t?!!(c9(e,t)||u9(e,t)):!1}function c9(e,t){const n=e.message,i=t.message;return!(!n&&!i||n&&!i||!n&&i||n!==i||!LD(e,t)||!UD(e,t))}function u9(e,t){const n=jT(t),i=jT(e);return!(!n||!i||n.type!==i.type||n.value!==i.value||!LD(e,t)||!UD(e,t))}function UD(e,t){let n=YO(e),i=YO(t);if(!n&&!i)return!0;if(n&&!i||!n&&i||(n=n,i=i,i.length!==n.length))return!1;for(let r=0;r<i.length;r++){const a=i[r],l=n[r];if(a.filename!==l.filename||a.lineno!==l.lineno||a.colno!==l.colno||a.function!==l.function)return!1}return!0}function LD(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;n=n,i=i;try{return n.join("")===i.join("")}catch{return!1}}function jT(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function MT(e,t,n){return"util"in xt&&typeof xt.util.format=="function"?xt.util.format(...e):d9(e,t,n)}function d9(e,t,n){return e.map(i=>Gd(i)?String(i):JSON.stringify(Oi(i,t,n))).join(" ")}function f9(e){return/%[sdifocO]/.test(e)}function m9(e,t){const n={},i=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${i}`,t.forEach((r,a)=>{n[`sentry.message.parameter.${a}`]=r}),n}const h9="ConsoleLogs",IT={[uD]:"auto.log.console"},p9=(e={})=>{const t=e.levels||WN;return{name:h9,setup(n){const{enableLogs:i,normalizeDepth:r=3,normalizeMaxBreadth:a=1e3}=n.getOptions();if(!i){Qe&&qe.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}zD(({args:l,level:u})=>{if(An()!==n||!t.includes(u))return;const f=l[0],m=l.slice(1);if(u==="assert"){if(!f){const _=m.length>0?`Assertion failed: ${MT(m,r,a)}`:"Assertion failed";ST({level:"error",message:_,attributes:IT})}return}const h=u==="log",g=l.length>1&&typeof l[0]=="string"&&!f9(l[0]),b={...IT,...g?m9(f,m):{}};ST({level:h?"info":u,message:MT(l,r,a),severityNumber:h?10:void 0,attributes:b})})}}},g9=p9;function FD(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const $d=xt;function v9(){return"history"in $d&&!!$d.history}function y9(){if(!("fetch"in $d))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function f_(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function b9(){var n;if(typeof EdgeRuntime=="string")return!0;if(!y9())return!1;if(f_($d.fetch))return!0;let e=!1;const t=$d.document;if(t&&typeof t.createElement=="function")try{const i=t.createElement("iframe");i.hidden=!0,t.head.appendChild(i),(n=i.contentWindow)!=null&&n.fetch&&(e=f_(i.contentWindow.fetch)),t.head.removeChild(i)}catch(i){Qe&&qe.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return e}function _9(e,t){const n="fetch";Ws(n,e),Gs(n,()=>S9(void 0,t))}function S9(e,t=!1){t&&!b9()||Rr(xt,"fetch",function(n){return function(...i){const r=new Error,{method:a,url:l}=w9(i),u={args:i,fetchData:{method:a,url:l},startTimestamp:Ii()*1e3,virtualError:r,headers:x9(i)};return li("fetch",{...u}),n.apply(xt,i).then(async f=>(li("fetch",{...u,endTimestamp:Ii()*1e3,response:f}),f),f=>{if(li("fetch",{...u,endTimestamp:Ii()*1e3,error:f}),pS(f)&&f.stack===void 0&&(f.stack=r.stack,As(f,"framesToPop",1)),f instanceof TypeError&&(f.message==="Failed to fetch"||f.message==="Load failed"||f.message==="NetworkError when attempting to fetch resource."))try{const m=new URL(u.fetchData.url);f.message=`${f.message} (${m.host})`}catch{}throw f})}})}function m_(e,t){return!!e&&typeof e=="object"&&!!e[t]}function PT(e){return typeof e=="string"?e:e?m_(e,"url")?e.url:e.toString?e.toString():"":""}function w9(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,i]=e;
80return{url:PT(n),method:m_(i,"method")?String(i.method).toUpperCase():"GET"}}const t=e[0];return{url:PT(t),method:m_(t,"method")?String(t.method).toUpperCase():"GET"}}function x9(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if($B(t))return new Headers(t.headers)}catch{}}function E9(){return"npm"}const tn=xt;let h_=0;function BD(){return h_>0}function k9(){h_++,setTimeout(()=>{h_--})}function Ec(e,t={}){function n(r){return typeof r=="function"}if(!n(e))return e;try{const r=e.__sentry_wrapped__;if(r)return typeof r=="function"?r:e;if(yS(e))return e}catch{return e}const i=function(...r){try{const a=r.map(l=>Ec(l,t));return e.apply(this,a)}catch(a){throw k9(),bS(l=>{l.addEventProcessor(u=>(t.mechanism&&(o_(u,void 0),Sc(u,t.mechanism)),u.extra={...u.extra,arguments:r},u)),xD(a)}),a}};try{for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=e[r])}catch{}rD(i,e),As(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get(){return e.name}})}catch{}return i}function O9(){const e=vS(),{referrer:t}=tn.document||{},{userAgent:n}=tn.navigator||{},i={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:i}}function TS(e,t){const n=RS(e,t),i={type:D9(t),value:C9(t)};return n.length&&(i.stacktrace={frames:n}),i.type===void 0&&i.value===""&&(i.value="Unrecoverable error caught"),i}function T9(e,t,n,i){const r=An(),a=r==null?void 0:r.getOptions().normalizeDepth,l=P9(t),u={__serialized__:SD(t,a)};if(l)return{exception:{values:[TS(e,l)]},extra:u};const f={exception:{values:[{type:xp(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:M9(t,{isUnhandledRejection:i})}]},extra:u};if(n){const m=RS(e,n);m.length&&(f.exception.values[0].stacktrace={frames:m})}return f}function ib(e,t){return{exception:{values:[TS(e,t)]}}}function RS(e,t){const n=t.stacktrace||t.stack||"",i=$9(t),r=N9(t);try{return e(n,i,r)}catch{}return[]}const R9=/Minified React error #\d+;/i;function $9(e){return e&&R9.test(e.message)?1:0}function N9(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function VD(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function D9(e){const t=e==null?void 0:e.name;return!t&&VD(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function C9(e){const t=e==null?void 0:e.message;return VD(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function A9(e,t,n,i){const r=(n==null?void 0:n.syntheticException)||void 0,a=$S(e,t,r,i);return Sc(a),a.level="error",n!=null&&n.event_id&&(a.event_id=n.event_id),Op(a)}function j9(e,t,n="info",i,r){const a=(i==null?void 0:i.syntheticException)||void 0,l=p_(e,t,a,r);return l.level=n,i!=null&&i.event_id&&(l.event_id=i.event_id),Op(l)}function $S(e,t,n,i,r){let a;if(eD(t)&&t.error)return ib(e,t.error);if(GO(t)||kB(t)){const l=t;if("stack"in t)a=ib(e,t);else{const u=l.name||(GO(l)?"DOMError":"DOMException"),f=l.message?`${u}: ${l.message}`:u;a=p_(e,f,n,i),o_(a,f)}return"code"in l&&(a.tags={...a.tags,"DOMException.code":`${l.code}`}),a}return pS(t)?ib(e,t):Td(t)||xp(t)?(a=T9(e,t,n,r),Sc(a,{synthetic:!0}),a):(a=p_(e,t,n,i),o_(a,`${t}`),Sc(a,{synthetic:!0}),a)}function p_(e,t,n,i){const r={};if(i&&n){const a=RS(e,n);a.length&&(r.exception={values:[{value:t,stacktrace:{frames:a}}]}),Sc(r,{synthetic:!0})}if(wp(t)){const{__sentry_template_string__:a,__sentry_template_values__:l}=t;return r.logentry={message:a,params:l},r}return r.message=t,r}function M9(e,{isUnhandledRejection:t}){const n=AB(e),i=t?"promise rejection":"exception";return eD(e)?`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``:xp(e)?`Event \`${I9(e)}\` (type=${e.type}) captured as ${i}`:`Object captured as ${i} with keys: ${n}`}function I9(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function P9(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class z9 extends AV{constructor(t){var h;const n=U9(t),i=tn.SENTRY_SDK_SOURCE||E9();PD(n,"browser",["browser"],i),(h=n._metadata)!=null&&h.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:r,sendClientReports:a,enableLogs:l,_experiments:u,enableMetrics:f}=this._options,m=f??(u==null?void 0:u.enableMetrics)??!0;tn.document&&(a||l||m)&&tn.document.addEventListener("visibilitychange",()=>{tn.document.visibilityState==="hidden"&&(a&&this._flushOutcomes(),l&&xS(this),m&&$D(this))}),r&&this.on("beforeSendSession",LV)}eventFromException(t,n){return A9(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",i){return j9(this._options.stackParser,t,n,i,this._options.attachStacktrace)}_prepareEvent(t,n,i,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,i,r)}}function U9(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=tn.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const L9=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Gn=xt,F9=1e3;let zT,g_,v_;function B9(e){const t="dom";Ws(t,e),Gs(t,V9)}function V9(){if(!Gn.document)return;const e=li.bind(null,"dom"),t=UT(e,!0);Gn.document.addEventListener("click",t,!1),Gn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var a,l;const r=(a=Gn[n])==null?void 0:a.prototype;(l=r==null?void 0:r.hasOwnProperty)!=null&&l.call(r,"addEventListener")&&(Rr(r,"addEventListener",function(u){return function(f,m,h){if(f==="click"||f=="keypress")try{const g=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},b=g[f]=g[f]||{refCount:0};if(!b.handler){const _=UT(e);b.handler=_,u.call(this,f,_,h)}b.refCount++}catch{}return u.call(this,f,m,h)}}),Rr(r,"removeEventListener",function(u){return function(f,m,h){if(f==="click"||f=="keypress")try{const g=this.__sentry_instrumentation_handlers__||{},b=g[f];b&&(b.refCount--,b.refCount<=0&&(u.call(this,f,b.handler,h),b.handler=void 0,delete g[f]),Object.keys(g).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return u.call(this,f,m,h)}}))})}function H9(e){if(e.type!==g_)return!1;try{if(!e.target||e.target._sentryId!==v_)return!1}catch{}return!0}function q9(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function UT(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=Z9(n);if(q9(n.type,i))return;As(n,"_sentryCaptured",!0),i&&!i._sentryId&&As(i,"_sentryId",Yr());
80const r=n.type==="keypress"?"input":n.type;H9(n)||(e({event:n,name:r,global:t}),g_=n.type,v_=i?i._sentryId:void 0),clearTimeout(zT),zT=Gn.setTimeout(()=>{v_=void 0,g_=void 0},F9)}}function Z9(e){try{return e.target}catch{return null}}let Ym;function HD(e){const t="history";Ws(t,e),Gs(t,Y9)}function Y9(){if(Gn.addEventListener("popstate",()=>{const t=Gn.location.href,n=Ym;if(Ym=t,n===t)return;li("history",{from:n,to:t})}),!v9())return;function e(t){return function(...n){const i=n.length>2?n[2]:void 0;if(i){const r=Ym,a=W9(String(i));if(Ym=a,r===a)return t.apply(this,n);li("history",{from:r,to:a})}return t.apply(this,n)}}Rr(Gn.history,"pushState",e),Rr(Gn.history,"replaceState",e)}function W9(e){try{return new URL(e,Gn.location.origin).toString()}catch{return e}}const yh={};function G9(e){const t=yh[e];if(t)return t;let n=Gn[e];if(f_(n))return yh[e]=n.bind(Gn);const i=Gn.document;if(i&&typeof i.createElement=="function")try{const r=i.createElement("iframe");r.hidden=!0,i.head.appendChild(r);const a=r.contentWindow;a!=null&&a[e]&&(n=a[e]),i.head.removeChild(r)}catch(r){L9&&qe.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,r)}return n&&(yh[e]=n.bind(Gn))}function K9(e){yh[e]=void 0}const hd="__sentry_xhr_v3__";function X9(e){const t="xhr";Ws(t,e),Gs(t,Q9)}function Q9(){if(!Gn.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,i){const r=new Error,a=Ii()*1e3,l=Eo(i[0])?i[0].toUpperCase():void 0,u=J9(i[1]);if(!l||!u)return t.apply(n,i);n[hd]={method:l,url:u,request_headers:{}},l==="POST"&&u.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const f=()=>{const m=n[hd];if(m&&n.readyState===4){try{m.status_code=n.status}catch{}const h={endTimestamp:Ii()*1e3,startTimestamp:a,xhr:n,virtualError:r};li("xhr",h)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(m,h,g){return f(),m.apply(h,g)}}):n.addEventListener("readystatechange",f),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(m,h,g){const[b,_]=g,S=h[hd];return S&&Eo(b)&&Eo(_)&&(S.request_headers[b.toLowerCase()]=_),m.apply(h,g)}}),t.apply(n,i)}}),e.send=new Proxy(e.send,{apply(t,n,i){const r=n[hd];if(!r)return t.apply(n,i);i[0]!==void 0&&(r.body=i[0]);const a={startTimestamp:Ii()*1e3,xhr:n};return li("xhr",a),t.apply(n,i)}})}function J9(e){if(Eo(e))return e;try{return e.toString()}catch{}}const e8=40;function t8(e,t=G9("fetch")){let n=0,i=0;async function r(a){const l=a.body.length;n+=l,i++;const u={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{const f=await t(e.url,u);return{statusCode:f.status,headers:{"x-sentry-rate-limits":f.headers.get("X-Sentry-Rate-Limits"),"retry-after":f.headers.get("Retry-After")}}}catch(f){throw K9("fetch"),f}finally{n-=l,i--}}return RV(e,r,OS(e.bufferSize||e8))}const Tp=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,n8=30,r8=50;function y_(e,t,n,i){const r={filename:e,function:t==="<anonymous>"?Cs:t,in_app:!0};return n!==void 0&&(r.lineno=n),i!==void 0&&(r.colno=i),r}const i8=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,o8=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a8=/\((\S*)(?::(\d+))(?::(\d+))\)/,s8=/at (.+?) ?\(data:(.+?),/,l8=e=>{const t=e.match(s8);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=i8.exec(e);if(n){const[,r,a,l]=n;return y_(r,Cs,+a,+l)}const i=o8.exec(e);if(i){if(i[2]&&i[2].indexOf("eval")===0){const u=a8.exec(i[2]);u&&(i[2]=u[1],i[3]=u[2],i[4]=u[3])}const[a,l]=qD(i[1]||Cs,i[2]);return y_(l,a,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}},c8=[n8,l8],u8=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,d8=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,f8=e=>{const t=u8.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=d8.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let i=t[3],r=t[1]||Cs;return[r,i]=qD(r,i),y_(i,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},m8=[r8,f8],h8=[c8,m8],p8=XN(...h8),qD=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,i=e.indexOf("safari-web-extension")!==-1;return n||i?[e.indexOf("@")!==-1?e.split("@")[0]:Cs,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Wm=1024,g8="Breadcrumbs",v8=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:g8,setup(n){t.console&&zD(S8(n)),t.dom&&B9(_8(n,t.dom)),t.xhr&&X9(w8(n)),t.fetch&&_9(x8(n)),t.history&&HD(E8(n)),t.sentry&&n.on("beforeSendEvent",b8(n))}}},y8=v8;function b8(e){return function(n){An()===e&&js({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:os(n)},{event:n})}}function _8(e,t){return function(i){if(An()!==e)return;let r,a,l=typeof t=="object"?t.serializeAttribute:void 0,u=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;u&&u>Wm&&(Tp&&qe.warn(`\`dom.maxStringLength\` cannot exceed ${Wm}, but a value of ${u} was configured. Sentry will use ${Wm} instead.`),u=Wm),typeof l=="string"&&(l=[l]);try{const m=i.event,h=k8(m)?m.target:m;r=nD(h,{keyAttrs:l,maxStringLength:u}),a=CB(h)}catch{r="<unknown>"}if(r.length===0)return;const f={category:`ui.${i.name}`,message:r};a&&(f.data={"ui.component_name":a}),js(f,{event:i.event,name:i.name,global:i.global})}}function S8(e){return function(n){if(An()!==e)return;const i={category:"console",data:{arguments:n.args,logger:"console"},level:i9(n.level),message:QO(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)i.message=`Assertion failed: ${QO(n.args.slice(1)," ")||"console.assert"}`,i.data.arguments=n.args.slice(1);else return;js(i,{input:n.args,level:n.level})}}function w8(e){return function(n){if(An()!==e)return;const{startTimestamp:i,endTimestamp:r}=n,a=n.xhr[hd];if(!i||!r||!a)return;const{method:l,url:u,status_code:f,body:m}=a,h={method:l,url:u,status_code:f},g={xhr:n.xhr,input:m,startTimestamp:i,endTimestamp:r},b={category:"xhr",data:h,type:"http",level:FD(f)};e.emit("beforeOutgoingRequestBreadcrumb",b,g),js(b,g)}}function x8(e){return function(n){if(An()!==e)return;const{startTimestamp:i,endTimestamp:r}=n;
80if(r&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const a=n.fetchData,l={data:n.error,input:n.args,startTimestamp:i,endTimestamp:r},u={category:"fetch",data:a,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",u,l),js(u,l)}else{const a=n.response,l={...n.fetchData,status_code:a==null?void 0:a.status};n.fetchData.request_body_size,n.fetchData.response_body_size,a==null||a.status;const u={input:n.args,response:a,startTimestamp:i,endTimestamp:r},f={category:"fetch",data:l,type:"http",level:FD(l.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",f,u),js(f,u)}}}function E8(e){return function(n){if(An()!==e)return;let i=n.from,r=n.to;const a=rb(tn.location.href);let l=i?rb(i):void 0;const u=rb(r);l!=null&&l.path||(l=a),a.protocol===u.protocol&&a.host===u.host&&(r=u.relative),a.protocol===l.protocol&&a.host===l.host&&(i=l.relative),js({category:"navigation",data:{from:i,to:r}})}}function k8(e){return!!e&&!!e.target}const O8=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],T8="BrowserApiErrors",R8=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:T8,setupOnce(){t.setTimeout&&Rr(tn,"setTimeout",LT),t.setInterval&&Rr(tn,"setInterval",LT),t.requestAnimationFrame&&Rr(tn,"requestAnimationFrame",N8),t.XMLHttpRequest&&"XMLHttpRequest"in tn&&Rr(XMLHttpRequest.prototype,"send",D8);const n=t.eventTarget;n&&(Array.isArray(n)?n:O8).forEach(r=>C8(r,t))}}},$8=R8;function LT(e){return function(...t){const n=t[0];return t[0]=Ec(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${ka(e)}`}}),e.apply(this,t)}}function N8(e){return function(t){return e.apply(this,[Ec(t,{mechanism:{data:{handler:ka(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function D8(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&Rr(n,r,function(a){const l={mechanism:{data:{handler:ka(a)},handled:!1,type:`auto.browser.browserapierrors.xhr.${r}`}},u=yS(a);return u&&(l.mechanism.data.handler=ka(u)),Ec(a,l)})}),e.apply(this,t)}}function C8(e,t){var r,a;const i=(r=tn[e])==null?void 0:r.prototype;(a=i==null?void 0:i.hasOwnProperty)!=null&&a.call(i,"addEventListener")&&(Rr(i,"addEventListener",function(l){return function(u,f,m){try{A8(f)&&(f.handleEvent=Ec(f.handleEvent,{mechanism:{data:{handler:ka(f),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&j8(this,u,f),l.apply(this,[u,Ec(f,{mechanism:{data:{handler:ka(f),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),m])}}),Rr(i,"removeEventListener",function(l){return function(u,f,m){try{const h=f.__sentry_wrapped__;h&&l.call(this,u,h,m)}catch{}return l.call(this,u,f,m)}}))}function A8(e){return typeof e.handleEvent=="function"}function j8(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const M8=()=>({name:"BrowserSession",setupOnce(){if(typeof tn.document>"u"){Tp&&qe.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}vT({ignoreDuration:!0}),yT(),HD(({from:e,to:t})=>{e!==void 0&&e!==t&&(vT({ignoreDuration:!0}),yT())})}}),I8="GlobalHandlers",P8=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:I8,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(U8(n),FT("onerror")),t.onunhandledrejection&&(L8(n),FT("onunhandledrejection"))}}},z8=P8;function U8(e){SB(t=>{const{stackParser:n,attachStacktrace:i}=ZD();if(An()!==e||BD())return;const{msg:r,url:a,line:l,column:u,error:f}=t,m=V8($S(n,f||r,void 0,i,!1),a,l,u);m.level="error",ED(m,{originalException:f,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function L8(e){xB(t=>{const{stackParser:n,attachStacktrace:i}=ZD();if(An()!==e||BD())return;const r=F8(t),a=Gd(r)?B8(r):$S(n,r,void 0,i,!0);a.level="error",ED(a,{originalException:r,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function F8(e){if(Gd(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function B8(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function V8(e,t,n,i){const r=e.exception=e.exception||{},a=r.values=r.values||[],l=a[0]=a[0]||{},u=l.stacktrace=l.stacktrace||{},f=u.frames=u.frames||[],m=i,h=n,g=H8(t)??vS();return f.length===0&&f.push({colno:m,filename:g,function:Cs,in_app:!0,lineno:h}),e}function FT(e){Tp&&qe.log(`Global Handler attached: ${e}`)}function ZD(){const e=An();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function H8(e){if(!(!Eo(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;
80]+)/),n=t?t[1]:"text/javascript",i=e.includes("base64,");return`<data:${n}${i?",base64":""}>`}return e}}const q8=()=>({name:"HttpContext",preprocessEvent(e){var i;if(!tn.navigator&&!tn.location&&!tn.document)return;const t=O9(),n={...t.headers,...(i=e.request)==null?void 0:i.headers};e.request={...t,...e.request,headers:n}}}),Z8="cause",Y8=5,W8="LinkedErrors",G8=(e={})=>{const t=e.limit||Y8,n=e.key||Z8;return{name:W8,preprocessEvent(i,r,a){const l=a.getOptions();n9(TS,l.stackParser,n,t,i,r)}}},K8=G8;function X8(){return Q8()?(Tp&&Ys(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Q8(){var a;if(typeof tn.window>"u")return!1;const e=tn;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((a=t==null?void 0:t.runtime)!=null&&a.id))return!1;const n=vS(),i=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(tn===tn.top&&i.some(l=>n.startsWith(`${l}://`)))}function J8(e){return[WV(),HV(),$8(),y8(),z8(),K8(),s9(),q8(),M8()]}function eH(e={}){const t=!e.skipBrowserExtensionCheck&&X8();let n=e.defaultIntegrations==null?J8():e.defaultIntegrations;const i={...e,enabled:t?!1:e.enabled,stackParser:bB(e.stackParser||p8),integrations:uV({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||t8};return zV(z9,i)}function tH(e){const t={...e};return PD(t,"react"),rV("react",{version:k.version}),eH(t)}function YD(e,t){return function(){return e.apply(t,arguments)}}const{toString:nH}=Object.prototype,{getPrototypeOf:NS}=Object,{iterator:Rp,toStringTag:WD}=Symbol,$p=(e=>t=>{const n=nH.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),gi=e=>(e=e.toLowerCase(),t=>$p(t)===e),Np=e=>t=>typeof t===e,{isArray:Fc}=Array,kc=Np("undefined");function ef(e){return e!==null&&!kc(e)&&e.constructor!==null&&!kc(e.constructor)&&dr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const GD=gi("ArrayBuffer");function rH(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&GD(e.buffer),t}const iH=Np("string"),dr=Np("function"),KD=Np("number"),tf=e=>e!==null&&typeof e=="object",oH=e=>e===!0||e===!1,bh=e=>{if($p(e)!=="object")return!1;const t=NS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(WD in e)&&!(Rp in e)},aH=e=>{if(!tf(e)||ef(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},sH=gi("Date"),lH=gi("File"),cH=gi("Blob"),uH=gi("FileList"),dH=e=>tf(e)&&dr(e.pipe),fH=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||dr(e.append)&&((t=$p(e))==="formdata"||t==="object"&&dr(e.toString)&&e.toString()==="[object FormData]"))},mH=gi("URLSearchParams"),[hH,pH,gH,vH]=["ReadableStream","Request","Response","Headers"].map(gi),yH=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,r;if(typeof e!="object"&&(e=[e]),Fc(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{if(ef(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),l=a.length;let u;for(i=0;i<l;
80i++)u=a[i],t.call(null,e[u],u,e)}}function XD(e,t){if(ef(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i=n.length,r;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const ls=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,QD=e=>!kc(e)&&e!==ls;function b_(){const{caseless:e,skipUndefined:t}=QD(this)&&this||{},n={},i=(r,a)=>{const l=e&&XD(n,a)||a;bh(n[l])&&bh(r)?n[l]=b_(n[l],r):bh(r)?n[l]=b_({},r):Fc(r)?n[l]=r.slice():(!t||!kc(r))&&(n[l]=r)};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&nf(arguments[r],i);return n}const bH=(e,t,n,{allOwnKeys:i}={})=>(nf(t,(r,a)=>{n&&dr(r)?e[a]=YD(r,n):e[a]=r},{allOwnKeys:i}),e),_H=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),SH=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wH=(e,t,n,i)=>{let r,a,l;const u={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)l=r[a],(!i||i(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&NS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},xH=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},EH=e=>{if(!e)return null;if(Fc(e))return e;let t=e.length;if(!KD(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},kH=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&NS(Uint8Array)),OH=(e,t)=>{const i=(e&&e[Rp]).call(e);let r;for(;(r=i.next())&&!r.done;){const a=r.value;t.call(e,a[0],a[1])}},TH=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},RH=gi("HTMLFormElement"),$H=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),BT=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),NH=gi("RegExp"),JD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};nf(n,(r,a)=>{let l;(l=t(r,a,e))!==!1&&(i[a]=l||r)}),Object.defineProperties(e,i)},DH=e=>{JD(e,(t,n)=>{if(dr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];
80if(dr(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},CH=(e,t)=>{const n={},i=r=>{r.forEach(a=>{n[a]=!0})};return Fc(e)?i(e):i(String(e).split(t)),n},AH=()=>{},jH=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function MH(e){return!!(e&&dr(e.append)&&e[WD]==="FormData"&&e[Rp])}const IH=e=>{const t=new Array(10),n=(i,r)=>{if(tf(i)){if(t.indexOf(i)>=0)return;if(ef(i))return i;if(!("toJSON"in i)){t[r]=i;const a=Fc(i)?[]:{};return nf(i,(l,u)=>{const f=n(l,r+1);!kc(f)&&(a[u]=f)}),t[r]=void 0,a}}return i};return n(e,0)},PH=gi("AsyncFunction"),zH=e=>e&&(tf(e)||dr(e))&&dr(e.then)&&dr(e.catch),eC=((e,t)=>e?setImmediate:t?((n,i)=>(ls.addEventListener("message",({source:r,data:a})=>{r===ls&&a===n&&i.length&&i.shift()()},!1),r=>{i.push(r),ls.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",dr(ls.postMessage)),UH=typeof queueMicrotask<"u"?queueMicrotask.bind(ls):typeof process<"u"&&process.nextTick||eC,LH=e=>e!=null&&dr(e[Rp]),se={isArray:Fc,isArrayBuffer:GD,isBuffer:ef,isFormData:fH,isArrayBufferView:rH,isString:iH,isNumber:KD,isBoolean:oH,isObject:tf,isPlainObject:bh,isEmptyObject:aH,isReadableStream:hH,isRequest:pH,isResponse:gH,isHeaders:vH,isUndefined:kc,isDate:sH,isFile:lH,isBlob:cH,isRegExp:NH,isFunction:dr,isStream:dH,isURLSearchParams:mH,isTypedArray:kH,isFileList:uH,forEach:nf,merge:b_,extend:bH,trim:yH,stripBOM:_H,inherits:SH,toFlatObject:wH,kindOf:$p,kindOfTest:gi,endsWith:xH,toArray:EH,forEachEntry:OH,matchAll:TH,isHTMLForm:RH,hasOwnProperty:BT,hasOwnProp:BT,reduceDescriptors:JD,freezeMethods:DH,toObjectSet:CH,toCamelCase:$H,noop:AH,toFiniteNumber:jH,findKey:XD,global:ls,isContextDefined:QD,isSpecCompliantForm:MH,toJSONObject:IH,isAsyncFn:PH,isThenable:zH,setImmediate:eC,asap:UH,isIterable:LH};function tt(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}se.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:se.toJSONObject(this.config),code:this.code,status:this.status}}});const tC=tt.prototype,nC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{nC[e]={value:e}});Object.defineProperties(tt,nC);Object.defineProperty(tC,"isAxiosError",{value:!0});tt.from=(e,t,n,i,r,a)=>{const l=Object.create(tC);se.toFlatObject(e,l,function(h){return h!==Error.prototype},m=>m!=="isAxiosError");const u=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return tt.call(l,u,f,n,i,r),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",a&&Object.assign(l,a),l};const FH=null;function __(e){return se.isPlainObject(e)||se.isArray(e)}function rC(e){return se.endsWith(e,"[]")?e.slice(0,-2):e}function VT(e,t,n){return e?e.concat(t).map(function(r,a){return r=rC(r),!n&&a?"["+r+"]":r}).join(n?".":""):t}function BH(e){return se.isArray(e)&&!e.some(__)}const VH=se.toFlatObject(se,{},null,function(t){return/^is[A-Z]/.test(t)});function Dp(e,t,n){if(!se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,x){return!se.isUndefined(x[w])});const i=n.metaTokens,r=n.visitor||h,a=n.dots,l=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&se.isSpecCompliantForm(t);if(!se.isFunction(r))throw new TypeError("visitor must be a function");function m(S){if(S===null)return"";if(se.isDate(S))return S.toISOString();if(se.isBoolean(S))return S.toString();if(!f&&se.isBlob(S))throw new tt("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(S)||se.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function h(S,w,x){let E=S;if(S&&!x&&typeof S=="object"){if(se.endsWith(w,"{}"))w=i?w:w.slice(0,-2),S=JSON.stringify(S);else if(se.isArray(S)&&BH(S)||(se.isFileList(S)||se.endsWith(w,"[]"))&&(E=se.toArray(S)))return w=rC(w),E.forEac
vendor: 10,633 bytes, lines 80-82
80h(function(R,$){!(se.isUndefined(R)||R===null)&&t.append(l===!0?VT([w],$,a):l===null?w:w+"[]",m(R))}),!1}return __(S)?!0:(t.append(VT(x,w,a),m(S)),!1)}const g=[],b=Object.assign(VH,{defaultVisitor:h,convertValue:m,isVisitable:__});function _(S,w){if(!se.isUndefined(S)){if(g.indexOf(S)!==-1)throw Error("Circular reference detected in "+w.join("."));g.push(S),se.forEach(S,function(E,O){(!(se.isUndefined(E)||E===null)&&r.call(t,E,se.isString(O)?O.trim():O,w,b))===!0&&_(E,w?w.concat(O):[O])}),g.pop()}}if(!se.isObject(e))throw new TypeError("data must be an object");return _(e),t}function HT(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function DS(e,t){this._pairs=[],e&&Dp(e,this,t)}const iC=DS.prototype;iC.append=function(t,n){this._pairs.push([t,n])};iC.toString=function(t){const n=t?function(i){return t.call(this,i,HT)}:HT;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function HH(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function oC(e,t,n){if(!t)return e;const i=n&&n.encode||HH;se.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let a;if(r?a=r(t,n):a=se.isURLSearchParams(t)?t.toString():new DS(t,n).toString(i),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class qT{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){se.forEach(this.handlers,function(i){i!==null&&t(i)})}}const aC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qH=typeof URLSearchParams<"u"?URLSearchParams:DS,ZH=typeof FormData<"u"?FormData:null,YH=typeof Blob<"u"?Blob:null,WH={isBrowser:!0,classes:{URLSearchParams:qH,FormData:ZH,Blob:YH},protocols:["http","https","file","blob","url","data"]},CS=typeof window<"u"&&typeof document<"u",S_=typeof navigator=="object"&&navigator||void 0,GH=CS&&(!S_||["ReactNative","NativeScript","NS"].indexOf(S_.product)<0),KH=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",XH=CS&&window.location.href||"http://localhost",QH=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:CS,hasStandardBrowserEnv:GH,hasStandardBrowserWebWorkerEnv:KH,navigator:S_,origin:XH},Symbol.toStringTag,{value:"Module"})),Un={...QH,...WH};function JH(e,t){return Dp(e,new Un.classes.URLSearchParams,{visitor:function(n,i,r,a){return Un.isNode&&se.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function eq(e){return se.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function tq(e){const t={},n=Object.keys(e);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],t[a]=e[a];return t}function sC(e){function t(n,i,r,a){let l=n[a++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),f=a>=n.length;return l=!l&&se.isArray(r)?r.length:l,f?(se.hasOwnProp(r,l)?r[l]=[r[l],i]:r[l]=i,!u):((!r[l]||!se.isObject(r[l]))&&(r[l]=[]),t(n,i,r[l],a)&&se.isArray(r[l])&&(r[l]=tq(r[l])),!u)}if(se.isFormData(e)&&se.isFunction(e.entries)){const n={};return se.forEachEntry(e,(i,r)=>{t(eq(i),r,n,0)}),n}return null}function nq(e,t,n){if(se.isString(e))try{return(t||JSON.parse)(e),se.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const rf={transitional:aC,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,a=se.isObject(t);if(a&&se.isHTMLForm(t)&&(t=new FormData(t)),se.isFormData(t))return r?JSON.stringify(sC(t)):t;if(se.isArrayBuffer(t)||se.isBuffer(t)||se.isStream(t)||se.isFile(t)||se.isBlob(t)||se.isReadableStream(t))return t;if(se.isArrayBufferView(t))return t.buffer;if(se.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return JH(t,this.formSerializer).toString();if((u=se.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Dp(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||r?(n.setContentType("application/json",!1),nq(t)):t}],transformResponse:[function(t){const n=this.transitional||rf.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(se.isResponse(t)||se.isReadableStream(t))return t;if(t&&se.isString(t)&&(i&&!this.responseType||r)){const l=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(u){if(l)throw u.name==="SyntaxError"?tt.from(u,tt.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Un.classes.FormData,Blob:Un.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],e=>{rf.headers[e]={}});const rq=se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iq=e=>{const t={};let n,i,r;return e&&e.split(`
81`).forEach(function(l){r=l.indexOf(":"),n=l.substring(0,r).trim().toLowerCase(),i=l.substring(r+1).trim(),!(!n||t[n]&&rq[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},ZT=Symbol("internals");function td(e){return e&&String(e).trim().toLowerCase()}function _h(e){return e===!1||e==null?e:se.isArray(e)?e.map(_h):String(e)}function oq(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const aq=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ob(e,t,n,i,r){if(se.isFunction(i))return i.call(this,t,n);if(r&&(t=n),!!se.isString(t)){if(se.isString(i))return t.indexOf(i)!==-1;if(se.isRegExp(i))return i.test(t)}}function sq(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function lq(e,t){const n=se.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(r,a,l){return this[i].call(this,t,r,a,l)},configurable:!0})})}let fr=class{constructor(t){t&&this.set(t)}set(t,n,i){const r=this;function a(u,f,m){const h=td(f);if(!h)throw new Error("header name must be a non-empty string");const g=se.findKey(r,h);(!g||r[g]===void 0||m===!0||m===void 0&&r[g]!==!1)&&(r[g||f]=_h(u))}const l=(u,f)=>se.forEach(u,(m,h)=>a(m,h,f));if(se.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(se.isString(t)&&(t=t.trim())&&!aq(t))l(iq(t),n);else if(se.isObject(t)&&se.isIterable(t)){let u={},f,m;for(const h of t){if(!se.isArray(h))throw TypeError("Object iterator must return a key-value pair");u[m=h[0]]=(f=u[m])?se.isArray(f)?[...f,h[1]]:[f,h[1]]:h[1]}l(u,n)}else t!=null&&a(n,t,i);return this}get(t,n){if(t=td(t),t){const i=se.findKey(this,t);if(i){const r=this[i];if(!n)return r;if(n===!0)return oq(r);if(se.isFunction(n))return n.call(this,r,i);if(se.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=td(t),t){const i=se.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||ob(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let r=!1;function a(l){if(l=td(l),l){const u=se.findKey(i,l);u&&(!n||ob(i,i[u],u,n))&&(delete i[u],r=!0)}}return se.isArray(t)?t.forEach(a):a(t),r}clear(t){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const a=n[i];(!t||ob(this,this[a],a,t,!0))&&(delete this[a],r=!0)}return r}normalize(t){const n=this,i={};return se.forEach(this,(r,a)=>{const l=se.findKey(i,a);if(l){n[l]=_h(r),delete n[a];return}const u=t?sq(a):String(a).trim();u!==a&&delete n[a],n[u]=_h(r),i[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return se.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=t&&se.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
82`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(r=>i.set(r)),i}static accessor(t){const i=(this[ZT]=this[ZT]={accessors:{}}).accessors,r=this.prototype;function a(l){const u=td(l);i[u]||(lq(r,l),i[u]=!0)}return se.isArray(t)?t.forEach(a):a(t),this}};fr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);se.reduceDescriptors(fr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});se.freezeMethods(fr);function ab(e,t){const n=this||rf,i=t||n,r=fr.from(i.headers);let a=i.data;return se.forEach(e,function(u){a=u.call(n,a,r.normalize(),t?t.status:void 0)}),r.normalize(),a}function lC(e){return!!(e&&e.__CANCEL__)}function Bc(e,t,n){tt.call(this,e??"canceled",tt.ERR_CANCELED,t,n),this.name="CanceledError"}se.inherits(Bc,tt,{__CANCEL__:!0});function cC(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new tt("Request failed with status code "+n.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function cq(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uq(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r=0,a=0,l;return t=t!==void 0?t:1e3,function(f){const m=Date.now(),h=i[a];l||(l=m),n[r]=f,i[r]=m;let g=a,b=0;for(;g!==r;)b+=n[g++],g=g%e;if(r=(r+1)%e,r===a&&(a=(a+1)%e),m-l<t)return;const _=h&&m-h;return _?Math.round(b*1e3/_):void 0}}function dq(e,t){let n=0,i=1e3/t,r,a;const l=(m,h=Date.now())=>{n=h,r=null,a&&(clearTimeout(a),a=null),e(...m)};return[(...m)=>{const h=Date.now(),g=h-n;g>=i?l(m,h):(r=m,a||(a=setTimeout(()=>{a=null,l(r)},i-g)))},()=>r&&l(r)]}const zh=(e,t,n=3)=>{let i=0;const r=uq(50,250);return dq(a=>{const l=a.loaded,u=a.lengthComputable?a.total:void 0,f=l-i,m=r(f),h=l<=u;i=l;const g={loaded:l,total:u,progress:u?l/u:void 0,bytes:f,rate:m||void 0,estimated:m&&u&&h?(u-l)/m:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(g)},n)},YT=(e,t)=>
82{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},WT=e=>(...t)=>se.asap(()=>e(...t)),fq=Un.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Un.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Un.origin),Un.navigator&&/(msie|trident)/i.test(Un.navigator.userAgent)):()=>!0,mq=Un.hasStandardBrowserEnv?{write(e,t,n,i,r,a){const l=[e+"="+encodeURIComponent(t)];se.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),se.isString(i)&&l.push("path="+i),se.isString(r)&&l.push("domain="+r),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hq(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pq(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uC(e,t,n){let i=!hq(t);return e&&(i||n==!1)?pq(e,t):t}const GT=e=>e instanceof fr?{...e}:e;function Ms(e,t){t=t||{};const n={};function i(m,h,g,b){return se.isPlainObject(m)&&se.isPlainObject(h)?se.merge.call({caseless:b},m,h):se.isPlainObject(h)?se.merge({},h):se.isArray(h)?h.slice():h}function r(m,h,g,b){if(se.isUndefined(h)){if(!se.isUndefined(m))return i(void 0,m,g,b)}else return i(m,h,g,b)}function a(m,h){if(!se.isUndefined(h))return i(void 0,h)}function l(m,h){if(se.isUndefined(h)){if(!se.isUndefined(m))return i(void 0,m)}else return i(void 0,h)}function u(m,h,g){if(g in t)return i(m,h);if(g in e)return i(void 0,m)}const f={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(m,h,g)=>r(GT(m),GT(h),g,!0)};return se.forEach(Object.keys({...e,...t}),function(h){const g=f[h]||r,b=g(e[h],t[h],h);se.isUndefined(b)&&g!==u||(n[h]=b)}),n}const dC=e=>{const t=Ms({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:a,headers:l,auth:u}=t;if(t.headers=l=fr.from(l),t.url=oC(uC(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),se.isFormData(n)){if(Un.hasStandardBrowserEnv||Un.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(se.isFunction(n.getHeaders)){const f=n.getHeaders(),m=["content-type","content-length"];Object.entries(f).forEach(([h,g])=>{m.includes(h.toLowerCase())&&l.set(h,g)})}}if(Un.hasStandardBrowserEnv&&(i&&se.isFunction(i)&&(i=i(t)),i||i!==!1&&fq(t.url))){const f=r&&a&&mq.read(a);f&&l.set(r,f)}return t},gq=typeof XMLHttpRequest<"u",vq=gq&&function(e){return new Promise(function(n,i){const r=dC(e);let a=r.data;const l=fr.from(r.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:m}=r,h,g,b,_,S;function w(){_&&_(),S&&S(),r.cancelToken&&r.cancelToken.unsubscribe(h),r.signal&&r.signal.removeEventListener("abort",h)}let x=new XMLHttpRequest;x.open(r.method.toUpperCase(),r.url,!0),x.timeout=r.timeout;function E(){if(!x)return;const R=fr.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),N={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:R,config:e,request:x};cC(function(C){n(C),w()},function(C){i(C),w()},N),x=null}"onloadend"in x?x.onloadend=E:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(E)},x.onabort=function(){x&&(i(new tt("Request aborted",tt.ECONNABORTED,e,x)),x=null)},x.onerror=function($){const N=$&&$.message?$.message:"Network Error",M=new tt(N,tt.ERR_NETWORK,e,x);M.event=$||null,i(M),x=null},x.ontimeout=function(){let $=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const N=r.transitional||aC;
82r.timeoutErrorMessage&&($=r.timeoutErrorMessage),i(new tt($,N.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,e,x)),x=null},a===void 0&&l.setContentType(null),"setRequestHeader"in x&&se.forEach(l.toJSON(),function($,N){x.setRequestHeader(N,$)}),se.isUndefined(r.withCredentials)||(x.withCredentials=!!r.withCredentials),u&&u!=="json"&&(x.responseType=r.responseType),m&&([b,S]=zh(m,!0),x.addEventListener("progress",b)),f&&x.upload&&([g,_]=zh(f),x.upload.addEventListener("progress",g),x.upload.addEventListener("loadend",_)),(r.cancelToken||r.signal)&&(h=R=>{x&&(i(!R||R.type?new Bc(null,e,x):R),x.abort(),x=null)},r.cancelToken&&r.cancelToken.subscribe(h),r.signal&&(r.signal.aborted?h():r.signal.addEventListener("abort",h)));const O=cq(r.url);if(O&&Un.protocols.indexOf(O)===-1){i(new tt("Unsupported protocol "+O+":",tt.ERR_BAD_REQUEST,e));return}x.send(a||null)})},yq=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,r;const a=function(m){if(!r){r=!0,u();const h=m instanceof Error?m:this.reason;i.abort(h instanceof tt?h:new Bc(h instanceof Error?h.message:h))}};let l=t&&setTimeout(()=>{l=null,a(new tt(`timeout ${t} of ms exceeded`,tt.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(m=>{m.unsubscribe?m.unsubscribe(a):m.removeEventListener("abort",a)}),e=null)};e.forEach(m=>m.addEventListener("abort",a));const{signal:f}=i;return f.unsubscribe=()=>se.asap(u),f}},bq=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,r;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},_q=async function*(e,t){for await(const n of Sq(e))yield*bq(n,t)},Sq=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},KT=(e,t,n,i)=>{const r=_q(e,t);let a=0,l,u=f=>{l||(l=!0,i&&i(f))};return new ReadableStream({async pull(f){try{const{done:m,value:h}=await r.next();if(m){u(),f.close();return}let g=h.byteLength;if(n){let b=a+=g;n(b)}f.enqueue(new Uint8Array(h))}catch(m){throw u(m),m}},cancel(f){return u(f),r.return()}},{highWaterMark:2})},XT=64*1024,{isFunction:Gm}=se,wq=(({Request:e,Response:t})=>({Request:e,Response:t}))(se.global),{ReadableStream:QT,TextEncoder:JT}=se.global,eR=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xq=e=>{e=se.merge.call({skipUndefined:!0},wq,e);const{fetch:t,Request:n,Response:i}=e,r=t?Gm(t):typeof fetch=="function",a=Gm(n),l=Gm(i);if(!r)return!1;const u=r&&Gm(QT),f=r&&(typeof JT=="function"?(S=>w=>S.encode(w))(new JT):async S=>new Uint8Array(await new n(S).arrayBuffer())),m=a&&u&&eR(()=>{let S=!1;const w=new n(Un.origin,{body:new QT,method:"POST",get duplex(){return S=!0,"half"}}).headers.has("Content-Type");return S&&!w}),h=l&&u&&eR(()=>se.isReadableStream(new i("").body)),g={stream:h&&(S=>S.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!g[S]&&(g[S]=(w,x)=>{let E=w&&w[S];if(E)return E.call(w);throw new tt(`Response type '${S}' is not supported`,tt.ERR_NOT_SUPPORT,x)})});const b=async S=>{if(S==null)return 0;if(se.isBlob(S))return S.size;if(se.isSpecCompliantForm(S))return(await new n(Un.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(se.isArrayBufferView(S)||se.isArrayBuffer(S))return S.byteLength;if(se.isURLSearchParams(S)&&(S=S+""),se.isString(S))return(await f(S)).byteLength},_=async(S,w)=>{const x=se.toFiniteNumber(S.getContentLength());return x??b(w)};return async S=>{let{url:w,method:x,data:E,signal:O,cancelToken:R,timeout:$,onDownloadProgress:N,onUploadProgress:M,responseType:C,headers:I,withCredentials:V="same-origin",fetchOptions:L}=dC(S),K=t||fetch;C=C?(C+"").toLowerCase():"text";let H=yq([O,R&&R.toAbortSignal()],$),F=null;const ae=H&&H.unsubscribe&&(()=>{H.unsubscribe()});let ue;try{if(M&&m&&x!=="get"&&x!=="head"&&(ue=await _(I,E))!==0){let ne=new n(w,{method:"POST",body:E,duplex:"half"}),Z;if(se.isFormData(E)&&(Z=ne.headers.get("content-type"))&&I.setContentType(Z),ne.body){const[X,le]=YT(ue,zh(WT(M)));E=KT(ne.body,XT,X,le)}}se.isString(V)||(V=V?"include":"omit");const j=a&&"credentials"in n.prototype,G={...L,signal:H,method:x.toUpperCase(),headers:I.normalize().toJSON(),body:E,duplex:"half",credentials:j?V:void 0};F=a&&new n(w,G);let B=await(a?K(F,L):K(w,G));const fe=h&&(C==="stream"||C==="response");if(h&&(N||fe&&ae)){const ne={};["status","statusText","headers"].forEach(me=>{ne[me]=B[me]});const Z=se.toFiniteNumber(B.headers.get("content-length")),[X,le]=N&&YT(Z,zh(WT(N),!0))||[];B=new i(KT(B.body,XT,X,()=>{le&&le(),ae&&ae()}),ne)}C=C||"text";let A=await g[se.findKey(g,C)||"text"](B,S);return!fe&&ae&&ae(),await new Promise((ne,Z)=>{cC(ne,Z,{data:A,headers:fr.from(B.headers),status:B.status,statusText:B.statusText,config:S,request:F})})}catch(j){throw ae&&ae(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,S,F),{cause:j.cause||j}):tt.from(j,j&&j.code,S,F)}}},Eq=new Map,fC=e=>{let t=e?e.env:{};const{fetch:n,Request:i,Response:r}=t,a=[i,r,n];let l=a.length,u=l,f,m,h=Eq;for(;u--;)f=a[u],m=h.get(f),m===void 0&&h.set(f,m=u?new Map:xq(t)),h=m;return m};fC();const w_={http:FH,xhr:vq,fetch:{get:fC}};se.forEach(w_,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const tR=e=>`- ${e}`,kq=e=>
vendor: 5,349 bytes, lines 82-85
82se.isFunction(e)||e===null||e===!1,mC={getAdapter:(e,t)=>{e=se.isArray(e)?e:[e];const{length:n}=e;let i,r;const a={};for(let l=0;l<n;l++){i=e[l];let u;if(r=i,!kq(i)&&(r=w_[(u=String(i)).toLowerCase()],r===void 0))throw new tt(`Unknown adapter '${u}'`);if(r&&(se.isFunction(r)||(r=r.get(t))))break;a[u||"#"+l]=r}if(!r){const l=Object.entries(a).map(([f,m])=>`adapter ${f} `+(m===!1?"is not supported by the environment":"is not available in the build"));let u=n?l.length>1?`since :
83`+l.map(tR).join(`
84`):" "+tR(l[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return r},adapters:w_};function sb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bc(null,e)}function nR(e){return sb(e),e.headers=fr.from(e.headers),e.data=ab.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mC.getAdapter(e.adapter||rf.adapter,e)(e).then(function(i){return sb(e),i.data=ab.call(e,e.transformResponse,i),i.headers=fr.from(i.headers),i},function(i){return lC(i)||(sb(e),i&&i.response&&(i.response.data=ab.call(e,e.transformResponse,i.response),i.response.headers=fr.from(i.response.headers))),Promise.reject(i)})}const hC="1.12.2",Cp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cp[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const rR={};Cp.transitional=function(t,n,i){function r(a,l){return"[Axios v"+hC+"] Transitional option '"+a+"'"+l+(i?". "+i:"")}return(a,l,u)=>{if(t===!1)throw new tt(r(l," has been removed"+(n?" in "+n:"")),tt.ERR_DEPRECATED);return n&&!rR[l]&&(rR[l]=!0,console.warn(r(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,l,u):!0}};Cp.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function Oq(e,t,n){if(typeof e!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const a=i[r],l=t[a];if(l){const u=e[a],f=u===void 0||l(u,a,e);if(f!==!0)throw new tt("option "+a+" must be "+f,tt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tt("Unknown option "+a,tt.ERR_BAD_OPTION)}}const Sh={assertOptions:Oq,validators:Cp},Ei=Sh.validators;let Ts=class{constructor(t){this.defaults=t||{},this.interceptors={request:new qT,response:new qT}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const a=r.stack?r.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
85`+a):i.stack=a}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ms(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:a}=n;i!==void 0&&Sh.assertOptions(i,{silentJSONParsing:Ei.transitional(Ei.boolean),forcedJSONParsing:Ei.transitional(Ei.boolean),clarifyTimeoutError:Ei.transitional(Ei.boolean)},!1),r!=null&&(se.isFunction(r)?n.paramsSerializer={serialize:r}:Sh.assertOptions(r,{encode:Ei.function,serialize:Ei.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Sh.assertOptions(n,{baseUrl:Ei.spelling("baseURL"),withXsrfToken:Ei.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=a&&se.merge(a.common,a[n.method]);a&&se.forEach(["delete","get","head","post","put","patch","common"],S=>{delete a[S]}),n.headers=fr.concat(l,a);const u=[];let f=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(f=f&&w.synchronous,u.unshift(w.fulfilled,w.rejected))});const m=[];this.interceptors.response.forEach(function(w){m.push(w.fulfilled,w.rejected)});let h,g=0,b;if(!f){const S=[nR.bind(this),void 0];for(S.unshift(...u),S.push(...m),b=S.length,h=Promise.resolve(n);g<b;)h=h.then(S[g++],S[g++]);return h}b=u.length;let _=n;for(;g<b;){const S=u[g++],w=u[g++];try{_=S(_)}catch(x){w.call(this,x);break}}try{h=nR.call(this,_)}catch(S){return Promise.reject(S)}for(g=0,b=m.length;g<b;)h=h.then(m[g++],m[g++]);return h}getUri(t){t=Ms(this.defaults,t);const n=uC(t.baseURL,t.url,t.allowAbsoluteUrls);return oC(n,t.params,t.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(t){Ts.prototype[t]=function(n,i){return this.request(Ms(i||{},{method:t,url:n,data:(i||{}).data}))}});se.forEach(["post","put","patch"],function(t){function n(i){return function(a,l,u){return this.request(Ms(u||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}Ts.prototype[t]=n(),Ts.prototype[t+"Form"]=n(!0)});let Tq=class pC{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const l=new Promise(u=>{i.subscribe(u),a=u}).then(r);return l.cancel=function(){i.unsubscribe(a)},l},t(function(a,l,u){i.reason||(i.reason=new Bc(a,l,u),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
85subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new pC(function(r){t=r}),cancel:t}}};function Rq(e){return function(n){return e.apply(null,n)}}function $q(e){return se.isObject(e)&&e.isAxiosError===!0}const x_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(x_).forEach(([e,t])=>{x_[t]=e});function gC(e){const t=new Ts(e),n=YD(Ts.prototype.request,t);return se.extend(n,Ts.prototype,t,{allOwnKeys:!0}),se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return gC(Ms(e,r))},n}const Wt=gC(rf);Wt.Axios=Ts;Wt.CanceledError=Bc;Wt.CancelToken=Tq;Wt.isCancel=lC;Wt.VERSION=hC;Wt.toFormData=Dp;Wt.AxiosError=tt;Wt.Cancel=Wt.CanceledError;Wt.all=function(t){return Promise.all(t)};Wt.spread=Rq;Wt.isAxiosError=$q;Wt.mergeConfig=Ms;Wt.AxiosHeaders=fr;Wt.formToJSON=e=>sC(se.isHTMLForm(e)?new FormData(e):e);Wt.getAdapter=mC.getAdapter;Wt.HttpStatusCode=x_;Wt.default=Wt;const{Axios:lue,AxiosError:Nq,CanceledError:cue,isCancel:uue,CancelToken:due,VERSION:fue,all:mue,Cancel:hue,isAxiosError:vC,spread:pue,toFormData:gue,AxiosHeaders:vue,HttpStatusCode:yue,formToJSON:bue,getAdapter:_ue,mergeConfig:Sue}=Wt,Uh={feature:"auth_accounts",http:{exceptionStatusCodes:[500,502,503,504],warningStatusCodes:[401,403],ignoredStatusCodes:[400,404]},sentry:{dropAxiosExceptions:{statusCodes:[401,403]},defaultTags:{domain:"auth",layer:"frontend"}},pii:{maskPatterns:[/pass(word)?/i,/token/i,/secret/i,/api[_-]?key/i,/captcha/i,/otp/i,/credential/i,/session/i]}},Dq=()=>{const e="https://02cee8f72c14aeae0d4e35e62258a27c@o4510023687733248.ingest.us.sentry.io/4510459884208128";try{tH({dsn:e,sendDefaultPii:!1,environment:"production",sampleRate:parseFloat("0.1")||.03,integrations:[g9({levels:["error"]})],enableLogs:!0,tracesSampleRate:parseFloat("0.03")||.1,beforeSend(t,n){var r;const i=n==null?void 0:n.originalException;if(i&&typeof i=="object"&&"message"in i){const a=String(i.message);if(a.includes("chrome-extension://")||a.includes("moz-extension://")||a.includes("safari-extension://"))return null}if(i&&vC(i)){const a=(r=i.response)==null?void 0:r.status;if(a&&(Uh.sentry.dropAxiosExceptions.statusCodes.includes(a)||Uh.http.ignoredStatusCodes.includes(a)))return null}return t},ignoreErrors:[/chrome-extension:/i,/moz-extension:/i,/safari-extension:/i,"ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications","Non-Error promise rejection captured","Script error."],denyUrls:[/extensions\//i,/^chrome:\/\//i,/^chrome-extension:\/\//i,/^moz-extension:\/\//i,/^safari-extension:\/\//i,/google-analytics\.com/i,/googletagmanager\.com/i,/doubleclick\.net/i,/facebook\.net/i]})}catch(t){console.error("Error on initialize observability",t)}};/**
86 * @license lucide-react v0.548.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const Cq=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Aq=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),iR=e=>{const t=Aq(e);return t.charAt(0).toUpperCase()+t.slice(1)},yC=(...e)=>
vendor: 3,942 bytes, lines 90-150
90e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim(),jq=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
91 * @license lucide-react v0.548.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */var Mq={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"};/**
96 * @license lucide-react v0.548.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const Iq=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:r="",children:a,iconNode:l,...u},f)=>k.createElement("svg",{ref:f,...Mq,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:yC("lucide",r),...!a&&!jq(u)&&{"aria-hidden":"true"},...u},[...l.map(([m,h])=>k.createElement(m,h)),...Array.isArray(a)?a:[a]]));/**
101 * @license lucide-react v0.548.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const Gt=(e,t)=>{const n=k.forwardRef(({className:i,...r},a)=>k.createElement(Iq,{ref:a,iconNode:t,className:yC(`lucide-${Cq(iR(e))}`,`lucide-${e}`,i),...r}));return n.displayName=iR(e),n};/**
106 * @license lucide-react v0.548.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const Pq=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Do=Gt("arrow-left",Pq);/**
111 * @license lucide-react v0.548.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const zq=[["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"}]],E_=Gt("calendar",zq);/**
116 * @license lucide-react v0.548.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const Uq=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Lh=Gt("check",Uq);/**
121 * @license lucide-react v0.548.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const Lq=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ap=Gt("chevron-down",Lq);/**
126 * @license lucide-react v0.548.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const Fq=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Bq=Gt("chevron-left",Fq);/**
131 * @license lucide-react v0.548.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const Vq=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Hq=Gt("chevron-right",Vq);/**
136 * @license lucide-react v0.548.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const qq=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Zq=Gt("chevron-up",qq);/**
141 * @license lucide-react v0.548.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const Yq=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Wq=Gt("circle-check-big",Yq);/**
146 * @license lucide-react v0.548.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const Gq=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],AS=Gt("circle-check",Gq);
150/**
151 * @license lucide-react v0.548.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const Kq=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Xq=Gt("circle",Kq);/**
156 * @license lucide-react v0.548.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const Qq=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Jq=Gt("eye-off",Qq);/**
161 * @license lucide-react v0.548.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const eZ=[["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"}]],tZ=Gt("eye",eZ);/**
166 * @license lucide-react v0.548.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const nZ=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],rZ=Gt("info",nZ);/**
171 * @license lucide-react v0.548.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const iZ=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],of=Gt("loader-circle",iZ);/**
176 * @license lucide-react v0.548.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const oZ=[["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"}]],aZ=Gt("lock",oZ);/**
181 * @license lucide-react v0.548.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const sZ=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],lZ=Gt("mail",sZ);/**
186 * @license lucide-react v0.548.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const cZ=[["path",{d:"M5 12h14",key:"1ays0h"}]],uZ=Gt("minus",cZ);/**
191 * @license lucide-react v0.548.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const dZ=[["path",{d:"m14.5 12.5-5-5",key:"1jahn5"}],["path",{d:"m9.5 12.5 5-5",key:"1k2t7b"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]],bC=Gt("monitor-x",dZ);/**
196 * @license lucide-react v0.548.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const fZ=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Nd=Gt("octagon-x",fZ);/**
201 * @license lucide-react v0.548.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const mZ=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],_C=Gt("search",mZ);/**
206 * @license lucide-react v0.548.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const hZ=[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}
vendor: 4,272 bytes, lines 210-215
210]],pZ=Gt("user-plus",hZ);/**
211 * @license lucide-react v0.548.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const gZ=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],SC=Gt("x",gZ);function oR(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Is(...e){return t=>{let n=!1;const i=e.map(r=>{const a=oR(r,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let r=0;r<i.length;r++){const a=i[r];typeof a=="function"?a():oR(e[r],null)}}}}function Pt(...e){return k.useCallback(Is(...e),e)}function Ps(e){const t=yZ(e),n=k.forwardRef((i,r)=>{const{children:a,...l}=i,u=k.Children.toArray(a),f=u.find(_Z);if(f){const m=f.props.children,h=u.map(g=>g===f?k.Children.count(m)>1?k.Children.only(null):k.isValidElement(m)?m.props.children:null:g);return v.jsx(t,{...l,ref:r,children:k.isValidElement(m)?k.cloneElement(m,void 0,h):null})}return v.jsx(t,{...l,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}var vZ=Ps("Slot");function yZ(e){const t=k.forwardRef((n,i)=>{const{children:r,...a}=n;if(k.isValidElement(r)){const l=wZ(r),u=SZ(a,r.props);return r.type!==k.Fragment&&(u.ref=i?Is(i,l):l),k.cloneElement(r,u)}return k.Children.count(r)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bZ=Symbol("radix.slottable");function _Z(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bZ}function SZ(e,t){const n={...t};for(const i in t){const r=e[i],a=t[i];/^on[A-Z]/.test(i)?r&&a?n[i]=(...u)=>{const f=a(...u);return r(...u),f}:r&&(n[i]=r):i==="style"?n[i]={...r,...a}:i==="className"&&(n[i]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function wZ(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function wC(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=wC(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function xC(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=wC(e))&&(i&&(i+=" "),i+=t);return i}const aR=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,sR=xC,Fi=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return sR(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:a}=t,l=Object.keys(r).map(m=>{const h=n==null?void 0:n[m],g=a==null?void 0:a[m];if(h===null)return null;const b=aR(h)||aR(g);return r[m][b]}),u=n&&Object.entries(n).reduce((m,h)=>{let[g,b]=h;return b===void 0||(m[g]=b),m},{}),f=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((m,h)=>{let{class:g,className:b,..._}=h;return Object.entries(_).every(S=>{let[w,x]=S;return Array.isArray(x)?x.includes({...a,...u}[w]):{...a,...u}[w]===x})?[...m,g,b]:m},[]);return sR(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},jS="-",xZ=e=>{const t=kZ(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:l=>{const u=l.split(jS);return u[0]===""&&u.length!==1&&u.shift(),EC(u,t)||EZ(l)},getConflictingClassGroupIds:(l,u)=>{const f=n[l]||[];return u&&i[l]?[...f,...i[l]]:f}}},EC=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),r=i?EC(e.slice(1),i):void 0;if(r)return r;if(t.validators.length===0)return;const a=e.join(jS);return(l=t.validators.find(({validator:u})=>u(a)))==null?void 0:l.classGroupId},lR=/^\[(.+)\]$/,EZ=e=>{if(lR.test(e)){const t=lR.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},kZ=e=>{const{theme:t,classGroups:n}=e,i={nextPart:new Map,validators:[]};for(const r in n)k_(n[r],i,r,t);return i},k_=(e,t,n,i)=>{e.forEach(r=>{if(typeof r=="string"){const a=r===""?t:cR(t,r);a.classGroupId=n;return}if(typeof r=="function"){if(OZ(r)){k_(r(i),t,n,i);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([a,l])=>{k_(l,cR(t,a),n,i)})})},cR=(e,t)=>{let n=e;
215return t.split(jS).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},OZ=e=>e.isThemeGetter,TZ=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const r=(a,l)=>{n.set(a,l),t++,t>e&&(t=0,i=n,n=new Map)};return{get(a){let l=n.get(a);if(l!==void 0)return l;if((l=i.get(a))!==void 0)return r(a,l),l},set(a,l){n.has(a)?n.set(a,l):r(a,l)}}},O_="!",T_=":",RZ=T_.length,$Z=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=r=>{const a=[];let l=0,u=0,f=0,m;for(let S=0;S<r.length;S++){let w=r[S];if(l===0&&u===0){if(w===T_){a.push(r.slice(f,S)),f=S+RZ;continue}if(w==="/"){m=S;continue}}w==="["?l++:w==="]"?l--:w==="("?u++:w===")"&&u--}const h=a.length===0?r:r.substring(f),g=NZ(h),b=g!==h,_=m&&m>f?m-f:void 0;return{modifiers:a,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:_}};if(t){const r=t+T_,a=i;i=l=>l.startsWith(r)?a(l.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const r=i;i=a=>n({className:a,parseClassName:r})}return i},NZ=e=>e.endsWith(O_)?e.substring(0,e.length-1):e.startsWith(O_)?e.substring(1):e,DZ=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const r=[];let a=[];return i.forEach(l=>{l[0]==="["||t[l]?(r.push(...a.sort(),l),a=[]):a.push(l)}),r.push(...a.sort()),r}},CZ=e=>({cache:TZ(e.cacheSize),parseClassName:$Z(e),sortModifiers:DZ(e),...xZ(e)}),AZ=/\s+/,jZ=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r,sortModifiers:a}=t,l=[],u=e.trim().split(AZ);let f="";for(let m=u.length-1;m>=0;m-=1){const h=u[m],{isExternal:g,modifiers:b,hasImportantModifier:_,baseClassName:S,maybePostfixModifierPosition:w}=n(h);if(g){f=h+(f.length>0?" "+f:f);continue}let x=!!w,E=i(x?S.substring(0,w):S);if(!E){if(!x){f=h+(f.length>0?" "+f:f);continue}if(E=i(S),!E){f=h+(f.length>0?" "+f:f);continue}x=!1}const O=a(b).join(":"),R=_?O+O_:O,$=R+E;if(l.includes($))continue;l.push($);const N=r(E,x);for(let M=0;M<N.length;++M){const C=N[M];l.push(R+C)}f=h+(f.length>0?" "+f:f)}return f};function MZ(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=kC(t))&&(i&&(i+=" "),i+=n);return i}const kC=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=kC(e[i]))&&(n&&(n+=" "),n+=t);return n};function IZ(e,...t){let n,i,r,a=l;function l(f){const m=t.reduce((h,g)=>g(h),e());return n=CZ(m),i=n.cache.get,r=n.cache.set,a=u,u(f)}function u(f){const m=i(f);if(m)return m;const h=jZ(f,n);return r(f,h),h}return function(){return a(MZ.apply(null,arguments))}}const pn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},OC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,TC=/^\((?:(\w[\w-]*):)?(.+)\)$/i,PZ=/^\d+\/\d+$/,zZ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,UZ=/\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$/,LZ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,FZ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,BZ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bl=e=>PZ.test(e),ct=e=>!!e&&!Number.isNaN(Number(e)),aa=e=>!!e&&Number.isInteger(Number(e)),lb=e=>e.endsWith("%")&&ct(e.slice(0,-1)),co=e=>zZ.test(e),VZ=()=>!0,HZ=e=>UZ.test(e)&&!LZ.test(e),RC=()=>!1,qZ=e=>FZ.test(e),ZZ=e=>BZ.test(e),YZ=e=>!Ae(e)&&!je(e),WZ=e=>Vc(e,DC,RC),Ae=e=>OC.test(e),rs=e=>Vc(e,CC,HZ),cb=e=>Vc(e,JZ,ct),uR=e=>Vc(e,$C,RC),GZ=e=>Vc(e,NC,ZZ),Km=e=>Vc(e,AC,qZ),je=e=>TC.test(e),nd=e=>Hc(e,CC),KZ=e=>Hc(e,e7),dR=e=>Hc(e,$C),XZ=e=>Hc(e,DC),QZ=e=>Hc(e,NC),Xm=e=>Hc(e,AC,!0),Vc=(e,t,n)=>{const i=OC.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},Hc=(e,t,n=!1)=>{const i=TC.exec(e);return i?i[1]?t(i[1]):n:!1},$C=e=>e==="position"||e==="percentage",NC=e=>e==="image"||e==="url",DC=e=>e==="length"||e==="size"||e==="bg-size",CC=e=>e==="length",JZ=e=>e==="number",e7=e=>e==="family-name",AC=e=>e==="shadow",t7=()=>{const e=pn("color"),t=pn("font"),n=pn("text"),i=pn("font-weight"),r=pn("tracking"),a=pn("leading"),l=pn("breakpoint"),u=pn("container"),f=pn("spacing"),m=pn("radius"),h=pn("shadow"),g=pn("inset-shadow"),b=pn("text-shadow"),_=pn("drop-shadow"),S=pn("blur"),w=pn("perspective"),x=pn("aspect"),E=pn("ease"),O=pn("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...$(),je,Ae],M=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],I=()=>[je,Ae,f],V=()=>[Bl,"full","auto",...I()],L=()=>[aa,"none","subgrid",je,Ae],K=()=>["auto",{span:["full",aa,je,Ae]},aa,je,Ae],H=()=>[aa,"auto",je,Ae],F=()=>["auto","min","max","fr",je,Ae],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...I()],G=()=>[Bl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],B=()=>[e,je,Ae],fe=()=>[...$(),dR,uR,{position:[je,Ae]}],A=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",XZ,WZ,{size:[je,Ae]}],Z=()=>[lb,nd,rs],X=()=>["","none","full",m,je,Ae],le=()=>["",ct,nd,rs],me=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[ct,lb,dR,uR],Ee=()=>["","none",S,je,Ae],Ne=()=>["none",ct,je,Ae],Ie=()=>["none",ct,je,Ae],Ve=()=>[ct,je,Ae],Pe=()=>[Bl,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[co],breakpoint:[co],color:[VZ],container:[co],"drop-shadow":[co],ease:["in","out","in-out"],font:[YZ],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[co],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[co],shadow:[co],spacing:["px",ct],text:[co],"text-shadow":[co],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Bl,Ae,je,x]}
vendor: 5,629 bytes, line 215
215],container:["container"],columns:[{columns:[ct,Ae,je,u]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[aa,"auto",je,Ae]}],basis:[{basis:[Bl,"full","auto",u,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ct,Bl,"auto","initial","none",Ae]}],grow:[{grow:["",ct,je,Ae]}],shrink:[{shrink:["",ct,je,Ae]}],order:[{order:[aa,"first","last","none",je,Ae]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[u,"screen",...G()]}],"min-w":[{"min-w":[u,"screen","none",...G()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,nd,rs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,je,cb]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",lb,Ae]}],"font-family":[{font:[KZ,Ae,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,je,Ae]}],"line-clamp":[{"line-clamp":[ct,"none",je,cb]}],leading:[{leading:[a,...I()]}],"list-image":[{"list-image":["none",je,Ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",je,Ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[ct,"from-font","auto",je,rs]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[ct,"auto",je,Ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",je,Ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",je,Ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:A()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},aa,je,Ae],radial:["",je,Ae],conic:[aa,je,Ae]},QZ,GZ]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:Z()}
215],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}
vendor: 4,065 bytes, line 215
215],"divide-color":[{divide:B()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ct,je,Ae]}],"outline-w":[{outline:["",ct,nd,rs]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",h,Xm,Km]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",g,Xm,Km]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[ct,rs]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",b,Xm,Km]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[ct,je,Ae]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ct]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[je,Ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[ct]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:A()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",je,Ae]}],filter:[{filter:["","none",je,Ae]}],blur:[{blur:Ee()}],brightness:[{brightness:[ct,je,Ae]}],contrast:[{contrast:[ct,je,Ae]}],"drop-shadow":[{"drop-shadow":["","none",_,Xm,Km]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",ct,je,Ae]}],"hue-rotate":[{"hue-rotate":[ct,je,Ae]}],invert:[{invert:["",ct,je,Ae]}],saturate:[{saturate:[ct,je,Ae]}],sepia:[{sepia:["",ct,je,Ae]}],"backdrop-filter":[{"backdrop-filter":["","none",je,Ae]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[ct,je,Ae]}],"backdrop-contrast":[{"backdrop-contrast":[ct,je,Ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ct,je,Ae]}
215],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ct,je,Ae]}],"backdrop-invert":[{"backdrop-invert":["",ct,je,Ae]}],"backdrop-opacity":[{"backdrop-opacity":[ct,je,Ae]}],"backdrop-saturate":[{"backdrop-saturate":[ct,je,Ae]}],"backdrop-sepia":[{"backdrop-sepia":["",ct,je,Ae]}],"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:["","all","colors","opacity","shadow","transform","none",je,Ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ct,"initial",je,Ae]}],ease:[{ease:["linear","initial",E,je,Ae]}],delay:[{delay:[ct,je,Ae]}],animate:[{animate:["none",O,je,Ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,je,Ae]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Ie()}],"scale-x":[{"scale-x":Ie()}],"scale-y":[{"scale-y":Ie()}],"scale-z":[{"scale-z":Ie()}],"scale-3d":["scale-3d"],skew:[{skew:Ve()}],"skew-x":[{"skew-x":Ve()}],"skew-y":[{"skew-y":Ve()}],transform:[{transform:[je,Ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Pe()}],"translate-x":[{"translate-x":Pe()}],"translate-y":[{"translate-y":Pe()}],"translate-z":[{"translate-z":Pe()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",je,Ae]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",je,Ae]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[ct,nd,rs,cb]}],stroke:[{stroke:["none",...B()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},n7=IZ(t7);function ke(...e){return n7(xC(e))}function r7(e,t){function n(r){return r.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const i=r=>n(r.label.toLowerCase()).includes(n(t.toLowerCase()));return t?e.filter(i):e}const Fh=Fi("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-[color,background-color,border-color,box-shadow,width,min-width,max-width,padding] active:opacity-80 disabled:opacity-50 data-[loading=true]:pointer-events-none data-[loading=true]:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer disabled:cursor-not-allowed",{variants:{variant:{default:"bg-primary text-primary-foreground hover:not-disabled:not-aria-disabled:bg-[color:color-mix(in_srgb,var(--color-background)_10%,var(--color-primary)_90%)] active:inset-shadow-[0_0_8px_rgba(0,0,0,0.1)]",destructive:"border border-destructive-border bg-destructive text-destructive-foreground hover:not-disabled:not-aria-disabled:bg-[color:color-mix(in_srgb,var(--color-background)_40%,var(--color-destructive)_60%)] active:inset-shadow-[0_0_8px_rgba(0,0,0,0.1)]",outline:"border border-input bg-transparent text-foreground hover:not-disabled:not-aria-disabled:bg-[color:color-mix(in_srgb,var(--color-background)_80%,var(--color-accent)_20%)] active:inset-shadow-[0_0_8px_rgba(0,0,0,0.1)]",secondary:"bg-secondary text-secondary-foreground hover:not-disabled:not-aria-disabled:bg-[color:color-mix(in_srgb,var(--color-background)_20%,var(--color-secondary)_80%)] active:inset-shadow-[0_0_8px_rgba(0,0,0,0.1)]",ghost:"bg-transparent text-foreground hover:not-disabled:not-aria-disabled:bg-[color:color-mix(in_srgb,var(--color-background)_80%,var(--color-accent)_20%)]",link:"bg-transparent text-primary hover:not-disabled:not-aria-disabled:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 px-3 py-2 text-xs has-[>svg]:px-2.5",lg:"h-10 px-6 py-2 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function it({className:e,variant:t="default",size:n="default",asChild:i=!1,loading:r=!1,loadingText:a,type:l="button",children:u,...f}){const h=i&&k.isValidElement(u)&&u.type!==k.Fragment?vZ:"button";return v.jsx(h,{"data-slot":"button","data-variant":t,"data-size":n,"data-loading":r||void 0,"aria-busy":r||void 0,type:l,className:ke(Fh({variant:t,size:n,className:e})),...f,children:r?v.jsxs(v.Fragment,{children:[v.jsx(of,{"aria-hidden":"true",className:"size-4 animate-spin"}),a??u]}):u})}const i7="/accounts/assets/auth-hero-C0oxZfDW.jpg",MS="https://suporte-medico.memed.com.br/hc/pt-br/articles/11822598155419-Termos-de-uso-M%C3%A9dicos",IS="https://suporte-medico.memed.com.br/hc/pt-br/articles/8853419077915-Pol%C3%ADtica-de-Privacidade-M%C3%A9dicos";function jC(){return v.jsxs("div",{className:"hidden lg:flex lg:flex-[0.6] h-screen relative overflow-hidden",children:[v.jsxs("div",{className:"absolute inset-0",children:[v.jsx("img",{src:i7,alt:"Médico profissional",className:"w-full h-full object-cover"}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/80 to-primary/60"})]}),v.jsx("div",{className:"relative z-10 flex flex-col justify-end items-center p-12 text-white w-full",children:v.jsxs("div",{className:"rounded-2xl bg-white/10 backdrop-blur-[2px] p-8 border border-white/20 max-w-xl",children:[v.jsx("blockquote",{className:"text-xl font-medium mb-4",children:'"A tecnologia na medicina não substitui o toque humano, mas amplifica nossa capacidade de cuidar com precisão e eficiência."'}),v.jsxs("footer",{className:"text-white",children:[v.jsx("p",{className:"font-semibold",children:"Dr. Eric Topol"}),v.jsx("p",{children:"Cardiologista e pioneiro em medicina digital"})]})]})})]})}function MC({children:e}){const t=new Date().getFullYear()||"";return v.jsxs("div",{className:"flex-1 lg:flex-[0.4] h-screen flex flex-col max-h-screen overflow-y-auto",children:[v.jsx("div",{className:"flex-1 flex items-center justify-center py-6 px-4 lg:px-6",children:v.jsx("div",{className:"w-full max-w-sm",children:v.jsx("div",{className:"overflow-visible",children:e})})}),v.jsxs("div",{className:"py-6 px-4 lg:px-6 border-t flex flex-col gap-1 items-center",children:[v.jsxs("p",{className:"text-sm text-muted-foreground font-normal",children:["Todos os direitos reservados © ",t," Memed."]}),v.jsxs("div",{className:"flex gap-4",children:[v.jsx("a",{href:MS,target:"_blank",className:"underline text-sm text-muted-foreground font-medium",children:"Termos de uso"}),v.jsx("a",{href:IS,target:"_blank",className:"underline text-sm text-muted-foreground font-medium",children:"Política de Privacidade"})]})]})]})}function o7(){return v.jsxs("div",{className:"min-h-screen bg-sidebar flex",children:[v.jsx(MC,{children:v.jsxs("div",{className:"flex flex-col gap-6 items-center justify-center",children:[v.jsx("div",{className:"size-10 rounded-lg grid place-items-center bg-muted",children:v.jsx(bC,{})}),v.jsxs("div",{className:"flex flex-col gap-2 text-center",children:[v.jsx("span",{className:"font-semibold text-2xl",children:"Houve um erro inesperado"}),v.jsx("span",{children:"Não conseguimos carregar esta página corretamente. Isso pode ser temporário, atualize para continuar."})]}),v.jsx(it,{className:"w-full",asChild:!0,children:v.jsx(Cn,{to:"/",replace:!0,children:"Atualizar página"})})]})}),v.jsx(jC,{})]})}
215function a7(e={}){const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:i}=e,[r,a]=k.useState(!1),l=k.useRef(n);l.current=n;const u=k.useRef(i);return u.current=i,k.useEffect(()=>{const f=document.createElement("script");return f.src="https://accounts.google.com/gsi/client",f.async=!0,f.defer=!0,f.nonce=t,f.onload=()=>{var m;a(!0),(m=l.current)===null||m===void 0||m.call(l)},f.onerror=()=>{var m;a(!1),(m=u.current)===null||m===void 0||m.call(u)},document.body.appendChild(f),()=>{document.body.removeChild(f)}},[t]),r}const IC=k.createContext(null);function s7({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:i,children:r}){const a=a7({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:i}),l=k.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:a}),[e,a]);return Y.createElement(IC.Provider,{value:l},r)}function l7(){const e=k.useContext(IC);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function c7(e){var t;return(t=e==null?void 0:e.clientId)!==null&&t!==void 0?t:e==null?void 0:e.client_id}const u7={large:40,medium:32,small:20};function d7({onSuccess:e,onError:t,useOneTap:n,promptMomentNotification:i,type:r="standard",theme:a="outline",size:l="large",text:u,shape:f,logo_alignment:m,width:h,locale:g,click_listener:b,containerProps:_,...S}){const w=k.useRef(null),{clientId:x,scriptLoadedSuccessfully:E}=l7(),O=k.useRef(e);O.current=e;const R=k.useRef(t);R.current=t;const $=k.useRef(i);return $.current=i,k.useEffect(()=>{var N,M,C,I,V,L,K,H,F;if(E)return(C=(M=(N=window==null?void 0:window.google)===null||N===void 0?void 0:N.accounts)===null||M===void 0?void 0:M.id)===null||C===void 0||C.initialize({client_id:x,callback:ae=>{var ue;if(!(ae!=null&&ae.credential))return(ue=R.current)===null||ue===void 0?void 0:ue.call(R);const{credential:j,select_by:G}=ae;O.current({credential:j,clientId:c7(ae),select_by:G})},...S}),(L=(V=(I=window==null?void 0:window.google)===null||I===void 0?void 0:I.accounts)===null||V===void 0?void 0:V.id)===null||L===void 0||L.renderButton(w.current,{type:r,theme:a,size:l,text:u,shape:f,logo_alignment:m,width:h,locale:g,click_listener:b}),n&&((F=(H=(K=window==null?void 0:window.google)===null||K===void 0?void 0:K.accounts)===null||H===void 0?void 0:H.id)===null||F===void 0||F.prompt($.current)),()=>{var ae,ue,j;n&&((j=(ue=(ae=window==null?void 0:window.google)===null||ae===void 0?void 0:ae.accounts)===null||ue===void 0?void 0:ue.id)===null||j===void 0||j.cancel())}},[x,E,n,r,a,l,u,f,m,h,g]),Y.createElement("div",{..._,ref:w,style:{height:u7[l],..._==null?void 0:_.style}})}class f7{constructor(){Fl(this,"app");Fl(this,"environmentMode");Fl(this,"tracker");Fl(this,"initPromise",null);Fl(this,"isInitialized",!1);this.app={version:"1.0.0",name:"Platform Accounts",build:"0.0.0",namespace:"module.platform-accounts"},this.environmentMode="LIVE";const t=this.getEnvironment();this.tracker=new window.XRayTracker(t),this.tracker.setMode(this.environmentMode)}getEnvironment(){const t=document.location.host.replace("www.","").split(".")[0];return["partners","memed"].indexOf(t)!==-1?"production":t}async init(t={}){return this.initPromise?this.initPromise:(this.initPromise=(async()=>{try{await this.tracker.load(this.app,t),this.isInitialized=!0}catch(n){throw console.error("Não foi possível carregar o X-RayTracker SDK.",n),this.isInitialized=!1,n}})(),this.initPromise)}async sendEvent({name:t,screen:n,properties:i}){!this.isInitialized&&this.initPromise&&await this.initPromise,this.isInitialized||await this.init();try{this.tracker.event(t,n,i)}catch(r){console.error(`Não foi possível enviar o evento ${t}.`,r)}}async identify(t,n={}){try{await this.tracker.identify(t,n)}catch(i){console.error("Não foi possível se autenticar ao X-RayTracker SDK.",i)}}async resetIdentity(){try{await this.tracker.resetIdentity()}catch(t){console.error("Não foi possível se deslogar do X-RayTracker SDK.",t)}}persistData(t,n){try{this.tracker.persistData(t,n)}catch(i){console.error(`Não foi possível persistir o atributo ${t}, X-RayTracker SDK não foi encontrado.`,i)}}deletePersistentData(t){try{this.tracker.persistData(t,null)}catch(n){console.error(`Não foi possível remover o atributo ${t}, X-RayTracker SDK não foi encontrado.`,n)}}}const Wr=new f7,Bh="zendesk-hidden-styles",R_="zendesk-unread-counter-styles",m7=()=>
215{if(document.getElementById(Bh))return;const e=document.createElement("style");e.id=Bh,e.textContent=`
216  /* Estilos zendesk para esconder o launcher e o contador de mensagens não lidas */
217    #launcher {
218      display: none !important;
219      visibility: hidden !important;
220    }
221    [title="Number of unread messages"] {
222      display: none !important;
223      visibility: hidden !important;
224    }
225  `,document.head.appendChild(e)},h7=()=>{if(document.getElementById(R_))return;const e=document.createElement("style");e.id=R_,e.textContent=`
226  /* Estilos zendesk para exibir o contador de mensagens não lidas */
227    [title="Number of unread messages"] {
228      display: block !important;
229      visibility: visible !important;
230      z-index: 1000001 !important;
231    }
232  `,document.head.appendChild(e)},p7=()=>{const e=document.getElementById(R_);e&&e.remove()},g7=()=>{const e=document.getElementById("launcher");e&&(e.style.display="none",e.style.visibility="hidden")},v7=()=>{var t;const e=document.getElementById("launcher");document.getElementById(Bh)&&((t=document.getElementById(Bh))==null||t.remove()),e&&(e.style.display="block",e.style.visibility="visible")},y7=()=>{window.zE!==void 0&&window.zE("messenger","open")},b7=()=>{window.zE!==void 0&&window.zE("messenger","close")},_7="207181493098-pjf7np0l2goe3j294supqkd260oe73d8.apps.googleusercontent.com",S7=()=>(k.useEffect(()=>{(async()=>{await Wr.init()})(),m7(),g7(),p7(),b7()},[]),v.jsx(s7,{clientId:_7,children:v.jsx(Yd,{})})),PC=ZF()({component:S7}),rd={current:null};function PS(){const e=Jn();return k.useEffect(()=>e.subscribe("onResolved",n=>{n.pathChanged&&n.fromLocation&&(rd.current=n.fromLocation.pathname)}),[e]),{get previousPath(){return rd.current},getPreviousPath(){return rd.current},resetPreviousPath(){rd.current=null},setPreviousPath(t){rd.current=t}}}function zC(){return window.location.hostname.replace("www.","")}const w7=cn("/_layout")({component:x7,beforeLoad:()=>{const e=zC(),t=`token-${e}`;localStorage.getItem(t)&&window.location.replace(`${window.location.protocol}//${e}/plataforma/`)}});function x7(){return PS(),v.jsxs("div",{className:"min-h-screen bg-sidebar flex",children:[v.jsx(MC,{children:v.jsx(Yd,{})}),v.jsx(jC,{})]})}const UC=Object.freeze({status:"aborted"});function J(e,t,n){function i(u,f){var m;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(m=u._zod).traits??(m.traits=new Set),u._zod.traits.add(e),t(u,f);for(const h in l.prototype)h in u||Object.defineProperty(u,h,{value:l.prototype[h].bind(u)});u._zod.constr=l,u._zod.def=f}const r=(n==null?void 0:n.Parent)??Object;class a extends r{}Object.defineProperty(a,"name",{value:e});function l(u){var f;const m=n!=null&&n.Parent?new a:this;i(m,u),(f=m._zod).deferred??(f.deferred=[]);for(const h of m._zod.deferred)h();return m}return Object.defineProperty(l,"init",{value:i}),Object.defineProperty(l,Symbol.hasInstance,{value:u=>{var f,m;return n!=null&&n.Parent&&u instanceof n.Parent?!0:(m=(f=u==null?void 0:u._zod)==null?void 0:f.traits)==null?void 0:m.has(e)}}),Object.defineProperty(l,"name",{value:e}),l}const LC=Symbol("zod_brand");class Rs extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class jp extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Vh={};function Xn(e){return e&&Object.assign(Vh,e),Vh}function E7(e){return e}function k7(e){return e}function O7(e){}function T7(e){throw new Error}function R7(e){}function zS(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function we(e,t="|"){return e.map(n=>Ke(n)).join(t)}function Hh(e,t){return typeof t=="bigint"?t.toString():t}function af(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Xs(e){return e==null}function Mp(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function FC(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){const f=i.match(/\d?e-(\d?)/);
vendor: 12,961 bytes, lines 232-233
232f!=null&&f[1]&&(r=Number.parseInt(f[1]))}const a=n>r?n:r,l=Number.parseInt(e.toFixed(a).replace(".","")),u=Number.parseInt(t.toFixed(a).replace(".",""));return l%u/10**a}const fR=Symbol("evaluating");function ht(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==fR)return i===void 0&&(i=fR,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function $7(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ca(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Co(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function N7(e){return Co(e._zod.def)}function D7(e,t){return t?t.reduce((n,i)=>n==null?void 0:n[i],e):e}function C7(e){const t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{const r={};for(let a=0;a<t.length;a++)r[t[a]]=i[a];return r})}function A7(e=10){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function $_(e){return JSON.stringify(e)}const US="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Oc(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const BC=af(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function zs(e){if(Oc(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Oc(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Ip(e){return zs(e)?{...e}:Array.isArray(e)?[...e]:e}function j7(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}const M7=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},qh=new Set(["string","number","symbol"]),VC=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ta(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Gr(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(i._zod.parent=e),i}function Se(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function I7(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,a){return t??(t=e()),Reflect.set(t,i,r,a)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function Ke(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function HC(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const qC={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ZC={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function YC(e,t){const n=e._zod.def,i=Co(e._zod.def,{get shape(){const r={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(r[a]=n.shape[a])}return Ca(this,"shape",r),r},checks:[]});return Gr(e,i)}function WC(e,t){const n=e._zod.def,i=Co(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete r[a]}return Ca(this,"shape",r),r},checks:[]});return Gr(e,i)}function GC(e,t){if(!zs(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const r=Co(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return Ca(this,"shape",a),a},checks:[]});return Gr(e,r)}function KC(e,t){if(!zs(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return Ca(this,"shape",i),i},checks:e._zod.def.checks};return Gr(e,n)}function XC(e,t){const n=Co(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Ca(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Gr(e,n)}function QC(e,t,n){const i=Co(t._zod.def,{get shape(){const r=t._zod.def.shape,a={...r};if(n)for(const l in n){if(!(l in r))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(a[l]=e?new e({type:"optional",innerType:r[l]}):r[l])}else for(const l in r)a[l]=e?new e({type:"optional",innerType:r[l]}):r[l];return Ca(this,"shape",a),a},checks:[]});return Gr(t,i)}function JC(e,t,n){const i=Co(t._zod.def,{get shape(){const r=t._zod.def.shape,a={...r};if(n)for(const l in n){if(!(l in a))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(a[l]=new e({type:"nonoptional",innerType:r[l]}))}else for(const l in r)a[l]=new e({type:"nonoptional",innerType:r[l]});return Ca(this,"shape",a),a},checks:[]});return Gr(t,i)}function cs(e,t=0){var n;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((n=e.issues[i])==null?void 0:n.continue)!==!0)return!0;return!1}function ai(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function pd(e){return typeof e=="string"?e:e==null?void 0:e.message}function di(e,t,n){var r,a,l,u,f,m;const i={...e,path:e.path??[]};if(!e.message){const h=pd((l=(a=(r=e.inst)==null?void 0:r._zod.def)==null?void 0:a.error)==null?void 0:l.call(a,e))??pd((u=t==null?void 0:t.error)==null?void 0:u.call(t,e))??pd((f=n.customError)==null?void 0:f.call(n,e))??pd((m=n.localeError)==null?void 0:m.call(n,e))??"Invalid input";i.message=h}return delete i.inst,delete i.continue,t!=null&&t.reportInput||delete i.input,i}function Pp(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function zp(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Tc(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function P7(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function eA(e){const t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function tA(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function z7(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return eA(t+n)}function U7(e){return tA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function L7(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function F7(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class B7{constructor(...t){}}const nA=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:ZC,Class:B7,NUMBER_FORMAT_RANGES:qC,aborted:cs,allowsEval:BC,assert:R7,assertEqual:E7,assertIs:O7,assertNever:T7,assertNotEqual:k7,assignProp:Ca,base64ToUint8Array:eA,base64urlToUint8Array:z7,cached:af,captureStackTrace:US,cleanEnum:P7,cleanRegex:Mp,clone:Gr,cloneDef:N7,createTransparentProxy:I7,defineLazy:ht,esc:$_,escapeRegex:Ta,extend:GC,finalizeIssue:di,floatSafeRemainder:FC,getElementAtPath:D7,getEnumValues:zS,getLengthableOrigin:zp,getParsedType:M7,getSizableOrigin:Pp,hexToUint8Array:L7,isObject:Oc,isPlainObject:zs,issue:Tc,joinValues:we,jsonStringifyReplacer:Hh,merge:XC,mergeDefs:Co,normalizeParams:Se,nullish:Xs,numKeys:j7,objectClone:$7,omit:WC,optionalKeys:HC,partial:QC,pick:YC,prefixIssues:ai,primitiveTypes:VC,promiseAllObject:C7,propertyKeyTypes:qh,randomString:A7,required:JC,safeExtend:KC,shallowClone:Ip,stringifyPrimitive:Ke,uint8ArrayToBase64:tA,uint8ArrayToBase64url:U7,uint8ArrayToHex:F7,unwrapMessage:pd},Symbol.toStringTag,{value:"Module"})),rA=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Hh,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Up=J("$ZodError",rA),Cr=J("$ZodError",rA,{Parent:Error});function LS(e,t=n=>n.message){const n={},i=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function FS(e,t=n=>n.message){const n={_errors:[]},i=r=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>i({issues:l}));else if(a.code==="invalid_key")i({issues:a.issues});else if(a.code==="invalid_element")i({issues:a.issues});else if(a.path.length===0)n._errors.push(t(a));else{let l=n,u=0;for(;u<a.path.length;){const f=a.path[u];u===a.path.length-1?(l[f]=l[f]||{_errors:[]},l[f]._errors.push(t(a))):l[f]=l[f]||{_errors:[]},l=l[f],u++}}};return i(e),n}function iA(e,t=n=>n.message){const n={errors:[]},i=(r,a=[])=>{var l,u;for(const f of r.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(m=>i({issues:m},f.path));else if(f.code==="invalid_key")i({issues:f.issues},f.path);else if(f.code==="invalid_element")i({issues:f.issues},f.path);else{const m=[...a,...f.path];if(m.length===0){n.errors.push(t(f));continue}let h=n,g=0;for(;g<m.length;){const b=m[g],_=g===m.length-1;typeof b=="string"?(h.properties??(h.properties={}),(l=h.properties)[b]??(l[b]={errors:[]}),h=h.properties[b]):(h.items??(h.items=[]),(u=h.items)[b]??(u[b]={errors:[]}),h=h.items[b]),_&&h.errors.push(t(f)),g++}}};return i(e),n}function oA(e){const t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(const i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function aA(e){var i;const t=[],n=[...e.issues].sort((r,a)=>(r.path??[]).length-(a.path??[]).length);for(const r of n)t.push(`✖ ${r.message}`),(i=r.path)!=null&&i.length&&t.push(`  → at ${oA(r.path)}`);return t.join(`
233`)}const sf=e=>(t,n,i,r)=>{const a=i?Object.assign(i,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},a);if(l instanceof Promise)throw new Rs;if(l.issues.length){const u=new((r==null?void 0:r.Err)??e)(l.issues.map(f=>di(f,a,Xn())));throw US(u,r==null?void 0:r.callee),u}return l.value},Zh=sf(Cr),lf=e=>async(t,n,i,r)=>{const a=i?Object.assign(i,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},a);if(l instanceof Promise&&(l=await l),l.issues.length){const u=new((r==null?void 0:r.Err)??e)(l.issues.map(f=>di(f,a,Xn())));throw US(u,r==null?void 0:r.callee),u}return l.value},Yh=lf(Cr),cf=e=>(t,n,i)=>{const r=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},r);if(a instanceof Promise)throw new Rs;return a.issues.length?{success:!1,error:new(e??Up)(a.issues.map(l=>di(l,r,Xn())))}:{success:!0,data:a.value}},sA=cf(Cr),uf=e=>async(t,n,i)=>{const r=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},r);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(l=>di(l,r,Xn())))}:{success:!0,data:a.value}},lA=uf(Cr),BS=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return sf(e)(t,n,r)},V7=BS(Cr),VS=e=>(t,n,i)=>sf(e)(t,n,i),H7=VS(Cr),HS=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return lf(e)(t,n,r)},q7=HS(Cr),qS=e=>async(t,n,i)=>lf(e)(t,n,i),Z7=qS(Cr),ZS=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return cf(e)(t,n,r)},Y7=ZS(Cr),YS=e=>(t,n,i)=>cf(e)(t,n,i),W7=YS(Cr),WS=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return uf(e)(t,n,r)},G7=WS(Cr),GS=e=>async(t,n,i)=>uf(e)(t,n,i),K7=GS(Cr),cA=/^[cC][^\s-]{8,}
233$/,uA=/^[0-9a-z]+$/,dA=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,fA=/^[0-9a-vA-V]{20}$/,mA=/^[A-Za-z0-9]{27}$/,hA=/^[a-zA-Z0-9_-]{21}$/,pA=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,X7=/^[-+]?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)?)??$/,gA=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Rc=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Q7=Rc(4),J7=Rc(6),eY=Rc(7),vA=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tY=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,nY=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,yA=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,rY=yA,iY=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,oY="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function bA(){return new RegExp(oY,"u")}const _A=/^(?:(?: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])$/,SA=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,wA=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,xA=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,EA=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,KS=/^[A-Za-z0-9_-]*$/,XS=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,kA=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,OA=/^\+(?:[0-9]){6,14}[0-9]$/,TA="(?:(?:\\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])))",RA=new RegExp(`^${TA}$`);function $A(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function NA(e){return new RegExp(`^${$A(e)}$`)}function DA(e){const t=$A({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${TA}T(?:${i})$`)}const CA=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},AA=/^-?\d+n?$/,jA=/^-?\d+$/,MA=/^-?\d+(?:\.\d+)?/,IA=/^(?:true|false)$/i,PA=/^null$/i,zA=/^undefined$/i,UA=/^[^A-Z]*$/,LA=/^[^a-z]*$/,FA=/^[0-9a-fA-F]*$/;function df(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ff(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const aY=/^[0-9a-fA-F]{32}$/,sY=df(22,"=="),lY=ff(22),cY=/^[0-9a-fA-F]{40}$/,uY=df(27,"="),dY=ff(27),fY=/^[0-9a-fA-F]{64}$/,mY=df(43,"="),hY=ff(43),pY=/^[0-9a-fA-F]{96}$/,gY=df(64,""),vY=ff(64),yY=/^[0-9a-fA-F]{128}$/,bY=df(86,"=="),_Y=ff(86),QS=Object.freeze(Object.defineProperty({__proto__:null,base64:EA,base64url:KS,bigint:AA,boolean:IA,browserEmail:iY,cidrv4:wA,cidrv6:xA,cuid:cA,cuid2:uA,date:RA,datetime:DA,domain:kA,duration:pA,e164:OA,email:vA,emoji:bA,extendedDuration:X7,guid:gA,hex:FA,hostname:XS,html5Email:tY,idnEmail
233:rY,integer:jA,ipv4:_A,ipv6:SA,ksuid:mA,lowercase:UA,md5_base64:sY,md5_base64url:lY,md5_hex:aY,nanoid:hA,null:PA,number:MA,rfc5322Email:nY,sha1_base64:uY,sha1_base64url:dY,sha1_hex:cY,sha256_base64:mY,sha256_base64url:hY,sha256_hex:fY,sha384_base64:gY,sha384_base64url:vY,sha384_hex:pY,sha512_base64:bY,sha512_base64url:_Y,sha512_hex:yY,string:CA,time:NA,ulid:dA,undefined:zA,unicodeEmail:yA,uppercase:LA,uuid:Rc,uuid4:Q7,uuid6:J7,uuid7:eY,xid:fA},Symbol.toStringTag,{value:"Module"})),Kt=J("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),BA={number:"number",bigint:"bigint",object:"date"},JS=J("$ZodCheckLessThan",(e,t)=>{Kt.init(e,t);const n=BA[typeof t.value];e._zod.onattach.push(i=>{const r=i._zod.bag,a=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ew=J("$ZodCheckGreaterThan",(e,t)=>{Kt.init(e,t);const n=BA[typeof t.value];e._zod.onattach.push(i=>{const r=i._zod.bag,a=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),VA=J("$ZodCheckMultipleOf",(e,t)=>{Kt.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):FC(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),HA=J("$ZodCheckNumberFormat",(e,t)=>{var l;Kt.init(e,t),t.format=t.format||"float64";const n=(l=t.format)==null?void 0:l.includes("int"),i=n?"int":"number",[r,a]=qC[t.format];e._zod.onattach.push(u=>{const f=u._zod.bag;f.format=t.format,f.minimum=r,f.maximum=a,n&&(f.pattern=jA)}),e._zod.check=u=>{const f=u.value;if(n){if(!Number.isInteger(f)){u.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?u.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):u.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}f<r&&u.issues.push({origin:"number",input:f,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),f>a&&u.issues.push({origin:"number",input:f,code:"too_big",maximum:a,inst:e})}}),qA=J("$ZodCheckBigIntFormat",(e,t)=>{Kt.init(e,t);const[n,i]=ZC[t.format];e._zod.onattach.push(r=>{const a=r._zod.bag;a.format=t.format,a.minimum=n,a.maximum=i}),e._zod.check=r=>{const a=r.value;a<n&&r.issues.push({origin:"bigint",input:a,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>i&&r.issues.push({origin:"bigint",input:a,code:"too_big",maximum:i,inst:e})}}),ZA=J("$ZodCheckMaxSize",(e,t)=>{var n;Kt.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!Xs(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const r=i.value;r.size<=t.maximum||i.issues.push({origin:Pp(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),YA=J("$ZodCheckMinSize",(e,t)=>{var n;Kt.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!Xs(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const r=i.value;r.size>
vendor: 4,696 bytes, line 233
233=t.minimum||i.issues.push({origin:Pp(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),WA=J("$ZodCheckSizeEquals",(e,t)=>{var n;Kt.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!Xs(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=i=>{const r=i.value,a=r.size;if(a===t.size)return;const l=a>t.size;i.issues.push({origin:Pp(r),...l?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),GA=J("$ZodCheckMaxLength",(e,t)=>{var n;Kt.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!Xs(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const r=i.value;if(r.length<=t.maximum)return;const l=zp(r);i.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),KA=J("$ZodCheckMinLength",(e,t)=>{var n;Kt.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!Xs(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const r=i.value;if(r.length>=t.minimum)return;const l=zp(r);i.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),XA=J("$ZodCheckLengthEquals",(e,t)=>{var n;Kt.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!Xs(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=>{const r=i.value,a=r.length;if(a===t.length)return;const l=zp(r),u=a>t.length;i.issues.push({origin:l,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),mf=J("$ZodCheckStringFormat",(e,t)=>{var n,i;Kt.init(e,t),e._zod.onattach.push(r=>{const a=r._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),QA=J("$ZodCheckRegex",(e,t)=>{mf.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),JA=J("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=UA),mf.init(e,t)}),ej=J("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=LA),mf.init(e,t)}),tj=J("$ZodCheckIncludes",(e,t)=>{Kt.init(e,t);const n=Ta(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),nj=J("$ZodCheckStartsWith",(e,t)=>{Kt.init(e,t);const n=new RegExp(`^${Ta(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),rj=J("$ZodCheckEndsWith",(e,t)=>{Kt.init(e,t);const n=new RegExp(`.*${Ta(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function mR(e,t,n){e.issues.length&&t.issues.push(...ai(n,e.issues))}const ij=J("$ZodCheckProperty",(e,t)=>{Kt.init(e,t),e._zod.check=n=>{const i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>mR(r,n,t.property));mR(i,n,t.property)}}),oj=J("$ZodCheckMimeType",(e,t)=>{Kt.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),aj=J("$ZodCheckOverwrite",(e,t)=>{Kt.init(e,t),e._zod.check=n=>
vendor: 14,166 bytes, lines 233-252
233{n.value=t.tx(n.value)}});class sj{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
234`).filter(l=>l),r=Math.min(...i.map(l=>l.length-l.trimStart().length)),a=i.map(l=>l.slice(r)).map(l=>" ".repeat(this.indent*2)+l);for(const l of a)this.content.push(l)}compile(){const t=Function,n=this==null?void 0:this.args,r=[...((this==null?void 0:this.content)??[""]).map(a=>`  ${a}`)];return new t(...n,r.join(`
235`))}}const lj={major:4,minor:1,patch:12},Je=J("$ZodType",(e,t)=>{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=lj;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const a of i)for(const l of a._zod.onattach)l(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=>{e._zod.run=e._zod.parse});else{const a=(u,f,m)=>{let h=cs(u),g;for(const b of f){if(b._zod.def.when){if(!b._zod.def.when(u))continue}else if(h)continue;const _=u.issues.length,S=b._zod.check(u);if(S instanceof Promise&&(m==null?void 0:m.async)===!1)throw new Rs;if(g||S instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await S,u.issues.length!==_&&(h||(h=cs(u,_)))});else{if(u.issues.length===_)continue;h||(h=cs(u,_))}}return g?g.then(()=>u):u},l=(u,f,m)=>{if(cs(u))return u.aborted=!0,u;const h=a(f,i,m);if(h instanceof Promise){if(m.async===!1)throw new Rs;return h.then(g=>e._zod.parse(g,m))}return e._zod.parse(h,m)};e._zod.run=(u,f)=>{if(f.skipChecks)return e._zod.parse(u,f);if(f.direction==="backward"){const h=e._zod.parse({value:u.value,issues:[]},{...f,skipChecks:!0});return h instanceof Promise?h.then(g=>l(g,u,f)):l(h,u,f)}const m=e._zod.parse(u,f);if(m instanceof Promise){if(f.async===!1)throw new Rs;return m.then(h=>a(h,i,f))}return a(m,i,f)}}e["~standard"]={validate:a=>{var l;try{const u=sA(e,a);return u.success?{value:u.data}:{issues:(l=u.error)==null?void 0:l.issues}}catch{return lA(e,a).then(f=>{var m;return f.success?{value:f.data}:{issues:(m=f.error)==null?void 0:m.issues}})}},vendor:"zod",version:1}}),hf=J("$ZodString",(e,t)=>{var n;Je.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??CA(e._zod.bag),e._zod.parse=(i,r)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),It=J("$ZodStringFormat",(e,t)=>{mf.init(e,t),hf.init(e,t)}),cj=J("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=gA),It.init(e,t)}),uj=J("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Rc(i))}else t.pattern??(t.pattern=Rc());It.init(e,t)}),dj=J("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=vA),It.init(e,t)}),fj=J("$ZodURL",(e,t)=>{It.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:XS.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),mj=J("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=bA()),It.init(e,t)}),hj=J("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=hA),It.init(e,t)}),pj=J("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=cA),It.init(e,t)}),gj=J("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=uA),It.init(e,t)}),vj=J("$ZodULID",(e,t)=>{t.pattern??(t.pattern=dA),It.init(e,t)}),yj=J("$ZodXID",(e,t)=>{t.pattern??(t.pattern=fA),It.init(e,t)}),bj=J("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=mA),It.init(e,t)}),_j=J("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=DA(t)),It.init(e,t)}),Sj=J("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=RA),It.init(e,t)}),wj=J("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=NA(t)),It.init(e,t)}),xj=J("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=pA),It.init(e,t)}),Ej=J("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_A),It.init(e,t),e._zod.onattach.push(n=>{const i=n._zod.bag;i.format="ipv4"})}),kj=J("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=SA),It.init(e,t),e._zod.onattach.push(n=>{const i=n._zod.bag;i.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Oj=J("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=wA),It.init(e,t)}),Tj=J("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=xA),It.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(i.length!==2)throw new Error;const[r,a]=i;if(!a)throw new Error;const l=Number(a);if(`${l}`!==a)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function tw(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Rj=J("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=EA),It.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{tw(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function $j(e){if(!KS.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return tw(n)}const Nj=J("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=KS),It.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{$j(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Dj=J("$ZodE164",(e,t)=>{t.pattern??(t.pattern=OA),It.init(e,t)});function Cj(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const r=JSON.parse(atob(i));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const Aj=J("$ZodJWT",(e,t)=>{It.init(e,t),e._zod.check=n=>{Cj(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),jj=J("$ZodCustomStringFormat",(e,t)=>{It.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),nw=J("$ZodNumber",(e,t)=>{Je.init(e,t),e._zod.pattern=e._zod.bag.pattern??MA,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const a=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...a?{received:a}:{}}),n}}),Mj=J("$ZodNumber",(e,t)=>{HA.init(e,t),nw.init(e,t)}),rw=J("$ZodBoolean",(e,t)=>{Je.init(e,t),e._zod.pattern=IA,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),iw=J("$ZodBigInt",(e,t)=>{Je.init(e,t),e._zod.pattern=AA,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Ij=J("$ZodBigInt",(e,t)=>{qA.init(e,t),iw.init(e,t)}),Pj=J("$ZodSymbol",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),zj=J("$ZodUndefined",(e,t)=>{Je.init(e,t),e._zod.pattern=zA,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{const r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),Uj=J("$ZodNull",(e,t)=>{Je.init(e,t),e._zod.pattern=PA,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{const r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),Lj=J("$ZodAny",(e,t)=>{Je.init(e,t),e._zod.parse=n=>n}),Fj=J("$ZodUnknown",(e,t)=>{Je.init(e,t),e._zod.parse=n=>n}),Bj=J("$ZodNever",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Vj=J("$ZodVoid",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),Hj=J("$ZodDate",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}const r=n.value,a=r instanceof Date;return a&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...a?{received:"Invalid Date"}:{},inst:e}),n}});function hR(e,t,n){e.issues.length&&t.issues.push(...ai(n,e.issues)),t.value[n]=e.value}const qj=J("$ZodArray",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const a=[];for(let l=0;l<r.length;l++){const u=r[l],f=t.element._zod.run({value:u,issues:[]},i);f instanceof Promise?a.push(f.then(m=>hR(m,n,l))):hR(f,n,l)}return a.length?Promise.all(a).then(()=>n):n}});function Wh(e,t,n,i){e.issues.length&&t.issues.push(...ai(n,e.issues)),e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function Zj(e){var i,r,a,l;const t=Object.keys(e.shape);for(const u of t)if(!((l=(a=(r=(i=e.shape)==null?void 0:i[u])==null?void 0:r._zod)==null?void 0:a.traits)!=null&&l.has("$ZodType")))throw new Error(`Invalid element at key "${u}": expected a Zod schema`);const n=HC(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Yj(e,t,n,i,r,a){const l=[],u=r.keySet,f=r.catchall._zod,m=f.def.type;for(const h of Object.keys(t)){if(u.has(h))continue;if(m==="never"){l.push(h);continue}const g=f.run({value:t[h],issues:[]},i);g instanceof Promise?e.push(g.then(b=>Wh(b,n,h,t))):Wh(g,n,h,t)}return l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const Wj=J("$ZodObject",(e,t)=>{Je.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const u=t.shape;Object.defineProperty(t,"shape",{get:()=>{const f={...u};return Object.defineProperty(t,"shape",{value:f}),f}})}const i=af(()=>Zj(t));ht(e._zod,"propValues",()=>{const u=t.shape,f={};for(const m in u){const h=u[m]._zod;if(h.values){f[m]??(f[m]=new Set);for(const g of h.values)f[m].add(g)}}return f});const r=Oc,a=t.catchall;let l;e._zod.parse=(u,f)=>{l??(l=i.value);const m=u.value;if(!r(m))return u.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),u;u.value={};const h=[],g=l.shape;for(const b of l.keys){const S=g[b]._zod.run({value:m[b],issues:[]},f);S instanceof Promise?h.push(S.then(w=>Wh(w,u,b,m))):Wh(S,u,b,m)}return a?Yj(h,m,u,f,i.value,e):h.length?Promise.all(h).then(()=>u):u}}),Gj=J("$ZodObjectJIT",(e,t)=>{Wj.init(e,t);const n=e._zod.parse,i=af(()=>Zj(t)),r=b=>{const _=new sj(["shape","payload","ctx"]),S=i.value,w=R=>{const $=$_(R);return`shape[${$}]._zod.run({ value: input[${$}], issues: [] }, ctx)`};_.write("const input = payload.value;");const x=Object.create(null);let E=0;for(const R of S.keys)x[R]=`key_${E++}`;_.write("const newResult = {};");for(const R of S.keys){const $=x[R],N=$_(R);_.write(`const ${$} = ${w(R)};`),_.write(`
236        if (${$}.issues.length) {
237          payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
238            ...iss,
239            path: iss.path ? [${N}, ...iss.path] : [${N}]
240          })));
241        }
242        
243        
244        if (${$}.value === undefined) {
245          if (${N} in input) {
246            newResult[${N}] = undefined;
247          }
248        } else {
249          newResult[${N}] = ${$}.value;
250        }
251        
252      `)}_.write("payload.value = newResult;"),_.write("return payload;");const O=_.compile();return(R,$)=>O(b,R,$)};let a;const l=Oc,u=!Vh.jitless,m=u&&BC.value,h=t.catchall;let g;e._zod.parse=(b,_)=>{g??(g=i.value);const S=b.value;return l(S)?u&&m&&(_==null?void 0:_.async)===!1&&_.jitless!==!0?(a||(a=r(t.shape)),b=a(b,_),h?Yj([],S,b,_,g,e):b):n(b,_):(b.issues.push({expected:"object",code:"invalid_type",input:S,inst:e}),b)}});function pR(e,t,n,i){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const r=e.filter(a=>!cs(a));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(l=>di(l,i,Xn())))}),t)}const ow=J("$ZodUnion",(e,t)=>{Je.init(e,t),ht(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),ht(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ht(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),ht(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${r.map(a=>Mp(a.source)).join("|")})$`)}});const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,a)=>{if(n)return i(r,a);let l=!1;const u=[];for(const f of t.options){const m=f._zod.run({value:r.value,issues:[]},a);if(m instanceof Promise)u.push(m),l=!0;else{if(m.issues.length===0)return m;u.push(m)}}return l?Promise.all(u).then(f=>pR(f,r,e,a)):pR(u,r,e,a)}}),Kj=J("$ZodDiscriminatedUnion",(e,t)=>{ow.init(e,t);const n=e._zod.parse;ht(e._zod,"propValues",()=>{const r={};for(const a of t.options){const l=a._zod.propValues;if(!l||Object.keys(l).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[u,f]of Object.entries(l)){r[u]||(r[u]=new Set);for(const m of f)r[u].add(m)}}return r});const i=af(()=>{var l;const r=t.options,a=new Map;
252for(const u of r){const f=(l=u._zod.propValues)==null?void 0:l[t.discriminator];if(!f||f.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(u)}"`);for(const m of f){if(a.has(m))throw new Error(`Duplicate discriminator value "${String(m)}"`);a.set(m,u)}}return a});e._zod.parse=(r,a)=>{const l=r.value;if(!Oc(l))return r.issues.push({code:"invalid_type",expected:"object",input:l,inst:e}),r;const u=i.value.get(l==null?void 0:l[t.discriminator]);return u?u._zod.run(r,a):t.unionFallback?n(r,a):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:l,path:[t.discriminator],inst:e}),r)}}),Xj=J("$ZodIntersection",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>{const r=n.value,a=t.left._zod.run({value:r,issues:[]},i),l=t.right._zod.run({value:r,issues:[]},i);return a instanceof Promise||l instanceof Promise?Promise.all([a,l]).then(([f,m])=>gR(n,f,m)):gR(n,a,l)}});function N_(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(zs(e)&&zs(t)){const n=Object.keys(t),i=Object.keys(e).filter(a=>n.indexOf(a)!==-1),r={...e,...t};for(const a of i){const l=N_(e[a],t[a]);if(!l.valid)return{valid:!1,mergeErrorPath:[a,...l.mergeErrorPath]};r[a]=l.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i<e.length;i++){const r=e[i],a=t[i],l=N_(r,a);if(!l.valid)return{valid:!1,mergeErrorPath:[i,...l.mergeErrorPath]};n.push(l.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function gR(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),cs(e))return e;const i=N_(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const aw=J("$ZodTuple",(e,t)=>{Je.init(e,t);const n=t.items,i=n.length-[...n].reverse().findIndex(r=>r._zod.optin!=="optional");e._zod.parse=(r,a)=>{const l=r.value;if(!Array.isArray(l))return r.issues.push({input:l,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const u=[];if(!t.rest){const m=l.length>n.length,h=l.length<i-1;if(m||h)return r.issues.push({...m?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},input:l,inst:e,origin:"array"}),r}let f=-1;for(const m of n){if(f++,f>=l.length&&f>=i)continue;const h=m._zod.run({value:l[f],issues:[]},a);h instanceof Promise?u.push(h.then(g=>Qm(g,r,f))):Qm(h,r,f)}if(t.rest){const m=l.slice(n.length);for(const h of m){f++;const g=t.rest._zod.run({value:h,issues:[]},a);g instanceof Promise?u.push(g.then(b=>Qm(b,r,f))):Qm(g,r,f)}}return u.length?Promise.all(u).then(()=>r):r}});function Qm(e,t,n){e.issues.length&&t.issues.push(...ai(n,e.issues)),t.value[n]=e.value}const Qj=J("$ZodRecord",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!zs(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const a=[];if(t.keyType._zod.values){const l=t.keyType._zod.values;n.value={};for(const f of l)if(typeof f=="string"||typeof f=="number"||typeof f=="symbol"){const m=t.valueType._zod.run({value:r[f],issues:[]},i);m instanceof Promise?a.push(m.then(h=>{h.issues.length&&n.issues.push(...ai(f,h.issues)),n.value[f]=h.value})):(m.issues.length&&n.issues.push(...ai(f,m.issues)),n.value[f]=m.value)}let u;for(const f in r)l.has(f)||(u=u??[],u.push(f));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:u})}else{n.value={};for(const l of Reflect.ownKeys(r)){if(l==="__proto__")continue;const u=t.keyType._zod.run({value:l,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(m=>di(m,i,Xn())),input:l,path:[l],inst:e}),n.value[u.value]=u.value;continue}const f=t.valueType._zod.run({value:r[l],issues:[]},i);f instanceof Promise?a.push(f.then(m=>{m.issues.length&&n.issues.push(...ai(l,m.issues)),n.value[u.value]=m.value})):(f.issues.length&&n.issues.push(...ai(l,f.issues)),n.value[u.value]=f.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Jj=J("$ZodMap",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;const a=[];
vendor: 4,665 bytes, line 252
252n.value=new Map;for(const[l,u]of r){const f=t.keyType._zod.run({value:l,issues:[]},i),m=t.valueType._zod.run({value:u,issues:[]},i);f instanceof Promise||m instanceof Promise?a.push(Promise.all([f,m]).then(([h,g])=>{vR(h,g,n,l,r,e,i)})):vR(f,m,n,l,r,e,i)}return a.length?Promise.all(a).then(()=>n):n}});function vR(e,t,n,i,r,a,l){e.issues.length&&(qh.has(typeof i)?n.issues.push(...ai(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:a,issues:e.issues.map(u=>di(u,l,Xn()))})),t.issues.length&&(qh.has(typeof i)?n.issues.push(...ai(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:a,key:i,issues:t.issues.map(u=>di(u,l,Xn()))})),n.value.set(e.value,t.value)}const eM=J("$ZodSet",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;const a=[];n.value=new Set;for(const l of r){const u=t.valueType._zod.run({value:l,issues:[]},i);u instanceof Promise?a.push(u.then(f=>yR(f,n))):yR(u,n)}return a.length?Promise.all(a).then(()=>n):n}});function yR(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const tM=J("$ZodEnum",(e,t)=>{Je.init(e,t);const n=zS(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>qh.has(typeof r)).map(r=>typeof r=="string"?Ta(r):r.toString()).join("|")})$`),e._zod.parse=(r,a)=>{const l=r.value;return i.has(l)||r.issues.push({code:"invalid_value",values:n,input:l,inst:e}),r}}),nM=J("$ZodLiteral",(e,t)=>{if(Je.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Ta(n):n?Ta(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,i)=>{const r=n.value;return e._zod.values.has(r)||n.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),n}}),rM=J("$ZodFile",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),iM=J("$ZodTransform",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new jp(e.constructor.name);const r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(l=>(n.value=l,n));if(r instanceof Promise)throw new Rs;return n.value=r,n}});function bR(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const oM=J("$ZodOptional",(e,t)=>{Je.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ht(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ht(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Mp(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(a=>bR(a,n.value)):bR(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),aM=J("$ZodNullable",(e,t)=>{Je.init(e,t),ht(e._zod,"optin",()=>t.innerType._zod.optin),ht(e._zod,"optout",()=>t.innerType._zod.optout),ht(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Mp(n.source)}|null)$`):void 0}),ht(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),sM=J("$ZodDefault",(e,t)=>{Je.init(e,t),e._zod.optin="optional",ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(a=>_R(a,t)):_R(r,t)}});function _R(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const lM=J("$ZodPrefault",(e,t)=>{Je.init(e,t),e._zod.optin="optional",ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),cM=J("$ZodNonOptional",(e,t)=>{Je.init(e,t),ht(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(a=>SR(a,e)):SR(r,e)}});function SR(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const uM=J("$ZodSuccess",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new jp("ZodSuccess");const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(a=>
vendor: 5,000 bytes, line 252
252(n.value=a.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),dM=J("$ZodCatch",(e,t)=>{Je.init(e,t),ht(e._zod,"optin",()=>t.innerType._zod.optin),ht(e._zod,"optout",()=>t.innerType._zod.optout),ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(l=>di(l,i,Xn()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(a=>di(a,i,Xn()))},input:n.value}),n.issues=[]),n)}}),fM=J("$ZodNaN",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),mM=J("$ZodPipe",(e,t)=>{Je.init(e,t),ht(e._zod,"values",()=>t.in._zod.values),ht(e._zod,"optin",()=>t.in._zod.optin),ht(e._zod,"optout",()=>t.out._zod.optout),ht(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const a=t.out._zod.run(n,i);return a instanceof Promise?a.then(l=>Jm(l,t.in,i)):Jm(a,t.in,i)}const r=t.in._zod.run(n,i);return r instanceof Promise?r.then(a=>Jm(a,t.out,i)):Jm(r,t.out,i)}});function Jm(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const sw=J("$ZodCodec",(e,t)=>{Je.init(e,t),ht(e._zod,"values",()=>t.in._zod.values),ht(e._zod,"optin",()=>t.in._zod.optin),ht(e._zod,"optout",()=>t.out._zod.optout),ht(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){const a=t.in._zod.run(n,i);return a instanceof Promise?a.then(l=>eh(l,t,i)):eh(a,t,i)}else{const a=t.out._zod.run(n,i);return a instanceof Promise?a.then(l=>eh(l,t,i)):eh(a,t,i)}}});function eh(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){const r=t.transform(e.value,e);return r instanceof Promise?r.then(a=>th(e,a,t.out,n)):th(e,r,t.out,n)}else{const r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(a=>th(e,a,t.in,n)):th(e,r,t.in,n)}}function th(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}const hM=J("$ZodReadonly",(e,t)=>{Je.init(e,t),ht(e._zod,"propValues",()=>t.innerType._zod.propValues),ht(e._zod,"values",()=>t.innerType._zod.values),ht(e._zod,"optin",()=>t.innerType._zod.optin),ht(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(wR):wR(r)}});function wR(e){return e.value=Object.freeze(e.value),e}const pM=J("$ZodTemplateLiteral",(e,t)=>{Je.init(e,t);const n=[];for(const i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const a=r.startsWith("^")?1:0,l=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(a,l))}else if(i===null||VC.has(typeof i))n.push(Ta(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),gM=J("$ZodFunction",(e,t)=>(Je.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){const r=e._def.input?Zh(e._def.input,i):i,a=Reflect.apply(n,this,r);return e._def.output?Zh(e._def.output,a):a}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){const r=e._def.input?await Yh(e._def.input,i):i,a=await Reflect.apply(n,this,r);return e._def.output?await Yh(e._def.output,a):a}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{const i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new aw({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{const i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),vM=J("$ZodPromise",(e,t)=>{Je.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]}
252,i))}),yM=J("$ZodLazy",(e,t)=>{Je.init(e,t),ht(e._zod,"innerType",()=>t.getter()),ht(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),ht(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),ht(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),ht(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),bM=J("$ZodCustom",(e,t)=>{Kt.init(e,t),Je.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{const i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(a=>xR(a,n,i,e));xR(r,n,i,e)}});function xR(e,t,n,i){if(!e){const r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(Tc(r))}}const SY=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return r=>{switch(r.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${r.expected}، ولكن تم إدخال ${n(r.input)}`;case"invalid_value":return r.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Ke(r.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?` أكبر من اللازم: يفترض أن تكون ${r.origin??"القيمة"} ${a} ${r.maximum.toString()} ${l.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${r.origin??"القيمة"} ${a} ${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${a} ${r.minimum.toString()} ${l.unit}`:`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${a} ${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${r.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${i[a.format]??r.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${r.divisor}`;case"unrecognized_keys":return`معرف${r.keys.length>1?"ات":""} غريب${r.keys.length>1?"ة":""}: ${we(r.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${r.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${r.origin}`;default:return"مدخل غير مقبول"}}};function wY(){return{localeError:SY()}}const xY=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}}
252;function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${r.expected}, daxil olan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Yanlış dəyər: gözlənilən ${Ke(r.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Çox böyük: gözlənilən ${r.origin??"dəyər"} ${a}${r.maximum.toString()} ${l.unit??"element"}`:`Çox böyük: gözlənilən ${r.origin??"dəyər"} ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Çox kiçik: gözlənilən ${r.origin} ${a}${r.minimum.toString()} ${l.unit}`:`Çox kiçik: gözlənilən ${r.origin} ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Yanlış mətn: "${a.prefix}" ilə başlamalıdır`:a.format==="ends_with"?`Yanlış mətn: "${a.suffix}" ilə bitməlidir`:a.format==="includes"?`Yanlış mətn: "${a.includes}" daxil olmalıdır`:a.format==="regex"?`Yanlış mətn: ${a.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${i[a.format]??r.format}`}case"not_multiple_of":return`Yanlış ədəd: ${r.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${r.keys.length>1?"lar":""}: ${we(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${r.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function EY(){return{localeError:xY()}}function ER(e,t,n,i){const r=Math.abs(e),a=r%10,l=r%100;return l>=11&&l<=19?i:a===1?t:a>=2&&a<=4?n:i}const kY=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"лік";case"object":{if(Array.isArray(r))return"масіў";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return r=>{switch(r.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${r.expected}, атрымана ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Няправільны ўвод: чакалася ${Ke(r.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${we(r.values,"|")}`;
252case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);if(l){const u=Number(r.maximum),f=ER(u,l.unit.one,l.unit.few,l.unit.many);return`Занадта вялікі: чакалася, што ${r.origin??"значэнне"} павінна ${l.verb} ${a}${r.maximum.toString()} ${f}`}return`Занадта вялікі: чакалася, што ${r.origin??"значэнне"} павінна быць ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);if(l){const u=Number(r.minimum),f=ER(u,l.unit.one,l.unit.few,l.unit.many);return`Занадта малы: чакалася, што ${r.origin} павінна ${l.verb} ${a}${r.minimum.toString()} ${f}`}return`Занадта малы: чакалася, што ${r.origin} павінна быць ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${i[a.format]??r.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${r.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${r.keys.length>1?"ключы":"ключ"}: ${we(r.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${r.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${r.origin}`;default:return"Няправільны ўвод"}}};function OY(){return{localeError:kY()}}const TY=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":{if(Array.isArray(e))return"масив";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},RY=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(i){return e[i]??null}const n={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"};return i=>{switch(i.code){case"invalid_type":return`Невалиден вход: очакван ${i.expected}, получен ${TY(i.input)}`;case"invalid_value":return i.values.length===1?`Невалиден вход: очакван ${Ke(i.values[0])}`:`Невалидна опция: очаквано едно от ${we(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=t(i.origin);return a?`Твърде голямо: очаква се ${i.origin??"стойност"} да съдържа ${r}${i.maximum.toString()} ${a.unit??"елемента"}`:`Твърде голямо: очаква се ${i.origin??"стойност"} да бъде ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=t(i.origin);return a?`Твърде малко: очаква се ${i.origin} да съдържа ${r}${i.minimum.toString()} ${a.unit}`:`Твърде малко: очаква се ${i.origin} да бъде ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;if(r.format==="starts_with")return`Невалиден низ: трябва да започва с "${r.prefix}"`;if(r.format==="ends_with")return`Невалиден низ: трябва да завършва с "${r.suffix}"`;if(r.format==="includes")return`Невалиден низ: трябва да включва "${r.includes}"`;if(r.format==="regex")return`Невалиден низ: трябва да съвпада с ${r.pattern}`;let a="Невалиден";return r.format==="emoji"&&(a="Невалидно"),r.format==="datetime"&&(a="Невалидно"),r.format==="date"&&(a="Невалидна"),r.format==="time"&&(a="Невалидно"),r.format==="duration"&&(a="Невалидна"),`${a} ${n[r.format]??i.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${i.divisor}`;case"unrecognized_keys":return`Неразпознат${i.keys.length>1?"и":""} ключ${i.keys.length>1?"ове":""}: ${we(i.keys,", ")}`;
252case"invalid_key":return`Невалиден ключ в ${i.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${i.origin}`;default:return"Невалиден вход"}}};function $Y(){return{localeError:RY()}}const NY=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipus invàlid: s'esperava ${r.expected}, s'ha rebut ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Valor invàlid: s'esperava ${Ke(r.values[0])}`:`Opció invàlida: s'esperava una de ${we(r.values," o ")}`;case"too_big":{const a=r.inclusive?"com a màxim":"menys de",l=t(r.origin);return l?`Massa gran: s'esperava que ${r.origin??"el valor"} contingués ${a} ${r.maximum.toString()} ${l.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${a} ${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?"com a mínim":"més de",l=t(r.origin);return l?`Massa petit: s'esperava que ${r.origin} contingués ${a} ${r.minimum.toString()} ${l.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${a} ${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Format invàlid: ha de començar amb "${a.prefix}"`:a.format==="ends_with"?`Format invàlid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format invàlid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${a.pattern}`:`Format invàlid per a ${i[a.format]??r.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${we(r.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${r.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${r.origin}`;default:return"Entrada invàlida"}}};function DY(){return{localeError:NY()}}const CY=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(r))return"pole";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return r=>
252{switch(r.code){case"invalid_type":return`Neplatný vstup: očekáváno ${r.expected}, obdrženo ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neplatný vstup: očekáváno ${Ke(r.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Hodnota je příliš velká: ${r.origin??"hodnota"} musí mít ${a}${r.maximum.toString()} ${l.unit??"prvků"}`:`Hodnota je příliš velká: ${r.origin??"hodnota"} musí být ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Hodnota je příliš malá: ${r.origin??"hodnota"} musí mít ${a}${r.minimum.toString()} ${l.unit??"prvků"}`:`Hodnota je příliš malá: ${r.origin??"hodnota"} musí být ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Neplatný řetězec: musí začínat na "${a.prefix}"`:a.format==="ends_with"?`Neplatný řetězec: musí končit na "${a.suffix}"`:a.format==="includes"?`Neplatný řetězec: musí obsahovat "${a.includes}"`:a.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${a.pattern}`:`Neplatný formát ${i[a.format]??r.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${r.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${we(r.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${r.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${r.origin}`;default:return"Neplatný vstup"}}};function AY(){return{localeError:CY()}}const jY=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function n(l){return e[l]??null}function i(l){return t[l]??l}const r=l=>{const u=typeof l;switch(u){case"number":return Number.isNaN(l)?"NaN":"tal";case"object":return Array.isArray(l)?"liste":l===null?"null":Object.getPrototypeOf(l)!==Object.prototype&&l.constructor?l.constructor.name:"objekt"}return u},a={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return l=>{switch(l.code){case"invalid_type":return`Ugyldigt input: forventede ${i(l.expected)}, fik ${i(r(l.input))}`;case"invalid_value":return l.values.length===1?`Ugyldig værdi: forventede ${Ke(l.values[0])}`:`Ugyldigt valg: forventede en af følgende ${we(l.values,"|")}`;case"too_big":{const u=l.inclusive?"<=":"<",f=n(l.origin),m=i(l.origin);return f?`For stor: forventede ${m??"value"} ${f.verb} ${u} ${l.maximum.toString()} ${f.unit??"elementer"}`:`For stor: forventede ${m??"value"} havde ${u} ${l.maximum.toString()}`}case"too_small":{const u=l.inclusive?">=":">",f=n(l.origin),m=i(l.origin);return f?`For lille: forventede ${m} ${f.verb} ${u} ${l.minimum.toString()} ${f.unit}`:`For lille: forventede ${m} havde ${u} ${l.minimum.toString()}`}case"invalid_format":{const u=l;return u.format==="starts_with"?`Ugyldig streng: skal starte med "${u.prefix}"`:u.format==="ends_with"?`Ugyldig streng: skal ende med "${u.suffix}"`:u.format==="includes"?`Ugyldig streng: skal indeholde "${u.includes}"`:u.format==="regex"?`Ugyldig streng: skal matche mønsteret ${u.pattern}`:`Ugyldig ${a[u.format]??l.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${l.divisor}`;case"unrecognized_keys":return`${l.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${we(l.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${l.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";
252case"invalid_element":return`Ugyldig værdi i ${l.origin}`;default:return"Ugyldigt input"}}};function MY(){return{localeError:jY()}}const IY=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"Zahl";case"object":{if(Array.isArray(r))return"Array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return r=>{switch(r.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${r.expected}, erhalten ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ungültige Eingabe: erwartet ${Ke(r.values[0])}`:`Ungültige Option: erwartet eine von ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Zu groß: erwartet, dass ${r.origin??"Wert"} ${a}${r.maximum.toString()} ${l.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${r.origin??"Wert"} ${a}${r.maximum.toString()} ist`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Zu klein: erwartet, dass ${r.origin} ${a}${r.minimum.toString()} ${l.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${a}${r.minimum.toString()} ist`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Ungültiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ungültiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ungültiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ungültiger String: muss dem Muster ${a.pattern} entsprechen`:`Ungültig: ${i[a.format]??r.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${we(r.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${r.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${r.origin}`;default:return"Ungültige Eingabe"}}};function PY(){return{localeError:IY()}}const zY=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},UY=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(i){return e[i]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${zY(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${Ke(i.values[0])}`:`Invalid option: expected one of ${we(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${r}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${r}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${r}${i.minimum.toString()}`}
252case"invalid_format":{const r=i;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${we(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function _M(){return{localeError:UY()}}const LY=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},FY=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){return e[i]??null}const n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return i=>{switch(i.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${i.expected}, riceviĝis ${LY(i.input)}`;case"invalid_value":return i.values.length===1?`Nevalida enigo: atendiĝis ${Ke(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${we(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=t(i.origin);return a?`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${r}${i.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=t(i.origin);return a?`Tro malgranda: atendiĝis ke ${i.origin} havu ${r}${i.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${r.prefix}"`:r.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${r.suffix}"`:r.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${r.includes}"`:r.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${n[r.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} ŝlosilo${i.keys.length>1?"j":""}: ${we(i.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function BY(){return{localeError:FY()}}const VY=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol
252:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function n(l){return e[l]??null}function i(l){return t[l]??l}const r=l=>{const u=typeof l;switch(u){case"number":return Number.isNaN(l)?"NaN":"number";case"object":return Array.isArray(l)?"array":l===null?"null":Object.getPrototypeOf(l)!==Object.prototype?l.constructor.name:"object"}return u},a={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return l=>{switch(l.code){case"invalid_type":return`Entrada inválida: se esperaba ${i(l.expected)}, recibido ${i(r(l.input))}`;case"invalid_value":return l.values.length===1?`Entrada inválida: se esperaba ${Ke(l.values[0])}`:`Opción inválida: se esperaba una de ${we(l.values,"|")}`;case"too_big":{const u=l.inclusive?"<=":"<",f=n(l.origin),m=i(l.origin);return f?`Demasiado grande: se esperaba que ${m??"valor"} tuviera ${u}${l.maximum.toString()} ${f.unit??"elementos"}`:`Demasiado grande: se esperaba que ${m??"valor"} fuera ${u}${l.maximum.toString()}`}case"too_small":{const u=l.inclusive?">=":">",f=n(l.origin),m=i(l.origin);return f?`Demasiado pequeño: se esperaba que ${m} tuviera ${u}${l.minimum.toString()} ${f.unit}`:`Demasiado pequeño: se esperaba que ${m} fuera ${u}${l.minimum.toString()}`}case"invalid_format":{const u=l;return u.format==="starts_with"?`Cadena inválida: debe comenzar con "${u.prefix}"`:u.format==="ends_with"?`Cadena inválida: debe terminar en "${u.suffix}"`:u.format==="includes"?`Cadena inválida: debe incluir "${u.includes}"`:u.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${u.pattern}`:`Inválido ${a[u.format]??l.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${l.divisor}`;case"unrecognized_keys":return`Llave${l.keys.length>1?"s":""} desconocida${l.keys.length>1?"s":""}: ${we(l.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i(l.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i(l.origin)}`;default:return"Entrada inválida"}}};function HY(){return{localeError:VY()}}const qY=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"عدد";case"object":{if(Array.isArray(r))return"آرایه";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return r=>{switch(r.code){case"invalid_type":return`ورودی نامعتبر: می‌بایست ${r.expected} می‌بود، ${n(r.input)} دریافت شد`;case"invalid_value":return r.values.length===1?`ورودی نامعتبر: می‌بایست ${Ke(r.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${we(r.values,"|")} می‌بود`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`خیلی بزرگ: ${r.origin??"مقدار"} باید ${a}${r.maximum.toString()} ${l.unit??"عنصر"} باشد`:`خیلی بزرگ: ${r.origin??"مقدار"} باید ${a}${r.maximum.toString()} باشد`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`خیلی کوچک: ${r.origin} باید ${a}${r.minimum.toString()} ${l.unit} باشد`:`خیلی کوچک: ${r.origin} باید ${a}${r.minimum.toString()} باشد`}
252case"invalid_format":{const a=r;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${i[a.format]??r.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${r.divisor} باشد`;case"unrecognized_keys":return`کلید${r.keys.length>1?"های":""} ناشناس: ${we(r.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${r.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${r.origin}`;default:return"ورودی نامعتبر"}}};function ZY(){return{localeError:qY()}}const YY=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return r=>{switch(r.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Virheellinen syöte: täytyy olla ${Ke(r.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Liian suuri: ${l.subject} täytyy olla ${a}${r.maximum.toString()} ${l.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Liian pieni: ${l.subject} täytyy olla ${a}${r.minimum.toString()} ${l.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen syöte: täytyy sisältää "${a.includes}"`:a.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${a.pattern}`:`Virheellinen ${i[a.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${we(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function WY(){return{localeError:YY()}}const GY=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"nombre";case"object":{if(Array.isArray(r))return"tableau";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return r=>
252{switch(r.code){case"invalid_type":return`Entrée invalide : ${r.expected} attendu, ${n(r.input)} reçu`;case"invalid_value":return r.values.length===1?`Entrée invalide : ${Ke(r.values[0])} attendu`:`Option invalide : une valeur parmi ${we(r.values,"|")} attendue`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Trop grand : ${r.origin??"valeur"} doit ${l.verb} ${a}${r.maximum.toString()} ${l.unit??"élément(s)"}`:`Trop grand : ${r.origin??"valeur"} doit être ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Trop petit : ${r.origin} doit ${l.verb} ${a}${r.minimum.toString()} ${l.unit}`:`Trop petit : ${r.origin} doit être ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${a.pattern}`:`${i[a.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${r.divisor}`;case"unrecognized_keys":return`Clé${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${we(r.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${r.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entrée invalide"}}};function KY(){return{localeError:GY()}}const XY=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return r=>{switch(r.code){case"invalid_type":return`Entrée invalide : attendu ${r.expected}, reçu ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrée invalide : attendu ${Ke(r.values[0])}
252`:`Option invalide : attendu l'une des valeurs suivantes ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"≤":"<",l=t(r.origin);return l?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${a}${r.maximum.toString()} ${l.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?"≥":">",l=t(r.origin);return l?`Trop petit : attendu que ${r.origin} ait ${a}${r.minimum.toString()} ${l.unit}`:`Trop petit : attendu que ${r.origin} soit ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au motif ${a.pattern}`:`${i[a.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${r.divisor}`;case"unrecognized_keys":return`Clé${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${we(r.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${r.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entrée invalide"}}};function QY(){return{localeError:XY()}}const JY=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return r=>{switch(r.code){case"invalid_type":return`קלט לא תקין: צריך ${r.expected}, התקבל ${n(r.input)}`;case"invalid_value":return r.values.length===1?`קלט לא תקין: צריך ${Ke(r.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות  ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`גדול מדי: ${r.origin??"value"} צריך להיות ${a}${r.maximum.toString()} ${l.unit??"elements"}`:`גדול מדי: ${r.origin??"value"} צריך להיות ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`קטן מדי: ${r.origin} צריך להיות ${a}${r.minimum.toString()} ${l.unit}`:`קטן מדי: ${r.origin} צריך להיות ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${a.prefix}"`:a.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${a.suffix}"`:a.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${a.includes}"`:a.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${a.pattern}`:`${i[a.format]??r.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${r.divisor}`;case"unrecognized_keys":return`מפתח${r.keys.length>1?"ות":""} לא מזוה${r.keys.length>1?"ים":"ה"}: ${we(r.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${r.origin}`;
252case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${r.origin}`;default:return"קלט לא תקין"}}};function eW(){return{localeError:JY()}}const tW=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"szám";case"object":{if(Array.isArray(r))return"tömb";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return r=>{switch(r.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${r.expected}, a kapott érték ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Érvénytelen bemenet: a várt érték ${Ke(r.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Túl nagy: ${r.origin??"érték"} mérete túl nagy ${a}${r.maximum.toString()} ${l.unit??"elem"}`:`Túl nagy: a bemeneti érték ${r.origin??"érték"} túl nagy: ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Túl kicsi: a bemeneti érték ${r.origin} mérete túl kicsi ${a}${r.minimum.toString()} ${l.unit}`:`Túl kicsi: a bemeneti érték ${r.origin} túl kicsi ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Érvénytelen string: "${a.prefix}" értékkel kell kezdődnie`:a.format==="ends_with"?`Érvénytelen string: "${a.suffix}" értékkel kell végződnie`:a.format==="includes"?`Érvénytelen string: "${a.includes}" értéket kell tartalmaznia`:a.format==="regex"?`Érvénytelen string: ${a.pattern} mintának kell megfelelnie`:`Érvénytelen ${i[a.format]??r.format}`}case"not_multiple_of":return`Érvénytelen szám: ${r.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${we(r.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${r.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${r.origin}`;default:return"Érvénytelen bemenet"}}};function nW(){return{localeError:tW()}}const rW=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Input tidak valid: diharapkan ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${Ke(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${we(r.values,"|")}`;
252case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${a}${r.maximum.toString()} ${l.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Terlalu kecil: diharapkan ${r.origin} memiliki ${a}${r.minimum.toString()} ${l.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${i[a.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${we(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function iW(){return{localeError:rW()}}const oW=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},aW=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(i){return e[i]??null}const n={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"};return i=>{switch(i.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${oW(i.input)} þar sem á að vera ${i.expected}`;case"invalid_value":return i.values.length===1?`Rangt gildi: gert ráð fyrir ${Ke(i.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${we(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=t(i.origin);return a?`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} hafi ${r}${i.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} sé ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=t(i.origin);return a?`Of lítið: gert er ráð fyrir að ${i.origin} hafi ${r}${i.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${i.origin} sé ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Ógildur strengur: verður að byrja á "${r.prefix}"`:r.format==="ends_with"?`Ógildur strengur: verður að enda á "${r.suffix}"`:r.format==="includes"?`Ógildur strengur: verður að innihalda "${r.includes}"`:r.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${r.pattern}`:`Rangt ${n[r.format]??i.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`Óþekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${we(i.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${i.origin}`;default:return"Rangt gildi"}}};function sW(){return{localeError:aW()}}const lW=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"numero";case"object":{if(Array.isArray(r))return"vettore";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return r=>
252{switch(r.code){case"invalid_type":return`Input non valido: atteso ${r.expected}, ricevuto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input non valido: atteso ${Ke(r.values[0])}`:`Opzione non valida: atteso uno tra ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Troppo grande: ${r.origin??"valore"} deve avere ${a}${r.maximum.toString()} ${l.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Troppo piccolo: ${r.origin} deve avere ${a}${r.minimum.toString()} ${l.unit}`:`Troppo piccolo: ${r.origin} deve essere ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${i[a.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${we(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function cW(){return{localeError:lW()}}const uW=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"数値";case"object":{if(Array.isArray(r))return"配列";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return r=>{switch(r.code){case"invalid_type":return`無効な入力: ${r.expected}が期待されましたが、${n(r.input)}が入力されました`;case"invalid_value":return r.values.length===1?`無効な入力: ${Ke(r.values[0])}が期待されました`:`無効な選択: ${we(r.values,"、")}のいずれかである必要があります`;case"too_big":{const a=r.inclusive?"以下である":"より小さい",l=t(r.origin);return l?`大きすぎる値: ${r.origin??"値"}は${r.maximum.toString()}${l.unit??"要素"}${a}必要があります`:`大きすぎる値: ${r.origin??"値"}は${r.maximum.toString()}${a}必要があります`}case"too_small":{const a=r.inclusive?"以上である":"より大きい",l=t(r.origin);return l?`小さすぎる値: ${r.origin}は${r.minimum.toString()}${l.unit}${a}必要があります`:`小さすぎる値: ${r.origin}は${r.minimum.toString()}${a}必要があります`}case"invalid_format":{const a=r;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${i[a.format]??r.format}`}case"not_multiple_of":return`無効な数値: ${r.divisor}の倍数である必要があります`;
252case"unrecognized_keys":return`認識されていないキー${r.keys.length>1?"群":""}: ${we(r.keys,"、")}`;case"invalid_key":return`${r.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${r.origin}内の無効な値`;default:return"無効な入力"}}};function dW(){return{localeError:uW()}}const fW=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[t]??t},mW=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(i){return e[i]??null}const n={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return i=>{switch(i.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${i.expected}, მიღებული ${fW(i.input)}`;case"invalid_value":return i.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Ke(i.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${we(i.values,"|")}-დან`;case"too_big":{const r=i.inclusive?"<=":"<",a=t(i.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} ${a.verb} ${r}${i.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} იყოს ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=t(i.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${i.origin} ${a.verb} ${r}${i.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${i.origin} იყოს ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${r.prefix}"-ით`:r.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${r.suffix}"-ით`:r.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${r.includes}"-ს`:r.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${r.pattern}`:`არასწორი ${n[r.format]??i.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${i.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${i.keys.length>1?"ები":"ი"}: ${we(i.keys,", ")}`;
252case"invalid_key":return`არასწორი გასაღები ${i.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${i.origin}-ში`;default:return"არასწორი შეყვანა"}}};function hW(){return{localeError:mW()}}const pW=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(r))return"អារេ (Array)";if(r===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return r=>{switch(r.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${r.expected} ប៉ុន្តែទទួលបាន ${n(r.input)}`;case"invalid_value":return r.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Ke(r.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`ធំពេក៖ ត្រូវការ ${r.origin??"តម្លៃ"} ${a} ${r.maximum.toString()} ${l.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${r.origin??"តម្លៃ"} ${a} ${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`តូចពេក៖ ត្រូវការ ${r.origin} ${a} ${r.minimum.toString()} ${l.unit}`:`តូចពេក៖ ត្រូវការ ${r.origin} ${a} ${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${i[a.format]??r.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${r.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${we(r.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;
252case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function SM(){return{localeError:pW()}}function gW(){return SM()}const vW=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return r=>{switch(r.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${r.expected}, 받은 타입은 ${n(r.input)}입니다`;case"invalid_value":return r.values.length===1?`잘못된 입력: 값은 ${Ke(r.values[0])} 이어야 합니다`:`잘못된 옵션: ${we(r.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=r.inclusive?"이하":"미만",l=a==="미만"?"이어야 합니다":"여야 합니다",u=t(r.origin),f=(u==null?void 0:u.unit)??"요소";return u?`${r.origin??"값"}이 너무 큽니다: ${r.maximum.toString()}${f} ${a}${l}`:`${r.origin??"값"}이 너무 큽니다: ${r.maximum.toString()} ${a}${l}`}case"too_small":{const a=r.inclusive?"이상":"초과",l=a==="이상"?"이어야 합니다":"여야 합니다",u=t(r.origin),f=(u==null?void 0:u.unit)??"요소";return u?`${r.origin??"값"}이 너무 작습니다: ${r.minimum.toString()}${f} ${a}${l}`:`${r.origin??"값"}이 너무 작습니다: ${r.minimum.toString()} ${a}${l}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${i[a.format]??r.format}`}case"not_multiple_of":return`잘못된 숫자: ${r.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${we(r.keys,", ")}`;case"invalid_key":return`잘못된 키: ${r.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${r.origin}`;default:return"잘못된 입력"}}};function yW(){return{localeError:vW()}}const bW=e=>gd(typeof e,e),gd=(e,t=void 0)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return t===void 0?"nežinomas objektas":t===null?"nulinė reikšmė":Array.isArray(t)?"masyvas":Object.getPrototypeOf(t)!==Object.prototype&&t.constructor?t.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},id=e=>e.charAt(0).toUpperCase()+e.slice(1);function kR(e){const t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}const _W=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(i,r,a,l){const u=e[i]??null;return u===null?u:{unit:u.unit[r],verb:u.verb[l][a?"inclusive":"notInclusive"]}}const n={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return i=>
252{switch(i.code){case"invalid_type":return`Gautas tipas ${bW(i.input)}, o tikėtasi - ${gd(i.expected)}`;case"invalid_value":return i.values.length===1?`Privalo būti ${Ke(i.values[0])}`:`Privalo būti vienas iš ${we(i.values,"|")} pasirinkimų`;case"too_big":{const r=gd(i.origin),a=t(i.origin,kR(Number(i.maximum)),i.inclusive??!1,"smaller");if(a!=null&&a.verb)return`${id(r??i.origin??"reikšmė")} ${a.verb} ${i.maximum.toString()} ${a.unit??"elementų"}`;const l=i.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${id(r??i.origin??"reikšmė")} turi būti ${l} ${i.maximum.toString()} ${a==null?void 0:a.unit}`}case"too_small":{const r=gd(i.origin),a=t(i.origin,kR(Number(i.minimum)),i.inclusive??!1,"bigger");if(a!=null&&a.verb)return`${id(r??i.origin??"reikšmė")} ${a.verb} ${i.minimum.toString()} ${a.unit??"elementų"}`;const l=i.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${id(r??i.origin??"reikšmė")} turi būti ${l} ${i.minimum.toString()} ${a==null?void 0:a.unit}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Eilutė privalo prasidėti "${r.prefix}"`:r.format==="ends_with"?`Eilutė privalo pasibaigti "${r.suffix}"`:r.format==="includes"?`Eilutė privalo įtraukti "${r.includes}"`:r.format==="regex"?`Eilutė privalo atitikti ${r.pattern}`:`Neteisingas ${n[r.format]??i.format}`}case"not_multiple_of":return`Skaičius privalo būti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${we(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const r=gd(i.origin);return`${id(r??i.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function SW(){return{localeError:_W()}}const wW=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"број";case"object":{if(Array.isArray(r))return"низа";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return r=>{switch(r.code){case"invalid_type":return`Грешен внес: се очекува ${r.expected}, примено ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${Ke(r.values[0])}`:`Грешана опција: се очекува една ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Премногу голем: се очекува ${r.origin??"вредноста"} да има ${a}${r.maximum.toString()} ${l.unit??"елементи"}`:`Премногу голем: се очекува ${r.origin??"вредноста"} да биде ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Премногу мал: се очекува ${r.origin} да има ${a}${r.minimum.toString()} ${l.unit}`:`Премногу мал: се очекува ${r.origin} да биде ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${i[a.format]??r.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${we(r.keys,", ")}`;
252case"invalid_key":return`Грешен клуч во ${r.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${r.origin}`;default:return"Грешен внес"}}};function xW(){return{localeError:wW()}}const EW=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"nombor";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Input tidak sah: dijangka ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${Ke(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Terlalu besar: dijangka ${r.origin??"nilai"} ${l.verb} ${a}${r.maximum.toString()} ${l.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Terlalu kecil: dijangka ${r.origin} ${l.verb} ${a}${r.minimum.toString()} ${l.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${i[a.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${we(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function kW(){return{localeError:EW()}}const OW=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"getal";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return r=>{switch(r.code){case"invalid_type":return`Ongeldige invoer: verwacht ${r.expected}, ontving ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${Ke(r.values[0])}`:`Ongeldige optie: verwacht één van ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Te lang: verwacht dat ${r.origin??"waarde"} ${a}${r.maximum.toString()} ${l.unit??"elementen"} bevat`:`Te lang: verwacht dat ${r.origin??"waarde"} ${a}${r.maximum.toString()} is`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Te kort: verwacht dat ${r.origin} ${a}${r.minimum.toString()} ${l.unit} bevat`:`Te kort: verwacht dat ${r.origin} ${a}${r.minimum.toString()} is`}
252case"invalid_format":{const a=r;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${i[a.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${we(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function TW(){return{localeError:OW()}}const RW=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"tall";case"object":{if(Array.isArray(r))return"liste";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Ugyldig input: forventet ${r.expected}, fikk ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${Ke(r.values[0])}`:`Ugyldig valg: forventet en av ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`For stor(t): forventet ${r.origin??"value"} til å ha ${a}${r.maximum.toString()} ${l.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til å ha ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`For lite(n): forventet ${r.origin} til å ha ${a}${r.minimum.toString()} ${l.unit}`:`For lite(n): forventet ${r.origin} til å ha ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Ugyldig streng: må starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: må ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: må inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: må matche mønsteret ${a.pattern}`:`Ugyldig ${i[a.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${we(r.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function $W(){return{localeError:RW()}}const NW=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"numara";case"object":{if(Array.isArray(r))return"saf";if(r===null)return"gayb";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return r=>
252{switch(r.code){case"invalid_type":return`Fâsit giren: umulan ${r.expected}, alınan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Fâsit giren: umulan ${Ke(r.values[0])}`:`Fâsit tercih: mûteberler ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Fazla büyük: ${r.origin??"value"}, ${a}${r.maximum.toString()} ${l.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${r.origin??"value"}, ${a}${r.maximum.toString()} olmalıydı.`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Fazla küçük: ${r.origin}, ${a}${r.minimum.toString()} ${l.unit} sahip olmalıydı.`:`Fazla küçük: ${r.origin}, ${a}${r.minimum.toString()} olmalıydı.`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Fâsit metin: "${a.prefix}" ile başlamalı.`:a.format==="ends_with"?`Fâsit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`Fâsit metin: "${a.includes}" ihtivâ etmeli.`:a.format==="regex"?`Fâsit metin: ${a.pattern} nakşına uymalı.`:`Fâsit ${i[a.format]??r.format}`}case"not_multiple_of":return`Fâsit sayı: ${r.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${r.keys.length>1?"s":""}: ${we(r.keys,", ")}`;case"invalid_key":return`${r.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${r.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function DW(){return{localeError:NW()}}const CW=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"عدد";case"object":{if(Array.isArray(r))return"ارې";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return r=>{switch(r.code){case"invalid_type":return`ناسم ورودي: باید ${r.expected} وای, مګر ${n(r.input)} ترلاسه شو`;case"invalid_value":return r.values.length===1?`ناسم ورودي: باید ${Ke(r.values[0])} وای`:`ناسم انتخاب: باید یو له ${we(r.values,"|")} څخه وای`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`ډیر لوی: ${r.origin??"ارزښت"} باید ${a}${r.maximum.toString()} ${l.unit??"عنصرونه"} ولري`:`ډیر لوی: ${r.origin??"ارزښت"} باید ${a}${r.maximum.toString()} وي`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`ډیر کوچنی: ${r.origin} باید ${a}${r.minimum.toString()} ${l.unit} ولري`:`ډیر کوچنی: ${r.origin} باید ${a}${r.minimum.toString()} وي`}case"invalid_format":{const a=r;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${i[a.format]??r.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${r.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${r.keys.length>1?"کلیډونه":"کلیډ"}: ${we(r.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${r.origin} کې`;case"invalid_union":return"ناسمه ورودي";
252case"invalid_element":return`ناسم عنصر په ${r.origin} کې`;default:return"ناسمه ورودي"}}};function AW(){return{localeError:CW()}}const jW=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"liczba";case"object":{if(Array.isArray(r))return"tablica";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return r=>{switch(r.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${r.expected}, otrzymano ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Ke(r.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Za duża wartość: oczekiwano, że ${r.origin??"wartość"} będzie mieć ${a}${r.maximum.toString()} ${l.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??"wartość"} będzie wynosić ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Za mała wartość: oczekiwano, że ${r.origin??"wartość"} będzie mieć ${a}${r.minimum.toString()} ${l.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${r.origin??"wartość"} będzie wynosić ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${a.prefix}"`:a.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${a.suffix}"`:a.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${a.includes}"`:a.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${a.pattern}`:`Nieprawidłow(y/a/e) ${i[a.format]??r.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${we(r.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${r.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${r.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function MW(){return{localeError:jW()}}const IW=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"número";case"object":{if(Array.isArray(r))return"array";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return r=>
252{switch(r.code){case"invalid_type":return`Tipo inválido: esperado ${r.expected}, recebido ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inválida: esperado ${Ke(r.values[0])}`:`Opção inválida: esperada uma das ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${a}${r.maximum.toString()} ${l.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Muito pequeno: esperado que ${r.origin} tivesse ${a}${r.minimum.toString()} ${l.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Texto inválido: deve começar com "${a.prefix}"`:a.format==="ends_with"?`Texto inválido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inválido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inválido: deve corresponder ao padrão ${a.pattern}`:`${i[a.format]??r.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${we(r.keys,", ")}`;case"invalid_key":return`Chave inválida em ${r.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${r.origin}`;default:return"Campo inválido"}}};function PW(){return{localeError:IW()}}function OR(e,t,n,i){const r=Math.abs(e),a=r%10,l=r%100;return l>=11&&l<=19?i:a===1?t:a>=2&&a<=4?n:i}const zW=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"число";case"object":{if(Array.isArray(r))return"массив";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return r=>{switch(r.code){case"invalid_type":return`Неверный ввод: ожидалось ${r.expected}, получено ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Неверный ввод: ожидалось ${Ke(r.values[0])}`:`Неверный вариант: ожидалось одно из ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);if(l){const u=Number(r.maximum),f=OR(u,l.unit.one,l.unit.few,l.unit.many);return`Слишком большое значение: ожидалось, что ${r.origin??"значение"} будет иметь ${a}${r.maximum.toString()} ${f}`}return`Слишком большое значение: ожидалось, что ${r.origin??"значение"} будет ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);if(l){const u=Number(r.minimum),f=OR(u,l.unit.one,l.unit.few,l.unit.many);return`Слишком маленькое значение: ожидалось, что ${r.origin} будет иметь ${a}${r.minimum.toString()} ${f}`}return`Слишком маленькое значение: ожидалось, что ${r.origin} будет ${a}${r.minimum.toString()}`}
252case"invalid_format":{const a=r;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${i[a.format]??r.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${r.divisor}`;case"unrecognized_keys":return`Нераспознанн${r.keys.length>1?"ые":"ый"} ключ${r.keys.length>1?"и":""}: ${we(r.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${r.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${r.origin}`;default:return"Неверные входные данные"}}};function UW(){return{localeError:zW()}}const LW=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"število";case"object":{if(Array.isArray(r))return"tabela";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return r=>{switch(r.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${r.expected}, prejeto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neveljaven vnos: pričakovano ${Ke(r.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Preveliko: pričakovano, da bo ${r.origin??"vrednost"} imelo ${a}${r.maximum.toString()} ${l.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${r.origin??"vrednost"} ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Premajhno: pričakovano, da bo ${r.origin} imelo ${a}${r.minimum.toString()} ${l.unit}`:`Premajhno: pričakovano, da bo ${r.origin} ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Neveljaven niz: mora se začeti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se končati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${i[a.format]??r.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i ključi":" ključ"}: ${we(r.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function FW(){return{localeError:LW()}}const BW=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"antal";case"object":{if(Array.isArray(r))return"lista";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return r=>
252{switch(r.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${r.expected}, fick ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ogiltig inmatning: förväntat ${Ke(r.values[0])}`:`Ogiltigt val: förväntade en av ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`För stor(t): förväntade ${r.origin??"värdet"} att ha ${a}${r.maximum.toString()} ${l.unit??"element"}`:`För stor(t): förväntat ${r.origin??"värdet"} att ha ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`För lite(t): förväntade ${r.origin??"värdet"} att ha ${a}${r.minimum.toString()} ${l.unit}`:`För lite(t): förväntade ${r.origin??"värdet"} att ha ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Ogiltig sträng: måste börja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig sträng: måste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig sträng: måste innehålla "${a.includes}"`:a.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${a.pattern}"`:`Ogiltig(t) ${i[a.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${we(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${r.origin??"värdet"}`;default:return"Ogiltig input"}}};function VW(){return{localeError:BW()}}const HW=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(r))return"அணி";
252if(r===null)return"வெறுமை";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${r.expected}, பெறப்பட்டது ${n(r.input)}`;case"invalid_value":return r.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Ke(r.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${we(r.values,"|")} இல் ஒன்று`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??"மதிப்பு"} ${a}${r.maximum.toString()} ${l.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??"மதிப்பு"} ${a}${r.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${a}${r.minimum.toString()} ${l.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${a}${r.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const a=r;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${i[a.format]??r.format}`}case"not_multiple_of":return`தவறான எண்: ${r.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${r.keys.length>1?"கள்":""}: ${we(r.keys,", ")}`;case"invalid_key":return`${r.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${r.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function qW(){return{localeError:HW()}}const ZW=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(r))return"อาร์เรย์ (Array)";if(r===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return r=>
252{switch(r.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${r.expected} แต่ได้รับ ${n(r.input)}`;case"invalid_value":return r.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Ke(r.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"ไม่เกิน":"น้อยกว่า",l=t(r.origin);return l?`เกินกำหนด: ${r.origin??"ค่า"} ควรมี${a} ${r.maximum.toString()} ${l.unit??"รายการ"}`:`เกินกำหนด: ${r.origin??"ค่า"} ควรมี${a} ${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?"อย่างน้อย":"มากกว่า",l=t(r.origin);return l?`น้อยกว่ากำหนด: ${r.origin} ควรมี${a} ${r.minimum.toString()} ${l.unit}`:`น้อยกว่ากำหนด: ${r.origin} ควรมี${a} ${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${i[a.format]??r.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${r.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${we(r.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${r.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${r.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function YW(){return{localeError:ZW()}}const WW=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},GW=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(i){return e[i]??null}const n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return i=>{switch(i.code){case"invalid_type":return`Geçersiz değer: beklenen ${i.expected}, alınan ${WW(i.input)}`;case"invalid_value":return i.values.length===1?`Geçersiz değer: beklenen ${Ke(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${we(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=t(i.origin);return a?`Çok büyük: beklenen ${i.origin??"değer"} ${r}${i.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${i.origin??"değer"} ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=t(i.origin);return a?`Çok küçük: beklenen ${i.origin} ${r}${i.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${i.origin} ${r}${i.minimum.toString()}`}
252case"invalid_format":{const r=i;return r.format==="starts_with"?`Geçersiz metin: "${r.prefix}" ile başlamalı`:r.format==="ends_with"?`Geçersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Geçersiz metin: "${r.includes}" içermeli`:r.format==="regex"?`Geçersiz metin: ${r.pattern} desenine uymalı`:`Geçersiz ${n[r.format]??i.format}`}case"not_multiple_of":return`Geçersiz sayı: ${i.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${i.keys.length>1?"lar":""}: ${we(i.keys,", ")}`;case"invalid_key":return`${i.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${i.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function KW(){return{localeError:GW()}}const XW=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"число";case"object":{if(Array.isArray(r))return"масив";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return r=>{switch(r.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${r.expected}, отримано ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Неправильні вхідні дані: очікується ${Ke(r.values[0])}`:`Неправильна опція: очікується одне з ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Занадто велике: очікується, що ${r.origin??"значення"} ${l.verb} ${a}${r.maximum.toString()} ${l.unit??"елементів"}`:`Занадто велике: очікується, що ${r.origin??"значення"} буде ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Занадто мале: очікується, що ${r.origin} ${l.verb} ${a}${r.minimum.toString()} ${l.unit}`:`Занадто мале: очікується, що ${r.origin} буде ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${i[a.format]??r.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${r.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${r.keys.length>1?"і":""}: ${we(r.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${r.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${r.origin}`;default:return"Неправильні вхідні дані"}}};function wM(){return{localeError:XW()}}function QW(){return wM()}const JW=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"نمبر";case"object":{if(Array.isArray(r))return"آرے";if(r===null)return"نل";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return r=>
252{switch(r.code){case"invalid_type":return`غلط ان پٹ: ${r.expected} متوقع تھا، ${n(r.input)} موصول ہوا`;case"invalid_value":return r.values.length===1?`غلط ان پٹ: ${Ke(r.values[0])} متوقع تھا`:`غلط آپشن: ${we(r.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`بہت بڑا: ${r.origin??"ویلیو"} کے ${a}${r.maximum.toString()} ${l.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${r.origin??"ویلیو"} کا ${a}${r.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`بہت چھوٹا: ${r.origin} کے ${a}${r.minimum.toString()} ${l.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${r.origin} کا ${a}${r.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const a=r;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${i[a.format]??r.format}`}case"not_multiple_of":return`غلط نمبر: ${r.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${r.keys.length>1?"ز":""}: ${we(r.keys,"، ")}`;case"invalid_key":return`${r.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${r.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function eG(){return{localeError:JW()}}const tG=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"số";case"object":{if(Array.isArray(r))return"mảng";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return r=>{switch(r.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${r.expected}, nhận được ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Ke(r.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Quá lớn: mong đợi ${r.origin??"giá trị"} ${l.verb} ${a}${r.maximum.toString()} ${l.unit??"phần tử"}`:`Quá lớn: mong đợi ${r.origin??"giá trị"} ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Quá nhỏ: mong đợi ${r.origin} ${l.verb} ${a}${r.minimum.toString()} ${l.unit}`:`Quá nhỏ: mong đợi ${r.origin} ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${a.prefix}"`:a.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${a.suffix}"`:a.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${a.includes}"`:a.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${a.pattern}`:`${i[a.format]??r.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${r.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${we(r.keys,", ")}`;
252case"invalid_key":return`Khóa không hợp lệ trong ${r.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${r.origin}`;default:return"Đầu vào không hợp lệ"}}};function nG(){return{localeError:tG()}}const rG=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(r))return"数组";if(r===null)return"空值(null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return r=>{switch(r.code){case"invalid_type":return`无效输入:期望 ${r.expected},实际接收 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`无效输入:期望 ${Ke(r.values[0])}`:`无效选项:期望以下之一 ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`数值过大:期望 ${r.origin??"值"} ${a}${r.maximum.toString()} ${l.unit??"个元素"}`:`数值过大:期望 ${r.origin??"值"} ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`数值过小:期望 ${r.origin} ${a}${r.minimum.toString()} ${l.unit}`:`数值过小:期望 ${r.origin} ${a}${r.minimum.toString()}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${i[a.format]??r.format}`}case"not_multiple_of":return`无效数字:必须是 ${r.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${we(r.keys,", ")}`;case"invalid_key":return`${r.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${r.origin} 中包含无效值(value)`;default:return"无效输入"}}};function iG(){return{localeError:rG()}}const oG=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return r=>{switch(r.code){case"invalid_type":return`無效的輸入值:預期為 ${r.expected},但收到 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`無效的輸入值:預期為 ${Ke(r.values[0])}`:`無效的選項:預期為以下其中之一 ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`數值過大:預期 ${r.origin??"值"} 應為 ${a}${r.maximum.toString()} ${l.unit??"個元素"}`:`數值過大:預期 ${r.origin??"值"} 應為 ${a}${r.maximum.toString()}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`數值過小:預期 ${r.origin} 應為 ${a}${r.minimum.toString()} ${l.unit}`:`數值過小:預期 ${r.origin} 應為 ${a}${r.minimum.toString()}`}
252case"invalid_format":{const a=r;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${i[a.format]??r.format}`}case"not_multiple_of":return`無效的數字:必須為 ${r.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${r.keys.length>1?"們":""}:${we(r.keys,"、")}`;case"invalid_key":return`${r.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${r.origin} 中有無效的值`;default:return"無效的輸入值"}}};function aG(){return{localeError:oG()}}const sG=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(r){return e[r]??null}const n=r=>{const a=typeof r;switch(a){case"number":return Number.isNaN(r)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(r))return"akopọ";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return a},i={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return r=>{switch(r.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${r.expected}, àmọ̀ a rí ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${Ke(r.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${we(r.values,"|")}`;case"too_big":{const a=r.inclusive?"<=":"<",l=t(r.origin);return l?`Tó pọ̀ jù: a ní láti jẹ́ pé ${r.origin??"iye"} ${l.verb} ${a}${r.maximum} ${l.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${r.maximum}`}case"too_small":{const a=r.inclusive?">=":">",l=t(r.origin);return l?`Kéré ju: a ní láti jẹ́ pé ${r.origin} ${l.verb} ${a}${r.minimum} ${l.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${r.minimum}`}case"invalid_format":{const a=r;return a.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${a.prefix}"`:a.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${a.suffix}"`:a.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${a.includes}"`:a.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${i[a.format]??r.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${r.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${we(r.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${r.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${r.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function lG(){return{localeError:sG()}}const xM=Object.freeze(Object.defineProperty({__proto__:null,ar:wY,az:EY,be:OY,bg:$Y,ca:DY,cs:AY,da:MY,de:PY,en:_M,eo:BY,es:HY,fa:ZY,fi:WY,fr:KY,frCA:QY,he:eW,hu:nW,id:iW,is:sW,it:cW,ja:dW,ka:hW,kh:gW,km:SM,ko:yW,lt:SW,mk:xW,ms:kW,nl:TW,no:$W,ota:DW,pl:MW,ps:AW,pt:PW,ru:UW,sl:FW,sv:VW,ta:qW,th:YW,tr:KW,ua:QW,uk:wM,ur:eG,vi:nG,yo:lG,zhCN:iG,zhTW:aG},Symbol.toStringTag,{value:"Module"})),EM=Symbol("ZodOutput"),kM=Symbol("ZodInput");class lw{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const i=n[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};delete i.id;const r={...i,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function cw(){return new lw}const us=cw();function OM(e,t){return new e({type:"string",...Se(t)})}function TM(e,t){return new e({type:"string",coerce:!0,...Se(t)})}function uw(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Se(t)})}function Gh(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Se(t)})}function dw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Se(t)})}function fw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Se(t)})}function mw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Se(t)})}function hw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Se(t)})}function Lp(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Se(t)})}function pw(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Se(t)})}function gw(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Se(t)})}function vw(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Se(t)})}function yw(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Se(t)})}function bw(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Se(t)})}function _w(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Se(t)})}function Sw(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Se(t)})}function ww(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Se(t)})}function xw(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Se(t)})}function Ew(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Se(t)})}function kw(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Se(t)})}function Ow(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Se(t)})}function Tw(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Se(t)})}function Rw(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Se(t)})}function $w(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Se(t)})}const RM={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function $M(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Se(t)})}function NM(e,t){return new e({type:"string",format:"date",check:"string_format",...Se(t)})}function DM(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Se(t)})}function CM(e,t){return new e({type:"string",format:"duration",check:"string_format",...Se(t)})}function AM(e,t){return new e({type:"number",checks:[],...Se(t)})}function jM(e,t){return new e({type:"number",coerce:!0,checks:[],...Se(t)})}function MM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Se(t)})}function IM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...Se(t)})}function PM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...Se(t)})}function zM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...Se(t)})}function UM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...Se(t)})}function LM(e,t){return new e({type:"boolean",...Se(t)})}function FM(e,t){return new e({type:"boolean",coerce:!0,...Se(t)})}function BM(e,t){return new e({type:"bigint",...Se(t)})}
vendor: 2,297 bytes, line 252
252function VM(e,t){return new e({type:"bigint",coerce:!0,...Se(t)})}function HM(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Se(t)})}function qM(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Se(t)})}function ZM(e,t){return new e({type:"symbol",...Se(t)})}function YM(e,t){return new e({type:"undefined",...Se(t)})}function WM(e,t){return new e({type:"null",...Se(t)})}function GM(e){return new e({type:"any"})}function KM(e){return new e({type:"unknown"})}function XM(e,t){return new e({type:"never",...Se(t)})}function QM(e,t){return new e({type:"void",...Se(t)})}function JM(e,t){return new e({type:"date",...Se(t)})}function eI(e,t){return new e({type:"date",coerce:!0,...Se(t)})}function tI(e,t){return new e({type:"nan",...Se(t)})}function Us(e,t){return new JS({check:"less_than",...Se(t),value:e,inclusive:!1})}function ci(e,t){return new JS({check:"less_than",...Se(t),value:e,inclusive:!0})}function Ls(e,t){return new ew({check:"greater_than",...Se(t),value:e,inclusive:!1})}function Or(e,t){return new ew({check:"greater_than",...Se(t),value:e,inclusive:!0})}function nI(e){return Ls(0,e)}function rI(e){return Us(0,e)}function iI(e){return ci(0,e)}function oI(e){return Or(0,e)}function Dd(e,t){return new VA({check:"multiple_of",...Se(t),value:e})}function Fp(e,t){return new ZA({check:"max_size",...Se(t),maximum:e})}function Cd(e,t){return new YA({check:"min_size",...Se(t),minimum:e})}function Nw(e,t){return new WA({check:"size_equals",...Se(t),size:e})}function Bp(e,t){return new GA({check:"max_length",...Se(t),maximum:e})}function $c(e,t){return new KA({check:"min_length",...Se(t),minimum:e})}function Vp(e,t){return new XA({check:"length_equals",...Se(t),length:e})}function Dw(e,t){return new QA({check:"string_format",format:"regex",...Se(t),pattern:e})}function Cw(e){return new JA({check:"string_format",format:"lowercase",...Se(e)})}function Aw(e){return new ej({check:"string_format",format:"uppercase",...Se(e)})}function jw(e,t){return new tj({check:"string_format",format:"includes",...Se(t),includes:e})}function Mw(e,t){return new nj({check:"string_format",format:"starts_with",...Se(t),prefix:e})}function Iw(e,t){return new rj({check:"string_format",format:"ends_with",...Se(t),suffix:e})}
252function aI(e,t,n){return new ij({check:"property",property:e,schema:t,...Se(n)})}function Pw(e,t){return new oj({check:"mime_type",mime:e,...Se(t)})}function Qs(e){return new aj({check:"overwrite",tx:e})}function zw(e){return Qs(t=>t.normalize(e))}function Uw(){return Qs(e=>e.trim())}function Lw(){return Qs(e=>e.toLowerCase())}function Fw(){return Qs(e=>e.toUpperCase())}function sI(e,t,n){return new e({type:"array",element:t,...Se(n)})}function cG(e,t,n){return new e({type:"union",options:t,...Se(n)})}function uG(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...Se(i)})}function dG(e,t,n){return new e({type:"intersection",left:t,right:n})}function fG(e,t,n,i){const r=n instanceof Je,a=r?i:n,l=r?n:null;return new e({type:"tuple",items:t,rest:l,...Se(a)})}function mG(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...Se(i)})}function hG(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...Se(i)})}function pG(e,t,n){return new e({type:"set",valueType:t,...Se(n)})}function gG(e,t,n){const i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...Se(n)})}function vG(e,t,n){return new e({type:"enum",entries:t,...Se(n)})}function yG(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...Se(n)})}function lI(e,t){return new e({type:"file",...Se(t)})}function bG(e,t){return new e({type:"transform",transform:t})}function _G(e,t){return new e({type:"optional",innerType:t})}function SG(e,t){return new e({type:"nullable",innerType:t})}function wG(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Ip(n)}})}function xG(e,t,n){return new e({type:"nonoptional",innerType:t,...Se(n)})}function EG(e,t){return new e({type:"success",innerType:t})}function kG(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function OG(e,t,n){return new e({type:"pipe",in:t,out:n})}function TG(e,t){return new e({type:"readonly",innerType:t})}function RG(e,t,n){return new e({type:"template_literal",parts:t,...Se(n)})}function $G(e,t){return new e({type:"lazy",getter:t})}function NG(e,t){return new e({type:"promise",innerType:t})}function cI(e,t,n){const i=Se(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function uI(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Se(n)})}function dI(e){const t=fI(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(Tc(i,n.value,t._zod.def));else{const r=i;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(Tc(r))}},e(n.value,n)));return t}function fI(e,t){const n=new Kt({check:"custom",...Se(t)});return n._zod.check=e,n}function mI(e,t){const n=Se(t);let i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(_=>typeof _=="string"?_.toLowerCase():_),r=r.map(_=>typeof _=="string"?_.toLowerCase():_));const a=new Set(i),l=new Set(r),u=e.Codec??sw,f=e.Boolean??rw,m=e.String??hf,h=new m({type:"string",error:n.error}),g=new f({type:"boolean",error:n.error}),b=new u({type:"pipe",in:h,out:g,transform:(_,S)=>{let w=_;return n.case!=="sensitive"&&(w=w.toLowerCase()),a.has(w)?!0:l.has(w)?!1:(S.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...l],input:S.value,inst:b,continue:!1}),{})},reverseTransform:(_,S)=>_===!0?i[0]||"true":r[0]||"false",error:n.error});return b}function pf(e,t,n,i={}){const r=Se(i),a={...Se(i),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:u=>n.test(u),...r};return n instanceof RegExp&&(a.pattern=n),new e(a)}class D_{constructor(t){this.counter=0,this.metadataRegistry=(t==null?void 0:t.metadata)??us,this.target=(t==null?void 0:t.target)??"draft-2020-12",this.unrepresentable=(t==null?void 0:t.unrepresentable)??"throw",this.override=(t==null?void 0:t.override)??(()=>{}),this.io=(t==null?void 0:t.io)??"output",this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var g,b,_;var i;const r=t._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},l=this.seen.get(t);if(l)return l.count++,n.schemaPath.includes(t)&&(l.cycle=n.path),l.schema;const u={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(t,u);const f=(b=(g=t._zod).toJSONSchema)==null?void 0:b.call(g);if(f)u.schema=f;else{const S={...n,schemaPath:[...n.schemaPath,t],path:n.path},w=t._zod.parent;if(w)u.ref=w,this.process(w,S),this.seen.get(w).isParent=!0;else{const x=u.schema;switch(r.type){case"string":{const E=x;E.type="string";const{minimum:O,maximum:R,format:$,patterns:N,contentEncoding:M}=t._zod.bag;
252if(typeof O=="number"&&(E.minLength=O),typeof R=="number"&&(E.maxLength=R),$&&(E.format=a[$]??$,E.format===""&&delete E.format),M&&(E.contentEncoding=M),N&&N.size>0){const C=[...N];C.length===1?E.pattern=C[0].source:C.length>1&&(u.schema.allOf=[...C.map(I=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:I.source}))])}break}case"number":{const E=x,{minimum:O,maximum:R,format:$,multipleOf:N,exclusiveMaximum:M,exclusiveMinimum:C}=t._zod.bag;typeof $=="string"&&$.includes("int")?E.type="integer":E.type="number",typeof C=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(E.minimum=C,E.exclusiveMinimum=!0):E.exclusiveMinimum=C),typeof O=="number"&&(E.minimum=O,typeof C=="number"&&this.target!=="draft-4"&&(C>=O?delete E.minimum:delete E.exclusiveMinimum)),typeof M=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(E.maximum=M,E.exclusiveMaximum=!0):E.exclusiveMaximum=M),typeof R=="number"&&(E.maximum=R,typeof M=="number"&&this.target!=="draft-4"&&(M<=R?delete E.maximum:delete E.exclusiveMaximum)),typeof N=="number"&&(E.multipleOf=N);break}case"boolean":{const E=x;E.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(x.type="string",x.nullable=!0,x.enum=[null]):x.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{x.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const E=x,{minimum:O,maximum:R}=t._zod.bag;typeof O=="number"&&(E.minItems=O),typeof R=="number"&&(E.maxItems=R),E.type="array",E.items=this.process(r.element,{...S,path:[...S.path,"items"]});break}case"object":{const E=x;E.type="object",E.properties={};const O=r.shape;for(const N in O)E.properties[N]=this.process(O[N],{...S,path:[...S.path,"properties",N]});const R=new Set(Object.keys(O)),$=new Set([...R].filter(N=>{const M=r.shape[N]._zod;return this.io==="input"?M.optin===void 0:M.optout===void 0}));$.size>0&&(E.required=Array.from($)),((_=r.catchall)==null?void 0:_._zod.def.type)==="never"?E.additionalProperties=!1:r.catchall?r.catchall&&(E.additionalProperties=this.process(r.catchall,{...S,path:[...S.path,"additionalProperties"]})):this.io==="output"&&(E.additionalProperties=!1);break}case"union":{const E=x,O=r.options.map((R,$)=>this.process(R,{...S,path:[...S.path,"anyOf",$]}));E.anyOf=O;break}case"intersection":{const E=x,O=this.process(r.left,{...S,path:[...S.path,"allOf",0]}),R=this.process(r.right,{...S,path:[...S.path,"allOf",1]}),$=M=>"allOf"in M&&Object.keys(M).length===1,N=[...$(O)?O.allOf:[O],...$(R)?R.allOf:[R]];E.allOf=N;break}case"tuple":{const E=x;E.type="array";const O=this.target==="draft-2020-12"?"prefixItems":"items",R=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",$=r.items.map((I,V)=>this.process(I,{...S,path:[...S.path,O,V]})),N=r.rest?this.process(r.rest,{...S,path:[...S.path,R,...this.target==="openapi-3.0"?[r.items.length]:[]]}):null;this.target==="draft-2020-12"?(E.prefixItems=$,N&&(E.items=N)):this.target==="openapi-3.0"?(E.items={anyOf:$},N&&E.items.anyOf.push(N),E.minItems=$.length,N||(E.maxItems=$.length)):(E.items=$,N&&(E.additionalItems=N));const{minimum:M,maximum:C}=t._zod.bag;typeof M=="number"&&(E.minItems=M),typeof C=="number"&&(E.maxItems=C);break}case"record":{const E=x;E.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(E.propertyNames=this.process(r.keyType,{...S,path:[...S.path,"propertyNames"]})),E.additionalProperties=this.process(r.valueType,{...S,path:[...S.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const E=x,O=zS(r.entries);O.every(R=>typeof R=="number")&&(E.type="number"),O.every(R=>
252typeof R=="string")&&(E.type="string"),E.enum=O;break}case"literal":{const E=x,O=[];for(const R of r.values)if(R===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof R=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");O.push(Number(R))}else O.push(R);if(O.length!==0)if(O.length===1){const R=O[0];E.type=R===null?"null":typeof R,this.target==="draft-4"||this.target==="openapi-3.0"?E.enum=[R]:E.const=R}else O.every(R=>typeof R=="number")&&(E.type="number"),O.every(R=>typeof R=="string")&&(E.type="string"),O.every(R=>typeof R=="boolean")&&(E.type="string"),O.every(R=>R===null)&&(E.type="null"),E.enum=O;break}case"file":{const E=x,O={type:"string",format:"binary",contentEncoding:"binary"},{minimum:R,maximum:$,mime:N}=t._zod.bag;R!==void 0&&(O.minLength=R),$!==void 0&&(O.maxLength=$),N?N.length===1?(O.contentMediaType=N[0],Object.assign(E,O)):E.anyOf=N.map(M=>({...O,contentMediaType:M})):Object.assign(E,O);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const E=this.process(r.innerType,S);this.target==="openapi-3.0"?(u.ref=r.innerType,x.nullable=!0):x.anyOf=[E,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,S),u.ref=r.innerType;break}case"success":{const E=x;E.type="boolean";break}case"default":{this.process(r.innerType,S),u.ref=r.innerType,x.default=JSON.parse(JSON.stringify(r.defaultValue));break}case"prefault":{this.process(r.innerType,S),u.ref=r.innerType,this.io==="input"&&(x._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case"catch":{this.process(r.innerType,S),u.ref=r.innerType;let E;try{E=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}x.default=E;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const E=x,O=t._zod.pattern;if(!O)throw new Error("Pattern not found in template literal");E.type="string",E.pattern=O.source;break}case"pipe":{const E=this.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(E,S),u.ref=E;break}case"readonly":{this.process(r.innerType,S),u.ref=r.innerType,x.readOnly=!0;break}case"promise":{this.process(r.innerType,S),u.ref=r.innerType;break}case"optional":{this.process(r.innerType,S),u.ref=r.innerType;break}case"lazy":{const E=t._zod.innerType;this.process(E,S),u.ref=E;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const m=this.metadataRegistry.get(t);return m&&Object.assign(u.schema,m),this.io==="input"&&gn(t)&&(delete u.schema.examples,delete u.schema.default),this.io==="input"&&u.schema._prefault&&((i=u.schema).default??(i.default=u.schema._prefault)),delete u.schema._prefault,this.seen.get(t).schema}emit(t,n){var h,g,b,_,S,w;const i={cycles:(n==null?void 0:n.cycles)??"ref",reused:(n==null?void 0:n.reused)??"inline",external:(n==null?void 0:n.external)??void 0},r=this.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=x=>{var N;const E=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){const M=(N=i.external.registry.get(x[0]))==null?void 0:N.id,C=i.external.uri??(V=>V);if(M)return{ref:C(M)};const I=x[1].defId??x[1].schema.id??`schema${this.counter++}`;return x[1].defId=I,{defId:I,ref:`${C("__shared")}#/${E}/${I}`}}if(x[1]===r)return{ref:"#"};const R=`#/${E}/`,$=x[1].schema.id??`__schema${this.counter++}`;return{defId:$,ref:R+$}},l=x=>{if(x[1].schema.$ref)return;const E=x[1],{ref:O,defId:R}=a(x);E.def={...E.schema},R&&(E.defId=R);const $=E.schema;for(const N in $)delete $[N];$.$ref=O};if(i.cycles==="throw")for(const x of this.seen.entries()){const E=x[1];if(E.cycle)throw new Error(`Cycle detected: #/${(h=E.cycle)==null?void 0:h.join("/")}/<root>
253
254Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const x of this.seen.entries()){const E=x[1];
254if(t===x[0]){l(x);continue}if(i.external){const R=(g=i.external.registry.get(x[0]))==null?void 0:g.id;if(t!==x[0]&&R){l(x);continue}}if((b=this.metadataRegistry.get(x[0]))==null?void 0:b.id){l(x);continue}if(E.cycle){l(x);continue}if(E.count>1&&i.reused==="ref"){l(x);continue}}const u=(x,E)=>{const O=this.seen.get(x),R=O.def??O.schema,$={...R};if(O.ref===null)return;const N=O.ref;if(O.ref=null,N){u(N,E);const M=this.seen.get(N).schema;M.$ref&&(E.target==="draft-7"||E.target==="draft-4"||E.target==="openapi-3.0")?(R.allOf=R.allOf??[],R.allOf.push(M)):(Object.assign(R,M),Object.assign(R,$))}O.isParent||this.override({zodSchema:x,jsonSchema:R,path:O.path??[]})};for(const x of[...this.seen.entries()].reverse())u(x[0],{target:this.target});const f={};if(this.target==="draft-2020-12"?f.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?f.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?f.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),(_=i.external)!=null&&_.uri){const x=(S=i.external.registry.get(t))==null?void 0:S.id;if(!x)throw new Error("Schema is missing an `id` property");f.$id=i.external.uri(x)}Object.assign(f,r.def);const m=((w=i.external)==null?void 0:w.defs)??{};for(const x of this.seen.entries()){const E=x[1];E.def&&E.defId&&(m[E.defId]=E.def)}i.external||Object.keys(m).length>0&&(this.target==="draft-2020-12"?f.$defs=m:f.definitions=m);try{return JSON.parse(JSON.stringify(f))}catch{throw new Error("Error converting schema to JSON.")}}}function hI(e,t){if(e instanceof lw){const i=new D_(t),r={};
254for(const u of e._idmap.entries()){const[f,m]=u;i.process(m)}const a={},l={registry:e,uri:t==null?void 0:t.uri,defs:r};for(const u of e._idmap.entries()){const[f,m]=u;a[f]=i.emit(m,{...t,external:l})}if(Object.keys(r).length>0){const u=i.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:r}}return{schemas:a}}const n=new D_(t);return n.process(e),n.emit(e,t)}function gn(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return gn(r.element,n);case"object":{for(const a in r.shape)if(gn(r.shape[a],n))return!0;return!1}case"union":{for(const a of r.options)if(gn(a,n))return!0;return!1}case"intersection":return gn(r.left,n)||gn(r.right,n);case"tuple":{for(const a of r.items)if(gn(a,n))return!0;return!!(r.rest&&gn(r.rest,n))}case"record":return gn(r.keyType,n)||gn(r.valueType,n);case"map":return gn(r.keyType,n)||gn(r.valueType,n);case"set":return gn(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return gn(r.innerType,n);case"lazy":return gn(r.getter(),n);case"default":return gn(r.innerType,n);case"prefault":return gn(r.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return gn(r.in,n)||gn(r.out,n);case"success":return!1;case"catch":return!1;case"function":return!1}throw new Error(`Unknown schema type: ${r.type}`)}const DG=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),CG=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:Lj,$ZodArray:qj,$ZodAsyncError:Rs,$ZodBase64:Rj,$ZodBase64URL:Nj,$ZodBigInt:iw,$ZodBigIntFormat:Ij,$ZodBoolean:rw,$ZodCIDRv4:Oj,$ZodCIDRv6:Tj,$ZodCUID:pj,$ZodCUID2:gj,$ZodCatch:dM,$ZodCheck:Kt,$ZodCheckBigIntFormat:qA,$ZodCheckEndsWith:rj,$ZodCheckGreaterThan:ew,$ZodCheckIncludes:tj,$ZodCheckLengthEquals:XA,$ZodCheckLessThan:JS,$ZodCheckLowerCase:JA,$ZodCheckMaxLength:GA,$ZodCheckMaxSize:ZA,$ZodCheckMimeType:oj,$ZodCheckMinLength:KA,$ZodCheckMinSize:YA,$ZodCheckMultipleOf:VA,$ZodCheckNumberFormat:HA,$ZodCheckOverwrite:aj,$ZodCheckProperty:ij,$ZodCheckRegex:QA,$ZodCheckSizeEquals:WA,$ZodCheckStartsWith:nj,$ZodCheckStringFormat:mf,$ZodCheckUpperCase:ej,$ZodCodec:sw,$ZodCustom:bM,$ZodCustomStringFormat:jj,$ZodDate:Hj,$ZodDefault:sM,$ZodDiscriminatedUnion:Kj,$ZodE164:Dj,$ZodEmail:dj,$ZodEmoji:mj,$ZodEncodeError:jp,$ZodEnum:tM,$ZodError:Up,$ZodFile:rM,$ZodFunction:gM,$ZodGUID:cj,$ZodIPv4:Ej,$ZodIPv6:kj,$ZodISODate:Sj,$ZodISODateTime:_j,$ZodISODuration:xj,$ZodISOTime:wj,$ZodIntersection:Xj,$ZodJWT:Aj,$ZodKSUID:bj,$ZodLazy:yM,$ZodLiteral:nM,$ZodMap:Jj,$ZodNaN:fM,$ZodNanoID:hj,$ZodNever:Bj,$ZodNonOptional:cM,$ZodNull:Uj,$ZodNullable:aM,$ZodNumber:nw,$ZodNumberFormat:Mj,$ZodObject:Wj,$ZodObjectJIT:Gj,$ZodOptional:oM,$ZodPipe:mM,$ZodPrefault:lM,$ZodPromise:vM,$ZodReadonly:hM,$ZodRealError:Cr,$ZodRecord:Qj,$ZodRegistry:lw,$ZodSet:eM,$ZodString:hf,$ZodStringFormat:It,$ZodSuccess:uM,$ZodSymbol:Pj,$ZodTemplateLiteral:pM,$ZodTransform:iM,$ZodTuple:aw,$ZodType:Je,$ZodULID:vj,$ZodURL:fj,$ZodUUID:uj,$ZodUndefined:zj,$ZodUnion:ow,$ZodUnknown:Fj,$ZodVoid:Vj,$ZodXID:yj,$brand:LC,$constructor:J,$input:kM,$output:EM,Doc:sj,JSONSchema:DG,JSONSchemaGenerator:D_,NEVER:UC,TimePrecision:RM,_any:GM,_array:sI,_base64:Ow,_base64url:Tw,_bigint:BM,_boolean:LM,_catch:kG,_check:fI,_cidrv4:Ew,_cidrv6:kw,_coercedBigint:VM,_coercedBoolean:FM,_coercedDate:eI,_coercedNumber:jM,_coercedString:TM,_cuid:vw,_cuid2:yw,_custom:cI,_date:JM,_decode:VS,_decodeAsync:qS,_default:wG,_discriminatedUnion:uG,_e164:Rw,_email:uw,_emoji:pw,_encode:BS,_encodeAsync:HS,_endsWith:Iw,_enum:gG,_file:lI,_float32:IM,_float64:PM,_gt:Ls,_gte:Or,_guid:Gh,_includes:jw,_int:MM,_int32:zM,_int64:HM,_intersection:dG,_ipv4:ww,_ipv6:xw,_isoDate:NM,_isoDateTime:$M,_isoDuration:CM,_isoTime:DM,_jwt:$w,_ksuid:Sw,_lazy:$G,_length:Vp,_literal:yG,_lowercase:Cw,_lt:Us,_lte:ci,_map:hG,_max:ci,_maxLength:Bp,_maxSize:Fp,_mime:Pw,_min:Or,_minLength:$c,_minSize:Cd,_multipleOf:Dd,_nan:tI,_nanoid:gw,_nativeEnum:vG,_negative:rI,_never:XM,_nonnegative:oI,_nonoptional:xG,_nonpositive:iI,_normalize:zw,_null:WM,_nullable:SG,_number:AM,_optional:_G,_overwrite:Qs,_parse:sf,_parseAsync:lf,_pipe:OG,_positive:nI,_promise:NG,_property:aI,_readonly:TG,_record:mG,_refine:uI,_regex:Dw,_safeDecode:YS,_safeDecodeAsync:GS,_safeEncode:ZS,_safeEncodeAsync:WS,_safeParse:cf,_safeParseAsync:uf,_set:pG,_size:Nw,_startsWith:Mw,_string:OM,_stringFormat:pf,_stringbool:mI,_success:EG,_superRefine:dI,_symbol:ZM,_templateLiteral
254:RG,_toLowerCase:Lw,_toUpperCase:Fw,_transform:bG,_trim:Uw,_tuple:fG,_uint32:UM,_uint64:qM,_ulid:bw,_undefined:YM,_union:cG,_unknown:KM,_uppercase:Aw,_url:Lp,_uuid:dw,_uuidv4:fw,_uuidv6:mw,_uuidv7:hw,_void:QM,_xid:_w,clone:Gr,config:Xn,decode:H7,decodeAsync:Z7,encode:V7,encodeAsync:q7,flattenError:LS,formatError:FS,globalConfig:Vh,globalRegistry:us,isValidBase64:tw,isValidBase64URL:$j,isValidJWT:Cj,locales:xM,parse:Zh,parseAsync:Yh,prettifyError:aA,regexes:QS,registry:cw,safeDecode:W7,safeDecodeAsync:K7,safeEncode:Y7,safeEncodeAsync:G7,safeParse:sA,safeParseAsync:lA,toDotPath:oA,toJSONSchema:hI,treeifyError:iA,util:nA,version:lj},Symbol.toStringTag,{value:"Module"})),Bw=J("ZodISODateTime",(e,t)=>{_j.init(e,t),zt.init(e,t)});function pI(e){return $M(Bw,e)}const Vw=J("ZodISODate",(e,t)=>{Sj.init(e,t),zt.init(e,t)});function gI(e){return NM(Vw,e)}const Hw=J("ZodISOTime",(e,t)=>{wj.init(e,t),zt.init(e,t)});function vI(e){return DM(Hw,e)}const qw=J("ZodISODuration",(e,t)=>{xj.init(e,t),zt.init(e,t)});function yI(e){return CM(qw,e)}const AG=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Vw,ZodISODateTime:Bw,ZodISODuration:qw,ZodISOTime:Hw,date:gI,datetime:pI,duration:yI,time:vI},Symbol.toStringTag,{value:"Module"})),bI=(e,t)=>{Up.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>FS(e,n)},flatten:{value:n=>LS(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Hh,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Hh,2)}},isEmpty:{get(){return e.issues.length===0}}})},jG=J("ZodError",bI),Ar=J("ZodError",bI,{Parent:Error}),_I=sf(Ar),SI=lf(Ar),wI=cf(Ar),xI=uf(Ar),EI=BS(Ar),kI=VS(Ar),OI=HS(Ar),TI=qS(Ar),RI=ZS(Ar),$I=YS(Ar),NI=WS(Ar),DI=GS(Ar),at=J("ZodType",(e,t)=>(Je.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Co(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]})),e.clone=(n,i)=>Gr(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>_I(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>wI(e,n,i),e.parseAsync=async(n,i)=>SI(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>xI(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>EI(e,n,i),e.decode=(n,i)=>kI(e,n,i),e.encodeAsync=async(n,i)=>OI(e,n,i),e.decodeAsync=async(n,i)=>TI(e,n,i),e.safeEncode=(n,i)=>RI(e,n,i),e.safeDecode=(n,i)=>$I(e,n,i),e.safeEncodeAsync=async(n,i)=>NI(e,n,i),e.safeDecodeAsync=async(n,i)=>DI(e,n,i),e.refine=(n,i)=>e.check(vP(n,i)),e.superRefine=n=>e.check(yP(n)),e.overwrite=n=>e.check(Qs(n)),e.optional=()=>Xh(e),e.nullable=()=>Qh(e),e.nullish=()=>Xh(Qh(e)),e.nonoptional=n=>oP(e,n),e.array=()=>Kp(e),e.or=n=>h0([e,n]),e.and=n=>qI(e,n),e.transform=n=>Jh(e,g0(n)),e.default=n=>nP(e,n),e.prefault=n=>iP(e,n),e.catch=n=>lP(e,n),e.pipe=n=>Jh(e,n),e.readonly=()=>dP(e),e.describe=n=>{const i=e.clone();return us.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){var n;return(n=us.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return us.get(e);const i=e.clone();return us.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Zw=J("_ZodString",(e,t)=>{hf.init(e,t),at.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(Dw(...i)),e.includes=(...i)=>e.check(jw(...i)),e.startsWith=(...i)=>e.check(Mw(...i)),e.endsWith=(...i)=>e.check(Iw(...i)),e.min=(...i)=>e.check($c(...i)),e.max=(...i)=>e.check(Bp(...i)),e.length=(...i)=>e.check(Vp(...i)),e.nonempty=(...i)=>e.check($c(1,...i)),e.lowercase=i=>e.check(Cw(i)),e.uppercase=i=>e.check(Aw(i)),e.trim=()=>e.check(Uw()),e.normalize=(...i)=>e.check(zw(...i)),e.toLowerCase=()=>e.check(Lw()),e.toUpperCase=()=>e.check(Fw())}),Hp=J("ZodString",(e,t)=>{hf.init(e,t),Zw.init(e,t),e.email=n=>e.check(uw(Yw,n)),e.url=n=>e.check(Lp(Zp,n)),e.jwt=n=>e.check($w(l0,n)),e.emoji=n=>e.check(pw(Ww,n)),e.guid=n=>e.check(Gh(Kh,n)),e.uuid=n=>
254e.check(dw(yo,n)),e.uuidv4=n=>e.check(fw(yo,n)),e.uuidv6=n=>e.check(mw(yo,n)),e.uuidv7=n=>e.check(hw(yo,n)),e.nanoid=n=>e.check(gw(Gw,n)),e.guid=n=>e.check(Gh(Kh,n)),e.cuid=n=>e.check(vw(Kw,n)),e.cuid2=n=>e.check(yw(Xw,n)),e.ulid=n=>e.check(bw(Qw,n)),e.base64=n=>e.check(Ow(o0,n)),e.base64url=n=>e.check(Tw(a0,n)),e.xid=n=>e.check(_w(Jw,n)),e.ksuid=n=>e.check(Sw(e0,n)),e.ipv4=n=>e.check(ww(t0,n)),e.ipv6=n=>e.check(xw(n0,n)),e.cidrv4=n=>e.check(Ew(r0,n)),e.cidrv6=n=>e.check(kw(i0,n)),e.e164=n=>e.check(Rw(s0,n)),e.datetime=n=>e.check(pI(n)),e.date=n=>e.check(gI(n)),e.time=n=>e.check(vI(n)),e.duration=n=>e.check(yI(n))});function _n(e){return OM(Hp,e)}const zt=J("ZodStringFormat",(e,t)=>{It.init(e,t),Zw.init(e,t)}),Yw=J("ZodEmail",(e,t)=>{dj.init(e,t),zt.init(e,t)});function qp(e){return uw(Yw,e)}const Kh=J("ZodGUID",(e,t)=>{cj.init(e,t),zt.init(e,t)});function MG(e){return Gh(Kh,e)}const yo=J("ZodUUID",(e,t)=>{uj.init(e,t),zt.init(e,t)});function IG(e){return dw(yo,e)}function PG(e){return fw(yo,e)}function zG(e){return mw(yo,e)}function UG(e){return hw(yo,e)}const Zp=J("ZodURL",(e,t)=>{fj.init(e,t),zt.init(e,t)});function LG(e){return Lp(Zp,e)}function FG(e){return Lp(Zp,{protocol:/^https?$/,hostname:kA,...Se(e)})}const Ww=J("ZodEmoji",(e,t)=>{mj.init(e,t),zt.init(e,t)});function BG(e){return pw(Ww,e)}const Gw=J("ZodNanoID",(e,t)=>{hj.init(e,t),zt.init(e,t)});function VG(e){return gw(Gw,e)}const Kw=J("ZodCUID",(e,t)=>{pj.init(e,t),zt.init(e,t)});function HG(e){return vw(Kw,e)}const Xw=J("ZodCUID2",(e,t)=>{gj.init(e,t),zt.init(e,t)});function qG(e){return yw(Xw,e)}const Qw=J("ZodULID",(e,t)=>{vj.init(e,t),zt.init(e,t)});function ZG(e){return bw(Qw,e)}const Jw=J("ZodXID",(e,t)=>{yj.init(e,t),zt.init(e,t)});function YG(e){return _w(Jw,e)}const e0=J("ZodKSUID",(e,t)=>{bj.init(e,t),zt.init(e,t)});function WG(e){return Sw(e0,e)}const t0=J("ZodIPv4",(e,t)=>{Ej.init(e,t),zt.init(e,t)});function GG(e){return ww(t0,e)}const n0=J("ZodIPv6",(e,t)=>{kj.init(e,t),zt.init(e,t)});function KG(e){return xw(n0,e)}const r0=J("ZodCIDRv4",(e,t)=>{Oj.init(e,t),zt.init(e,t)});function XG(e){return Ew(r0,e)}const i0=J("ZodCIDRv6",(e,t)=>{Tj.init(e,t),zt.init(e,t)});function QG(e){return kw(i0,e)}const o0=J("ZodBase64",(e,t)=>{Rj.init(e,t),zt.init(e,t)});function JG(e){return Ow(o0,e)}const a0=J("ZodBase64URL",(e,t)=>{Nj.init(e,t),zt.init(e,t)});function eK(e){return Tw(a0,e)}const s0=J("ZodE164",(e,t)=>{Dj.init(e,t),zt.init(e,t)});function tK(e){return Rw(s0,e)}const l0=J("ZodJWT",(e,t)=>{Aj.init(e,t),zt.init(e,t)});function nK(e){return $w(l0,e)}const gf=J("ZodCustomStringFormat",(e,t)=>{jj.init(e,t),zt.init(e,t)});function rK(e,t,n={}){return pf(gf,e,t,n)}function iK(e){return pf(gf,"hostname",XS,e)}function oK(e){return pf(gf,"hex",FA,e)}function aK(e,t){const n=(t==null?void 0:t.enc)??"hex",i=`${e}_${n}`,r=QS[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return pf(gf,i,r,t)}const Yp=J("ZodNumber",(e,t)=>{nw.init(e,t),at.init(e,t),e.gt=(i,r)=>e.check(Ls(i,r)),e.gte=(i,r)=>e.check(Or(i,r)),e.min=(i,r)=>e.check(Or(i,r)),e.lt=(i,r)=>e.check(Us(i,r)),e.lte=(i,r)=>e.check(ci(i,r)),e.max=(i,r)=>e.check(ci(i,r)),e.int=i=>e.check(C_(i)),e.safe=i=>e.check(C_(i)),e.positive=i=>e.check(Ls(0,i)),e.nonnegative=i=>e.check(Or(0,i)),e.negative=i=>e.check(Us(0,i)),e.nonpositive=i=>e.check(ci(0,i)),e.multipleOf=(i,r)=>e.check(Dd(i,r)),e.step=(i,r)=>e.check(Dd(i,r)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function CI(e){return AM(Yp,e)}const qc=J("ZodNumberFormat",(e,t)=>{Mj.init(e,t),Yp.init(e,t)});function C_(e){return MM(qc,e)}function sK(e){return IM(qc,e)}function lK(e){return PM(qc,e)}function cK(e){return zM(qc,e)}function uK(e){return UM(qc,e)}const Wp=J("ZodBoolean",(e,t)=>{rw.init(e,t),at.init(e,t)});function c0(e){return LM(Wp,e)}const Gp=J("ZodBigInt",(e,t)=>{iw.init(e,t),at.init(e,t),e.gte=(i,r)=>e.check(Or(i,r)),e.min=(i,r)=>e.check(Or(i,r)),e.gt=(i,r)=>e.check(Ls(i,r)),e.gte=(i,r)=>e.check(Or(i,r)),e.min=(i,r)=>e.check(Or(i,r)),e.lt=(i,r)=>e.check(Us(i,r)),e.lte=(i,r)=>e.check(ci(i,r)),e.max=(i,r)=>e.check(ci(i,r)),e.positive=i=>e.check(Ls(BigInt(0),i)),e.negative=i=>e.check(Us(BigInt(0),i)),e.nonpositive=i=>e.check(ci(BigInt(0),i)),e.nonnegative=i=>e.check(Or(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(Dd(i,r));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function dK(e){return BM(Gp,e)}const u0=J("ZodBigIntFormat",(e,t)=>{Ij.init(e,t),Gp.init(e,t)});function fK(e){return HM(u0,e)}function mK(e){return qM(u0,e)}const AI=J("ZodSymbol",(e,t)=>{Pj.init(e,t),at.init(e,t)});function hK(e){return ZM(AI,e)}const jI=J("ZodUndefined",(e,t)=>{zj.init(e,t),at.init(e,t)});function pK(e){return YM(jI,e)}const MI=J("ZodNull",(e,t)=>{Uj.init(e,t),at.init(e,t)});function II(e){return WM(MI,e)}const PI=J("ZodAny",(e,t)=>{Lj.init(e,t),at.init(e,t)});function gK(){return GM(PI)}const zI=J("ZodUnknown",(e,t)=>{Fj.init(e,t),at.init(e,t)});function Nc(){return KM(zI)}const UI=J("ZodNever",(e,t)=>{Bj.init(e,t),at.init(e,t)});function d0(e){return XM(UI,e)}const LI=J("ZodVoid",(e,t)=>{Vj.init(e,t),at.init(e,t)});function vK(e){return QM(LI,e)}const f0=J("ZodDate",(e,t)=>{Hj.init(e,t),at.init(e,t),e.min=(i,r)=>e.check(Or(i,r)),e.max=(i,r)=>e.check(ci(i,r));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function FI(e){return JM(f0,e)}const BI=J("ZodArray",(e,t)=>{qj.init(e,t),at.init(e,t),e.element=t.element,e.min=(n,i)=>e.check($c(n,i)),e.nonempty=n=>e.check($c(1,n)),e.max=(n,i)=>e.check(Bp(n,i)),e.length=(n,i)=>e.check(Vp(n,i)),e.unwrap=()=>e.element});function Kp(e,t){return sI(BI,e,t)}function yK(e){const t=e._zod.def.shape;return Qp(Object.keys(t))}const Xp=J("ZodObject",(e,t)=>{Gj.init(e,t),at.init(e,t),ht(e,"shape",()=>t.shape),e.keyof=()=>Qp(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Nc()}),e.loose=()=>e.clone({...e._zod.def,catchall:Nc()}),e.strict=()=>e.clone({...e._zod.def,catchall:d0()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>GC(e,n),e.safeExtend=n=>KC(e,n),e.merge=n=>XC(e,n),e.pick=n=>YC(e,n),e.omit=n=>WC(e,n),e.partial=(...n)=>QC(v0,e,n[0]),e.required=(...n)=>JC(y0,e,n[0])});function Bi(e,t){const n={type:"object",shape:e??{},...Se(t)};return new Xp(n)}function bK(e,t){return new Xp({type:"object",shape:e,catchall:d0(),...Se(t)})}function _K(e,t){return new Xp({type:"object",shape:e,catchall:Nc(),...Se(t)})}const m0=J("ZodUnion",(e,t)=>{ow.init(e,t),at.init(e,t),e.options=t.options});function h0(e,t){return new m0({type:"union",options:e,...Se(t)})}const VI=J("ZodDiscriminatedUnion",(e,t)=>{m0.init(e,t),Kj.init(e,t)});function SK(e,t,n){return new VI({type:"union",options:t,discriminator:e,...Se(n)})}const HI=J("ZodIntersection",(e,t)=>{Xj.init(e,t),at.init(e,t)});function qI(e,t){return new HI({type:"intersection",left:e,right:t})}const ZI=J("ZodTuple",(e,t)=>{aw.init(e,t),at.init(e,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function YI(e,t,n){const i=t instanceof Je,r=i?n:t,a=i?t:null;return new ZI({type:"tuple",items:e,rest:a,...Se(r)})}const p0=J("ZodRecord",(e,t)=>{Qj.init(e,t),at.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function WI(e,t,n){return new p0({type:"record",keyType:e,valueType:t,...Se(n)})}function wK(e,t,n){const i=Gr(e);return i._zod.values=void 0,new p0({type:"record",keyType:i,valueType:t,...Se(n)})}const GI=J("ZodMap",(e,t)=>{Jj.init(e,t),at.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function xK(e,t,n){return new GI({type:"map",keyType:e,valueType:t,...Se(n)})}const KI=J("ZodSet",(e,t)=>{eM.init(e,t),at.init(e,t),e.min=(...n)=>e.check(Cd(...n)),e.nonempty=n=>e.check(Cd(1,n)),e.max=(...n)=>e.check(Fp(...n)),e.size=(...n)=>e.check(Nw(...n))});function EK(e,t){return new KI({type:"set",valueType:e,...Se(t)})}const Ad=J("ZodEnum",(e,t)=>{tM.init(e,t),at.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{const a={};for(const l of i)if(n.has(l))a[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new Ad({...t,checks:[],...Se(r),entries:a})},e.exclude=(i,r)=>{const a={...t.entries};for(const l of i)if(n.has(l))delete a[l];else throw new Error(`Key ${l} not found in enum`);return new Ad({...t,checks:[],...Se(r),entries:a})}});function Qp(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Ad({type:"enum",entries:n,...Se(t)})}function kK(e,t){return new Ad({type:"enum",entries:e,...Se(t)})}const XI=J("ZodLiteral",(e,t)=>{nM.init(e,t),at.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
254(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function OK(e,t){return new XI({type:"literal",values:Array.isArray(e)?e:[e],...Se(t)})}const QI=J("ZodFile",(e,t)=>{rM.init(e,t),at.init(e,t),e.min=(n,i)=>e.check(Cd(n,i)),e.max=(n,i)=>e.check(Fp(n,i)),e.mime=(n,i)=>e.check(Pw(Array.isArray(n)?n:[n],i))});function TK(e){return lI(QI,e)}const JI=J("ZodTransform",(e,t)=>{iM.init(e,t),at.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new jp(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(Tc(a,n.value,t));else{const l=a;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),n.issues.push(Tc(l))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(a=>(n.value=a,n)):(n.value=r,n)}});function g0(e){return new JI({type:"transform",transform:e})}const v0=J("ZodOptional",(e,t)=>{oM.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Xh(e){return new v0({type:"optional",innerType:e})}const eP=J("ZodNullable",(e,t)=>{aM.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Qh(e){return new eP({type:"nullable",innerType:e})}function RK(e){return Xh(Qh(e))}const tP=J("ZodDefault",(e,t)=>{sM.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function nP(e,t){return new tP({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ip(t)}})}const rP=J("ZodPrefault",(e,t)=>{lM.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function iP(e,t){return new rP({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ip(t)}})}const y0=J("ZodNonOptional",(e,t)=>{cM.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function oP(e,t){return new y0({type:"nonoptional",innerType:e,...Se(t)})}const aP=J("ZodSuccess",(e,t)=>{uM.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function $K(e){return new aP({type:"success",innerType:e})}const sP=J("ZodCatch",(e,t)=>{dM.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function lP(e,t){return new sP({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const cP=J("ZodNaN",(e,t)=>{fM.init(e,t),at.init(e,t)});function NK(e){return tI(cP,e)}const b0=J("ZodPipe",(e,t)=>{mM.init(e,t),at.init(e,t),e.in=t.in,e.out=t.out});function Jh(e,t){return new b0({type:"pipe",in:e,out:t})}const _0=J("ZodCodec",(e,t)=>{b0.init(e,t),sw.init(e,t)});function DK(e,t,n){return new _0({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}const uP=J("ZodReadonly",(e,t)=>{hM.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function dP(e){return new uP({type:"readonly",innerType:e})}const fP=J("ZodTemplateLiteral",(e,t)=>{pM.init(e,t),at.init(e,t)});function CK(e,t){return new fP({type:"template_literal",parts:e,...Se(t)})}const mP=J("ZodLazy",(e,t)=>{yM.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.getter()});function hP(e){return new mP({type:"lazy",getter:e})}const pP=J("ZodPromise",(e,t)=>{vM.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function AK(e){return new pP({type:"promise",innerType:e})}const gP=J("ZodFunction",(e,t)=>{gM.init(e,t),at.init(e,t)});function TR(e){return new gP({type:"function",input:Array.isArray(e==null?void 0:e.input)?YI(e==null?void 0:e.input):(e==null?void 0:e.input)??Kp(Nc()),output:(e==null?void 0:e.output)??Nc()})}const Jp=J("ZodCustom",(e,t)=>{bM.init(e,t),at.init(e,t)});function jK(e){const t=new Kt({check:"custom"});return t._zod.check=e,t}function MK(e,t){return cI(Jp,e??(()=>!0),t)}function vP(e,t={}){return uI(Jp,e,t)}function yP(e){return dI(e)}function IK(e,t={error:`Input not instance of ${e.name}`}){const n=new Jp({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...Se(t)});return n._zod.bag.Class=e,n}const PK=(...e)=>mI({Codec:_0,Boolean:Wp,String:Hp},...e);function zK(e){const t=hP(()=>h0([_n(e),CI(),c0(),II(),Kp(t),WI(_n(),t)]));return t}function UK(e,t){return Jh(g0(e),t)}const LK={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invali
254d_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function FK(e){Xn({customError:e})}function BK(){return Xn().customError}var A_;A_||(A_={});function VK(e){return TM(Hp,e)}function HK(e){return jM(Yp,e)}function qK(e){return FM(Wp,e)}function ZK(e){return VM(Gp,e)}function YK(e){return eI(f0,e)}const WK=Object.freeze(Object.defineProperty({__proto__:null,bigint:ZK,boolean:qK,date:YK,number:HK,string:VK},Symbol.toStringTag,{value:"Module"}));Xn(_M());const Ye=Object.freeze(Object.defineProperty({__proto__:null,$brand:LC,$input:kM,$output:EM,NEVER:UC,TimePrecision:RM,ZodAny:PI,ZodArray:BI,ZodBase64:o0,ZodBase64URL:a0,ZodBigInt:Gp,ZodBigIntFormat:u0,ZodBoolean:Wp,ZodCIDRv4:r0,ZodCIDRv6:i0,ZodCUID:Kw,ZodCUID2:Xw,ZodCatch:sP,ZodCodec:_0,ZodCustom:Jp,ZodCustomStringFormat:gf,ZodDate:f0,ZodDefault:tP,ZodDiscriminatedUnion:VI,ZodE164:s0,ZodEmail:Yw,ZodEmoji:Ww,ZodEnum:Ad,ZodError:jG,ZodFile:QI,get ZodFirstPartyTypeKind(){return A_},ZodFunction:gP,ZodGUID:Kh,ZodIPv4:t0,ZodIPv6:n0,ZodISODate:Vw,ZodISODateTime:Bw,ZodISODuration:qw,ZodISOTime:Hw,ZodIntersection:HI,ZodIssueCode:LK,ZodJWT:l0,ZodKSUID:e0,ZodLazy:mP,ZodLiteral:XI,ZodMap:GI,ZodNaN:cP,ZodNanoID:Gw,ZodNever:UI,ZodNonOptional:y0,ZodNull:MI,ZodNullable:eP,ZodNumber:Yp,ZodNumberFormat:qc,ZodObject:Xp,ZodOptional:v0,ZodPipe:b0,ZodPrefault:rP,ZodPromise:pP,ZodReadonly:uP,ZodRealError:Ar,ZodRecord:p0,ZodSet:KI,ZodString:Hp,ZodStringFormat:zt,ZodSuccess:aP,ZodSymbol:AI,ZodTemplateLiteral:fP,ZodTransform:JI,ZodTuple:ZI,ZodType:at,ZodULID:Qw,ZodURL:Zp,ZodUUID:yo,ZodUndefined:jI,ZodUnion:m0,ZodUnknown:zI,ZodVoid:LI,ZodXID:Jw,_ZodString:Zw,_default:nP,_function:TR,any:gK,array:Kp,base64:JG,base64url:eK,bigint:dK,boolean:c0,catch:lP,check:jK,cidrv4:XG,cidrv6:QG,clone:Gr,codec:DK,coerce:WK,config:Xn,core:CG,cuid:HG,cuid2:qG,custom:MK,date:FI,decode:kI,decodeAsync:TI,discriminatedUnion:SK,e164:tK,email:qp,emoji:BG,encode:EI,encodeAsync:OI,endsWith:Iw,enum:Qp,file:TK,flattenError:LS,float32:sK,float64:lK,formatError:FS,function:TR,getErrorMap:BK,globalRegistry:us,gt:Ls,gte:Or,guid:MG,hash:aK,hex:oK,hostname:iK,httpUrl:FG,includes:jw,instanceof:IK,int:C_,int32:cK,int64:fK,intersection:qI,ipv4:GG,ipv6:KG,iso:AG,json:zK,jwt:nK,keyof:yK,ksuid:WG,lazy:hP,length:Vp,literal:OK,locales:xM,looseObject:_K,lowercase:Cw,lt:Us,lte:ci,map:xK,maxLength:Bp,maxSize:Fp,mime:Pw,minLength:$c,minSize:Cd,multipleOf:Dd,nan:NK,nanoid:VG,nativeEnum:kK,negative:rI,never:d0,nonnegative:oI,nonoptional:oP,nonpositive:iI,normalize:zw,null:II,nullable:Qh,nullish:RK,number:CI,object:Bi,optional:Xh,overwrite:Qs,parse:_I,parseAsync:SI,partialRecord:wK,pipe:Jh,positive:nI,prefault:iP,preprocess:UK,prettifyError:aA,promise:AK,property:aI,readonly:dP,record:WI,refine:vP,regex:Dw,regexes:QS,registry:cw,safeDecode:$I,safeDecodeAsync:DI,safeEncode:RI,safeEncodeAsync:NI,safeParse:wI,safeParseAsync:xI,set:EK,setErrorMap:FK,size:Nw,startsWith:Mw,strictObject:bK,string:_n,stringFormat:rK,stringbool:PK,success:$K,superRefine:yP,symbol:hK,templateLiteral:CK,toJSONSchema:hI,toLowerCase:Lw,toUpperCase:Fw,transform:g0,treeifyError:iA,trim:Uw,tuple:YI,uint32:uK,uint64:mK,ulid:ZG,undefined:pK,union:h0,unknown:Nc,uppercase:Aw,url:LG,util:nA,uuid:IG,uuidv4:PG,uuidv6:zG,uuidv7:UG,void:vK,xid:YG},Symbol.toStringTag,{value:"Module"})),Aa=({className:e})=>v.jsxs("svg",{"aria-hidden":"true",width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[v.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"#6161FF"}),v.jsx("path",{d:"M20.0001 17.3017C21.7691 14.8306 24.3122 13.2129 27.3291 13.2129C30.9813 13.2129 33.3334 15.3565 33.3334 19.0732C33.3334 22.0133 32.3632 24.7201 31.2418 26.7869H27.9966L27.9718 26.7323C29.4107 24.3207 30.3809 21.4253 30.3809 19.1104C30.3809 16.8973 29.1801 15.6568 27.3539 15.6568C24.7786 15.6568 22.2975 17.8649 20.0472 22.4723H19.9504C17.6951 17.8649 15.2338 15.6568 12.6461 15.6568C10.8201 15.6568 9.61915 16.8923 9.61915 19.1104C9.61915 21.4253 10.5893 24.3306 12.0283 26.7323L12.0034 26.7869H8.75828C7.63683 24.7201 6.66669 22.0133 6.66669 19.0732C6.66669 15.3565 9.01136 13.2129 12.671 13.2129C15.6879 13.2129 18.231 14.8306 20.0001 17.3017Z",fill:"white"})]}),GK={default:rZ,success:AS,destructive:Nd},KK=Fi("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*3)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-1 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card border-border text-card-foreground *:data-[slot=alert-description]:text-muted-foreground",success:"bg-success border-success-border text-success-foreground",destructive:"bg-destructive border-destructive-border text-destructive-foreground"}},defaultVariants:{variant:"default"}});function XK({className:e,variant:t,...n}){return v.jsx("div",{"data-slot":"alert",role:"alert",className:ke(KK({variant:t}),e),...n})}function QK({className:e,...t}){return v.jsx("div",{"data-slot":"alert-title",className:ke("col-start-2 min-h-4 font-medium leading-normal",e),...t})}function JK({className:e,...t}){return v.jsx("div",{"data-slot":"alert-description",className:ke("col-start-2 grid justify-items-start gap-1 text-sm leading-normal",e),...t})}
254function jd({variant:e,title:t,icon:n,children:i,className:r,...a}){const u=GK[e??"default"];return v.jsxs(XK,{variant:e,className:r,...a,children:[n!==null&&(n??v.jsx(u,{})),t&&v.jsx(QK,{children:t}),i&&v.jsx(JK,{children:i})]})}function Zc({trackFn:e,returnFromRules:t,refocusPath:n}){const{previousPath:i,getPreviousPath:r,resetPreviousPath:a}=PS(),l=k.useRef(!1);k.useEffect(()=>{l.current=!1;const u=setTimeout(()=>{if(l.current)return;const f=r(),m=RR(f,t);e(m),a()},0);return()=>{l.current=!0,clearTimeout(u)}},[]),k.useEffect(()=>{if(!n)return;const u=()=>{if(i!=null&&i.includes(n)){const f=RR(i,t);e(f),a()}};return window.addEventListener("focus",u),()=>window.removeEventListener("focus",u)},[i,n])}function RR(e,t){var n;if(e)return(n=t.find(i=>e.includes(i.pathIncludes)))==null?void 0:n.returnValue}const Yc={ui_version:"v4",event_source:"frontend"},ec={NAME:"Login Pageview",SCREEN:"login",TYPE:"pageview"},tc={NAME:"Login Success Message",SCREEN:"login",TYPE:"message"},nc={NAME:"Login Error Message",SCREEN:"login",TYPE:"message"};async function S0(e){var r,a,l,u,f;if(!e.id)return;const t=(a=(r=e.professionalData)==null?void 0:r.boards)==null?void 0:a[0],n=(t==null?void 0:t.type)==="COREN",i={id:String(e.id),professionalType:n?"nurse":"medic",professionalDocumentUf:t==null?void 0:t.state,userType:n?"nurse":"doctor",professionalDegree:e.student?"student":"professional",integrationType:e.partnerId&&!e.isPartnerStandalone?"front":"standalone",integrationPartnerId:e.partnerId??void 0,fromPartner:!!e.partnerId,professionalSpecialty:e.student?"":((f=(u=(l=e.professionalData)==null?void 0:l.specialties)==null?void 0:u[0])==null?void 0:f.name)??""};try{await Wr.identify(i)}catch(m){console.error("Erro ao identificar usuário no X-Ray:",m)}}async function eX(e){await Wr.sendEvent({name:ec.NAME,screen:ec.SCREEN,properties:{...Yc,event_type:ec.TYPE,screen_step:"initial_selection",is_return:!!e,...e&&{return_from:e}}})}async function tX(){await Wr.sendEvent({name:ec.NAME,screen:ec.SCREEN,properties:{...Yc,event_type:ec.TYPE,screen_step:"credentials_input",auth_method:"email_password"}})}async function bP(e){await S0(e),await Wr.sendEvent({name:tc.NAME,screen:tc.SCREEN,properties:{...Yc,event_type:tc.TYPE,auth_method:"email_password",is_social_login:!1}})}async function nX(e){await S0(e),await Wr.sendEvent({name:tc.NAME,screen:tc.SCREEN,properties:{...Yc,event_type:tc.TYPE,auth_method:"google",is_social_login:!0}})}async function rX(e){await Wr.sendEvent({name:nc.NAME,screen:nc.SCREEN,properties:{...Yc,event_type:nc.TYPE,auth_method:"email_password",is_social_login:!1,error_message:e||"Erro ao fazer login com e-mail e senha"}})}async function $R(e){await Wr.sendEvent({name:nc.NAME,screen:nc.SCREEN,properties:{...Yc,event_type:nc.TYPE,auth_method:"google",is_social_login:!0,error_message:e||"Erro ao fazer login com Google"}})}const fi={STUDENT:"student",PROFESSIONAL:"professional"};function Wc(e){return e===fi.STUDENT}const iX=[{id:"Dr.",label:"Masculino"},{id:"Dra.",label:"Feminino"}],oX=[{id:"Dr.",label:"Dr."},{id:"Dra.",label:"Dra."}];function aX({flowType:e}){return Wc(e)?iX:oX}const _P=[{id:"AC",label:"AC"},{id:"AL",label:"AL"},{id:"AP",label:"AP"},{id:"AM",label:"AM"},{id:"BA",label:"BA"},{id:"CE",label:"CE"},{id:"DF",label:"DF"},{id:"ES",label:"ES"},{id:"GO",label:"GO"},{id:"MA",label:"MA"},{id:"MT",label:"MT"},{id:"MS",label:"MS"},{id:"MG",label:"MG"},{id:"PA",label:"PA"},{id:"PB",label:"PB"},{id:"PR",label:"PR"},{id:"PE",label:"PE"},{id:"PI",label:"PI"},{id:"RJ",label:"RJ"},{id:"RN",label:"RN"},{id:"RS",label:"RS"},{id:"RO",label:"RO"},{id:"RR",label:"RR"},{id:"SC",label:"SC"},{id:"SP",label:"SP"},{id:"SE",label:"SE"},{id:"TO",label:"TO"}],Dc={PERSONAL_DATA:"personal_data",PROFESSIONAL_DATA:"professional_data",STUDENT_DATA:"student_data"},NR=e=>{let t;const n=new Set,i=(m,h)=>{const g=typeof m=="function"?m(t):m;if(!Object.is(g,t)){const b=t;t=h??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(_=>_(t,b))}},r=()=>t,u={setState:i,getState:r,getInitialState:()=>f,subscribe:m=>(n.add(m),()=>n.delete(m))},f=t=e(i,r,u);return u},sX=e=>e?NR(e):NR,lX=e=>e;function cX(e,t=lX){const n=Y.useSyncExternalStore(e.subscribe,Y.useCallback(()=>t(e.getState()),[e,t]),Y.useCallback(()=>t(e.getInitialState()),[e,t]));return Y.useDebugValue(n),n}const DR=e=>{const t=sX(e),n=i=>cX(t,i);return Object.assign(n,t),n},w0=e=>e?DR(e):DR,ep={studentData:{university:"",completionYear:"",acceptedTerms:!1},personalData:{treatmentPronoun:"",name:"",last_name:"",cpf:"",email:"",state:"",city:""},verifyEmail:{otp:""},createPassword:{password:"",confirmPassword:""},professionalData:{birthdate:void 0,board_state:"",board_number:"",specialty:"",acceptedTerms:!1}},Qn=w0(e=>({sessionId:null,email:null,values:ep,formKey:Date.now(),displayedErrors:{personalData:!1,verifyEmail:!1,createPassword:!1,professionalData:!1},flowType:fi.PROFESSIONAL,updateSessionId:t=>e({sessionId:t}),updateFlowType:t=>e({flowType:t}),setEmail:t=>e({email:t}
254),updateValues:t=>e(n=>({values:t(n.values)})),setDisplayedError:(t,n)=>e(i=>({displayedErrors:{...i.displayedErrors,[t]:n}})),clearDisplayedError:t=>e(n=>({displayedErrors:{...n.displayedErrors,[t]:!1}})),reset:()=>e({sessionId:null,email:null,values:ep,formKey:Date.now(),flowType:fi.PROFESSIONAL,displayedErrors:{personalData:!1,verifyEmail:!1,createPassword:!1,professionalData:!1}})})),x0="session_init_failed";function uX(e){return e===x0?{title:"Tivemos um problema ao processar sua solicitação.",description:"Tente novamente em instantes."}:null}const dX=({className:e})=>v.jsxs("svg",{"aria-hidden":"true",width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[v.jsxs("g",{clipPath:"url(#clip0_957_13783)",children:[v.jsx("path",{d:"M7.99988 6.54541V9.6436H12.3053C12.1163 10.64 11.5489 11.4836 10.698 12.0509L13.2944 14.0655C14.8071 12.6691 15.6798 10.6182 15.6798 8.18185C15.6798 7.61459 15.6289 7.06908 15.5344 6.5455L7.99988 6.54541Z",fill:"#4285F4"}),v.jsx("path",{d:"M3.51643 9.52246L2.93085 9.97071L0.858093 11.5852C2.17445 14.1961 4.87244 15.9998 7.99968 15.9998C10.1596 15.9998 11.9705 15.287 13.2942 14.0653L10.6978 12.0507C9.9851 12.5307 9.076 12.8216 7.99968 12.8216C5.91969 12.8216 4.15247 11.418 3.5197 9.52708L3.51643 9.52246Z",fill:"#34A853"}),v.jsx("path",{d:"M0.858119 4.41455C0.312695 5.49087 0 6.70543 0 7.99996C0 9.29448 0.312695 10.509 0.858119 11.5854C0.858119 11.5926 3.51998 9.51991 3.51998 9.51991C3.35998 9.03991 3.26541 8.53085 3.26541 7.99987C3.26541 7.46889 3.35998 6.95984 3.51998 6.47984L0.858119 4.41455Z",fill:"#FBBC05"}),v.jsx("path",{d:"M7.99985 3.18545C9.17805 3.18545 10.2253 3.59271 11.0617 4.37818L13.3525 2.0873C11.9635 0.792777 10.1599 0 7.99985 0C4.8726 0 2.17445 1.79636 0.858093 4.41455L3.51988 6.48001C4.15256 4.58908 5.91986 3.18545 7.99985 3.18545Z",fill:"#EA4335"})]}),v.jsx("defs",{children:v.jsx("clipPath",{id:"clip0_957_13783",children:v.jsx("rect",{width:16,height:16,fill:"white"})})})]}),CR=500,fX="cadastroEtapaConcluida",mX={professional:"medico",student:"estudante"},hX={professional:{dados_pessoais:"cadastroMedicoInicial",concluido:"cadastroMedicoConcluido"},student:{concluido:"cadastroEstudante"}};function j_(e,t={}){return new Promise(n=>{let i=!1;const r=()=>{i||(i=!0,n())};try{setTimeout(r,CR),YN({event:e,...t,eventCallback:r,eventTimeout:CR})}catch(a){console.error("Não foi possível registrar a conversão no GTM.",a),r()}})}async function Gc(e,t,n){const i=hX[e][t];await Promise.all([j_(fX,{etapa:t,tipo:mX[e],metodo:n}),...i?[j_(i)]:[]])}function E0(){return j_("login")}function pX(e){if(typeof e=="string"){const t=e.trim();if(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]"))try{return JSON.parse(t)}catch{return e}return e}return typeof URLSearchParams<"u"&&e instanceof URLSearchParams?Object.fromEntries(e.entries()):e}const gX=/^token_type$/i;function vX(e,t){return gX.test(e)||t&&typeof t=="object"?!1:e.toLowerCase()==="code"?!0:Uh.pii.maskPatterns.some(n=>n.test(e))}function M_(e){if(e==null)return e;if(Array.isArray(e))return e.map(M_);if(typeof e!="object")return e;const t=e,n={};for(const[i,r]of Object.entries(t))vX(i,r)?n[i]="***":n[i]=M_(r);return n}function AR(e,t=5e3){if(e===void 0)return;const n=new WeakSet,i=(r,a)=>{if(a&&typeof a=="object"){if(n.has(a))return"[Circular]";n.add(a)}return a};try{const r=JSON.stringify(e,i);return typeof r!="string"?String(e):r.length<=t?r:`${r.slice(0,t)}…(truncated)`}catch{try{return String(e)}catch{return"[Unstringifiable]"}}}function jR(e){if(!e)return e;const t=pX(e);return M_(t)}const Fn=Wt.create({baseURL:"https://gateway.memed.com.br",headers:{"Content-Type":"application/json"}});Fn.interceptors.response.use(e=>e,e=>{var a;const t=(a=e==null?void 0:e.response)==null?void 0:a.status,{http:n,sentry:i,feature:r}=Uh;return bS(l=>{var m,h,g,b,_,S,w;l.setTag("feature",r),Object.entries(i.defaultTags).forEach(([x,E])=>{l.setTag(x,E)}),t!==void 0&&l.setTag("http.status_code",String(t)),(m=e.config)!=null&&m.method&&l.setTag("http.method",e.config.method);const u=jR((h=e.config)==null?void 0:h.data),f=jR((g=e.response)==null?void 0:g.data);l.setContext("request",{baseURL:(b=e.config)==null?void 0:b.baseURL,url:(_=e.config)==null?void 0:_.url,method:(S=e.config)==null?void 0:S.method,params:(w=e.config)==null?void 0:w.params,data:u,data_preview:AR(u)}),l.setContext("response",{status:t,data:f,data_preview:AR(f)}),t&&n.exceptionStatusCodes.includes(t)?xD(e):t&&n.warningStatusCodes.includes(t)&&nV("Auth request rejected",{level:"warning"})}),Promise.reject(e)});async function vf(e){return(await Fn.get("/v2/users",{headers:{"x-token":e}})).data}function yf(e){const t=zC(),n=`accounts.token-${t}`,i=`https://${t}/plataforma/`;localStorage.setItem(n,e),window.location.href=i}const yX=Ye.object({access_token:Ye.string().optional(),session_id:Ye.string().optional(),status:Ye.number()});async function bX({token:e}){const t=await Fn.post("/v1/authentication/login/google",{token:e});return yX.parse({...t.data,status:t.status})}function _X({onSuccess:e,onError:t}={}){return Li({mutationFn:bX,onSuccess:e,onError:t})}const tp={studentData:{university:"",completionYear:"",acceptedTerms:!1},personalData:{treatmentPronoun:"",name:"",last_name:"",cpf:"",email:"",state:"",city:""},professionalData:{birthdate:void 0,board_state:"",board_number:"",specialty:"",acceptedTerms:!1}},Ao=w0(e=>({sessionId:null,email:null,values:tp,formKey:Date.now(),displayedErrors:{personalData:!1,professionalData:!1},flowType:fi.PROFESSIONAL,updateSessionId:t=>e({sessionId:t}),updateFlowType:t=>e({flowType:t}),setGoogleEmail:t=>e({email:t}
254),updateValues:t=>e(n=>({values:t(n.values)})),setDisplayedError:(t,n)=>e(i=>({displayedErrors:{...i.displayedErrors,[t]:n}})),clearDisplayedError:t=>e(n=>({displayedErrors:{...n.displayedErrors,[t]:!1}})),reset:()=>e({sessionId:null,email:null,values:tp,formKey:Date.now(),flowType:fi.PROFESSIONAL,displayedErrors:{personalData:!1,professionalData:!1}})}));function SX(e){try{const t=e.split(".");if(t.length!==3)return null;const n=t[1],i=atob(n.replace(/-/g,"+").replace(/_/g,"/"));return JSON.parse(i)}catch(t){return console.error("Erro ao decodificar JWT:",t),null}}function wX(e){const t=SX(e);return(t==null?void 0:t.email)||null}function xX({setGoogleLoginError:e}){const t=k.useRef(null),n=dn(),{updateValues:i,updateSessionId:r,setGoogleEmail:a}=Ao(),{setPreviousPath:l,resetPreviousPath:u}=PS(),{mutate:f,isPending:m}=_X({onSuccess:async b=>{if(b.status===202&&b.session_id){r(b.session_id),n({to:"/sign-up-with-google/personal-data"});return}if(b.access_token)try{const _=await vf(b.access_token);await nX({id:_.data.id,..._.data.attributes})}catch(_){console.error("Erro ao fazer tracking de login:",_)}finally{await E0(),yf(b.access_token)}},onError:b=>{$R(b.message),e(!0)}});function h(b){if(u(),!b.credential)return;const _=wX(b.credential);_&&(a(_),i(S=>({...S,personalData:{...S.personalData,email:_}}))),f({token:b.credential})}function g(){$R(),e(!0)}return v.jsxs("div",{children:[v.jsxs(it,{variant:"outline",size:"lg",disabled:m,className:"w-full bg-background",onClick:()=>{var _;l("/sign-up-with-google"),e(!1);const b=(_=t.current)==null?void 0:_.querySelector("div[role=button]");b==null||b.click()},children:[v.jsx(dX,{className:"size-4"}),v.jsx("span",{children:"Continuar com o Google"})]}),v.jsx("div",{ref:t,className:"hidden",children:v.jsx(d7,{ux_mode:"popup",onSuccess:h,onError:g})})]})}const EX=Bi({error:_n().optional()}),kX=cn("/_layout/")({component:OX,validateSearch:EX});function OX(){const e=dn(),{updateFlowType:t}=Qn(),n=_p({from:"/_layout/"}),[i,r]=k.useState(!1);Zc({trackFn:f=>eX(f),returnFromRules:[{pathIncludes:"/sign-in",returnValue:"credentials_or_google"},{pathIncludes:"/sign-up",returnValue:"credentials_or_google"},{pathIncludes:"/sign-up-with-google",returnValue:"credentials_or_google"}],refocusPath:"/sign-up-with-google"});const a=uX(n.error);function l(){t(fi.STUDENT),e({to:"/sign-up/personal-data",replace:!0})}function u(){h7(),v7(),y7()}return v.jsxs("div",{className:"space-y-6",children:[v.jsx("div",{children:v.jsx(Aa,{className:"w-10 h-10"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-2xl text-card-foreground font-semibold",children:"Bem-vindo"}),v.jsx("p",{className:"text-base text-muted-foreground",children:"Acesse sua conta ou crie uma nova"})]}),a&&v.jsx(jd,{variant:"destructive",icon:v.jsx(Nd,{size:16}),title:a.title,children:a.description}),i&&v.jsx(jd,{variant:"destructive",icon:v.jsx(Nd,{size:16}),title:"Não foi possível acessar sua conta Google",children:v.jsx("span",{children:"Tente novamente em instantes."})}),v.jsxs("div",{className:"flex flex-col gap-3",children:[v.jsx(xX,{setGoogleLoginError:r}),v.jsx(it,{size:"lg",asChild:!0,children:v.jsx(Cn,{to:"/sign-in",children:"Continuar com e-mail e senha"})})]}),v.jsxs("div",{className:"relative h-5 py-2.5",children:[v.jsx("hr",{className:"w-full -mt-px"}),v.jsx("div",{className:"w-full flex items-center justify-center absolute top-0.5 left-0",children:v.jsx("span",{className:"text-xs text-muted-foreground uppercase bg-sidebar px-2",children:"ou"})})]}),v.jsxs("div",{className:"space-y-12",children:[v.jsxs("div",{className:"flex flex-col gap-3 items-center w-full",children:[v.jsx(Cn,{to:"/sign-up/personal-data",className:"w-full",children:v.jsxs(it,{variant:"outline",className:"w-full bg-background",size:"lg",children:[v.jsx(pZ,{size:16}),"Criar conta"]})}),v.jsx(it,{variant:"link",onClick:l,className:"underline text-muted-foreground",size:"sm",type:"button",children:"Sou estudante de medicina"})]}),v.jsx("div",{className:"flex flex-col items-center w-full",children:v.jsx(it,{variant:"link",onClick:u,size:"sm",className:"text-muted-foreground",type:"button",children:"Ajuda para acessar"})})]})]})}function SP(){const e=Jn();return v.jsxs("div",{className:"flex flex-col gap-6 items-center justify-center",children:[v.jsx("div",{className:"p-2 bg-muted rounded-xl",children:v.jsx(bC,{className:"size-10"})}),v.jsxs("div",{className:"flex flex-col gap-1 text-center",children:[v.jsx("h1",{className:"text-2xl font-semibold",children:"Houve um erro inesperado"}),v.jsx("span",{children:"Não conseguimos carregar esta página corretamente. Isso pode ser temporário, atualize para continuar."})]}),v.jsx(it,{className:"w-full",onClick:()=>
254{e.invalidate()},children:"Atualizar página"})]})}var TX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nt=TX.reduce((e,t)=>{const n=Ps(`Primitive.${t}`),i=k.forwardRef((r,a)=>{const{asChild:l,...u}=r,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(f,{...u,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function RX(e,t){e&&Pc.flushSync(()=>e.dispatchEvent(t))}var wP=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"}),$X="VisuallyHidden",NX=k.forwardRef((e,t)=>v.jsx(nt.span,{...e,ref:t,style:{...wP,...e.style}}));NX.displayName=$X;function DX(e,t){const n=k.createContext(t),i=a=>{const{children:l,...u}=a,f=k.useMemo(()=>u,Object.values(u));return v.jsx(n.Provider,{value:f,children:l})};i.displayName=e+"Provider";function r(a){const l=k.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[i,r]}function Js(e,t=[]){let n=[];function i(a,l){const u=k.createContext(l),f=n.length;n=[...n,l];const m=g=>{var E;const{scope:b,children:_,...S}=g,w=((E=b==null?void 0:b[e])==null?void 0:E[f])||u,x=k.useMemo(()=>S,Object.values(S));return v.jsx(w.Provider,{value:x,children:_})};m.displayName=a+"Provider";function h(g,b){var w;const _=((w=b==null?void 0:b[e])==null?void 0:w[f])||u,S=k.useContext(_);if(S)return S;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${a}\``)}return[m,h]}const r=()=>{const a=n.map(l=>k.createContext(l));return function(u){const f=(u==null?void 0:u[e])||a;return k.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return r.scopeName=e,[i,CX(r,...t)]}function CX(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const l=i.reduce((u,{useScope:f,scopeName:m})=>{const g=f(a)[`__scope${m}`];return{...u,...g}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function AX(e){const t=e+"CollectionProvider",[n,i]=Js(t),[r,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:x,children:E}=w,O=Y.useRef(null),R=Y.useRef(new Map).current;return v.jsx(r,{scope:x,itemMap:R,collectionRef:O,children:E})};l.displayName=t;const u=e+"CollectionSlot",f=Ps(u),m=Y.forwardRef((w,x)=>{const{scope:E,children:O}=w,R=a(u,E),$=Pt(x,R.collectionRef);return v.jsx(f,{ref:$,children:O})});m.displayName=u;const h=e+"CollectionItemSlot",g="data-radix-collection-item",b=Ps(h),_=Y.forwardRef((w,x)=>{const{scope:E,children:O,...R}=w,$=Y.useRef(null),N=Pt(x,$),M=a(h,E);return Y.useEffect(()=>(M.itemMap.set($,{ref:$,...R}),()=>void M.itemMap.delete($))),v.jsx(b,{[g]:"",ref:N,children:O})});_.displayName=h;function S(w){const x=a(e+"CollectionConsumer",w);return Y.useCallback(()=>{const O=x.collectionRef.current;if(!O)return[];const R=Array.from(O.querySelectorAll(`[${g}]`));return Array.from(x.itemMap.values()).sort((M,C)=>R.indexOf(M.ref.current)-R.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:l,Slot:m,ItemSlot:_},S,i]}function _t(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var Ln=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},jX=wN[" useInsertionEffect ".trim().toString()]||Ln;function Md({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[r,a,l]=MX({defaultProp:t,onChange:n}),u=e!==void 0,f=u?e:r;{const h=k.useRef(e!==void 0);k.useEffect(()=>{const g=h.current;g!==u&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=u},[u,i])}const m=k.useCallback(h=>{var g;if(u){const b=IX(h)?h(e):h;b!==e&&((g=l.current)==null||g.call(l,b))}else a(h)},[u,e,a,l]);return[f,m]}function MX({defaultProp:e,onChange:t}){const[n,i]=k.useState(e),r=k.useRef(n),a=k.useRef(t);return jX(()=>{a.current=t},[t]),k.useEffect(()=>{var l;r.current!==n&&((l=a.current)==null||l.call(a,n),r.current=n)},[n,r]),[n,i,a]}function IX(e){return typeof e=="function"}function PX(e,t){return k.useReducer((n,i)=>t[n][i]??n,e)}var el=e=>{const{present:t,children:n}=e,i=zX(t),r=typeof n=="function"?n({present:i.isPresent}):k.Children.only(n),a=Pt(i.ref,UX(r));return typeof n=="function"||i.isPresent?k.cloneElement(r,{ref:a}):null};el.displayName="Presence";function zX(e){const[t,n]=k.useState(),i=k.useRef(null),r=k.useRef(e),a=k.useRef("none"),l=e?"mounted":"unmounted",[u,f]=PX(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const m=nh(i.current);a.current=u==="mounted"?m:"none"},[u]),Ln(()=>{const m=i.current,h=r.current;if(h!==e){const b=a.current,_=nh(m);e?f("MOUNT"):_==="none"||(m==null?void 0:m.display)==="none"?f("UNMOUNT"):f(h&&b!==_?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,f]),Ln(()=>
254{if(t){let m;const h=t.ownerDocument.defaultView??window,g=_=>{const w=nh(i.current).includes(CSS.escape(_.animationName));if(_.target===t&&w&&(f("ANIMATION_END"),!r.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",m=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},b=_=>{_.target===t&&(a.current=nh(i.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{h.clearTimeout(m),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:k.useCallback(m=>{i.current=m?getComputedStyle(m):null,n(m)},[])}}function nh(e){return(e==null?void 0:e.animationName)||"none"}function UX(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var LX=wN[" useId ".trim().toString()]||(()=>{}),FX=0;function $r(e){const[t,n]=k.useState(LX());return Ln(()=>{n(i=>i??String(FX++))},[e]),e||(t?`radix-${t}`:"")}var BX=k.createContext(void 0);function VX(e){const t=k.useContext(BX);return e||t||"ltr"}function Fs(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function HX(e,t=globalThis==null?void 0:globalThis.document){const n=Fs(e);k.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var qX="DismissableLayer",I_="dismissableLayer.update",ZX="dismissableLayer.pointerDownOutside",YX="dismissableLayer.focusOutside",MR,xP=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eg=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...f}=e,m=k.useContext(xP),[h,g]=k.useState(null),b=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,_]=k.useState({}),S=Pt(t,C=>g(C)),w=Array.from(m.layers),[x]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),E=w.indexOf(x),O=h?w.indexOf(h):-1,R=m.layersWithOutsidePointerEventsDisabled.size>0,$=O>=E,N=KX(C=>{const I=C.target,V=[...m.branches].some(L=>L.contains(I));!$||V||(r==null||r(C),l==null||l(C),C.defaultPrevented||u==null||u())},b),M=XX(C=>{const I=C.target;[...m.branches].some(L=>L.contains(I))||(a==null||a(C),l==null||l(C),C.defaultPrevented||u==null||u())},b);return HX(C=>{O===m.layers.size-1&&(i==null||i(C),!C.defaultPrevented&&u&&(C.preventDefault(),u()))},b),k.useEffect(()=>{if(h)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(MR=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(h)),m.layers.add(h),IR(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=MR)}},[h,b,n,m]),k.useEffect(()=>()=>{h&&(m.layers.delete(h),m.layersWithOutsidePointerEventsDisabled.delete(h),IR())},[h,m]),k.useEffect(()=>{const C=()=>_({});return document.addEventListener(I_,C),()=>document.removeEventListener(I_,C)},[]),v.jsx(nt.div,{...f,ref:S,style:{pointerEvents:R?$?"auto":"none":void 0,...e.style},onFocusCapture:_t(e.onFocusCapture,M.onFocusCapture),onBlurCapture:_t(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:_t(e.onPointerDownCapture,N.onPointerDownCapture)})});eg.displayName=qX;var WX="DismissableLayerBranch",GX=k.forwardRef((e,t)=>{const n=k.useContext(xP),i=k.useRef(null),r=Pt(t,i);return k.useEffect(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),v.jsx(nt.div,{...e,ref:r})});GX.displayName=WX;function KX(e,t=globalThis==null?void 0:globalThis.document){const n=Fs(e),i=k.useRef(!1),r=k.useRef(()=>{});return k.useEffect(()=>{const a=u=>{if(u.target&&!i.current){let f=function(){EP(ZX,n,m,{discrete:!0})};const m={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=f,t.addEventListener("click",r.current,{once:!0})):f()}else t.removeEventListener("click",r.current);i.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function XX(e,t=globalThis==null?void 0:globalThis.document){const n=Fs(e),i=k.useRef(!1);return k.useEffect(()=>{const r=a=>{a.target&&!i.current&&EP(YX,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function IR(){const e=new CustomEvent(I_);document.dispatchEvent(e)}function EP(e,t,n,{discrete:i}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?RX(r,a):r.dispatchEvent(a)}var ub="focusScope.autoFocusOnMount",db="focusScope.autoFocusOnUnmount",PR={bubbles:!1,cancelable:!0},QX="FocusScope",tg=k.forwardRef((e,t)=>
254{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...l}=e,[u,f]=k.useState(null),m=Fs(r),h=Fs(a),g=k.useRef(null),b=Pt(t,w=>f(w)),_=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(i){let w=function(R){if(_.paused||!u)return;const $=R.target;u.contains($)?g.current=$:ca(g.current,{select:!0})},x=function(R){if(_.paused||!u)return;const $=R.relatedTarget;$!==null&&(u.contains($)||ca(g.current,{select:!0}))},E=function(R){if(document.activeElement===document.body)for(const N of R)N.removedNodes.length>0&&ca(u)};document.addEventListener("focusin",w),document.addEventListener("focusout",x);const O=new MutationObserver(E);return u&&O.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",x),O.disconnect()}}},[i,u,_.paused]),k.useEffect(()=>{if(u){UR.add(_);const w=document.activeElement;if(!u.contains(w)){const E=new CustomEvent(ub,PR);u.addEventListener(ub,m),u.dispatchEvent(E),E.defaultPrevented||(JX(iQ(kP(u)),{select:!0}),document.activeElement===w&&ca(u))}return()=>{u.removeEventListener(ub,m),setTimeout(()=>{const E=new CustomEvent(db,PR);u.addEventListener(db,h),u.dispatchEvent(E),E.defaultPrevented||ca(w??document.body,{select:!0}),u.removeEventListener(db,h),UR.remove(_)},0)}}},[u,m,h,_]);const S=k.useCallback(w=>{if(!n&&!i||_.paused)return;const x=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,E=document.activeElement;if(x&&E){const O=w.currentTarget,[R,$]=eQ(O);R&&$?!w.shiftKey&&E===$?(w.preventDefault(),n&&ca(R,{select:!0})):w.shiftKey&&E===R&&(w.preventDefault(),n&&ca($,{select:!0})):E===O&&w.preventDefault()}},[n,i,_.paused]);return v.jsx(nt.div,{tabIndex:-1,...l,ref:b,onKeyDown:S})});tg.displayName=QX;function JX(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(ca(i,{select:t}),document.activeElement!==n)return}function eQ(e){const t=kP(e),n=zR(t,e),i=zR(t.reverse(),e);return[n,i]}function kP(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zR(e,t){for(const n of e)if(!tQ(n,{upTo:t}))return n}function tQ(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function nQ(e){return e instanceof HTMLInputElement&&"select"in e}function ca(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&nQ(e)&&t&&e.select()}}var UR=rQ();function rQ(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=LR(e,t),e.unshift(t)},remove(t){var n;e=LR(e,t),(n=e[0])==null||n.resume()}}}function LR(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function iQ(e){return e.filter(t=>t.tagName!=="A")}var oQ="Portal",ng=k.forwardRef((e,t)=>{var u;const{container:n,...i}=e,[r,a]=k.useState(!1);Ln(()=>a(!0),[]);const l=n||r&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return l?jF.createPortal(v.jsx(nt.div,{...i,ref:t}),l):null});ng.displayName=oQ;var fb=0;function k0(){k.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??FR()),document.body.insertAdjacentElement("beforeend",e[1]??FR()),fb++,()=>{fb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),fb--}},[])}function FR(){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 Ni=function(){return Ni=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ni.apply(this,arguments)};function OP(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function aQ(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,a;i<r;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var wh="right-scroll-bar-position",xh="width-before-scroll-bar",sQ="with-scroll-bars-hidden",lQ="--removed-body-scroll-bar-size";function mb(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function cQ(e,t){var n=k.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var r=n.value;r!==i&&(n.value=i,n.callback(i,r))}}}})[0];return n.callback=t,n.facade}var uQ=typeof window<"u"?k.useLayoutEffect:k.useEffect,BR=new WeakMap;function dQ(e,t){var n=cQ(null,function(i){return e.forEach(function(r){return mb(r,i)})});return uQ(function(){var i=BR.get(n);if(i){var r=new Set(i),a=new Set(e),l=n.current;r.forEach(function(u){a.has(u)||mb(u,null)}),a.forEach(function(u){r.has(u)||mb(u,l)})}BR.set(n,e)},[e]),n}function fQ(e){return e}function mQ(e,t){t===void 0&&(t=fQ);var n=[],i=!1,r={read:function(){if(i)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}
vendor: 5,388 bytes, lines 254-291
254,useMedium:function(a){var l=t(a,i);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(a){for(i=!0;n.length;){var l=n;n=[],l.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){i=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(a),l=n}var f=function(){var h=l;l=[],h.forEach(a)},m=function(){return Promise.resolve().then(f)};m(),n={push:function(h){l.push(h),m()},filter:function(h){return l=l.filter(h),n}}}};return r}function hQ(e){e===void 0&&(e={});var t=mQ(null);return t.options=Ni({async:!0,ssr:!1},e),t}var TP=function(e){var t=e.sideCar,n=OP(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return k.createElement(i,Ni({},n))};TP.isSideCarExport=!0;function pQ(e,t){return e.useMedium(t),TP}var RP=hQ(),hb=function(){},rg=k.forwardRef(function(e,t){var n=k.useRef(null),i=k.useState({onScrollCapture:hb,onWheelCapture:hb,onTouchMoveCapture:hb}),r=i[0],a=i[1],l=e.forwardProps,u=e.children,f=e.className,m=e.removeScrollBar,h=e.enabled,g=e.shards,b=e.sideCar,_=e.noRelative,S=e.noIsolation,w=e.inert,x=e.allowPinchZoom,E=e.as,O=E===void 0?"div":E,R=e.gapMode,$=OP(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=b,M=dQ([n,t]),C=Ni(Ni({},$),r);return k.createElement(k.Fragment,null,h&&k.createElement(N,{sideCar:RP,removeScrollBar:m,shards:g,noRelative:_,noIsolation:S,inert:w,setCallbacks:a,allowPinchZoom:!!x,lockRef:n,gapMode:R}),l?k.cloneElement(k.Children.only(u),Ni(Ni({},C),{ref:M})):k.createElement(O,Ni({},C,{className:f,ref:M}),u))});rg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rg.classNames={fullWidth:xh,zeroRight:wh};var gQ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vQ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gQ();return t&&e.setAttribute("nonce",t),e}function yQ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bQ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _Q=function(){var e=0,t=null;return{add:function(n){e==0&&(t=vQ())&&(yQ(t,n),bQ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},SQ=function(){var e=_Q();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$P=function(){var e=SQ(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},wQ={left:0,top:0,right:0,gap:0},pb=function(e){return parseInt(e||"",10)||0},xQ=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[pb(n),pb(i),pb(r)]},EQ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wQ;var t=xQ(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},kQ=$P(),rc="data-scroll-locked",OQ=function(e,t,n,i){var r=e.left,a=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
255  .`.concat(sQ,` {
256   overflow: hidden `).concat(i,`;
257   padding-right: `).concat(u,"px ").concat(i,`;
258  }
259  body[`).concat(rc,`] {
260    overflow: hidden `).concat(i,`;
261    overscroll-behavior: contain;
262    `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
263    padding-left: `.concat(r,`px;
264    padding-top: `).concat(a,`px;
265    padding-right: `).concat(l,`px;
266    margin-left:0;
267    margin-top:0;
268    margin-right: `).concat(u,"px ").concat(i,`;
269    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(i,";")].filter(Boolean).join(""),`
270  }
271  
272  .`).concat(wh,` {
273    right: `).concat(u,"px ").concat(i,`;
274  }
275  
276  .`).concat(xh,` {
277    margin-right: `).concat(u,"px ").concat(i,`;
278  }
279  
280  .`).concat(wh," .").concat(wh,` {
281    right: 0 `).concat(i,`;
282  }
283  
284  .`).concat(xh," .").concat(xh,` {
285    margin-right: 0 `).concat(i,`;
286  }
287  
288  body[`).concat(rc,`] {
289    `).concat(lQ,": ").concat(u,`px;
290  }
291`)},VR=function(){var e=parseInt(document.body.getAttribute(rc)||"0",10);return isFinite(e)?e:0},TQ=function(){k.useEffect(function(){return document.body.setAttribute(rc,(VR()+1).toString()),function(){var e=VR()-1;e<=0?document.body.removeAttribute(rc):document.body.setAttribute(rc,e.toString())}},[])},RQ=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;TQ();var a=k.useMemo(function(){return EQ(r)},[r]);return k.createElement(kQ,{styles:OQ(a,!t,r,n?"":"!important")})},P_=!1;if(typeof window<"u")try{var rh=Object.defineProperty({},"passive",{get:function(){return P_=!0,!0}});window.addEventListener("test",rh,rh),window.removeEventListener("test",rh,rh)}catch{P_=!1}var Vl=P_?{passive:!1}:!1,$Q=function(e){return e.tagName==="TEXTAREA"},NP=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$Q(e)&&n[t]==="visible")},NQ=function(e){return NP(e,"overflowY")},DQ=function(e){return NP(e,"overflowX")},HR=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=DP(e,i);
vendor: 6,099 bytes, lines 291-294
291if(r){var a=CP(e,i),l=a[1],u=a[2];if(l>u)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},CQ=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},AQ=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},DP=function(e,t){return e==="v"?NQ(t):DQ(t)},CP=function(e,t){return e==="v"?CQ(t):AQ(t)},jQ=function(e,t){return e==="h"&&t==="rtl"?-1:1},MQ=function(e,t,n,i,r){var a=jQ(e,window.getComputedStyle(t).direction),l=a*i,u=n.target,f=t.contains(u),m=!1,h=l>0,g=0,b=0;do{if(!u)break;var _=CP(e,u),S=_[0],w=_[1],x=_[2],E=w-x-a*S;(S||E)&&DP(e,u)&&(g+=E,b+=S);var O=u.parentNode;u=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(h&&Math.abs(g)<1||!h&&Math.abs(b)<1)&&(m=!0),m},ih=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qR=function(e){return[e.deltaX,e.deltaY]},ZR=function(e){return e&&"current"in e?e.current:e},IQ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},PQ=function(e){return`
292  .block-interactivity-`.concat(e,` {pointer-events: none;}
293  .allow-interactivity-`).concat(e,` {pointer-events: all;}
294`)},zQ=0,Hl=[];function UQ(e){var t=k.useRef([]),n=k.useRef([0,0]),i=k.useRef(),r=k.useState(zQ++)[0],a=k.useState($P)[0],l=k.useRef(e);k.useEffect(function(){l.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var w=aQ([e.lockRef.current],(e.shards||[]).map(ZR),!0).filter(Boolean);return w.forEach(function(x){return x.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),w.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var u=k.useCallback(function(w,x){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!l.current.allowPinchZoom;var E=ih(w),O=n.current,R="deltaX"in w?w.deltaX:O[0]-E[0],$="deltaY"in w?w.deltaY:O[1]-E[1],N,M=w.target,C=Math.abs(R)>Math.abs($)?"h":"v";if("touches"in w&&C==="h"&&M.type==="range")return!1;var I=HR(C,M);if(!I)return!0;if(I?N=C:(N=C==="v"?"h":"v",I=HR(C,M)),!I)return!1;if(!i.current&&"changedTouches"in w&&(R||$)&&(i.current=N),!N)return!0;var V=i.current||N;return MQ(V,x,w,V==="h"?R:$)},[]),f=k.useCallback(function(w){var x=w;if(!(!Hl.length||Hl[Hl.length-1]!==a)){var E="deltaY"in x?qR(x):ih(x),O=t.current.filter(function(N){return N.name===x.type&&(N.target===x.target||x.target===N.shadowParent)&&IQ(N.delta,E)})[0];if(O&&O.should){x.cancelable&&x.preventDefault();return}if(!O){var R=(l.current.shards||[]).map(ZR).filter(Boolean).filter(function(N){return N.contains(x.target)}),$=R.length>0?u(x,R[0]):!l.current.noIsolation;$&&x.cancelable&&x.preventDefault()}}},[]),m=k.useCallback(function(w,x,E,O){var R={name:w,delta:x,target:E,should:O,shadowParent:LQ(E)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function($){return $!==R})},1)},[]),h=k.useCallback(function(w){n.current=ih(w),i.current=void 0},[]),g=k.useCallback(function(w){m(w.type,qR(w),w.target,u(w,e.lockRef.current))},[]),b=k.useCallback(function(w){m(w.type,ih(w),w.target,u(w,e.lockRef.current))},[]);k.useEffect(function(){return Hl.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",f,Vl),document.addEventListener("touchmove",f,Vl),document.addEventListener("touchstart",h,Vl),function(){Hl=Hl.filter(function(w){return w!==a}),document.removeEventListener("wheel",f,Vl),document.removeEventListener("touchmove",f,Vl),document.removeEventListener("touchstart",h,Vl)}},[]);var _=e.removeScrollBar,S=e.inert;return k.createElement(k.Fragment,null,S?k.createElement(a,{styles:PQ(r)}):null,_?k.createElement(RQ,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function LQ(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const FQ=pQ(RP,UQ);var ig=k.forwardRef(function(e,t){return k.createElement(rg,Ni({},e,{ref:t,sideCar:FQ}))});ig.classNames=rg.classNames;var BQ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ql=new WeakMap,oh=new WeakMap,ah={},gb=0,AP=function(e){return e&&(e.host||AP(e.parentNode))},VQ=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=AP(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},HQ=function(e,t,n,i){var r=VQ(t,Array.isArray(e)?e:[e]);ah[n]||(ah[n]=new WeakMap);var a=ah[n],l=[],u=new Set,f=new Set(r),m=function(g){!g||u.has(g)||(u.add(g),m(g.parentNode))};r.forEach(m);var h=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(b){if(u.has(b))h(b);else try{var _=b.getAttribute(i),S=_!==null&&_!=="false",w=(ql.get(b)||0)+1,x=(a.get(b)||0)+1;ql.set(b,w),a.set(b,x),l.push(b),w===1&&S&&oh.set(b,!0),x===1&&b.setAttribute(n,"true"),S||b.setAttribute(i,"true")}catch(E){console.error("aria-hidden: cannot operate on ",b,E)}})};return h(t),u.clear(),gb++,function(){l.forEach(function(g){var b=ql.get(g)-1,_=a.get(g)-1;ql.set(g,b),a.set(g,_),b||(oh.has(g)||g.removeAttribute(i),oh.delete(g)),_||g.removeAttribute(n)}),gb--,gb||(ql=new WeakMap,ql=new WeakMap,oh=new WeakMap,ah={})}},O0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=BQ(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),HQ(i,r,n,"aria-hidden")):function(){return null}},og="Dialog",[jP,wue]=Js(og),[qQ,vi]=jP(og),MP=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:r,onOpenChange:a,modal:l=!0}=e,u=k.useRef(null),f=k.useRef(null),[m,h]=Md({prop:i,defaultProp:r??!1,onChange:a,caller:og});return v.jsx(qQ,{scope:t,triggerRef:u,contentRef:f,contentId:$r(),titleId:$r(),descriptionId:$r(),open:m,onOpenChange:h,onOpenToggle:k.useCallback(()=>h(g=>!g),[h]),modal:l,children:n})};MP.displayName=og;var IP="DialogTrigger",PP=k.forwardRef((e,t)=>
294{const{__scopeDialog:n,...i}=e,r=vi(IP,n),a=Pt(t,r.triggerRef);return v.jsx(nt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":$0(r.open),...i,ref:a,onClick:_t(e.onClick,r.onOpenToggle)})});PP.displayName=IP;var T0="DialogPortal",[ZQ,zP]=jP(T0,{forceMount:void 0}),UP=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:r}=e,a=vi(T0,t);return v.jsx(ZQ,{scope:t,forceMount:n,children:k.Children.map(i,l=>v.jsx(el,{present:n||a.open,children:v.jsx(ng,{asChild:!0,container:r,children:l})}))})};UP.displayName=T0;var np="DialogOverlay",LP=k.forwardRef((e,t)=>{const n=zP(np,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,a=vi(np,e.__scopeDialog);return a.modal?v.jsx(el,{present:i||a.open,children:v.jsx(WQ,{...r,ref:t})}):null});LP.displayName=np;var YQ=Ps("DialogOverlay.RemoveScroll"),WQ=k.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=vi(np,n);return v.jsx(ig,{as:YQ,allowPinchZoom:!0,shards:[r.contentRef],children:v.jsx(nt.div,{"data-state":$0(r.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),Bs="DialogContent",FP=k.forwardRef((e,t)=>{const n=zP(Bs,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,a=vi(Bs,e.__scopeDialog);return v.jsx(el,{present:i||a.open,children:a.modal?v.jsx(GQ,{...r,ref:t}):v.jsx(KQ,{...r,ref:t})})});FP.displayName=Bs;var GQ=k.forwardRef((e,t)=>{const n=vi(Bs,e.__scopeDialog),i=k.useRef(null),r=Pt(t,n.contentRef,i);return k.useEffect(()=>{const a=i.current;if(a)return O0(a)},[]),v.jsx(BP,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_t(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:_t(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&a.preventDefault()}),onFocusOutside:_t(e.onFocusOutside,a=>a.preventDefault())})}),KQ=k.forwardRef((e,t)=>{const n=vi(Bs,e.__scopeDialog),i=k.useRef(!1),r=k.useRef(!1);return v.jsx(BP,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var l,u;(l=e.onCloseAutoFocus)==null||l.call(e,a),a.defaultPrevented||(i.current||(u=n.triggerRef.current)==null||u.focus(),a.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:a=>{var f,m;(f=e.onInteractOutside)==null||f.call(e,a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const l=a.target;((m=n.triggerRef.current)==null?void 0:m.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}})}),BP=k.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:a,...l}=e,u=vi(Bs,n),f=k.useRef(null),m=Pt(t,f);return k0(),v.jsxs(v.Fragment,{children:[v.jsx(tg,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:a,children:v.jsx(eg,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":$0(u.open),...l,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(XQ,{titleId:u.titleId}),v.jsx(JQ,{contentRef:f,descriptionId:u.descriptionId})]})]})}),R0="DialogTitle",VP=k.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=vi(R0,n);return v.jsx(nt.h2,{id:r.titleId,...i,ref:t})});VP.displayName=R0;var HP="DialogDescription",qP=k.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=vi(HP,n);return v.jsx(nt.p,{id:r.descriptionId,...i,ref:t})});qP.displayName=HP;var ZP="DialogClose",YP=k.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=vi(ZP,n);return v.jsx(nt.button,{type:"button",...i,ref:t,onClick:_t(e.onClick,()=>r.onOpenChange(!1))})});YP.displayName=ZP;function $0(e){return e?"open":"closed"}var WP="DialogTitleWarning",[xue,GP]=DX(WP,{contentName:Bs,titleName:R0,docsSlug:"dialog"}),XQ=({titleId:e})=>{const t=GP(WP),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
295
296If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
297
298For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},QQ="DialogDescriptionWarning",JQ=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${GP(QQ).contentName}}.`;return k.useEffect(()=>{var a;const r=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},KP=MP,eJ=PP,XP=UP,QP=LP,JP=FP,tJ=VP,nJ=qP,rJ=YP;function ez(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function tz(e){const[t,n]=k.useState(void 0);return Ln(()=>
298{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let l,u;if("borderBoxSize"in a){const f=a.borderBoxSize,m=Array.isArray(f)?f[0]:f;l=m.inlineSize,u=m.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var ag="Checkbox",[iJ,Eue]=Js(ag),[oJ,N0]=iJ(ag);function aJ(e){const{__scopeCheckbox:t,checked:n,children:i,defaultChecked:r,disabled:a,form:l,name:u,onCheckedChange:f,required:m,value:h="on",internal_do_not_use_render:g}=e,[b,_]=Md({prop:n,defaultProp:r??!1,onChange:f,caller:ag}),[S,w]=k.useState(null),[x,E]=k.useState(null),O=k.useRef(!1),R=S?!!l||!!S.closest("form"):!0,$={checked:b,disabled:a,setChecked:_,control:S,setControl:w,name:u,form:l,value:h,hasConsumerStoppedPropagationRef:O,required:m,defaultChecked:Ea(r)?!1:r,isFormControl:R,bubbleInput:x,setBubbleInput:E};return v.jsx(oJ,{scope:t,...$,children:sJ(g)?g($):i})}var nz="CheckboxTrigger",rz=k.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...i},r)=>{const{control:a,value:l,disabled:u,checked:f,required:m,setControl:h,setChecked:g,hasConsumerStoppedPropagationRef:b,isFormControl:_,bubbleInput:S}=N0(nz,e),w=Pt(r,h),x=k.useRef(f);return k.useEffect(()=>{const E=a==null?void 0:a.form;if(E){const O=()=>g(x.current);return E.addEventListener("reset",O),()=>E.removeEventListener("reset",O)}},[a,g]),v.jsx(nt.button,{type:"button",role:"checkbox","aria-checked":Ea(f)?"mixed":f,"aria-required":m,"data-state":cz(f),"data-disabled":u?"":void 0,disabled:u,value:l,...i,ref:w,onKeyDown:_t(t,E=>{E.key==="Enter"&&E.preventDefault()}),onClick:_t(n,E=>{g(O=>Ea(O)?!0:!O),S&&_&&(b.current=E.isPropagationStopped(),b.current||E.stopPropagation())})})});rz.displayName=nz;var iz=k.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:i,checked:r,defaultChecked:a,required:l,disabled:u,value:f,onCheckedChange:m,form:h,...g}=e;return v.jsx(aJ,{__scopeCheckbox:n,checked:r,defaultChecked:a,disabled:u,required:l,onCheckedChange:m,name:i,form:h,value:f,internal_do_not_use_render:({isFormControl:b})=>v.jsxs(v.Fragment,{children:[v.jsx(rz,{...g,ref:t,__scopeCheckbox:n}),b&&v.jsx(lz,{__scopeCheckbox:n})]})})});iz.displayName=ag;var oz="CheckboxIndicator",az=k.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:i,...r}=e,a=N0(oz,n);return v.jsx(el,{present:i||Ea(a.checked)||a.checked===!0,children:v.jsx(nt.span,{"data-state":cz(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});az.displayName=oz;var sz="CheckboxBubbleInput",lz=k.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:i,hasConsumerStoppedPropagationRef:r,checked:a,defaultChecked:l,required:u,disabled:f,name:m,value:h,form:g,bubbleInput:b,setBubbleInput:_}=N0(sz,e),S=Pt(n,_),w=ez(a),x=tz(i);k.useEffect(()=>{const O=b;if(!O)return;const R=window.HTMLInputElement.prototype,N=Object.getOwnPropertyDescriptor(R,"checked").set,M=!r.current;if(w!==a&&N){const C=new Event("click",{bubbles:M});O.indeterminate=Ea(a),N.call(O,Ea(a)?!1:a),O.dispatchEvent(C)}},[b,w,a,r]);const E=k.useRef(Ea(a)?!1:a);return v.jsx(nt.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??E.current,required:u,disabled:f,name:m,value:h,form:g,...t,tabIndex:-1,ref:S,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});lz.displayName=sz;function sJ(e){return typeof e=="function"}function Ea(e){return e==="indeterminate"}function cz(e){return Ea(e)?"indeterminate":e?"checked":"unchecked"}const lJ=["top","right","bottom","left"],Ra=Math.min,kr=Math.max,rp=Math.round,sh=Math.floor,Pi=e=>({x:e,y:e}
vendor: 5,709 bytes, line 298
298),cJ={left:"right",right:"left",bottom:"top",top:"bottom"},uJ={start:"end",end:"start"};function z_(e,t,n){return kr(e,Ra(t,n))}function Ro(e,t){return typeof e=="function"?e(t):e}function $o(e){return e.split("-")[0]}function Kc(e){return e.split("-")[1]}function D0(e){return e==="x"?"y":"x"}function C0(e){return e==="y"?"height":"width"}const dJ=new Set(["top","bottom"]);function Ci(e){return dJ.has($o(e))?"y":"x"}function A0(e){return D0(Ci(e))}function fJ(e,t,n){n===void 0&&(n=!1);const i=Kc(e),r=A0(e),a=C0(r);let l=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=ip(l)),[l,ip(l)]}function mJ(e){const t=ip(e);return[U_(e),t,U_(t)]}function U_(e){return e.replace(/start|end/g,t=>uJ[t])}const YR=["left","right"],WR=["right","left"],hJ=["top","bottom"],pJ=["bottom","top"];function gJ(e,t,n){switch(e){case"top":case"bottom":return n?t?WR:YR:t?YR:WR;case"left":case"right":return t?hJ:pJ;default:return[]}}function vJ(e,t,n,i){const r=Kc(e);let a=gJ($o(e),n==="start",i);return r&&(a=a.map(l=>l+"-"+r),t&&(a=a.concat(a.map(U_)))),a}function ip(e){return e.replace(/left|right|bottom|top/g,t=>cJ[t])}function yJ(e){return{top:0,right:0,bottom:0,left:0,...e}}function uz(e){return typeof e!="number"?yJ(e):{top:e,right:e,bottom:e,left:e}}function op(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function GR(e,t,n){let{reference:i,floating:r}=e;const a=Ci(t),l=A0(t),u=C0(l),f=$o(t),m=a==="y",h=i.x+i.width/2-r.width/2,g=i.y+i.height/2-r.height/2,b=i[u]/2-r[u]/2;let _;switch(f){case"top":_={x:h,y:i.y-r.height};break;case"bottom":_={x:h,y:i.y+i.height};break;case"right":_={x:i.x+i.width,y:g};break;case"left":_={x:i.x-r.width,y:g};break;default:_={x:i.x,y:i.y}}switch(Kc(t)){case"start":_[l]-=b*(n&&m?-1:1);break;case"end":_[l]+=b*(n&&m?-1:1);break}return _}const bJ=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:a=[],platform:l}=n,u=a.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let m=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:g}=GR(m,i,f),b=i,_={},S=0;for(let w=0;w<u.length;w++){const{name:x,fn:E}=u[w],{x:O,y:R,data:$,reset:N}=await E({x:h,y:g,initialPlacement:i,placement:b,strategy:r,middlewareData:_,rects:m,platform:l,elements:{reference:e,floating:t}});h=O??h,g=R??g,_={..._,[x]:{..._[x],...$}},N&&S<=50&&(S++,typeof N=="object"&&(N.placement&&(b=N.placement),N.rects&&(m=N.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:r}):N.rects),{x:h,y:g}=GR(m,b,f)),w=-1)}return{x:h,y:g,placement:b,strategy:r,middlewareData:_}};async function Id(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:a,rects:l,elements:u,strategy:f}=e,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:b=!1,padding:_=0}=Ro(t,e),S=uz(_),x=u[b?g==="floating"?"reference":"floating":g],E=op(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:m,rootBoundary:h,strategy:f})),O=g==="floating"?{x:i,y:r,width:l.floating.width,height:l.floating.height}:l.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),$=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},N=op(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:O,offsetParent:R,strategy:f}):O);return{top:(E.top-N.top+S.top)/$.y,bottom:(N.bottom-E.bottom+S.bottom)/$.y,left:(E.left-N.left+S.left)/$.x,right:(N.right-E.right+S.right)/$.x}}const _J=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:a,platform:l,elements:u,middlewareData:f}=t,{element:m,padding:h=0}=Ro(e,t)||{};if(m==null)return{};const g=uz(h),b={x:n,y:i},_=A0(r),S=C0(_),w=await l.getDimensions(m),x=_==="y",E=x?"top":"left",O=x?"bottom":"right",R=x?"clientHeight":"clientWidth",$=a.reference[S]+a.reference[_]-b[_]-a.floating[S],N=b[_]-a.reference[_],M=await(l.getOffsetParent==null?void 0:l.getOffsetParent(m));let C=M?M[R]:0;(!C||!await(l.isElement==null?void 0:l.isElement(M)))&&(C=u.floating[R]||a.floating[S]);const I=$/2-N/2,V=C/2-w[S]/2-1,L=Ra(g[E],V),K=Ra(g[O],V),H=L,F=C-w[S]-K,ae=C/2-w[S]/2+I,ue=z_(H,ae,F),j=!f.arrow&&Kc(r)!=null&&ae!==ue&&a.reference[S]/2-(ae<H?L:K)-w[S]/2<0,G=j?ae<H?ae-H:ae-F:0;return{[_]:b[_]+G,data:{[_]:ue,centerOffset:ae-ue-G,...j&&{alignmentOffset:G}},reset:j}}}),SJ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:a,rects:l,initialPlacement:u,platform:f,elements:m}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:w=!0,...x}=Ro(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const E=$o(r),O=Ci(u),R=$o(u)===u,$=await(f.isRTL==null?void 0:f.isRTL(m.floating)),N=b||(R||!w?[ip(u)]:mJ(u)),M=S!=="none";!b&&M&&N.push(...vJ(u,w,S,$));const C=[u,...N],I=await Id(t,x),V=[];let L=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&V.push(I[E]),g){const ae=fJ(r,l,$);V.push(I[ae[0]],I[ae[1]])}if(L=[...L,{placement:r,overflows:V}],!V.every(ae=>ae<=0)){var K,H;const ae=(((K=a.flip)==null?void 0:K.index)||0)+1,ue=C[ae];if(ue&&(!(g==="alignment"?O!==Ci(ue):!1)||L.every(B=>Ci(B.placement)===O?B.overflows[0]>0:!0)))return{data:{index:ae,overflows:L},reset:{placement:ue}};let j=(H=L.filter(G=>G.overflows[0]<=0).sort((G,B)=>G.overflows[1]-B.overflows[1])[0])==null?void 0:H.placement;if(!j)switch(_){case"bestFit":{var F;
298const G=(F=L.filter(B=>{if(M){const fe=Ci(B.placement);return fe===O||fe==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(fe=>fe>0).reduce((fe,A)=>fe+A,0)]).sort((B,fe)=>B[1]-fe[1])[0])==null?void 0:F[0];G&&(j=G);break}case"initialPlacement":j=u;break}if(r!==j)return{reset:{placement:j}}}return{}}}};function KR(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function XR(e){return lJ.some(t=>e[t]>=0)}const wJ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=Ro(e,t);switch(i){case"referenceHidden":{const a=await Id(t,{...r,elementContext:"reference"}),l=KR(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:XR(l)}}}case"escaped":{const a=await Id(t,{...r,altBoundary:!0}),l=KR(a,n.floating);return{data:{escapedOffsets:l,escaped:XR(l)}}}default:return{}}}}},dz=new Set(["left","top"]);async function xJ(e,t){const{placement:n,platform:i,elements:r}=e,a=await(i.isRTL==null?void 0:i.isRTL(r.floating)),l=$o(n),u=Kc(n),f=Ci(n)==="y",m=dz.has(l)?-1:1,h=a&&f?-1:1,g=Ro(t,e);let{mainAxis:b,crossAxis:_,alignmentAxis:S}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof S=="number"&&(_=u==="end"?S*-1:S),f?{x:_*h,y:b*m}:{x:b*m,y:_*h}}const EJ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:a,placement:l,middlewareData:u}=t,f=await xJ(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(i=u.arrow)!=null&&i.alignmentOffset?{}:{x:r+f.x,y:a+f.y,data:{...f,placement:l}}}}},kJ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:x=>{let{x:E,y:O}=x;return{x:E,y:O}}},...f}=Ro(e,t),m={x:n,y:i},h=await Id(t,f),g=Ci($o(r)),b=D0(g);let _=m[b],S=m[g];if(a){const x=b==="y"?"top":"left",E=b==="y"?"bottom":"right",O=_+h[x],R=_-h[E];_=z_(O,_,R)}if(l){const x=g==="y"?"top":"left",E=g==="y"?"bottom":"right",O=S+h[x],R=S-h[E];S=z_(O,S,R)}const w=u.fn({...t,[b]:_,[g]:S});return{...w,data:{x:w.x-n,y:w.y-i,enabled:{[b]:a,[g]:l}}}}}},OJ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:a,middlewareData:l}=t,{offset:u=0,mainAxis:f=!0,crossAxis:m=!0}=Ro(e,t),h={x:n,y:i},g=Ci(r),b=D0(g);let _=h[b],S=h[g];const w=Ro(u,t),x=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){const R=b==="y"?"height":"width",$=a.reference[b]-a.floating[R]+x.mainAxis,N=a.reference[b]+a.reference[R]-x.mainAxis;_<$?_=$:_>N&&(_=N)}if(m){var E,O;const R=b==="y"?"width":"height",$=dz.has($o(r)),N=a.reference[g]-a.floating[R]+($&&((E=l.offset)==null?void 0:E[g])||0)+($?0:x.crossAxis),M=a.reference[g]+a.reference[R]+($?0:((O=l.offset)==null?void 0:O[g])||0)-($?x.crossAxis:0);S<N?S=N:S>M&&(S=M)}return{[b]:_,[g]:S}}}},TJ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:a,platform:l,elements:u}=t,{apply:f=()=>{},...m}=Ro(e,t),h=await Id(t,m),g=$o(r),b=Kc(r),_=Ci(r)==="y",{width:S,height:w}=a.floating;let x,E;g==="top"||g==="bottom"?(x=g,E=b===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(E=g,x=b==="end"?"top":"bottom");const O=w-h.top-h.bottom,R=S-h.left-h.right,$=Ra(w-h[x],O),N=Ra(S-h[E],R),M=!t.middlewareData.shift;let C=$,I=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=R),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(C=O),M&&!b){const L=kr(h.left,0),K=kr(h.right,0),H=kr(h.top,0),F=kr(h.bottom,0);_?I=S-2*(L!==0||K!==0?L+K:kr(h.left,h.right)):C=w-2*(H!==0||F!==0?H+F:kr(h.top,h.bottom))}await f({...t,availableWidth:I,availableHeight:C});const V=await l.getDimensions(u.floating);return S!==V.width||w!==V.height?{reset:{rects:!0}}:{}}}};function sg(){return typeof window<"u"}function Xc(e){return fz(e)?(e.nodeName||"").toLowerCase():"#document"}function Nr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vi(e){var t;return(t=(fz(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fz(e){return sg()?e instanceof Node||e instanceof Nr(e).Node:!1}function mi(e){return sg()?e instanceof Element||e instanceof Nr(e).Element:!1}function Ui(e){return sg()?e instanceof HTMLElement||e instanceof Nr(e).HTMLElement:!1}function QR(e){return!sg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nr(e).ShadowRoot}const RJ=new Set(["inline","contents"]);function bf(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=hi(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!RJ.has(r)}const $J=new Set(["table","td","th"]);function NJ(e){return $J.has(Xc(e))}
298const DJ=[":popover-open",":modal"];function lg(e){return DJ.some(t=>{try{return e.matches(t)}catch{return!1}})}const CJ=["transform","translate","scale","rotate","perspective"],AJ=["transform","translate","scale","rotate","perspective","filter"],jJ=["paint","layout","strict","content"];function j0(e){const t=M0(),n=mi(e)?hi(e):e;return CJ.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||AJ.some(i=>(n.willChange||"").includes(i))||jJ.some(i=>(n.contain||"").includes(i))}function MJ(e){let t=$a(e);for(;Ui(t)&&!Cc(t);){if(j0(t))return t;if(lg(t))return null;t=$a(t)}return null}function M0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const IJ=new Set(["html","body","#document"]);function Cc(e){return IJ.has(Xc(e))}function hi(e){return Nr(e).getComputedStyle(e)}function cg(e){return mi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $a(e){if(Xc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||QR(e)&&e.host||Vi(e);return QR(t)?t.host:t}function mz(e){const t=$a(e);return Cc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ui(t)&&bf(t)?t:mz(t)}function Pd(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=mz(e),a=r===((i=e.ownerDocument)==null?void 0:i.body),l=Nr(r);if(a){const u=L_(l);return t.concat(l,l.visualViewport||[],bf(r)?r:[],u&&n?Pd(u):[])}return t.concat(r,Pd(r,[],n))}function L_(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hz(e){const t=hi(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Ui(e),a=r?e.offsetWidth:n,l=r?e.offsetHeight:i,u=rp(n)!==a||rp(i)!==l;return u&&(n=a,i=l),{width:n,height:i,$:u}}function I0(e){return mi(e)?e:e.contextElement}function ic(e){const t=I0(e);if(!Ui(t))return Pi(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:a}=hz(t);let l=(a?rp(n.width):n.width)/i,u=(a?rp(n.height):n.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const PJ=Pi(0);function pz(e){const t=Nr(e);return!M0()||!t.visualViewport?PJ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zJ(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nr(e)?!1:t}function Vs(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=I0(e);let l=Pi(1);t&&(i?mi(i)&&(l=ic(i)):l=ic(e));const u=zJ(a,n,i)?pz(a):Pi(0);let f=(r.left+u.x)/l.x,m=(r.top+u.y)/l.y,h=r.width/l.x,g=r.height/l.y;if(a){const b=Nr(a),_=i&&mi(i)?Nr(i):i;let S=b,w=L_(S);for(;w&&i&&_!==S;){const x=ic(w),E=w.getBoundingClientRect(),O=hi(w),R=E.left+(w.clientLeft+parseFloat(O.paddingLeft))*x.x,$=E.top+(w.clientTop+parseFloat(O.paddingTop))*x.y;f*=x.x,m*=x.y,h*=x.x,g*=x.y,f+=R,m+=$,S=Nr(w),w=L_(S)}}return op({width:h,height:g,x:f,y:m})}function ug(e,t){const n=cg(e).scrollLeft;return t?t.left+n:Vs(Vi(e)).left+n}function gz(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-ug(e,n),r=n.top+t.scrollTop;return{x:i,y:r}}function UJ(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const a=r==="fixed",l=Vi(i),u=t?lg(t.floating):!1;if(i===l||u&&a)return n;let f={scrollLeft:0,scrollTop:0},m=Pi(1);const h=Pi(0),g=Ui(i);if((g||!g&&!a)&&((Xc(i)!=="body"||bf(l))&&(f=cg(i)),Ui(i))){const _=Vs(i);m=ic(i),h.x=_.x+i.clientLeft,h.y=_.y+i.clientTop}const b=l&&!g&&!a?gz(l,f):Pi(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-f.scrollLeft*m.x+h.x+b.x,y:n.y*m.y-f.scrollTop*m.y+h.y+b.y}}function LJ(e){return Array.from(e.getClientRects())}function FJ(e){const t=Vi(e),n=cg(e),i=e.ownerDocument.body,r=kr(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=kr(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let l=-n.scrollLeft+ug(e);const u=-n.scrollTop;return hi(i).direction==="rtl"&&(l+=kr(t.clientWidth,i.clientWidth)-r),{width:r,height:a,x:l,y:u}}const JR=25;function BJ(e,t){const n=Nr(e),i=Vi(e),r=n.visualViewport;let a=i.clientWidth,l=i.clientHeight,u=0,f=0;if(r){a=r.width,l=r.height;const h=M0();(!h||h&&t==="fixed")&&(u=r.offsetLeft,f=r.offsetTop)}const m=ug(i);if(m<=0){const h=i.ownerDocument,g=h.body,b=getComputedStyle(g),_=h.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,S=Math.abs(i.clientWidth-g.clientWidth-_);S<=JR&&(a-=S)}else m<=JR&&(a+=m);return{width:a,height:l,x:u,y:f}}const VJ=new Set(["absolute","fixed"]);function HJ(e,t){const n=Vs(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,a=Ui(e)?ic(e):Pi(1),l=e.clientWidth*a.x,u=e.clientHeight*a.y,f=r*a.x,m=i*a.y;return{width:l,height:u,x:f,y:m}}function e$(e,t,n){let i;if(t==="viewport")i=BJ(e,n);else if(t==="document")i=FJ(Vi(e));else if(mi(t))i=HJ(t,n);else{const r=pz(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return op(i)}function vz(e,t){const n=$a(e);return n===t||!mi(n)||Cc(n)?!1:hi(n).position==="fixed"||vz(n,t)}function qJ(e,t){const n=t.get(e);if(n)return n;let i=Pd(e,[],!1).filter(u=>mi(u)&&Xc(u)!=="body"),r=null;const a=hi(e).position==="fixed";let l=a?$a(e):e;for(;mi(l)&&!Cc(l);){const u=hi(l),f=j0(l);!f&&u.position==="fixed"&&(r=null),(a?!f&&!r:!f&&u.position==="static"&&!!r&&VJ.has(r.position)||bf(l)&&!f&&vz(e,l))?i=i.filter(h=>h!==l):r=u,l=$a(l)}return t.set(e,i),i}function ZJ(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const l=[...n==="clippingAncestors"?lg(t)?[]:qJ(t,this._c):[].concat(n),i],u=l[0],f=l.reduce((m,h)=>{const g=e$(t,h,r);return m.top=kr(g.top,m.top),m.right=Ra(g.right,m.right),m.bottom=Ra(g.bottom,m.bottom),m.left=kr(g.left,m.left),m},e$(t,u,r));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function YJ(e){const{width:t,height:n}=hz(e);return{width:t,height:n}}function WJ(e,t,n){const i=Ui(t),r=Vi(t),a=n==="fixed",l=Vs(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const f=Pi(0);function m(){f.x=ug(r)}if(i||!i&&!a)if((Xc(t)!=="body"||bf(r))&&(u=cg(t)),i){const _=Vs(t,!0,a,t);f.x=_.x+t.clientLeft,f.y=_.y+t.clientTop}else r&&m();a&&!i&&r&&m();const h=r&&!i&&!a?gz(r,u):Pi(0),g=l.left+u.scrollLeft-f.x-h.x,b=l.top+u.scrollTop-f.y-h.y;return{x:g,y:b,width:l.width,height:l.height}}function vb(e){return hi(e).position==="static"}function t$(e,t){if(!Ui(e)||hi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Vi(e)===n&&(n=n.ownerDocument.body),n}function yz(e,t){const n=Nr(e);
298if(lg(e))return n;if(!Ui(e)){let r=$a(e);for(;r&&!Cc(r);){if(mi(r)&&!vb(r))return r;r=$a(r)}return n}let i=t$(e,t);for(;i&&NJ(i)&&vb(i);)i=t$(i,t);return i&&Cc(i)&&vb(i)&&!j0(i)?n:i||MJ(e)||n}const GJ=async function(e){const t=this.getOffsetParent||yz,n=this.getDimensions,i=await n(e.floating);return{reference:WJ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function KJ(e){return hi(e).direction==="rtl"}const XJ={convertOffsetParentRelativeRectToViewportRelativeRect:UJ,getDocumentElement:Vi,getClippingRect:ZJ,getOffsetParent:yz,getElementRects:GJ,getClientRects:LJ,getDimensions:YJ,getScale:ic,isElement:mi,isRTL:KJ};function bz(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function QJ(e,t){let n=null,i;const r=Vi(e);function a(){var u;clearTimeout(i),(u=n)==null||u.disconnect(),n=null}function l(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),a();const m=e.getBoundingClientRect(),{left:h,top:g,width:b,height:_}=m;if(u||t(),!b||!_)return;const S=sh(g),w=sh(r.clientWidth-(h+b)),x=sh(r.clientHeight-(g+_)),E=sh(h),R={rootMargin:-S+"px "+-w+"px "+-x+"px "+-E+"px",threshold:kr(0,Ra(1,f))||1};let $=!0;function N(M){const C=M[0].intersectionRatio;if(C!==f){if(!$)return l();C?l(!1,C):i=setTimeout(()=>{l(!1,1e-7)},1e3)}C===1&&!bz(m,e.getBoundingClientRect())&&l(),$=!1}try{n=new IntersectionObserver(N,{...R,root:r.ownerDocument})}catch{n=new IntersectionObserver(N,R)}n.observe(e)}return l(!0),a}function JJ(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=i,m=I0(e),h=r||a?[...m?Pd(m):[],...Pd(t)]:[];h.forEach(E=>{r&&E.addEventListener("scroll",n,{passive:!0}),a&&E.addEventListener("resize",n)});const g=m&&u?QJ(m,n):null;let b=-1,_=null;l&&(_=new ResizeObserver(E=>{let[O]=E;O&&O.target===m&&_&&(_.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=_)==null||R.observe(t)})),n()}),m&&!f&&_.observe(m),_.observe(t));let S,w=f?Vs(e):null;f&&x();function x(){const E=Vs(e);w&&!bz(w,E)&&n(),w=E,S=requestAnimationFrame(x)}return n(),()=>{var E;h.forEach(O=>{r&&O.removeEventListener("scroll",n),a&&O.removeEventListener("resize",n)}),g==null||g(),(E=_)==null||E.disconnect(),_=null,f&&cancelAnimationFrame(S)}}const eee=EJ,tee=kJ,nee=SJ,ree=TJ,iee=wJ,n$=_J,oee=OJ,aee=(e,t,n)=>{const i=new Map,r={platform:XJ,...n},a={...r.platform,_c:i};return bJ(e,t,{...r,platform:a})};var see=typeof document<"u",lee=function(){},Eh=see?k.useLayoutEffect:lee;function ap(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!ap(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const a=r[i];if(!(a==="_owner"&&e.$$typeof)&&!ap(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function _z(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function r$(e,t){const n=_z(e);return Math.round(t*n)/n}function yb(e){const t=k.useRef(e);return Eh(()=>{t.current=e}),t}function cee(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:f,open:m}=e,[h,g]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,_]=k.useState(i);ap(b,i)||_(i);const[S,w]=k.useState(null),[x,E]=k.useState(null),O=k.useCallback(B=>{B!==M.current&&(M.current=B,w(B))},[]),R=k.useCallback(B=>{B!==C.current&&(C.current=B,E(B))},[]),$=a||S,N=l||x,M=k.useRef(null),C=k.useRef(null),I=k.useRef(h),V=f!=null,L=yb(f),K=yb(r),H=yb(m),F=k.useCallback(()=>{if(!M.current||!C.current)return;const B={placement:t,strategy:n,middleware:b};K.current&&(B.platform=K.current),aee(M.current,C.current,B).then(fe=>{const A={...fe,isPositioned:H.current!==!1};ae.current&&!ap(I.current,A)&&(I.current=A,Pc.flushSync(()=>{g(A)}))})},[b,t,n,K,H]);Eh(()=>{m===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,g(B=>({...B,isPositioned:!1})))},[m]);const ae=k.useRef(!1);Eh(()=>(ae.current=!0,()=>{ae.current=!1}),[]),Eh(()=>
298{if($&&(M.current=$),N&&(C.current=N),$&&N){if(L.current)return L.current($,N,F);F()}},[$,N,F,L,V]);const ue=k.useMemo(()=>({reference:M,floating:C,setReference:O,setFloating:R}),[O,R]),j=k.useMemo(()=>({reference:$,floating:N}),[$,N]),G=k.useMemo(()=>{const B={position:n,left:0,top:0};if(!j.floating)return B;const fe=r$(j.floating,h.x),A=r$(j.floating,h.y);return u?{...B,transform:"translate("+fe+"px, "+A+"px)",..._z(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:fe,top:A}},[n,u,j.floating,h.x,h.y]);return k.useMemo(()=>({...h,update:F,refs:ue,elements:j,floatingStyles:G}),[h,F,ue,j,G])}const uee=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:r}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?n$({element:i.current,padding:r}).fn(n):{}:i?n$({element:i,padding:r}).fn(n):{}}}},dee=(e,t)=>({...eee(e),options:[e,t]}),fee=(e,t)=>({...tee(e),options:[e,t]}),mee=(e,t)=>({...oee(e),options:[e,t]}),hee=(e,t)=>({...nee(e),options:[e,t]}),pee=(e,t)=>({...ree(e),options:[e,t]}),gee=(e,t)=>({...iee(e),options:[e,t]}),vee=(e,t)=>({...uee(e),options:[e,t]});var yee="Arrow",Sz=k.forwardRef((e,t)=>{const{children:n,width:i=10,height:r=5,...a}=e;return v.jsx(nt.svg,{...a,ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});Sz.displayName=yee;var bee=Sz,P0="Popper",[wz,dg]=Js(P0),[_ee,xz]=wz(P0),Ez=e=>{const{__scopePopper:t,children:n}=e,[i,r]=k.useState(null);return v.jsx(_ee,{scope:t,anchor:i,onAnchorChange:r,children:n})};Ez.displayName=P0;var kz="PopperAnchor",Oz=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...r}=e,a=xz(kz,n),l=k.useRef(null),u=Pt(t,l),f=k.useRef(null);return k.useEffect(()=>{const m=f.current;f.current=(i==null?void 0:i.current)||l.current,m!==f.current&&a.onAnchorChange(f.current)}),i?null:v.jsx(nt.div,{...r,ref:u})});Oz.displayName=kz;var z0="PopperContent",[See,wee]=wz(z0),Tz=k.forwardRef((e,t)=>{var ce,Ee,Ne,Ie,Ve,Pe;const{__scopePopper:n,side:i="bottom",sideOffset:r=0,align:a="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:h=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:_="optimized",onPlaced:S,...w}=e,x=xz(z0,n),[E,O]=k.useState(null),R=Pt(t,$t=>O($t)),[$,N]=k.useState(null),M=tz($),C=(M==null?void 0:M.width)??0,I=(M==null?void 0:M.height)??0,V=i+(a!=="center"?"-"+a:""),L=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},K=Array.isArray(m)?m:[m],H=K.length>0,F={padding:L,boundary:K.filter(Eee),altBoundary:H},{refs:ae,floatingStyles:ue,placement:j,isPositioned:G,middlewareData:B}=cee({strategy:"fixed",placement:V,whileElementsMounted:(...$t)=>JJ(...$t,{animationFrame:_==="always"}),elements:{reference:x.anchor},middleware:[dee({mainAxis:r+I,alignmentAxis:l}),f&&fee({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?mee():void 0,...F}),f&&hee({...F}),pee({...F,apply:({elements:$t,rects:_e,availableWidth:Me,availableHeight:yt})=>{const{width:st,height:Lt}=_e.reference,et=$t.floating.style;et.setProperty("--radix-popper-available-width",`${Me}px`),et.setProperty("--radix-popper-available-height",`${yt}px`),et.setProperty("--radix-popper-anchor-width",`${st}px`),et.setProperty("--radix-popper-anchor-height",`${Lt}px`)}}),$&&vee({element:$,padding:u}),kee({arrowWidth:C,arrowHeight:I}),b&&gee({strategy:"referenceHidden",...F})]}),[fe,A]=Nz(j),ne=Fs(S);Ln(()=>{G&&(ne==null||ne())},[G,ne]);const Z=(ce=B.arrow)==null?void 0:ce.x,X=(Ee=B.arrow)==null?void 0:Ee.y,le=((Ne=B.arrow)==null?void 0:Ne.centerOffset)!==0,[me,be]=k.useState();return Ln(()=>{E&&be(window.getComputedStyle(E).zIndex)},[E]),v.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:G?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(Ie=B.transformOrigin)==null?void 0:Ie.x,(Ve=B.transformOrigin)==null?void 0:Ve.y].join(" "),...((Pe=B.hide)==null?void 0:Pe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(See,{scope:n,placedSide:fe,onArrowChange:N,arrowX:Z,arrowY:X,shouldHideArrow:le,children:v.jsx(nt.div,{"data-side":fe,"data-align":A,...w,ref:R,style:{...w.style,animation:G?void 0:"none"}})})})});Tz.displayName=z0;var Rz="PopperArrow",xee={top:"bottom",right:"left",bottom:"top",left:"r
298ight"},$z=k.forwardRef(function(t,n){const{__scopePopper:i,...r}=t,a=wee(Rz,i),l=xee[a.placedSide];return v.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:v.jsx(bee,{...r,ref:n,style:{...r.style,display:"block"}})})});$z.displayName=Rz;function Eee(e){return e!==null}var kee=e=>({name:"transformOrigin",options:e,fn(t){var x,E,O;const{placement:n,rects:i,middlewareData:r}=t,l=((x=r.arrow)==null?void 0:x.centerOffset)!==0,u=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[m,h]=Nz(n),g={start:"0%",center:"50%",end:"100%"}[h],b=(((E=r.arrow)==null?void 0:E.x)??0)+u/2,_=(((O=r.arrow)==null?void 0:O.y)??0)+f/2;let S="",w="";return m==="bottom"?(S=l?g:`${b}px`,w=`${-f}px`):m==="top"?(S=l?g:`${b}px`,w=`${i.floating.height+f}px`):m==="right"?(S=`${-f}px`,w=l?g:`${_}px`):m==="left"&&(S=`${i.floating.width+f}px`,w=l?g:`${_}px`),{data:{x:S,y:w}}}});function Nz(e){const[t,n="center"]=e.split("-");return[t,n]}var Dz=Ez,U0=Oz,Cz=Tz,Az=$z,Oee="Label",jz=k.forwardRef((e,t)=>v.jsx(nt.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));jz.displayName=Oee;var Tee=jz;function i$(e,[t,n]){return Math.min(n,Math.max(t,e))}var fg="Popover",[Mz,kue]=Js(fg,[dg]),_f=dg(),[Ree,ja]=Mz(fg),Iz=e=>{const{__scopePopover:t,children:n,open:i,defaultOpen:r,onOpenChange:a,modal:l=!1}=e,u=_f(t),f=k.useRef(null),[m,h]=k.useState(!1),[g,b]=Md({prop:i,defaultProp:r??!1,onChange:a,caller:fg});return v.jsx(Dz,{...u,children:v.jsx(Ree,{scope:t,contentId:$r(),triggerRef:f,open:g,onOpenChange:b,onOpenToggle:k.useCallback(()=>b(_=>!_),[b]),hasCustomAnchor:m,onCustomAnchorAdd:k.useCallback(()=>h(!0),[]),onCustomAnchorRemove:k.useCallback(()=>h(!1),[]),modal:l,children:n})})};Iz.displayName=fg;var Pz="PopoverAnchor",zz=k.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=ja(Pz,n),a=_f(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:u}=r;return k.useEffect(()=>(l(),()=>u()),[l,u]),v.jsx(U0,{...a,...i,ref:t})});zz.displayName=Pz;var Uz="PopoverTrigger",Lz=k.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=ja(Uz,n),a=_f(n),l=Pt(t,r.triggerRef),u=v.jsx(nt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":qz(r.open),...i,ref:l,onClick:_t(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?u:v.jsx(U0,{asChild:!0,...a,children:u})});Lz.displayName=Uz;var L0="PopoverPortal",[$ee,Nee]=Mz(L0,{forceMount:void 0}),Fz=e=>{const{__scopePopover:t,forceMount:n,children:i,container:r}=e,a=ja(L0,t);return v.jsx($ee,{scope:t,forceMount:n,children:v.jsx(el,{present:n||a.open,children:v.jsx(ng,{asChild:!0,container:r,children:i})})})};Fz.displayName=L0;var Ac="PopoverContent",Bz=k.forwardRef((e,t)=>{const n=Nee(Ac,e.__scopePopover),{forceMount:i=n.forceMount,...r}=e,a=ja(Ac,e.__scopePopover);return v.jsx(el,{present:i||a.open,children:a.modal?v.jsx(Cee,{...r,ref:t}):v.jsx(Aee,{...r,ref:t})})});Bz.displayName=Ac;var Dee=Ps("PopoverContent.RemoveScroll"),Cee=k.forwardRef((e,t)=>{const n=ja(Ac,e.__scopePopover),i=k.useRef(null),r=Pt(t,i),a=k.useRef(!1);return k.useEffect(()=>{const l=i.current;if(l)return O0(l)},[]),v.jsx(ig,{as:Dee,allowPinchZoom:!0,children:v.jsx(Vz,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_t(e.onCloseAutoFocus,l=>{var u;l.preventDefault(),a.current||(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:_t(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0,m=u.button===2||f;a.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:_t(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),Aee=k.forwardRef((e,t)=>{const n=ja(Ac,e.__scopePopover),i=k.useRef(!1),r=k.useRef(!1);return v.jsx(Vz,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var l,u;(l=e.onCloseAutoFocus)==null||l.call(e,a),a.defaultPrevented||(i.current||(u=n.triggerRef.current)==null||u.focus(),a.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:a=>{var f,m;(f=e.onInteractOutside)==null||f.call(e,a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const l=a.target;((m=n.triggerRef.current)==null?void 0:m.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}})}),Vz=k.forwardRef((e,t)=>
298{const{__scopePopover:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:h,...g}=e,b=ja(Ac,n),_=_f(n);return k0(),v.jsx(tg,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:a,children:v.jsx(eg,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>b.onOpenChange(!1),children:v.jsx(Cz,{"data-state":qz(b.open),role:"dialog",id:b.contentId,..._,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Hz="PopoverClose",jee=k.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=ja(Hz,n);return v.jsx(nt.button,{type:"button",...i,ref:t,onClick:_t(e.onClick,()=>r.onOpenChange(!1))})});jee.displayName=Hz;var Mee="PopoverArrow",Iee=k.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=_f(n);return v.jsx(Az,{...r,...i,ref:t})});Iee.displayName=Mee;function qz(e){return e?"open":"closed"}var Pee=Iz,zee=zz,Uee=Lz,Lee=Fz,Fee=Bz,F0="Progress",B0=100,[Bee,Oue]=Js(F0),[Vee,Hee]=Bee(F0),Zz=k.forwardRef((e,t)=>{const{__scopeProgress:n,value:i=null,max:r,getValueLabel:a=qee,...l}=e;(r||r===0)&&!o$(r)&&console.error(Zee(`${r}`,"Progress"));const u=o$(r)?r:B0;i!==null&&!a$(i,u)&&console.error(Yee(`${i}`,"Progress"));const f=a$(i,u)?i:null,m=sp(f)?a(f,u):void 0;return v.jsx(Vee,{scope:n,value:f,max:u,children:v.jsx(nt.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":sp(f)?f:void 0,"aria-valuetext":m,role:"progressbar","data-state":Gz(f,u),"data-value":f??void 0,"data-max":u,...l,ref:t})})});Zz.displayName=F0;var Yz="ProgressIndicator",Wz=k.forwardRef((e,t)=>{const{__scopeProgress:n,...i}=e,r=Hee(Yz,n);return v.jsx(nt.div,{"data-state":Gz(r.value,r.max),"data-value":r.value??void 0,"data-max":r.max,...i,ref:t})});Wz.displayName=Yz;function qee(e,t){return`${Math.round(e/t*100)}%`}function Gz(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function sp(e){return typeof e=="number"}function o$(e){return sp(e)&&!isNaN(e)&&e>0}function a$(e,t){return sp(e)&&!isNaN(e)&&e<=t&&e>=0}function Zee(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${B0}\`.`}function Yee(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
299  - a positive number
300  - less than the value passed to \`max\` (or ${B0} if no \`max\` prop is set)
301  - \`null\` or \`undefined\` if the progress is indeterminate.
302
303Defaulting to \`null\`.`}var Wee=Zz,Gee=Wz,Kee=[" ","Enter","ArrowUp","ArrowDown"],Xee=[" ","Enter"],Hs="Select",[mg,hg,Qee]=AX(Hs),[Qc,Tue]=Js(Hs,[Qee,dg]),pg=dg(),[Jee,Ma]=Qc(Hs),[ete,tte]=Qc(Hs),Kz=e=>{const{__scopeSelect:t,children:n,open:i,defaultOpen:r,onOpenChange:a,value:l,defaultValue:u,onValueChange:f,dir:m,name:h,autoComplete:g,disabled:b,required:_,form:S}=e,w=pg(t),[x,E]=k.useState(null),[O,R]=k.useState(null),[$,N]=k.useState(!1),M=VX(m),[C,I]=Md({prop:i,defaultProp:r??!1,onChange:a,caller:Hs}),[V,L]=Md({prop:l,defaultProp:u,onChange:f,caller:Hs}),K=k.useRef(null),H=x?S||!!x.closest("form"):!0,[F,ae]=k.useState(new Set),ue=Array.from(F).map(j=>j.props.value).join(";");return v.jsx(Dz,{...w,children:v.jsxs(Jee,{required:_,scope:t,trigger:x,onTriggerChange:E,valueNode:O,onValueNodeChange:R,valueNodeHasChildren:$,onValueNodeHasChildrenChange:N,contentId:$r(),value:V,onValueChange:L,open:C,onOpenChange:I,dir:M,triggerPointerDownPosRef:K,disabled:b,children:[v.jsx(mg.Provider,{scope:t,children:v.jsx(ete,{scope:e.__scopeSelect,onNativeOptionAdd:k.useCallback(j=>{ae(G=>new Set(G).add(j))},[]),onNativeOptionRemove:k.useCallback(j=>{ae(G=>{const B=new Set(G);return B.delete(j),B})},[]),children:n})}
303),H?v.jsxs(y4,{"aria-hidden":!0,required:_,tabIndex:-1,name:h,autoComplete:g,value:V,onChange:j=>L(j.target.value),disabled:b,form:S,children:[V===void 0?v.jsx("option",{value:""}):null,Array.from(F)]},ue):null]})})};Kz.displayName=Hs;var Xz="SelectTrigger",Qz=k.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:i=!1,...r}=e,a=pg(n),l=Ma(Xz,n),u=l.disabled||i,f=Pt(t,l.onTriggerChange),m=hg(n),h=k.useRef("touch"),[g,b,_]=_4(w=>{const x=m().filter(R=>!R.disabled),E=x.find(R=>R.value===l.value),O=S4(x,w,E);O!==void 0&&l.onValueChange(O.value)}),S=w=>{u||(l.onOpenChange(!0),_()),w&&(l.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return v.jsx(U0,{asChild:!0,...a,children:v.jsx(nt.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":b4(l.value)?"":void 0,...r,ref:f,onClick:_t(r.onClick,w=>{w.currentTarget.focus(),h.current!=="mouse"&&S(w)}),onPointerDown:_t(r.onPointerDown,w=>{h.current=w.pointerType;const x=w.target;x.hasPointerCapture(w.pointerId)&&x.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(S(w),w.preventDefault())}),onKeyDown:_t(r.onKeyDown,w=>{const x=g.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&b(w.key),!(x&&w.key===" ")&&Kee.includes(w.key)&&(S(),w.preventDefault())})})})});Qz.displayName=Xz;var Jz="SelectValue",e4=k.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:r,children:a,placeholder:l="",...u}=e,f=Ma(Jz,n),{onValueNodeHasChildrenChange:m}=f,h=a!==void 0,g=Pt(t,f.onValueNodeChange);return Ln(()=>{m(h)},[m,h]),v.jsx(nt.span,{...u,ref:g,style:{pointerEvents:"none"},children:b4(f.value)?v.jsx(v.Fragment,{children:l}):a})});e4.displayName=Jz;var nte="SelectIcon",t4=k.forwardRef((e,t)=>{const{__scopeSelect:n,children:i,...r}=e;return v.jsx(nt.span,{"aria-hidden":!0,...r,ref:t,children:i||"▼"})});t4.displayName=nte;var rte="SelectPortal",n4=e=>v.jsx(ng,{asChild:!0,...e});n4.displayName=rte;var qs="SelectContent",r4=k.forwardRef((e,t)=>{const n=Ma(qs,e.__scopeSelect),[i,r]=k.useState();if(Ln(()=>{r(new DocumentFragment)},[]),!n.open){const a=i;return a?Pc.createPortal(v.jsx(i4,{scope:e.__scopeSelect,children:v.jsx(mg.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),a):null}return v.jsx(o4,{...e,ref:t})});r4.displayName=qs;var ei=10,[i4,Ia]=Qc(qs),ite="SelectContentImpl",ote=Ps("SelectContent.RemoveScroll"),o4=k.forwardRef((e,t)=>{const{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:a,onPointerDownOutside:l,side:u,sideOffset:f,align:m,alignOffset:h,arrowPadding:g,collisionBoundary:b,collisionPadding:_,sticky:S,hideWhenDetached:w,avoidCollisions:x,...E}=e,O=Ma(qs,n),[R,$]=k.useState(null),[N,M]=k.useState(null),C=Pt(t,ce=>$(ce)),[I,V]=k.useState(null),[L,K]=k.useState(null),H=hg(n),[F,ae]=k.useState(!1),ue=k.useRef(!1);k.useEffect(()=>{if(R)return O0(R)},[R]),k0();const j=k.useCallback(ce=>{const[Ee,...Ne]=H().map(Pe=>Pe.ref.current),[Ie]=Ne.slice(-1),Ve=document.activeElement;for(const Pe of ce)if(Pe===Ve||(Pe==null||Pe.scrollIntoView({block:"nearest"}),Pe===Ee&&N&&(N.scrollTop=0),Pe===Ie&&N&&(N.scrollTop=N.scrollHeight),Pe==null||Pe.focus(),document.activeElement!==Ve))return},[H,N]),G=k.useCallback(()=>j([I,R]),[j,I,R]);k.useEffect(()=>{F&&G()},[F,G]);const{onOpenChange:B,triggerPointerDownPosRef:fe}=O;k.useEffect(()=>{if(R){let ce={x:0,y:0};const Ee=Ie=>{var Ve,Pe;ce={x:Math.abs(Math.round(Ie.pageX)-(((Ve=fe.current)==null?void 0:Ve.x)??0)),y:Math.abs(Math.round(Ie.pageY)-(((Pe=fe.current)==null?void 0:Pe.y)??0))}},Ne=Ie=>{ce.x<=10&&ce.y<=10?Ie.preventDefault():R.contains(Ie.target)||B(!1),document.removeEventListener("pointermove",Ee),fe.current=null};return fe.current!==null&&(document.addEventListener("pointermove",Ee),document.addEventListener("pointerup",Ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ee),document.removeEventListener("pointerup",Ne,{capture:!0})}}},[R,B,fe]),k.useEffect(()=>{const ce=()=>B(!1);return window.addEventListener("blur",ce),window.addEventListener("resize",ce),()=>{window.removeEventListener("blur",ce),window.removeEventListener("resize",ce)}},[B]);const[A,ne]=_4(ce=>{const Ee=H().filter(Ve=>!Ve.disabled),Ne=Ee.find(Ve=>Ve.ref.current===document.activeElement),Ie=S4(Ee,ce,Ne);Ie&&setTimeout(()=>Ie.ref.current.focus())}),Z=k.useCallback((ce,Ee,Ne)=>{const Ie=!ue.current&&!Ne;(O.value!==void 0&&O.value===Ee||Ie)&&(V(ce),Ie&&(ue.current=!0))},[O.value]),X=k.useCallback(()=>R==null?void 0:R.focus(),[R]),le=k.useCallback((ce,Ee,Ne)=>{const Ie=!ue.current&&!Ne;(O.value!==void 0&&O.value===Ee||Ie)&&K(ce)},[O.value]),me=i==="popper"?F_:a4,be=me===F_?{side:u,sideOffset:f,align:m,alignOffset:h,arrowPadding:g,collisionBoundary:b,collisionPadding:_,sticky:S,hideWhenDetached:w,avoidCollisions:x}:{};return v.jsx(i4,{scope:n,content:R,viewport:N,onViewportChange:M,itemRefCallback:Z,selectedItem:I,onItemLeave:X,itemTextRefCallback:le,focusSelectedItem:G,selectedItemText:L,position:i,isPositioned:F,searchRef:A,children:v.jsx(ig,{as:ote,allowPinchZoom:!0,children:v.jsx(tg,{asChild:!0,trapped:O.open,onMountAutoFocus:ce=>{ce.preventDefault()},onUnmountAutoFocus:_t(r,ce=>{var Ee;
303(Ee=O.trigger)==null||Ee.focus({preventScroll:!0}),ce.preventDefault()}),children:v.jsx(eg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:ce=>ce.preventDefault(),onDismiss:()=>O.onOpenChange(!1),children:v.jsx(me,{role:"listbox",id:O.contentId,"data-state":O.open?"open":"closed",dir:O.dir,onContextMenu:ce=>ce.preventDefault(),...E,...be,onPlaced:()=>ae(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:_t(E.onKeyDown,ce=>{const Ee=ce.ctrlKey||ce.altKey||ce.metaKey;if(ce.key==="Tab"&&ce.preventDefault(),!Ee&&ce.key.length===1&&ne(ce.key),["ArrowUp","ArrowDown","Home","End"].includes(ce.key)){let Ie=H().filter(Ve=>!Ve.disabled).map(Ve=>Ve.ref.current);if(["ArrowUp","End"].includes(ce.key)&&(Ie=Ie.slice().reverse()),["ArrowUp","ArrowDown"].includes(ce.key)){const Ve=ce.target,Pe=Ie.indexOf(Ve);Ie=Ie.slice(Pe+1)}setTimeout(()=>j(Ie)),ce.preventDefault()}})})})})})})});o4.displayName=ite;var ate="SelectItemAlignedPosition",a4=k.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:i,...r}=e,a=Ma(qs,n),l=Ia(qs,n),[u,f]=k.useState(null),[m,h]=k.useState(null),g=Pt(t,C=>h(C)),b=hg(n),_=k.useRef(!1),S=k.useRef(!0),{viewport:w,selectedItem:x,selectedItemText:E,focusSelectedItem:O}=l,R=k.useCallback(()=>{if(a.trigger&&a.valueNode&&u&&m&&w&&x&&E){const C=a.trigger.getBoundingClientRect(),I=m.getBoundingClientRect(),V=a.valueNode.getBoundingClientRect(),L=E.getBoundingClientRect();if(a.dir!=="rtl"){const Ve=L.left-I.left,Pe=V.left-Ve,$t=C.left-Pe,_e=C.width+$t,Me=Math.max(_e,I.width),yt=window.innerWidth-ei,st=i$(Pe,[ei,Math.max(ei,yt-Me)]);u.style.minWidth=_e+"px",u.style.left=st+"px"}else{const Ve=I.right-L.right,Pe=window.innerWidth-V.right-Ve,$t=window.innerWidth-C.right-Pe,_e=C.width+$t,Me=Math.max(_e,I.width),yt=window.innerWidth-ei,st=i$(Pe,[ei,Math.max(ei,yt-Me)]);u.style.minWidth=_e+"px",u.style.right=st+"px"}const K=b(),H=window.innerHeight-ei*2,F=w.scrollHeight,ae=window.getComputedStyle(m),ue=parseInt(ae.borderTopWidth,10),j=parseInt(ae.paddingTop,10),G=parseInt(ae.borderBottomWidth,10),B=parseInt(ae.paddingBottom,10),fe=ue+j+F+B+G,A=Math.min(x.offsetHeight*5,fe),ne=window.getComputedStyle(w),Z=parseInt(ne.paddingTop,10),X=parseInt(ne.paddingBottom,10),le=C.top+C.height/2-ei,me=H-le,be=x.offsetHeight/2,ce=x.offsetTop+be,Ee=ue+j+ce,Ne=fe-Ee;if(Ee<=le){const Ve=K.length>0&&x===K[K.length-1].ref.current;u.style.bottom="0px";const Pe=m.clientHeight-w.offsetTop-w.offsetHeight,$t=Math.max(me,be+(Ve?X:0)+Pe+G),_e=Ee+$t;u.style.height=_e+"px"}else{const Ve=K.length>0&&x===K[0].ref.current;u.style.top="0px";const $t=Math.max(le,ue+w.offsetTop+(Ve?Z:0)+be)+Ne;u.style.height=$t+"px",w.scrollTop=Ee-le+w.offsetTop}u.style.margin=`${ei}px 0`,u.style.minHeight=A+"px",u.style.maxHeight=H+"px",i==null||i(),requestAnimationFrame(()=>_.current=!0)}},[b,a.trigger,a.valueNode,u,m,w,x,E,a.dir,i]);Ln(()=>R(),[R]);const[$,N]=k.useState();Ln(()=>{m&&N(window.getComputedStyle(m).zIndex)},[m]);const M=k.useCallback(C=>{C&&S.current===!0&&(R(),O==null||O(),S.current=!1)},[R,O]);return v.jsx(lte,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:_,onScrollButtonChange:M,children:v.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:$},children:v.jsx(nt.div,{...r,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});a4.displayName=ate;var ste="SelectPopperPosition",F_=k.forwardRef((e,t)=>{const{__scopeSelect:n,align:i="start",collisionPadding:r=ei,...a}=e,l=pg(n);return v.jsx(Cz,{...l,...a,ref:t,align:i,collisionPadding:r,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});F_.displayName=ste;var[lte,V0]=Qc(qs,{}),B_="SelectViewport",s4=k.forwardRef((e,t)=>
303{const{__scopeSelect:n,nonce:i,...r}=e,a=Ia(B_,n),l=V0(B_,n),u=Pt(t,a.onViewportChange),f=k.useRef(0);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),v.jsx(mg.Slot,{scope:n,children:v.jsx(nt.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:_t(r.onScroll,m=>{const h=m.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:b}=l;if(b!=null&&b.current&&g){const _=Math.abs(f.current-h.scrollTop);if(_>0){const S=window.innerHeight-ei*2,w=parseFloat(g.style.minHeight),x=parseFloat(g.style.height),E=Math.max(w,x);if(E<S){const O=E+_,R=Math.min(S,O),$=O-R;g.style.height=R+"px",g.style.bottom==="0px"&&(h.scrollTop=$>0?$:0,g.style.justifyContent="flex-end")}}}f.current=h.scrollTop})})})]})});s4.displayName=B_;var l4="SelectGroup",[cte,ute]=Qc(l4),dte=k.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,r=$r();return v.jsx(cte,{scope:n,id:r,children:v.jsx(nt.div,{role:"group","aria-labelledby":r,...i,ref:t})})});dte.displayName=l4;var c4="SelectLabel",fte=k.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,r=ute(c4,n);return v.jsx(nt.div,{id:r.id,...i,ref:t})});fte.displayName=c4;var lp="SelectItem",[mte,u4]=Qc(lp),d4=k.forwardRef((e,t)=>{const{__scopeSelect:n,value:i,disabled:r=!1,textValue:a,...l}=e,u=Ma(lp,n),f=Ia(lp,n),m=u.value===i,[h,g]=k.useState(a??""),[b,_]=k.useState(!1),S=Pt(t,O=>{var R;return(R=f.itemRefCallback)==null?void 0:R.call(f,O,i,r)}),w=$r(),x=k.useRef("touch"),E=()=>{r||(u.onValueChange(i),u.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.jsx(mte,{scope:n,value:i,disabled:r,textId:w,isSelected:m,onItemTextChange:k.useCallback(O=>{g(R=>R||((O==null?void 0:O.textContent)??"").trim())},[]),children:v.jsx(mg.ItemSlot,{scope:n,value:i,disabled:r,textValue:h,children:v.jsx(nt.div,{role:"option","aria-labelledby":w,"data-highlighted":b?"":void 0,"aria-selected":m&&b,"data-state":m?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...l,ref:S,onFocus:_t(l.onFocus,()=>_(!0)),onBlur:_t(l.onBlur,()=>_(!1)),onClick:_t(l.onClick,()=>{x.current!=="mouse"&&E()}),onPointerUp:_t(l.onPointerUp,()=>{x.current==="mouse"&&E()}),onPointerDown:_t(l.onPointerDown,O=>{x.current=O.pointerType}),onPointerMove:_t(l.onPointerMove,O=>{var R;x.current=O.pointerType,r?(R=f.onItemLeave)==null||R.call(f):x.current==="mouse"&&O.currentTarget.focus({preventScroll:!0})}),onPointerLeave:_t(l.onPointerLeave,O=>{var R;O.currentTarget===document.activeElement&&((R=f.onItemLeave)==null||R.call(f))}),onKeyDown:_t(l.onKeyDown,O=>{var $;(($=f.searchRef)==null?void 0:$.current)!==""&&O.key===" "||(Xee.includes(O.key)&&E(),O.key===" "&&O.preventDefault())})})})})});d4.displayName=lp;var vd="SelectItemText",f4=k.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:r,...a}=e,l=Ma(vd,n),u=Ia(vd,n),f=u4(vd,n),m=tte(vd,n),[h,g]=k.useState(null),b=Pt(t,E=>g(E),f.onItemTextChange,E=>{var O;return(O=u.itemTextRefCallback)==null?void 0:O.call(u,E,f.value,f.disabled)}),_=h==null?void 0:h.textContent,S=k.useMemo(()=>v.jsx("option",{value:f.value,disabled:f.disabled,children:_},f.value),[f.disabled,f.value,_]),{onNativeOptionAdd:w,onNativeOptionRemove:x}=m;return Ln(()=>(w(S),()=>x(S)),[w,x,S]),v.jsxs(v.Fragment,{children:[v.jsx(nt.span,{id:f.textId,...a,ref:b}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Pc.createPortal(a.children,l.valueNode):null]})});f4.displayName=vd;var m4="SelectItemIndicator",h4=k.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return u4(m4,n).isSelected?v.jsx(nt.span,{"aria-hidden":!0,...i,ref:t}):null});h4.displayName=m4;var V_="SelectScrollUpButton",p4=k.forwardRef((e,t)=>{const n=Ia(V_,e.__scopeSelect),i=V0(V_,e.__scopeSelect),[r,a]=k.useState(!1),l=Pt(t,i.onScrollButtonChange);return Ln(()=>
303{if(n.viewport&&n.isPositioned){let u=function(){const m=f.scrollTop>0;a(m)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),r?v.jsx(v4,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop-f.offsetHeight)}}):null});p4.displayName=V_;var H_="SelectScrollDownButton",g4=k.forwardRef((e,t)=>{const n=Ia(H_,e.__scopeSelect),i=V0(H_,e.__scopeSelect),[r,a]=k.useState(!1),l=Pt(t,i.onScrollButtonChange);return Ln(()=>{if(n.viewport&&n.isPositioned){let u=function(){const m=f.scrollHeight-f.clientHeight,h=Math.ceil(f.scrollTop)<m;a(h)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),r?v.jsx(v4,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop+f.offsetHeight)}}):null});g4.displayName=H_;var v4=k.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:i,...r}=e,a=Ia("SelectScrollButton",n),l=k.useRef(null),u=hg(n),f=k.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return k.useEffect(()=>()=>f(),[f]),Ln(()=>{var h;const m=u().find(g=>g.ref.current===document.activeElement);(h=m==null?void 0:m.ref.current)==null||h.scrollIntoView({block:"nearest"})},[u]),v.jsx(nt.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:_t(r.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(i,50))}),onPointerMove:_t(r.onPointerMove,()=>{var m;(m=a.onItemLeave)==null||m.call(a),l.current===null&&(l.current=window.setInterval(i,50))}),onPointerLeave:_t(r.onPointerLeave,()=>{f()})})}),hte="SelectSeparator",pte=k.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return v.jsx(nt.div,{"aria-hidden":!0,...i,ref:t})});pte.displayName=hte;var q_="SelectArrow",gte=k.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,r=pg(n),a=Ma(q_,n),l=Ia(q_,n);return a.open&&l.position==="popper"?v.jsx(Az,{...r,...i,ref:t}):null});gte.displayName=q_;var vte="SelectBubbleInput",y4=k.forwardRef(({__scopeSelect:e,value:t,...n},i)=>{const r=k.useRef(null),a=Pt(i,r),l=ez(t);return k.useEffect(()=>{const u=r.current;if(!u)return;const f=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==t&&h){const g=new Event("change",{bubbles:!0});h.call(u,t),u.dispatchEvent(g)}},[l,t]),v.jsx(nt.select,{...n,style:{...wP,...n.style},ref:a,defaultValue:t})});y4.displayName=vte;function b4(e){return e===""||e===void 0}function _4(e){const t=Fs(e),n=k.useRef(""),i=k.useRef(0),r=k.useCallback(l=>{const u=n.current+l;t(u),function f(m){n.current=m,window.clearTimeout(i.current),m!==""&&(i.current=window.setTimeout(()=>f(""),1e3))}(u)},[t]),a=k.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,r,a]}function S4(e,t,n){const r=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let l=yte(e,Math.max(a,0));r.length===1&&(l=l.filter(m=>m!==n));const f=l.find(m=>m.textValue.toLowerCase().startsWith(r.toLowerCase()));return f!==n?f:void 0}function yte(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var s$=Kz,bte=Qz,_te=e4,Ste=t4,wte=n4,xte=r4,Ete=s4,kte=d4,Ote=f4,Tte=h4,Rte=p4,$te=g4;function Nte({className:e,value:t,...n}){return v.jsx(Wee,{"data-slot":"progress",className:ke("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...n,children:v.jsx(Gee,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function St({children:e}){return v.jsx("div",{children:e})}function Dte({children:e}){return v.jsx("div",{className:"flex flex-col gap-6",children:e})}function Cte({progressInPercentage:e,children:t}){return v.jsxs("div",{className:"flex flex-col gap-3",children:[t,v.jsx(Nte,{value:e})]})}function Ate({children:e}){return v.jsx("div",{className:"flex flex-col gap-2",children:e})}function jte({children:e}){return v.jsx("span",{className:"font-semibold text-2xl",children:e})}function Mte({children:e}){return v.jsx("span",{className:"font-normal text-base text-muted-foreground",children:e})}St.Container=Dte;St.Progress=Cte;St.SignupStepHeader=Ate;St.SignupStepTitle=jte;St.SignupStepDescription=Mte;function ti({className:e,...t}){return v.jsx("div",{"data-slot":"skeleton",className:ke("bg-muted animate-pulse rounded-md",e),...t})}function w4(){return v.jsxs("div",{className:"flex flex-col gap-6 mx-auto max-w-sm",children:[v.jsx(ti,{className:"size-10 rounded-full"}),v.jsxs("div",{className:"flex flex-col gap-3",children:[v.jsx(ti,{className:"w-[150px] h-4 rounded-full"}),v.jsx(ti,{className:"w-full h-2 rounded-full"})]}),v.jsx(tl,{})]})}function tl(){return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex flex-col gap-2",children:[v.jsx(ti,{className:"w-[150px] h-8 rounded-full"}),v.jsx(ti,{className:"w-[100px] h-6 rounded-full"})]}),v.jsxs("div",{className:"flex flex-col gap-3",children:[v.jsx(ti,{className:"w-full h-9 rounded-lg"}),v.jsx(ti,{className:"w-full h-9 rounded-lg"}),v.jsx(ti,{className:"w-full h-9 rounded-lg"}),v.jsx(ti,{className:"w-full h-9 rounded-lg"})]}),v.jsxs("div",{className:"flex justify-between gap-3",children:[v.jsx(ti,{className:"w-25 h-9 rounded-lg"}),v.jsx(ti,{className:"w-30 h-9 rounded-lg"})]})]})}
303const Ite="session_init_failed",Pte={"/sign-up-with-google/personal-data":{step:1,percentage:50},"/sign-up-with-google/professional-data":{step:2,percentage:100}},zte={"/sign-up-with-google/personal-data":{step:1,percentage:50},"/sign-up-with-google/student-data":{step:2,percentage:100}};function Ute(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function Lte(e,t){const n=Ute(e);return(Wc(t)?zte:Pte)[n]??{step:0,percentage:0}}const Fte=cn("/_layout/sign-up-with-google")({component:Vte,pendingComponent:w4,errorComponent:SP,onError:()=>{throw Es({to:"/",search:{error:Ite},replace:!0})},beforeLoad:({location:e})=>{const t=Ao.getState();if(!(t.email||t.values.personalData.email))throw Es({to:"/",replace:!0});if(e.pathname.split("/").pop()==="sign-up-with-google")throw Es({to:"/sign-up-with-google/personal-data"})}}),Bte=2;function Vte(){const{flowType:e,updateFlowType:t,updateValues:n}=Ao(),i=ZN().pathname,{step:r,percentage:a}=Lte(i,e);return k.useEffect(()=>{i==="/sign-up-with-google/professional-data"&&(t(fi.PROFESSIONAL),n(l=>({...l,professionalData:tp.professionalData}))),i==="/sign-up-with-google/student-data"&&(t(fi.STUDENT),n(l=>({...l,professionalData:tp.professionalData})))},[i,t,n]),v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsx(St,{children:v.jsxs(St.Container,{children:[v.jsx("div",{children:v.jsx(Aa,{className:"w-10 h-10"})}),v.jsx(St.Progress,{progressInPercentage:a,children:v.jsxs("span",{className:"text-xs font-medium text-muted-foreground",children:["Etapa ",r," de ",Bte]})})]})}),v.jsx(Yd,{})]})}var Hte=e=>{let t=Object.keys(e).sort((n,i)=>n.localeCompare(i));if(t.some(n=>n.startsWith("_")))throw new Error('Keys that start with "_" are reserved for Query Key Factory');return t};function kn(e){return Object.assign(Object.create(null),e)}function Pa(e,t){let n={_def:[e]};if(t==null)return kn(n);let i=(a,l)=>Hte(a).reduce((u,f)=>{let m=a[f],h=[...l,f],g=_=>Array.isArray(_),b;if(typeof m=="function"){let _=(...S)=>{let w=m(...S);if(g(w))return kn({queryKey:[...h,...w]});let x=[...h,...w.queryKey];if("queryFn"in w){let E={queryKey:x,queryFn:w.queryFn};if("contextQueries"in w){let O=i(w.contextQueries,x);return kn({_ctx:kn(Object.fromEntries(O)),...E})}return kn({...E})}if("contextQueries"in w){let E=i(w.contextQueries,x);return kn({_ctx:kn(Object.fromEntries(E)),queryKey:x})}return kn({queryKey:x})};_._def=h,b=_}else if(m==null)b=kn({queryKey:h});else if(g(m))b=kn({_def:h,queryKey:[...h,...m]});else if("queryFn"in m){let _={...m.queryKey?{_def:h}:void 0},S=[...h,...m.queryKey??[]],w={queryKey:S,queryFn:m.queryFn};if("contextQueries"in m){let x=i(m.contextQueries,S);b=kn({_ctx:kn(Object.fromEntries(x)),..._,...w})}else b=kn({..._,...w})}else if("contextQueries"in m){let _={...m.queryKey?{_def:h}:void 0},S=[...h,...m.queryKey??[]],w=i(m.contextQueries,S);b=kn({_ctx:kn(Object.fromEntries(w)),queryKey:S,..._})}else{let _={...m.queryKey?{_def:h}:void 0},S=[...h,...m.queryKey??[]];b=kn({queryKey:S,..._})}return u.set(f,b),u},new Map),r=i(t,n._def);return kn({...Object.fromEntries(r),...n})}function qte(...e){let t=e.reduce((n,i)=>{let[r]=i._def;return n.set(r,{...n.get(r),...i}),n},new Map);return kn(Object.fromEntries(t))}const Zte=Ye.object({session_id:Ye.string().uuid(),user_id:Ye.string(),token:Ye.string(),student:Ye.boolean().optional().default(!1)}),x4=Pa("signup.completeRegistration",{complete:null});async function Yte(e){const t=await Fn.post(`/v1/accounts/registration/${e.session_id}/complete`,e);return Zte.parse(t.data)}function E4({onSuccess:e,onError:t}={}){return Li({mutationKey:x4.complete.queryKey,mutationFn:Yte,onSuccess:e,onError:t})}const Wte=Ye.object({session_id:Ye.string()});async function Gte(){const e=await Fn.post("/v1/accounts/registration");return Wte.parse(e.data)}const k4=Pa("signup.initRegistration",{init:{queryKey:null,queryFn:Gte}}),Kte=Ye.object({id:Ye.number(),name:Ye.string(),uf:Ye.string()}),Xte=Ye.object({data:Ye.array(Kte),meta:Ye.object({total:Ye.number(),limit:Ye.number()})});Ye.object({value:Ye.string(),label:Ye.string()});async function Qte(e="",t){if(!t)return[];const n={filter:e,limit:1e3,uf:t},i=await Fn.get("/v2/search/cities",{params:n});return Xte.parse(i.data).data.map(a=>({value:String(a.id),label:a.name}))}const gg=Pa("signup.cities",{search:(e="",t)=>({queryKey:[{filter:e,state:t}],queryFn:()=>Qte(e,t)})});function Jte({filter:e="",state:t}={}){return TN({...gg.search(e,t),placeholderData:n=>n})}const ene=Ye.object({id:Ye.number(),name:Ye.string(),group:Ye.string()}),tne=Ye.object({data:Ye.array(ene),meta:Ye.object({total:Ye.number()})});Ye.object({value:Ye.string(),label:Ye.string()});async function nne(e=""){const t=await Fn.get("/v2/search/specialties",{params:{q:e}});return tne.parse(t.data).data.map(i=>({value:String(i.id),label:i.name}))}const vg=Pa("signup.specialties",{search:(e="")=>({queryKey:[{filter:e}],queryFn:()=>nne(e)})}
303),rne=Ye.object({id:Ye.number(),name:Ye.string(),acronym:Ye.string()}),ine=Ye.object({data:Ye.array(rne),meta:Ye.object({total:Ye.number(),limit:Ye.number()})});Ye.object({value:Ye.string(),label:Ye.string()});async function one(e=""){const t=await Fn.get("/v2/search/universities",{params:{filter:e}});return ine.parse(t.data).data.map(i=>({value:String(i.id),label:i.name}))}const yg=Pa("signup.universities",{search:(e="")=>({queryKey:[{filter:e}],queryFn:()=>one(e)})});function ane({filter:e=""}={}){return TN({...yg.search(e),placeholderData:t=>t})}function O4(e){if(!e)return;if(e instanceof Date)return e.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric"});if(/^\d{2}\/\d{2}\/\d{4}$/.test(e))return e;const t=new Date(e);if(!Number.isNaN(t.getTime()))return t.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric"})}function sne(e){if(e==="email")return"email";if(e==="cpf")return"cpf"}function lne(e){return Object.entries(e).map(([t,n])=>({key:t,value:t==="birthdate"?O4(String(n)):String(n),validation_rule:sne(t)}))}async function cne({sessionId:e,step:t,values:n}){return(await Fn.patch(`/v1/accounts/registration/${e}`,{fields:lne(n),session_id:e,step:t})).data.data[t]}const T4=Pa("registration",{update:e=>[e]});function bg({step:e,onSuccess:t,onError:n,onSettled:i}){return Li({mutationKey:T4.update(e).queryKey,mutationFn:r=>cne(r),onSuccess:t,onError:n,onSettled:i})}qte(x4,k4,gg,vg,yg,T4);const R4={...k4.init};function une(){const e=dn(),t=Qn(l=>l.sessionId),n=Qn(l=>l.updateSessionId),{data:i,isLoading:r,error:a}=RN(R4);return k.useEffect(()=>{i!=null&&i.session_id&&!t&&n(i.session_id)},[i,t,n]),k.useEffect(()=>{a&&(console.error("Erro ao obter sessionId:",a),e({to:"/",search:{error:x0},replace:!0}))},[a,e]),{sessionId:t||(i==null?void 0:i.session_id)||null,isLoading:r,error:a}}const dne={"/sign-up/personal-data":{step:1,percentage:12.5},"/sign-up/otp":{step:2,percentage:25},"/sign-up/create-password":{step:3,percentage:50},"/sign-up/professional-data":{step:4,percentage:75}},fne={"/sign-up/personal-data":{step:1,percentage:12.5},"/sign-up/otp":{step:2,percentage:25},"/sign-up/create-password":{step:3,percentage:50},"/sign-up/student-data":{step:4,percentage:75}};function mne(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function hne(e,t){const n=mne(e);return(Wc(t)?fne:dne)[n]??{step:0,percentage:0}}const pne=cn("/_layout/sign-up")({component:vne,pendingComponent:w4,errorComponent:SP,loader:async({context:{queryClient:e}})=>{await e.ensureQueryData(R4)},onError:()=>{throw Es({to:"/",search:{error:x0},replace:!0})},beforeLoad:({location:e})=>{if(e.pathname.split("/").pop()==="sign-up")throw Es({to:"/sign-up/personal-data"})}}),gne=4;function vne(){const{flowType:e,updateFlowType:t,updateValues:n}=Qn();une();const i=ZN().pathname,{step:r,percentage:a}=hne(i,e);return k.useEffect(()=>{i==="/sign-up/professional-data"&&(t(fi.PROFESSIONAL),n(l=>({...l,professionalData:ep.professionalData}))),i==="/sign-up/student-data"&&(t(fi.STUDENT),n(l=>({...l,professionalData:ep.professionalData})))},[i,t,n]),v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsx(St,{children:v.jsxs(St.Container,{children:[v.jsx("div",{children:v.jsx(Aa,{className:"w-10 h-10"})}),v.jsx(St.Progress,{progressInPercentage:a,children:v.jsxs("span",{className:"text-xs font-medium text-muted-foreground",children:["Etapa ",r," de ",gne]})})]})}),v.jsx(Yd,{})]})}function $4({className:e,...t}){return v.jsx(Tee,{"data-slot":"label",className:ke("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:cursor-not-allowed group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const yne=Fi("group peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-[var(--disabled-opacity)] focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[length:var(--ring-width)] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{visual:{default:"border-input bg-white dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground dark:data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary",box:"border-input bg-white dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground dark:data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary"}},defaultVariants:{visual:"default"}}),bne=Fi("flex items-start gap-3",{variants:{visual:{default:"",box:"rounded-lg border border-input bg-background p-4 transition-colors has-[button[data-state=checked]]:border-primary has-[button[data-state=checked]]:bg-primary/5 has-[button[data-state=indeterminate]]:border-primary has-[button[data-state=indeterminate]]:bg-primary/5"},controlPlacement:{start:"flex-row",end:"flex-row-reverse"}},defaultVariants:{visual:"default",controlPlacement:"start"}});function cp({className:e,visual:t="default",controlPlacement:n="start",label:i,description:r,id:a,disabled:l,...u}){const f=k.useId(),m=a??f,h=v.jsx(iz,{id:m,"data-slot":"checkbox","data-visual":t,disabled:l,className:ke(yne({visual:t}),e),...u,children:v.jsxs(az,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:[v.jsx(Lh,{className:"size-3.5 group-data-[state=indeterminate]:hidden",strokeWidth:2.5,"aria-hidden":"true"}),v.jsx(uZ,{className:"size-3.5 hidden group-data-[state=indeterminate]:block",strokeWidth:2.5,"aria-hidden":"true"})]})});return!i&&!r?h:v.jsxs("div",{"data-slot":"checkbox-container","data-visual":t,className:ke(bne({visual:t,controlPlacement:n}),!r&&"items-center"),children:[h,v.jsxs("div",{className:"flex flex-col gap-1.5",children:[i&&v.jsx($4,{htmlFor:m,className:"text-foreground cursor-pointer peer-disabled:cursor-not-allowed peer-disabled:opacity-[var(--disabled-opacity)]",children:i}),r&&v.jsx("p",{className:"text-sm leading-5 text-muted-foreground",children:r})]})]})}cp.formFieldConfig={mapField:"radix-checkbox",labelPlacement:"component"};var l$=1,_ne=.9,Sne=.8,wne=.17,bb=.1,_b=.999,xne=.9999,Ene=.99,kne=/[\\\/_+.#"@\[\(\{&]/,One=/[\\\/_+.#"@\[\(\{&]/g,Tne=/[\s-]/,N4=/[\s-]/g;function Z_(e,t,n,i,r,a,l){if(a===t.length)return r===e.length?l$:Ene;var u=`${r},${a}`;if(l[u]!==void 0)return l[u];for(var f=i.charAt(a),m=n.indexOf(f,r),h=0,g,b,_,S;m>=0;)g=Z_(e,t,n,i,m+1,a+1,l),g>h&&(m===r?g*=l$:kne.test(e.charAt(m-1))?(g*=Sne,_=e.slice(r,m-1).match(One),_&&r>0&&(g*=Math.pow(_b,_.length))):Tne.test(e.charAt(m-1))?(g*=_ne,S=e.slice(r,m-1).match(N4),S&&r>0&&(g*=Math.pow(_b,S.length))):(g*=wne,r>0&&(g*=Math.pow(_b,m-r))),e.charAt(m)!==t.charAt(a)&&(g*=xne)),(g<bb&&n.charAt(m-1)===i.charAt(a+1)||i.charAt(a+1)===i.charAt(a)&&n.charAt(m-1)!==i.charAt(a))&&(b=Z_(e,t,n,i,m+1,a+2,l),b*bb>g&&(g=b*bb)),g>h&&(h=g),m=n.indexOf(f,m+1);return l[u]=h,h}function c$(e){return e.toLowerCase().replace(N4," ")}function Rne(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Z_(e,t,c$(e),c$(t),0,0,{})}var od='[cmdk-group=""]',Sb='[cmdk-group-items=""]',$ne='[cmdk-group-heading=""]',D4='[cmdk-item=""]',u$=`${D4}:not([aria-disabled="true"])`,Y_="cmdk-item-select",Gl="data-value",Nne=(e,t,n)=>Rne(e,t,n),C4=k.createContext(void 0),Sf=()=>
303k.useContext(C4),A4=k.createContext(void 0),H0=()=>k.useContext(A4),j4=k.createContext(void 0),M4=k.forwardRef((e,t)=>{let n=Kl(()=>{var Z,X;return{search:"",value:(X=(Z=e.value)!=null?Z:e.defaultValue)!=null?X:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=Kl(()=>new Set),r=Kl(()=>new Map),a=Kl(()=>new Map),l=Kl(()=>new Set),u=I4(e),{label:f,children:m,value:h,onValueChange:g,filter:b,shouldFilter:_,loop:S,disablePointerSelection:w=!1,vimBindings:x=!0,...E}=e,O=$r(),R=$r(),$=$r(),N=k.useRef(null),M=Fne();Zs(()=>{if(h!==void 0){let Z=h.trim();n.current.value=Z,C.emit()}},[h]),Zs(()=>{M(6,F)},[]);let C=k.useMemo(()=>({subscribe:Z=>(l.current.add(Z),()=>l.current.delete(Z)),snapshot:()=>n.current,setState:(Z,X,le)=>{var me,be,ce,Ee;if(!Object.is(n.current[Z],X)){if(n.current[Z]=X,Z==="search")H(),L(),M(1,K);else if(Z==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Ne=document.getElementById($);Ne?Ne.focus():(me=document.getElementById(O))==null||me.focus()}if(M(7,()=>{var Ne;n.current.selectedItemId=(Ne=ae())==null?void 0:Ne.id,C.emit()}),le||M(5,F),((be=u.current)==null?void 0:be.value)!==void 0){let Ne=X??"";(Ee=(ce=u.current).onValueChange)==null||Ee.call(ce,Ne);return}}C.emit()}},emit:()=>{l.current.forEach(Z=>Z())}}),[]),I=k.useMemo(()=>({value:(Z,X,le)=>{var me;X!==((me=a.current.get(Z))==null?void 0:me.value)&&(a.current.set(Z,{value:X,keywords:le}),n.current.filtered.items.set(Z,V(X,le)),M(2,()=>{L(),C.emit()}))},item:(Z,X)=>(i.current.add(Z),X&&(r.current.has(X)?r.current.get(X).add(Z):r.current.set(X,new Set([Z]))),M(3,()=>{H(),L(),n.current.value||K(),C.emit()}),()=>{a.current.delete(Z),i.current.delete(Z),n.current.filtered.items.delete(Z);let le=ae();M(4,()=>{H(),(le==null?void 0:le.getAttribute("id"))===Z&&K(),C.emit()})}),group:Z=>(r.current.has(Z)||r.current.set(Z,new Set),()=>{a.current.delete(Z),r.current.delete(Z)}),filter:()=>u.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>u.current.disablePointerSelection,listId:O,inputId:$,labelId:R,listInnerRef:N}),[]);function V(Z,X){var le,me;let be=(me=(le=u.current)==null?void 0:le.filter)!=null?me:Nne;return Z?be(Z,n.current.search,X):0}function L(){if(!n.current.search||u.current.shouldFilter===!1)return;let Z=n.current.filtered.items,X=[];n.current.filtered.groups.forEach(me=>{let be=r.current.get(me),ce=0;be.forEach(Ee=>{let Ne=Z.get(Ee);ce=Math.max(Ne,ce)}),X.push([me,ce])});let le=N.current;ue().sort((me,be)=>{var ce,Ee;let Ne=me.getAttribute("id"),Ie=be.getAttribute("id");return((ce=Z.get(Ie))!=null?ce:0)-((Ee=Z.get(Ne))!=null?Ee:0)}).forEach(me=>{let be=me.closest(Sb);be?be.appendChild(me.parentElement===be?me:me.closest(`${Sb} > *`)):le.appendChild(me.parentElement===le?me:me.closest(`${Sb} > *`))}),X.sort((me,be)=>be[1]-me[1]).forEach(me=>{var be;let ce=(be=N.current)==null?void 0:be.querySelector(`${od}[${Gl}="${encodeURIComponent(me[0])}"]`);ce==null||ce.parentElement.appendChild(ce)})}function K(){let Z=ue().find(le=>le.getAttribute("aria-disabled")!=="true"),X=Z==null?void 0:Z.getAttribute(Gl);C.setState("value",X||void 0)}function H(){var Z,X,le,me;if(!n.current.search||u.current.shouldFilter===!1){n.current.filtered.count=i.current.size;return}n.current.filtered.groups=new Set;let be=0;for(let ce of i.current){let Ee=(X=(Z=a.current.get(ce))==null?void 0:Z.value)!=null?X:"",Ne=(me=(le=a.current.get(ce))==null?void 0:le.keywords)!=null?me:[],Ie=V(Ee,Ne);n.current.filtered.items.set(ce,Ie),Ie>0&&be++}for(let[ce,Ee]of r.current)for(let Ne of Ee)if(n.current.filtered.items.get(Ne)>0){n.current.filtered.groups.add(ce);break}n.current.filtered.count=be}function F(){var Z,X,le;let me=ae();me&&(((Z=me.parentElement)==null?void 0:Z.firstChild)===me&&((le=(X=me.closest(od))==null?void 0:X.querySelector($ne))==null||le.scrollIntoView({block:"nearest"})),me.scrollIntoView({block:"nearest"}))}function ae(){var Z;return(Z=N.current)==null?void 0:Z.querySelector(`${D4}[aria-selected="true"]`)}function ue(){var Z;return Array.from(((Z=N.current)==null?void 0:Z.querySelectorAll(u$))||[])}function j(Z){let X=ue()[Z];X&&C.setState("value",X.getAttribute(Gl))}function G(Z){var X;let le=ae(),me=ue(),be=me.findIndex(Ee=>Ee===le),ce=me[be+Z];(X=u.current)!=null&&X.loop&&(ce=be+Z<0?me[me.length-1]:be+Z===me.length?me[0]:me[be+Z]),ce&&C.setState("value",ce.getAttribute(Gl))}function B(Z){let X=ae(),le=X==null?void 0:X.closest(od),me;
303for(;le&&!me;)le=Z>0?Une(le,od):Lne(le,od),me=le==null?void 0:le.querySelector(u$);me?C.setState("value",me.getAttribute(Gl)):G(Z)}let fe=()=>j(ue().length-1),A=Z=>{Z.preventDefault(),Z.metaKey?fe():Z.altKey?B(1):G(1)},ne=Z=>{Z.preventDefault(),Z.metaKey?j(0):Z.altKey?B(-1):G(-1)};return k.createElement(nt.div,{ref:t,tabIndex:-1,...E,"cmdk-root":"",onKeyDown:Z=>{var X;(X=E.onKeyDown)==null||X.call(E,Z);let le=Z.nativeEvent.isComposing||Z.keyCode===229;if(!(Z.defaultPrevented||le))switch(Z.key){case"n":case"j":{x&&Z.ctrlKey&&A(Z);break}case"ArrowDown":{A(Z);break}case"p":case"k":{x&&Z.ctrlKey&&ne(Z);break}case"ArrowUp":{ne(Z);break}case"Home":{Z.preventDefault(),j(0);break}case"End":{Z.preventDefault(),fe();break}case"Enter":{Z.preventDefault();let me=ae();if(me){let be=new Event(Y_);me.dispatchEvent(be)}}}}},k.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:Vne},f),_g(e,Z=>k.createElement(A4.Provider,{value:C},k.createElement(C4.Provider,{value:I},Z))))}),Dne=k.forwardRef((e,t)=>{var n,i;let r=$r(),a=k.useRef(null),l=k.useContext(j4),u=Sf(),f=I4(e),m=(i=(n=f.current)==null?void 0:n.forceMount)!=null?i:l==null?void 0:l.forceMount;Zs(()=>
vendor: 4,682 bytes, line 303
303{if(!m)return u.item(r,l==null?void 0:l.id)},[m]);let h=P4(r,a,[e.value,e.children,a],e.keywords),g=H0(),b=Na(M=>M.value&&M.value===h.current),_=Na(M=>m||u.filter()===!1?!0:M.search?M.filtered.items.get(r)>0:!0);k.useEffect(()=>{let M=a.current;if(!(!M||e.disabled))return M.addEventListener(Y_,S),()=>M.removeEventListener(Y_,S)},[_,e.onSelect,e.disabled]);function S(){var M,C;w(),(C=(M=f.current).onSelect)==null||C.call(M,h.current)}function w(){g.setState("value",h.current,!0)}if(!_)return null;let{disabled:x,value:E,onSelect:O,forceMount:R,keywords:$,...N}=e;return k.createElement(nt.div,{ref:Is(a,t),...N,id:r,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!b,"data-disabled":!!x,"data-selected":!!b,onPointerMove:x||u.getDisablePointerSelection()?void 0:w,onClick:x?void 0:S},e.children)}),Cne=k.forwardRef((e,t)=>{let{heading:n,children:i,forceMount:r,...a}=e,l=$r(),u=k.useRef(null),f=k.useRef(null),m=$r(),h=Sf(),g=Na(_=>r||h.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);Zs(()=>h.group(l),[]),P4(l,u,[e.value,e.heading,f]);let b=k.useMemo(()=>({id:l,forceMount:r}),[r]);return k.createElement(nt.div,{ref:Is(u,t),...a,"cmdk-group":"",role:"presentation",hidden:g?void 0:!0},n&&k.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:m},n),_g(e,_=>k.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?m:void 0},k.createElement(j4.Provider,{value:b},_))))}),Ane=k.forwardRef((e,t)=>{let{alwaysRender:n,...i}=e,r=k.useRef(null),a=Na(l=>!l.search);return!n&&!a?null:k.createElement(nt.div,{ref:Is(r,t),...i,"cmdk-separator":"",role:"separator"})}),jne=k.forwardRef((e,t)=>{let{onValueChange:n,...i}=e,r=e.value!=null,a=H0(),l=Na(m=>m.search),u=Na(m=>m.selectedItemId),f=Sf();return k.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),k.createElement(nt.input,{ref:t,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":u,id:f.inputId,type:"text",value:r?e.value:l,onChange:m=>{r||a.setState("search",m.target.value),n==null||n(m.target.value)}})}),Mne=k.forwardRef((e,t)=>{let{children:n,label:i="Suggestions",...r}=e,a=k.useRef(null),l=k.useRef(null),u=Na(m=>m.selectedItemId),f=Sf();return k.useEffect(()=>{if(l.current&&a.current){let m=l.current,h=a.current,g,b=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let _=m.offsetHeight;h.style.setProperty("--cmdk-list-height",_.toFixed(1)+"px")})});return b.observe(m),()=>{cancelAnimationFrame(g),b.unobserve(m)}}},[]),k.createElement(nt.div,{ref:Is(a,t),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":i,id:f.listId},_g(e,m=>k.createElement("div",{ref:Is(l,f.listInnerRef),"cmdk-list-sizer":""},m)))}),Ine=k.forwardRef((e,t)=>{let{open:n,onOpenChange:i,overlayClassName:r,contentClassName:a,container:l,...u}=e;return k.createElement(KP,{open:n,onOpenChange:i},k.createElement(XP,{container:l},k.createElement(QP,{"cmdk-overlay":"",className:r}),k.createElement(JP,{"aria-label":e.label,"cmdk-dialog":"",className:a},k.createElement(M4,{ref:t,...u}))))}),Pne=k.forwardRef((e,t)=>Na(n=>n.filtered.count===0)?k.createElement(nt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),zne=k.forwardRef((e,t)=>{let{progress:n,children:i,label:r="Loading...",...a}=e;return k.createElement(nt.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},_g(e,l=>k.createElement("div",{"aria-hidden":!0},l)))}),Jc=Object.assign(M4,{List:Mne,Item:Dne,Input:jne,Group:Cne,Separator:Ane,Dialog:Ine,Empty:Pne,Loading:zne});function Une(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Lne(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function I4(e){let t=k.useRef(e);return Zs(()=>{t.current=e}),t}var Zs=typeof window>"u"?k.useEffect:k.useLayoutEffect;function Kl(e){let t=k.useRef();return t.current===void 0&&(t.current=e()),t}function Na(e){let t=H0(),n=()=>e(t.snapshot());return k.useSyncExternalStore(t.subscribe,n,n)}function P4(e,t,n,i=[]){let r=k.useRef(),a=Sf();return Zs(()=>{var l;let u=(()=>{var m;for(let h of n){if(typeof h=="string")return h.trim();if(typeof h=="object"&&"current"in h)return h.current?(m=h.current.textContent)==null?void 0:m.trim():r.current}})(),f=i.map(m=>m.trim());a.value(e,u,f),(l=t.current)==null||l.setAttribute(Gl,u),r.current=u}),r}var Fne=()=>{let[e,t]=k.useState(),n=Kl(()=>new Map);return Zs(()=>{n.current.forEach(i=>
303i()),n.current=new Map},[e]),(i,r)=>{n.current.set(i,r),t({})}};function Bne(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function _g({asChild:e,children:t},n){return e&&k.isValidElement(t)?k.cloneElement(Bne(t),{ref:t.ref},n(t.props.children)):n(t)}var Vne={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Hne(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const z4=Y.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),wf=()=>{const e=Y.useContext(z4);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};Hne(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
304[data-state=closed]
305){opacity:0}
305[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function qne(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Zne(){return q0(/^Mac/)}function Yne(){return q0(/^iPhone/)}function d$(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Wne(){return q0(/^iPad/)||Zne()&&navigator.maxTouchPoints>1}function U4(){return Yne()||Wne()}function q0(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const Gne=24,Kne=typeof window<"u"?k.useLayoutEffect:k.useEffect;function f$(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const wb=typeof document<"u"&&window.visualViewport;function m$(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function L4(e){for(m$(e)&&(e=e.parentElement);e&&!m$(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const Xne=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let lh=0,xb;function Qne(e={}){let{isDisabled:t}=e;Kne(()=>{if(!t)return lh++,lh===1&&U4()&&(xb=Jne()),()=>{lh--,lh===0&&(xb==null||xb())}},[t])}function Jne(){let e,t=0,n=g=>{e=L4(g.target),!(e===document.documentElement&&e===document.body)&&(t=g.changedTouches[0].pageY)},i=g=>{if(!e||e===document.documentElement||e===document.body){g.preventDefault();return}let b=g.changedTouches[0].pageY,_=e.scrollTop,S=e.scrollHeight-e.clientHeight;S!==0&&((_<=0&&b>t||_>=S&&b<t)&&g.preventDefault(),t=b)},r=g=>{let b=g.target;W_(b)&&b!==document.activeElement&&(g.preventDefault(),b.style.transform="translateY(-2000px)",b.focus(),requestAnimationFrame(()=>{b.style.transform=""}))},a=g=>{let b=g.target;W_(b)&&(b.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{b.style.transform="",wb&&(wb.height<window.innerHeight?requestAnimationFrame(()=>{h$(b)}):wb.addEventListener("resize",()=>h$(b),{once:!0}))}))},l=()=>{window.scrollTo(0,0)},u=window.pageXOffset,f=window.pageYOffset,m=f$(ere(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let h=f$(ad(document,"touchstart",n,{passive:!1,capture:!0}),ad(document,"touchmove",i,{passive:!1,capture:!0}),ad(document,"touchend",r,{passive:!1,capture:!0}),ad(document,"focus",a,!0),ad(window,"scroll",l));return()=>{m(),h(),window.scrollTo(u,f)}}function ere(e,t,n){let i=e.style[t];return e.style[t]=n,()=>{e.style[t]=i}}function ad(e,t,n,i){return e.addEventListener(t,n,i),()=>{e.removeEventListener(t,n,i)}}function h$(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=L4(e);
305if(n!==document.documentElement&&n!==document.body&&n!==e){let i=n.getBoundingClientRect().top,r=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const l=n.getBoundingClientRect().bottom+Gne;a>l&&(n.scrollTop+=r-i)}e=n.parentElement}}function W_(e){return e instanceof HTMLInputElement&&!Xne.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function tre(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function nre(...e){return t=>e.forEach(n=>tre(n,t))}function F4(...e){return k.useCallback(nre(...e),e)}const B4=new WeakMap;function yn(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let i={};Object.entries(t).forEach(([r,a])=>{if(r.startsWith("--")){e.style.setProperty(r,a);return}i[r]=e.style[r],e.style[r]=a}),!n&&B4.set(e,i)}function rre(e,t){if(!e||!(e instanceof HTMLElement))return;let n=B4.get(e);n&&(e.style[t]=n[t])}const sn=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function ch(e,t){if(!e)return null;const n=window.getComputedStyle(e),i=n.transform||n.webkitTransform||n.mozTransform;let r=i.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[sn(t)?13:12]):(r=i.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[sn(t)?5:4]):null)}function ire(e){return 8*(Math.log(e+1)-2)}function Eb(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function ore(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const Bt={DURATION:.5,EASE:[.32,.72,0,1]},V4=.4,are=.25,sre=100,H4=8,uh=16,G_=26,kb="vaul-dragging";function q4(e){const t=Y.useRef(e);return Y.useEffect(()=>{t.current=e}),Y.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function lre({defaultProp:e,onChange:t}){const n=Y.useState(e),[i]=n,r=Y.useRef(i),a=q4(t);return Y.useEffect(()=>{r.current!==i&&(a(i),r.current=i)},[i,r,a]),n}function Z4({prop:e,defaultProp:t,onChange:n=()=>{}}){const[i,r]=lre({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i,u=q4(n),f=Y.useCallback(m=>{if(a){const g=typeof m=="function"?m(e):m;g!==e&&u(g)}else r(m)},[a,e,r,u]);return[l,f]}function cre({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:i,overlayRef:r,fadeFromIndex:a,onSnapPointChange:l,direction:u="bottom",container:f,snapToSequentialPoint:m}){const[h,g]=Z4({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[b,_]=Y.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);Y.useEffect(()=>{function C(){_({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[]);const S=Y.useMemo(()=>h===(n==null?void 0:n[n.length-1])||null,[n,h]),w=Y.useMemo(()=>{var C;return(C=n==null?void 0:n.findIndex(I=>I===h))!=null?C:null},[n,h]),x=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===h||!n,E=Y.useMemo(()=>{const C=f?{width:f.getBoundingClientRect().width,height:f.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var I;return(I=n==null?void 0:n.map(V=>{const L=typeof V=="string";let K=0;if(L&&(K=parseInt(V,10)),sn(u)){const F=L?K:b?V*C.height:0;return b?u==="bottom"?C.height-F:-C.height+F:F}const H=L?K:b?V*C.width:0;return b?u==="right"?C.width-H:-C.width+H:H}))!=null?I:[]},[n,b,f]),O=Y.useMemo(()=>w!==null?E==null?void 0:E[w]:null,[E,w]),R=Y.useCallback(C=>{var I;const V=(I=E==null?void 0:E.findIndex(L=>L===C))!=null?I:null;l(V),yn(i.current,{transition:`transform ${Bt.DURATION}s cubic-bezier(${Bt.EASE.join(",")})`,transform:sn(u)?`translate3d(0, ${C}px, 0)`:`translate3d(${C}px, 0, 0)`}),E&&V!==E.length-1&&a!==void 0&&V!==a&&V<a?yn(r.current,{transition:`opacity ${Bt.DURATION}s cubic-bezier(${Bt.EASE.join(",")})`,opacity:"0"}):yn(r.current,{transition:`opacity ${Bt.DURATION}s cubic-bezier(${Bt.EASE.join(",")})`,opacity:"1"}),g(n==null?void 0:n[Math.max(V,0)])},[i.current,n,E,a,r,g]);Y.useEffect(()=>{if(h||e){var C;const I=(C=n==null?void 0:n.findIndex(V=>V===e||V===h))!=null?C:-1;E&&I!==-1&&typeof E[I]=="number"&&R(E[I])}},[h,e,n,E,R]);function $({draggedDistance:C,closeDrawer:I,velocity:V,dismissible:L}){if(a===void 0)return;
305const K=u==="bottom"||u==="right"?(O??0)-C:(O??0)+C,H=w===a-1,F=w===0,ae=C>0;if(H&&yn(r.current,{transition:`opacity ${Bt.DURATION}s cubic-bezier(${Bt.EASE.join(",")})`}),!m&&V>2&&!ae){L?I():R(E[0]);return}if(!m&&V>2&&ae&&E&&n){R(E[n.length-1]);return}const ue=E==null?void 0:E.reduce((G,B)=>typeof G!="number"||typeof B!="number"?G:Math.abs(B-K)<Math.abs(G-K)?B:G),j=sn(u)?window.innerHeight:window.innerWidth;if(V>V4&&Math.abs(C)<j*.4){const G=ae?1:-1;if(G>0&&S&&n){R(E[n.length-1]);return}if(F&&G<0&&L&&I(),w===null)return;R(E[w+G]);return}R(ue)}function N({draggedDistance:C}){if(O===null)return;const I=u==="bottom"||u==="right"?O-C:O+C;(u==="bottom"||u==="right")&&I<E[E.length-1]||(u==="top"||u==="left")&&I>E[E.length-1]||yn(i.current,{transform:sn(u)?`translate3d(0, ${I}px, 0)`:`translate3d(${I}px, 0, 0)`})}function M(C,I){if(!n||typeof w!="number"||!E||a===void 0)return null;const V=w===a-1;if(w>=a&&I)return 0;if(V&&!I)return 1;if(!x&&!V)return null;const K=V?w+1:w-1,H=V?E[K]-E[K-1]:E[K+1]-E[K],F=C/Math.abs(H);return V?1-F:F}return{isLastSnapPoint:S,activeSnapPoint:h,shouldFade:x,getPercentageDragged:M,setActiveSnapPoint:g,activeSnapPointIndex:w,onRelease:$,onDrag:N,snapPointsOffset:E}}const ure=()=>()=>{};function dre(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:i,noBodyStyles:r}=wf(),a=Y.useRef(null),l=k.useMemo(()=>document.body.style.backgroundColor,[]);function u(){return(window.innerWidth-G_)/window.innerWidth}Y.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const f=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!f)return;ore(i&&!r?Eb(document.body,{background:"black"}):ure,Eb(f,{transformOrigin:sn(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Bt.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Bt.EASE.join(",")})`}));const m=Eb(f,{borderRadius:`${H4}px`,overflow:"hidden",...sn(e)?{transform:`scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{m(),a.current=window.setTimeout(()=>{l?document.body.style.background=l:document.body.style.removeProperty("background")},Bt.DURATION*1e3)}}},[t,n,l])}let sd=null;function fre({isOpen:e,modal:t,nested:n,hasBeenOpened:i,preventScrollRestoration:r,noBodyStyles:a}){const[l,u]=Y.useState(()=>typeof window<"u"?window.location.href:""),f=Y.useRef(0),m=Y.useCallback(()=>{if(d$()&&sd===null&&e&&!a){sd={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:g,innerHeight:b}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-f.current}px`,left:`${-g}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const _=b-window.innerHeight;_&&f.current>=b&&(document.body.style.top=`${-(f.current+_)}px`)}),300)}},[e]),h=Y.useCallback(()=>{if(d$()&&sd!==null&&!a){const g=-parseInt(document.body.style.top,10),b=-parseInt(document.body.style.left,10);Object.assign(document.body.style,sd),window.requestAnimationFrame(()=>{if(r&&l!==window.location.href){u(window.location.href);return}window.scrollTo(b,g)}),sd=null}},[l]);return Y.useEffect(()=>{function g(){f.current=window.scrollY}return g(),window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}},[]),Y.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||h()}},[t,h]),Y.useEffect(()=>{n||!i||(e?(!window.matchMedia("(display-mode: standalone)").matches&&m(),t||window.setTimeout(()=>{h()},500)):h())},[e,i,l,t,n,m,h]),{restorePositionSetting:h}}function mre({open:e,onOpenChange:t,children:n,onDrag:i,onRelease:r,snapPoints:a,shouldScaleBackground:l=!1,setBackgroundColorOnScale:u=!0,closeThreshold:f=are,scrollLockTimeout:m=sre,dismissible:h=!0,handleOnly:g=!1,fadeFromIndex:b=a&&a.length-1,activeSnapPoint:_,setActiveSnapPoint:S,fixed:w,modal:x=!0,onClose:E,nested:O,noBodyStyles:R=!1,direction:$="bottom",defaultOpen:N=!1,disablePreventScroll:M=!0,snapToSequentialPoint:C=!1,preventScrollRestoration:I=!1,repositionInputs:V=!0,onAnimationEnd:L,container:K,autoFocus:H=!1}){var F,ae;const[ue=!1,j]=Z4({defaultProp:N,prop:e,onChange:xe=>{t==null||t(xe),!xe&&!O&&Be(),setTimeout(()=>{L==null||L(xe)},Bt.DURATION*1e3),xe&&!x&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),xe||(document.body.style.pointerEvents="auto")}}),[G,B]=Y.useState(!1),[fe,A]=Y.useState(!1),[ne,Z]=Y.useState(!1),X=Y.useRef(null),le=Y.useRef(null),me=Y.useRef(null),be=Y.useRef(null),ce=Y.useRef(null),Ee=Y.useRef(!1),Ne=Y.useRef(null),Ie=Y.useRef(0),Ve=Y.useRef(!1),Pe=Y.useRef(!N),$t=Y.useRef(0),_e=Y.useRef(null),Me=Y.useRef(((F=_e.current)==null?void 0:F.getBoundingClientRect().height)||0),yt=Y.useRef(((ae=_e.current)==null?void 0:ae.getBoundingClientRect().width)||0),st=Y.useRef(0),Lt=Y.useCallback(xe=>
305{a&&xe===he.length-1&&(le.current=new Date)},[]),{activeSnapPoint:et,activeSnapPointIndex:P,setActiveSnapPoint:Q,onRelease:oe,snapPointsOffset:he,onDrag:ge,shouldFade:ve,getPercentageDragged:Oe}=cre({snapPoints:a,activeSnapPointProp:_,setActiveSnapPointProp:S,drawerRef:_e,fadeFromIndex:b,overlayRef:X,onSnapPointChange:Lt,direction:$,container:K,snapToSequentialPoint:C});Qne({isDisabled:!ue||fe||!x||ne||!G||!V||!M});const{restorePositionSetting:Be}=fre({isOpen:ue,modal:x,nested:O??!1,hasBeenOpened:G,preventScrollRestoration:I,noBodyStyles:R});function Xe(){return(window.innerWidth-G_)/window.innerWidth}function vt(xe){var ze,Re;!h&&!a||_e.current&&!_e.current.contains(xe.target)||(Me.current=((ze=_e.current)==null?void 0:ze.getBoundingClientRect().height)||0,yt.current=((Re=_e.current)==null?void 0:Re.getBoundingClientRect().width)||0,A(!0),me.current=new Date,U4()&&window.addEventListener("touchend",()=>Ee.current=!1,{once:!0}),xe.target.setPointerCapture(xe.pointerId),Ie.current=sn($)?xe.pageY:xe.pageX)}function mr(xe,ze){var Re;let De=xe;const dt=(Re=window.getSelection())==null?void 0:Re.toString(),We=_e.current?ch(_e.current,$):null,nn=new Date;if(De.tagName==="SELECT"||De.hasAttribute("data-vaul-no-drag")||De.closest("[data-vaul-no-drag]"))return!1;if($==="right"||$==="left")return!0;if(le.current&&nn.getTime()-le.current.getTime()<500)return!1;if(We!==null&&($==="bottom"?We>0:We<0))return!0;if(dt&&dt.length>0)return!1;if(ce.current&&nn.getTime()-ce.current.getTime()<m&&We===0||ze)return ce.current=nn,!1;for(;De;){if(De.scrollHeight>De.clientHeight){if(De.scrollTop!==0)return ce.current=new Date,!1;if(De.getAttribute("role")==="dialog")return!0}De=De.parentNode}return!0}function jn(xe){if(_e.current&&fe){const ze=$==="bottom"||$==="right"?1:-1,Re=(Ie.current-(sn($)?xe.pageY:xe.pageX))*ze,De=Re>0,dt=a&&!h&&!De;if(dt&&P===0)return;const We=Math.abs(Re),nn=document.querySelector("[data-vaul-drawer-wrapper]"),er=$==="bottom"||$==="top"?Me.current:yt.current;let Tn=We/er;const tr=Oe(We,De);if(tr!==null&&(Tn=tr),dt&&Tn>=1||!Ee.current&&!mr(xe.target,De))return;if(_e.current.classList.add(kb),Ee.current=!0,yn(_e.current,{transition:"none"}),yn(X.current,{transition:"none"}),a&&ge({draggedDistance:Re}),De&&!a){const fn=ire(Re),Qt=Math.min(fn*-1,0)*ze;yn(_e.current,{transform:sn($)?`translate3d(0, ${Qt}px, 0)`:`translate3d(${Qt}px, 0, 0)`});return}const nr=1-Tn;if((ve||b&&P===b-1)&&(i==null||i(xe,Tn),yn(X.current,{opacity:`${nr}`,transition:"none"},!0)),nn&&X.current&&l){const fn=Math.min(Xe()+Tn*(1-Xe()),1),Qt=8-Tn*8,Rn=Math.max(0,14-Tn*14);yn(nn,{borderRadius:`${Qt}px`,transform:sn($)?`scale(${fn}) translate3d(0, ${Rn}px, 0)`:`scale(${fn}) translate3d(${Rn}px, 0, 0)`,transition:"none"},!0)}if(!a){const fn=We*ze;yn(_e.current,{transform:sn($)?`translate3d(0, ${fn}px, 0)`:`translate3d(${fn}px, 0, 0)`})}}}Y.useEffect(()=>{window.requestAnimationFrame(()=>{Pe.current=!0})},[]),Y.useEffect(()=>{var xe;function ze(){if(!_e.current||!V)return;const Re=document.activeElement;if(W_(Re)||Ve.current){var De;const dt=((De=window.visualViewport)==null?void 0:De.height)||0,We=window.innerHeight;let nn=We-dt;const er=_e.current.getBoundingClientRect().height||0,Tn=er>We*.8;st.current||(st.current=er);const tr=_e.current.getBoundingClientRect().top;if(Math.abs($t.current-nn)>60&&(Ve.current=!Ve.current),a&&a.length>0&&he&&P){const nr=he[P]||0;nn+=nr}if($t.current=nn,er>dt||Ve.current){const nr=_e.current.getBoundingClientRect().height;let fn=nr;nr>dt&&(fn=dt-(Tn?tr:G_)),w?_e.current.style.height=`${nr-Math.max(nn,0)}px`:_e.current.style.height=`${Math.max(fn,dt-tr)}px`}else qne()||(_e.current.style.height=`${st.current}px`);a&&a.length>0&&!Ve.current?_e.current.style.bottom="0px":_e.current.style.bottom=`${Math.max(nn,0)}px`}}return(xe=window.visualViewport)==null||xe.addEventListener("resize",ze),()=>{var Re;return(Re=window.visualViewport)==null?void 0:Re.removeEventListener("resize",ze)}},[P,a,he]);function hr(xe){Mn(),E==null||E(),xe||j(!1),setTimeout(()=>{a&&Q(a[0])},Bt.DURATION*1e3)}function Xt(){if(!_e.current)return;const xe=document.querySelector("[data-vaul-drawer-wrapper]"),ze=ch(_e.current,$);yn(_e.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Bt.DURATION}s cubic-bezier(${Bt.EASE.join(",")})`}),yn(X.current,{transition:`opacity ${Bt.DURATION}s cubic-bezier(${Bt.EASE.join(",")})`,opacity:"1"}),l&&ze&&ze>0&&ue&&yn(xe,{borderRadius:`${H4}px`,overflow:"hidden",...sn($)?{transform:`scale(${Xe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Xe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Bt.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Bt.EASE.join(",")})`},!0)}function Mn(){!fe||!_e.current||(_e.current.classList.remove(kb),Ee.current=!1,A(!1),be.current=ne
305w Date)}function Bn(xe){if(!fe||!_e.current)return;_e.current.classList.remove(kb),Ee.current=!1,A(!1),be.current=new Date;const ze=ch(_e.current,$);if(!xe||!mr(xe.target,!1)||!ze||Number.isNaN(ze)||me.current===null)return;const Re=be.current.getTime()-me.current.getTime(),De=Ie.current-(sn($)?xe.pageY:xe.pageX),dt=Math.abs(De)/Re;if(dt>.05&&(Z(!0),setTimeout(()=>{Z(!1)},200)),a){oe({draggedDistance:De*($==="bottom"||$==="right"?1:-1),closeDrawer:hr,velocity:dt,dismissible:h}),r==null||r(xe,!0);return}if($==="bottom"||$==="right"?De>0:De<0){Xt(),r==null||r(xe,!0);return}if(dt>V4){hr(),r==null||r(xe,!1);return}var We;const nn=Math.min((We=_e.current.getBoundingClientRect().height)!=null?We:0,window.innerHeight);var er;const Tn=Math.min((er=_e.current.getBoundingClientRect().width)!=null?er:0,window.innerWidth),tr=$==="left"||$==="right";if(Math.abs(ze)>=(tr?Tn:nn)*f){hr(),r==null||r(xe,!1);return}r==null||r(xe,!0),Xt()}Y.useEffect(()=>(ue&&(yn(document.documentElement,{scrollBehavior:"auto"}),le.current=new Date),()=>{rre(document.documentElement,"scrollBehavior")}),[ue]);function jr(xe){const ze=xe?(window.innerWidth-uh)/window.innerWidth:1,Re=xe?-16:0;Ne.current&&window.clearTimeout(Ne.current),yn(_e.current,{transition:`transform ${Bt.DURATION}s cubic-bezier(${Bt.EASE.join(",")})`,transform:sn($)?`scale(${ze}) translate3d(0, ${Re}px, 0)`:`scale(${ze}) translate3d(${Re}px, 0, 0)`}),!xe&&_e.current&&(Ne.current=setTimeout(()=>{const De=ch(_e.current,$);yn(_e.current,{transition:"none",transform:sn($)?`translate3d(0, ${De}px, 0)`:`translate3d(${De}px, 0, 0)`})},500))}function Kr(xe,ze){if(ze<0)return;const Re=(window.innerWidth-uh)/window.innerWidth,De=Re+ze*(1-Re),dt=-16+ze*uh;yn(_e.current,{transform:sn($)?`scale(${De}) translate3d(0, ${dt}px, 0)`:`scale(${De}) translate3d(${dt}px, 0, 0)`,transition:"none"})}function Zi(xe,ze){const Re=sn($)?window.innerHeight:window.innerWidth,De=ze?(Re-uh)/Re:1,dt=ze?-16:0;ze&&yn(_e.current,{transition:`transform ${Bt.DURATION}s cubic-bezier(${Bt.EASE.join(",")})`,transform:sn($)?`scale(${De}) translate3d(0, ${dt}px, 0)`:`scale(${De}) translate3d(${dt}px, 0, 0)`})}return Y.useEffect(()=>{x||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[x]),Y.createElement(KP,{defaultOpen:N,onOpenChange:xe=>{!h&&!xe||(xe?B(!0):hr(!0),j(xe))},open:ue},Y.createElement(z4.Provider,{value:{activeSnapPoint:et,snapPoints:a,setActiveSnapPoint:Q,drawerRef:_e,overlayRef:X,onOpenChange:t,onPress:vt,onRelease:Bn,onDrag:jn,dismissible:h,shouldAnimate:Pe,handleOnly:g,isOpen:ue,isDragging:fe,shouldFade:ve,closeDrawer:hr,onNestedDrag:Kr,onNestedOpenChange:jr,onNestedRelease:Zi,keyboardIsOpen:Ve,modal:x,snapPointsOffset:he,activeSnapPointIndex:P,direction:$,shouldScaleBackground:l,setBackgroundColorOnScale:u,noBodyStyles:R,container:K,autoFocus:H}},n))}const Y4=Y.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:i,onRelease:r,shouldFade:a,isOpen:l,modal:u,shouldAnimate:f}=wf(),m=F4(t,n),h=i&&i.length>0;if(!u)return null;const g=Y.useCallback(b=>r(b),[r]);return Y.createElement(QP,{onMouseUp:g,ref:m,"data-vaul-overlay":"","data-vaul-snap-points":l&&h?"true":"false","data-vaul-snap-points-overlay":l&&a?"true":"false","data-vaul-animate":f!=null&&f.current?"true":"false",...e})});Y4.displayName="Drawer.Overlay";const W4=Y.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...i},r){const{drawerRef:a,onPress:l,onRelease:u,onDrag:f,keyboardIsOpen:m,snapPointsOffset:h,activeSnapPointIndex:g,modal:b,isOpen:_,direction:S,snapPoints:w,container:x,handleOnly:E,shouldAnimate:O,autoFocus:R}=wf(),[$,N]=Y.useState(!1),M=F4(r,a),C=Y.useRef(null),I=Y.useRef(null),V=Y.useRef(!1),L=w&&w.length>0;dre();const K=(F,ae,ue=0)=>{if(V.current)return!0;const j=Math.abs(F.y),G=Math.abs(F.x),B=G>j,fe=["bottom","right"].includes(ae)?1:-1;if(ae==="left"||ae==="right"){if(!(F.x*fe<0)&&G>=0&&G<=ue)return B}else if(!(F.y*fe<0)&&j>=0&&j<=ue)return!B;return V.current=!0,!0};Y.useEffect(()=>{L&&window.requestAnimationFrame(()=>{N(!0)})},[]);function H(F){C.current=null,V.current=!1,u(F)}return Y.createElement(JP,{"data-vaul-drawer-direction":S,"data-vaul-drawer":"","data-vaul-delayed-snap-points":$?"true":"false","data-vaul-snap-points":_&&L?"true":"false","data-vaul-custom-container":x?"true":"false","data-vaul-animate":O!=null&&O.current?"true":"false",...i,ref:M,style:h&&h.length>0?{"--snap-point-height":`${h[g??0]}px`,...t}:t,onPointerDown:F=>{E||(i.onPointerDown==null||i.onPointerDown.call(i,F),C.current={x:F.pageX,y:F.pageY},l(F))}
305,onOpenAutoFocus:F=>{n==null||n(F),R||F.preventDefault()},onPointerDownOutside:F=>{if(e==null||e(F),!b||F.defaultPrevented){F.preventDefault();return}m.current&&(m.current=!1)},onFocusOutside:F=>{if(!b){F.preventDefault();return}},onPointerMove:F=>{if(I.current=F,E||(i.onPointerMove==null||i.onPointerMove.call(i,F),!C.current))return;const ae=F.pageY-C.current.y,ue=F.pageX-C.current.x,j=F.pointerType==="touch"?10:2;K({x:ue,y:ae},S,j)?f(F):(Math.abs(ue)>j||Math.abs(ae)>j)&&(C.current=null)},onPointerUp:F=>{i.onPointerUp==null||i.onPointerUp.call(i,F),C.current=null,V.current=!1,u(F)},onPointerOut:F=>{i.onPointerOut==null||i.onPointerOut.call(i,F),H(I.current)},onContextMenu:F=>{i.onContextMenu==null||i.onContextMenu.call(i,F),I.current&&H(I.current)}})});W4.displayName="Drawer.Content";const hre=250,pre=120,gre=Y.forwardRef(function({preventCycle:e=!1,children:t,...n},i){const{closeDrawer:r,isDragging:a,snapPoints:l,activeSnapPoint:u,setActiveSnapPoint:f,dismissible:m,handleOnly:h,isOpen:g,onPress:b,onDrag:_}=wf(),S=Y.useRef(null),w=Y.useRef(!1);function x(){if(w.current){R();return}window.setTimeout(()=>{E()},pre)}function E(){if(a||e||w.current){R();return}if(R(),!l||l.length===0){m||r();return}if(u===l[l.length-1]&&m){r();return}const N=l.findIndex(C=>C===u);if(N===-1)return;const M=l[N+1];f(M)}function O(){S.current=window.setTimeout(()=>{w.current=!0},hre)}function R(){S.current&&window.clearTimeout(S.current),w.current=!1}return Y.createElement("div",{onClick:x,onPointerCancel:R,onPointerDown:$=>{h&&b($),O()},onPointerMove:$=>{h&&_($)},ref:i,"data-vaul-drawer-visible":g?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},Y.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});gre.displayName="Drawer.Handle";function vre(e){const t=wf(),{container:n=t.container,...i}=e;return Y.createElement(XP,{container:n,...i})}const No={Root:mre,Content:W4,Overlay:Y4,Trigger:eJ,Portal:vre,Close:rJ,Title:tJ,Description:nJ};function Z0({...e}){return v.jsx(No.Root,{"data-slot":"drawer",...e})}function Y0({...e}){return v.jsx(No.Trigger,{"data-slot":"drawer-trigger",...e})}function yre({...e}){return v.jsx(No.Portal,{"data-slot":"drawer-portal",...e})}function G4({...e}){return v.jsx(No.Close,{"data-slot":"drawer-close",...e})}function bre({className:e,...t}){return v.jsx(No.Overlay,{"data-slot":"drawer-overlay",className:ke("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 backdrop-blur-[4px]",e),...t})}const _re={sm:"max-w-[402px]",md:"max-w-[706px]"};function W0({className:e,children:t,size:n,showCloseButton:i=!0,...r}){return v.jsxs(yre,{"data-slot":"drawer-portal",children:[v.jsx(bre,{}),v.jsxs(No.Content,{"data-slot":"drawer-content","data-size":n,className:ke("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[90vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[90vh] data-[vaul-drawer-direction=bottom]:rounded-t-[10px] data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=bottom]:border-border","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",n&&_re[n],"data-[vaul-drawer-direction=bottom]:max-w-full data-[vaul-drawer-direction=top]:max-w-full",e),...r,children:[v.jsx("div",{className:"bg-muted mx-auto mt-2 hidden h-[5px] w-9 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),t,i&&v.jsxs(No.Close,{"data-slot":"drawer-close",className:ke("ring-offset-background focus:ring-ring absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:not-disabled:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",n==="sm"?"[&_svg:not([class*='size-'])]:size-4":"[&_svg:not([class*='size-'])]:size-6"),children:[v.jsx(SC,{}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Sre({className:e,...t}){return v.jsx("div",{"data-slot":"drawer-header",className:ke("flex flex-col gap-1.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center",e),...t})}function K4({className:e,...t}){return v.jsx("div",{"data-slot":"drawer-footer",className:ke("mt-auto flex flex-col gap-2 border-t border-border p-4",e),...t})}function G0({className:e,...t}){return v.jsx(No.Title,{"data-slot":"drawer-title",className:ke("text-lg leading-none font-semibold text-foreground",e),...t})}function K0({className:e,...t}){return v.jsx(No.Description,{"data-slot":"drawer-description",className:ke("text-muted-foreground text-sm",e),...t})}const wre=Fi("flex items-center w-full rounded-lg border border-input bg-background shadow-xs text-sm text-foreground file:border-0 file:bg-transparent file:px-1.5 file:py-1 file:mr-1 file:shrink-0 file:font-sans file:text-sm file:leading-5 file:font-medium file:text-foreground placeholder:text-muted-foreground outline-none transition-colors hover:bg-[color:color-mix(in_srgb,var(--color-background)_80%,var(--color-input)_20%)] focus-visible:border-ring focus-visible:shadow-none focus-visible:ring-ring-focus focus-visible:ring-[length:var(--ring-width)] focus-visible:overflow-clip read-only:cursor-default disabled:cursor-not-allowed disabled:text-muted-foreground disabled:opacity-[var(--disabled-opacity)] aria-invalid:border-destructive-border aria-invalid:text-destructive-foreground aria-invalid:hover:bg-destructive aria-invalid:focus-visible:border-destructive-border aria-invalid:focus-visible:ring-destructive-foreground
305/20 dark:aria-invalid:focus-visible:ring-destructive-foreground/40",{variants:{size:{sm:"h-8 px-3 py-1 text-sm max-md:text-base",default:"h-9 px-3 py-1 text-sm max-md:text-base",lg:"h-12 px-4 py-2.5 text-base"}},defaultVariants:{size:"default"}}),xre={email:"email",tel:"tel",url:"url",number:"numeric",search:"search"},p$=new Set(["email","url"]);function X0({className:e,type:t="text",size:n,ref:i,inputMode:r,autoComplete:a,autoCapitalize:l,autoCorrect:u,...f}){const m=r??xre[t]??void 0,h=a??void 0,g=l??(p$.has(t)?"off":void 0),b=u??(p$.has(t)?"off":void 0);return v.jsx("input",{type:t,"data-slot":"input","data-size":n??"default",className:ke(wre({size:n}),e),ref:i,inputMode:m,autoComplete:h,autoCapitalize:g,autoCorrect:b,...f})}function Q0({className:e,disabled:t,...n}){return v.jsx("div",{"data-slot":"input-group",role:"group","data-disabled":t||void 0,className:ke("group/input-group bg-background border-input relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none","h-9 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:shadow-none has-[[data-slot=input-group-control]:focus-visible]:ring-ring-focus has-[[data-slot=input-group-control]:focus-visible]:ring-(length:--ring-width) has-[[data-slot=input-group-control]:focus-visible]:overflow-clip","has-[[data-slot][aria-invalid=true]]:border-destructive-border has-[[data-slot][aria-invalid=true]]:has-[[data-slot=input-group-control]:focus-visible]:border-destructive-border has-[[data-slot][aria-invalid=true]]:has-[[data-slot=input-group-control]:focus-visible]:ring-destructive-foreground/20 dark:has-[[data-slot][aria-invalid=true]]:has-[[data-slot=input-group-control]:focus-visible]:ring-destructive-foreground/40","data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-[var(--disabled-opacity)]","group-data-[disabled=true]/field:cursor-not-allowed group-data-[disabled=true]/field:opacity-[var(--disabled-opacity)]",e),...n})}const Ere=Fi("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-sm group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5","block-end":"order-last w-full justify-start px-3 pt-1.5 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-1.5"}},defaultVariants:{align:"inline-start"}});function K_({className:e,align:t="inline-start",...n}){return v.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:ke(Ere({align:t}),e),onClick:i=>{var r,a;i.target.closest("button")||(a=(r=i.currentTarget.parentElement)==null?void 0:r.querySelector("input, textarea"))==null||a.focus()},...n})}const kre=Fi("text-sm shadow-none flex gap-2 items-center !cursor-default",{variants:{size:{xs:"h-6 gap-1 px-2 !rounded-sm [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",sm:"h-7 px-2 gap-1.5 !rounded-sm has-[>svg]:px-2","icon-xs":"size-6 !rounded-sm p-0 has-[>svg]:p-0","icon-sm":"size-7 !rounded-sm p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function Ore({className:e,type:t="button",variant:n="ghost",size:i="xs",...r}){return v.jsx(it,{type:t,"data-size":i,variant:n,className:ke(kre({size:i}),e),...r})}function J0({className:e,...t}){return v.jsx(X0,{"data-slot":"input-group-control",className:ke("h-auto flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0",e),...t})}function ex({...e}){return v.jsx(Pee,{"data-slot":"popover",...e})}function tx({...e}){return v.jsx(Uee,{"data-slot":"popover-trigger",...e})}function nx({className:e,align:t="center",sideOffset:n=4,...i}){return v.jsx(Lee,{children:v.jsx(Fee,{"data-slot":"popover-content",align:t,sideOffset:n,className:ke("bg-popover text-popover-foreground 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
305de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-80 origin-(--radix-popover-content-transform-origin) rounded-lg border p-4 shadow-md outline-hidden",e),...i})})}function Tre({...e}){return v.jsx(zee,{"data-slot":"popover-anchor",...e})}const Rre=Fi("motion-safe:animate-spin motion-reduce:animate-none",{variants:{size:{xs:"size-3",sm:"size-4",default:"size-5",lg:"size-6",xl:"size-8"}},defaultVariants:{size:"default"}});function g$({className:e,size:t,...n}){return v.jsx(of,{"data-slot":"spinner","data-size":t??"default",role:"status","aria-label":"Loading",className:ke(Rre({size:t}),e),...n})}const X4={sm:375,md:768,lg:1024};function $re(e){return Object.keys(X4).includes(e)}function Nre(e){return $re(e)?`(min-width: ${X4[e]}px)`:e}function Q4(e="md"){const[t,n]=k.useState(void 0);return k.useEffect(()=>{const i=Nre(e),r=window.matchMedia(i),a=l=>{n(l.matches)};return r.addEventListener("change",a),n(r.matches),()=>r.removeEventListener("change",a)},[e]),!!t}const X_=k.createContext({isDesktop:!0});function Sg(){return k.useContext(X_)}function Dre({isDesktop:e,children:t,...n}){const i=Q4(),r=e!==void 0?e:i,a=k.useMemo(()=>({isDesktop:r}),[r]);return r?v.jsx(X_.Provider,{value:a,children:v.jsx(ex,{"data-slot":"combobox",...n,children:t})}):v.jsx(X_.Provider,{value:a,children:v.jsx(Z0,{"data-slot":"combobox",handleOnly:!0,...n,children:t})})}const Cre="aria-invalid:border-destructive-border aria-invalid:hover:bg-destructive aria-invalid:hover:border-destructive-border aria-invalid:focus-visible:border-destructive aria-invalid:focus-visible:ring-[3px] aria-invalid:focus-visible:ring-destructive-foreground/20 dark:aria-invalid:focus-visible:ring-destructive-foreground/40";function Are({className:e,placeholder:t,children:n,id:i,"aria-invalid":r,"aria-describedby":a,"aria-required":l,disabled:u,...f}){return v.jsxs(it,{variant:"outline",role:"combobox",id:i,"data-slot":"combobox-trigger","aria-invalid":r,"aria-describedby":a,"aria-required":l,disabled:u,className:ke("w-full justify-between cursor-default bg-background",Cre,e),...f,children:[v.jsx("span",{className:ke("line-clamp-1 text-sm max-md:text-base font-normal",n?"text-foreground":"text-muted-foreground"),children:n||t}),v.jsx(Ap,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}function jre(e){const{isDesktop:t}=Sg(),n=t?tx:Y0;return v.jsx(n,{asChild:!0,children:v.jsx(Are,{...e})})}function Mre({className:e,children:t,search:n,onSearchChange:i,searchPlaceholder:r,emptyText:a,isEmpty:l,isLoading:u,title:f,side:m}){const{isDesktop:h}=Sg();return h?v.jsx(nx,{"data-slot":"combobox-content",className:ke("w-(--radix-popover-trigger-width) p-0",e),side:m,children:v.jsxs(Jc,{"data-slot":"combobox-command",className:"flex h-full max-h-48 w-full flex-col overflow-hidden",filter:()=>1,children:[v.jsx(Ire,{placeholder:r,value:n,onValueChange:g=>i==null?void 0:i(g)}),v.jsx(Pre,{children:u?v.jsx("div",{className:"flex items-center justify-center py-6",children:v.jsx(g$,{size:"xl",className:"text-muted-foreground"})}):v.jsxs(v.Fragment,{children:[l&&v.jsx(zre,{children:a}),t]})})]})}):v.jsxs(W0,{"data-slot":"combobox-content",className:"px-0 h-full flex flex-col gap-4",children:[v.jsxs(Sre,{className:"py-0",children:[v.jsx(G0,{className:"text-left text-lg font-semibold leading-4",children:f}),v.jsx(K0,{className:"sr-only",children:"Selecione uma opção"})]}),v.jsxs("div",{className:"h-full",children:[v.jsx("div",{className:"px-4 flex items-center gap-2",children:v.jsxs(Q0,{className:"flex-1",children:[v.jsx(_C,{className:"size-4 opacity-50 ml-3"}),v.jsx(J0,{placeholder:r,value:n,onChange:g=>i==null?void 0:i(g.target.value)}),n&&v.jsx("button",{type:"button",onClick:()=>i==null?void 0:i(""),className:"mr-3 flex items-center justify-center opacity-50 hover:opacity-100 transition-opacity","aria-label":"Limpar busca",children:v.jsx(SC,{className:"size-4"})})]})}),v.jsx("div",{className:"h-[calc(100%-100px)] flex flex-col",children:u?v.jsx("div",{className:"flex flex-1 items-center justify-center",children:v.jsx(g$,{size:"xl",className:"text-muted-foreground"})}):l?v.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:a}):v.jsx("div",{className:"flex-1 overflow-y-auto w-full py-8 px-4",children:t})})]})]})}function Ire({className:e,...t}){return v.jsxs("div",{"data-slot":"combobox-search",className:"flex items-center gap-2 border-b px-3 py-2.5",children:[v.jsx(_C,{className:"size-4 shrink-0 text-muted-foreground"}),v.jsx(Jc.Input,{"data-slot":"combobox-search-input",className:ke("placeholder:text-muted-foreground flex w-full bg-transparent text-sm max-md:text-base outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Pre({className:e,...t}){return v.jsx(Jc.List,{"data-slot":"combobox-list",className:ke("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function zre({className:e,...t}){return v.jsx(Jc.Empty,{"data-slot":"combobox-empty",className:ke("py-6 text-center text-sm text-muted-foreground",e),...t})}function v$({className:e,heading:t,children:n}){const{isDesktop:i}=Sg();return i?v.jsx(Jc.Group,{"data-slot":"combobox-group",heading:t,className:ke("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),children:n}):v.jsxs("div",{"data-slot":"combobox-group",className:ke("overflow-hidden p-1 text-foreground",e),children:[t&&v.jsx("span",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:t}),n]})}function Ure({className:e,children:t,selected:n,multiselect:i,avatar:r,value:a,keywords:l,disabled:u,onSelect:f,...m}){const{isDesktop:h}=Sg(),g=r&&(typeof r=="string"?v.jsx("img",{src:r,alt:"",className:"size-5 rounded-full object-cover"}):r);return h?v.jsxs(Jc.Item,{"data-slot":"combobox-item",value:a,keywords:l,disabled:u,onSelect:f,className:ke("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...m,children:[i&&v.jsx(cp,{checked:n,className:"pointer-events-none",tabIndex:-1}),g,v.jsx("span",{className:"flex-1 truncate",children:t}),!i&&v.jsx(Lh,{className:ke("ml-auto size-4",n?"opacity-100":"opacity-0")})]}):v.jsxs(it,{"data-slot":"combobox-item",variant:null,onClick:()=>a&&(f==null?void 0:f(a)),disabled:u,className:ke("w-full justify-between px-2 py-3 leading-5 h-11 rounded-sm text-md font-normal cursor-default hover:bg-[color:color-mix(in_srgb,var(--color-background)_80%,var(--color-accent)_20%)]",n&&"bg-accent",e),...m,children:[v.jsxs("span",{className:"flex items-center gap-2",children:[i&&v.jsx(cp,{checked:n,className:"pointer-events-none",tabIndex:-1}),g,v.jsx("span",{className:"flex-1 truncate",children:t})]}),!i&&v.jsx(Lh,{className:ke("mr-2 size-4",n?"opacity-100":"opacity-0")})]})}function J4(e){const{options:t=[],groups:n,placeholder:i="Selecione...",searchPlaceholder:r="Buscar...",emptyText:a="Nenhum resultado encontrado.",disabled:l,required:u,className:f,contentClassName:m,multiselect:h=!1,onBlur:g,onSearchChange:b,side:_="top",isLoading:S,isDesktop:w,id:x,"aria-invalid":E,"aria-describedby":O}=e,[R,$]=k.useState(!1),[N,M]=k.useState(""),C=k.useCallback(j=>{$(j),j||g==null||g()},[g]),I=j=>{M(j),b==null||b(j)},V=()=>{M(""),b==null||b("")},L=k.useMemo(()=>n?n.flatMap(j=>j.options):t,[t,n]),K=()=>
305{if(h){const B=e.value||[];if(B.length===0)return null;if(B.length===1){const fe=L.find(A=>A.value===B[0]);return fe==null?void 0:fe.label}return`${B.length} selected`}const j=e.value;if(!j)return null;const G=L.find(B=>B.value===j);return G==null?void 0:G.label},H=j=>{var G,B;if(h){const fe=e,A=fe.value||[],ne=A.includes(j)?A.filter(Z=>Z!==j):[...A,j];(G=fe.onValueChange)==null||G.call(fe,ne)}else{const fe=e;(B=fe.onValueChange)==null||B.call(fe,j===fe.value?"":j),C(!1)}V()},F=j=>h?(e.value||[]).includes(j):e.value===j,ae=j=>v.jsx(Ure,{value:j.value,keywords:[j.label],disabled:S||j.disabled,onSelect:H,selected:F(j.value),multiselect:h,avatar:j.avatar,children:j.label},j.value),ue=()=>n?n.map(j=>v.jsx(v$,{heading:j.label,children:j.options.map(ae)},j.label)):v.jsx(v$,{children:L.map(ae)});return v.jsxs(Dre,{open:R,onOpenChange:C,isDesktop:w,children:[v.jsx(jre,{id:x,placeholder:i,disabled:l,"aria-expanded":R,"aria-required":u,"aria-invalid":E,"aria-describedby":O,className:f,onBlur:g,children:K()}),v.jsx(Mre,{side:_,className:m,title:i,searchPlaceholder:r,emptyText:a,isEmpty:L.length===0,isLoading:S,search:N,onSearchChange:I,children:ue()})]})}J4.formFieldConfig={mapField:"radix-select"};var xf=e=>e.type==="checkbox",ds=e=>e instanceof Date,ur=e=>e==null;const e2=e=>typeof e=="object";var ln=e=>!ur(e)&&!Array.isArray(e)&&e2(e)&&!ds(e),t2=e=>ln(e)&&e.target?xf(e.target)?e.target.checked:e.target.value:e,Lre=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,n2=(e,t)=>e.has(Lre(t)),Fre=e=>{const t=e.constructor&&e.constructor.prototype;return ln(t)&&t.hasOwnProperty("isPrototypeOf")},rx=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function vn(e){let t;const n=Array.isArray(e),i=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(rx&&(e instanceof Blob||i))&&(n||ln(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!Fre(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=vn(e[r]));else return e;return t}var wg=e=>/^\w*$/.test(e),Yt=e=>e===void 0,ix=e=>Array.isArray(e)?e.filter(Boolean):[],ox=e=>ix(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Te=(e,t,n)=>{if(!t||!ln(e))return n;const i=(wg(t)?[t]:ox(t)).reduce((r,a)=>ur(r)?r:r[a],e);return Yt(i)||i===e?Yt(e[t])?n:e[t]:i},Er=e=>typeof e=="boolean",Tt=(e,t,n)=>{let i=-1;const r=wg(t)?[t]:ox(t),a=r.length,l=a-1;for(;++i<a;){const u=r[i];let f=n;if(i!==l){const m=e[u];f=ln(m)||Array.isArray(m)?m:isNaN(+r[i+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=f,e=e[u]}};const up={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ii={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},uo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},r2=Y.createContext(null);r2.displayName="HookFormContext";const ax=()=>Y.useContext(r2);var i2=(e,t,n,i=!0)=>{const r={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(r,a,{get:()=>{const l=a;return t._proxyFormState[l]!==ii.all&&(t._proxyFormState[l]=!i||ii.all),n&&(n[l]=!0),e[l]}});return r};const sx=typeof window<"u"?Y.useLayoutEffect:Y.useEffect;function o2(e){const t=ax(),{control:n=t.control,disabled:i,name:r,exact:a}=e||{},[l,u]=Y.useState(n._formState),f=Y.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return sx(()=>n._subscribe({name:r,formState:f.current,exact:a,callback:m=>{!i&&u({...n._formState,...m})}}),[r,i,a]),Y.useEffect(()=>{f.current.isValid&&n._setValid(!0)},[n]),Y.useMemo(()=>i2(l,n,f.current,!1),[l,n])}var Tr=e=>typeof e=="string",a2=(e,t,n,i,r)=>Tr(e)?(i&&t.watch.add(e),Te(n,e,r)):Array.isArray(e)?e.map(a=>(i&&t.watch.add(a),Te(n,a))):(i&&(t.watchAll=!0),n),Q_=e=>ur(e)||!e2(e);function vo(e,t,n=new WeakSet){if(Q_(e)||Q_(t))return e===t;if(ds(e)&&ds(t))return e.getTime()===t.getTime();const i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of i){const l=e[a];if(!r.includes(a))return!1;if(a!=="ref"){const u=t[a];if(ds(l)&&ds(u)||ln(l)&&ln(u)||Array.isArray(l)&&Array.isArray(u)?!vo(l,u,n):l!==u)return!1}}return!0}function s2(e){const t=ax(),{control:n=t.control,name:i,defaultValue:r,disabled:a,exact:l,compute:u}=e||{},f=Y.useRef(r),m=Y.useRef(u),h=Y.useRef(void 0);m.current=u;const g=Y.useMemo(()=>n._getWatch(i,f.current),[n,i]),[b,_]=Y.useState(m.current?m.current(g):g);return sx(()=>n._subscribe({name:i,formState:{values:!0},exact:l,callback:S=>{if(!a){const w=a2(i,n._names,S.values||n._formValues,!1,f.current);if(m.current){const x=m.current(w);vo(x,h.current)||(_(x),h.current=x)}else _(w)}}}),[n,a,i,l]),Y.useEffect(()=>n._removeUnmounted()),b}function Bre(e){const t=ax(),{name:n,disabled:i,control:r=t.control,shouldUnregister:a,defaultValue:l}=e,u=n2(r._names.array,n),f=Y.useMemo(()=>Te(r._formValues,n,Te(r._defaultValues,n,l)),[r,n,l]),m=s2({control:r,
305name:n,defaultValue:f,exact:!0}),h=o2({control:r,name:n,exact:!0}),g=Y.useRef(e),b=Y.useRef(void 0),_=Y.useRef(r.register(n,{...e.rules,value:m,...Er(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const S=Y.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Te(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!Te(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Te(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Te(h.validatingFields,n)},error:{enumerable:!0,get:()=>Te(h.errors,n)}}),[h,n]),w=Y.useCallback(R=>_.current.onChange({target:{value:t2(R),name:n},type:up.CHANGE}),[n]),x=Y.useCallback(()=>_.current.onBlur({target:{value:Te(r._formValues,n),name:n},type:up.BLUR}),[n,r._formValues]),E=Y.useCallback(R=>{const $=Te(r._fields,n);$&&R&&($._f.ref={focus:()=>R.focus&&R.focus(),select:()=>R.select&&R.select(),setCustomValidity:N=>R.setCustomValidity(N),reportValidity:()=>R.reportValidity()})},[r._fields,n]),O=Y.useMemo(()=>({name:n,value:m,...Er(i)||h.disabled?{disabled:h.disabled||i}:{},onChange:w,onBlur:x,ref:E}),[n,i,h.disabled,w,x,E,m]);return Y.useEffect(()=>{const R=r._options.shouldUnregister||a,$=b.current;$&&$!==n&&!u&&r.unregister($),r.register(n,{...g.current.rules,...Er(g.current.disabled)?{disabled:g.current.disabled}:{}});const N=(M,C)=>{const I=Te(r._fields,M);I&&I._f&&(I._f.mount=C)};if(N(n,!0),R){const M=vn(Te(r._options.defaultValues,n,g.current.defaultValue));Tt(r._defaultValues,n,M),Yt(Te(r._formValues,n))&&Tt(r._formValues,n,M)}return!u&&r.register(n),b.current=n,()=>{(u?R&&!r._state.action:R)?r.unregister(n):N(n,!1)}},[n,r,u,a]),Y.useEffect(()=>{r._setDisabledField({disabled:i,name:n})},[i,n,r]),Y.useMemo(()=>({field:O,formState:h,fieldState:S}),[O,h,S])}const Vre=e=>e.render(Bre(e));var lx=(e,t,n,i,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[i]:r||!0}}:{},xd=e=>Array.isArray(e)?e:[e],y$=()=>{let e=[];return{get observers(){return e},next:r=>{for(const a of e)a.next&&a.next(r)},subscribe:r=>(e.push(r),{unsubscribe:()=>{e=e.filter(a=>a!==r)}}),unsubscribe:()=>{e=[]}}};function l2(e,t){const n={};for(const i in e)if(e.hasOwnProperty(i)){const r=e[i],a=t[i];if(r&&ln(r)&&a){const l=l2(r,a);ln(l)&&(n[i]=l)}else e[i]&&(n[i]=a)}return n}var cr=e=>ln(e)&&!Object.keys(e).length,cx=e=>e.type==="file",oi=e=>typeof e=="function",dp=e=>{if(!rx)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},c2=e=>e.type==="select-multiple",ux=e=>e.type==="radio",Hre=e=>ux(e)||xf(e),Ob=e=>dp(e)&&e.isConnected;function qre(e,t){const n=t.slice(0,-1).length;let i=0;for(;i<n;)e=Yt(e)?i++:e[t[i++]];return e}function Zre(e){for(const t in e)if(e.hasOwnProperty(t)&&!Yt(e[t]))return!1;return!0}function an(e,t){const n=Array.isArray(t)?t:wg(t)?[t]:ox(t),i=n.length===1?e:qre(e,n),r=n.length-1,a=n[r];return i&&delete i[a],r!==0&&(ln(i)&&cr(i)||Array.isArray(i)&&Zre(i))&&an(e,n.slice(0,-1)),e}var Yre=e=>{for(const t in e)if(oi(e[t]))return!0;return!1};function u2(e){return Array.isArray(e)||ln(e)&&!Yre(e)}function J_(e,t={}){for(const n in e)u2(e[n])?(t[n]=Array.isArray(e[n])?[]:{},J_(e[n],t[n])):Yt(e[n])||(t[n]=!0);return t}function Xl(e,t,n){n||(n=J_(t));for(const i in e)u2(e[i])?Yt(t)||Q_(n[i])?n[i]=J_(e[i],Array.isArray(e[i])?[]:{}):Xl(e[i],ur(t)?{}:t[i],n[i]):n[i]=!vo(e[i],t[i]);return n}const b$={value:!1,isValid:!1},_$={value:!0,isValid:!0};var d2=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Yt(e[0].attributes.value)?Yt(e[0].value)||e[0].value===""?_$:{value:e[0].value,isValid:!0}:_$:b$}return b$},f2=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:i})=>Yt(e)?e:t?e===""?NaN:e&&+e:n&&Tr(e)?new Date(e):i?i(e):e;const S$={isValid:!1,value:null};var m2=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,S$):S$;function w$(e){const t=e.ref;return cx(t)?t.files:ux(t)?m2(e.refs).value:c2(t)?[...t.selectedOptions].map(({value:n})=>n):xf(t)?d2(e.refs).value:f2(Yt(t.value)?e.ref.value:t.value,e)}var Wre=(e,t,n,i)=>{const r={};for(const a of e){const l=Te(t,a);l&&Tt(r,a,l._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:i}},fp=e=>e instanceof RegExp,ld=e=>Yt(e)?e:fp(e)?e.source:ln(e)?fp(e.value)?e.value.source:e.value:e,x$=e=>({isOnSubmit:!e||e===ii.onSubmit,isOnBlur:e===ii.onBlur,isOnChange:e===ii.onChange,isOnAll:e===ii.all,isOnTouch:e===ii.onTouched});const E$="AsyncFunction";var Gre=e=>!!e&&!!e.validate&&!!(oi(e.validate)&&e.validate.constructor.name===E$||ln(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===E$)),Kre=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),k$=(e,t,n
vendor: 4,219 bytes, line 305
305)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const Ed=(e,t,n,i)=>{for(const r of n||Object.keys(e)){const a=Te(e,r);if(a){const{_f:l,...u}=a;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],r)&&!i)return!0;if(l.ref&&t(l.ref,l.name)&&!i)return!0;if(Ed(u,t))break}else if(ln(u)&&Ed(u,t))break}}};function O$(e,t,n){const i=Te(e,n);if(i||wg(n))return{error:i,name:n};const r=n.split(".");for(;r.length;){const a=r.join("."),l=Te(t,a),u=Te(e,a);if(l&&!Array.isArray(l)&&n!==a)return{name:n};if(u&&u.type)return{name:a,error:u};if(u&&u.root&&u.root.type)return{name:`${a}.root`,error:u.root};r.pop()}return{name:n}}var Xre=(e,t,n,i)=>{n(e);const{name:r,...a}=e;return cr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(l=>t[l]===(!i||ii.all))},Qre=(e,t,n)=>!e||!t||e===t||xd(e).some(i=>i&&(n?i===t:i.startsWith(t)||t.startsWith(i))),Jre=(e,t,n,i,r)=>r.isOnAll?!1:!n&&r.isOnTouch?!(t||e):(n?i.isOnBlur:r.isOnBlur)?!e:(n?i.isOnChange:r.isOnChange)?e:!0,eie=(e,t)=>!ix(Te(e,t)).length&&an(e,t),tie=(e,t,n)=>{const i=xd(Te(e,n));return Tt(i,"root",t[n]),Tt(e,n,i),e};function T$(e,t,n="validate"){if(Tr(e)||Array.isArray(e)&&e.every(Tr)||Er(e)&&!e)return{type:n,message:Tr(e)?e:"",ref:t}}var Zl=e=>ln(e)&&!fp(e)?e:{value:e,message:""},R$=async(e,t,n,i,r,a)=>{const{ref:l,refs:u,required:f,maxLength:m,minLength:h,min:g,max:b,pattern:_,validate:S,name:w,valueAsNumber:x,mount:E}=e._f,O=Te(n,w);if(!E||t.has(w))return{};const R=u?u[0]:l,$=H=>{r&&R.reportValidity&&(R.setCustomValidity(Er(H)?"":H||""),R.reportValidity())},N={},M=ux(l),C=xf(l),I=M||C,V=(x||cx(l))&&Yt(l.value)&&Yt(O)||dp(l)&&l.value===""||O===""||Array.isArray(O)&&!O.length,L=lx.bind(null,w,i,N),K=(H,F,ae,ue=uo.maxLength,j=uo.minLength)=>{const G=H?F:ae;N[w]={type:H?ue:j,message:G,ref:l,...L(H?ue:j,G)}};if(a?!Array.isArray(O)||!O.length:f&&(!I&&(V||ur(O))||Er(O)&&!O||C&&!d2(u).isValid||M&&!m2(u).isValid)){const{value:H,message:F}=Tr(f)?{value:!!f,message:f}:Zl(f);if(H&&(N[w]={type:uo.required,message:F,ref:R,...L(uo.required,F)},!i))return $(F),N}if(!V&&(!ur(g)||!ur(b))){let H,F;const ae=Zl(b),ue=Zl(g);if(!ur(O)&&!isNaN(O)){const j=l.valueAsNumber||O&&+O;ur(ae.value)||(H=j>ae.value),ur(ue.value)||(F=j<ue.value)}else{const j=l.valueAsDate||new Date(O),G=A=>new Date(new Date().toDateString()+" "+A),B=l.type=="time",fe=l.type=="week";Tr(ae.value)&&O&&(H=B?G(O)>G(ae.value):fe?O>ae.value:j>new Date(ae.value)),Tr(ue.value)&&O&&(F=B?G(O)<G(ue.value):fe?O<ue.value:j<new Date(ue.value))}if((H||F)&&(K(!!H,ae.message,ue.message,uo.max,uo.min),!i))return $(N[w].message),N}if((m||h)&&!V&&(Tr(O)||a&&Array.isArray(O))){const H=Zl(m),F=Zl(h),ae=!ur(H.value)&&O.length>+H.value,ue=!ur(F.value)&&O.length<+F.value;if((ae||ue)&&(K(ae,H.message,F.message),!i))return $(N[w].message),N}if(_&&!V&&Tr(O)){const{value:H,message:F}=Zl(_);if(fp(H)&&!O.match(H)&&(N[w]={type:uo.pattern,message:F,ref:l,...L(uo.pattern,F)},!i))return $(F),N}if(S){if(oi(S)){const H=await S(O,n),F=T$(H,R);if(F&&(N[w]={...F,...L(uo.validate,F.message)},!i))return $(F.message),N}else if(ln(S)){let H={};for(const F in S){if(!cr(H)&&!i)break;const ae=T$(await S[F](O,n),R,F);ae&&(H={...ae,...L(F,ae.message)},$(ae.message),i&&(N[w]=H))}if(!cr(H)&&(N[w]={ref:R,...H},!i))return N}}return $(!0),N};const nie={mode:ii.onSubmit,reValidateMode:ii.onChange,shouldFocusError:!0};function rie(e={}){let t={...nie,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:oi(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},i={},r=ln(t.defaultValues)||ln(t.values)?vn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:vn(r),l={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,m=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let g={...h};const b={array:y$(),state:y$()},_=t.criteriaMode===ii.all,S=P=>Q=>{clearTimeout(m),m=setTimeout(P,Q)},w=async P=>{if(!t.disabled&&(h.isValid||g.isValid||P)){const Q=t.resolver?cr((await C()).errors):await V(i,
vendor: 9,159 bytes, line 305
305!0);Q!==n.isValid&&b.state.next({isValid:Q})}},x=(P,Q)=>{!t.disabled&&(h.isValidating||h.validatingFields||g.isValidating||g.validatingFields)&&((P||Array.from(u.mount)).forEach(oe=>{oe&&(Q?Tt(n.validatingFields,oe,Q):an(n.validatingFields,oe))}),b.state.next({validatingFields:n.validatingFields,isValidating:!cr(n.validatingFields)}))},E=(P,Q=[],oe,he,ge=!0,ve=!0)=>{if(he&&oe&&!t.disabled){if(l.action=!0,ve&&Array.isArray(Te(i,P))){const Oe=oe(Te(i,P),he.argA,he.argB);ge&&Tt(i,P,Oe)}if(ve&&Array.isArray(Te(n.errors,P))){const Oe=oe(Te(n.errors,P),he.argA,he.argB);ge&&Tt(n.errors,P,Oe),eie(n.errors,P)}if((h.touchedFields||g.touchedFields)&&ve&&Array.isArray(Te(n.touchedFields,P))){const Oe=oe(Te(n.touchedFields,P),he.argA,he.argB);ge&&Tt(n.touchedFields,P,Oe)}(h.dirtyFields||g.dirtyFields)&&(n.dirtyFields=Xl(r,a)),b.state.next({name:P,isDirty:K(P,Q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Tt(a,P,Q)},O=(P,Q)=>{Tt(n.errors,P,Q),b.state.next({errors:n.errors})},R=P=>{n.errors=P,b.state.next({errors:n.errors,isValid:!1})},$=(P,Q,oe,he)=>{const ge=Te(i,P);if(ge){const ve=Te(a,P,Yt(oe)?Te(r,P):oe);Yt(ve)||he&&he.defaultChecked||Q?Tt(a,P,Q?ve:w$(ge._f)):ae(P,ve),l.mount&&w()}},N=(P,Q,oe,he,ge)=>{let ve=!1,Oe=!1;const Be={name:P};if(!t.disabled){if(!oe||he){(h.isDirty||g.isDirty)&&(Oe=n.isDirty,n.isDirty=Be.isDirty=K(),ve=Oe!==Be.isDirty);const Xe=vo(Te(r,P),Q);Oe=!!Te(n.dirtyFields,P),Xe?an(n.dirtyFields,P):Tt(n.dirtyFields,P,!0),Be.dirtyFields=n.dirtyFields,ve=ve||(h.dirtyFields||g.dirtyFields)&&Oe!==!Xe}if(oe){const Xe=Te(n.touchedFields,P);Xe||(Tt(n.touchedFields,P,oe),Be.touchedFields=n.touchedFields,ve=ve||(h.touchedFields||g.touchedFields)&&Xe!==oe)}ve&&ge&&b.state.next(Be)}return ve?Be:{}},M=(P,Q,oe,he)=>{const ge=Te(n.errors,P),ve=(h.isValid||g.isValid)&&Er(Q)&&n.isValid!==Q;if(t.delayError&&oe?(f=S(()=>O(P,oe)),f(t.delayError)):(clearTimeout(m),f=null,oe?Tt(n.errors,P,oe):an(n.errors,P)),(oe?!vo(ge,oe):ge)||!cr(he)||ve){const Oe={...he,...ve&&Er(Q)?{isValid:Q}:{},errors:n.errors,name:P};n={...n,...Oe},b.state.next(Oe)}},C=async P=>{x(P,!0);const Q=await t.resolver(a,t.context,Wre(P||u.mount,i,t.criteriaMode,t.shouldUseNativeValidation));return x(P),Q},I=async P=>{const{errors:Q}=await C(P);if(P)for(const oe of P){const he=Te(Q,oe);he?Tt(n.errors,oe,he):an(n.errors,oe)}else n.errors=Q;return Q},V=async(P,Q,oe={valid:!0})=>{for(const he in P){const ge=P[he];if(ge){const{_f:ve,...Oe}=ge;if(ve){const Be=u.array.has(ve.name),Xe=ge._f&&Gre(ge._f);Xe&&h.validatingFields&&x([ve.name],!0);const vt=await R$(ge,u.disabled,a,_,t.shouldUseNativeValidation&&!Q,Be);if(Xe&&h.validatingFields&&x([ve.name]),vt[ve.name]&&(oe.valid=!1,Q))break;!Q&&(Te(vt,ve.name)?Be?tie(n.errors,vt,ve.name):Tt(n.errors,ve.name,vt[ve.name]):an(n.errors,ve.name))}!cr(Oe)&&await V(Oe,Q,oe)}}return oe.valid},L=()=>{for(const P of u.unMount){const Q=Te(i,P);Q&&(Q._f.refs?Q._f.refs.every(oe=>!Ob(oe)):!Ob(Q._f.ref))&&ce(P)}u.unMount=new Set},K=(P,Q)=>!t.disabled&&(P&&Q&&Tt(a,P,Q),!vo(A(),r)),H=(P,Q,oe)=>a2(P,u,{...l.mount?a:Yt(Q)?r:Tr(P)?{[P]:Q}:Q},oe,Q),F=P=>ix(Te(l.mount?a:r,P,t.shouldUnregister?Te(r,P,[]):[])),ae=(P,Q,oe={})=>{const he=Te(i,P);let ge=Q;if(he){const ve=he._f;ve&&(!ve.disabled&&Tt(a,P,f2(Q,ve)),ge=dp(ve.ref)&&ur(Q)?"":Q,c2(ve.ref)?[...ve.ref.options].forEach(Oe=>Oe.selected=ge.includes(Oe.value)):ve.refs?xf(ve.ref)?ve.refs.forEach(Oe=>{(!Oe.defaultChecked||!Oe.disabled)&&(Array.isArray(ge)?Oe.checked=!!ge.find(Be=>Be===Oe.value):Oe.checked=ge===Oe.value||!!ge)}):ve.refs.forEach(Oe=>Oe.checked=Oe.value===ge):cx(ve.ref)?ve.ref.value="":(ve.ref.value=ge,ve.ref.type||b.state.next({name:P,values:vn(a)})))}(oe.shouldDirty||oe.shouldTouch)&&N(P,ge,oe.shouldTouch,oe.shouldDirty,!0),oe.shouldValidate&&fe(P)},ue=(P,Q,oe)=>{for(const he in Q){if(!Q.hasOwnProperty(he))return;const ge=Q[he],ve=P+"."+he,Oe=Te(i,ve);(u.array.has(P)||ln(ge)||Oe&&!Oe._f)&&!ds(ge)?ue(ve,ge,oe):ae(ve,ge,oe)}},j=(P,Q,oe={})=>{const he=Te(i,P),ge=u.array.has(P),ve=vn(Q);Tt(a,P,ve),ge?(b.array.next({name:P,values:vn(a)}),(h.isDirty||h.dirtyFields||g.isDirty||g.dirtyFields)&&oe.shouldDirty&&b.state.next({name:P,dirtyFields:Xl(r,a),isDirty:K(P,ve)})):he&&!he._f&&!ur(ve)?ue(P,ve,oe):ae(P,ve,oe),k$(P,u)&&b.state.next({...n,name:P}),b.state.next({name:l.mount?P:void 0,values:vn(a)})},G=async P=>{l.mount=!0;const Q=P.target;let oe=Q.name,he=!0;const ge=Te(i,oe),ve=Xe=>{he=Number.isNaN(Xe)||ds(Xe)&&isNaN(Xe.getTime())||vo(Xe,Te(a,oe,Xe))},Oe=x$(t.mode),Be=x$(t.reValidateMode);if(ge){let Xe,vt;const mr=Q.type?w$(ge._f):t2(P),jn=P.type===up.BLUR||P.type===up.FOCUS_OUT,hr=!Kre(ge._f)&&!t.resolver&&!Te(n.errors,oe)&&!ge._f.deps||Jre(jn,Te(n.touchedFields,oe),n.isSubmitted,Be,Oe),Xt=k$(oe,u,jn);Tt(a,oe,mr),jn?(!Q||!Q.readOnly)&&(ge._f.onBlur&&ge._f.onBlur(P),f&&f(0)):ge._f.onChange&&ge._f.onChange(P);const Mn=N(oe,mr,jn),Bn=!cr(Mn)||Xt;if(!jn&&b.state.next({name:oe,type:P.type,values:vn(a)}),hr)return(h.isValid||g.isValid)&&(t.mode==="onBlur"?jn&&w():jn||w()),Bn&&b.state.next({name:oe,...Xt?{}:Mn});if(!jn&&Xt&&b.state.next({...n}),t.resolver){const{errors:jr}=await C([oe]);if(ve(mr),he){const Kr=O$(n.errors,i,oe),Zi=O$(jr,i,Kr.name||oe);Xe=Zi.error,oe=Zi.name,vt=cr(jr)}}else x([oe],!0),Xe=(await R$(ge,u.disabled,a,_,t.shouldUseNativeValidation))[oe],x([oe]),ve(mr),he&&(Xe?vt=!1:(h.isValid||g.isValid)&&(vt=await V(i,!0)));he&&(ge._f.deps&&(!Array.isArray(ge._f.deps)||ge._f.deps.length>0)&&fe(ge._f.deps),M(oe,vt,Xe,Mn))}},B=(P,Q)=>{if(Te(n.errors,Q)&&P.focus)return P.focus(),1},fe=async(P,Q={})=>{let oe,he;const ge=xd(P);if(t.resolver){const ve=await I(Yt(P)?P:ge);oe=cr(ve),he=P?!ge.some(Oe=>Te(ve,Oe)):oe}else P?(he=(await Promise.all(ge.map(async ve=>{const Oe=Te(i,ve);return await V(Oe&&Oe._f?{[ve]:Oe}:Oe)}))).every(Boolean),!(!he&&!n.isValid)&&w()):he=oe=await V(i);return b.state.next({...!Tr(P)||(h.isValid||g.isValid)&&oe!==n.isValid?{}:{name:P},...t.resolver||!P?{isValid:oe}:{},errors:n.errors}),Q.shouldFocus&&!he&&Ed(i,B,P?ge:u.mount),he},A=(P,Q)=>{let oe={...l.mount?a:r};return Q&&(oe=l2(Q.dirtyFields?n.dirtyFields:n.touchedFields,oe)),Yt(P)?oe:Tr(P)?Te(oe,P):P.map(he=>Te(oe,he))},ne=(P,Q)=>({invalid:!!Te((Q||n).errors,P),isDirty:!!Te((Q||n).dirtyFields,P),error:Te((Q||n).errors,P),isValidating:!!Te(n.validatingFields,P),isTouched:!!Te((Q||n).touchedFields,P)}),Z=P=>{P&&xd(P).forEach(Q=>an(n.errors,Q)),b.state.next({errors:P?n.errors:{}})},X=(P,Q,oe)=>{const he=(Te(i,P,{_f:{}})._f||{}).ref,ge=Te(n.errors,P)||{},{ref:ve,message:Oe,type:Be,...Xe}=ge;Tt(n.errors,P,{...Xe,...Q,ref:he}),b.state.next({name:P,errors:n.errors,isValid:!1}),oe&&oe.shouldFocus&&he&&he.focus&&he.focus()},le=(P,Q)=>oi(P)?b.state.subscribe({next:oe=>"values"in oe&&P(H(void 0,Q),oe)}):H(P,Q,!0),me=P=>b.state.subscribe({next:Q=>{Qre(P.name,Q.name,P.exact)&&Xre(Q,P.formState||h,st,P.reRenderRoot)&&P.callback({values:{...a},...n,...Q,defaultValues:r})}}).unsubscribe,be=P=>(l.mount=!0,g={...g,...P.formState},me({...P,formState:g})),ce=(P,Q={})=>{for(const oe of P?xd(P):u.mount)u.mount.delete(oe),u.array.delete(oe),Q.keepValue||(an(i,oe),an(a,oe)),!Q.keepError&&an(n.errors,oe),!Q.keepDirty&&an(n.dirtyFields,oe),!Q.keepTouched&&an(n.touchedFields,oe),!Q.keepIsValidating&&an(n.validatingFields,oe),!t.shouldUnregister&&!Q.keepDefaultValue&&an(r,oe);b.state.next({values:vn(a)}),b.state.next({...n,...Q.keepDirty?{isDirty:K()}:{}}),!Q.keepIsValid&&w()},Ee=({disabled:P,name:Q})=>{(Er(P)&&l.mount||P||u.disabled.has(Q))&&(P?u.disabled.add(Q):u.disabled.delete(Q))},Ne=(P,Q={})=>{let oe=Te(i,P);const he=Er(Q.disabled)||Er(t.disabled);return Tt(i,P,{...oe||{},_f:{...oe&&oe._f?oe._f:{ref:{name:P}},name:P,mount:!0,...Q}}),u.mount.add(P),oe?Ee({disabled:Er(Q.disabled)?Q.disabled:t.disabled,name:P}):$(P,!0,Q.value),{...he?{disabled:Q.disabled||t.disabled}:{},...t.progressive?{required:!!Q.required,min:ld(Q.min),max:ld(Q.max),minLength:ld(Q.minLength),maxLength:ld(Q.maxLength),pattern:ld(Q.pattern)}:{},name:P,onChange:G,onBlur:G,ref:ge=>{if(ge){Ne(P,Q),oe=Te(i,P);const ve=Yt(ge.value)&&ge.querySelectorAll&&ge.querySelectorAll("input,select,textarea")[0]||ge,Oe=Hre(ve),Be=oe._f.refs||[];if(Oe?Be.find(Xe=>Xe===ve):ve===oe._f.ref)return;Tt(i,P,{_f:{...oe._f,...Oe?{refs:[...Be.filter(Ob),ve,...Array.isArray(Te(r,P))?[{}]:[]],ref:{type:ve.type,name:P}}:{ref:ve}}}),$(P,!1,void 0,ve)}else oe=Te(i,P,{}),oe._f&&(oe._f.mount=!1),(t.shouldUnregister||Q.shouldUnregister)&&!(n2(u.array,P)&&l.action)&&u.unMount.add(P)}}},Ie=()=>t.shouldFocusError&&Ed(i,B,u.mount),Ve=P=>{Er(P)&&(b.state.next({disabled:P}),Ed(i,(Q,oe)=>{const he=Te(i,oe);he&&(Q.disabled=he._f.disabled||P,Array.isArray(he._f.refs)&&he._f.refs.forEach(ge=>{ge.disabled=he._f.disabled||P}))},0,!1))},Pe=(P,Q)=>async oe=>{let he;oe&&(oe.preventDefault&&oe.preventDefault(),oe.persist&&oe.persist());let ge=vn(a);if(b.state.next({isSubmitting:!0}),t.resolver){const{errors:ve,values:Oe}=await C();n.errors=ve,ge=vn(Oe)}else await V(i);if(u.disabled.size)for(const ve of u.disabled)an(ge,ve);if(an(n.errors,"root"),cr(n.errors)){b.state.next({errors:{}});try{await P(ge,oe)}catch(ve){he=ve}}else Q&&await Q({...n.errors},oe),Ie(),setTimeout(Ie);
305if(b.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:cr(n.errors)&&!he,submitCount:n.submitCount+1,errors:n.errors}),he)throw he},$t=(P,Q={})=>{Te(i,P)&&(Yt(Q.defaultValue)?j(P,vn(Te(r,P))):(j(P,Q.defaultValue),Tt(r,P,vn(Q.defaultValue))),Q.keepTouched||an(n.touchedFields,P),Q.keepDirty||(an(n.dirtyFields,P),n.isDirty=Q.defaultValue?K(P,vn(Te(r,P))):K()),Q.keepError||(an(n.errors,P),h.isValid&&w()),b.state.next({...n}))},_e=(P,Q={})=>{const oe=P?vn(P):r,he=vn(oe),ge=cr(P),ve=ge?r:he;if(Q.keepDefaultValues||(r=oe),!Q.keepValues){if(Q.keepDirtyValues){const Oe=new Set([...u.mount,...Object.keys(Xl(r,a))]);for(const Be of Array.from(Oe))Te(n.dirtyFields,Be)?Tt(ve,Be,Te(a,Be)):j(Be,Te(ve,Be))}else{if(rx&&Yt(P))for(const Oe of u.mount){const Be=Te(i,Oe);if(Be&&Be._f){const Xe=Array.isArray(Be._f.refs)?Be._f.refs[0]:Be._f.ref;if(dp(Xe)){const vt=Xe.closest("form");if(vt){vt.reset();break}}}}if(Q.keepFieldsRef)for(const Oe of u.mount)j(Oe,Te(ve,Oe));else i={}}a=t.shouldUnregister?Q.keepDefaultValues?vn(r):{}:vn(ve),b.array.next({values:{...ve}}),b.state.next({values:{...ve}})}u={mount:Q.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!h.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,l.watch=!!t.shouldUnregister,b.state.next({submitCount:Q.keepSubmitCount?n.submitCount:0,isDirty:ge?!1:Q.keepDirty?n.isDirty:!!(Q.keepDefaultValues&&!vo(P,r)),isSubmitted:Q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ge?{}:Q.keepDirtyValues?Q.keepDefaultValues&&a?Xl(r,a):n.dirtyFields:Q.keepDefaultValues&&P?Xl(r,P):Q.keepDirty?n.dirtyFields:{},touchedFields:Q.keepTouched?n.touchedFields:{},errors:Q.keepErrors?n.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:r})},Me=(P,Q)=>_e(oi(P)?P(a):P,Q),yt=(P,Q={})=>{const oe=Te(i,P),he=oe&&oe._f;if(he){const ge=he.refs?he.refs[0]:he.ref;ge.focus&&(ge.focus(),Q.shouldSelect&&oi(ge.select)&&ge.select())}},st=P=>{n={...n,...P}},et={control:{register:Ne,unregister:ce,getFieldState:ne,handleSubmit:Pe,setError:X,_subscribe:me,_runSchema:C,_focusError:Ie,_getWatch:H,_getDirty:K,_setValid:w,_setFieldArray:E,_setDisabledField:Ee,_setErrors:R,_getFieldArray:F,_reset:_e,_resetDefaultValues:()=>oi(t.defaultValues)&&t.defaultValues().then(P=>{Me(P,t.resetOptions),b.state.next({isLoading:!1})}),_removeUnmounted:L,_disableForm:Ve,_subjects:b,_proxyFormState:h,get _fields(){return i},get _formValues(){return a},get _state(){return l},set _state(P){l=P},get _defaultValues(){return r},get _names(){return u},set _names(P){u=P},get _formState(){return n},get _options(){return t},set _options(P){t={...t,...P}}},subscribe:be,trigger:fe,register:Ne,handleSubmit:Pe,watch:le,setValue:j,getValues:A,reset:Me,resetField:$t,clearErrors:Z,unregister:ce,setError:X,setFocus:yt,getFieldState:ne};return{...et,formControl:et}}function jo(e={}){const t=Y.useRef(void 0),n=Y.useRef(void 0),[i,r]=Y.useState({isDirty:!1,isValidating:!1,isLoading:oi(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:oi(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!oi(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...u}=rie(e);t.current={...u,formState:i}}const a=t.current.control;return a._options=e,sx(()=>{const l=a._subscribe({formState:a._proxyFormState,callback:()=>r({...a._formState}),reRenderRoot:!0});return r(u=>({...u,isReady:!0})),a._formState.isReady=!0,l},[a]),Y.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),Y.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),Y.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),Y.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),Y.useEffect(()=>{if(a._proxyFormState.isDirty){const l=a._getDirty();l!==i.isDirty&&a._subjects.state.next({isDirty:l})}},[a,i.isDirty]),Y.useEffect(()=>{e.values&&!vo(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),n.current=e.values,r(l=>({...l}))):a._resetDefaultValues()},[a,e.values]),Y.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=i2(i,a),t.current}const h2=k.createContext(null);function xg(){const e=k.use(h2);return e||{id:"",name:"",hasError:!1,errorId:"",descriptionId:"",disabled:!1,required:!1}}const iie=Fi("group/field flex w-full gap-2 data-[invalid=true]:text-destructive-foreground",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function oie({className:e,orientation:t="vertical",error:n,name:i,disabled:r=!1,required:a=!1,...l}){const u=k.useId(),f=n!=null&&n!==""&&n.length>0,m=k.useMemo(()=>({id:u,name:i??"",hasError:f,errorId:`${u}-error`,descriptionId:`${u}-description`,disabled:r,required:a,error:f?n:void 0}),[u,i,f,n,r,a]);return v.jsx(h2,{value:m,children:v.jsx("div",{role:"group","data-slot":"field","data-orientation":t,"data-invalid":f||void 0,"data-disabled":r||void 0,className:ke(iie({orientation:t}),e),...l})})}function aie({className:e,htmlFor:t,children:n,...i}){const r=xg(),a=t??(r.id||void 0);return v.jsxs($4,{"data-slot":"field-label",htmlFor:a,className:ke("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 group-data-[disabled=true]/field:cursor-not-allowed","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...i,children:[n,r.required&&v.jsx("span",{"aria-hidden":"true",className:"-ml-1.5",children:"*"})]})}const sie=Fi("text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5 [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",{variants:{state:{default:"text-muted-foreground",success:"text-success-foreground",warning:"text-warning-foreground",error:"text-destructive-foreground"}},defaultVariants:{state:"default"}});function lie({className:e,state:t="default",id:n,...i}){const r=xg(),a=n??(r.descriptionId||void 0);return v.jsx("p",{id:a,"data-slot":"field-description","data-state":t,className:ke(sie({state:t}),e),...i})}function cie({className:e,children:t,errors:n,id:i,...r}){const a=xg(),l=i??(a.errorId||void 0),u=k.useMemo(()=>{var m;if(t)return t;if(!(n!=null&&n.length)&&a.error){const h=Array.isArray(a.error)?a.error:[a.error];return h.length===1?h[0]:v.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:h.map(g=>v.jsx("li",{children:g},g))})}if(!(n!=null&&n.length))return null;const f=[...new Map(n.map(h=>[h==null?void 0:h.message,h])).values()];return(f==null?void 0:f.length)===1?(m=f[0])==null?void 0:m.message:v.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:f.map((h,g)=>(h==null?void 0:h.message)&&v.jsx("li",{children:h.message},g))})},[t,n,a.error]);return u?v.jsx("div",{id:l,role:"alert","aria-live":"polite","data-slot":"field-error",className:ke("text-destructive-foreground text-sm font-normal",e),...r,children:u}):null}function uie({children:e}){const t=xg(),n={};return t.id&&(n.id=t.id),t.disabled&&(n.disabled=!0),t.required&&(n.required=!0),t.hasError&&(n["aria-invalid"]=!0),t.hasError&&t.errorId&&(n["aria-describedby"]=t.errorId),k.cloneElement(e,{...n,...e.props})}const $$=(e,t,n)=>{if(e&&"reportValidity"in e){const i=Te(n,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},eS=(e,t)=>{for(const n in t.fields){const i=t.fields[n];
305i&&i.ref&&"reportValidity"in i.ref?$$(i.ref,n,e):i&&i.refs&&i.refs.forEach(r=>$$(r,n,e))}},N$=(e,t)=>{t.shouldUseNativeValidation&&eS(e,t);const n={};for(const i in e){const r=Te(t.fields,i),a=Object.assign(e[i]||{},{ref:r&&r.ref});if(die(t.names||Object.keys(e),i)){const l=Object.assign({},Te(n,i));Tt(l,"root",a),Tt(n,i,l)}else Tt(n,i,a)}return n},die=(e,t)=>{const n=D$(t);return e.some(i=>D$(i).match(`^${n}\\.\\d+`))};function D$(e){return e.replace(/\]|\[/g,"")}function C$(e,t){try{var n=e()}catch(i){return t(i)}return n&&n.then?n.then(void 0,t):n}function fie(e,t){for(var n={};e.length;){var i=e[0],r=i.code,a=i.message,l=i.path.join(".");if(!n[l])if("unionErrors"in i){var u=i.unionErrors[0].errors[0];n[l]={message:u.message,type:u.code}}else n[l]={message:a,type:r};if("unionErrors"in i&&i.unionErrors.forEach(function(h){return h.errors.forEach(function(g){return e.push(g)})}),t){var f=n[l].types,m=f&&f[i.code];n[l]=lx(l,t,n,r,m?[].concat(m,i.message):i.message)}e.shift()}return n}function mie(e,t){for(var n={};e.length;){var i=e[0],r=i.code,a=i.message,l=i.path.join(".");if(!n[l])if(i.code==="invalid_union"&&i.errors.length>0){var u=i.errors[0][0];n[l]={message:u.message,type:u.code}}else n[l]={message:a,type:r};if(i.code==="invalid_union"&&i.errors.forEach(function(h){return h.forEach(function(g){return e.push(g)})}),t){var f=n[l].types,m=f&&f[i.code];n[l]=lx(l,t,n,r,m?[].concat(m,i.message):i.message)}e.shift()}return n}function Mo(e,t,n){if(n===void 0&&(n={}),function(i){return"_def"in i&&typeof i._def=="object"&&"typeName"in i._def}(e))return function(i,r,a){try{return Promise.resolve(C$(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](i,t)).then(function(l){return a.shouldUseNativeValidation&&eS({},a),{errors:{},values:n.raw?Object.assign({},i):l}})},function(l){if(function(u){return Array.isArray(u==null?void 0:u.issues)}(l))return{values:{},errors:N$(fie(l.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw l}))}catch(l){return Promise.reject(l)}};if(function(i){return"_zod"in i&&typeof i._zod=="object"}(e))return function(i,r,a){try{return Promise.resolve(C$(function(){return Promise.resolve((n.mode==="sync"?Zh:Yh)(e,i,t)).then(function(l){return a.shouldUseNativeValidation&&eS({},a),{errors:{},values:n.raw?Object.assign({},i):l}})},function(l){if(function(u){return u instanceof Up}(l))return{values:{},errors:N$(mie(l.issues,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}const p2=k.createContext(null);function Io({control:e,children:t}){return v.jsx(p2.Provider,{value:e,children:t})}const A$={default:e=>({value:e.value??"",onChange:e.onChange,onBlur:e.onBlur,ref:e.ref,name:e.name}),"radix-checkbox":e=>({checked:e.value??!1,onCheckedChange:e.onChange,onBlur:e.onBlur,ref:e.ref,name:e.name}),"radix-select":e=>({value:e.value??"",onValueChange:e.onChange,name:e.name}),"radix-slider":e=>({value:Array.isArray(e.value)?e.value:[e.value??0],onValueChange:t=>e.onChange(t),onBlur:e.onBlur,ref:e.ref,name:e.name}),"date-picker":e=>({value:e.value??void 0,onValueChange:e.onChange,ref:e.ref,name:e.name}),"input-otp":e=>({value:e.value??"",onChange:e.onChange,onBlur:e.onBlur,ref:e.ref,name:e.name})};function dx(e){return typeof e=="object"&&e!==null&&"target"in e}function hie(e){return typeof e=="string"||!e?e:dx(e)&&e.target&&"value"in e.target?String(e.target.value):String(e)}function pie(e,t){return dx(e)&&e.target&&"value"in e.target?(e.target.value=t,e):t}function za(e,t){const n=e.formFieldConfig,i=(n==null?void 0:n.mapField)??"default",r=(n==null?void 0:n.labelPlacement)??"field",a=()=>typeof i=="function"?i:A$[i]??A$.default;function l({control:u,name:f,label:m,description:h,descriptionState:g,className:b,orientation:_,required:S,valueFormatter:w,onChange:x,onBlur:E,onFocus:O,...R}){const $=a(),N=k.use(p2),M=u??N;if(!M)throw new Error(`${l.displayName}: missing "control" prop. Either pass control explicitly or wrap your form in <FormProvider>.`);return v.jsx(Vre,{control:M,name:f,render:({field:C,fieldState:I})=>{var H;const V={name:C.name,value:C.value,error:I.error?{message:I.error.message}:void 0,invalid:I.invalid,isDirty:I.isDirty,isTouched:I.isTouched},L=$({...C,onBlur:F=>{C.onBlur(),E==null||E(F,V)},onChange:F=>
305{if(typeof F=="string"||dx(F)){const ae=hie(F),ue=w?w(ae):ae,j=pie(F,ue);x==null||x(j,V),C.onChange(j);return}x==null||x(F,V),C.onChange(F)}});O&&(L.onFocus=O);const K=r==="component"?{...m!=null?{label:m}:{},...h!=null?{description:h}:{}}:{};return v.jsxs(oie,{name:f,error:(H=I.error)==null?void 0:H.message,orientation:_,className:b,required:S,children:[m&&r==="field"&&v.jsx(aie,{children:m}),h&&r==="field"&&v.jsx(lie,{state:g,children:h}),v.jsx(uie,{children:v.jsx(e,{...L,...K,...R})}),v.jsx(cie,{})]})}})}return l.displayName=`RHFField(${e.displayName??e.name??"Component"})`,l}var gie=Object.defineProperty,vie=Object.defineProperties,yie=Object.getOwnPropertyDescriptors,mp=Object.getOwnPropertySymbols,g2=Object.prototype.hasOwnProperty,v2=Object.prototype.propertyIsEnumerable,j$=(e,t,n)=>t in e?gie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bie=(e,t)=>{for(var n in t||(t={}))g2.call(t,n)&&j$(e,n,t[n]);if(mp)for(var n of mp(t))v2.call(t,n)&&j$(e,n,t[n]);return e},_ie=(e,t)=>vie(e,yie(t)),Sie=(e,t)=>{var n={};for(var i in e)g2.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&mp)for(var i of mp(e))t.indexOf(i)<0&&v2.call(e,i)&&(n[i]=e[i]);return n};function wie(e){let t=setTimeout(e,0),n=setTimeout(e,10),i=setTimeout(e,50);return[t,n,i]}function xie(e){let t=k.useRef();return k.useEffect(()=>{t.current=e}),t.current}var Eie=18,y2=40,kie=`${y2}px`,Oie=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function Tie({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:i}){let[r,a]=k.useState(!1),[l,u]=k.useState(!1),[f,m]=k.useState(!1),h=k.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&r&&l,[r,l,n]),g=k.useCallback(()=>{let b=e.current,_=t.current;if(!b||!_||f||n==="none")return;let S=b,w=S.getBoundingClientRect().left+S.offsetWidth,x=S.getBoundingClientRect().top+S.offsetHeight/2,E=w-Eie,O=x;document.querySelectorAll(Oie).length===0&&document.elementFromPoint(E,O)===b||(a(!0),m(!0))},[e,t,f,n]);return k.useEffect(()=>{let b=e.current;if(!b||n==="none")return;function _(){let w=window.innerWidth-b.getBoundingClientRect().right;u(w>=y2)}_();let S=setInterval(_,1e3);return()=>{clearInterval(S)}},[e,n]),k.useEffect(()=>{let b=i||document.activeElement===t.current;if(n==="none"||!b)return;let _=setTimeout(g,0),S=setTimeout(g,2e3),w=setTimeout(g,5e3),x=setTimeout(()=>{m(!0)},6e3);return()=>{clearTimeout(_),clearTimeout(S),clearTimeout(w),clearTimeout(x)}},[t,i,n,g]),{hasPWMBadge:r,willPushPWMBadge:h,PWM_BADGE_SPACE_WIDTH:kie}}var b2=k.createContext({}),_2=k.forwardRef((e,t)=>{var n=e,{value:i,onChange:r,maxLength:a,textAlign:l="left",pattern:u,placeholder:f,inputMode:m="numeric",onComplete:h,pushPasswordManagerStrategy:g="increase-width",pasteTransformer:b,containerClassName:_,noScriptCSSFallback:S=Rie,render:w,children:x}=n,E=Sie(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),O,R,$,N,M;let[C,I]=k.useState(typeof E.defaultValue=="string"?E.defaultValue:""),V=i??C,L=xie(V),K=k.useCallback(_e=>{r==null||r(_e),I(_e)},[r]),H=k.useMemo(()=>u?typeof u=="string"?new RegExp(u):u:null,[u]),F=k.useRef(null),ae=k.useRef(null),ue=k.useRef({value:V,onChange:K,isIOS:typeof window<"u"&&((R=(O=window==null?void 0:window.CSS)==null?void 0:O.supports)==null?void 0:R.call(O,"-webkit-touch-callout","none"))}),j=k.useRef({prev:[($=F.current)==null?void 0:$.selectionStart,(N=F.current)==null?void 0:N.selectionEnd,(M=F.current)==null?void 0:M.selectionDirection]});k.useImperativeHandle(t,()=>F.current,[]),k.useEffect(()=>{let _e=F.current,Me=ae.current;if(!_e||!Me)return;ue.current.value!==_e.value&&ue.current.onChange(_e.value),j.current.prev=[_e.selectionStart,_e.selectionEnd,_e.selectionDirection];function yt(){if(document.activeElement!==_e){Z(null),le(null);return}let et=_e.selectionStart,P=_e.selectionEnd,Q=_e.selectionDirection,oe=_e.maxLength,he=_e.value,ge=j.current.prev,ve=-1,Oe=-1,Be;if(he.length!==0&&et!==null&&P!==null){let jn=et===P,hr=et===he.length&&he.length<oe;if(jn&&!hr){let Xt=et;if(Xt===0)ve=0,Oe=1,Be="forward";else if(Xt===oe)ve=Xt-1,Oe=Xt,Be="backward";else if(oe>1&&he.length>1){let Mn=0;if(ge[0]!==null&&ge[1]!==null){Be=Xt<ge[1]?"backward":"forward";let Bn=ge[0]===ge[1]&&ge[0]<oe;Be==="backward"&&!Bn&&(Mn=-1)}ve=Mn+Xt,Oe=Mn+Xt+1}}ve!==-1&&Oe!==-1&&ve!==Oe&&F.current.setSelectionRange(ve,Oe,Be)}let Xe=ve!==-1?ve:et,vt=Oe!==-1?Oe:P,mr=Be??Q;Z(Xe),le(vt),j.current.prev=[Xe,vt,mr]}if(document.addEventListener("selectionchange",yt,{capture:!0}),yt(),document.activeElement===_e&&A(!0),!document.getElementById("input-otp-style")){let et=document.createElement("style");if(et.id="input-otp-style",document.head.appendChild(et),et.sheet){let P="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";cd(et.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),cd(et.sheet,`[data-input-otp]:autofill { ${P} }`),cd(et.sheet,`[data-input-otp]:-webkit-autofill { ${P} }
305`),cd(et.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),cd(et.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let st=()=>{Me&&Me.style.setProperty("--root-height",`${_e.clientHeight}px`)};st();let Lt=new ResizeObserver(st);return Lt.observe(_e),()=>{document.removeEventListener("selectionchange",yt,{capture:!0}),Lt.disconnect()}},[]);let[G,B]=k.useState(!1),[fe,A]=k.useState(!1),[ne,Z]=k.useState(null),[X,le]=k.useState(null);k.useEffect(()=>{wie(()=>{var _e,Me,yt,st;(_e=F.current)==null||_e.dispatchEvent(new Event("input"));let Lt=(Me=F.current)==null?void 0:Me.selectionStart,et=(yt=F.current)==null?void 0:yt.selectionEnd,P=(st=F.current)==null?void 0:st.selectionDirection;Lt!==null&&et!==null&&(Z(Lt),le(et),j.current.prev=[Lt,et,P])})},[V,fe]),k.useEffect(()=>{L!==void 0&&V!==L&&L.length<a&&V.length===a&&(h==null||h(V))},[a,h,L,V]);let me=Tie({containerRef:ae,inputRef:F,pushPasswordManagerStrategy:g,isFocused:fe}),be=k.useCallback(_e=>{let Me=_e.currentTarget.value.slice(0,a);if(Me.length>0&&H&&!H.test(Me)){_e.preventDefault();return}typeof L=="string"&&Me.length<L.length&&document.dispatchEvent(new Event("selectionchange")),K(Me)},[a,K,L,H]),ce=k.useCallback(()=>{var _e;if(F.current){let Me=Math.min(F.current.value.length,a-1),yt=F.current.value.length;(_e=F.current)==null||_e.setSelectionRange(Me,yt),Z(Me),le(yt)}A(!0)},[a]),Ee=k.useCallback(_e=>{var Me,yt;let st=F.current;if(!b&&(!ue.current.isIOS||!_e.clipboardData||!st))return;let Lt=_e.clipboardData.getData("text/plain"),et=b?b(Lt):Lt;_e.preventDefault();let P=(Me=F.current)==null?void 0:Me.selectionStart,Q=(yt=F.current)==null?void 0:yt.selectionEnd,oe=(P!==Q?V.slice(0,P)+et+V.slice(Q):V.slice(0,P)+et+V.slice(P)).slice(0,a);if(oe.length>0&&H&&!H.test(oe))return;st.value=oe,K(oe);
305let he=Math.min(oe.length,a-1),ge=oe.length;st.setSelectionRange(he,ge),Z(he),le(ge)},[a,K,H,V]),Ne=k.useMemo(()=>({position:"relative",cursor:E.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[E.disabled]),Ie=k.useMemo(()=>({position:"absolute",inset:0,width:me.willPushPWMBadge?`calc(100% + ${me.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:me.willPushPWMBadge?`inset(0 ${me.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:l,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[me.PWM_BADGE_SPACE_WIDTH,me.willPushPWMBadge,l]),Ve=k.useMemo(()=>k.createElement("input",_ie(bie({autoComplete:E.autoComplete||"one-time-code"},E),{"data-input-otp":!0,"data-input-otp-placeholder-shown":V.length===0||void 0,"data-input-otp-mss":ne,"data-input-otp-mse":X,inputMode:m,pattern:H==null?void 0:H.source,"aria-placeholder":f,style:Ie,maxLength:a,value:V,ref:F,onPaste:_e=>{var Me;Ee(_e),(Me=E.onPaste)==null||Me.call(E,_e)},onChange:be,onMouseOver:_e=>{var Me;B(!0),(Me=E.onMouseOver)==null||Me.call(E,_e)},onMouseLeave:_e=>{var Me;B(!1),(Me=E.onMouseLeave)==null||Me.call(E,_e)},onFocus:_e=>{var Me;ce(),(Me=E.onFocus)==null||Me.call(E,_e)},onBlur:_e=>{var Me;A(!1),(Me=E.onBlur)==null||Me.call(E,_e)}})),[be,ce,Ee,m,Ie,a,X,ne,E,H==null?void 0:H.source,V]),Pe=k.useMemo(()=>({slots:Array.from({length:a}).map((_e,Me)=>{var yt;let st=fe&&ne!==null&&X!==null&&(ne===X&&Me===ne||Me>=ne&&Me<X),Lt=V[Me]!==void 0?V[Me]:null,et=V[0]!==void 0?null:(yt=f==null?void 0:f[Me])!=null?yt:null;return{char:Lt,placeholderChar:et,isActive:st,hasFakeCaret:st&&Lt===null}}),isFocused:fe,isHovering:!E.disabled&&G}),[fe,G,a,X,ne,E.disabled,V]),$t=k.useMemo(()=>w?w(Pe):k.createElement(b2.Provider,{value:Pe},x),[x,Pe,w]);return k.createElement(k.Fragment,null,S!==null&&k.createElement("noscript",null,k.createElement("style",null,S)),k.createElement("div",{ref:ae,"data-input-otp-container":!0,style:Ne,className:_},$t,k.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},Ve)))});_2.displayName="Input";function cd(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var Rie=`
306[data-input-otp] {
307  --nojs-bg: white !important;
308  --nojs-fg: black !important;
309
310  background-color: var(--nojs-bg) !important;
311  color: var(--nojs-fg) !important;
312  caret-color: var(--nojs-fg) !important;
313  letter-spacing: .25em !important;
314  text-align: center !important;
315  border: 1px solid var(--nojs-fg) !important;
316  border-radius: 4px !important;
317  width: 100% !important;
318}
319@media (prefers-color-scheme: dark) {
320  [data-input-otp] {
321    --nojs-bg: black !important;
322    --nojs-fg: white !important;
323  }
324}`,M$="^\\d+$";const S2=k.createContext(!1);function w2({className:e,containerClassName:t,id:n,disabled:i,children:r,render:a,maxLength:l,pattern:u=M$,pasteTransformer:f,"aria-invalid":m,...h}){const g=k.useId(),b=n??g,_=m===!0,S=!r&&!a&&l?v.jsx($ie,{children:Array.from({length:l}).map((w,x)=>v.jsx(Nie,{index:x},b+String(x)))}):null;return v.jsx(S2.Provider,{value:_,children:v.jsx(_2,{id:b,"data-slot":"input-otp",inputMode:"numeric",pattern:u,pasteTransformer:f??(u===M$?w=>w.replace(/\D/g,""):w=>w),disabled:i,maxLength:l,"aria-invalid":m,containerClassName:ke("flex items-center justify-center gap-2 has-disabled:opacity-(--disabled-opacity)",t),className:ke("disabled:cursor-not-allowed disabled:text-muted-foreground disabled:opacity-(--disabled-opacity)",e),...a?{render:a}:{children:r??S},...h})})}function $ie({className:e,...t}){return v.jsx("div",{"data-slot":"input-otp-group",className:ke("flex items-center",e),...t})}function Nie({index:e,className:t,...n}){const i=k.useContext(b2),{char:r,hasFakeCaret:a,isActive:l}=(i==null?void 0:i.slots[e])??{},u=k.useContext(S2);return v.jsxs("div",{"data-slot":"input-otp-slot","data-active":l,"data-invalid":u||void 0,className:ke("bg-background dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm max-md:text-base text-foreground shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:ring-[3px] data-[invalid=true]:border-destructive-border data-[active=true]:data-[invalid=true]:border-destructive data-[active=true]:data-[invalid=true]:ring-destructive-foreground
324/20 dark:data-[active=true]:data-[invalid=true]:ring-destructive-foreground/40",t),...n,children:[r,a&&v.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:v.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}w2.formFieldConfig={mapField:"input-otp"};const x2=k.createContext(void 0);function Die(){return k.useContext(x2)}function E2({onChange:e,options:t,placeholder:n,id:i,"aria-invalid":r,"aria-describedby":a,className:l,...u}){if(t)return v.jsxs(s$,{"data-slot":"select",onValueChange:u.onValueChange??e,...u,children:[v.jsx(jie,{id:i,"aria-invalid":r,"aria-describedby":a,className:l,children:v.jsx(Cie,{placeholder:n})}),v.jsx(Mie,{children:t.map(g=>v.jsx(Iie,{value:String(g.id),children:g.label},g.id))})]});const f={id:i,ariaInvalid:r,ariaDescribedBy:a},{children:m,...h}=u;return v.jsx(s$,{"data-slot":"select",onValueChange:h.onValueChange??e,...h,children:v.jsx(x2.Provider,{value:f,children:m})})}E2.formFieldConfig={mapField:"radix-select"};function Cie({...e}){return v.jsx(_te,{"data-slot":"select-value",...e})}const Aie="aria-invalid:border-destructive-border aria-invalid:hover:bg-destructive aria-invalid:hover:border-destructive-border aria-invalid:focus-visible:border-destructive aria-invalid:focus-visible:ring-[3px] aria-invalid:focus-visible:ring-destructive-foreground/20 dark:aria-invalid:focus-visible:ring-destructive-foreground/40";function jie({className:e,size:t="default",children:n,icon:i,showIcon:r=!1,id:a,"aria-invalid":l,"aria-describedby":u,...f}){const m=Die(),h=a??(m==null?void 0:m.id),g=l??(m==null?void 0:m.ariaInvalid),b=u??(m==null?void 0:m.ariaDescribedBy);return v.jsxs(bte,{"data-slot":"select-trigger","data-size":t,id:h,"aria-invalid":g,"aria-describedby":b,className:ke("flex w-full items-center justify-between gap-2 rounded-lg border border-input bg-background px-3 py-2 text-sm max-md:text-base text-foreground whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none hover:not-disabled:bg-[color:color-mix(in_srgb,var(--color-background)_80%,var(--color-input)_20%)] data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:min-w-0 *:data-[slot=select-value]:flex-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:justify-start *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:text-left [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",Aie,e),...f,children:[r&&i&&v.jsx("span",{className:"shrink-0 size-4",children:i}),n,v.jsx(Ste,{asChild:!0,children:v.jsx(Ap,{className:"size-4 opacity-50"})})]})}function Mie({className:e,children:t,position:n="popper",align:i="center",...r}){return v.jsx(wte,{children:v.jsxs(xte,{"data-slot":"select-content",className:ke("bg-popover text-popover-foreground 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 relative z-50 max-h-[240px] min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:i,...r,children:[v.jsx(Pie,{}),v.jsx(Ete,{className:ke("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),v.jsx(zie,{})]})})}function Iie({className:e,children:t,...n}){return v.jsxs(kte,{"data-slot":"select-item",className:ke("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[v.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:v.jsx(Tte,{children:v.jsx(Lh,{className:"size-4"})})}),v.jsx(Ote,{children:t})]})}function Pie({className:e,...t}){return v.jsx(Rte,{"data-slot":"select-scroll-up-button",className:ke("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(Zq,{className:"size-4"})})}function zie({className:e,...t}){return v.jsx($te,{"data-slot":"select-scroll-down-button",className:ke("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(Ap,{className:"size-4"})})}const k2=6048e5,Uie=864e5,I$=Symbol.for("constructDateFrom");function un(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&I$ in e?e[I$](t):e instanceof Date?new e.constructor(t):new Date(t)}function At(e,t){return un(t||e,e)}function O2(e,t,n){const i=At(e,n==null?void 0:n.in);return isNaN(t)?un(e,NaN):(t&&i.setDate(i.getDate()+t),i)}function T2(e,t,n){const i=At(e,n==null?void 0:n.in);if(isNaN(t))return un(e,NaN);if(!t)return i;const r=i.getDate(),a=un(e,i.getTime());a.setMonth(i.getMonth()+t+1,0);const l=a.getDate();return r>=l?a:(i.setFullYear(a.getFullYear(),a.getMonth(),r),i)}let Lie={};function Ef(){return Lie}function jc(e,t){var u,f,m,h;const n=Ef(),i=(t==null?void 0:t.weekStartsOn)??((f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((h=(m=n.locale)==null?void 0:m.options)==null?void 0:h.weekStartsOn)??0,r=At(e,t==null?void 0:t.in),a=r.getDay(),l=(a<i?7:0)+a-i;return r.setDate(r.getDate()-l),r.setHours(0,0,0,0),r}function zd(e,t){return jc(e,{...t,weekStartsOn:1}
324)}function R2(e,t){const n=At(e,t==null?void 0:t.in),i=n.getFullYear(),r=un(n,0);r.setFullYear(i+1,0,4),r.setHours(0,0,0,0);const a=zd(r),l=un(n,0);l.setFullYear(i,0,4),l.setHours(0,0,0,0);const u=zd(l);return n.getTime()>=a.getTime()?i+1:n.getTime()>=u.getTime()?i:i-1}function P$(e){const t=At(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function eu(e,...t){const n=un.bind(null,t.find(i=>typeof i=="object"));return t.map(n)}function Yn(e,t){const n=At(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function $2(e,t,n){const[i,r]=eu(n==null?void 0:n.in,e,t),a=Yn(i),l=Yn(r),u=+a-P$(a),f=+l-P$(l);return Math.round((u-f)/Uie)}function Fie(e,t){const n=R2(e,t),i=un(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),zd(i)}function Bie(e,t,n){return O2(e,t*7,n)}function Vie(e,t,n){return T2(e,t*12,n)}function Hie(e,t){let n,i=t==null?void 0:t.in;return e.forEach(r=>{!i&&typeof r=="object"&&(i=un.bind(null,r));const a=At(r,i);(!n||n<a||isNaN(+a))&&(n=a)}),un(i,n||NaN)}function qie(e,t){let n,i=t==null?void 0:t.in;return e.forEach(r=>{!i&&typeof r=="object"&&(i=un.bind(null,r));const a=At(r,i);(!n||n>a||isNaN(+a))&&(n=a)}),un(i,n||NaN)}function Zie(e,t,n){const[i,r]=eu(n==null?void 0:n.in,e,t);return+Yn(i)==+Yn(r)}function N2(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Yie(e){return!(!N2(e)&&typeof e!="number"||isNaN(+At(e)))}function Wie(e,t,n){const[i,r]=eu(n==null?void 0:n.in,e,t),a=i.getFullYear()-r.getFullYear(),l=i.getMonth()-r.getMonth();return a*12+l}function Gie(e,t){const n=At(e,t==null?void 0:t.in),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n}function D2(e,t){const[n,i]=eu(e,t.start,t.end);return{start:n,end:i}}function Kie(e,t){const{start:n,end:i}=D2(t==null?void 0:t.in,e);let r=+n>+i;const a=r?+n:+i,l=r?i:n;l.setHours(0,0,0,0),l.setDate(1);let u=1;const f=[];for(;+l<=a;)f.push(un(n,l)),l.setMonth(l.getMonth()+u);return r?f.reverse():f}function Xie(e,t){const n=At(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Qie(e,t){const n=At(e,t==null?void 0:t.in),i=n.getFullYear();return n.setFullYear(i+1,0,0),n.setHours(23,59,59,999),n}function C2(e,t){const n=At(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Jie(e,t){const{start:n,end:i}=D2(t==null?void 0:t.in,e);let r=+n>+i;const a=r?+n:+i,l=r?i:n;l.setHours(0,0,0,0),l.setMonth(0,1);let u=1;const f=[];for(;+l<=a;)f.push(un(n,l)),l.setFullYear(l.getFullYear()+u);return r?f.reverse():f}function A2(e,t){var u,f,m,h;const n=Ef(),i=(t==null?void 0:t.weekStartsOn)??((f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((h=(m=n.locale)==null?void 0:m.options)==null?void 0:h.weekStartsOn)??0,r=At(e,t==null?void 0:t.in),a=r.getDay(),l=(a<i?-7:0)+6-(a-i);return r.setDate(r.getDate()+l),r.setHours(23,59,59,999),r}function eoe(e,t){return A2(e,{...t,weekStartsOn:1})}const toe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},noe=(e,t,n)=>{let i;const r=toe[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function Tb(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const roe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ioe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ooe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aoe={date:Tb({formats:roe,defaultWidth:"full"}),time:Tb({formats:ioe,defaultWidth:"full"}),dateTime:Tb({formats:ooe,defaultWidth:"full"})},soe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},loe=(e,t,n,i)=>soe[e];function ud(e){return(t,n)=>{const i=n!=null&&n.context?String(n.context):"standalone";let r;if(i==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):l;r=e.formattingValues[u]||e.formattingValues[l]}else{const l=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[u]||e.values[l]}const a=e.argumentCallback?e.argumentCallback(t):t;return r[a]}}const coe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},uoe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},doe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},foe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
324ay","Saturday"]},moe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hoe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},poe=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},goe={ordinalNumber:poe,era:ud({values:coe,defaultWidth:"wide"}),quarter:ud({values:uoe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ud({values:doe,defaultWidth:"wide"}),day:ud({values:foe,defaultWidth:"wide"}),dayPeriod:ud({values:moe,defaultWidth:"wide",formattingValues:hoe,defaultFormattingWidth:"wide"})};function dd(e){return(t,n={})=>{const i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(r);if(!a)return null;const l=a[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(u)?yoe(u,g=>g.test(l)):voe(u,g=>g.test(l));let m;m=e.valueCallback?e.valueCallback(f):f,m=n.valueCallback?n.valueCallback(m):m;const h=t.slice(l.length);return{value:m,rest:h}}}function voe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function yoe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function boe(e){return(t,n={})=>{const i=t.match(e.matchPattern);if(!i)return null;const r=i[0],a=t.match(e.parsePattern);if(!a)return null;let l=e.valueCallback?e.valueCallback(a[0]):a[0];l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(r.length);return{value:l,rest:u}}}const _oe=/^(\d+)(th|st|nd|rd)?/i,Soe=/\d+/i,woe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},xoe={any:[/^b/i,/^(a|c)/i]},Eoe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},koe={any:[/1/i,/2/i,/3/i,/4/i]},Ooe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Toe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Roe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$oe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Noe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Doe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Coe={ordinalNumber:boe({matchPattern:_oe,parsePattern:Soe,valueCallback:e=>parseInt(e,10)}),era:dd({matchPatterns:woe,defaultMatchWidth:"wide",parsePatterns:xoe,defaultParseWidth:"any"}),quarter:dd({matchPatterns:Eoe,defaultMatchWidth:"wide",parsePatterns:koe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:dd({matchPatterns:Ooe,defaultMatchWidth:"wide",parsePatterns:Toe,defaultParseWidth:"any"}),day:dd({matchPatterns:Roe,defaultMatchWidth:"wide",parsePatterns:$oe,defaultParseWidth:"any"}),dayPeriod:dd({matchPatterns:Noe,defaultMatchWidth:"any",parsePatterns:Doe,defaultParseWidth:"any"})},fx={code:"en-US",formatDistance:noe,formatLong:aoe,formatRelative:loe,localize:goe,match:Coe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Aoe(e,t){const n=At(e,t==null?void 0:t.in);return $2(n,C2(n))+1}function j2(e,t){const n=At(e,t==null?void 0:t.in),i=+zd(n)-+Fie(n);return Math.round(i/k2)+1}function M2(e,t){var h,g,b,_;const n=At(e,t==null?void 0:t.in),i=n.getFullYear(),r=Ef(),a=(t==null?void 0:t.firstWeekContainsDate)??((g=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??r.firstWeekContainsDate??((_=(b=r.locale)==null?void 0:b.options)==null?void 0:_.firstWeekContainsDate)??1,l=un((t==null?void 0:t.in)||e,0);l.setFullYear(i+1,0,a),l.setHours(0,0,0,0);const u=jc(l,t),f=un((t==null?void 0:t.in)||e,0);f.setFullYear(i,0,a),f.setHours(0,0,0,0);const m=jc(f,t);return+n>=+u?i+1:+n>=+m?i:i-1}function joe(e,t){var u,f,m,h;const n=Ef(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(m=n.locale)==null?void 0:m.options)==null?void 0:h.firstWeekContainsDate)??1,r=M2(e,t),a=un((t==null?void 0:t.in)||e,0);return a.setFullYear(r,0,i),a.setHours(0,0,0,0),jc(a,t)}function I2(e,t){const n=At(e,t==null?void 0:t.in),i=+jc(n,t)-+joe(n,t);return Math.round(i/k2)+1}function Rt(e,t){const n=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return n+i}const sa={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return Rt(t==="yy"?i%100:i,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Rt(n+1,2)},d(e,t){return Rt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Rt(e.getHours()%12||12,t.length)},H(e,t){return Rt(e.getHours(),t.length)},m(e,t){return Rt(e.getMinutes(),t.length)},s(e,t){return Rt(e.getSeconds(),t.length)},S(e,t){const n=t.length,i=e.getMilliseconds(),r=Math.trunc(i*Math.pow(10,n-3));return Rt(r,t.length)}},Yl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},z$={G:function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const i=e.getFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return sa.y(e,t)},Y:function(e,t,n,i){const r=M2(e,i),a=r>0?r:1-r;if(t==="YY"){const l=a%100;return Rt(l,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Rt(a,t.length)},R:function(e,t){const n=R2(e);return Rt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Rt(n,t.length)},Q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Rt(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Rt(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return sa.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return Rt(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const r=I2(e,i);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):Rt(r,t.length)},I:function(e,t,n){const i=j2(e);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):Rt(i,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):sa.d(e,t)},D:function(e,t,n){const i=Aoe(e);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Rt(i,t.length)},E:function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){const r=e.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Rt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){const r=e.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Rt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const i=e.getDay(),r=i===0?7:i;switch(t){case"i":return String(r);case"ii":return Rt(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const i=e.getHours();let r;switch(i===12?r=Yl.noon:i===0?r=Yl.midnight:r=i/12>
324=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const i=e.getHours();let r;switch(i>=17?r=Yl.evening:i>=12?r=Yl.afternoon:i>=4?r=Yl.morning:r=Yl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return sa.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):sa.H(e,t)},K:function(e,t,n){const i=e.getHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Rt(i,t.length)},k:function(e,t,n){let i=e.getHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):Rt(i,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):sa.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):sa.s(e,t)},S:function(e,t){return sa.S(e,t)},X:function(e,t,n){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return L$(i);case"XXXX":case"XX":return is(i);case"XXXXX":case"XXX":default:return is(i,":")}},x:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"x":return L$(i);case"xxxx":case"xx":return is(i);case"xxxxx":case"xxx":default:return is(i,":")}},O:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+U$(i,":");case"OOOO":default:return"GMT"+is(i,":")}},z:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+U$(i,":");case"zzzz":default:return"GMT"+is(i,":")}},t:function(e,t,n){const i=Math.trunc(+e/1e3);return Rt(i,t.length)},T:function(e,t,n){return Rt(+e,t.length)}};function U$(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),r=Math.trunc(i/60),a=i%60;return a===0?n+String(r):n+String(r)+t+Rt(a,2)}function L$(e,t){return e%60===0?(e>0?"-":"+")+Rt(Math.abs(e)/60,2):is(e,t)}function is(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),r=Rt(Math.trunc(i/60),2),a=Rt(i%60,2);return n+r+t+a}const F$=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},P2=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Moe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],r=n[2];if(!r)return F$(e,t);let a;switch(i){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",F$(i,t)).replace("{{time}}",P2(r,t))},Ioe={p:P2,P:Moe},Poe=/^D+$/,zoe=/^Y+$/,Uoe=["D","DD","YY","YYYY"];function Loe(e){return Poe.test(e)}function Foe(e){return zoe.test(e)}function Boe(e,t,n){const i=Voe(e,t,n);if(console.warn(i),Uoe.includes(e))throw new RangeError(i)}function Voe(e,t,n){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Hoe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qoe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zoe=/^'([^]*?)'?$/,Yoe=/''/g,Woe=/[a-zA-Z]/;function Goe(e,t,n){var h,g,b,_,S,w,x,E;const i=Ef(),r=(n==null?void 0:n.locale)??i.locale??fx,a=(n==null?void 0:n.firstWeekContainsDate)??((g=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??i.firstWeekContainsDate??((_=(b=i.locale)==null?void 0:b.options)==null?void 0:_.firstWeekContainsDate)??1,l=(n==null?void 0:n.weekStartsOn)??((w=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:w.weekStartsOn)??i.weekStartsOn??((E=(x=i.locale)==null?void 0:x.options)==null?void 0:E.weekStartsOn)??0,u=At(e,n==null?void 0:n.in);if(!Yie(u))throw new RangeError("Invalid time value");let f=t.match(qoe).map(O=>{const R=O[0];if(R==="p"||R==="P"){const $=Ioe[R];return $(O,r.formatLong)}return O}).join("").match(Hoe).map(O=>{if(O==="''")return{isToken:!1,value:"'"};const R=O[0];if(R==="'")return{isToken:!1,value:Koe(O)};if(z$[R])return{isToken:!0,value:O};
324if(R.match(Woe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:O}});r.localize.preprocessor&&(f=r.localize.preprocessor(u,f));const m={firstWeekContainsDate:a,weekStartsOn:l,locale:r};return f.map(O=>{if(!O.isToken)return O.value;const R=O.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Foe(R)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Loe(R))&&Boe(R,t,String(e));const $=z$[R[0]];return $(u,R,r.localize,m)}).join("")}function Koe(e){const t=e.match(Zoe);return t?t[1].replace(Yoe,"'"):e}function Xoe(e,t){const n=At(e,t==null?void 0:t.in),i=n.getFullYear(),r=n.getMonth(),a=un(n,0);return a.setFullYear(i,r+1,0),a.setHours(0,0,0,0),a.getDate()}function Qoe(e,t){return At(e,t==null?void 0:t.in).getMonth()}function Joe(e,t){return At(e,t==null?void 0:t.in).getFullYear()}function eae(e,t){return+At(e)>+At(t)}function tae(e,t){return+At(e)<+At(t)}function nae(e,t,n){const[i,r]=eu(n==null?void 0:n.in,e,t);return i.getFullYear()===r.getFullYear()&&i.getMonth()===r.getMonth()}function rae(e,t,n){const[i,r]=eu(n==null?void 0:n.in,e,t);return i.getFullYear()===r.getFullYear()}function iae(e,t,n){const i=At(e,n==null?void 0:n.in),r=i.getFullYear(),a=i.getDate(),l=un(e,0);l.setFullYear(r,t,15),l.setHours(0,0,0,0);const u=Xoe(l);return i.setMonth(t,Math.min(a,u)),i}function oae(e,t,n){const i=At(e,n==null?void 0:n.in);return isNaN(+i)?un(e,NaN):(i.setFullYear(t),i)}function aae(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const Rb={},yd={};function fs(e,t){try{const i=(Rb[e]||(Rb[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return i in yd?yd[i]:B$(i,i.split(":"))}catch{if(e in yd)return yd[e];const n=e==null?void 0:e.match(sae);return n?B$(e,n.slice(1)):NaN}}const sae=/([+-]\d\d):?(\d\d)?/;function B$(e,t){const n=+(t[0]||0),i=+(t[1]||0),r=+(t[2]||0)/60;return yd[e]=n*60+i>0?n*60+i+r:n*60-i-r}class Ai extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(fs(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),z2(this),tS(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Ai(...n,t):new Ai(Date.now(),t)}withTimeZone(t){return new Ai(+this,t)}getTimezoneOffset(){const t=-fs(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),tS(this),+this}[Symbol.for("constructDateFrom")](t){return new Ai(+new Date(t),this.timeZone)}}const V$=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!V$.test(e))return;const t=e.replace(V$,"$1UTC");Ai.prototype[t]&&(e.startsWith("get")?Ai.prototype[e]=function(){return this.internal[t]()}:(Ai.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),lae(this),+this},Ai.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),tS(this),+this}))});function tS(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-fs(e.timeZone,e)*60))}function lae(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),z2(e)}function z2(e){const t=fs(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),i=new Date(+e);i.setUTCHours(i.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),a=-new Date(+i).getTimezoneOffset(),l=r-a,u=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();l&&u&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+l);const f=r-n;f&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+f);const m=new Date(+e);m.setUTCSeconds(0);const h=r>0?m.getSeconds():(m.getSeconds()-60)%60,g=Math.round(-(fs(e.timeZone,e)*60))%60;(g||h)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+g),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+g+h));const b=fs(e.timeZone,e),_=b>0?Math.floor(b):Math.ceil(b),w=-new Date(+e).getTimezoneOffset()-_,x=_!==n,E=w-f;if(x&&E){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+E);const O=fs(e.timeZone,e),R=O>0?Math.floor(O):Math.ceil(O),$=_-R;$&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+$),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+$))}}class zn extends Ai{static tz(t,...n){return n.length?new zn(...n,t):new zn(Date.now(),t)}toISOString(){const[t,n,i]=this.tzComponents(),r=`${t}${n}:${i}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()}
324 ${this.toTimeString()}`}toDateString(){const[t,n,i,r]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${i} ${n} ${r}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,i,r]=this.tzComponents();return`${t} GMT${n}${i}${r} (${aae(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",i=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),r=String(Math.abs(t)%60).padStart(2,"0");return[n,i,r]}withTimeZone(t){return new zn(+this,t)}[Symbol.for("constructDateFrom")](t){return new zn(+new Date(t),this.timeZone)}}const H$=5,cae=4;function uae(e,t){const n=t.startOfMonth(e),i=n.getDay()>0?n.getDay():7,r=t.addDays(e,-i+1),a=t.addDays(r,H$*7-1);return t.getMonth(e)===t.getMonth(a)?H$:cae}function U2(e,t){const n=t.startOfMonth(e),i=n.getDay();return i===1?n:i===0?t.addDays(n,-1*6):t.addDays(n,-1*(i-1))}function dae(e,t){const n=U2(e,t),i=uae(e,t);return t.addDays(n,i*7-1)}class Dr{constructor(t,n){this.Date=Date,this.today=()=>{var i;return(i=this.overrides)!=null&&i.today?this.overrides.today():this.options.timeZone?zn.tz(this.options.timeZone):new this.Date},this.newDate=(i,r,a)=>{var l;return(l=this.overrides)!=null&&l.newDate?this.overrides.newDate(i,r,a):this.options.timeZone?new zn(i,r,a,this.options.timeZone):new Date(i,r,a)},this.addDays=(i,r)=>{var a;return(a=this.overrides)!=null&&a.addDays?this.overrides.addDays(i,r):O2(i,r)},this.addMonths=(i,r)=>{var a;return(a=this.overrides)!=null&&a.addMonths?this.overrides.addMonths(i,r):T2(i,r)},this.addWeeks=(i,r)=>{var a;return(a=this.overrides)!=null&&a.addWeeks?this.overrides.addWeeks(i,r):Bie(i,r)},this.addYears=(i,r)=>{var a;return(a=this.overrides)!=null&&a.addYears?this.overrides.addYears(i,r):Vie(i,r)},this.differenceInCalendarDays=(i,r)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarDays?this.overrides.differenceInCalendarDays(i,r):$2(i,r)},this.differenceInCalendarMonths=(i,r)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(i,r):Wie(i,r)},this.eachMonthOfInterval=i=>{var r;return(r=this.overrides)!=null&&r.eachMonthOfInterval?this.overrides.eachMonthOfInterval(i):Kie(i)},this.eachYearOfInterval=i=>{var u;const r=(u=this.overrides)!=null&&u.eachYearOfInterval?this.overrides.eachYearOfInterval(i):Jie(i),a=new Set(r.map(f=>this.getYear(f)));if(a.size===r.length)return r;const l=[];return a.forEach(f=>{l.push(new Date(f,0,1))}),l},this.endOfBroadcastWeek=i=>{var r;return(r=this.overrides)!=null&&r.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(i):dae(i,this)},this.endOfISOWeek=i=>{var r;return(r=this.overrides)!=null&&r.endOfISOWeek?this.overrides.endOfISOWeek(i):eoe(i)},this.endOfMonth=i=>{var r;return(r=this.overrides)!=null&&r.endOfMonth?this.overrides.endOfMonth(i):Gie(i)},this.endOfWeek=(i,r)=>{var a;return(a=this.overrides)!=null&&a.endOfWeek?this.overrides.endOfWeek(i,r):A2(i,this.options)},this.endOfYear=i=>{var r;return(r=this.overrides)!=null&&r.endOfYear?this.overrides.endOfYear(i):Qie(i)},this.format=(i,r,a)=>{var u;const l=(u=this.overrides)!=null&&u.format?this.overrides.format(i,r,this.options):Goe(i,r,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(l):l},this.getISOWeek=i=>{var r;return(r=this.overrides)!=null&&r.getISOWeek?this.overrides.getISOWeek(i):j2(i)},this.getMonth=(i,r)=>{var a;return(a=this.overrides)!=null&&a.getMonth?this.overrides.getMonth(i,this.options):Qoe(i,this.options)},this.getYear=(i,r)=>{var a;return(a=this.overrides)!=null&&a.getYear?this.overrides.getYear(i,this.options):Joe(i,this.options)},this.getWeek=(i,r)=>{var a;return(a=this.overrides)!=null&&a.getWeek?this.overrides.getWeek(i,this.options):I2(i,this.options)},this.isAfter=(i,r)=>{var a;return(a=this.overrides)!=null&&a.isAfter?this.overrides.isAfter(i,r):eae(i,r)},this.isBefore=(i,r)=>{var a;return(a=this.overrides)!=null&&a.isBefore?this.overrides.isBefore(i,r):tae(i,r)},this.isDate=i=>{var r;return(r=this.overrides)!=null&&r.isDate?this.overrides.isDate(i):N2(i)},this.isSameDay=(i,r)=>{var a;return(a=this.overrides)!=null&&a.isSameDay?this.overrides.isSameDay(i,r):Zie(i,r)},this.isSameMonth=(i,r)=>{var a;return(a=this.overrides)!=null&&a.isSameMonth?this.overrides.isSameMonth(i,r):nae(i,r)},this.isSameYear=(i,r)=>{var a;return(a=this.overrides)!=null&&a.isSameYear?this.overrides.isSameYear(i,r):rae(i,r)},this.max=i=>{var r;return(r=this.overrides)!=null&&r.max?this.overrides.max(i):Hie(i)},this.min=i=>{var r;return(r=this.overrides)!=null&&r.min?this.overrides.min(i):qie(i)},this.setMonth=(i,r)=>{var a;return(a=this.overrides)!=null&&a.setMonth?this.overrides.setMonth(i,r):iae(i,r)},this.setYear=(i,r)=>{var a;return(a=this.overrides)!=null&&a.setYear?this.overrides.setYear(i,r):oae(i,r)},this.startOfBroadcastWeek=(i,r)=>{var a;return(a=this.overrides)!=null&&a.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(i,this):U2(i,this)},this.startOfDay=i=>{var r;return(r=this.overrides)!=null&&r.startOfDay?this.overrides.startOfDay(i):Yn(i)},this.startOfISOWeek=i=>{var r;return(r=this.overrides)!=null&&r.startOfISOWeek?this.overrides.startOfISOWeek(i):zd(i)},this.startOfMonth=i=>
324{var r;return(r=this.overrides)!=null&&r.startOfMonth?this.overrides.startOfMonth(i):Xie(i)},this.startOfWeek=(i,r)=>{var a;return(a=this.overrides)!=null&&a.startOfWeek?this.overrides.startOfWeek(i,this.options):jc(i,this.options)},this.startOfYear=i=>{var r;return(r=this.overrides)!=null&&r.startOfYear?this.overrides.startOfYear(i):C2(i)},this.options={locale:fx,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),i={};for(let r=0;r<10;r++)i[r.toString()]=n.format(r);return i}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,i=>n[i]||i)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){var n;const t=(n=this.options.locale)==null?void 0:n.code;return t&&Dr.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:i,numerals:r}=this.options,a=n==null?void 0:n.code;if(a&&Dr.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:i,numberingSystem:r}).format(t)}catch{}const l=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,l)}}Dr.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Hi=new Dr;class L2{constructor(t,n,i=Hi){this.date=t,this.displayMonth=n,this.outside=!!(n&&!i.isSameMonth(t,n)),this.dateLib=i}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class fae{constructor(t,n){this.date=t,this.weeks=n}}class mae{constructor(t,n){this.days=n,this.weekNumber=t}}function hae(e){return Y.createElement("button",{...e})}function pae(e){return Y.createElement("span",{...e})}function gae(e){const{size:t=24,orientation:n="left",className:i}=e;return Y.createElement("svg",{className:i,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&Y.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&Y.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&Y.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&Y.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function vae(e){const{day:t,modifiers:n,...i}=e;return Y.createElement("td",{...i})}function yae(e){const{day:t,modifiers:n,...i}=e,r=Y.useRef(null);return Y.useEffect(()=>{var a;n.focused&&((a=r.current)==null||a.focus())},[n.focused]),Y.createElement("button",{ref:r,...i})}var Fe;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Fe||(Fe={}));var Vt;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Vt||(Vt={}));var si;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(si||(si={}));var wr;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(wr||(wr={}));function bae(e){const{options:t,className:n,components:i,classNames:r,...a}=e,l=[r[Fe.Dropdown],n].join(" "),u=t==null?void 0:t.find(({value:f})=>f===a.value);return Y.createElement("span",{"data-disabled":a.disabled,className:r[Fe.DropdownRoot]},Y.createElement(i.Select,{className:l,...a},t==null?void 0:t.map(({value:f,label:m,disabled:h})=>Y.createElement(i.Option,{key:f,value:f,disabled:h},m))),Y.createElement("span",{className:r[Fe.CaptionLabel],"aria-hidden":!0},u==null?void 0:u.label,Y.createElement(i.Chevron,{orientation:"down",size:18,className:r[Fe.Chevron]}
324)))}function _ae(e){return Y.createElement("div",{...e})}function Sae(e){return Y.createElement("div",{...e})}function wae(e){const{calendarMonth:t,displayIndex:n,...i}=e;return Y.createElement("div",{...i},e.children)}function xae(e){const{calendarMonth:t,displayIndex:n,...i}=e;return Y.createElement("div",{...i})}function Eae(e){return Y.createElement("table",{...e})}function kae(e){return Y.createElement("div",{...e})}const F2=k.createContext(void 0);function kf(){const e=k.useContext(F2);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function Oae(e){const{components:t}=kf();return Y.createElement(t.Dropdown,{...e})}function Tae(e){const{onPreviousClick:t,onNextClick:n,previousMonth:i,nextMonth:r,...a}=e,{components:l,classNames:u,labels:{labelPrevious:f,labelNext:m}}=kf(),h=k.useCallback(b=>{r&&(n==null||n(b))},[r,n]),g=k.useCallback(b=>{i&&(t==null||t(b))},[i,t]);return Y.createElement("nav",{...a},Y.createElement(l.PreviousMonthButton,{type:"button",className:u[Fe.PreviousMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":f(i),onClick:g},Y.createElement(l.Chevron,{disabled:i?void 0:!0,className:u[Fe.Chevron],orientation:"left"})),Y.createElement(l.NextMonthButton,{type:"button",className:u[Fe.NextMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":m(r),onClick:h},Y.createElement(l.Chevron,{disabled:r?void 0:!0,orientation:"right",className:u[Fe.Chevron]})))}function Rae(e){const{components:t}=kf();return Y.createElement(t.Button,{...e})}function $ae(e){return Y.createElement("option",{...e})}function Nae(e){const{components:t}=kf();return Y.createElement(t.Button,{...e})}function Dae(e){const{rootRef:t,...n}=e;return Y.createElement("div",{...n,ref:t})}function Cae(e){return Y.createElement("select",{...e})}function Aae(e){const{week:t,...n}=e;return Y.createElement("tr",{...n})}function jae(e){return Y.createElement("th",{...e})}function Mae(e){return Y.createElement("thead",{"aria-hidden":!0},Y.createElement("tr",{...e}))}function Iae(e){const{week:t,...n}=e;return Y.createElement("th",{...n})}function Pae(e){return Y.createElement("th",{...e})}function zae(e){return Y.createElement("tbody",{...e})}function Uae(e){const{components:t}=kf();return Y.createElement(t.Dropdown,{...e})}const Lae=Object.freeze(Object.defineProperty({__proto__:null,Button:hae,CaptionLabel:pae,Chevron:gae,Day:vae,DayButton:yae,Dropdown:bae,DropdownNav:_ae,Footer:Sae,Month:wae,MonthCaption:xae,MonthGrid:Eae,Months:kae,MonthsDropdown:Oae,Nav:Tae,NextMonthButton:Rae,Option:$ae,PreviousMonthButton:Nae,Root:Dae,Select:Cae,Week:Aae,WeekNumber:Iae,WeekNumberHeader:Pae,Weekday:jae,Weekdays:Mae,Weeks:zae,YearsDropdown:Uae},Symbol.toStringTag,{value:"Module"}));function bo(e,t,n=!1,i=Hi){let{from:r,to:a}=e;const{differenceInCalendarDays:l,isSameDay:u}=i;return r&&a?(l(a,r)<0&&([r,a]=[a,r]),l(t,r)>=(n?1:0)&&l(a,t)>=(n?1:0)):!n&&a?u(a,t):!n&&r?u(r,t):!1}function B2(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function mx(e){return!!(e&&typeof e=="object"&&"from"in e)}function V2(e){return!!(e&&typeof e=="object"&&"after"in e)}function H2(e){return!!(e&&typeof e=="object"&&"before"in e)}function q2(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Z2(e,t){return Array.isArray(e)&&e.every(t.isDate)}function ji(e,t,n=Hi){const i=Array.isArray(t)?t:[t],{isSameDay:r,differenceInCalendarDays:a,isAfter:l}=n;return i.some(u=>{if(typeof u=="boolean")return u;if(n.isDate(u))return r(e,u);if(Z2(u,n))return u.includes(e);if(mx(u))return bo(u,e,!1,n);if(q2(u))return Array.isArray(u.dayOfWeek)?u.dayOfWeek.includes(e.getDay()):u.dayOfWeek===e.getDay();if(B2(u)){const f=a(u.before,e),m=a(u.after,e),h=f>0,g=m<0;return l(u.before,u.after)?g&&h:h||g}return V2(u)?a(e,u.after)>0:H2(u)?a(u.before,e)>0:typeof u=="function"?u(e):!1})}function Fae(e,t,n,i,r){const{disabled:a,hidden:l,modifiers:u,showOutsideDays:f,broadcastCalendar:m,today:h}=t,{isSameDay:g,isSameMonth:b,startOfMonth:_,isBefore:S,endOfMonth:w,isAfter:x}=r,E=n&&_(n),O=i&&w(i),R={[Vt.focused]:[],[Vt.outside]:[],[Vt.disabled]:[],[Vt.hidden]:[],[Vt.today]:[]},$={};for(const N of e){const{date:M,displayMonth:C}=N,I=!!(C&&!b(M,C)),V=!!(E&&S(M,E)),L=!!(O&&x(M,O)),K=!!(a&&ji(M,a,r)),H=!!(l&&ji(M,l,r))||V||L||!m&&!f&&I||m&&f===!1&&I,F=g(M,h??r.today());
324I&&R.outside.push(N),K&&R.disabled.push(N),H&&R.hidden.push(N),F&&R.today.push(N),u&&Object.keys(u).forEach(ae=>{const ue=u==null?void 0:u[ae];ue&&ji(M,ue,r)&&($[ae]?$[ae].push(N):$[ae]=[N])})}return N=>{const M={[Vt.focused]:!1,[Vt.disabled]:!1,[Vt.hidden]:!1,[Vt.outside]:!1,[Vt.today]:!1},C={};for(const I in R){const V=R[I];M[I]=V.some(L=>L===N)}for(const I in $)C[I]=$[I].some(V=>V===N);return{...M,...C}}}function Bae(e,t,n={}){return Object.entries(e).filter(([,r])=>r===!0).reduce((r,[a])=>(n[a]?r.push(n[a]):t[Vt[a]]?r.push(t[Vt[a]]):t[si[a]]&&r.push(t[si[a]]),r),[t[Fe.Day]])}function Vae(e){return{...Lae,...e}}function Hae(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,i])=>{n.startsWith("data-")&&(t[n]=i)}),t}function hx(){const e={};for(const t in Fe)e[Fe[t]]=`rdp-${Fe[t]}`;for(const t in Vt)e[Vt[t]]=`rdp-${Vt[t]}`;for(const t in si)e[si[t]]=`rdp-${si[t]}`;for(const t in wr)e[wr[t]]=`rdp-${wr[t]}`;return e}function Y2(e,t,n){return(n??new Dr(t)).formatMonthYear(e)}const qae=Y2;function Zae(e,t,n){return(n??new Dr(t)).format(e,"d")}function Yae(e,t=Hi){return t.format(e,"LLLL")}function Wae(e,t,n){return(n??new Dr(t)).format(e,"cccccc")}function Gae(e,t=Hi){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Kae(){return""}function W2(e,t=Hi){return t.format(e,"yyyy")}const Xae=W2,Qae=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Y2,formatDay:Zae,formatMonthCaption:qae,formatMonthDropdown:Yae,formatWeekNumber:Gae,formatWeekNumberHeader:Kae,formatWeekdayName:Wae,formatYearCaption:Xae,formatYearDropdown:W2},Symbol.toStringTag,{value:"Module"}));function Jae(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Qae,...e}}function ese(e,t,n,i,r){const{startOfMonth:a,startOfYear:l,endOfYear:u,eachMonthOfInterval:f,getMonth:m}=r;return f({start:l(e),end:u(e)}).map(b=>{const _=i.formatMonthDropdown(b,r),S=m(b),w=t&&b<a(t)||n&&b>a(n)||!1;return{value:S,label:_,disabled:w}})}function tse(e,t={},n={}){let i={...t==null?void 0:t[Fe.Day]};return Object.entries(e).filter(([,r])=>r===!0).forEach(([r])=>{i={...i,...n==null?void 0:n[r]}}),i}function nse(e,t,n){const i=e.today(),r=t?e.startOfISOWeek(i):e.startOfWeek(i),a=[];for(let l=0;l<7;l++){const u=e.addDays(r,l);a.push(u)}return a}function rse(e,t,n,i,r=!1){if(!e||!t)return;const{startOfYear:a,endOfYear:l,eachYearOfInterval:u,getYear:f}=i,m=a(e),h=l(t),g=u({start:m,end:h});return r&&g.reverse(),g.map(b=>{const _=n.formatYearDropdown(b,i);return{value:f(b),label:_,disabled:!1}})}function G2(e,t,n,i){let r=(i??new Dr(n)).format(e,"PPPP");return t.today&&(r=`Today, ${r}`),t.selected&&(r=`${r}, selected`),r}const ise=G2;function K2(e,t,n){return(n??new Dr(t)).formatMonthYear(e)}const ose=K2;function ase(e,t,n,i){let r=(i??new Dr(n)).format(e,"PPPP");return t!=null&&t.today&&(r=`Today, ${r}`),r}function sse(e){return"Choose the Month"}function lse(){return""}function cse(e){return"Go to the Next Month"}function use(e){return"Go to the Previous Month"}function dse(e,t,n){return(n??new Dr(t)).format(e,"cccc")}function fse(e,t){return`Week ${e}`}function mse(e){return"Week Number"}function hse(e){return"Choose the Year"}const pse=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:ose,labelDay:ise,labelDayButton:G2,labelGrid:K2,labelGridcell:ase,labelMonthDropdown:sse,labelNav:lse,labelNext:cse,labelPrevious:use,labelWeekNumber:fse,labelWeekNumberHeader:mse,labelWeekday:dse,labelYearDropdown:hse},Symbol.toStringTag,{value:"Module"})),Of=e=>e instanceof HTMLElement?e:null,$b=e=>[...e.querySelectorAll("[data-animated-month]")??[]],gse=e=>Of(e.querySelector("[data-animated-month]")),Nb=e=>Of(e.querySelector("[data-animated-caption]")),Db=e=>Of(e.querySelector("[data-animated-weeks]")),vse=e=>Of(e.querySelector("[data-animated-nav]")),yse=e=>Of(e.querySelector("[data-animated-weekdays]"));function bse(e,t,{classNames:n,months:i,focused:r,dateLib:a}){const l=k.useRef(null),u=k.useRef(i),f=k.useRef(!1);k.useLayoutEffect(()=>{const m=u.current;if(u.current=i,!t||!e.current||!(e.current instanceof HTMLElement)||i.length===0||m.length===0||i.length!==m.length)return;const h=a.isSameMonth(i[0].date,m[0].date),g=a.isAfter(i[0].date,m[0].date),b=g?n[wr.caption_after_enter]:n[wr.caption_before_enter],_=g?n[wr.weeks_after_enter]:n[wr.weeks_before_enter],S=l.current,w=e.current.cloneNode(!0);
324if(w instanceof HTMLElement?($b(w).forEach(R=>{if(!(R instanceof HTMLElement))return;const $=gse(R);$&&R.contains($)&&R.removeChild($);const N=Nb(R);N&&N.classList.remove(b);const M=Db(R);M&&M.classList.remove(_)}),l.current=w):l.current=null,f.current||h||r)return;const x=S instanceof HTMLElement?$b(S):[],E=$b(e.current);if(E!=null&&E.every(O=>O instanceof HTMLElement)&&x&&x.every(O=>O instanceof HTMLElement)){f.current=!0,e.current.style.isolation="isolate";const O=vse(e.current);O&&(O.style.zIndex="1"),E.forEach((R,$)=>{const N=x[$];if(!N)return;R.style.position="relative",R.style.overflow="hidden";const M=Nb(R);M&&M.classList.add(b);const C=Db(R);C&&C.classList.add(_);const I=()=>{f.current=!1,e.current&&(e.current.style.isolation=""),O&&(O.style.zIndex=""),M&&M.classList.remove(b),C&&C.classList.remove(_),R.style.position="",R.style.overflow="",R.contains(N)&&R.removeChild(N)};N.style.pointerEvents="none",N.style.position="absolute",N.style.overflow="hidden",N.setAttribute("aria-hidden","true");const V=yse(N);V&&(V.style.opacity="0");const L=Nb(N);L&&(L.classList.add(g?n[wr.caption_before_exit]:n[wr.caption_after_exit]),L.addEventListener("animationend",I));const K=Db(N);K&&K.classList.add(g?n[wr.weeks_before_exit]:n[wr.weeks_after_exit]),R.insertBefore(N,R.firstChild)})}})}function _se(e,t,n,i){const r=e[0],a=e[e.length-1],{ISOWeek:l,fixedWeeks:u,broadcastCalendar:f}=n??{},{addDays:m,differenceInCalendarDays:h,differenceInCalendarMonths:g,endOfBroadcastWeek:b,endOfISOWeek:_,endOfMonth:S,endOfWeek:w,isAfter:x,startOfBroadcastWeek:E,startOfISOWeek:O,startOfWeek:R}=i,$=f?E(r,i):l?O(r):R(r),N=f?b(a):l?_(S(a)):w(S(a)),M=h(N,$),C=g(a,r)+1,I=[];for(let K=0;K<=M;K++){const H=m($,K);if(t&&x(H,t))break;I.push(H)}const L=(f?35:42)*C;if(u&&I.length<L){const K=L-I.length;for(let H=0;H<K;H++){const F=m(I[I.length-1],1);I.push(F)}}return I}function Sse(e){const t=[];return e.reduce((n,i)=>{const r=i.weeks.reduce((a,l)=>a.concat(l.days.slice()),t.slice());return n.concat(r.slice())},t.slice())}function wse(e,t,n,i){const{numberOfMonths:r=1}=n,a=[];for(let l=0;l<r;l++){const u=i.addMonths(e,l);if(t&&u>t)break;a.push(u)}return a}function q$(e,t,n,i){const{month:r,defaultMonth:a,today:l=i.today(),numberOfMonths:u=1}=e;let f=r||a||l;const{differenceInCalendarMonths:m,addMonths:h,startOfMonth:g}=i;if(n&&m(n,f)<u-1){const b=-1*(u-1);f=h(n,b)}return t&&m(f,t)<0&&(f=t),g(f)}function xse(e,t,n,i){const{addDays:r,endOfBroadcastWeek:a,endOfISOWeek:l,endOfMonth:u,endOfWeek:f,getISOWeek:m,getWeek:h,startOfBroadcastWeek:g,startOfISOWeek:b,startOfWeek:_}=i,S=e.reduce((w,x)=>{const E=n.broadcastCalendar?g(x,i):n.ISOWeek?b(x):_(x),O=n.broadcastCalendar?a(x):n.ISOWeek?l(u(x)):f(u(x)),R=t.filter(C=>C>=E&&C<=O),$=n.broadcastCalendar?35:42;if(n.fixedWeeks&&R.length<$){const C=t.filter(I=>{const V=$-R.length;return I>O&&I<=r(O,V)});R.push(...C)}const N=R.reduce((C,I)=>{const V=n.ISOWeek?m(I):h(I),L=C.find(H=>H.weekNumber===V),K=new L2(I,x,i);return L?L.days.push(K):C.push(new mae(V,[K])),C},[]),M=new fae(x,N);return w.push(M),w},[]);return n.reverseMonths?S.reverse():S}function Ese(e,t){let{startMonth:n,endMonth:i}=e;const{startOfYear:r,startOfDay:a,startOfMonth:l,endOfMonth:u,addYears:f,endOfYear:m,newDate:h,today:g}=t,{fromYear:b,toYear:_,fromMonth:S,toMonth:w}=e;!n&&S&&(n=S),!n&&b&&(n=t.newDate(b,0,1)),!i&&w&&(i=w),!i&&_&&(i=h(_,11,31));const x=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=l(n):b?n=h(b,0,1):!n&&x&&(n=r(f(e.today??g(),-100))),i?i=u(i):_?i=h(_,11,31):!i&&x&&(i=m(e.today??g())),[n&&a(n),i&&a(i)]}function kse(e,t,n,i){if(n.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:a=1}=n,{startOfMonth:l,addMonths:u,differenceInCalendarMonths:f}=i,m=r?a:1,h=l(e);if(!t)return u(h,m);if(!(f(t,e)<a))return u(h,m)}function Ose(e,t,n,i){if(n.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:a}=n,{startOfMonth:l,addMonths:u,differenceInCalendarMonths:f}=i,m=r?a??1:1,h=l(e);if(!t)return u(h,-m);
324if(!(f(h,t)<=0))return u(h,-m)}function Tse(e){const t=[];return e.reduce((n,i)=>n.concat(i.weeks.slice()),t.slice())}function Eg(e,t){const[n,i]=k.useState(e);return[t===void 0?n:t,i]}function Rse(e,t){const[n,i]=Ese(e,t),{startOfMonth:r,endOfMonth:a}=t,l=q$(e,n,i,t),[u,f]=Eg(l,e.month?l:void 0);k.useEffect(()=>{const M=q$(e,n,i,t);f(M)},[e.timeZone]);const m=wse(u,i,e,t),h=_se(m,e.endMonth?a(e.endMonth):void 0,e,t),g=xse(m,h,e,t),b=Tse(g),_=Sse(g),S=Ose(u,n,e,t),w=kse(u,i,e,t),{disableNavigation:x,onMonthChange:E}=e,O=M=>b.some(C=>C.days.some(I=>I.isEqualTo(M))),R=M=>{if(x)return;let C=r(M);n&&C<r(n)&&(C=r(n)),i&&C>r(i)&&(C=r(i)),f(C),E==null||E(C)};return{months:g,weeks:b,days:_,navStart:n,navEnd:i,previousMonth:S,nextMonth:w,goToMonth:R,goToDay:M=>{O(M)||R(M.date)}}}var ki;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(ki||(ki={}));function Z$(e){return!e[Vt.disabled]&&!e[Vt.hidden]&&!e[Vt.outside]}function $se(e,t,n,i){let r,a=-1;for(const l of e){const u=t(l);Z$(u)&&(u[Vt.focused]&&a<ki.FocusedModifier?(r=l,a=ki.FocusedModifier):i!=null&&i.isEqualTo(l)&&a<ki.LastFocused?(r=l,a=ki.LastFocused):n(l.date)&&a<ki.Selected?(r=l,a=ki.Selected):u[Vt.today]&&a<ki.Today&&(r=l,a=ki.Today))}return r||(r=e.find(l=>Z$(t(l)))),r}function Nse(e,t,n,i,r,a,l){const{ISOWeek:u,broadcastCalendar:f}=a,{addDays:m,addMonths:h,addWeeks:g,addYears:b,endOfBroadcastWeek:_,endOfISOWeek:S,endOfWeek:w,max:x,min:E,startOfBroadcastWeek:O,startOfISOWeek:R,startOfWeek:$}=l;let M={day:m,week:g,month:h,year:b,startOfWeek:C=>f?O(C,l):u?R(C):$(C),endOfWeek:C=>f?_(C):u?S(C):w(C)}[e](n,t==="after"?1:-1);return t==="before"&&i?M=x([i,M]):t==="after"&&r&&(M=E([r,M])),M}function X2(e,t,n,i,r,a,l,u=0){if(u>365)return;const f=Nse(e,t,n.date,i,r,a,l),m=!!(a.disabled&&ji(f,a.disabled,l)),h=!!(a.hidden&&ji(f,a.hidden,l)),g=f,b=new L2(f,g,l);return!m&&!h?b:X2(e,t,b,i,r,a,l,u+1)}function Dse(e,t,n,i,r){const{autoFocus:a}=e,[l,u]=k.useState(),f=$se(t.days,n,i||(()=>!1),l),[m,h]=k.useState(a?f:void 0);return{isFocusTarget:w=>!!(f!=null&&f.isEqualTo(w)),setFocused:h,focused:m,blur:()=>{u(m),h(void 0)},moveFocus:(w,x)=>{if(!m)return;const E=X2(w,x,m,t.navStart,t.navEnd,e,r);E&&(e.disableNavigation&&!t.days.some(R=>R.isEqualTo(E))||(t.goToDay(E),h(E)))}}}function Cse(e,t){const{selected:n,required:i,onSelect:r}=e,[a,l]=Eg(n,r?n:void 0),u=r?n:a,{isSameDay:f}=t,m=_=>(u==null?void 0:u.some(S=>f(S,_)))??!1,{min:h,max:g}=e;return{selected:u,select:(_,S,w)=>{let x=[...u??[]];if(m(_)){if((u==null?void 0:u.length)===h||i&&(u==null?void 0:u.length)===1)return;x=u==null?void 0:u.filter(E=>!f(E,_))}else(u==null?void 0:u.length)===g?x=[_]:x=[...x,_];return r||l(x),r==null||r(x,_,S,w),x},isSelected:m}}function Ase(e,t,n=0,i=0,r=!1,a=Hi){const{from:l,to:u}=t||{},{isSameDay:f,isAfter:m,isBefore:h}=a;let g;if(!l&&!u)g={from:e,to:n>0?void 0:e};else if(l&&!u)f(l,e)?n===0?g={from:l,to:e}:r?g={from:l,to:void 0}:g=void 0:h(e,l)?g={from:e,to:l}:g={from:l,to:e};else if(l&&u)if(f(l,e)&&f(u,e))r?g={from:l,to:u}:g=void 0;else if(f(l,e))g={from:l,to:n>0?void 0:e};else if(f(u,e))g={from:e,to:n>0?void 0:e};else if(h(e,l))g={from:e,to:u};else if(m(e,l))g={from:l,to:e};else if(m(e,u))g={from:l,to:e};else throw new Error("Invalid range");if(g!=null&&g.from&&(g!=null&&g.to)){const b=a.differenceInCalendarDays(g.to,g.from);i>0&&b>i?g={from:e,to:void 0}:n>1&&b<n&&(g={from:e,to:void 0})}return g}function jse(e,t,n=Hi){const i=Array.isArray(t)?t:[t];let r=e.from;const a=n.differenceInCalendarDays(e.to,e.from),l=Math.min(a,6);for(let u=0;u<=l;u++){if(i.includes(r.getDay()))return!0;r=n.addDays(r,1)}return!1}function Y$(e,t,n=Hi){return bo(e,t.from,!1,n)||bo(e,t.to,!1,n)||bo(t,e.from,!1,n)||bo(t,e.to,!1,n)}function Mse(e,t,n=Hi){const i=Array.isArray(t)?t:[t];if(i.filter(u=>typeof u!="function").some(u=>typeof u=="boolean"?u:n.isDate(u)?bo(e,u,!1,n):Z2(u,n)?u.some(f=>bo(e,f,!1,n)):mx(u)?u.from&&u.to?Y$(e,{from:u.from,to:u.to},n):!1:q2(u)?jse(e,u.dayOfWeek,n):B2(u)?n.isAfter(u.before,u.after)?Y$(e,{from:n.addDays(u.after,1),to:n.addDays(u.before,-1)},n):ji(e.from,u,n)||ji(e.to,u,n):V2(u)||H2(u)?ji(e.from,u,n)||ji(e.to,u,n):!1))return!0;const l=i.filter(u=>typeof u=="function");if(l.length){let u=e.from;const f=n.differenceInCalendarDays(e.to,e.from);for(let m=0;m<=f;m++){if(l.some(h=>h(u)))return!0;u=n.addDays(u,1)}}return!1}function Ise(e,t){const{disabled:n,excludeDisabled:i,selected:r,required:a,onSelect:l}=e,[u,f]=Eg(r,l?r:void 0),m=l?r:u;return{selected:m,select:(b,_,S)=>{const{min:w,max:x}=e,E=b?Ase(b,m,w,x,a,t):void 0;return i&&n&&(E!=null&&E.from)&&E.to&&Mse({from:E.from,to:E.to},n,t)&&(E.from=b,E.to=void 0),l||f(E),l==null||l(E,b,_,S),E},isSelected:b=>m&&bo(m,b,!1,t)}}function Pse(e,t){const{selected:n,required:i,onSelect:r}=e,[a,l]=Eg(n,r?n:void 0),u=r?n:a,{isSameDay:f}=t;return{selected:u,select:(g,b,_)=>{let S=g;return!i&&u&&u&&f(g,u)&&(S=void 0),r||l(S),r==null||r(S,g,b,_),S},isSelected:g=>u?f(u,g):!1}
324}function zse(e,t){const n=Pse(e,t),i=Cse(e,t),r=Ise(e,t);switch(e.mode){case"single":return n;case"multiple":return i;case"range":return r;default:return}}function Use(e){var Zi;let t=e;t.timeZone&&(t={...e},t.today&&(t.today=new zn(t.today,t.timeZone)),t.month&&(t.month=new zn(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new zn(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new zn(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new zn(t.endMonth,t.timeZone)),t.mode==="single"&&t.selected?t.selected=new zn(t.selected,t.timeZone):t.mode==="multiple"&&t.selected?t.selected=(Zi=t.selected)==null?void 0:Zi.map(xe=>new zn(xe,t.timeZone)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?new zn(t.selected.from,t.timeZone):void 0,to:t.selected.to?new zn(t.selected.to,t.timeZone):void 0}));const{components:n,formatters:i,labels:r,dateLib:a,locale:l,classNames:u}=k.useMemo(()=>{const xe={...fx,...t.locale};return{dateLib:new Dr({locale:xe,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:Vae(t.components),formatters:Jae(t.formatters),labels:{...pse,...t.labels},locale:xe,classNames:{...hx(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]),{captionLayout:f,mode:m,navLayout:h,numberOfMonths:g=1,onDayBlur:b,onDayClick:_,onDayFocus:S,onDayKeyDown:w,onDayMouseEnter:x,onDayMouseLeave:E,onNextClick:O,onPrevClick:R,showWeekNumber:$,styles:N}=t,{formatCaption:M,formatDay:C,formatMonthDropdown:I,formatWeekNumber:V,formatWeekNumberHeader:L,formatWeekdayName:K,formatYearDropdown:H}=i,F=Rse(t,a),{days:ae,months:ue,navStart:j,navEnd:G,previousMonth:B,nextMonth:fe,goToMonth:A}=F,ne=Fae(ae,t,j,G,a),{isSelected:Z,select:X,selected:le}=zse(t,a)??{},{blur:me,focused:be,isFocusTarget:ce,moveFocus:Ee,setFocused:Ne}=Dse(t,F,ne,Z??(()=>!1),a),{labelDayButton:Ie,labelGridcell:Ve,labelGrid:Pe,labelMonthDropdown:$t,labelNav:_e,labelPrevious:Me,labelNext:yt,labelWeekday:st,labelWeekNumber:Lt,labelWeekNumberHeader:et,labelYearDropdown:P}=r,Q=k.useMemo(()=>nse(a,t.ISOWeek),[a,t.ISOWeek]),oe=m!==void 0||_!==void 0,he=k.useCallback(()=>{B&&(A(B),R==null||R(B))},[B,A,R]),ge=k.useCallback(()=>{fe&&(A(fe),O==null||O(fe))},[A,fe,O]),ve=k.useCallback((xe,ze)=>Re=>{Re.preventDefault(),Re.stopPropagation(),Ne(xe),X==null||X(xe.date,ze,Re),_==null||_(xe.date,ze,Re)},[X,_,Ne]),Oe=k.useCallback((xe,ze)=>Re=>{Ne(xe),S==null||S(xe.date,ze,Re)},[S,Ne]),Be=k.useCallback((xe,ze)=>Re=>{me(),b==null||b(xe.date,ze,Re)},[me,b]),Xe=k.useCallback((xe,ze)=>Re=>{const De={ArrowLeft:[Re.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[Re.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[Re.shiftKey?"year":"week","after"],ArrowUp:[Re.shiftKey?"year":"week","before"],PageUp:[Re.shiftKey?"year":"month","before"],PageDown:[Re.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(De[Re.key]){Re.preventDefault(),Re.stopPropagation();const[dt,We]=De[Re.key];Ee(dt,We)}w==null||w(xe.date,ze,Re)},[Ee,w,t.dir]),vt=k.useCallback((xe,ze)=>Re=>{x==null||x(xe.date,ze,Re)},[x]),mr=k.useCallback((xe,ze)=>Re=>{E==null||E(xe.date,ze,Re)},[E]),jn=k.useCallback(xe=>ze=>{const Re=Number(ze.target.value),De=a.setMonth(a.startOfMonth(xe),Re);A(De)},[a,A]),hr=k.useCallback(xe=>ze=>{const Re=Number(ze.target.value),De=a.setYear(a.startOfMonth(xe),Re);A(De)},[a,A]),{className:Xt,style:Mn}=k.useMemo(()=>({className:[u[Fe.Root],t.className].filter(Boolean).join(" "),style:{...N==null?void 0:N[Fe.Root],...t.style}}),[u,t.className,t.style,N]),Bn=Hae(t),jr=k.useRef(null);bse(jr,!!t.animate,{classNames:u,months:ue,focused:be,dateLib:a});const Kr={dayPickerProps:t,selected:le,select:X,isSelected:Z,months:ue,nextMonth:fe,previousMonth:B,goToMonth:A,getModifiers:ne,components:n,classNames:u,styles:N,labels:r,formatters:i};return Y.createElement(F2.Provider,{value:Kr},Y.createElement(n.Root,{rootRef:t.animate?jr:void 0,className:Xt,style:Mn,dir:t.dir,id:t.
324id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Bn},Y.createElement(n.Months,{className:u[Fe.Months],style:N==null?void 0:N[Fe.Months]},!t.hideNavigation&&!h&&Y.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:u[Fe.Nav],style:N==null?void 0:N[Fe.Nav],"aria-label":_e(),onPreviousClick:he,onNextClick:ge,previousMonth:B,nextMonth:fe}),ue.map((xe,ze)=>Y.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:u[Fe.Month],style:N==null?void 0:N[Fe.Month],key:ze,displayIndex:ze,calendarMonth:xe},h==="around"&&!t.hideNavigation&&ze===0&&Y.createElement(n.PreviousMonthButton,{type:"button",className:u[Fe.PreviousMonthButton],tabIndex:B?void 0:-1,"aria-disabled":B?void 0:!0,"aria-label":Me(B),onClick:he,"data-animated-button":t.animate?"true":void 0},Y.createElement(n.Chevron,{disabled:B?void 0:!0,className:u[Fe.Chevron],orientation:t.dir==="rtl"?"right":"left"})),Y.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:u[Fe.MonthCaption],style:N==null?void 0:N[Fe.MonthCaption],calendarMonth:xe,displayIndex:ze},f!=null&&f.startsWith("dropdown")?Y.createElement(n.DropdownNav,{className:u[Fe.Dropdowns],style:N==null?void 0:N[Fe.Dropdowns]},(()=>{const Re=f==="dropdown"||f==="dropdown-months"?Y.createElement(n.MonthsDropdown,{key:"month",className:u[Fe.MonthsDropdown],"aria-label":$t(),classNames:u,components:n,disabled:!!t.disableNavigation,onChange:jn(xe.date),options:ese(xe.date,j,G,i,a),style:N==null?void 0:N[Fe.Dropdown],value:a.getMonth(xe.date)}):Y.createElement("span",{key:"month"},I(xe.date,a)),De=f==="dropdown"||f==="dropdown-years"?Y.createElement(n.YearsDropdown,{key:"year",className:u[Fe.YearsDropdown],"aria-label":P(a.options),classNames:u,components:n,disabled:!!t.disableNavigation,onChange:hr(xe.date),options:rse(j,G,i,a,!!t.reverseYears),style:N==null?void 0:N[Fe.Dropdown],value:a.getYear(xe.date)}):Y.createElement("span",{key:"year"},H(xe.date,a));return a.getMonthYearOrder()==="year-first"?[De,Re]:[Re,De]})(),Y.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},M(xe.date,a.options,a))):Y.createElement(n.CaptionLabel,{className:u[Fe.CaptionLabel],role:"status","aria-live":"polite"},M(xe.date,a.options,a))),h==="around"&&!t.hideNavigation&&ze===g-1&&Y.createElement(n.NextMonthButton,{type:"button",className:u[Fe.NextMonthButton],tabIndex:fe?void 0:-1,"aria-disabled":fe?void 0:!0,"aria-label":yt(fe),onClick:ge,"data-animated-button":t.animate?"true":void 0},Y.createElement(n.Chevron,{disabled:fe?void 0:!0,className:u[Fe.Chevron],orientation:t.dir==="rtl"?"left":"right"})),ze===g-1&&h==="after"&&!t.hideNavigation&&Y.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:u[Fe.Nav],style:N==null?void 0:N[Fe.Nav],"aria-label":_e(),onPreviousClick:he,onNextClick:ge,previousMonth:B,nextMonth:fe}),Y.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":m==="multiple"||m==="range","aria-label":Pe(xe.date,a.options,a)||void 0,className:u[Fe.MonthGrid],style:N==null?void 0:N[Fe.MonthGrid]},!t.hideWeekdays&&Y.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:u[Fe.Weekdays],style:N==null?void 0:N[Fe.Weekdays]},$&&Y.createElement(n.WeekNumberHeader,{"aria-label":et(a.options),className:u[Fe.WeekNumberHeader],style:N==null?void 0:N[Fe.WeekNumberHeader],scope:"col"},L()),Q.map(Re=>Y.createElement(n.Weekday,{"aria-label":st(Re,a.options,a),className:u[Fe.Weekday],key:String(Re),style:N==null?void 0:N[Fe.Weekday],scope:"col"},K(Re,a.options,a)))),Y.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:u[Fe.Weeks],style:N==null?void 0:N[Fe.Weeks]},xe.weeks.map(Re=>Y.createElement(n.Week,{className:u[Fe.Week],key:Re.weekNumber,style:N==null?void 0:N[Fe.Week],week:Re},$&&Y.createElement(n.WeekNumber,{week:Re,style:N==null?void 0:N[Fe.WeekNumber],"aria-label":Lt(Re.weekNumber,{locale:l}),className:u[Fe.WeekNumber],scope:"row",role:"rowheader"},V(Re.weekNumber,a)),Re.days.map(De=>{const{date:dt}=De,We=ne(De);
324if(We[Vt.focused]=!We.hidden&&!!(be!=null&&be.isEqualTo(De)),We[si.selected]=(Z==null?void 0:Z(dt))||We.selected,mx(le)){const{from:tr,to:nr}=le;We[si.range_start]=!!(tr&&nr&&a.isSameDay(dt,tr)),We[si.range_end]=!!(tr&&nr&&a.isSameDay(dt,nr)),We[si.range_middle]=bo(le,dt,!0,a)}const nn=tse(We,N,t.modifiersStyles),er=Bae(We,u,t.modifiersClassNames),Tn=!oe&&!We.hidden?Ve(dt,We,a.options,a):void 0;return Y.createElement(n.Day,{key:`${a.format(dt,"yyyy-MM-dd")}_${a.format(De.displayMonth,"yyyy-MM")}`,day:De,modifiers:We,className:er.join(" "),style:nn,role:"gridcell","aria-selected":We.selected||void 0,"aria-label":Tn,"data-day":a.format(dt,"yyyy-MM-dd"),"data-month":De.outside?a.format(dt,"yyyy-MM"):void 0,"data-selected":We.selected||void 0,"data-disabled":We.disabled||void 0,"data-hidden":We.hidden||void 0,"data-outside":De.outside||void 0,"data-focused":We.focused||void 0,"data-today":We.today||void 0},!We.hidden&&oe?Y.createElement(n.DayButton,{className:u[Fe.DayButton],style:N==null?void 0:N[Fe.DayButton],type:"button",day:De,modifiers:We,disabled:We.disabled||void 0,tabIndex:ce(De)?0:-1,"aria-label":Ie(dt,We,a.options,a),onClick:ve(De,We),onBlur:Be(De,We),onFocus:Oe(De,We),onKeyDown:Xe(De,We),onMouseEnter:vt(De,We),onMouseLeave:mr(De,We)},C(dt,a.options,a)):!We.hidden&&C(De.date,a.options,a))})))))))),t.footer&&Y.createElement(n.Footer,{className:u[Fe.Footer],style:N==null?void 0:N[Fe.Footer],role:"status","aria-live":"polite"},t.footer)))}function Mc({className:e,classNames:t,showOutsideDays:n=!1,captionLayout:i="dropdown",startMonth:r=new Date(1900,0),endMonth:a=new Date(2099,11),formatters:l,components:u,...f}){const m=hx();return v.jsx(Use,{showOutsideDays:n,className:ke("bg-background p-3",e),captionLayout:i,startMonth:r,endMonth:a,formatters:{formatMonthDropdown:h=>h.toLocaleString("default",{month:"short"}),formatWeekdayName:h=>h.toLocaleDateString("default",{weekday:"short"}),...l},classNames:{root:ke("w-fit rounded-lg",m.root),months:ke("flex gap-4 flex-col md:flex-row relative",m.months),month:ke("flex flex-col w-full gap-4",m.month),nav:ke("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between z-10 pointer-events-none",m.nav),button_previous:ke(Fh({variant:"ghost"}),"size-8 p-0 select-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed pointer-events-auto",m.button_previous),button_next:ke(Fh({variant:"ghost"}),"size-8 p-0 select-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed pointer-events-auto",m.button_next),month_caption:ke("flex items-center justify-center h-8 w-full px-8 relative",m.month_caption),dropdowns:ke("w-full flex items-center text-sm font-medium justify-center h-8 gap-1.5",m.dropdowns),dropdown_root:ke("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",m.dropdown_root),dropdown:ke("absolute bg-popover inset-0 opacity-0",m.dropdown),caption_label:ke("select-none font-medium",i==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8",m.caption_label),table:"w-full border-collapse",weekdays:ke("grid grid-cols-7",m.weekdays),weekday:ke("text-muted-foreground rounded-md font-normal text-xs select-none",m.weekday),week:ke("grid grid-cols-7 w-full mt-2",m.week),week_number_header:ke("select-none w-8",m.week_number_header),week_number:ke("text-xs select-none text-muted-foreground",m.week_number),day:ke("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md select-none aspect-square",f.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",m.day),range_start:ke("rounded-l-md bg-accent",m.range_start),range_middle:ke("rounded-none",m.range_middle),range_end:ke("rounded-r-md bg-accent",m.range_end),today:ke("text-accent-foreground font-semibold rounded-md data-[selected=true]:rounded-none",m.today),outside:ke("[&_button]:text-muted-foreground/60 [&_button]:font-light aria-selected:[&_button]:text-muted-foreground/60",m.outside),disabled:ke("text-muted-foreground opacity-50",m.disabled),hidden:ke("invisible",m.hidden),...t}
324,components:{Root:({className:h,rootRef:g,...b})=>v.jsx("div",{"data-slot":"calendar",ref:g,className:ke(h),...b}),Chevron:({className:h,orientation:g,...b})=>g==="left"?v.jsx(Bq,{className:ke("size-4",h),...b}):g==="down"?v.jsx(Ap,{className:ke("size-4",h),...b}):v.jsx(Hq,{className:ke("size-4",h),...b}),DayButton:Lse,WeekNumber:({children:h,week:g,...b})=>v.jsx("th",{...b,children:v.jsx("div",{className:"flex size-8 items-center justify-center text-center",children:h})}),...u},...f})}function Lse({className:e,day:t,modifiers:n,...i}){const r=hx(),a=k.useRef(null);return k.useEffect(()=>{var l;n.focused&&((l=a.current)==null||l.focus())},[n.focused]),v.jsx(it,{ref:a,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:ke("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground","data-[selected-single=true]:hover:not-disabled:bg-[color:color-mix(in_srgb,var(--color-primary)_80%,black_20%)]","data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground","data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground","data-[range-start=true]:hover:not-disabled:bg-[color:color-mix(in_srgb,var(--color-primary)_80%,black_20%)]","data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground","data-[range-end=true]:hover:not-disabled:bg-[color:color-mix(in_srgb,var(--color-primary)_80%,black_20%)]","flex aspect-square size-auto w-full min-w-8 flex-col gap-1 leading-none font-normal","data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md","data-[range-middle=true]:rounded-none","data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md",r.day,e),...i})}function as(e,t,n){if(!e)return n;const i=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getFullYear());switch(t){case"DD/MM/YYYY":return`${i}/${r}/${a}`;case"MM/DD/YYYY":return`${r}/${i}/${a}`;case"YYYY-MM-DD":return`${a}-${r}-${i}`}}function Fse(e){return e==="YYYY-MM-DD"?"-":"/"}function W$(e,t){const n=Fse(t),i=e.slice(0,8);return t==="YYYY-MM-DD"?i.length<=4?i:i.length<=6?`${i.slice(0,4)}${n}${i.slice(4)}`:`${i.slice(0,4)}${n}${i.slice(4,6)}${n}${i.slice(6)}`:i.length<=2?i:i.length<=4?`${i.slice(0,2)}${n}${i.slice(2)}`:`${i.slice(0,2)}${n}${i.slice(2,4)}${n}${i.slice(4)}`}function G$(e,t){if(e.length!==8)return;let n,i,r;switch(t){case"DD/MM/YYYY":n=Number.parseInt(e.slice(0,2),10),i=Number.parseInt(e.slice(2,4),10),r=Number.parseInt(e.slice(4,8),10);break;case"MM/DD/YYYY":i=Number.parseInt(e.slice(0,2),10),n=Number.parseInt(e.slice(2,4),10),r=Number.parseInt(e.slice(4,8),10);break;case"YYYY-MM-DD":r=Number.parseInt(e.slice(0,4),10),i=Number.parseInt(e.slice(4,6),10),n=Number.parseInt(e.slice(6,8),10);break}if(i<1||i>12||n<1||n>31||r<1||r>9999)return;const a=new Date(r,i-1,n);if(!(a.getFullYear()!==r||a.getMonth()!==i-1||a.getDate()!==n))return a}function Q2(e,t,n,i,r){const a=i??e??new Date(1900,0),l=r??t??new Date(2099,11),u=[];return e&&u.push({before:e}),t&&u.push({after:t}),n&&u.push(...Array.isArray(n)?n:[n]),{startMonth:a,endMonth:l,disabled:u.length>0?u:void 0}}function K$(e,t,n,i){return t&&e<Yn(t)||n&&e>Yn(n)?!1:i?!ji(e,Array.isArray(i)?i:[i]):!0}const Bse="w-60 cursor-default gap-2 bg-background hover:not-disabled:bg-[image:linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)),linear-gradient(var(--color-input),var(--color-input))] hover:not-disabled:text-accent-foreground active:opacity-60 disabled:opacity-70 disabled:bg-[image:linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)),linear-gradient(var(--color-subtle),var(--color-subtle))] disabled:text-subtle-foreground aria-invalid:border-destructive-border aria-invalid:shadow-none aria-invalid:hover:not-disabled:bg-destructive aria-invalid:focus-visible:border-destructive-border aria-invalid:focus-visible:ring-destructive/20 aria-invalid:focus-visible:ring-[3px]",X$=[Fh({variant:"ghost"}),"size-9 p-0 select-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed pointer-events-auto"].join(" "),J2={root:"w-full max-w-[380px] mx-auto p-0",button_previous:X$,button_next:X$,month_caption:"flex items-center justify-center h-9 w-full px-10 relative",dropdowns:"w-full flex items-center text-sm font-medium justify-center h-9 gap-1.5"},Vse={root:"w-full max-w-[280px] mx-auto p-0",months:"flex flex-col gap-2 relative",month:"flex flex-col w-full gap-2",week:"flex w-full mt-0.5"},eU=k.createContext(null);function kg(){const e=k.useContext(eU);if(!e)throw new Error("DatePicker primitives must be used within a DatePickerRoot");return e}function Hse({mode:e="single",isMobile:t=!1,value:n,defaultValue:i,onValueChange:r,open:a,onOpenChange:l,disabled:u,minDate:f,maxDate:m,disabledDates:h,children:g}){const[b,_]=k.useState(i),[S,w]=k.useState(!1),x=n!==void 0?n:b,E=a!==void 0?a:S,O=l??w,[R,$]=k.useState(x),[N,M]=k.useState(()=>{if(e==="range"){const H=x;return(H==null?void 0:H.from)??new Date}return x??new Date}),C=k.useRef(E);k.useEffect(()=>{if(E&&!C.current)if($(x),e==="range"){const H=x;M((H==null?void 0:H.from)??new Date)}else M(x??new Date);C.current=E},[E,x,e]);const I=k.useCallback(H=>{const F=H!==void 0?H:R;n===void 0&&_(F),r==null||r(F),O(!1)},[R,n,r,O]),V=k.useCallback(()=>{O(!1)},[O]);f&&m&&Yn(f)>
324Yn(m)&&console.warn("DatePicker: minDate is after maxDate. Constraints will be ignored.");const L=k.useMemo(()=>({isMobile:t,mode:e,open:E,onOpenChange:O,draftValue:R,setDraftValue:$,draftMonth:N,setDraftMonth:M,confirmedValue:x,handleConfirm:I,handleCancel:V,disabled:u,minDate:f&&m&&Yn(f)>Yn(m)?void 0:f,maxDate:f&&m&&Yn(f)>Yn(m)?void 0:m,disabledDates:f&&m&&Yn(f)>Yn(m)?void 0:h}),[t,e,E,O,R,N,x,I,V,u,f,m,h]),K=t?Z0:ex;return v.jsx(eU.Provider,{value:L,children:v.jsx(K,{open:E,onOpenChange:O,children:g})})}function qse({children:e,className:t}){const{isMobile:n,disabled:i}=kg(),r=n?Y0:tx;return v.jsx(r,{asChild:!0,disabled:i,className:t,children:e})}function Zse({numberOfMonths:e=1,align:t="start",calendarProps:n,className:i,drawerTitle:r="Selecionar data",drawerDescription:a="Selecione uma data no calendário"}){const{isMobile:l,mode:u,draftValue:f,setDraftValue:m,draftMonth:h,setDraftMonth:g,handleConfirm:b,handleCancel:_,minDate:S,maxDate:w,disabledDates:x}=kg(),E=Q2(S,w,x,n==null?void 0:n.startMonth,n==null?void 0:n.endMonth),O=R=>{m(R),u==="single"&&R instanceof Date&&g(R)};if(l){const R=u==="range",$={...J2,...R?Vse:{},...n==null?void 0:n.classNames};return v.jsxs(W0,{className:ke(R?"h-[90vh]":"h-[70vh]",i),showCloseButton:!1,children:[v.jsx(G0,{className:"sr-only",children:r}),v.jsx(K0,{className:"sr-only",children:a}),v.jsx("div",{className:"flex flex-col p-4 pb-0",children:u==="single"?v.jsx(Mc,{mode:"single",startMonth:E.startMonth,endMonth:E.endMonth,disabled:E.disabled,month:h,onMonthChange:g,selected:f,onSelect:N=>O(N),numberOfMonths:e,showOutsideDays:!0,autoFocus:!0,...n,classNames:$}):v.jsx(Mc,{mode:"range",startMonth:E.startMonth,endMonth:E.endMonth,disabled:E.disabled,month:h,onMonthChange:g,selected:f,onSelect:N=>O(N),numberOfMonths:e,showOutsideDays:!1,autoFocus:!0,...n,classNames:$})}),v.jsxs(K4,{className:"flex-row border-t gap-2 pt-4 shrink-0",children:[v.jsx(G4,{asChild:!0,children:v.jsx(it,{variant:"outline",className:"flex-1",onClick:_,children:"Cancelar"})}),v.jsx(it,{className:"flex-1",onClick:()=>b(),children:"Selecionar"})]})]})}return v.jsx(nx,{className:ke("w-auto p-0",i),align:t,children:u==="single"?v.jsx(Yse,{draftValue:f,draftMonth:h,setDraftMonth:g,numberOfMonths:e,calendarProps:n,constraints:E}):v.jsx(Wse,{draftValue:f,onSelect:O,draftMonth:h,setDraftMonth:g,numberOfMonths:e,calendarProps:n,constraints:E})})}function Yse({draftValue:e,draftMonth:t,setDraftMonth:n,numberOfMonths:i,calendarProps:r,constraints:a}){const{handleConfirm:l,setDraftValue:u}=kg(),f=m=>{u(m),l(m)};return v.jsx(Mc,{mode:"single",startMonth:a.startMonth,endMonth:a.endMonth,disabled:a.disabled,month:t,onMonthChange:n,selected:e,onSelect:f,numberOfMonths:i,showOutsideDays:!0,autoFocus:!0,...r})}function Wse({draftValue:e,onSelect:t,draftMonth:n,setDraftMonth:i,numberOfMonths:r,calendarProps:a,constraints:l}){return v.jsx(Mc,{mode:"range",startMonth:l.startMonth,endMonth:l.endMonth,disabled:l.disabled,month:n,onMonthChange:i,selected:e,onSelect:t,numberOfMonths:r,showOutsideDays:!1,autoFocus:!0,...a})}function tU({className:e,type:t="manual-input",value:n,defaultValue:i,onValueChange:r,placeholder:a="Pick a date",format:l="DD/MM/YYYY",disabled:u,isDesktop:f,captionLayout:m="dropdown",minDate:h,maxDate:g,disabledDates:b,id:_,ref:S,"aria-invalid":w,"aria-describedby":x,...E}){const O=Q4(),$=!(f!==void 0?f:O);return t==="manual-input"?v.jsx(Kse,{ref:S,className:e,format:l,placeholder:a,disabled:u,isMobile:$,captionLayout:m,id:_,ariaInvalid:w,ariaDescribedBy:x,value:n,defaultValue:i,onValueChange:r,minDate:h,maxDate:g,disabledDates:b}):v.jsx(Hse,{mode:"single",isMobile:$,value:n,defaultValue:i,onValueChange:r,disabled:u,minDate:h,maxDate:g,disabledDates:b,children:v.jsx(Gse,{type:t,format:l,placeholder:a,className:e,ariaInvalid:w,ariaDescribedBy:x,captionLayout:m,id:_,ref:S,...E})})}function Gse({type:e,format:t,placeholder:n,className:i,ariaInvalid:r,ariaDescribedBy:a,captionLayout:l,id:u,ref:f,...m}){const{confirmedValue:h,disabled:g}=kg(),b=h,_=as(b,t,n);return v.jsxs(v.Fragment,{children:[v.jsx(qse,{children:v.jsx(it,{ref:f,id:u,variant:"outline",disabled:g,"data-slot":"date-picker","data-type":e,"aria-invalid":r,"aria-describedby":a,className:ke(Bse,e==="icon-left"?"justify-start":"justify-between",b?"text-foreground":"text-muted-foreground",i),"aria-label":b?`Selected date: ${as(b,t,n)}`:n,...m,children:e==="icon-left"?v.jsxs(v.Fragment,{children:[v.jsx(E_,{className:"size-4 shrink-0","aria-hidden":"true"}),v.jsx("span",{children:_})]}):v.jsxs(v.Fragment,{children:[v.jsx("span",{children:_}),v.jsx(E_,{className:"size-4 shrink-0","aria-hidden":"true"})]})})}),v.jsx(Zse,{calendarProps:{captionLayout:l}})]})}function Kse({ref:e,className:t,format:n,placeholder:i,disabled:r,isMobile:a=!1,captionLayout:l="dropdown",id:u,ariaInvalid:f,ariaDescribedBy:m,value:h,defaultValue:g,onValueChange:b,minDate:_,maxDate:S,disabledDates:w}){const[x,E]=k.useState(g),[O,R]=k.useState(!1),$=h!==void 0?h:x,N=A
324=>{h===void 0&&E(A),b==null||b(A),R(!1)},[M,C]=k.useState(()=>$?as($,n,i):""),[I,V]=k.useState($??new Date),L=k.useRef($),K=k.useRef(n);k.useEffect(()=>{const A=$!==L.current,ne=n!==K.current;if(A||ne){if(L.current=$,K.current=n,$)C(as($,n,i)),V($);else if(A)C("");else if(ne&&M){const Z=M.replace(/\D/g,"");C(W$(Z,n))}}},[$,n,i,M]);const H=A=>{const ne=A.target.value.replace(/\D/g,"").slice(0,8),Z=W$(ne,n);if(C(Z),ne.length===8){const X=G$(ne,n);X&&K$(X,_,S,w)&&(V(X),N(X))}},F=A=>{["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Home","End"].includes(A.key)||A.ctrlKey||A.metaKey||/^\d$/.test(A.key)||A.preventDefault()},ae=()=>{const A=M.replace(/\D/g,"");if(A.length===0){N(void 0);return}if(A.length===8){const ne=G$(A,n);(!ne||!K$(ne,_,S,w))&&C($?as($,n,i):"")}},ue=A=>{A&&(C(as(A,n,i)),V(A)),N(A)},j=Q2(_,S,w),G=i||n.toLowerCase(),B=v.jsx(X0,{ref:e,id:u,type:"text",inputMode:"numeric",disabled:r,"data-slot":"date-picker","data-type":"manual-input","aria-invalid":f,"aria-describedby":m,"aria-label":$?`Selected date: ${as($,n,i)}`:i,placeholder:G,value:M,onChange:H,onKeyDown:F,onBlur:ae,className:ke("pr-10",t)}),fe=v.jsx(it,{variant:"ghost",size:"icon-sm",disabled:r,tabIndex:-1,className:"absolute right-1 top-1/2 -translate-y-1/2 size-7 cursor-default text-muted-foreground hover:not-disabled:text-foreground","aria-label":"Open calendar",children:v.jsx(E_,{className:"size-4 shrink-0","aria-hidden":"true"})});return a?v.jsxs("div",{className:"relative",children:[B,v.jsx(Xse,{open:O,onOpenChange:R,selectedDate:$,onConfirm:ue,trigger:fe,disabled:r,captionLayout:l,constraints:j})]}):v.jsxs(ex,{open:O,onOpenChange:R,children:[v.jsx(Tre,{asChild:!0,children:v.jsxs("div",{className:"relative",children:[B,v.jsx(tx,{asChild:!0,disabled:r,children:fe})]})}),v.jsx(nx,{className:"w-auto p-0",align:"start",children:v.jsx(Mc,{mode:"single",startMonth:j.startMonth,endMonth:j.endMonth,disabled:j.disabled,month:I,onMonthChange:V,selected:$,onSelect:ue,captionLayout:l,showOutsideDays:!0,autoFocus:!0})})]})}function Xse({open:e,onOpenChange:t,selectedDate:n,onConfirm:i,trigger:r,disabled:a,captionLayout:l="dropdown",constraints:u}){const[f,m]=k.useState(n),[h,g]=k.useState(n??new Date);k.useEffect(()=>{e&&(m(n),g(n??new Date))},[e,n]);const b=w=>{m(w),w&&g(w)},_=()=>{i(f)},S=()=>{t(!1)};return v.jsxs(Z0,{open:e,onOpenChange:t,children:[v.jsx(Y0,{asChild:!0,disabled:a,children:r}),v.jsxs(W0,{className:"h-[70vh]",showCloseButton:!1,children:[v.jsx(G0,{className:"sr-only",children:"Selecionar data"}),v.jsx(K0,{className:"sr-only",children:"Selecione uma data no calendário"}),v.jsx("div",{className:"flex flex-col p-4 pb-0",children:v.jsx(Mc,{mode:"single",startMonth:u==null?void 0:u.startMonth,endMonth:u==null?void 0:u.endMonth,disabled:u==null?void 0:u.disabled,month:h,onMonthChange:g,selected:f,onSelect:b,captionLayout:l,showOutsideDays:!0,autoFocus:!0,classNames:J2})}),v.jsxs(K4,{className:"flex-row border-t gap-2 pt-4 shrink-0",children:[v.jsx(G4,{asChild:!0,children:v.jsx(it,{variant:"outline",className:"flex-1",onClick:S,children:"Cancelar"})}),v.jsx(it,{className:"flex-1",onClick:_,children:"Selecionar"})]})]})]})}tU.formFieldConfig={mapField:"date-picker"};function Qse(e){return v.jsxs(Q0,{children:[v.jsx(K_,{align:"inline-start",children:v.jsx(lZ,{className:"size-3.5"})}),v.jsx(J0,{type:"text",inputMode:"email",...e})]})}function Jse(e){const[t,n]=k.useState(!1);return v.jsxs(Q0,{children:[v.jsx(K_,{align:"inline-start",children:v.jsx(aZ,{className:"size-3.5"})}),v.jsx(J0,{type:t?"text":"password",onCopy:i=>i.preventDefault(),onCut:i=>i.preventDefault(),...e}),v.jsx(K_,{align:"inline-end",children:v.jsx(Ore,{size:"icon-xs",onClick:()=>n(!t),"aria-label":t?"Ocultar senha":"Mostrar senha",children:t?v.jsx(Jq,{className:"size-3.5"}):v.jsx(tZ,{className:"size-3.5"})})})]})}const bd=za(X0),nU=za(Qse),Ud=za(Jse),rU=za(cp),iU=za(w2),px=za(J4),hp=za(E2),ele=za(tU);function gx(e,t){const n=k.useRef(Date.now()+e*1e3),[i,r]=k.useState(e),a=k.useRef(t),l=i>0;return a.current=t,k.useEffect(()=>{n.current=Date.now()+e*1e3,r(e)},[e]),k.useEffect(()=>{if(!l)return;const m=setInterval(()=>{const h=Math.max(0,Math.ceil((n.current-Date.now())/1e3));r(g=>{var b;return g>0&&h===0&&((b=a.current)==null||b.call(a)),h})},200);return()=>clearInterval(m)},[l]),{seconds:i,reset:()=>{n.current=Date.now()+e*1e3,r(e)},isActive:l}}function tle({ref:e}){k.useEffect(()=>{e!=null&&e.current&&(e==null||e.current.scrollIntoView({behavior:"smooth",block:"start"}))},[e])}const _o="Erro ao processar solicitação.",Wn="Tente novamente.",Cb="Código inválido.",nle="Código expirado.",Ab="Não foi possível enviar o código de validação.",So="Não foi possível salvar suas informações.",rle="Solicite o reenvio de um novo código utilizando o botão abaixo.",jb="Verifique e tente novamente.",kd="Tente novamente em instantes.",wo="Tente novamente em alguns instantes.",ile={VALIDATION_EMAIL_ALREADY_EXISTS:{title:"Este e-mail já está em uso",detail
324:Wn},VALIDATION_EMAIL_REQUIRED:{title:_o,detail:Wn},VALIDATION_CPF_ALREADY_EXISTS:{title:"Este CPF já está em uso",detail:Wn},VALIDATION_CPF_INVALID:{title:"Este CPF é inválido",detail:Wn},VALIDATION_CPF_REQUIRED:{title:_o,detail:Wn},VALIDATION_PASSWORD_INVALID:{title:_o,detail:Wn},VALIDATION_PASSWORD_REQUIRED:{title:_o,detail:Wn}},ole={CRM_VALIDATION_UNAVAILABLE:{title:"Validação temporariamente indisponível",detail:"Conexão com o CFM indisponível. Não é possível concluir seu cadastro. Aguarde 30 segundos e tente novamente."},CRM_NOT_VALIDATED:{title:"Validação não aprovada",detail:"Os dados preenchidos diferem do CFM (Conselho Federal de Medicina) e não foi possível liberar seu acesso. Verifique se os dados informados estão corretos, ou se já foram liberados no portal."},CRM_ALREADY_EXISTS:{title:"Este CRM já está em uso.",detail:Wn}},ale={INVALID_CREDENTIALS:{title:"E-mail ou senha incorretos.",detail:"Verifique as informações e tente novamente."},EMAIL_NOT_FOUND:{title:"E-mail não encontrado.",detail:"Verifique o endereço digitado ou crie uma conta."},LOGIN_OTP_ERROR:{title:"Código inválido.",detail:Wn},LOGIN_GOOGLE_ERROR:{title:"Não foi possível acessar sua conta Google.",detail:Wn},GET_USER_BY_TOKEN_ERROR:{title:"Não foi possível concluir o login.",detail:Wn},UPDATE_PASSWORD_ERROR:{title:"Não foi possível redefinir sua senha.",detail:kd}},sle={OTP_EXISTS_CHECK_FAILED:{title:Cb,detail:jb},PARSE_OTP_EMAIL_TEMPLATE_FAILED:{title:Ab,detail:kd},EXECUTE_OTP_EMAIL_TEMPLATE_FAILED:{title:Ab,detail:kd},SEND_OTP_EMAIL_FAILED:{title:Ab,detail:kd},CACHE_GET_OTP_FAILED:{title:Cb,detail:jb},INVALID_OTP:{title:Cb,detail:jb}
324,EXPIRED_OTP:{title:nle,detail:rle}},lle={CREATE_DRAFT_ACCOUNT_FAILED:{title:"Tivemos um problema ao processar sua solicitação.",detail:kd},CREATE_DRAFT_ACCOUNT_ERROR:{title:_o,detail:Wn},GET_DRAFT_ACCOUNT_FAILED:{title:So,detail:wo},DATABASE_UPDATE_DRAFT_ACCOUNT_FAILED:{title:So,detail:wo},MERGE_STEP_DATA_FAILED:{title:So,detail:wo},DRAFT_ACCOUNT_NOT_FOUND:{title:So,detail:wo}},cle={EMAIL_NOT_VERIFIED:{title:"E-mail não verificado.",detail:"Por favor, verifique o e-mail antes de completar o cadastro"},DATABASE_COMPLETE_REGISTRATION_ACCOUNT_FAILED:{title:So,detail:wo},CREATE_TRANSIENT_ACCOUNT_FAILED:{title:So,detail:wo}},ule={SESSION_ID_NOT_FOUND:{title:So,detail:wo},INVALID_SESSION_ID:{title:So,detail:wo}},dle={INVALID_REQUEST:{title:_o,detail:"Verifique os campos obrigatórios e tente novamente."},INVALID_BODY:{title:_o,detail:Wn},MARSHAL_REQUEST_DATA_FAILED:{title:So,detail:wo},LIMIT_REQUESTS_EXCEEDED:{title:"Tentativas excedidas",detail:"Por segurança, seu acesso foi temporariamente bloqueado.",dynamic:{template:"Tente novamente em {retry_after_seconds}s."}}},oU={...ile,...ole,...ale,...sle,...lle,...cle,...ule,...dle},fle=Object.fromEntries(Object.keys(oU).map(e=>[e,e]));function mle(e,t){const n=oU[e];return n?n.dynamic?t?{...n,dynamic:{...n.dynamic,values:t}}:{title:_o,detail:Wn}:{...n}:{title:_o,detail:Wn}}function aU(e,t){if(!e.dynamic)return e.detail;const n=t??e.dynamic.values??{},i=e.dynamic.template.replace(/\{(\w+)\}/g,(r,a)=>String(n[a]??`{${a}}`));return`${e.detail} ${i}`}function hle(e,t){var n,i,r;return(r=(i=(n=e.find(a=>{var l,u;return((u=(l=a.dynamic)==null?void 0:l.values)==null?void 0:u[t])!==void 0}))==null?void 0:n.dynamic)==null?void 0:i.values)==null?void 0:r[t]}const ple={title:"Erro ao carregar informações",detail:"Tivemos um problema ao carregar os dados. Atualize a página para tentar novamente."};function vx(e){var t;if(!e)return[];if(Wt.isAxiosError(e)){const n=(t=e.response)==null?void 0:t.data;return n!=null&&n.errors?n.errors.map(i=>mle(i.title,n.metadata)):[ple]}return[]}function Ua({errors:e,liveMetadata:t}){const n=e.flatMap(r=>vx(r)),i=k.useRef(null);return tle({ref:i}),n.length===0?null:v.jsx("div",{ref:i,className:"flex flex-col gap-3",children:n.map((r,a)=>v.jsx(jd,{variant:"destructive",icon:v.jsx(Nd,{size:16}),title:r.title,children:r.detail&&aU(r,t)},`${r.title}-${a}`))})}function gle({siteKey:e,maxAttempts:t=3,retryDelay:n=5e3}){const i=k.useRef(0);return{execute:k.useCallback(async a=>{if(!window.grecaptcha)throw new Error("grecaptcha não está disponível.");await new Promise(u=>{var f;(f=window.grecaptcha)==null||f.ready(()=>u())});async function l(){var u;i.current++;try{const f=await((u=window.grecaptcha)==null?void 0:u.execute(e,{action:a}));if(!f)throw new Error("grecaptcha retornou token vazio.");return f}catch{if(i.current<t)return await new Promise(f=>setTimeout(f,n)),l();throw new Error(`Falha ao executar reCAPTCHA após ${t} tentativas`)}}return i.current=0,l()},[e,t,n])}}const vle="6Lf_bl8UAAAAABe82xJCOhPPV6vlV8av0znBasOB";async function yle({action:e,execute:t}){return await t(e)}function ble(){const{execute:e}=gle({siteKey:vle,maxAttempts:3,retryDelay:5e3});return Li({mutationFn:async({action:t})=>yle({action:t,execute:e})})}async function _le(e){return(await Fn.post("/v1/authentication/login",e)).data}function sU(){return Li({mutationFn:_le})}const Sle=Bi({email:qp({message:"E-mail inválido"}),password:_n().min(1,"Senha é obrigatória")}),pp=w0(e=>({login:void 0,otp:void 0,setLogin:t=>e({login:t}),setOtp:t=>e({otp:t}),clear:()=>e({login:void 0,otp:void 0})})),wle=cn("/_layout/sign-in/")({component:xle});function xle(){const e=dn(),t=pp(x=>x.login),n=pp(x=>x.setLogin),i=ble();k.useEffect(()=>{tX()},[]);const r=async({data:x,response:E})=>{if(n(x),E.has_otp){e({to:"/sign-in/otp"});return}if(E.access_token)try{const O=await vf(E.access_token);await bP({id:O.data.id,...O.data.attributes})}catch(O){console.error("Erro ao fazer tracking de login:",O)}finally{await E0(),yf(E.access_token)}},a=sU(),l=jo({resolver:Mo(Sle),defaultValues:{email:(t==null?void 0:t.email)||"",password:(t==null?void 0:t.password)||""}}),{handleSubmit:u,reset:f,formState:{isSubmitting:m}}=l;k.useEffect(()=>{t&&f({email:t.email||"",password:t.password||""})},[t,f]);const h=x=>{var O,R,$,N;rX((N=($=(R=(O=x.response)==null?void 0:O.data)==null?void 0:R.errors)==null?void 0:$[0])==null?void 0:N.title)},g=async x=>{const E=await i.mutateAsync({action:"login"});await a.mutateAsync({...x,captcha:E},{onSuccess:O=>r({data:x,response:O}),onError:O=>h(O)})},b=vx(a.error),_=hle(b,"retry_after_seconds"),{seconds:S,isActive:w}=gx(_??0,()=>a.reset());return v.jsx(Io,{control:l.control,children:v.jsxs("form",{onSubmit:u(g),className:"space-y-6",children:[v.jsxs("div",{className:"space-y-6",children:[v.jsx("div",{children:v.jsx(Aa,{className:"w-10 h-10"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-2xl text-card-foreground font-semibold",children:"Continuar com e-mail e senha"}),v.jsx("p",{className:"text-base text-muted-foreground",children:"Use seu e-mail e senha para acessar sua conta"})]})]}),i.isError&&v.jsxs(jd,{variant:"destructive",icon:v.jsx(Nd,{size:16}),children:["Não foi possível carregar o serviço de segurança do Google. Isso pode ocorrer por bloqueadores de anúncios ou rede instável.",v.jsx(it,{variant:"link",size:"sm",className:"p-0 pl-1 h-auto text-danger",onClick:()=>window.location.reload(),children:"Tentar novamente"})]}),v.jsx(Ua,{errors:[a.error],liveMetadata:{retry_after_seconds:S}}),v.jsx(nU,{name:"email",label:"E-mail",placeholder:"Digite seu e-mail"}),v.jsxs("div",{className:"space-y-2",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm font-medium",children:"Senha"}),v.jsx(Cn,{to:"/forgot-password",className:"text-sm text-foreground",children:"Esqueci minha senha"})]}),v.jsx(Ud,{name:"password",placeholder:"Digite sua senha"})]}),v.jsxs("div",{className:"flex flex-col gap-3",children:[v.jsx(it,{type:"submit",disabled:w||m||a.isPending||a.isSuccess,children:m||a.isPending||a.isSuccess?v.jsxs(v.Fragment,{children:[v.jsx(of,{size:16,className:"animate-spin"}),v.jsx("span",{children:"Entrando"})]}):v.jsx("span",{children:"Continuar"})}),v.jsx(it,{variant:"ghost",className:"w-full",asChild:!0,children:v.jsxs(Cn,{to:"/",children:[v.jsx(Do,{size:16}),v.jsx("span",{children:"Voltar"})]})})]}),v.jsx("div",{children:v.jsxs("p",{className:"text-sm text-foreground text-center",children:[v.jsx("span",{children:"Ainda não tem conta?"})," ",v.jsx(Cn,{to:"/sign-up",className:"underline",children:"Cadastre-se"})]})})]})})}async function Ele(e){var t;try{return(await Fn.post("/v1/authentication/reset-password",{email:e.email})).data}catch(n){if(vC(n)&&((t=n.response)==null?void 0:t.status)===403)return{ok:!0};throw n}}function kle(){return Li({mutationFn:Ele})}const Ole=Bi({email:qp({message:"E-mail inválido"})}),Tle=cn("/_layout/forgot-password/")({component:Rle});function Rle(){const[e,t]=k.useState(!1),[n,i]=k.useState(""),r=kle(),a=jo({resolver:Mo(Ole)}),{handleSubmit:l,formState:{isSubmitting:u}}=a,f=({data:b})=>{i(b.email),t(!0),a.reset()},m=async b=>{r.mutate(b,{onSuccess:_=>f({data:b})})},h=()=>{const b={email:n};r.mutate(b,{onSuccess:_=>f({data:b})})},g=u||r.isPending;return v.jsx(Io,{control:a.control,children:v.jsxs("form",{onSubmit:l(m),className:"space-y-6",children:[v.jsxs("div",{className:"space-y-6",children:[v.jsx("div",{children:v.jsx(Aa,{className:"w-10 h-10"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-2xl text-card-foreground font-semibold",children:"Esqueci minha senha"}),v.jsx("p",{className:"text-base text-muted-foreground",children:"Insira o e-mail cadastrado e enviaremos instruções para redefinir sua senha"})]})]}),e&&v.jsx(jd,{variant:"success",icon:v.jsx(AS,{size:16}
324),title:"Instruções enviadas com sucesso!",children:v.jsxs("span",{children:["Se existir uma conta associada a ",v.jsx("b",{children:n}),", você receberá um link para redefinir sua senha em alguns minutos."]})}),v.jsx(Ua,{errors:[r.error]}),!e&&v.jsx(nU,{name:"email",label:"E-mail",placeholder:"Digite seu e-mail",required:!0}),v.jsx("div",{className:"flex flex-col gap-3",children:e?v.jsxs("div",{className:"flex items-center justify-center gap-1",children:[v.jsx("span",{className:"text-sm text-foreground",children:"Não recebeu o e-mail?"}),v.jsx(it,{variant:"link",onClick:h,disabled:g,className:"p-0 h-auto text-foreground underline text-medium gap-0 disabled:opacity-100",children:g?"Reenviando...":"Reenviar"})]}):v.jsxs(v.Fragment,{children:[v.jsx(it,{type:"submit",disabled:g||!a.formState.isValid,children:g?v.jsxs(v.Fragment,{children:[v.jsx(of,{size:16,className:"animate-spin"}),v.jsx("span",{children:"Enviando instruções"})]}):v.jsx("span",{children:"Enviar instruções"})}),v.jsx(it,{variant:"ghost",className:"w-full",asChild:!0,children:v.jsxs(Cn,{to:"/sign-in",children:[v.jsx(Do,{size:16}),v.jsx("span",{children:"Voltar"})]})})]})})]})})}const $le=cn("/_layout/reset-password/success")({component:Nle});function Nle(){return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsx("span",{className:"w-12 h-12 border-1 bg-success border-border rounded-md flex items-center justify-center shadow-xs m-auto",children:v.jsx(Wq,{size:24,className:"text-success-foreground"})}),v.jsxs("div",{className:"flex flex-col gap-2 text-center",children:[v.jsx("span",{className:"text-2xl font-semibold",children:"Sua senha foi atualizada"}),v.jsx("span",{className:"text-muted-foreground",children:"Sua senha foi redefinida com sucesso. Agora você já pode retornar ao acesso normalmente."})]}),v.jsx("div",{className:"flex flex-col gap-3",children:v.jsx(it,{asChild:!0,children:v.jsx(Cn,{to:"/sign-in",children:"Acessar Memed"})})})]})}const Dle=cn("/_layout/reset-password/code-expired")({component:Cle});function Cle(){return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsx(Aa,{className:"size-10"}),v.jsxs("div",{className:"flex flex-col gap-1",children:[v.jsx("span",{className:"text-2xl font-semibold",children:"Link expirado"}),v.jsx("span",{children:"Esse link não está mais disponível. Gere um novo link para continuar."})]}),v.jsxs("div",{className:"flex flex-col gap-3",children:[v.jsx(it,{asChild:!0,children:v.jsx(Cn,{to:"/forgot-password",children:"Solicitar novo e-mail"})}),v.jsx(it,{variant:"ghost",className:"w-full",asChild:!0,children:v.jsxs(Cn,{to:"/sign-in",children:[v.jsx(Do,{size:16}),v.jsx("span",{children:"Voltar para login"})]})})]})]})}function lU(e){const t={minLength:e.length>=8,hasUpperCase:/[A-Z]/.test(e),hasLowerCase:/[a-z]/.test(e),hasNumber:/[0-9]/.test(e),hasSpecialChar:/[^A-Za-z0-9]/.test(e)};return{isStrong:Object.values(t).every(i=>i===!0),rules:t}}function Mb({state:e}){return{idle:"text-muted-foreground",passed:"text-success-foreground",failed:"text-destructive-foreground"}[e]??"text-muted-foreground"}function cU({control:e}){const t=o2({control:e}),n=s2({control:e,name:"password"})||"",i=!!t.errors.password,r=t.touchedFields.password||t.isDirty,a=n.length>0,l=r||i||a,{rules:u}=lU(n),f=[{key:"minLength",label:"Mínimo de 8 caracteres"},{key:"hasUpperCase",label:"Uma letra maiúscula (A-Z)"},{key:"hasLowerCase",label:"Uma letra minúscula (a-z)"},{key:"hasNumber",label:"Um número (0-9)"},{key:"hasSpecialChar",label:"Um caractere especial (!@#$...)"}];return v.jsx("div",{className:"flex flex-col gap-1",children:f.map(m=>{const h=u[m.key],g=l?h?"passed":"failed":"idle";return v.jsxs("div",{className:"flex items-center gap-1",children:[h?v.jsx(AS,{className:ke("size-3.5",Mb({state:g}))}):v.jsx(Xq,{className:ke("size-3.5",Mb({state:g}))}),v.jsx("span",{className:ke("text-sm",Mb({state:g})),children:m.label})]},m.key)})})}async function Ale(e){return(await Fn.post("/v1/authentication/reset-password/validate-token",{token:e.token})).data}async function jle(e){return(await Fn.patch("/v1/authentication/update-password",{code:e.code,new_password:e.new_password})).data}function Mle(){return Li({mutationFn:jle})}const Ile=Bi({password:_n().min(1,"Senha é obrigatória"),confirmPassword:_n().min(1,"Confirmação de senha é obrigatória")}).refine(e=>{const{isStrong:t}=lU(e.password);return t},{message:"A senha não atende aos requisitos de segurança",path:["password"]}).refine(e=>e.password===e.confirmPassword,{message:"As senhas não coincidem",path:["confirmPassword"]}),Ple=cn("/_layout/reset-password/$code")({component:zle,beforeLoad:async({params:e})=>{try{if(!(await Ale({token:e.code})).is_valid)throw new Error("Token inválido")}catch{throw Es({to:"/reset-password/code-expired"})}}});function zle(){const e=dn(),{code:t}=bp({from:"/_layout/reset-password/$code"}),n=Mle(),i=jo({resolver:Mo(Ile),mode:"onChange"}),{handleSubmit:r,watch:a,trigger:l,formState:{isSubmitting:u,isValid:f}}=i,m=a("confirmPassword"),h=a("password");k.useEffect(()=>{m&&l("confirmPassword")},[h]);const g=()=>{i.reset({password:"",confirmPassword:""}),e({to:"/reset-password/success"})},b=async _=>{n.mutate({code:t,new_password:_.password},{onSuccess:()=>g(),onError:S=>{var x,E,O;S instanceof Nq&&((O=(E=(x=S.response)==null?void 0:x.data)==null?void 0:E.errors[0])==null?void 0:O.title)===fle.GET_USER_BY_TOKEN_ERROR&&e({to:"/reset-password/code-expired"})}})};return v.jsx(Io,{control:i.control,children:v.jsxs("form",{onSubmit:r(b),className:"space-y-6",children:[v.jsxs("div",{className:"space-y-6",children:[v.jsx("div",{children:v.jsx(Aa,{className:"w-10 h-10"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-2xl text-card-foreground font-semibold",children:"Definir nova senha"}),v.jsx("p",{className:"text-base text-muted-foreground",children:"Digite e confirme sua nova senha para finalizar o processo"})]})]}),v.jsx(Ua,{errors:[n.error]}),v.jsxs("div",{className:"flex flex-col gap-2",children:[v.jsx(Ud,{name:"password",label:"Nova senha",placeholder:"Digite uma nova senha",required:!0,className:"[&>[data-slot=field-error]]:hidden"}),(h||m)&&v.jsx(cU,{control:i.control})]}),v.jsx(Ud,{name:"confirmPassword",label:"Confirmar senha",placeholder:"Digite a senha novamente",required:!0}),v.jsx("div",{className:"flex flex-col gap-3",children:v.jsx(it,{type:"submit",disabled:u||n.isPending||!f,loading:u||n.isPending,loadingText:"Redefinindo senha...",children:"Redefinir senha"})})]})})}const Ld={ui_version:"v4",event_source:"frontend"},Ib={NAME:"Signup Pageview",SCREEN:"signup",TYPE:"pageview"},Pb={NAME:"Sign Up Success Message",SCREEN:"signup",TYPE:"message"},zb={NAME:"Sign Up Error Message",SCREEN:"signup",TYPE:"message"},Q$={NAME:"Send Email after Registration",SCREEN:"signup"};async function Tf(e,t){await Wr.sendEvent({name:Ib.NAME,screen:Ib.SCREEN,properties:{...Ld,event_type:Ib.TYPE,screen_step:e,is_return:!!t,...t&&{return_from:t}}})}async function uU(e,t){await S0(e),await Wr.sendEvent({name:Pb.NAME,screen:Pb.SCREEN,properties:{...Ld,event_type:Pb.TYPE,...(t==null?void 0:t.educationalInstitution)&&{signup_educational_institution:t.educationalInstitution},...(t==null?void 0:t.graduationYear)&&{signup_graduation_year:t.graduationYear}}})}async function Ule(e){await Wr.sendEvent({name:zb.NAME,screen:zb.SCREEN,properties:{...Ld,event_type:zb.TYPE,screen_step:e.screenStep,error_message:e.errorMessage,event_source:e.eventSource}})}async function dU(e){await Wr.sendEvent({name:Q$.NAME,screen:Q$.SCREEN,properties:{...Ld,ui_version:Ld.ui_version,professional_degree:e.professionalDegree,screen:"completed",userId:`doctor_${e.userId}`,user_type:"doctor",event_type:"registration"}})}function yx(e,t=500){const[n,i]=k.useState(e),[r,a]=k.useState(e);return k.useEffect(()=>{const l=setTimeout(()=>{a(n)},t);return()=>{clearTimeout(l)}},[n,t]),{rawValue:n,debouncedValue:r,setValue:i}}const Lle=Ye.object({university:Ye.string().min(1,{message:"Instituição de ensino é obrigatória"}),completionYear:Ye.string().min(1,{message:"Ano de conclusão é obrigatório"}),acceptedTerms:Ye.boolean().refine(e=>e===!0,{message:"Você deve aceitar os Termos de Uso e Política de Privacidade"})});function Fle(e,t){const n=aU(e,t);return e.title===n?e.title:n==="Tente novamente."?/[.!?]$/.test(e.title.trim())?`${e.title} ${n}`:`${e.title}. ${n}`:`${e.title} ${n}`}function Ble(e,t){return e.map(n=>Fle(n,t))}async function Da(e,t,n="Backend"){if(e)try{const i=vx(e),r=Ble(i);for(const a of r)await Ule({screenStep:t,errorMessage:a,eventSource:n})}catch(i){console.error("Erro ao fazer tracking de erro:",i)}}async function Vle(e,t){for(const n of e)await Da(n,t)}function Hle(e){return e.replace(/[^0-9]/g,"")}function qle(e){return e==="Dr."||e==="Masculino"?"M":"F"}function fU(e,t,n){var l;const i=Wc(t),r={name:e.personalData.name,gender:qle(e.personalData.treatmentPronoun),last_name:e.personalData.last_name,cpf:Hle(e.personalData.cpf),email:e.personalData.email,city:e.personalData.city,...!i&&{birthdate:O4(e.professionalData.birthdate)}},a={session_id:n,steps:{personal_data:r},student:i};return(l=e.createPassword)!=null&&l.password&&(a.steps.create_password={password:e.createPassword.password}),i?a.steps.student_data={university:e.studentData.university,graduation_year:e.studentData.completionYear}:a.steps.practitioner_board={board_state:e.professionalData.board_state,board_number:e.professionalData.board_number,specialty:Number(e.professionalData.specialty)||0},a}function mU({values:e,sessionId:t,flowType:n,backRoute:i,signupMethod:r,useUpdateRegistration:a}){const l=dn(),{debouncedValue:u,setValue:f}=yx(""),m=ane({filter:u}),h=jo({resolver:Mo(Lle),defaultValues:e.studentData,mode:"onTouched"}),{isSubmitting:g}=h.formState,b=E4({onSuccess:async({token:L,user_id:K,student:H})=>{var F;try{const ae=await vf(L),ue=h.getValues(),j=ue.university,G=(F=m.data)==null?void 0:F.find(A=>A.value===j),B=G==null?void 0:G.label,fe=ue.completionYear;await uU({id:ae.data.id,...ae.data.attributes},{educationalInstitution:B,graduationYear:fe}),await dU({userId:K,professionalDegree:H?"student":"professional"})}catch(ae){console.error("Erro ao fazer tracking de signup success:",ae)}await Gc("student","concluido",r),yf(L)},onError:L=>{console.error("Erro ao finalizar cadastro:",L),Da(L,"academic_registry")}}),_=a({step:Dc.STUDENT_DATA,onSuccess:L=>{if(t){const K=fU({...e,studentData:L},n,t);S(K)}},onError:L=>{console.error("Erro ao enviar dados acadêmicos:",L),Da(L,"academic_registry")}}),{mutate:S,isPending:w,isSuccess:x,error:E}=b,{mutate:O,isPending:R,isSuccess:$,error:N}=_;function M(L){if(!t){console.error("sessionId não encontrado");return}O({sessionId:t,values:L,step:Dc.STUDENT_DATA})}const I=!(!!N||!!E)&&(R||$||w||x),V=I||g;return v.jsx(Io,{control:h.control,children:v.jsxs("form",{onSubmit:h.handleSubmit(M),className:"flex flex-col gap-6",children:[v.jsx(Ua,{errors:[E,N]}),v.jsx(px,{name:"university",label:"Instituição de ensino",placeholder:"Selecione a instituição de ensino",searchPlaceholder:"Buscar instituição de ensino...",options:m.data||[],required:!0,onSearchChange:f,isLoading:m.isLoading}),v.jsx(hp,{name:"completionYear",label:"Ano previsto de formação",placeholder:"Selecione o ano",options:Array.from({length:25},(L,K)=>({id:(new Date().getFullYear()+K).toString(),label:(new Date().getFullYear()+K).toString()})),required:!0}),v.jsx(rU,{name:"acceptedTerms",label:v.jsxs("span",{children:["Li e aceito os"," ",v.jsx("a",{href:MS,target:"_blank",className:"underline",children:"Termos de Uso"})," ","e"," ",v.jsx("a",{href:IS,target:"_blank",className:"underline",children:"Política de Privacidade"})]})}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs(it,{variant:"ghost",type:"button",onClick:()=>l({to:i}),children:[v.jsx(Do,{}),"Voltar"]}),v.jsx(it,{type:"submit",disabled:V,loading:I,loadingText:"Criando conta...",children:"Continuar"})]})]})})}function Zle(){const{values:e,sessionId:t,flowType:n}=Qn(i=>i);return v.jsx(mU,{values:e,sessionId:t,flowType:n,backRoute:"/sign-up/create-password",signupMethod:"email",useUpdateRegistration:bg})}const Yle=_n().min(8,{message:"A senha deve ter no mínimo 8 caracteres"}).regex(/[A-Z]/,{message:"A senha deve conter pelo menos uma letra maiúscula"}).regex(/[a-z]/,{message:"A senha deve conter pelo menos uma letra minúscula"}).regex(/[0-9]/,{message:"A senha deve conter pelo menos um número"}).regex(/[^A-Za-z0-9]/,{message:"A senha deve conter pelo menos um c
324aractere especial"}),bx=Bi({password:Yle,confirmPassword:_n().min(1,{message:"Confirmação de senha é obrigatória"})}).refine(e=>e.password===e.confirmPassword,{message:"As senhas não coincidem",path:["confirmPassword"]}),Wle=cn("/_layout/sign-up/student-data/")({component:Gle,pendingComponent:tl,loader:async({context:e})=>{const{queryClient:t}=e;await t.ensureQueryData({...yg.search(""),retry:!1})}});function Gle(){const{formKey:e,values:t}=Qn(),n=dn();return Zc({trackFn:i=>Tf("academic_registry",i),returnFromRules:[{pathIncludes:"/sign-up/professional-data",returnValue:"professional_registry"}]}),k.useEffect(()=>{const{success:i}=bx.safeParse(t.createPassword);i||n({to:"/sign-up/create-password",replace:!0})}),v.jsxs(v.Fragment,{children:[v.jsxs(St.SignupStepHeader,{children:[v.jsx(St.SignupStepTitle,{children:"Dados acadêmicos"}),v.jsxs(St.SignupStepDescription,{children:["Informe sobre sua formação em medicina",v.jsx("br",{}),"Já possui CRM?"," ",v.jsx(Cn,{to:"/sign-up/professional-data",children:v.jsx("span",{className:"underline text-base-foreground font-medium",children:"Cadastrar como médico"})})]})]}),v.jsx(Zle,{},e)]})}const Kle=Bi({birthdate:FI({error:"Data de nascimento é obrigatória"}).optional().refine(e=>e!=null,{message:"Data de nascimento é obrigatória"}).refine(e=>!e||e.getTime()<Date.now(),{message:"A data de nascimento não pode ser maior que a data atual"}),board_state:_n().min(1,{message:"UF é obrigatória"}),board_number:_n().min(1,{message:"CRM é obrigatório"}),specialty:_n().min(1,{message:"Especialidade é obrigatória"}),acceptedTerms:c0().refine(e=>e===!0,{message:"Você deve aceitar os Termos de Uso e Política de Privacidade"})});function hU({values:e,sessionId:t,flowType:n,backRoute:i,signupMethod:r,clearDisplayedError:a}){const{setValue:l,rawValue:u}=yx(""),f=dn(),m=RN({...vg.search("")}),h=jo({resolver:Mo(Kle),defaultValues:e.professionalData,mode:"onTouched"}),{isSubmitting:g,isValid:b}=h.formState,{mutate:_,isPending:S,isSuccess:w,error:x}=E4({onSuccess:async({token:L,user_id:K,student:H})=>{try{const F=await vf(L);await uU({id:F.data.id,...F.data.attributes}),await dU({userId:K,professionalDegree:H?"student":"professional"})}catch(F){console.error("Erro ao fazer tracking de signup success:",F)}await Gc("professional","concluido",r),yf(L)},onError:L=>Da(L,"professional_registry")}),E=bg({step:Dc.PROFESSIONAL_DATA,onSuccess:L=>{if(t){const K=fU({...e,professionalData:L},n,t);_(K)}},onError:L=>{console.error("Erro ao salvar dados profissionais:",L),Da(L,"professional_registry")}}),{mutate:O,isPending:R,isSuccess:$,error:N}=E;function M(L){if(!t){console.error("sessionId não encontrado");return}a("professionalData"),O({sessionId:t,values:L,step:Dc.PROFESSIONAL_DATA})}const I=!(!!N||!!x)&&(R||$||S||w),V=I||!b||g;return v.jsx(Io,{control:h.control,children:v.jsxs("form",{onSubmit:h.handleSubmit(M),className:"flex flex-col gap-6",children:[v.jsx(Ua,{errors:[x,N]}),v.jsx(ele,{name:"birthdate",label:"Data de nascimento",placeholder:"DD/MM/AAAA",maxDate:new Date}),v.jsxs("div",{className:"grid grid-cols-10 gap-2",children:[v.jsx("div",{className:"col-span-3",children:v.jsx(hp,{name:"board_state",label:"UF",placeholder:"UF",options:_P,required:!0})}),v.jsx("div",{className:"col-span-7",children:v.jsx(bd,{name:"board_number",label:"Número do CRM",placeholder:"00000",required:!0,inputMode:"numeric",valueFormatter:L=>L.replace(/\D/g,"")})})]}),v.jsx(px,{name:"specialty",label:"Especialidade",placeholder:"Selecione sua especialidade",searchPlaceholder:"Buscar especialidade...",options:r7(m.data,u),onSearchChange:l,isLoading:m.isLoading,required:!0,side:"bottom"}),v.jsx(rU,{name:"acceptedTerms",label:v.jsxs("span",{children:["Li e aceito os"," ",v.jsx("a",{href:MS,target:"_blank",className:"underline",children:"Termos de Uso"})," ","e"," ",v.jsx("a",{href:IS,target:"_blank",className:"underline",children:"Política de Privacidade"})]}),required:!0}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs(it,{variant:"ghost",type:"button",onClick:()=>f({to:i}),children:[v.jsx(Do,{}),"Voltar"]}),v.jsx(it,{type:"submit",disabled:V,loading:I,loadingText:"Validando CRM...",children:"Finalizar"})]})]})})}function Xle(){const{values:e,sessionId:t,flowType:n,clearDisplayedError:i}=Qn(r=>r);return v.jsx(hU,{values:e,sessionId:t,flowType:n,backRoute:"/sign-up/create-password",signupMethod:"email",clearDisplayedError:i})}const Qle=cn("/_layout/sign-up/professional-data/")({component:Jle,pendingComponent:tl,loader:async({context:e})=>{const{queryClient:t}=e;await t.ensureQueryData({...vg.search("")})}});function Jle(){const{values:e,formKey:t}=Qn(),n=dn();return Zc({trackFn:i=>Tf("professional_registry",i),returnFromRules:[{pathIncludes:"/sign-up/student-data",returnValue:"academic_registry"}]}),k.useEffect(()=>{const{success:i}=bx.safeParse(e.createPassword);i||n({to:"/sign-up/create-password",replace:!0})},[e.createPassword,n]),v.jsxs(v.Fragment,{children:[v.jsxs(St.SignupStepHeader,{children:[v.jsx(St.SignupStepTitle,{children:"Registro profissional"}),v.jsxs(St.SignupStepDescription,{children:["Informe seu registro profissional para continuar.",v.jsx("br",{}),"Ainda não tem CRM?"," ",v.jsx(Cn,{to:"/sign-up/student-data",children:v.jsx("span",{className:"underline text-base-foreground font-medium",children:"Cadastre-se como estudante"})})]})]}),v.jsx(Xle,{},t)]})}function pU(e){return e.replace(/\D/g,"")}function ece(e){const t=pU(e);return t.length<=3?t:t.length<=6?`${t.slice(0,3)}.${t.slice(3)}`:t.length<=9?`${t.slice(0,3)}.${t.slice(3,6)}.${t.slice(6)}`:`${t.slice(0,3)}.${t.slice(3,6)}.${t.slice(6,9)}-${t.slice(9,11)}`}function tce(e){return ece(pU(e).slice(0,11))}function nce(e){const t=e.replace(/\D/g,"");if(t.length!==11||/^(\d)\1{10}$/.test(t))return!1;let n=0;for(let l=0;l<9;l++)n+=parseInt(t[l],10)*(10-l);let i=n%11;const r=i<2?0:11-i;if(parseInt(t[9],10)!==r)return!1;n=0;for(let l=0;l<10;l++)n+=parseInt(t[l],10)*(11-l);i=n%11;const a=i<2?0:11-i;return parseInt(t[10],10)===a}const rce=Qp(["Dr.","Dra.","Masculino","Feminino"],{message:"Este campo é obrigatório"}),gU=Bi({treatmentPronoun:rce,name:_n().min(1,{message:"Nome é obrigatório"}),last_name:_n().min(1,{message:"Sobrenome é obrigatório"}),cpf:_n().min(1,{message:"CPF é obrigatório e deve ter 11 dígitos"}).regex(/^\d{3}\.\d{3}\.\d{3}-\d{2}$/,{message:"Este CPF não é válido. Verifique os números digitados"}).refine(e=>nce(e),{message:"Este CPF não é válido. Verifique os números digitados"}),email:qp({message:"Insira um e-mail válido (ex: [email protected])"}),state:_n().min(1,{message:"Estado é obrigatório"}),city:_n().min(1,{message:"Cidade é obrigatória"})});function vU({values:e,sessionId:t,flowType:n,clearDisplayedError:i,reset:r,googleEmail:a,loadingText:l,additionalErrors:u=[],updateV
324alues:f,onSuccess:m}){const h=dn(),g=a||e.personalData.email,b=!!a,_=jo({resolver:Mo(gU),defaultValues:{...e.personalData,email:g},mode:"onTouched"}),{mutate:S,isPending:w,isSuccess:x,error:E}=bg({step:Dc.PERSONAL_DATA,onSuccess:H=>{f(H),m(H)},onError:H=>Da(H,"personal_data")});k.useEffect(()=>{a&&a!==_.getValues().email&&_.setValue("email",a)},[a,_]);const{debouncedValue:O,setValue:R}=yx(""),$=_.watch("state"),N=Jte({filter:O,state:$}),M=k.useRef(new Set);k.useEffect(()=>{const H=u.filter(F=>F!==null&&!M.current.has(F));if(H.length>0){for(const F of H)M.current.add(F);Vle(H,"personal_data")}},[u]);function C(H){if(!t){console.error("sessionId não encontrado");return}i("personalData"),S({sessionId:t,values:H,step:Dc.PERSONAL_DATA})}function I(){r(),h({to:"/",replace:!0})}const L=!(!!E||u.some(H=>H!==null))&&(w||x),K=L||!_.formState.isValid;return v.jsx(Io,{control:_.control,children:v.jsxs("form",{onSubmit:_.handleSubmit(C),className:"flex flex-col gap-6",children:[v.jsx(Ua,{errors:[E,...u]}),v.jsxs("div",{className:"flex flex-col gap-3",children:[v.jsx(hp,{name:"treatmentPronoun",label:Wc(n)?"Gênero":"Como prefere ser chamado?",placeholder:"Selecione",required:!0,options:aX({flowType:n})}),v.jsx(bd,{name:"name",label:"Nome",placeholder:"Digite seu nome",required:!0}),v.jsx(bd,{name:"last_name",label:"Sobrenome",placeholder:"Digite seu sobrenome",required:!0}),v.jsx(bd,{name:"cpf",label:"CPF",placeholder:"000.000.000-00",type:"tel",maxLength:14,valueFormatter:tce,required:!0}),v.jsx(bd,{name:"email",label:"E-mail",placeholder:"Digite seu e-mail",type:"email",required:!0,disabled:b,description:b?"E-mail verificado via Google":void 0,descriptionState:b?"success":void 0}),v.jsxs("div",{className:"grid grid-cols-10 gap-2",children:[v.jsx("div",{className:"col-span-3",children:v.jsx(hp,{name:"state",label:"UF",placeholder:"UF",options:_P,onChange:(H,F)=>{String(H)!==F.value&&(_.setValue("city",""),R(""))},required:!0})}),v.jsx("div",{className:"col-span-7",children:v.jsx(px,{name:"city",label:"Cidade",placeholder:"Selecione a cidade",searchPlaceholder:"Buscar cidade...",options:N.data||[],onSearchChange:R,isLoading:N.isLoading||N.isFetching,disabled:!$,required:!0})})]})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs(it,{variant:"ghost",type:"button",onClick:I,children:[v.jsx(Do,{}),"Voltar"]}),v.jsx(it,{disabled:K,type:"submit",loading:L,loadingText:l,children:"Continuar"})]})]})})}Pa("signUp.sendOtp",{send:null});async function ice(e){return(await Fn.post(`/v1/accounts/registration/${e.session_id}/otp/send`,{email:e.email,session_id:e.session_id})).data}function yU({onSuccess:e,onError:t}={}){return Li({mutationFn:ice,onSuccess:e,onError:t})}function oce(){const e=dn(),{setEmail:t,updateValues:n,values:i,clearDisplayedError:r,reset:a,sessionId:l,flowType:u}=Qn(b=>b),{mutate:f,error:m}=yU({onSuccess:()=>{e({to:"/sign-up/otp"})}}),h=b=>{n(_=>({..._,personalData:b}))},g=b=>{Gc(u,"dados_pessoais","email"),t(b.email),l&&f({email:b.email,session_id:l})};return v.jsx(vU,{values:i,sessionId:l,flowType:u,clearDisplayedError:r,reset:a,additionalErrors:[m],loadingText:"Enviando código...",updateValues:h,onSuccess:g})}const ace=cn("/_layout/sign-up/personal-data/")({component:sce,pendingComponent:tl,loader:async({context:{queryClient:e}})=>{await e.ensureQueryData({...gg.search("")})}});function sce(){const{formKey:e}=Qn();return Zc({trackFn:t=>Tf("personal_data",t),returnFromRules:[{pathIncludes:"/sign-up/otp",returnValue:"email_verification"}],refocusPath:"/sign-up/otp"}),v.jsxs(v.Fragment,{children:[v.jsxs(St.SignupStepHeader,{children:[v.jsx(St.SignupStepTitle,{children:"Dados pessoais"}),v.jsx(St.SignupStepDescription,{children:"Vamos começar com suas informações básicas"})]}),v.jsx(oce,{},e)]})}const lce=Pa("signUp.verifyEmail",{submit:null});async function cce(e){return(await Fn.post(`/v1/accounts/registration/${e.session_id}/otp/verify`,{code:e.code,email:e.email,session_id:e.session_id})).data}function uce({onSuccess:e,onError:t}){return Li({mutationKey:lce.submit.queryKey,mutationFn:cce,onSuccess:e,onError:t})}const bU=Bi({otp:_n().min(1,{message:"Código de verificação é obrigatório"}).length(6,{message:"O código deve ter 6 dígitos"})});
324function dce(){const e=dn(),{updateValues:t,values:n,clearDisplayedError:i,email:r,sessionId:a,flowType:l}=Qn(V=>V),u=jo({resolver:Mo(bU),defaultValues:n.verifyEmail}),{seconds:f,reset:m,isActive:h}=gx(60),g=yU({onSuccess:()=>{m()},onError:V=>Da(V,"email_verification")}),{mutate:b,isPending:_,isSuccess:S,error:w,reset:x}=uce({onSuccess:()=>{t(V=>({...V,verifyEmail:{otp:u.getValues("otp")}})),Gc(l,"codigo_email","email"),e({to:"/sign-up/create-password"})},onError:V=>Da(V,"email_verification")}),{mutate:E,isPending:O,error:R}=g;function $(V){if(!r||!a){console.error("Email ou sessionId não encontrado");return}i("verifyEmail"),b({code:V.otp,email:r,session_id:a})}function N(){x(),u.setValue("otp",""),r&&a&&E({email:r,session_id:a})}const C=!!!w&&(_||S),I=C||!u.formState.isValid;return v.jsx(Io,{control:u.control,children:v.jsxs("form",{onSubmit:u.handleSubmit($),className:"flex flex-col gap-6",children:[v.jsx(Ua,{errors:[R,w]}),v.jsx(iU,{name:"otp",maxLength:6,className:"**:data-[slot=field-error]:text-center"}),v.jsxs("div",{className:"flex flex-col items-center gap-1",children:[v.jsx("span",{className:"text-xs font-medium text-center",children:"Não recebeu o código?"}),v.jsx(it,{variant:"link",type:"button",size:"sm",disabled:h||O,onClick:N,children:O?v.jsxs(v.Fragment,{children:[v.jsx(of,{size:16,className:"animate-spin"}),v.jsx("span",{children:"Enviando código..."})]}):v.jsxs("span",{children:["Reenviar código ",h?`em ${f}s`:""]})})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs(it,{variant:"ghost",type:"button",onClick:()=>e({to:"/sign-up/personal-data"}),children:[v.jsx(Do,{}),"Voltar"]}),v.jsx(it,{disabled:I,type:"submit",loading:C,loadingText:"Verificando código...",children:"Verificar"})]})]})})}const fce=cn("/_layout/sign-up/otp/")({component:mce});function mce(){const{values:e,formKey:t}=Qn(),n=Qn(r=>r.email),i=dn();return Zc({trackFn:r=>Tf("email_verification",r),returnFromRules:[{pathIncludes:"/sign-up/create-password",returnValue:"password_creation"}]}),k.useEffect(()=>{const{success:r}=gU.safeParse(e.personalData);(!r||!n)&&i({to:"/sign-up/personal-data",replace:!0})},[e,n,i]),v.jsxs(v.Fragment,{children:[v.jsxs(St.SignupStepHeader,{children:[v.jsx(St.SignupStepTitle,{children:"Verifique seu e-mail"}),v.jsxs(St.SignupStepDescription,{children:["Enviamos um código para ",v.jsx("span",{className:"font-semibold",children:n}),". Verifique sua caixa de entrada e insira o código abaixo para continuar."]})]}),v.jsx(dce,{},t)]})}function hce(){const e=dn(),{values:t,updateValues:n,flowType:i}=Qn(g=>g),r=jo({resolver:Mo(bx),defaultValues:t.createPassword,mode:"onChange"}),{watch:a,trigger:l,handleSubmit:u}=r,f=a("confirmPassword"),m=a("password");k.useEffect(()=>{f&&l("confirmPassword")},[m]);function h(g){n(b=>({...b,createPassword:g})),Gc(i,"senha","email"),e({to:i===fi.PROFESSIONAL?"/sign-up/professional-data":"/sign-up/student-data"})}return v.jsx(Io,{control:r.control,children:v.jsxs("form",{onSubmit:u(h),className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex flex-col gap-2",children:[v.jsx(Ud,{name:"password",label:"Senha",placeholder:"Digite sua senha",required:!0,className:"[&>[data-slot=field-error]]:hidden"}),(m||f)&&v.jsx(cU,{control:r.control})]}),v.jsx(Ud,{name:"confirmPassword",label:"Confirmar senha",placeholder:"Digite a senha novamente",required:!0}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs(it,{variant:"ghost",type:"button",onClick:()=>e({to:"/sign-up/otp"}),children:[v.jsx(Do,{}),"Voltar"]}),v.jsx(it,{type:"submit",children:v.jsx("span",{children:"Continuar"})})]})]})})}const pce=cn("/_layout/sign-up/create-password/")({component:gce});function gce(){const{values:e,formKey:t}=Qn(),n=dn();return Zc({trackFn:i=>Tf("password_creation",i),returnFromRules:[{pathIncludes:"/sign-up/professional-data",returnValue:"professional_registry"},{pathIncludes:"/sign-up/student-data",returnValue:"academic_registry"}]}),k.useEffect(()=>{const{success:i}=bU.safeParse(e.verifyEmail);i||n({to:"/sign-up/personal-data",replace:!0})},[e,n]),v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex flex-col gap-2",children:[v.jsx("span",{className:"font-semibold text-2xl",children:"Crie sua senha"}),v.jsx("span",{className:"font-normal text-base text-muted-foreground",children:"Defina uma senha forte para proteger sua conta"})]}),v.jsx(hce,{},t)]})}function vce(){const{values:e,sessionId:t,flowType:n}=Ao(i=>i);return v.jsx(mU,{values:e,sessionId:t,flowType:n,backRoute:"/sign-up-with-google/pers
324onal-data",signupMethod:"google",useUpdateRegistration:bg})}const yce=cn("/_layout/sign-up-with-google/student-data/")({component:bce,pendingComponent:tl,loader:async({context:e})=>{const{queryClient:t}=e;await t.ensureQueryData({...yg.search(""),retry:!1})}});function bce(){const{formKey:e}=Ao();return v.jsxs(v.Fragment,{children:[v.jsxs(St.SignupStepHeader,{children:[v.jsx(St.SignupStepTitle,{children:"Dados acadêmicos"}),v.jsxs(St.SignupStepDescription,{children:["Informe sobre sua formação em medicina",v.jsx("br",{}),"Já possui CRM?"," ",v.jsx(Cn,{to:"/sign-up/professional-data",children:v.jsx("span",{className:"underline text-base-foreground font-medium",children:"Cadastrar como médico"})})]})]}),v.jsx(vce,{},e)]})}function _ce(){const{values:e,sessionId:t,flowType:n,clearDisplayedError:i}=Ao(r=>r);return v.jsx(hU,{values:e,sessionId:t,flowType:n,backRoute:"/sign-up-with-google/personal-data",signupMethod:"google",clearDisplayedError:i})}const Sce=cn("/_layout/sign-up-with-google/professional-data/")({component:wce,pendingComponent:tl,loader:async({context:e})=>{const{queryClient:t}=e;await t.ensureQueryData({...vg.search("")})}});function wce(){const{formKey:e}=Ao();return v.jsxs(v.Fragment,{children:[v.jsxs(St.SignupStepHeader,{children:[v.jsx(St.SignupStepTitle,{children:"Registro profissional"}),v.jsxs(St.SignupStepDescription,{children:["Informe seu registro profissional para continuar.",v.jsx("br",{}),"Ainda não tem CRM?"," ",v.jsx(Cn,{to:"/sign-up-with-google/student-data",children:v.jsx("span",{className:"underline text-base-foreground font-medium",children:"Cadastre-se como estudante"})})]})]}),v.jsx(_ce,{},e)]})}function xce(){const e=dn(),{updateValues:t,values:n,email:i,clearDisplayedError:r,reset:a,sessionId:l,flowType:u}=Ao(h=>h),f=h=>{t(g=>({...g,personalData:h}))},m=()=>{Gc(u,"dados_pessoais","google");const h=Wc(u)?"/sign-up-with-google/student-data":"/sign-up-with-google/professional-data";e({to:h})};return v.jsx(vU,{values:n,sessionId:l,flowType:u,clearDisplayedError:r,reset:a,googleEmail:i,loadingText:"Salvando...",updateValues:f,onSuccess:m})}const Ece=cn("/_layout/sign-up-with-google/personal-data/")({component:kce,pendingComponent:tl,loader:async({context:{queryClient:e}})=>{await e.ensureQueryData({...gg.search("")})}});function kce(){const{formKey:e}=Ao();return v.jsxs(v.Fragment,{children:[v.jsxs(St.SignupStepHeader,{children:[v.jsx(St.SignupStepTitle,{children:"Dados pessoais"}),v.jsx(St.SignupStepDescription,{children:"Vamos começar com suas informações básicas"})]}),v.jsx(xce,{},e)]})}async function Oce(e){return(await Fn.post("/v1/authentication/login/otp",e)).data}function Tce(){return Li({mutationFn:Oce})}const Rce=Bi({otp:_n().min(6,"Código deve ter 6 dígitos")}),$ce=cn("/_layout/sign-in/otp/")({component:Nce});function Nce(){const{seconds:e,reset:t,isActive:n}=gx(60),i=pp(w=>w.login),r=pp(w=>w.setOtp),a=Tce(),l=sU(),u=dn(),f=jo({resolver:Mo(Rce),defaultValues:{otp:""}}),{handleSubmit:m,formState:{isSubmitting:h,isValid:g}}=f;k.useEffect(()=>{i||u({to:"/sign-in"})},[i,u]);const b=async(w,x)=>{r(w);try{const E=await vf(x);await bP({id:E.data.id,...E.data.attributes})}catch(E){console.error("Erro ao fazer tracking de login:",E)}finally{await E0(),yf(x)}},_=async w=>{i&&a.mutate({code:w.otp,email:i.email,password:i.password},{onSuccess:x=>b(w,x.access_token)})},S=()=>{f.setValue("otp",""),i&&l.mutate({email:i.email,password:i.password},{onSuccess:()=>{t()}})};return v.jsx(Io,{control:f.control,children:v.jsxs("form",{onSubmit:m(_),className:"space-y-6",children:[v.jsxs("div",{className:"space-y-6",children:[v.jsx("div",{children:v.jsx(Aa,{className:"w-10 h-10"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-2xl text-card-foreground font-semibold",children:"Verifique seu e-mail"}),v.jsxs("p",{className:"text-base text-muted-foreground",children:["Enviamos um código para"," ",v.jsx("span",{className:"font-medium",children:i==null?void 0:i.email}),". Verifique sua caixa de entrada e insira o código abaixo para continuar."]})]})]}),v.jsx(Ua,{errors:[l.error,a.error]}),v.jsx(iU,{name:"otp",maxLength:6,className:"**:data-[slot=field-error]:text-center"}),v.jsx("div",{children:v.jsxs("p",{className:"text-sm text-foreground text-center flex flex-col items-center gap-2",children:[v.jsx("span",{children:"Não recebeu o código?"})," ",v.jsx(it,{type:"button",size:"sm",variant:"link",onClick:S,disabled:n||l.isPending||h||a.isPending,loading:l.isPending,loadingText:"Reenviando...",children:`Reenviar código ${n?`em ${e}s`:""} `})]})}),v.jsxs("div",{className:"flex gap-3 justify-between",children:[v.jsx(it,{type:"button",variant:"ghost",asChild:!0,children:v.jsxs(Cn,{to:"/sign-in",children:[v.jsx(Do,{size:16}),v.jsx("span",{children:"Voltar"})]})}),v.jsx(it,{type:"submit",disabled:h||a.isPending||!g,loading:h||a.isPending,loadingText:"Verificando...",children:"Verificar"})]})]})})}const qi=w7.update({id:"/_layout",getParentRoute:()=>PC}),Dce=kX.update({id:"/",path:"/",getParentRoute:()=>qi}),Og=Fte.update({id:"/sign-up-with-google",path:"/sign-up-with-google",getParentRoute:()=>qi}),tu=pne.update({id:"/sign-up",path:"/sign-up",getParentRoute:()=>qi}),Cce=wle.update({id:"/sign-in/",path:"/sign-in/",getParentRoute:()=>qi}),Ace=Tle.update({id:"/forgot-password/",path:"/forgot-password/",getParentRoute:()=>qi}),jce=$le.update({id:"/reset-password/success",path:"/reset-password/success",getParentRoute:()=>qi}),Mce=Dle.update({id:"/reset-password/code-expired",path:"/reset-password/code-expired",getParentRoute:()=>qi}),Ice=Ple.update({id:"/reset-password/$code",path:"/reset-password/$code",getParentRoute:()=>qi}),Pce=Wle.update({id:"/student-data/",path:"/student-data/",getParentRoute:()=>tu}),zce=Qle.update({id:"/professional-data/",path:"/professional-data/",getParentRoute:()=>tu}
324),Uce=ace.update({id:"/personal-data/",path:"/personal-data/",getParentRoute:()=>tu}),Lce=fce.update({id:"/otp/",path:"/otp/",getParentRoute:()=>tu}),Fce=pce.update({id:"/create-password/",path:"/create-password/",getParentRoute:()=>tu}),Bce=yce.update({id:"/student-data/",path:"/student-data/",getParentRoute:()=>Og}),Vce=Sce.update({id:"/professional-data/",path:"/professional-data/",getParentRoute:()=>Og}),Hce=Ece.update({id:"/personal-data/",path:"/personal-data/",getParentRoute:()=>Og}),qce=$ce.update({id:"/sign-in/otp/",path:"/sign-in/otp/",getParentRoute:()=>qi}),Zce={LayoutSignUpCreatePasswordIndexRoute:Fce,LayoutSignUpOtpIndexRoute:Lce,LayoutSignUpPersonalDataIndexRoute:Uce,LayoutSignUpProfessionalDataIndexRoute:zce,LayoutSignUpStudentDataIndexRoute:Pce},Yce=tu._addFileChildren(Zce),Wce={LayoutSignUpWithGooglePersonalDataIndexRoute:Hce,LayoutSignUpWithGoogleProfessionalDataIndexRoute:Vce,LayoutSignUpWithGoogleStudentDataIndexRoute:Bce},Gce=Og._addFileChildren(Wce),Kce={LayoutSignUpRouteRoute:Yce,LayoutSignUpWithGoogleRouteRoute:Gce,LayoutIndexRoute:Dce,LayoutResetPasswordCodeRoute:Ice,LayoutResetPasswordCodeExpiredRoute:Mce,LayoutResetPasswordSuccessRoute:jce,LayoutForgotPasswordIndexRoute:Ace,LayoutSignInIndexRoute:Cce,LayoutSignInOtpIndexRoute:qce},Xce=qi._addFileChildren(Kce),Qce={LayoutRoute:Xce},Jce=PC._addFileChildren(Qce)._addFileTypes(),_U=new r3({defaultOptions:{queries:{refetchOnMount:!1,refetchOnWindowFocus:!1}}}),eue=rB({routeTree:Jce,basepath:"/accounts",context:{queryClient:_U},defaultPreload:"intent",defaultPreloadStaleTime:0,defaultPendingMs:0,defaultPendingMinMs:0,defaultNotFoundComponent:o7,notFoundMode:"root"});Dq();fB();const tue=document.getElementById("root"),nue=dB.createRoot(tue);nue.render(v.jsx(k.StrictMode,{children:v.jsx(o3,{client:_U,children:v.jsx(aB,{router:eue})})}));

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.